| | |
| | | if (string.IsNullOrEmpty(task.Roadway) && string.IsNullOrEmpty(task.NextAddress)) |
| | | { |
| | | WebResponseContent content = _taskService.AssignYLRoadwayNo(task.PalletCode,weight: conveyorLineInfoRead.WR_Weight, thickness: conveyorLineInfoRead.WR_Height, wide: conveyorLineInfoRead.WR_Width); |
| | | if (!content.Status) |
| | | if (content.Status) |
| | | { |
| | | WriteError(item.StationCode, $"璇锋眰鍏ュ簱澶辫触锛歿content.Message}"); |
| | | } |
| | | string roadWay = content.Data.ToString(); |
| | | //鑾峰彇璺敱閰嶇疆 |
| | | List<Dt_Router> routers = _routerRepository.QueryData(x => x.InOutType == task.TaskType && task.CurrentAddress == x.StartPosi && x.ChildPosiDeviceCode== roadWay); |
| | |
| | | } |
| | | else |
| | | { |
| | | WriteError(item.StationCode, $"璇锋眰鍏ュ簱澶辫触锛歿content.Message}"); |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | | device.SetValue(WR_CLineYLDB.WR_Task, task.TaskNum, item.StationCode); |
| | | device.SetValue(WR_CLineYLDB.WR_ToHode, task.NextAddress, item.StationCode); |
| | | device.SetValue(WR_CLineYLDB.WR_Width, task.TaskLength, item.StationCode); |