From 922bb885bfaf59610dae78e6ede5f53f21984833 Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期三, 13 十一月 2024 09:56:16 +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