From b4bd82fdbace031a81ab40963c8344d5eaa4a772 Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期三, 21 八月 2024 17:19:44 +0800 Subject: [PATCH] 增加雅达三码合一行为,用于厂内条码绑定并打印客户条码 --- Tiger.Business.MES/WorkAction/Weighing.cs | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/Tiger.Business.MES/WorkAction/Weighing.cs b/Tiger.Business.MES/WorkAction/Weighing.cs index 0fbb9b3..3b0fac9 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,7 +123,8 @@ } catch (System.Exception ex) { - action.CatchExceptionWithLog(ex, $"绉伴噸琛屼负锛氭潯鐮乕{CurPosition.CurSN}]绉伴噸鏁版嵁[{input?.Data.ToString()}]淇濆瓨寮傚父"); + 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()); } return action; @@ -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