From eef16e0bb8ddb518c6726f04d4ac43dfd3feca2a Mon Sep 17 00:00:00 2001 From: zxx <Zxx@HanInfo> Date: 星期四, 03 七月 2025 10:28:08 +0800 Subject: [PATCH] 大件 --- HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/wms/WCSHelper.cs | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/wms/WCSHelper.cs b/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/wms/WCSHelper.cs index f78dc90..77d3e09 100644 --- a/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/wms/WCSHelper.cs +++ b/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/wms/WCSHelper.cs @@ -114,6 +114,33 @@ return CreateTask(TN_Task); } + //灏忕背璐ф灦 + internal static bool CreateTaskHj(string no, string from, string to, string taskType, int pri, string cntrInfo, int cntrCount = 1, int startLayer = 1, int endLayer = 1) + { + var fromLoc = LocationHelper.GetLocation(from); + var endLoc = LocationHelper.GetLocation(to); + WCSTask TN_Task = new WCSTask() + { + S_CODE = GenerateTaskNo(), + S_START_AREA = fromLoc.S_AREA_CODE, + S_END_AREA = endLoc.S_AREA_CODE, + S_START_LOC = from, + S_END_LOC = to, + S_TYPE = taskType, + S_OP_CODE = no, + N_PRIORITY = pri, + N_SCHEDULE_TYPE = 1, + N_B_STATE = 0, + S_B_STATE = WCSTask.GetStateStr(0), + S_FRAME_CODE = cntrInfo, + //N_START_LAYER = startLayer, + //N_END_LAYER = endLayer, + //N_CNTR_COUNT = cntrCount + + }; + + return CreateTask(TN_Task); + } internal static bool CreateTask(string no, Location from, Location to, string taskType, int scheduleType, int pri, string cntrInfo, int cntrCount = 1, int startLayer = 1, int endLayer = 1) { WCSTask TN_Task = new WCSTask() -- Gitblit v1.9.1