| | |
| | | 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(); |