| | |
| | | //var content = ProductionLineToWMSRequest(MaterielGroupDTO); |
| | | //i++; |
| | | #region MyRegion |
| | | //OtherDevice ProductionLine = (OtherDevice)context.JobDetail.JobDataMap.Get("JobParams"); |
| | | //if (ProductionLine != null) |
| | | //{ |
| | | // var request = ProductionLine.GetValue<ProductionLineDBName, short>(ProductionLineDBName.request); |
| | | // if (request == 1) |
| | | // { |
| | | // var traytype = ProductionLine.GetValue<ProductionLineDBName, short>(ProductionLineDBName.trayType); |
| | | // //var content = Request(ProductionLine, traytype, ProductionLine.DeviceCode); |
| | | // if (traytype == 4) |
| | | // { |
| | | // var Barcode = ProductionLine.GetValue<ProductionLineDBName, string>(ProductionLineDBName.trayBarcode); |
| | | // var batchNo = ProductionLine.GetValue<ProductionLineDBName, string>(ProductionLineDBName.batchNo); |
| | | // ProductionLineDTO MaterielGroupDTO = new ProductionLineDTO() |
| | | // { |
| | | // stationCode = ProductionLine.DeviceCode, |
| | | // traytype = traytype, |
| | | // Barcode = Barcode, |
| | | // batchNo = batchNo, |
| | | // }; |
| | | // var content = ProductionLineToWMSRequest(MaterielGroupDTO); |
| | | // if (content.Status) ProductionLine.SetValue(ProductionLineDBName.Wrequest, 1); |
| | | // } |
| | | // } |
| | | //} |
| | | OtherDevice ProductionLine = (OtherDevice)context.JobDetail.JobDataMap.Get("JobParams"); |
| | | if (ProductionLine != null) |
| | | { |
| | | var request = ProductionLine.GetValue<ProductionLineDBName, short>(ProductionLineDBName.request); |
| | | if (request == 1) |
| | | { |
| | | var traytype = ProductionLine.GetValue<ProductionLineDBName, short>(ProductionLineDBName.trayType); |
| | | //var content = Request(ProductionLine, traytype, ProductionLine.DeviceCode); |
| | | if (traytype == 4) |
| | | { |
| | | var Barcode = ProductionLine.GetValue<ProductionLineDBName, string>(ProductionLineDBName.trayBarcode); |
| | | var batchNo = ProductionLine.GetValue<ProductionLineDBName, string>(ProductionLineDBName.batchNo); |
| | | ProductionLineDTO MaterielGroupDTO = new ProductionLineDTO() |
| | | { |
| | | stationCode = ProductionLine.DeviceCode, |
| | | traytype = traytype, |
| | | Barcode = Barcode, |
| | | batchNo = batchNo, |
| | | }; |
| | | var content = ProductionLineToWMSRequest(MaterielGroupDTO); |
| | | if (content.Status) ProductionLine.SetValue(ProductionLineDBName.Wrequest, 1); |
| | | } |
| | | } |
| | | } |
| | | #endregion |
| | | #region MyRegion |
| | | //short[] shorts = { 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 }; |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | //Console.Out.WriteLine(nameof(CommonProductionLineJob) + ":" + ex.ToString()); |
| | | Console.Out.WriteLine(nameof(CommonProductionLineJob) + ":" + ex.ToString()); |
| | | } |
| | | return Task.CompletedTask; |
| | | } |