dengjunjie
2025-03-27 bb56b2b6f21acb7c69c02585e5bc534d2f67715f
项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ProductionLineJob/CommonProductionLineJob.cs
@@ -40,6 +40,15 @@
                OtherDevice ProductionLine = (OtherDevice)context.JobDetail.JobDataMap.Get("JobParams");
                if (ProductionLine != null)
                {
                    //ProductionLineDTO MaterielGroupDTO = new ProductionLineDTO()
                    //{
                    //    stationCode = ProductionLine.DeviceCode,
                    //    traytype = 4,
                    //    Barcode = "25000037",
                    //    batchNo = "250325T1",
                    //};
                    //var content = ProductionLineToWMSRequest(MaterielGroupDTO);
                    #region MyRegion
                    var request = ProductionLine.GetValue<ProductionLineDBName, short>(ProductionLineDBName.request);
                    if (request == 1)
                    {
@@ -48,6 +57,9 @@
                        if (traytype == 4)
                        {
                            var Barcode = ProductionLine.GetValue<ProductionLineDBName, string>(ProductionLineDBName.trayBarcode).Replace("\0", "");
                            var task = _taskRepository.QueryFirst(x => x.PalletCode == Barcode);
                            if (task == null)
                            {
                            var batchNo = ProductionLine.GetValue<ProductionLineDBName, string>(ProductionLineDBName.batchNo).Replace("\0", "");
                            ProductionLineDTO MaterielGroupDTO = new ProductionLineDTO()
                            {
@@ -64,6 +76,8 @@
                }
                #endregion
            }
                #endregion
            }
            catch (Exception ex)
            {
                Console.Out.WriteLine(nameof(CommonProductionLineJob) + ":" + ex.ToString());