服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2024-10-26 0295f0d93a3dd54bb6104f5e9a488f94596e756b
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;