From c364199e759b5c9f9b860272ad4df81d973b6868 Mon Sep 17 00:00:00 2001 From: Administrator <Administrator@DESKTOP-5BIMHQ3> Date: 星期三, 06 三月 2024 09:49:56 +0800 Subject: [PATCH] Merge branch 'wxw' --- Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs b/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs index 1c6e0ff..c15510f 100644 --- a/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs +++ b/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs @@ -1423,6 +1423,7 @@ string toLocation = string.Empty;//鐩爣浣嶇疆 string unstackingMode2 = unstackingMode;//鎷嗗灈鏂瑰紡锛�0:鏈哄櫒浜烘媶鍨� 1:PDA鎷嗗灈 #region 鍒ゆ柇鏄惁闇�瑕佹媶绠� + string isChai = "0";//鏄惁闇�瑕佹媶绠憋紝0:鍚� 1:鏄� var skuInfo = skuList.First(w => w.SkuNo == item.SkuNo); if (skuInfo == null) { @@ -1437,9 +1438,19 @@ { if (item.Qty % (decimal)packagInfo.L2Num != 0)//鑳芥暣闄よ鏄庝笉鐢ㄦ媶绠憋紝涓嶈兘鏁撮櫎璇存槑闇�瑕佹媶绠� { + isChai = "1"; unstackingMode2 = "1";//闇�瑕佹媶绠遍渶璧癙DA鎷嗗灈 } } + if (isChai == "0") + { + var boxInfo = Db.Queryable<DataBoxInfo>().Where(w => w.IsDel == "0" && w.PalletNo == item.PalletNo && w.BitBoxMark == "1").ToList(); + if (boxInfo != null)//鎵樼洏涓婃湁闆剁闇�瑕佹媶绠� + { + isChai = "1"; + unstackingMode2 = "1";//闇�瑕佹媶绠遍渶璧癙DA鎷嗗灈 + } + } #endregion if (unstackingMode2 == "0")//鏈哄櫒浜烘媶鍨� { @@ -2812,7 +2823,13 @@ break; } } - } + var boxInfo = Db.Queryable<DataBoxInfo>().Where(w => w.IsDel == "0" && w.PalletNo == item.PalletNo && w.BitBoxMark == "1").ToList(); + if (boxInfo != null)//鎵樼洏涓婃湁闆剁闇�瑕佹媶绠� + { + result = "1";//闇�瑕佹媶绠� + break; + } + } return result; } catch (Exception ex) -- Gitblit v1.8.0