| | |
| | | private readonly ITaskExecuteDetailService _taskExecuteDetailService; |
| | | private readonly ITaskRepository _taskRepository; |
| | | private readonly IRouterService _routerService; |
| | | private readonly IShuttleCarService _shuttleCarService; |
| | | private readonly WIDESEAWCS_IShuttleCar.IShuttleCarService _shuttleCarService; |
| | | private readonly ICacheService _cacheService; |
| | | |
| | | public CommonStackerCraneJob(ITaskService taskService, ITaskExecuteDetailService taskExecuteDetailService, ITaskRepository taskRepository, IRouterService routerService, IShuttleCarService shuttleCarService, ICacheService cacheService) |
| | | public CommonStackerCraneJob(ITaskService taskService, ITaskExecuteDetailService taskExecuteDetailService, ITaskRepository taskRepository, IRouterService routerService, WIDESEAWCS_IShuttleCar.IShuttleCarService shuttleCarService, ICacheService cacheService) |
| | | { |
| | | _taskService = taskService; |
| | | _taskExecuteDetailService = taskExecuteDetailService; |
| | |
| | | #endregion |
| | | |
| | | #region ä»»å¡å®æ |
| | | if (common.CompleteStatus == 2 || common.CompleteStatus == 3 || common.CompleteStatus == 4) |
| | | if ((common.CompleteStatus == 2 || common.CompleteStatus == 3 || common.CompleteStatus == 4) && commonStackerCrane.CurrentTaskNum > 0) |
| | | { |
| | | var remark = "æ£å¸¸å®æ"; |
| | | if (common.CompleteStatus == 2) remark = "æå¨å®æ"; |
| | |
| | | if (common.Onlinestate == (short)Onlinestate.online) |
| | | { |
| | | #region æ¥è¯¢ä»»å¡,é»è¾å¤ç |
| | | if (common.RunStatus == (short)RunStatus.Standby) |
| | | if (common.RunStatus == (short)RunStatus.Standby && common.WriteStatus == (short)WriteStatus.Permit) |
| | | { |
| | | #region ç©¿æ¢è½¦ç§»è½¦/å
çµä»»å¡ |
| | | var Task = _taskService.GetTaskState((int)CarChargingTaskEnum.CarCharging_Finish, (int)TaskOtherTypeEnum.RelocationCarCharging) ?? |
| | |
| | | { |
| | | if (commonStackerCrane.SetValue(StackerCraneDBName.CommandSend, sendFlag)) |
| | | { |
| | | WriteDebug($"{commonStackerCrane.DeviceName}æ¥æ¶ä»»å¡", $"WCSä¸åä»»å¡,ä»»å¡å·ã{task.TaskNum}ã"); |
| | | if (_taskService.TaskInboundTypes.Contains(task.TaskType) || |
| | | _taskService.TaskOutboundTypes.Contains(task.TaskType)) |
| | | commonStackerCrane.LastTaskType = task.TaskType; |