| | |
| | | _taskRepository = taskRepository; |
| | | _routerService = routerService; |
| | | } |
| | | //static int i = 0; |
| | | //static int i = 1; |
| | | public Task Execute(IJobExecutionContext context) |
| | | { |
| | | try |
| | | { |
| | | //if (i < 1) |
| | | //ProductionLineDTO MaterielGroupDTO = new ProductionLineDTO() |
| | | //{ |
| | | // i++; |
| | | // ProductionLineDTO MaterielGroupDTO = new ProductionLineDTO() |
| | | // { |
| | | // stationCode = "MDX01", |
| | | // traytype = 4, |
| | | // Barcode = "A0216", |
| | | // batchNo = "20250113T2", |
| | | // }; |
| | | // var content = ProductionLineToWMSRequest(MaterielGroupDTO); |
| | | //} |
| | | // stationCode = "MDX01", |
| | | // traytype = 4, |
| | | // Barcode = "25" + i.ToString("000000"), |
| | | // batchNo = "20250222T3", |
| | | //}; |
| | | //var content = ProductionLineToWMSRequest(MaterielGroupDTO); |
| | | //i++; |
| | | #region MyRegion |
| | | //OtherDevice ProductionLine = (OtherDevice)context.JobDetail.JobDataMap.Get("JobParams"); |
| | | //if (ProductionLine != null) |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | Console.Out.WriteLine(nameof(CommonProductionLineJob) + ":" + ex.ToString()); |
| | | //Console.Out.WriteLine(nameof(CommonProductionLineJob) + ":" + ex.ToString()); |
| | | } |
| | | return Task.CompletedTask; |
| | | } |