From eec9f268552af1d0ce8c95312930770669f1cc18 Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期五, 16 八月 2024 22:40:16 +0800 Subject: [PATCH] 增加客户端需要的工序信息和短消息 --- Tiger.Business.MES/WorkAction/Weighing.cs | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Tiger.Business.MES/WorkAction/Weighing.cs b/Tiger.Business.MES/WorkAction/Weighing.cs index 0fbb9b3..73be11e 100644 --- a/Tiger.Business.MES/WorkAction/Weighing.cs +++ b/Tiger.Business.MES/WorkAction/Weighing.cs @@ -84,6 +84,7 @@ //濡傛灉杩斿洖鎴愬姛鍒欒涓哄綋鍓嶈涓哄彲浠ュ紑濮嬫墽琛岋紝鍚﹀垯杩斿洖澶辫触 action.IsSuccessed = true; + action.Data.ShortMsg = new("绉伴噸寮�濮�", ShortMessage.Types.Success); return action; } @@ -122,6 +123,7 @@ } catch (System.Exception ex) { + action.Data.ShortMsg = new("绉伴噸寮傚父", ShortMessage.Types.Error); action.CatchExceptionWithLog(ex, $"绉伴噸琛屼负锛氭潯鐮乕{CurPosition.CurSN}]绉伴噸鏁版嵁[{input?.Data.ToString()}]淇濆瓨寮傚父"); action.LocaleMsg = new("MES.WorkAction.Weighing.SaveWeightInfoException", CurPosition.CurSN, input?.Data.ToString()); } @@ -191,6 +193,7 @@ }; IsFinished = true; + action.Data.ShortMsg = new("绉伴噸瀹屾垚", ShortMessage.Types.Success); //action.LocaleMsg = new($"鏉$爜[{CurPosition.CurSN}]绉伴噸鏁版嵁[{CurPkg.WEIGHT} {CurPkg.WEIGHT_UNIT}]淇濆瓨鎴愬姛"); action.LocaleMsg = new("MES.WorkAction.Weighing.SaveSuccess", CurPosition.CurSN, CurPkg.WEIGHT, CurPkg.WEIGHT_UNIT); return action; -- Gitblit v1.9.3