1
czw
2025-07-10 43c6d046302ca075c1f42b0105a5fbad0d889fc5
2025年6月12日/AuxAllWCS/Build/Project/代码/自定义类.cs
@@ -571,16 +571,16 @@
            var fromLoc = locc.FindEntity(x => x.S_LOC_CODE == from);
            var endLoc = locc.FindEntity(x => x.S_LOC_CODE == to);
            string t = "";
            //string t = "";
            if (workMode == "AGV" && string.IsNullOrEmpty(S_INDEX))
            {
                var s = Settings.deviceInfos.Find(x => x.location.Contains(from)) != null;
                var e = Settings.deviceInfos.Find(x => x.location.Contains(to)) != null;
                t = "F01";
                if (s && !e) t = "A002";
                if (!s && e) t = "A003";
                if (s && e) t = "A004";
                S_INDEX = "F01";
                if (s && !e) S_INDEX = "A002";
                if (!s && e) S_INDEX = "A003";
                if (s && e) S_INDEX = "A004";
            }
            try
            {
@@ -607,7 +607,7 @@
                    N_START_LAYER = startLayer,
                    N_END_LAYER = endLayer,
                    N_CNTR_COUNT = cntrCount,
                    S_INDEX = t,
                    S_INDEX = S_INDEX,
                };
                ITaskRepository taskserice = new TaskRepository();
                taskserice.Insert(wmsTask);