增加通道配置界面

This commit is contained in:
liming 蔡
2026-08-10 16:05:17 +08:00
parent 45c39f738b
commit 25f2ae3d44
22 changed files with 964 additions and 68 deletions
File diff suppressed because one or more lines are too long
+5 -3
View File
@@ -1956,6 +1956,8 @@ namespace JinYuan.ControlCenters
CommonMethods.mesConfig.MaterialCode);//分档查询
var channels = CommonMethods.mesConfig.ChannelConfig.Channels;
var ngChanel = channels.FirstOrDefault(x => x.Gears.Contains("NG"));
int ngVal = ngChanel == null ? 97 : ngChanel.DefaultValue;
try
{
@@ -2016,14 +2018,14 @@ namespace JinYuan.ControlCenters
}
else
{
listGradeResult[i] = (short)(97);// 走分档NG
listGradeResult[i] = (short)(ngVal);// 走分档NG
list[i].Remark = $"出站条码[{list[i].BarCode}],MES反馈档位:{mesResType[0]},MES未反馈正确档位";
throw new Exception("MES未反馈正确档位");
}
}
else
{
listGradeResult[i] = (short)(97);// 走分档NG
listGradeResult[i] = (short)(ngVal);// 走分档NG
list[i].Remark = $"出站条码[{list[i].BarCode}]外观检OKMES反馈档位:{mesResType[0]},MES未反馈正确档位";
throw new Exception("MES未反馈正确档位");
}
@@ -2033,7 +2035,7 @@ namespace JinYuan.ControlCenters
catch (Exception ex)
{
//listGradeResult[i] = (short)(CommonMethods.MESGradingSet[5] + 20); //(short)26;
listGradeResult[i] = (short)(97);// 走分档NG
listGradeResult[i] = (short)(ngVal);// 走分档NG
list[i].Remark = $"出站条码[{list[i].BarCode}]外观检OK分档NG,MES未反馈正确档位";
LoggerHelp.WriteLog("解析出站MES分档数据异常:{ex.Message}", "SysErrorLog");