From d75d3b7cf6ba68c9e9e69bced4552a554ca76e93 Mon Sep 17 00:00:00 2001 From: wxw <Administrator@DESKTOP-5BIMHQ3> Date: 星期六, 21 六月 2025 15:12:29 +0800 Subject: [PATCH] 出库口问题修改;标签打印优化 --- Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs | 89 +++----------------------------------------- 1 files changed, 6 insertions(+), 83 deletions(-) diff --git a/Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs b/Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs index f5c6885..54de8b1 100644 --- a/Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs +++ b/Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs @@ -2598,11 +2598,11 @@ { //鏇存敼浠诲姟鐨勫彂閫佽繑鍥炴椂闂�// new TaskServer().EditTaskIssueOk(list, time1, time2); - - }else + } + else { new TaskServer().EditTaskIssueNo(list, time1, time2, wcsModel.message); - throw new Exception("WCS鍙嶉锛�"+wcsModel.message); + throw new Exception("WCS鍙嶉锛�" + wcsModel.message); } } catch (Exception ex) @@ -2616,85 +2616,7 @@ } } - /// <summary> - /// 鍏ュ簱浠诲姟瀹屾垚JC34 - /// </summary> - /// <param name="taskNo"></param> - /// <param name="userId"></param> - /// <exception cref="Exception"></exception> - public void ArrivalSuccess2(string taskNo, int userId) - { - try - { - //姝e父鍏ュ簱 - var task = Db.Queryable<LogTask>().First(m => m.IsDel == "0" && m.TaskNo == taskNo); - if (task == null) - { - throw new Exception("鏈煡璇㈠埌浠诲姟淇℃伅"); - } - if (task.Status == "2") - { - throw new Exception("褰撳墠浠诲姟宸插畬鎴�"); - } - - var stockDetail = Db.Queryable<DataStockDetail>().Where(m => m.PalletNo == task.PalletNo).ToList(); - var upShelf = Db.Queryable<BllPalletUpShelf>().First(m => m.TaskNo == taskNo); - if (upShelf == null) - { - throw new Exception("娌℃湁鎵惧埌鎵樼洏涓婃灦淇℃伅"); - } - //褰撳墠浠诲姟涓殑鍌ㄤ綅淇℃伅 - var locate = Db.Queryable<SysStorageLocat>().First(m => m.LocatNo == task.EndLocat); - if (locate == null) - { - throw new Exception($"鏈煡璇㈠埌浠诲姟涓殑鍌ㄤ綅淇℃伅"); - } - Db.BeginTran(); - - task.Status = "2";//浠诲姟鐘舵�� - task.IsSend = 0; - task.IsCancel = 0; - task.IsFinish = 0; - task.FinishDate = DateTime.Now;//瀹屾垚鏃堕棿 - Db.Updateable(task).ExecuteCommand(); - if (userId != 0) - { - //娣诲姞鎿嶄綔鏃ュ織璁板綍 - var k = new OperationASNServer().AddLogOperationAsn("鍏ュ簱浣滀笟", "鍏ュ簱鏃ュ織", taskNo, "瀹屾垚", $"鐐瑰嚮瀹屾垚鎸夐挳銆佸畬鎴愪换鍔″彿涓猴細{taskNo}鐨勪换鍔�", userId); - } - - //鍒ゆ柇鏄惁鏄洖娴佸叆搴撳畬鎴� - if (stockDetail.Any()) - { - throw new Exception("娌℃湁鏌ヨ鍒板簱瀛樹俊鎭�"); - } - - foreach (var item in stockDetail) - { - item.WareHouseNo = locate.WareHouseNo; - item.RoadwayNo = locate.RoadwayNo; - item.AreaNo = locate.AreaNo; - item.LocatNo = locate.LocatNo; - item.UpdateTime = DateTime.Now; - if (userId != 0) - { - item.UpdateUser = userId; - } - } - upShelf.Status = "2"; - Db.Updateable(upShelf).ExecuteCommand(); - - locate.Status = "1"; - Db.Updateable(locate).ExecuteCommand(); - Db.Updateable(stockDetail).ExecuteCommand(); - Db.CommitTran(); - - } - catch (Exception e) - { - throw new Exception(e.Message); - } - } + #endregion @@ -4330,7 +4252,8 @@ var upShelfList = Db.Queryable<BllPalletUpShelf>().Where(m => m.IsDel == "0" && m.TaskNo == taskNo && m.PalletNo == task.PalletNo).ToList(); foreach (var upShelf in upShelfList) { - upShelf.IsDel = "1"; + //upShelf.IsDel = "1"; + upShelf.Status = "4"; Db.Updateable(upShelf).ExecuteCommand(); } -- Gitblit v1.8.0