| | |
| | | { |
| | | try |
| | | { |
| | | if (task.TaskType == TaskTypeEnum.Outbound.ObjToInt()) |
| | | if (task.TaskType == TaskTypeEnum.Outbound.ObjToInt() || task.TaskType == TaskTypeEnum.OutEmpty.ObjToInt()) |
| | | task.CurrentAddress = GetAGVAddress(task.CurrentAddress); |
| | | else |
| | | task.NextAddress = GetAGVAddress(task.NextAddress); |
| | |
| | | { |
| | | TaskCode = task.AgvTaskNum, |
| | | ReqCode = DateTime.Now.ToString("yyyyMMddHHmmss"), |
| | | TaskTyp = task.TaskType == TaskTypeEnum.Outbound.ObjToInt() ? "FLC" : "FLR", |
| | | TaskTyp = task.TaskType < TaskTypeEnum.Inbound.ObjToInt() ? "FLC" : "FLR", |
| | | ctnrCode = task.PalletCode, |
| | | PositionCodePath = new List<CodePath>() |
| | | { |
| | |
| | | } |
| | | }, |
| | | }; |
| | | //WebResponseContent content = _taskService.AgvSendTask(taskDTO, APIEnum.Agv_FLSendTask); |
| | | //if (!content.Status) throw new Exception(content.Message); |
| | | WebResponseContent content = _taskService.AgvSendTask(taskDTO, APIEnum.Agv_FLSendTask); |
| | | if (!content.Status) throw new Exception(content.Message); |
| | | |
| | | task.TaskState = TaskStatusEnum.AGV_Executing.ObjToInt(); |
| | | |
| | |
| | | }; |
| | | var b = Layer > 9 ? "" + Layer : "0" + Layer; |
| | | var c = Column > 9 ? "" + Column : "0" + Column; |
| | | if (Column == 10) c = "010"; |
| | | Address = a + b + c; |
| | | } |
| | | else |