From 8df624a41b03581fc06132172156a5d33b2cfcd3 Mon Sep 17 00:00:00 2001
From: admin <qiutairan163@163.com>
Date: 星期四, 18 十二月 2025 14:24:24 +0800
Subject: [PATCH] 取消AGV移库任务CancelMoveTask目标储位去除仓库限制

---
 Wms/WMS.BLL/BllPdaServer/PdaSoServer.cs |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/Wms/WMS.BLL/BllPdaServer/PdaSoServer.cs b/Wms/WMS.BLL/BllPdaServer/PdaSoServer.cs
index aff1f7b..351a2c9 100644
--- a/Wms/WMS.BLL/BllPdaServer/PdaSoServer.cs
+++ b/Wms/WMS.BLL/BllPdaServer/PdaSoServer.cs
@@ -1568,7 +1568,7 @@
                 string skuNo = boxInfos.First().SkuNo;
                 string skuName = boxInfos.First().SkuName;
 
-                // 楠岃瘉鏄惁杞﹂棿绾胯竟浠撳簱
+                //楠岃瘉鏄惁杞﹂棿绾胯竟浠撳簱
                 string areaNoSql = $@"select AreaNo from SysStorageArea where IsDel='0' and AreaType='1'";
                 DataTable areaNoDt = Db.Ado.GetDataTable(areaNoSql);
                 List<string> areaNoList = areaNoDt.Rows.Cast<DataRow>().Select(e => e["AreaNo"] + "").ToList();
@@ -1729,9 +1729,12 @@
                     throw Oops.Bah("鏈煡璇㈠埌璇ユ墭鐩樹笂璐х墿鐨勫簱瀛樻槑缁嗕俊鎭紒");
                 }
 
-                // 楠岃瘉鏄惁杞﹂棿绾胯竟浠撳簱
-                var areaList = new List<string>() { "B06", "B07", "B09", "B24", "B29" };
-                if (!areaList.Contains(stockDetail.AreaNo))
+                //楠岃瘉鏄惁杞﹂棿绾胯竟浠撳簱
+                string areaNoSql = $@"select AreaNo from SysStorageArea where IsDel='0' and AreaType='1'";
+                DataTable areaNoDt = Db.Ado.GetDataTable(areaNoSql);
+                List<string> areaNoList = areaNoDt.Rows.Cast<DataRow>().Select(e => e["AreaNo"] + "").ToList();
+
+                if (!areaNoList.Contains(stockDetail.AreaNo))
                 {
                     throw Oops.Bah("鎵樼洏涓嶆槸杞﹂棿鎵樼洏锛�");
                 }

--
Gitblit v1.8.0