增加通道配置界面
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user