| using AutoMapper; | 
| using Newtonsoft.Json; | 
| using Quartz; | 
| using System; | 
| using System.Collections.Generic; | 
| using System.Linq; | 
| using System.Reflection.Metadata; | 
| using System.Text; | 
| using System.Threading.Tasks; | 
| using WIDESEA_DTO.Agv; | 
| using WIDESEAWCS_Common.TaskEnum; | 
| using WIDESEAWCS_Core; | 
| using WIDESEAWCS_Core.Helper; | 
| using WIDESEAWCS_DTO.TaskInfo; | 
| using WIDESEAWCS_IBasicInfoRepository; | 
| using WIDESEAWCS_ITaskInfoService; | 
| using WIDESEAWCS_Model.Models; | 
| using WIDESEAWCS_QuartzJob; | 
| using WIDESEAWCS_QuartzJob.Service; | 
|   | 
| namespace WIDESEAWCS_Tasks | 
| { | 
|     [DisallowConcurrentExecution] | 
|     public partial class AGV_FLJob : JobBase, IJob | 
|     { | 
|         public readonly ITaskService _taskService; | 
|         private readonly ITaskExecuteDetailService _taskExecuteDetailService; | 
|         private readonly IRouterService _routerService; | 
|         private readonly IStationMangerRepository _stationMangerRepository; | 
|         private readonly IMapper _mapper; | 
|   | 
|         public AGV_FLJob(ITaskService taskService, ITaskExecuteDetailService taskExecuteDetailService, IRouterService routerService, IStationMangerRepository stationMangerRepository, IMapper mapper) | 
|         { | 
|             _taskService = taskService; | 
|             _taskExecuteDetailService = taskExecuteDetailService; | 
|             _routerService = routerService; | 
|             _stationMangerRepository = stationMangerRepository; | 
|             _mapper = mapper; | 
|         } | 
|         public Task Execute(IJobExecutionContext context) | 
|         { | 
|             try | 
|             { | 
|                 SendAGVTask(); | 
|                 ContinueAGVTask(); | 
|             } | 
|             catch (Exception ex) | 
|             { | 
|                 Console.Out.WriteLine(nameof(AGV_FLJob) + ":" + ex.Message); | 
|             } | 
|             return Task.CompletedTask; | 
|         } | 
|     } | 
| } |