From 9f225bb1f1e26d25c1652d3e1ec2a8f239f69615 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期二, 18 三月 2025 10:41:29 +0800
Subject: [PATCH] 1

---
 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ProductionLineJob/CommonProductionLineJob.cs |   50 +++++++++++++++++++++++++-------------------------
 1 files changed, 25 insertions(+), 25 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ProductionLineJob/CommonProductionLineJob.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ProductionLineJob/CommonProductionLineJob.cs"
index 10ec77a..ae23e5f 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ProductionLineJob/CommonProductionLineJob.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ProductionLineJob/CommonProductionLineJob.cs"
@@ -45,30 +45,30 @@
                 //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 };
@@ -99,7 +99,7 @@
             }
             catch (Exception ex)
             {
-                //Console.Out.WriteLine(nameof(CommonProductionLineJob) + ":" + ex.ToString());
+                Console.Out.WriteLine(nameof(CommonProductionLineJob) + ":" + ex.ToString());
             }
             return Task.CompletedTask;
         }

--
Gitblit v1.9.3