| | |
| | | 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(), |
| | |
| | | /// <returns>杩斿洖浠诲姟瀹炰綋瀵硅薄锛屽彲鑳戒负null</returns> |
| | | public Dt_Task QueryStackerCraneTask(string deviceNo, string currentAddress = "") |
| | | { |
| | | //鍒ゆ柇鏄惁涓虹┖ |
| | | if (string.IsNullOrEmpty(currentAddress)) |
| | | return BaseDal.QueryFirst(x => x.DeviceCode == deviceNo && x.TaskState == (int)TaskStatusEnum.SC_Execute, TaskOrderBy); |
| | | else |