kazelee
2 天以前 e79700d34620c495667b7b8e7b852f23ed7d7e4e
api/DebugController.cs
@@ -261,9 +261,9 @@
                endLoc.N_CURRENT_NUM = 1;
                using (var tran = db.Ado.UseTran()) {
                    if (db.Updateable<TN_Location>(startLoc).ExecuteCommand() <= 0 &&
                        db.Updateable<TN_Location>(endLoc).ExecuteCommand() <= 0 &&
                        db.Updateable<TN_Loc_Container>(locCntrRel).ExecuteCommand() <= 0) {
                    if (db.Updateable(startLoc).ExecuteCommand() <= 0 &&
                        db.Updateable(endLoc).ExecuteCommand() <= 0 &&
                        db.Updateable(locCntrRel).ExecuteCommand() <= 0) {
                        
                        tran.RollbackTran();
                        return "数据库操作失败!";
@@ -400,10 +400,6 @@
        /// AGV 小车号
        /// </summary>
        public string ForkliftNo { set; get; }
        ///// <summary>
        ///// AGV 下一个状态
        ///// </summary>
        //public int NextState { set; get; }
    }
    public class AgvReportsInfo {
@@ -421,15 +417,6 @@
        public int NextState { set; get; } = 0;
    }
    public class FalseOk {
        public bool JumpOut { set; get; } = true;
    }
    public class InsertCntrItemInfo {
        public string Cntr { set; get; }
        public string Item { set; get; }
    }
    /// <summary>
    /// 
    /// </summary>
@@ -437,14 +424,4 @@
        public List<ReturnResult> ResultList { set; get; }
    }
    public class LocCntrCg {
        public string Note { get; set; } // 仅用于备注
        public string LocCode { get; set; }
        public string LocArea { get; set; }
        public string CntrCode { get; set; }
        public string CntrType { get; set; }
        public string ItemCode { get; set; }
        public string BatchNo { get; set; }
    }
}