From 82e5d2df096e55f1142106657668b87c8cfedda3 Mon Sep 17 00:00:00 2001 From: czw <selecti@yeah.net> Date: 星期一, 23 六月 2025 09:09:01 +0800 Subject: [PATCH] aux --- 2025年6月12日/AuxAllWCS/RunTime/Code/自定义类.cs | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/RunTime/Code/\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/RunTime/Code/\350\207\252\345\256\232\344\271\211\347\261\273.cs" index 707ac26..b3035c0 100644 --- "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/RunTime/Code/\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/RunTime/Code/\350\207\252\345\256\232\344\271\211\347\261\273.cs" @@ -535,6 +535,8 @@ #region [鑷畾涔夌被][20250325152141671][TaskProcess] internal static bool CreateTask(string no, string from, string to, string taskType, int pri, List<string> cntrs, string workMode = "AGV", int cntrCount = 1, int startLayer = 1, int endLayer = 1) { + + LogHelper.Info($"杈撻�绾縍GV绌烘墭浠诲姟 from:{from}>to {to}寮�鍒涘缓>"); var cntrInfo = string.Join(",", cntrs); ILocRepository locc = new LocRepository(); var fromLoc = locc.FindEntity(x => x.S_LOC_CODE == from); @@ -575,11 +577,17 @@ }; ITaskRepository taskserice = new TaskRepository(); taskserice.Insert(wmsTask); - fromLoc.S_LOCK_STATE = "鍑哄簱閿�; - endLoc.S_LOCK_STATE = "鍏ュ簱閿�; - locc.Update(fromLoc); - locc.Update(endLoc); - return true; + + if (workMode == "AGV") + { + fromLoc.S_LOCK_STATE = "鍑哄簱閿�; + endLoc.S_LOCK_STATE = "鍏ュ簱閿�; + locc.Update(fromLoc); + locc.Update(endLoc); + } + + LogHelper.Info($"杈撻�绾縍GV绌烘墭浠诲姟 from:{from}>to {to} 鍒涘缓{wmsTask.S_TASK_NO}鎴愬姛"); + return true; } catch (Exception ex) { -- Gitblit v1.9.1