| | |
| | | |
| | | if (CurPREP.Order.IsNullOrEmpty() || !CurPREP.Order.SourceOrders.Any(q => q.SOURCE_ORDER == inputOrder.SOURCE_ORDER)) |
| | | { |
| | | action = CurPREP.AddOrder(inputOrder.BIZ_TYPE.GetEnum<BIZ_WMS_PREP.BIZ_TYPEs>(), inputOrder.SOURCE_CODE); |
| | | action = CurPREP.AddOrder(inputOrder.BIZ_TYPE.GetEnum<BIZ_WMS_PREP.BIZ_TYPEs>(), inputOrder.SOURCE_ORDER); |
| | | } |
| | | else |
| | | { |
| | |
| | | public async Task<ApiAction<BIZ_WMS_PREP>> GetPrepInfo() |
| | | { |
| | | var action = new ApiAction<BIZ_WMS_PREP>(); |
| | | CurPREP.Order = MainDB.Queryable<BIZ_WMS_PREP>().Where(q => q.ID == CurPREP.Order.ID).IncludesAllFirstLayer().First(); |
| | | |
| | | var prepId = CurPREP?.Order?.ID; |
| | | CurPREP.Order = MainDB.Queryable<BIZ_WMS_PREP>().Where(q => q.ID == prepId).IncludesAllFirstLayer().First(); |
| | | action.Data = CurPREP.Order; |
| | | return action; |
| | | } |
| | |
| | | SHELF_CODE = CurInvItem.Shelf.SHELF_CODE, |
| | | LOCATION_ID = CurInvItem.Location.ID, |
| | | LOCATION_CODE = CurInvItem.Location.LOCATION_CODE, |
| | | PREP_USER = UserCode, |
| | | DOWN_TIME = DateTime.Now, |
| | | SMT_NO = CurPrepDtl.SMT_NO, |
| | | STATION_NO = CurPrepDtl.STATION_NO, |
| | | FEEDER_NO = CurPrepDtl.FEEDER_NO, |