From 733e63cb362f17aea4a1020654fa348a0d0c1f06 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期一, 24 二月 2025 00:08:59 +0800
Subject: [PATCH] 优化入库逻辑,优化直接出库逻辑,优化移库任务逻辑

---
 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ProductionLineJob/CommonProductionLineJob.cs |   23 ++++++++++-------------
 1 files changed, 10 insertions(+), 13 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 8ff2a35..10ec77a 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"
@@ -30,23 +30,20 @@
             _taskRepository = taskRepository;
             _routerService = routerService;
         }
-        //static int i = 0;
+        //static int i = 1;
         public Task Execute(IJobExecutionContext context)
         {
             try
             {
-                //if (i < 1)
+                //ProductionLineDTO MaterielGroupDTO = new ProductionLineDTO()
                 //{
-                //    i++;
-                //    ProductionLineDTO MaterielGroupDTO = new ProductionLineDTO()
-                //    {
-                //        stationCode = "MDX01",
-                //        traytype = 4,
-                //        Barcode = "A0216",
-                //        batchNo = "20250113T2",
-                //    };
-                //    var content = ProductionLineToWMSRequest(MaterielGroupDTO);
-                //}
+                //    stationCode = "MDX01",
+                //    traytype = 4,
+                //    Barcode = "25" + i.ToString("000000"),
+                //    batchNo = "20250222T3",
+                //};
+                //var content = ProductionLineToWMSRequest(MaterielGroupDTO);
+                //i++;
                 #region MyRegion
                 //OtherDevice ProductionLine = (OtherDevice)context.JobDetail.JobDataMap.Get("JobParams");
                 //if (ProductionLine != null)
@@ -102,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