| | |
| | | using WIDESEA_Common.Log; |
| | | using WIDESEAWCS_Common.TaskEnum; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | | using WIDESEAWCS_Core.Enums; |
| | | using WIDESEAWCS_DTO.Enum; |
| | | using WIDESEAWCS_ISystemServices; |
| | |
| | | private readonly ITaskRepository _taskRepository; |
| | | private readonly IRouterService _routerService; |
| | | private readonly IAgvStationService _agvStationService; |
| | | IRepository<AbnormalTask> _abnormalTask; |
| | | |
| | | |
| | | public SpeStackerCraneJob(ITaskService taskService, ITaskExecuteDetailService taskExecuteDetailService, ITaskRepository taskRepository, IRouterService routerService, IAgvStationService agvStationService) |
| | | public SpeStackerCraneJob(ITaskService taskService, ITaskExecuteDetailService taskExecuteDetailService, ITaskRepository taskRepository, IRouterService routerService, IAgvStationService agvStationService, IRepository<AbnormalTask> abnormalTask) |
| | | { |
| | | _taskService = taskService; |
| | | _taskExecuteDetailService = taskExecuteDetailService; |
| | | _taskRepository = taskRepository; |
| | | _routerService = routerService; |
| | | _agvStationService = agvStationService; |
| | | _abnormalTask = abnormalTask; |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | else if (getStackerObject.StaclerkJobJobStatusValue == RGV_Rgvtaskstutas.AbnormalCompletion && getStackerObject.CurrentRgvtaskid != 0 && getStackerObject.CurrentRgvtaskid != 30001) |
| | | { |
| | | |
| | | string ErrorContent = RgvOperationService.AQMReadAlarminform(); |
| | | if (ErrorContent != null && ErrorContent != "") |
| | | { |
| | | _abnormalTask.AddData(new AbnormalTask |
| | | { |
| | | TaskNum = getStackerObject.CurrentRgvtaskid, |
| | | ErrorContent = ErrorContent, |
| | | CreateDate = DateTime.Now, |
| | | Creater = "system", |
| | | }); |
| | | } |
| | | //ä¿®æ¹ä»»å¡ç¶æä¸ºå¼å¸¸å®æ |
| | | _taskService.HandleInAbnormal(getStackerObject.CurrentRgvtaskid); |
| | | |