| | |
| | | } |
| | | Dt_Task task = _mapper.Map<Dt_Task>(item); |
| | | task.Creater = "WMS"; |
| | | //绌鸿溅鍏ュ簱 |
| | | if (item.TaskType == (int)TaskInboundTypeEnum.InInventory) |
| | | { |
| | | task.TaskType= (int)TaskInboundTypeEnum.InInventory; |
| | | task.TaskState= (int)TaskInStatusEnum.InNew; |
| | | |
| | | } |
| | | else if(item.TaskType==(int)TaskOutboundTypeEnum.OutInventory) |
| | | if(item.TaskType==(int)TaskOutboundTypeEnum.OutInventory) |
| | | { |
| | | task.TaskType=(int)TaskOutboundTypeEnum.OutInventory; |
| | | task.TaskState=(int)TaskOutStatusEnum.OutNew; |
| | | |
| | | } |
| | | else if (item.TaskType == (int)TaskOutboundTypeEnum.Outbound) |
| | | { |
| | | task.TaskType = (int)TaskOutboundTypeEnum.Outbound; |
| | | task.TaskState = (int)TaskOutStatusEnum.OutNew; |
| | | } |
| | | else if (item.TaskType == (int)TaskInboundTypeEnum.Inbound) |
| | | { |
| | | task.TaskType = (int)TaskInboundTypeEnum.Inbound; |
| | | task.TaskState = (int)TaskInStatusEnum.InNew; |
| | | } |
| | | else if (item.TaskType == (int)TaskOutboundTypeEnum.Outbound) |
| | | else if (item.TaskType == (int)TaskInboundTypeEnum.InInventory) |
| | | { |
| | | task.TaskType = (int)TaskOutboundTypeEnum.Outbound; |
| | | task.TaskState = (int)TaskOutStatusEnum.OutNew; |
| | | task.TaskType = (int)TaskInboundTypeEnum.InInventory; |
| | | task.TaskState = (int)TaskInStatusEnum.InNew; |
| | | } |
| | | else if (item.TaskType == (int)TaskInboundTypeEnum.InPick) |
| | | { |
| | | task.TaskType = (int)TaskInboundTypeEnum.InPick; |
| | | task.TaskState = (int)TaskInStatusEnum.InNew; |
| | | } |
| | | tasks.Add(task); |
| | | } |