[성현모] tra 날짜 오류 수정, tra recovery 온도그래프, 버전셀렉트, ok avg 기능 추가
This commit is contained in:
@ -296,19 +296,25 @@ namespace SystemX.Product.TRA.UIControl
|
||||
if (Int64.TryParse(dtRowTestlistSpec[2].ToString(), out outValue))
|
||||
{
|
||||
CPXV2Log.Tables.HIST_TestResult row = list.Where(x => x.StepID == outValue)?.First();
|
||||
if(row == null)
|
||||
if (row == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(row.MeasValStr) == true)
|
||||
if (dtRowTestlistSpec.ItemArray[9].ToString() == "TEMPCELSIUS")
|
||||
{
|
||||
row.MeasVal = Convert.ToDecimal($"{row.Message.Split('_')[1]}");
|
||||
row.MeasValStr = $"{row.Message.Split('_')[1]}";
|
||||
row.Message = string.Empty;
|
||||
}
|
||||
else if (string.IsNullOrEmpty(row.MeasValStr) == true)
|
||||
{
|
||||
if (//!string.IsNullOrEmpty(row.MeasValStr) ||
|
||||
//!string.IsNullOrEmpty(row.Message) ||
|
||||
//!string.IsNullOrEmpty(row.Message) ||
|
||||
((row.MeasVal == 0) ||
|
||||
string.Compare(row.Result, "NONE") == 0))
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
//string strValue = drLog[DMTestHistory.eColList.No.ToString()].ToString();
|
||||
try
|
||||
@ -383,7 +389,7 @@ namespace SystemX.Product.TRA.UIControl
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return dtFinal;
|
||||
}
|
||||
@ -422,7 +428,7 @@ namespace SystemX.Product.TRA.UIControl
|
||||
chartControlMain.CrosshairOptions.CrosshairLabelBackColor = Color.White;
|
||||
chartControlMain.CrosshairOptions.ValueLineColor = Color.Black;
|
||||
chartControlMain.CrosshairOptions.GroupHeaderTextOptions.TextColor = Color.Blue;
|
||||
|
||||
|
||||
int nSrsIdxValue = AddSeries("Value", ScaleType.Qualitative, ScaleType.Numerical, Color.Red);
|
||||
int nSrsIdxMin = AddSeries("Lower Limit", ScaleType.Qualitative, ScaleType.Numerical, Color.Blue);
|
||||
int nSrsIdxMax = AddSeries("Upper Limit", ScaleType.Qualitative, ScaleType.Numerical, Color.Blue);
|
||||
@ -559,7 +565,7 @@ namespace SystemX.Product.TRA.UIControl
|
||||
{
|
||||
string strDim = dtRowTestlist[DMTestDetail.eColTestlist.Dim.ToString()].ToString();
|
||||
|
||||
if (NoChartDispSpec.Contains(strDim))
|
||||
if (data.MO != "TEMPCELSIUS" && NoChartDispSpec.Contains(strDim))
|
||||
return null;
|
||||
|
||||
bool bIsGlobal = (Convert.ToInt32(dtRowTestlist[DMTestDetail.eColTestlist.IsGlobal.ToString()])) > 0 ? true : false;
|
||||
@ -608,7 +614,7 @@ namespace SystemX.Product.TRA.UIControl
|
||||
|
||||
elemUnit.Result = strResult == "NG" || strResult == "ERROR" ? eResultType.NG : strResult == "OK" ? eResultType.OK : eResultType.NONE;
|
||||
|
||||
if (bOKDataOnly && elemUnit.Result != eResultType.OK)
|
||||
if (bOKDataOnly && data.MO != "TEMPCELSIUS" && elemUnit.Result != eResultType.OK)
|
||||
continue;
|
||||
|
||||
resultUnit.DataElements.Add(elemUnit);
|
||||
|
||||
Reference in New Issue
Block a user