From 4815ba8990b60ff879b99fec6e77cb73470bdccb Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期五, 19 七月 2024 15:24:25 +0800 Subject: [PATCH] 过站判断当前班次时段并保存 --- Tiger.Business.MES/Transaction/TestNode.cs | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Tiger.Business.MES/Transaction/TestNode.cs b/Tiger.Business.MES/Transaction/TestNode.cs index 3e2ad80..450b654 100644 --- a/Tiger.Business.MES/Transaction/TestNode.cs +++ b/Tiger.Business.MES/Transaction/TestNode.cs @@ -206,9 +206,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