| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Common.OrderEnum; |
| | | using WIDESEA_Common.StockEnum; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.BaseRepository; |
| | |
| | | return outStockLockInfo; |
| | | } |
| | | /// <summary> |
| | | /// çæåºåºè¯¦æ
|
| | | /// çæMESåºåºè¯¦æ
|
| | | /// </summary> |
| | | public Dt_OutStockLockInfo GetOutStockLockInfo(Dt_OutMESOrder ouMESOrder, Dt_StockInfo outStock, decimal assignQuantity, int? taskNum = null) |
| | | { |
| | |
| | | BatchNo = ouMESOrder.MaterialLot, |
| | | LocationCode = outStock.LocationCode, |
| | | MaterielName = outStock.MaterielName, |
| | | OrderDetailId = ouMESOrder.Id, |
| | | OrderDetailId = ouMESOrder.OutDetailId, |
| | | OrderNo = ouMESOrder.OutMESOrderNo, |
| | | MakeCode = ouMESOrder.MakeCode, |
| | | MachineName=ouMESOrder.MakeArea.ToString(), |
| | | MaterielId = outStock.MaterielId, |
| | | OriginalQuantity = outStock.StockLength, |
| | | Status = taskNum == null ? OutLockStockStatusEnum.å·²åé
.ObjToInt() : OutLockStockStatusEnum.åºåºä¸.ObjToInt(), |
| | |
| | | return outStockLockInfo; |
| | | } |
| | | /// <summary> |
| | | /// çæåºåºè¯¦æ
|
| | | /// çæç管åºåºè¯¦æ
|
| | | /// </summary> |
| | | public Dt_OutStockLockInfo GetOutStockLockInfo(Dt_OutSGOrder outSGOrder, Dt_OutSGOrderDetail outSGOrderDetail, Dt_StockInfo outStock, decimal assignQuantity, int? taskNum = null) |
| | | { |
| | |
| | | { |
| | | PalletCode = outStock.PalletCode, |
| | | AssignQuantity = assignQuantity, |
| | | OrderType=OutOrderTypeEnum.OutSGPick.ObjToInt(), |
| | | MaterielCode = outSGOrderDetail.MaterialNo, |
| | | BatchNo = "", |
| | | BatchNo = outSGOrderDetail.BoardFluteNo, //æ¥å«æ¹æ¬¡ |
| | | LocationCode = outStock.LocationCode, |
| | | MaterielName = outStock.MaterielName, |
| | | OrderDetailId = outSGOrderDetail.Id, |
| | | OrderNo = outSGOrder.OutSGOrderNo, |
| | | OrderNo = outSGOrder.OrderId, |
| | | MaterielId = outStock.MaterielId, |
| | | OriginalQuantity = outStock.StockLength, |
| | | Status = taskNum == null ? OutLockStockStatusEnum.å·²åé
.ObjToInt() : OutLockStockStatusEnum.åºåºä¸.ObjToInt(), |
| | |
| | | TaskNum = taskNum, |
| | | OrderQuantity = outSGOrderDetail.XqLen, |
| | | Unit = outStock.Unit, |
| | | MachineName=outSGOrderDetail.MachineName |
| | | MachineName=outSGOrderDetail.MachineName, |
| | | }; |
| | | |
| | | return outStockLockInfo; |