服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-10-27 f0c7f4ba26a8bcb4e551c50d6d9468edb542c063
Tiger.Business.MES/WorkAction/PrintInStoreLabel.cs
@@ -68,6 +68,14 @@
        {
            var action = new ApiAction<SubmitOutput>(new SubmitOutput());
            //设置打印变量值
            Label = CurPosition.SetLabelVariables(LabelPV, Label, this);
            if (CurPosition.Context.ContainsKey("CurPackage"))
            {
                (CurPosition.Context["CurPackage"] as WipPkg).InStoreLabel = Label;
            }
            //判断是否需要打印入库标签
            NoNeedInStorePrint = (!CurPosition.Context.ContainsKey("CurPackage") || !(CurPosition.Context["CurPackage"] as WipPkg).IsFinished) 
                                    || (CurPosition is YadaPacking && (CurPosition as YadaPacking).IsPrintCustomerLabel);
            if (NoNeedInStorePrint)
@@ -76,8 +84,6 @@
            } 
            else
            {
               //设置打印变量值
               Label = CurPosition.SetLabelVariables(LabelPV, Label, this);
               action.Data.Data = Label;
   
               //如果返回成功则认为当前行为可以开始执行,否则返回失败