From a40eb0941c2dfa793aa0987d26093d965a1fa60b Mon Sep 17 00:00:00 2001 From: wxw <Administrator@DESKTOP-5BIMHQ3> Date: 星期四, 21 八月 2025 09:46:22 +0800 Subject: [PATCH] 修改PDA托盘绑定页面,成品单据绑定不可连组 --- Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs | 20 +++++++++++++------- 1 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs b/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs index 5395b9e..cd21a0c 100644 --- a/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs +++ b/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs @@ -612,19 +612,25 @@ CreateUser = 0, }; - if (houseNo == "1000" || houseNo == "1001" || houseNo == "2000") - { - notice.WareHouseNo = "W01"; - } - else if (houseNo == "2001") + if (houseNo == "1000" || houseNo == "1001" || houseNo == "2000" || houseNo == "2002" || houseNo == "2003" || houseNo == "2004") { notice.WareHouseNo = "W02"; } + else if (houseNo == "4000") + { + notice.WareHouseNo = "W01"; + } else { - throw new Exception("鍙戝嚭浠撳簱寮傚父"); + // houseNo鎶涘紓甯革紝閬垮厤鍑虹幇闈濿01锛學02鐨勫�� + throw new Exception($"涓嶆敮鎸佺殑鍙戝嚭浠撳簱缂栧彿锛歿houseNo}锛屼粎鏀寔鐢熸垚W01鍜學02浠撳簱鐨勫崟鎹�"); } - + //棰濆鏍¢獙锛堝彲閫夛紝鍙岄噸淇濋殰锛� + if (notice.WareHouseNo != "W01" && notice.WareHouseNo != "W02") + { + throw new Exception($"浠撳簱缂栧彿寮傚父锛歿notice.WareHouseNo}锛屼粎鍏佽W01鍜學02"); + } + var n = Db.Insertable<BllExportNotice>(notice).ExecuteCommand(); var m = Db.Insertable<BllExportNoticeDetail>(list).ExecuteCommand(); -- Gitblit v1.8.0