| | |
| | | } |
| | | } |
| | | //没有可执行的工步 |
| | | ResetSteps(); |
| | | ResetNode(); |
| | | action.IsSuccessed = false; |
| | | //action.LocaleMsg = new($"岗位[{CurPosition.POST_CODE}]工步执行异常,请重新扫描产品条码", CurPosition.POST_CODE); |
| | | action.LocaleMsg = new("MES.Transaction.TestNode.Submit.WorkStepException", CurPosition.POST_CODE); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | action.CatchExceptionWithLog(ex, $"测试工序:扫描产品条码异常"); |
| | | action.CatchExceptionWithLog(ex, $"测试工序:提交操作数据异常"); |
| | | } |
| | | return action; |
| | | } |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | ResetSteps(); |
| | | action.CatchExceptionWithLog(ex, $"测试工序:扫描产品条码异常"); |
| | | ResetNode(); |
| | | action.CatchExceptionWithLog(ex, $"测试工序:工序节点工步提交数据异常"); |
| | | } |
| | | return action; |
| | | } |
| | |
| | | //保存成功,返回过站消息 |
| | | //action.LocaleMsg = new($"工单[{CurWipSN.WORK_ORDER}]的条码[{CurWipSN.SN}]在岗位[{CurWipSN.POST_CODE}]工序[{CurWipSN.NODE_NAME}]过站成功,状态[{CurWipSN.STATUS.GetEnumDesc<MES_WIP_DATA.STATUSs>()}]", CurWipSN.WORK_ORDER, CurWipSN.SN, CurWipSN.POST_CODE, CurWipSN.NODE_NAME, CurWipSN.STATUS.GetEnumDesc<MES_WIP_DATA.STATUSs>()); |
| | | action.LocaleMsg = new("MES.Transaction.TestNode.ScanSn.PassSuccess", CurWipSN.WORK_ORDER, CurWipSN.SN, CurWipSN.POST_CODE, CurWipSN.NODE_NAME, CurWipSN.STATUS.GetEnumDesc<MES_WIP_DATA.STATUSs>()); |
| | | //重置工序 |
| | | ResetNode(); |
| | | return action; |
| | | } |
| | | |