服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2024-10-25 7febfae83ccb8c1d927a817145fc9c99d173f222
Tiger.Business.MES/WorkAction/Weighing.cs
@@ -38,6 +38,7 @@
            NodeAct = nodeAct;
            Setting = setting;
            #endregion
            CurPkg = Biz.Db.Queryable<MES_WIP_PKG>().Where(q => q.SN == CurPosition.CurSN && q.AUTH_ORG == CurPosition.WorkBatch.WO.AUTH_ORG).First() ?? new()
            {
                AUTH_ORG = CurPosition.WorkBatch.WO.AUTH_ORG,
@@ -59,6 +60,9 @@
                OPER_CODE = CurPosition.CurWipSNs.First().OPER_CODE,
                SEGMENT = CurPosition.CurWipSNs.First().SEGMENT,
            };
            CurStep.Message = Biz.L("等待称重数据");
            CurStep.Status = StepStatus.Normal;
        }
        /// <summary>
@@ -180,6 +184,7 @@
                    ACT_TYPE = NodeAct.ACT_TYPE,
                    ACT_SN = wipSn.SN,
                    ACT_RESULT = "Y",
                    ELAPSED_TIME = CurStep.GetElapsedTime().TotalMilliseconds.ToInt64(),
                    TRACE_INFO = $"条码[{CurPosition.CurSN}]称重数据[{CurPkg.WEIGHT} {CurPkg.WEIGHT_UNIT}]保存成功",
                };
                wipActs.Add(wipAct);