From fb41d03f44fb4778d92d72d36eed4e3937828b85 Mon Sep 17 00:00:00 2001 From: lss <2538410689@qq.com> Date: 星期三, 02 七月 2025 17:30:31 +0800 Subject: [PATCH] 优化 --- HH.WCS.Mobox3/HH.WCS.Mobox3.JiaTong/process/TaskProcess.cs | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/HH.WCS.Mobox3/HH.WCS.Mobox3.JiaTong/process/TaskProcess.cs b/HH.WCS.Mobox3/HH.WCS.Mobox3.JiaTong/process/TaskProcess.cs index c611d82..a7e3548 100644 --- a/HH.WCS.Mobox3/HH.WCS.Mobox3.JiaTong/process/TaskProcess.cs +++ b/HH.WCS.Mobox3/HH.WCS.Mobox3.JiaTong/process/TaskProcess.cs @@ -860,7 +860,7 @@ statusArrive.TaskNumber = mst.S_EQ_NO; statusArrive.LocationNum = mst.S_END_LOC; statusArrive.Time = DateTime.Now.ToString(); - statusArrive.Status = mst.S_B_STATE; + statusArrive.Status = status.ToString(); statusArrive.Rfid = mst.S_CNTR_CODE; statusArrive.Flag = flag; statusArrive.Info = info; @@ -935,8 +935,19 @@ if (cntritem != null) { + string curBagNum = null; + string weightBag = null; + if (cntritem.F_QTY > 0) + { + curBagNum = cntritem.F_QTY.ToString(); + } + if (int.Parse(cntritem.F_WEIGHT1) > 0) + { + weightBag = cntritem.F_WEIGHT1; + } list.Add(new MesItemBackInfoModel() { + LotNumber = cntritem.S_BATCH_NO, PartNumber = cntritem.S_ITEM_CODE, Subpool = cntritem.Subpool, @@ -948,8 +959,8 @@ Qty = cntritem.F_WEIGHT, PartLevel = cntritem.LEV, WmsLot = cntritem.WmsLot, - WeightBag = cntritem.F_WEIGHT1, - CurBagNum = (int)cntritem.F_QTY, + WeightBag = weightBag, + CurBagNum = curBagNum, InitBagNum = cntritem.F_QTY1 }); -- Gitblit v1.9.1