| | |
| | | snLst.Add(new BIZ_WMS_TRANSFER_SN() |
| | | { |
| | | AUTH_ORG = warehouse.OrgCode, |
| | | BILLCODE = input.BillCode, |
| | | ORDER_NO = input.BillCode, |
| | | SN = item.SN, |
| | | STATUS = WMS_ITEM.STATUSs.WaitIn.GetValue(), |
| | | ITEM_CODE = snData.Where(i => i.SN == item.SN).FirstOrDefault()?.ITEM_CODE, |
| | | QTY = item.Qty, |
| | | BILLLINE = dicitemcode[item.ItemCode] |
| | | ORDER_LINE = dicitemcode[item.ItemCode] |
| | | }); |
| | | } |
| | | } |
| | |
| | | |
| | | if (snLst.Any()) |
| | | { |
| | | var history = db.Queryable<BIZ_WMS_TRANSFER_SN>().Where(i => i.BILLCODE == input.BillCode).ToList(); |
| | | var history = db.Queryable<BIZ_WMS_TRANSFER_SN>().Where(i => i.ORDER_NO == input.BillCode).ToList(); |
| | | if (history.Any()) |
| | | { |
| | | db.Deleteable(history).ExecuteCommand(); |
| | |
| | | sqn++; |
| | | var itemcode = dic[sqn]; |
| | | var whUnit = whUnits.FirstOrDefault(q => q.WH_CODE + "@" + q.LOCATION_CODE == input.WarehouseCode + "@" + item.Location); |
| | | var mesCount = mesData.Count != 0 ? (mesData.FirstOrDefault(i => i.SHIPPING_SN == item.SN).SO_NUMBER).ToDecimal() : 0; |
| | | var mesCount = mesData.Count != 0 ? (mesData.FirstOrDefault(i => i.SHIPPING_SN == item.SN).SO_NUMBER).ToDouble() : 0; |
| | | if (whUnit.IsNullOrEmpty()) |
| | | { |
| | | Logger.Scheduler.Info($"当前工单:{input.WorkOrder} 未能查询到当前库位/储位{input.WarehouseCode}/{item.Location}信息,请确认该库位/储位是否存在!"); |
| | |
| | | #region 添加 SN-Box数据 |
| | | |
| | | var whUnit = whUnits.FirstOrDefault(q => q.WH_CODE + "@" + q.LOCATION_CODE == input.WarehouseCode + "@" + item.Location); |
| | | var mesCount = mesData.Count != 0 ? (mesData.FirstOrDefault(i => i.SHIPPING_SN == item.SN).SO_NUMBER).ToDecimal() : 0; |
| | | var mesCount = mesData.Count != 0 ? (mesData.FirstOrDefault(i => i.SHIPPING_SN == item.SN).SO_NUMBER).ToDouble() : 0; |
| | | pkgModel.Add(new WMS_ITEM_PKG() |
| | | { |
| | | AUTH_ORG = inData?.AUTH_ORG, |
| | |
| | | /// <param name="input"></param> |
| | | /// <param name="Count"></param> |
| | | /// <returns></returns> |
| | | public List<BIZ_ERP_PROD_IN_DTL> ChangeDTL(List<BIZ_ERP_PROD_IN_DTL> input, decimal Count) |
| | | public List<BIZ_ERP_PROD_IN_DTL> ChangeDTL(List<BIZ_ERP_PROD_IN_DTL> input, double Count) |
| | | { |
| | | var model = new List<BIZ_ERP_PROD_IN_DTL>(); |
| | | var data = input.Where(i => i.INSTOCKQTY < i.PRQTY).OrderBy(i => i.BILLLINE).ToList(); |