From 6ce619b328af4ec209a8a15ef5ba3416fd956c14 Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期日, 21 七月 2024 19:51:14 +0800
Subject: [PATCH] 产品信息增加权限查询

---
 Tiger.Business.MES/Transaction/CollectNode.cs |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/Tiger.Business.MES/Transaction/CollectNode.cs b/Tiger.Business.MES/Transaction/CollectNode.cs
index c9bc4ea..b1527ff 100644
--- a/Tiger.Business.MES/Transaction/CollectNode.cs
+++ b/Tiger.Business.MES/Transaction/CollectNode.cs
@@ -205,9 +205,13 @@
                     wipSN.OPER_CODE = curNode.OPER_CODE;
                     wipSN.SEGMENT = curNode.SEGMENT;
                     wipSN.OPERATION_TIME = DateTime.Now;
-                    wipSN.SFTS_CODE = CurLine.SFTS_CODE;
-                    //wipSN.SFT_CODE = CurBatch.WO.ROUTE_CODE;
-                    //wipSN.PRD_CODE = CurBatch.WO.ROUTE_CODE;
+                    var curShiftPeriod = GetShiftPeriodForNow();
+                    if (!curShiftPeriod.IsNullOrEmpty())
+                    {
+                        wipSN.SFTS_CODE = curShiftPeriod.ShiftSys.SFTS_CODE;
+                        wipSN.SFT_CODE = curShiftPeriod.Shift.SFT_CODE;
+                        wipSN.PRD_CODE = curShiftPeriod.Period.PRD_CODE;
+                    }
                     CurBatch.StartWorking(UserCode);
 
                     //濡傛灉鏄姇鍏ョ珯

--
Gitblit v1.9.3