From 32cfcc52c647b5dab8db7c5ca7b54ab3041e9d36 Mon Sep 17 00:00:00 2001
From: chengsc <11752@DESKTOP-DS49RCP>
Date: 星期三, 04 六月 2025 14:54:33 +0800
Subject: [PATCH] 修改车间出入库

---
 Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
index d69c86e..d2c75d7 100644
--- a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
+++ b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
@@ -2530,9 +2530,15 @@
                 }
                 else
                 {
+                    var sd2 = Db.Queryable<DataStockDetail>().Where(m => m.PalletNo == palletNo && m.IsDel == "0" && !string.IsNullOrWhiteSpace(m.AreaNo));
+                    if (sd2.Count(m=>m.AreaNo!= areaNo) > 0)
+                    {
+                        throw new Exception("褰撳墠鎵樼洏浣嶇疆涓庨�夋嫨鐨勪笉鍚岋紝璇锋牳瀹�");
+                    }
                     // 搴撳瓨涓嶅瓨鍦� 鎻掑叆鏁版嵁
                     sd1 = new DataStockDetail()
                     {
+                        ASNNo = "",
                         LotNo = boxInfoOne.LotNo,
                         LotText = boxInfoOne.LotText,
                         SupplierLot = boxInfoOne.SupplierLot,

--
Gitblit v1.8.0