| | |
| | | { |
| | | try |
| | | { |
| | | if (command.Barcode.IsNullOrEmpty()) return; |
| | | |
| | | var AGVFinishTask = _taskService.QueryBarCodeAGVFinishTask(command.TaskNum, stationManager.StationCode); |
| | | if (AGVFinishTask == null) |
| | | { |
| | | var log = $"æ¶é´ï¼ã{DateTime.Now}ãã{conveyorLine.DeviceName}ãæçå·ï¼ã{command.Barcode}ãä»»å¡å·ï¼ã{command.TaskNum}ã设å¤ç¼ç ï¼ã{stationManager.StationCode}ããæªæ¾å°ä»»å¡ã"; |
| | | ConsoleHelper.WriteSuccessLine(log); |
| | | ConsoleHelper.WriteErrorLine(log); |
| | | |
| | | WriteInfo(conveyorLine.DeviceName, log); |
| | | return; |
| | |
| | | bool sendFlag = SendCommand(taskCommand, conveyorLine, stationManager.StationCode); |
| | | if (sendFlag) |
| | | { |
| | | //_taskService.UpdateTask(task, TaskStatusEnum.Line_Executing); |
| | | _taskService.UpdateTaskStatusToNext(ExecuteTask, stationManager); |
| | | } |
| | | } |