From e0fb9542b07f82b55245cf21e960d37fbab5206f Mon Sep 17 00:00:00 2001 From: Demo <Demo@DESKTOP-CPA90BF> Date: 星期日, 04 二月 2024 14:48:30 +0800 Subject: [PATCH] 修改生成标签时在入库单中添加对应批次 --- Wms/WMS.BLL/BllAsnServer/BllBoxInfoServer.cs | 24 +++++++++++++++++++++--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/Wms/WMS.BLL/BllAsnServer/BllBoxInfoServer.cs b/Wms/WMS.BLL/BllAsnServer/BllBoxInfoServer.cs index c5f314f..8511af4 100644 --- a/Wms/WMS.BLL/BllAsnServer/BllBoxInfoServer.cs +++ b/Wms/WMS.BLL/BllAsnServer/BllBoxInfoServer.cs @@ -612,6 +612,9 @@ #endregion var modelList = new List<BllBoxInfo>(); + + var addLotNo = ""; + if (packLevel == 1) { #region 涓�绾у寘瑁� @@ -690,9 +693,10 @@ } } + addLotNo = maxLotNoStr; #endregion - + for (int i = 1; i <= labelNum; i++) { @@ -836,9 +840,10 @@ } } + addLotNo = maxCodestr2; #endregion - + for (int i = 1; i <= labelNum2; i++)//绠辩爜鏍囩 { @@ -954,7 +959,20 @@ #endregion } - + if (string.IsNullOrWhiteSpace(asnList.LotNo)) + { + asnList.LotNo = addLotNo; + Db.Updateable(asnList).ExecuteCommand(); + } + else + { + if (!asnList.LotNo.Contains(addLotNo)) + { + asnList.LotNo += ";" + addLotNo; + Db.Updateable(asnList).ExecuteCommand(); + } + } + return modelList; -- Gitblit v1.8.0