| | |
| | | _stationManagerRepository = stationManagerRepository; |
| | | } |
| | | |
| | | static Dictionary<string, string> TCRoadWay = new Dictionary<string, string>() |
| | | { |
| | | { "TC05", "SC02-SC04" }, |
| | | { "TC06", "SC06-SC08" }, |
| | | }; |
| | | //static Dictionary<string, string> TCRoadWay = new Dictionary<string, string>() |
| | | //{ |
| | | // { "TC05", "SC02-SC04" }, |
| | | // { "TC06", "SC06-SC08" }, |
| | | //}; |
| | | |
| | | public async Task Execute(IJobExecutionContext context) |
| | | { |
| | |
| | | Dt_Task task = null; |
| | | if (station.stationChildCode == "TC05") |
| | | { |
| | | //var executeTaks = _taskRepository.QueryData(x => (x.Roadway == "SC02" || x.Roadway == "SC04") && x.TaskState <= (int)TaskOutStatusEnum.SC_OutFinish).OrderBy(x => x.CreateDate).FirstOrDefault(); |
| | | //var executeTaks = _taskRepository.QueryData(x => (x.Roadway == "SC02" || x.Roadway == "SC04") && x.TaskState == (int)TaskOutStatusEnum.Line_OutExecuting).OrderBy(x => x.CreateDate).FirstOrDefault(); |
| | | |
| | | var leftTask = _taskRepository.QueryData(x => (x.Roadway == "SC02" || x.Roadway == "SC04") && x.TaskState <= (int)TaskOutStatusEnum.SC_OutFinish).OrderBy(x => x.CreateDate).FirstOrDefault(); |
| | | |