From 89943f29476e3de04c638cc7aefbdf2dd24d00c7 Mon Sep 17 00:00:00 2001
From: 海波 张 <2956280567@qq.com>
Date: 星期四, 17 七月 2025 17:31:18 +0800
Subject: [PATCH] 出库、绑定修改

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

diff --git a/wms/LocationHelper.cs b/wms/LocationHelper.cs
index 900b06a..ab8777d 100644
--- a/wms/LocationHelper.cs
+++ b/wms/LocationHelper.cs
@@ -115,7 +115,12 @@
             List<string> result = new List<string>();
             foreach (var item in ConnectionList)
             {
-                result.Add(item.S_CODE);
+                var ConnectionY = db.Queryable<Location>().Where(s => s.S_AREA_CODE == S_AREA_CODE && s.C_ENABLE == "Y" && s.CONNEC_ROADWAY== item.CONNEC_ROADWAY).First();
+                if (ConnectionY==null)
+                {
+                    result.Add(item.S_CODE);
+                }
+               
             }
             return result;
         }

--
Gitblit v1.9.1