| | |
| | | [DisallowConcurrentExecution] |
| | | public class GantryPositionJob : JobBase, IJob |
| | | { |
| | | |
| | | |
| | | |
| | | public GantryPositionJob() |
| | | { |
| | |
| | | |
| | | public Task Execute(IJobExecutionContext context) |
| | | { |
| | | try |
| | | |
| | | bool flag = context.JobDetail.JobDataMap.TryGetValue("JobParams", out object? value); |
| | | if (flag && value != null && value is OtherDevice) |
| | | { |
| | | bool flag = context.JobDetail.JobDataMap.TryGetValue("JobParams", out object? value); |
| | | if (flag && value != null && value is OtherDevice) |
| | | OtherDevice otherDevice = (OtherDevice)value; |
| | | try |
| | | { |
| | | OtherDevice otherDevice = (OtherDevice)value; |
| | | { |
| | | List<string> hDeviceChildCodes = otherDevice.DeviceProDTOs.Where(x => x.DeviceProParamType == nameof(OPositions.HPositions)).GroupBy(x => x.DeviceChildCode).Select(x => x.Key).ToList(); |
| | | DeviceProDTO deviceProDTOH = otherDevice.DeviceProDTOs.Where(x => x.DeviceProParamType == nameof(OPositions.HPositions)).OrderBy(x => x.DeviceProOffset).First(); |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | WriteError($"{otherDevice.DeviceCode}-{otherDevice.DeviceName}", ex.Message, ex); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | else |
| | | { |
| | | WriteError(nameof(GantryPositionJob), "閿欒", ex); |
| | | WriteError(nameof(CommonConveyorLightJob), "鍙傛暟閿欒,鏈紶閫掕澶囧弬鏁版垨璁惧绫诲瀷閿欒"); |
| | | } |
| | | return Task.CompletedTask; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |