| | |
| | | |
| | | #endregion << 版 本 注 释 >> |
| | | |
| | | using AutoMapper; |
| | | using MapsterMapper; |
| | | using Microsoft.Extensions.Configuration; |
| | | using Quartz; |
| | | using SqlSugar; |
| | |
| | | if (command.TaskNo > 0) |
| | | { |
| | | Dt_Task task = _taskService.QueryExecutingConveyorLineTask(command.TaskNo, childDeviceCode); |
| | | if (task.IsNullOrEmpty()) |
| | | if (!task.IsNullOrEmpty()) |
| | | { |
| | | _conveyorLineDispatch.RequestInbound(conveyorLine, command, childDeviceCode); |
| | | // 处理任务状态 |
| | | ProcessTaskState(conveyorLine, command, task, childDeviceCode); |
| | | //_conveyorLineDispatch.RequestInbound(conveyorLine, command, childDeviceCode); |
| | | return; |
| | | } |
| | | |
| | | // 处理任务状态 |
| | | ProcessTaskState(conveyorLine, command, task, childDeviceCode); |
| | | } |
| | | } |
| | | catch (Exception innerEx) |
| | |
| | | const int InFinish = (int)TaskInStatusEnum.InFinish; |
| | | const int OutFinish = (int)TaskOutStatusEnum.OutFinish; |
| | | |
| | | int state = task.TaskState; |
| | | int state = task.TaskStatus; |
| | | bool isTargetAddress = task.TargetAddress == childDeviceCode; |
| | | |
| | | // 处理状态逻辑 |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |