From c2d2f4eb78c54bdfdb6ffb0df5932751d538ed14 Mon Sep 17 00:00:00 2001
From: 杨张扬 <634643841@qq.com>
Date: 星期一, 14 七月 2025 17:35:02 +0800
Subject: [PATCH] 新增PDA搬送,线边空托到原材料上线口

---
 wms/LocationHelper.cs |   32 +++++++++++++++++++++++++++++++-
 1 files changed, 31 insertions(+), 1 deletions(-)

diff --git a/wms/LocationHelper.cs b/wms/LocationHelper.cs
index f159708..926ea92 100644
--- a/wms/LocationHelper.cs
+++ b/wms/LocationHelper.cs
@@ -307,6 +307,11 @@
                     bindLocCntList.Add(new TN_Loc_Container() { S_LOC_CODE = loc, S_CNTR_CODE = item });
                 }
 
+                if (bindLocCntList.Count == 0)
+                {
+                    LogHelper.Info($"宸茬粦瀹氾紝娌℃湁瑕佺粦瀹氱殑鏂板鍣紝{logs}");
+                    return $"宸茬粦瀹氾紝娌℃湁瑕佺粦瀹氱殑鏂板鍣紝{logs}";
+                }
 
                 var log = JsonConvert.SerializeObject(bindLocCntList);
 
@@ -516,6 +521,11 @@
             }
         }
 
+        /// <summary>
+        /// 0鍚堟牸1寰呮2涓嶅悎鏍硷紝涓嬬嚎鍗冲緟妫�紝3杩囨湡锛�鎶�湳鍒ゅ畾锛�娣峰悎锛�涓�骇鏂欍�7浜岀骇鏂�+        /// </summary>
+        /// <param name="state"></param>
+        /// <returns></returns>
         public static string GetStrByOk(int state)
         {
             if (state == 0)
@@ -529,6 +539,26 @@
             if (state == 2)
             {
                 return "涓嶅悎鏍�;
+            }
+            if (state == 3)
+            {
+                return "杩囨湡";
+            }
+            if (state == 4)
+            {
+                return "鎶�湳鍒ゅ畾";
+            }
+            if (state == 5)
+            {
+                return "娣峰悎";
+            }
+            if (state == 6)
+            {
+                return "涓�骇鏂�;
+            }
+            if (state == 7)
+            {
+                return "浜岀骇鏂�;
             }
             return "寰呮";
         }
@@ -580,7 +610,7 @@
         public string rfId { get; set; }//瀹瑰櫒鍙� 
         /// <summary>
-        /// 0鍚堟牸1寰呮2涓嶅悎鏍硷紝涓嬬嚎鍗冲緟妫�紝3杩囨湡锛�鎶�湳鍚堟牸锛�娣峰悎
+        /// 0鍚堟牸1寰呮2涓嶅悎鏍硷紝3杩囨湡锛�鎶�湳鍒ゅ畾锛�娣峰悎锛�涓�骇鏂欍�7浜岀骇鏂�         /// </summary>
         public int cgState { get; set; }//鐗╂枡鐘舵�
 

--
Gitblit v1.9.1