服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-10-28 0fa15afc31f7fb1a6100a78af3765d4d1bbab611
Tiger.Business.MES/WorkAction/PrintInStoreLabel.cs
@@ -78,6 +78,7 @@
               Label = CurPosition.SetLabelVariables(LabelPV, Label, this);
               if (CurPosition.Context.ContainsKey("CurPackage"))
               {
                    (CurPosition.Context["CurPackage"] as WipPkg).InStoreActID = NodeAct.ID;
                   (CurPosition.Context["CurPackage"] as WipPkg).InStoreLabel = Label;
               }
   
@@ -139,6 +140,7 @@
        {
            var action = new ApiAction<SubmitOutput>(new SubmitOutput());
            var CurPkg = CurPosition.Context.ContainsKey("CurPackage") ? CurPosition.Context["CurPackage"] as WipPkg : null;
            //记录行为操作记录
            var wipActs = new List<MES_WIP_ACT>();
            foreach (var wipSn in CurPosition.CurWipSNs)
@@ -176,8 +178,10 @@
                    PRD_CODE = wipSn.PRD_CODE,
                    ACT_TYPE = NodeAct.ACT_TYPE,
                    ACT_SN = wipSn.SN,
                    ACT_VALUE_1 = Label?.LABEL_CODE,
                    ACT_VALUE_2 = Label?.ToJson(),
                    ACT_VALUE_1 = CurPkg?.IsFinished == true ? "Y" : "N",
                    ACT_VALUE_2 = CurPkg?.ToJson(),
                    ACT_VALUE_3 = Label?.ToJson(),
                    ACT_VALUE_4 = "InStroe",
                    ACT_RESULT = "Y",
                    ELAPSED_TIME = CurStep.GetElapsedTime().TotalMilliseconds.ToInt64(),
                    TRACE_INFO = NoNeedInStorePrint ? $"无需打印入库标签" : $"标签{Label?.LABEL_NAME}[{Label?.LABEL_CODE}]打印成功",