| | |
| | | using System.Linq; |
| | | using System.Threading; |
| | | using static HH.WCS.Mobox3.SXJK.api.ApiModel; |
| | | using static HH.WCS.Mobox3.SXJK.api.MoboxController; |
| | | using static HH.WCS.Mobox3.SXJK.api.OtherModel; |
| | | using static HH.WCS.Mobox3.SXJK.api.WmsController; |
| | | using static HH.WCS.Mobox3.SXJK.api.WmsController.PutawayOrderIn; |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 入库单重置 |
| | | /// </summary> |
| | | /// <param name="model"></param> |
| | | /// <returns></returns> |
| | | public static SimpleResult inventoryReceiptReset(InventoryReceiptResetModel model) |
| | | { |
| | | SimpleResult simpleResult = new SimpleResult(); |
| | | var inStockList = WMSHelper.GetInStockList(model.asnNo); |
| | | if (inStockList != null) |
| | | { |
| | | var inStockListChildren = WMSHelper.getInstockListChild(model.asnNo); |
| | | if(inStockListChildren.Count > 0) |
| | | { |
| | | foreach (var child in inStockListChildren) |
| | | { |
| | | var locCntrRel = LocationHelper.GetLocCntrRelByCntr(child.S_TRACE_ID); |
| | | if (locCntrRel != null) |
| | | { |
| | | LocationHelper.UnBindingLoc(locCntrRel.S_LOC_CODE, new List<string>() { locCntrRel.S_CNTR_CODE }); |
| | | } |
| | | |
| | | ContainerHelper.deleteCntrItem(child.S_TRACE_ID); |
| | | } |
| | | } |
| | | } |
| | | return simpleResult; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 更新抽检信息 |
| | | /// </summary> |
| | | /// <param name="model"></param> |