| | |
| | | using System.Reflection; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using AutoMapper; |
| | | using MapsterMapper; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Text; |
| | | using Quartz; |
| | | using WIDESEAWCS_Communicator; |
| | |
| | | List<Task> tasks = new List<Task>(); |
| | | foreach (string childDeviceCode in childDeviceCodes) |
| | | { |
| | | int num = new Random().Next(1, 100); |
| | | if (num < 30) |
| | | { |
| | | throw new CommunicationException("错误测试", CommunicationErrorType.Unknown); |
| | | } |
| | | ConveyorLineTaskCommand command = conveyorLine.ReadCustomer<ConveyorLineTaskCommand>(childDeviceCode); |
| | | if (command != null) |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | |