From 1cd9ee1a2b74a47e48c637482555388e20bb4eab Mon Sep 17 00:00:00 2001
From: czw <selecti@yeah.net>
Date: 星期四, 17 七月 2025 11:30:18 +0800
Subject: [PATCH] 1

---
 2025年6月12日/AuxAllWCS/Build/Project/代码/自定义类.cs |   12 ++++++------
 1 files changed, 6 insertions(+), 6 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..f7e69bc 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"
@@ -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);

--
Gitblit v1.9.1