From eba7b77b712604006b3c14985537ca80b4051521 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期日, 27 十月 2024 14:10:58 +0800 Subject: [PATCH] 添加Job更新 --- Tiger.Business.MES/WorkAction/PrintInStoreLabel.cs | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Tiger.Business.MES/WorkAction/PrintInStoreLabel.cs b/Tiger.Business.MES/WorkAction/PrintInStoreLabel.cs index 13a9776..84c318f 100644 --- a/Tiger.Business.MES/WorkAction/PrintInStoreLabel.cs +++ b/Tiger.Business.MES/WorkAction/PrintInStoreLabel.cs @@ -25,7 +25,7 @@ #endregion public BAS_LABEL_TEMP Label { get; set; } public List<BAS_LABEL_PV> LabelPV { get; set; } - public bool NoNeedPrint { get; set; } + public bool NoNeedInStorePrint { get; set; } #endregion Propertys & Variables #region Functions @@ -68,9 +68,9 @@ { var action = new ApiAction<SubmitOutput>(new SubmitOutput()); - NoNeedPrint = (!CurPosition.Context.ContainsKey("CurPackage") || !(CurPosition.Context["CurPackage"] as WipPkg).IsFinished) + NoNeedInStorePrint = (!CurPosition.Context.ContainsKey("CurPackage") || !(CurPosition.Context["CurPackage"] as WipPkg).IsFinished) || (CurPosition is YadaPacking && (CurPosition as YadaPacking).IsPrintCustomerLabel); - if (NoNeedPrint) + if (NoNeedInStorePrint) { action = End(input); } @@ -167,7 +167,7 @@ ACT_VALUE_2 = Label.Variables.ToJson(), ACT_RESULT = "Y", ELAPSED_TIME = CurStep.GetElapsedTime().TotalMilliseconds.ToInt64(), - TRACE_INFO = NoNeedPrint ? $"鏃犻渶鎵撳嵃鍏ュ簱鏍囩" : $"鏍囩{Label.LABEL_NAME}[{Label.LABEL_CODE}]鎵撳嵃鎴愬姛", + TRACE_INFO = NoNeedInStorePrint ? $"鏃犻渶鎵撳嵃鍏ュ簱鏍囩" : $"鏍囩{Label.LABEL_NAME}[{Label.LABEL_CODE}]鎵撳嵃鎴愬姛", }; wipActs.Add(wipAct); } @@ -182,7 +182,7 @@ }; IsFinished = true; - if (NoNeedPrint) + if (NoNeedInStorePrint) { CurStep.Message = Biz.L("鏃犻渶鎵撳嵃"); CurStep.Status = StepStatus.Finished; -- Gitblit v1.9.3