From c9fe2c53364abe0e0e495a1b756267f865159e2e Mon Sep 17 00:00:00 2001 From: chengsc <11752@DESKTOP-DS49RCP> Date: 星期三, 25 六月 2025 12:17:26 +0800 Subject: [PATCH] Merge branch 'csc' --- Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs index bc13225..43d8ab3 100644 --- a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs +++ b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs @@ -77,14 +77,15 @@ else { //浠庣墿鏂欏悕绉�-鎵规涓彇鍑烘壒娆� - int indexOfDash = model.LotNo.IndexOf("-"); + int indexOfDash = model.LotNo.IndexOf("=>"); if (indexOfDash != -1) { - model.LotNo = model.LotNo.Substring(indexOfDash + 1); + model.LotNo = model.LotNo.Substring(indexOfDash + 2); } else { - throw new Exception("鐗╂枡-鎵规涓嶅彲涓虹┖!"); + model.LotNo = ""; + //throw new Exception("鐗╂枡-鎵规涓嶅彲涓虹┖!"); } } @@ -531,7 +532,7 @@ #endregion #region 璐ㄦ璇烽獙 - if ((notice.Type == "1" || notice.Type == "4" || notice.Type == "5") && sku.IsInspect != "1") + if ((notice.Type == "1" || notice.Type == "4" || notice.Type == "5") && sku.IsInspect != "1" && sku.IsControlled != "1") { var qualityRequest = Db.Queryable<BllQualityInspectionRequest>().First(m => m.IsDel == "0" && m.SkuNo == sku.SkuNo && m.LotNo == bind.LotNo && m.SupplierLot == bind.SupplierLot); if (qualityRequest == null) @@ -1047,7 +1048,7 @@ #endregion #region 璐ㄦ璇烽獙 - if ((arrNotice.Type == "1" || arrNotice.Type == "4" || arrNotice.Type == "5") && sku.IsInspect != "1") + if ((arrNotice.Type == "1" || arrNotice.Type == "4" || arrNotice.Type == "5") && sku.IsInspect != "1" && sku.IsControlled != "1") { var qualityRequest = Db.Queryable<BllQualityInspectionRequest>().First(m => m.IsDel == "0" && m.SkuNo == sku.SkuNo && m.LotNo == bind.LotNo && m.SupplierLot == bind.SupplierLot); if (qualityRequest == null) @@ -1136,14 +1137,15 @@ else { //浠庣墿鏂欏悕绉�-鎵规涓彇鍑烘壒娆� - int indexOfDash = model.LotNo.IndexOf("-"); + int indexOfDash = model.LotNo.IndexOf("=>"); if (indexOfDash != -1) { - model.LotNo = model.LotNo.Substring(indexOfDash + 1); + model.LotNo = model.LotNo.Substring(indexOfDash + 2); } else { - throw new Exception("鐗╂枡鎵规涓嶅彲涓虹┖!"); + model.LotNo = ""; + //throw new Exception("鐗╂枡鎵规涓嶅彲涓虹┖!"); } } @@ -1497,7 +1499,7 @@ #endregion #region 璐ㄦ璇烽獙 - if ((notice.Type == "1" || notice.Type == "4" || notice.Type == "5") && sku.IsInspect != "1") + if ((notice.Type == "1" || notice.Type == "4" || notice.Type == "5") && sku.IsInspect != "1" && sku.IsControlled != "1") { var qualityRequest = Db.Queryable<BllQualityInspectionRequest>().First(m => m.IsDel == "0" && m.SkuNo == sku.SkuNo && m.LotNo == bind.LotNo && m.SupplierLot == bind.SupplierLot); if (qualityRequest == null) @@ -5964,7 +5966,7 @@ #endregion #region 璐ㄦ璇烽獙 - if ((notice.Type == "1" || notice.Type == "4" || notice.Type == "5") && sku.IsInspect != "1") + if ((notice.Type == "1" || notice.Type == "4" || notice.Type == "5") && sku.IsInspect != "1" && sku.IsControlled != "1") { var qualityRequest = Db.Queryable<BllQualityInspectionRequest>().First(m => m.IsDel == "0" && m.SkuNo == sku.SkuNo && m.LotNo == bind.LotNo && m.SupplierLot == bind.SupplierLot); if (qualityRequest == null) -- Gitblit v1.8.0