From 4ac70fc8158aff8b27f572ef16a39af5c4d7e271 Mon Sep 17 00:00:00 2001 From: czw <selecti@yeah.net> Date: 星期三, 23 七月 2025 16:41:40 +0800 Subject: [PATCH] 1 --- 2025年6月12日/AuxAllWCS/Build/Project/代码/自定义类.cs | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\350\207\252\345\256\232\344\271\211\347\261\273.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\350\207\252\345\256\232\344\271\211\347\261\273.cs" index cfd2055..52e3c02 100644 --- "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\350\207\252\345\256\232\344\271\211\347\261\273.cs" +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\350\207\252\345\256\232\344\271\211\347\261\273.cs" @@ -554,6 +554,7 @@ sId = new SYSEntity { CN_S_TYPE = snType, CN_T_LAST = DateTime.Now, CN_S_PRE = prefix, CN_N_MAX = 0, CN_S_APP_TYPE = "WCS" }; sysservice.Insert(sId); } + sysservice.Disnull(); } return result; } @@ -567,20 +568,20 @@ LogHelper.Info($"鍒涘缓浠诲姟 from:{from}>to {to}寮�鍒涘缓>"); var cntrInfo = string.Join(",", cntrs); - ILocRepository locc = new LocRepository(); + LocRepository locc = new LocRepository(); 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,9 +608,9 @@ N_START_LAYER = startLayer, N_END_LAYER = endLayer, N_CNTR_COUNT = cntrCount, - S_INDEX = t, + S_INDEX = S_INDEX, }; - ITaskRepository taskserice = new TaskRepository(); + TaskRepository taskserice = new TaskRepository(); taskserice.Insert(wmsTask); if (workMode == "AGV") @@ -619,6 +620,9 @@ locc.Update(fromLoc); locc.Update(endLoc); } + + locc.Disnull(); + taskserice.Disnull(); LogHelper.Info($"鍒涘缓浠诲姟 from:{from}>to {to} 鍒涘缓{wmsTask.S_TASK_NO}鎴愬姛"); return true; @@ -650,6 +654,7 @@ }; TaskActRepository taskserice = new TaskActRepository(); taskserice.Insert(action); + taskserice.Disnull(); } public static System.String GenerateTaskNo(string snType = "浠诲姟鍙�, string Snt = "TN") -- Gitblit v1.9.1