| | |
| | | if (traytype == 4) |
| | | { |
| | | var Barcode = ProductionLine.GetValue<ProductionLineDBName, string>(ProductionLineDBName.trayBarcode).Replace("\0", ""); |
| | | if (string.IsNullOrEmpty(Barcode)) throw new Exception("产线ç³è¯·æçå·ä¸ºç©ºï¼"); |
| | | var task = _taskRepository.QueryFirst(x => x.PalletCode == Barcode); |
| | | if (task == null) |
| | | { |
| | | var batchNo = ProductionLine.GetValue<ProductionLineDBName, string>(ProductionLineDBName.batchNo).Replace("\0", ""); |
| | | if (string.IsNullOrEmpty(batchNo)) throw new Exception("产线ç³è¯·æ¹å·ä¸ºç©ºï¼"); |
| | | ProductionLineDTO MaterielGroupDTO = new ProductionLineDTO() |
| | | { |
| | | stationCode = ProductionLine.DeviceCode, |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | Console.Out.WriteLine(nameof(CommonProductionLineJob) + ":" + ex.ToString()); |
| | | //Console.Out.WriteLine(nameof(CommonProductionLineJob) + ":" + ex.ToString()); |
| | | } |
| | | return Task.CompletedTask; |
| | | } |