服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2024-08-04 e14fe1c9f7753de8bad65b193843748429d6dde1
Tiger.Business.MES/Transaction/CollectNode.cs
@@ -151,7 +151,8 @@
            }
            catch (Exception ex)
            {
                action.CatchExceptionWithLog(ex, $"采集工序:提交操作数据异常");
                //action.CatchExceptionWithLog(ex, $"采集工序:提交操作数据异常");
                action.CatchExceptionWithLog(ex, Biz.L("MES.Transaction.CollectNode.SubmitException"));
            }
            return action;
        }
@@ -164,9 +165,9 @@
        /// <returns></returns>
        public ApiAction<SubmitOutput> NodeSubmit(ApiAction<SubmitOutput> action, SubmitInput input)
        {
            var curNode = CurBatch.GetNode(PostCode);
            try
            {
                var curNode = CurBatch.GetNode(PostCode);
                //判断工单实时状态判断是否可以生产
                var woStatus = CurBatch.CheckCanProduce(curNode);
                if (!woStatus.IsSuccessed)
@@ -291,7 +292,16 @@
                    //有需要用户提交信息则添加工序节点的其他工步
                    //最后添加当前工序的行为工步
                    GenerateSteps(curStep);
                    try
                    {
                       GenerateSteps(curStep);
                    }
                    catch (System.Exception ex)
                    {
                        ResetNode();
                        //action.CatchExceptionWithLog(ex, $"{curNode.NODE_NAME}:工序行为工步生成异常,请检查工序行为设置");
                        action.CatchExceptionWithLog(ex, Biz.L("MES.Transaction.CollectNode.NodeSubmit.GenerateStepsException", curNode.NODE_NAME));
                    }
                    //完成第一个工序节点工步
                    curStep.IsFinished = true;
@@ -349,6 +359,8 @@
            {
                ResetNode();
                action.CatchExceptionWithLog(ex, $"采集工序:工序节点工步提交数据异常");
                //action.CatchExceptionWithLog(ex, $"{curNode.NODE_NAME}:工序节点工步提交数据异常,请检查工序节点设置");
                action.CatchExceptionWithLog(ex, Biz.L("MES.Transaction.CollectNode.NodeSubmitException", curNode.NODE_NAME));
            }
            return action;
        }