| | |
| | | private void HandleNewTask(CommonConveyorLine_GW conveyorLine, ConveyorLineTaskCommand_After command, string childDeviceCode) |
| | | { |
| | | Dt_StationManager stationManager = _stationManagerRepository.QueryFirst(x => x.stationPLC == conveyorLine.DeviceCode && x.stationChildCode == childDeviceCode); |
| | | if ((conveyorLine.DeviceCode == "1003" && childDeviceCode == "1016") || (conveyorLine.DeviceCode == "1005" && childDeviceCode == "1048")) |
| | | { |
| | | CreateAndSendEmptyTrayTask(conveyorLine, command, childDeviceCode); |
| | | } |
| | | else if (stationManager.stationType == 1) |
| | | //if ((conveyorLine.DeviceCode == "1003" && childDeviceCode == "1016") || (conveyorLine.DeviceCode == "1005" && childDeviceCode == "1048")) |
| | | //{ |
| | | // CreateAndSendEmptyTrayTask(conveyorLine, command, childDeviceCode); |
| | | //} |
| | | if (stationManager.stationType == 1) |
| | | { |
| | | var task = _taskService.QueryExecutingConveyorLineTask(command.ConveyorLineTaskNum, childDeviceCode); |
| | | if (task != null) |
| | |
| | | } |
| | | |
| | | } |
| | | else if ((conveyorLine.DeviceCode == "1001" && childDeviceCode == "1068")) |
| | | { |
| | | ConveyorLineOutFinish(conveyorLine, command, childDeviceCode); |
| | | } |
| | | //else if ((conveyorLine.DeviceCode == "1001" && childDeviceCode == "1068")) |
| | | //{ |
| | | // ConveyorLineOutFinish(conveyorLine, command, childDeviceCode); |
| | | //} |
| | | } |
| | | |
| | | /// <summary> |