From 6e1296126a4a9b1b808796a5ff2bfadf50da8bcc Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期二, 08 十月 2024 22:54:47 +0800 Subject: [PATCH] 保存工步的数据库提交操作到数据库,增加可以保存完工步数据后,保存附加的内容 --- Tiger.Business.MES/WorkAction/Weighing.cs | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/Tiger.Business.MES/WorkAction/Weighing.cs b/Tiger.Business.MES/WorkAction/Weighing.cs index 6829cc4..091f1a0 100644 --- a/Tiger.Business.MES/WorkAction/Weighing.cs +++ b/Tiger.Business.MES/WorkAction/Weighing.cs @@ -38,6 +38,7 @@ NodeAct = nodeAct; Setting = setting; #endregion + CurPkg = Biz.Db.Queryable<MES_WIP_PKG>().Where(q => q.SN == CurPosition.CurSN && q.AUTH_ORG == CurPosition.WorkBatch.WO.AUTH_ORG).First() ?? new() { AUTH_ORG = CurPosition.WorkBatch.WO.AUTH_ORG, @@ -59,6 +60,9 @@ OPER_CODE = CurPosition.CurWipSNs.First().OPER_CODE, SEGMENT = CurPosition.CurWipSNs.First().SEGMENT, }; + + CurStep.Message = Biz.L("绛夊緟绉伴噸鏁版嵁"); + CurStep.Status = StepStatus.Normal; } /// <summary> @@ -180,6 +184,7 @@ ACT_TYPE = NodeAct.ACT_TYPE, ACT_SN = wipSn.SN, ACT_RESULT = "Y", + ELAPSED_TIME = CurStep.GetElapsedTime().TotalMilliseconds.ToInt64(), TRACE_INFO = $"鏉$爜[{CurPosition.CurSN}]绉伴噸鏁版嵁[{CurPkg.WEIGHT} {CurPkg.WEIGHT_UNIT}]淇濆瓨鎴愬姛", }; wipActs.Add(wipAct); -- Gitblit v1.9.3