| | |
| | | if (task.TaskType == TaskTypeEnum.Outbound.ObjToInt()) |
| | | { |
| | | var content = TakeFinish(task.CurrentAddress); |
| | | if (!content.Status) throw new Exception(content.Message); |
| | | if (!content.Status) |
| | | { |
| | | task.TaskState = TaskStatusEnum.AGV_TakeError.ObjToInt(); |
| | | _taskRepository.UpdateData(task); |
| | | throw new Exception(content.Message); |
| | | } |
| | | task.TaskState = TaskStatusEnum.AGV_Finish.ObjToInt(); |
| | | var up = _taskRepository.DeleteAndMoveIntoHty(task, OperateTypeEnum.鑷姩瀹屾垚); |
| | | _taskService.TaskCompleted(task.TaskNum); |
| | |
| | | |
| | | OtherDevice otherDevice = (OtherDevice)device; |
| | | otherDevice.SetValue(GroundStationDBName.W_PutFinish, true, stationManger.StationCode); |
| | | Thread.Sleep(1000); |
| | | otherDevice.SetValue(GroundStationDBName.W_PutFinish, false, stationManger.StationCode); |
| | | return WebResponseContent.Instance.OK(); |
| | | } |
| | | catch (Exception ex) |