From 8fd50971e486a66b6254b99374e6f8db34f9d7df Mon Sep 17 00:00:00 2001 From: bklLiudl <673013083@qq.com> Date: 星期二, 20 二月 2024 12:57:27 +0800 Subject: [PATCH] Merge branch 'Liudl' --- Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs | 43 ++++++++++++++++++++++++++----------------- 1 files changed, 26 insertions(+), 17 deletions(-) diff --git a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs index 51103b6..58006e1 100644 --- a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs +++ b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs @@ -2110,22 +2110,6 @@ Db.BeginTran();//寮�鍚簨鍔� if (iscount == 0)//姝e父鍏ュ簱 { - #region 绠辩爜淇℃伅 - var boxInfoList = Db.Queryable<BllBoxInfo>().Where(w => w.IsDel == "0" && w.ASNNo == model.ASNNo).ToList(); - //楠岃瘉绠辩爜淇℃伅鏄惁瀛樺湪 - if (boxInfoList.Count <= 0) - { - throw new Exception("绠辩爜淇℃伅涓嶅瓨鍦紝璇锋牳鏌�!"); - } - foreach (var item in boxInfoList) - { - item.Status = "2"; // 鏀瑰彉绠辨敮鍏崇郴琛ㄧ姸鎬侊細宸插叆搴� - item.UpdateTime = serverTime; - item.UpdateUser = model.CreateUser; - } - Db.Updateable(boxInfoList).ExecuteCommand(); - #endregion - #region 鍏ュ簱鎬诲崟淇℃伅 var notice = Db.Queryable<BllArrivalNotice>().First(a => a.IsDel == "0" && a.Status != "3" && a.ASNNo == model.ASNNo); //楠岃瘉鍏ュ簱鍗曟�诲崟鏄惁鍏抽棴 @@ -2137,6 +2121,30 @@ if (notice.Status == "3") { throw new Exception("鍏ュ簱鍗曟�诲崟宸插叧闂紝璇锋牳鏌�!"); + } + #endregion + + #region 绠辩爜淇℃伅 + var boxInfoList = Db.Queryable<BllBoxInfo>().Where(w => w.IsDel == "0" && w.ASNNo == model.ASNNo).ToList(); + // type 0:鎴愬搧鍏ュ簱 1:閲囪喘鍏ュ簱 2:涓棿鍝佸叆搴� 3:閫�璐у叆搴� 4:杞﹂棿浣欐枡閫�鍥炲叆搴� 5:鍏跺畠鍏ュ簱 6:浠e偍鍏ュ簱 7:瀵勫瓨鍏ュ簱 + if (notice.Type == "2" || notice.Type == "6" || notice.Type == "7") + { + // 涓嶈创鐮佺墿鏂� 鏃犻渶楠岃瘉绠辩爜淇℃伅 + } + else + { + //楠岃瘉绠辩爜淇℃伅鏄惁瀛樺湪 + if (boxInfoList.Count <= 0) + { + throw new Exception("绠辩爜淇℃伅涓嶅瓨鍦紝璇锋牳鏌�!"); + } + foreach (var item in boxInfoList) + { + item.Status = "2"; // 鏀瑰彉绠辨敮鍏崇郴琛ㄧ姸鎬侊細宸插叆搴� + item.UpdateTime = serverTime; + item.UpdateUser = model.CreateUser; + } + Db.Updateable(boxInfoList).ExecuteCommand(); } #endregion @@ -2228,7 +2236,7 @@ ASNDetailNo = (int)bindInfo.ASNDetailNo, WareHouseNo = "W02", RoadwayNo = "", - AreaNo = "", + AreaNo = storageLocat.AreaNo, LocatNo = model.LocatNo, PalletNo = model.PalletNo, PalletNo2 = bindInfo.PalletNo2, @@ -2253,6 +2261,7 @@ { stId = detailModel.Id; detailModel.LocatNo = model.LocatNo; + detailModel.AreaNo = storageLocat.AreaNo; detailModel.UpdateTime = serverTime; detailModel.UpdateUser = (int)model.CreateUser; // 鍙樻洿鍌ㄤ綅鍦板潃 -- Gitblit v1.8.0