| | |
| | | using Microsoft.VisualBasic.FileIO; |
| | | using Quartz; |
| | | using SixLabors.ImageSharp.PixelFormats; |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Common.TaskEnum; |
| | | using WIDESEAWCS_Communicator; |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | | using WIDESEAWCS_Core.Helper; |
| | | using WIDESEAWCS_IBasicInfoService; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | |
| | | private readonly IApiInfoService _apiInfoService; |
| | | private readonly IRGVLocationInfoService _rGVLocationInfoService; |
| | | private readonly IStationMangerService _stationMangerService; |
| | | private readonly ITrackloginfoService _trackloginfoService; |
| | | private readonly IUnitOfWorkManage _unitOfWorkManage; |
| | | private readonly IAGVCartInfoService _agvcartInfoService; |
| | | |
| | | public TaskJob(ITaskService taskService, IApiInfoService apiInfoService, IRGVLocationInfoService rGVLocationInfoService, IStationMangerService stationMangerService) |
| | | public TaskJob(ITaskService taskService, IApiInfoService apiInfoService, IRGVLocationInfoService rGVLocationInfoService, IStationMangerService stationMangerService, ITrackloginfoService trackloginfoService, IUnitOfWorkManage unitOfWorkManage, IAGVCartInfoService agvcartInfoService) |
| | | { |
| | | _taskService = taskService;//娉ㄥ叆 |
| | | _apiInfoService = apiInfoService; |
| | | _rGVLocationInfoService = rGVLocationInfoService; |
| | | _stationMangerService = stationMangerService; |
| | | _trackloginfoService = trackloginfoService; |
| | | _unitOfWorkManage = unitOfWorkManage; |
| | | _agvcartInfoService = agvcartInfoService; |
| | | } |
| | | |
| | | public Task Execute(IJobExecutionContext context) |
| | | { |
| | | try |
| | | { |
| | | SendTask(); |
| | | SendNewTask(); |
| | | |
| | | SendWaitToTask(); |
| | | } |