Demo
2024-02-04 e0fb9542b07f82b55245cf21e960d37fbab5206f
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;