dengjunjie
2025-04-26 18d2f40bbf40469b033de6f07ca8a8e3bc191132
项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ProductionLineJob/CommonProductionLineJob.cs
@@ -40,6 +40,7 @@
                OtherDevice ProductionLine = (OtherDevice)context.JobDetail.JobDataMap.Get("JobParams");
                if (ProductionLine != null)
                {
                    #region MyRegion
                    var request = ProductionLine.GetValue<ProductionLineDBName, short>(ProductionLineDBName.request);
                    if (request == 1)
                    {
@@ -48,19 +49,24 @@
                        if (traytype == 4)
                        {
                            var Barcode = ProductionLine.GetValue<ProductionLineDBName, string>(ProductionLineDBName.trayBarcode).Replace("\0", "");
                            var batchNo = ProductionLine.GetValue<ProductionLineDBName, string>(ProductionLineDBName.batchNo).Replace("\0", "");
                            ProductionLineDTO MaterielGroupDTO = new ProductionLineDTO()
                            var task = _taskRepository.QueryFirst(x => x.PalletCode == Barcode);
                            if (task == null)
                            {
                                stationCode = ProductionLine.DeviceCode,
                                traytype = traytype,
                                Barcode = Barcode,
                                batchNo = batchNo,
                            };
                            var content = ProductionLineToWMSRequest(MaterielGroupDTO);
                            if (content.Status)
                                ProductionLine.SetValue(ProductionLineDBName.Wrequest, request);
                                var batchNo = ProductionLine.GetValue<ProductionLineDBName, string>(ProductionLineDBName.batchNo).Replace("\0", "");
                                ProductionLineDTO MaterielGroupDTO = new ProductionLineDTO()
                                {
                                    stationCode = ProductionLine.DeviceCode,
                                    traytype = traytype,
                                    Barcode = Barcode,
                                    batchNo = batchNo,
                                };
                                var content = ProductionLineToWMSRequest(MaterielGroupDTO);
                                if (content.Status)
                                    ProductionLine.SetValue(ProductionLineDBName.Wrequest, request);
                            }
                        }
                    }
                    #endregion
                }
                #endregion
            }