pengmn
2025-05-28 382c009ba2bb04374468e9584f262d6682841d9b
HH.WCS.Mobox3.HangYang/wms/WCSHelper.cs
@@ -93,6 +93,7 @@
        }
        internal static bool CreateTask(string no, string from, string to, string taskType, int pri, string cntrInfo, int cntrCount = 1, int startLayer = 1, int endLayer = 1)
        {
            var whCode = Settings.WHCode;
            var fromLoc = LocationHelper.GetLocation(from);
            var endLoc = LocationHelper.GetLocation(to);
            WCSTask TN_Task = new WCSTask()
@@ -111,8 +112,9 @@
                S_CNTR_CODE = cntrInfo,
                N_START_LAYER = startLayer,
                N_END_LAYER = endLayer,
                N_CNTR_COUNT = cntrCount
                N_CNTR_COUNT = cntrCount,
                S_START_WH = whCode,
                S_END_WH = whCode
            };
            return CreateTask(TN_Task);
@@ -181,14 +183,10 @@
            var db = new SqlHelper<WCSTask>().GetInstance();
            if (task != null)
            {
                if (task.N_B_STATE == 1)
                {
                    task.N_B_STATE = 2;
                    task.S_B_STATE = WCSTask.GetStateStr(task.N_B_STATE);
                    task.T_START_TIME = DateTime.Now;
                    db.Updateable(task).UpdateColumns(it => new { it.N_B_STATE, it.S_B_STATE, it.T_START_TIME }).ExecuteCommand();
                }
            }
        }
        internal static void End(WCSTask task)