| | |
| | | }, |
| | | new CodePath() |
| | | { |
| | | type="00", |
| | | type="04", |
| | | positionCode=agvTask.NextAddress |
| | | } |
| | | }, |
| | |
| | | var WaitToTasks = _taskService.Db.Queryable<Dt_Task>().Where(x => x.TaskState == TaskStatusEnum.AGV_WaitToExecute.ObjToInt() && nameof(AGV_ZHJob).Contains(x.DeviceCode)).ToList().OrderBy(x => x.Grade).ThenBy(x => x.CreateDate).ToList(); |
| | | foreach (var WaitToTask in WaitToTasks) |
| | | { |
| | | AgvSecureReplyDTO replyDTO = new AgvSecureReplyDTO(); |
| | | if (WaitToTask.TaskType.GetTaskTypeGroup() == TaskTypeGroup.InboundGroup) |
| | | { |
| | | if (WaitToTasks.FirstOrDefault(x => x.TaskState == TaskStatusEnum.AGV_Puting.ObjToInt() || x.TaskState == TaskStatusEnum.Finish.ObjToInt()) != null) |
| | |
| | | continue; |
| | | } |
| | | otherDevice.SetValue(GroundStationDBName.W_PutPalletType, WaitToTask.PalletType, stationManger.StationCode); |
| | | |
| | | replyDTO.ReqCode = Guid.NewGuid().ToString().Replace("-", "");//WaitToTask.TaskNum.ToString(), |
| | | replyDTO.taskCode = WaitToTask.AgvTaskNum; |
| | | replyDTO.nextPositionCode = new CodePath() |
| | | { |
| | | type="00", |
| | | positionCode= stationManger.AGVStationCode |
| | | }; |
| | | } |
| | | else |
| | | { |
| | |
| | | { |
| | | continue; |
| | | } |
| | | replyDTO.ReqCode = Guid.NewGuid().ToString().Replace("-", "");//WaitToTask.TaskNum.ToString(), |
| | | replyDTO.taskCode = WaitToTask.AgvTaskNum; |
| | | } |
| | | |
| | | AgvSecureReplyDTO replyDTO = new AgvSecureReplyDTO() |
| | | { |
| | | ReqCode = Guid.NewGuid().ToString().Replace("-", ""), //WaitToTask.TaskNum.ToString(), |
| | | taskCode = WaitToTask.AgvTaskNum, |
| | | }; |
| | | WebResponseContent content = _taskService.AgvSecureReply(replyDTO); |
| | | if (content.Status && WaitToTask.TaskType.GetTaskTypeGroup() == TaskTypeGroup.InboundGroup) |
| | | { |