| | |
| | | switch (agvUpdateModel.Method.ToUpper()) |
| | | { |
| | | case "END": |
| | | if (task.TaskType == TaskTypeEnum.Outbound.ObjToInt() || task.TaskType == TaskTypeEnum.OutEmpty.ObjToInt() |
| | | || task.TaskType == TaskTypeEnum.OutAllocate.ObjToInt() || task.TaskType == TaskTypeEnum.OutProduct.ObjToInt()) |
| | | if (task.TaskType.GetTaskTypeGroup()==TaskTypeGroup.OutbondGroup) |
| | | PutFinish(task.NextAddress); |
| | | _taskService.TaskCompleted(task.TaskNum); |
| | | break; |
| | |
| | | TakeFinish(task.CurrentAddress); |
| | | //_taskService.UpdateTask(task, TaskStatusEnum.AGV_Executing); |
| | | } |
| | | else if(task.TaskType == TaskTypeEnum.OutProduct.ObjToInt()) |
| | | else if(task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.OutbondGroup) |
| | | { |
| | | task.TaskState = TaskStatusEnum.AGV_Executing.ObjToInt(); |
| | | _taskRepository.UpdateData(task); |