copy from "\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServices/WIDESEAWCS_Tasks/\347\240\201\345\236\233/MDJob_CP.cs"
copy to "\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServices/WIDESEAWCS_Tasks/\347\240\201\345\236\233/MDJob4_CP.cs"
| 文件从 项目代码/WCS/WCSServices/WIDESEAWCS_Tasks/码垛/MDJob_CP.cs 复制 |
| | |
| | | namespace WIDESEAWCS_Tasks |
| | | { |
| | | [DisallowConcurrentExecution] |
| | | public class MDJob_CP : JobBase, IJob |
| | | public class MDJob4_CP : JobBase, IJob |
| | | { |
| | | private readonly ICacheService _cacheService; |
| | | private readonly IStationMangerRepository _stationMangerRepository; |
| | |
| | | private readonly IStationPackInfoRepository _stationPackInfoRepository; |
| | | private readonly List<Dt_WarehouseDevice> warehouseDevices; |
| | | |
| | | public MDJob_CP(ICacheService cacheService, IStationMangerRepository stationMangerRepository, IPackaxisRepository packaxisRepository, IPackaxisTaskRepository packaxisTaskRepository,IPackaxisTaskService packaxisTaskService, IStationPackInfoRepository stationPackInfoRepository) |
| | | public MDJob4_CP(ICacheService cacheService, IStationMangerRepository stationMangerRepository, IPackaxisRepository packaxisRepository, IPackaxisTaskRepository packaxisTaskRepository,IPackaxisTaskService packaxisTaskService, IStationPackInfoRepository stationPackInfoRepository) |
| | | { |
| | | _cacheService = cacheService; |
| | | _stationMangerRepository = stationMangerRepository; |
| | |
| | | if (flag && value != null) |
| | | { |
| | | OtherDevice device = (OtherDevice)value; |
| | | if (!device.IsConnected) |
| | | { |
| | | return Task.CompletedTask; |
| | | } |
| | | List<Dt_StationManger> stationMangers = _stationMangerRepository.QueryData(x => x.StackerCraneCode == device.DeviceCode && x.StationType == StationTypeEnum.StationType_InStartAndOutEnd.ObjToInt()); |
| | | //鑾峰彇鍗忚 |
| | | DeviceProDTO? deviceProRead = device.DeviceProDTOs.Where(x => x.DeviceChildCode == device.DeviceCode && x.DeviceProParamType == nameof(R_MDDB)).OrderBy(x => x.DeviceProOffset).FirstOrDefault(); |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | WriteError(nameof(MDJob_CP),ex.Message); |
| | | WriteError(nameof(MDJob4_CP),ex.Message); |
| | | } |
| | | return Task.CompletedTask; |
| | | } |