| | |
| | | task.NextAddress = router.NextPosi; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (taskTypeGroup == TaskTypeGroup.InboundGroup) |
| | | { |
| | | task.CurrentAddress = router.StartPosi; |
| | | task.NextAddress = ""; |
| | | task.DeviceCode = router.ChildPosiDeviceCode; |
| | | } |
| | | } |
| | | } |
| | | tasks.Add(task); |
| | | } |
| | |
| | | /// <param name="palletCode"></param> |
| | | /// <param name="sourceAddress"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent RequestWMSTaskSimple(string palletCode, string sourceAddress, int taskType=630) |
| | | public WebResponseContent RequestWMSTaskSimple(string palletCode, string sourceAddress, string roadWay="", int taskType=630) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | |
| | | Id = 1, |
| | | TaskNum = DateTime.Now.ToString("mmss").ObjToInt(), |
| | | PalletCode="", |
| | | RoadWay="", |
| | | RoadWay= roadWay ?? "", |
| | | TaskType= taskType, |
| | | PalletType=1, |
| | | TaskStatus=TaskStatusEnum.New.ObjToInt(), |