From 3668d26902ed3be26c840b04cf8f71fe9b51007a Mon Sep 17 00:00:00 2001 From: Administrator <Administrator@DESKTOP-JIE70N9> Date: 星期六, 20 九月 2025 10:48:03 +0800 Subject: [PATCH] 修改问题 --- Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs | 32 ++++++++++++++++++++++++-------- 1 files changed, 24 insertions(+), 8 deletions(-) diff --git a/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs b/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs index 139e9d3..706d873 100644 --- a/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs +++ b/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs @@ -1067,10 +1067,10 @@ inspectStatus = "0,1"; break; case "9"://鐢熶骇棰嗘枡鍑哄簱 - if (house != "W02") - { - throw new Exception("鐢熶骇棰嗘枡鍑哄簱鍙兘閫夋嫨鍘熸枡搴�"); - } + //if (house != "W02") + //{ + // throw new Exception("鐢熶骇棰嗘枡鍑哄簱鍙兘閫夋嫨鍘熸枡搴�"); + //} skuType = "(0,1,3)"; inspectStatus = "1"; break; @@ -1187,10 +1187,10 @@ switch (model.WareHouseNo) { case "W01"://鎴愬搧搴� - if (skuList.Any(m => m.Type != "2")) - { - throw new Exception("浠撳簱涓庡嚭搴撶墿鏂欎笉绗�"); - } + //if (skuList.Any(m => m.Type != "2")) + //{ + // throw new Exception("浠撳簱涓庡嚭搴撶墿鏂欎笉绗�"); + //} break; case "W02"://鍘熸枡搴� if (skuList.Any(m => m.Type == "2")) @@ -3338,6 +3338,22 @@ throw new Exception(e.Message); } } + public string GetHouseByPalletNo(string palletNo) + { + try + { + var datail = Db.Queryable<DataStockDetail>().First(m => m.IsDel == "0" && m.PalletNo == palletNo); + if (datail == null) + { + throw new Exception("鏈煡璇㈠埌鎵樼洏淇℃伅"); + } + return datail.WareHouseNo; + } + catch (Exception e) + { + throw new Exception(e.Message); + } + } public List<OutCommandDto> IssueOutHouseLk(string soNo, string outMode, int userId, string url, out string str) { -- Gitblit v1.8.0