| | |
| | | else |
| | | { |
| | | LogHelper.Info($"任务{mst.S_CODE} 托盘为空 ,只解锁货位"); |
| | | LocationHelper.UnlockLoc(mst.S_START_LOC); |
| | | LocationHelper.UnlockLocDeleteCntrs(mst.S_START_LOC); |
| | | } |
| | | } |
| | | else |
| | |
| | | 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; |
| | |
| | | |
| | | if (cntritem != null) |
| | | { |
| | | string curBagNum = null; |
| | | string weightBag = null; |
| | | string initBagNum = null; |
| | | if (cntritem.F_QTY > 0) |
| | | { |
| | | curBagNum = cntritem.F_QTY.ToString(); |
| | | } |
| | | if (!string.IsNullOrEmpty(cntritem.F_WEIGHT1) && int.Parse(cntritem.F_WEIGHT1) > 0) |
| | | { |
| | | weightBag = cntritem.F_WEIGHT1; |
| | | } |
| | | if (!string.IsNullOrEmpty(cntritem.F_QTY1) && int.Parse(cntritem.F_QTY1) > 0) |
| | | { |
| | | initBagNum = cntritem.F_QTY1; |
| | | } |
| | | list.Add(new MesItemBackInfoModel() |
| | | { |
| | | |
| | | LotNumber = cntritem.S_BATCH_NO, |
| | | PartNumber = cntritem.S_ITEM_CODE, |
| | | Subpool = cntritem.Subpool, |
| | |
| | | Qty = cntritem.F_WEIGHT, |
| | | PartLevel = cntritem.LEV, |
| | | WmsLot = cntritem.WmsLot, |
| | | WeightBag = cntritem.F_WEIGHT1, |
| | | CurBagNum = (int)cntritem.F_QTY, |
| | | InitBagNum = cntritem.F_QTY1 |
| | | WeightBag = weightBag, |
| | | CurBagNum = curBagNum, |
| | | InitBagNum = initBagNum |
| | | }); |
| | | |
| | | |