1
zxx
2 天以前 d66d362ee6d76f02331e56df1fdec1c2114c9f3e
HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/wms/WCSHelper.cs
@@ -124,13 +124,18 @@
        internal static bool CreateTaskDj(string no, string from, string to, string taskType, int pri, string cntrInfo,string orderName, int cntrCount = 1, int startLayer = 1, int endLayer = 1)
        {
            var fromLoc = LocationHelper.GetLocation(from);
            var endLoc = LocationHelper.GetLocation(to);
            //因为有点到未知的情况
            string endLocAreaStr = null;
            if (to!=null && to != "")
            {
                endLocAreaStr = LocationHelper.GetLocation(to).S_AREA_CODE;
            }
            WCSTask TN_Task = new WCSTask()
            {
                //S_CODE = GenerateTaskNo(),
                S_CODE = orderName,
                S_START_AREA = fromLoc.S_AREA_CODE,
                S_END_AREA = endLoc.S_AREA_CODE,
                S_END_AREA = endLocAreaStr,
                S_START_LOC = from,
                S_END_LOC = to,
                S_TYPE = taskType,