From cd8182d8fefc55c245400936b6330a00e866adbd Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期二, 24 十二月 2024 21:25:06 +0800 Subject: [PATCH] 优化标准上下架 --- Tiger.Business.MES/WorkAction/IPQC.cs | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/Tiger.Business.MES/WorkAction/IPQC.cs b/Tiger.Business.MES/WorkAction/IPQC.cs index ecd6bf3..6034819 100644 --- a/Tiger.Business.MES/WorkAction/IPQC.cs +++ b/Tiger.Business.MES/WorkAction/IPQC.cs @@ -15,11 +15,14 @@ public class IPQC : IIPQC { #region Propertys & Variables + #region 鍥哄畾鍐欐硶锛屽伐搴忎腑鐨勫繀瑕佷俊鎭� + public DbClient MainDB { get; set; } public bool IsFinished { get; set; } = false; public IWorkStep CurStep { get; set; } public IPosition CurPosition { get; set; } public MES_WO_NODE_ACT NodeAct { get; set; } public MES_WO_ACTION Setting { get; set; } + #endregion #endregion Propertys & Variables #region Functions @@ -29,10 +32,16 @@ /// <returns></returns> public void Init(IWorkStep curStep, IPosition position, MES_WO_NODE_ACT nodeAct, MES_WO_ACTION setting) { + #region 鍥哄畾鍐欐硶锛岀粰榛樿鍙橀噺璧嬪�� + MainDB = position.MainDB; CurStep = curStep; CurPosition = position; NodeAct = nodeAct; Setting = setting; + #endregion + + CurStep.Message = Biz.L("绛夊緟娴嬭瘯缁撴灉"); + CurStep.Status = StepStatus.Normal; } /// <summary> @@ -154,6 +163,7 @@ ACT_VALUE_4 = "", ACT_VALUE_5 = "", ACT_RESULT = "Y", + ELAPSED_TIME = CurStep.GetElapsedTime().TotalMilliseconds.ToInt64(), TRACE_INFO = $"鎵ц鎴愬姛", }; wipActs.Add(wipAct); -- Gitblit v1.9.3