|
@@ -9,6 +9,9 @@ using System.Collections.Generic;
|
|
|
using System.Data;
|
|
|
using System.Windows.Forms;
|
|
|
using OTSIncAReportApp.OTSRstMgrFunction;
|
|
|
+using static DevExpress.Utils.MVVM.Internal.ILReader;
|
|
|
+using System.Text.RegularExpressions;
|
|
|
+using DevExpress.XtraReports.UI;
|
|
|
|
|
|
namespace OTSIncAReportGrids
|
|
|
{
|
|
@@ -164,18 +167,68 @@ namespace OTSIncAReportGrids
|
|
|
keyValues.Add(table["col4"].ToString(), Math.Round(timeSpan.TotalMinutes, 2).ToString() + "mins");
|
|
|
keyValues.Add(table["col5"].ToString(), filedCount.ToString());
|
|
|
keyValues.Add(table["col12"].ToString(), Math.Round(Magnification, 2).ToString());
|
|
|
- string LibraryName = "";
|
|
|
- string rstSTD = resfile.GetSTDName();
|
|
|
- if ("NoSTDDB"== rstSTD ||
|
|
|
- "NoSTDDB.db" == rstSTD)
|
|
|
+ string LibraryName = "";
|
|
|
+
|
|
|
+ string strSTDType = resfile.GetSTDEngineType();
|
|
|
+ string rstSTD = resfile.GetSTDName();
|
|
|
+ string[] result = Regex.Split(strSTDType, ":");
|
|
|
+
|
|
|
+ if (result[0] == "-1")
|
|
|
+ {
|
|
|
+ if ("NoSTDDB" == rstSTD ||
|
|
|
+ "NoSTDDB.db" == rstSTD)
|
|
|
+ {
|
|
|
+ LibraryName = "OTSIncASysSTD";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ LibraryName = rstSTD;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ if (result[0] == "0")
|
|
|
{
|
|
|
LibraryName = "OTSIncASysSTD";
|
|
|
}
|
|
|
- else
|
|
|
+ else if (result[0] == "1")
|
|
|
{
|
|
|
- LibraryName = rstSTD;
|
|
|
- }
|
|
|
- keyValues.Add(table["col6"].ToString(), LibraryName);
|
|
|
+
|
|
|
+ if ("NoSTDDB" == rstSTD ||
|
|
|
+ "NoSTDDB.db" == rstSTD)
|
|
|
+ {
|
|
|
+ LibraryName = "OTSIncASysSTD";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ LibraryName = rstSTD;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if (result[0] == "2")
|
|
|
+ {
|
|
|
+ if ("NoSTDDB" == rstSTD ||
|
|
|
+ "NoSTDDB.db" == rstSTD)
|
|
|
+ {
|
|
|
+ LibraryName = "OTSIncASysSTD";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ LibraryName = "OTSIncASysSTD+" + rstSTD;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if (result[0] == "3")
|
|
|
+ {
|
|
|
+ if ("NoSTDDB" == rstSTD ||
|
|
|
+ "NoSTDDB.db" == rstSTD)
|
|
|
+ {
|
|
|
+ LibraryName = "OTSIncASysSTD";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ LibraryName = rstSTD;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ keyValues.Add(table["col6"].ToString(), LibraryName);
|
|
|
keyValues.Add(table["col7"].ToString(), fielddata.GetparticleCount().ToString());
|
|
|
keyValues.Add(table["col8"].ToString() + "\x00B2)",Math.Round(filedsArea,2).ToString());
|
|
|
keyValues.Add(table["col9"].ToString()+ "\x00B2)", String.Format("{0:f2}", particleArea));
|
|
@@ -252,19 +305,67 @@ namespace OTSIncAReportGrids
|
|
|
keyValues.Add(table["col5"].ToString(), filedCount.ToString());
|
|
|
|
|
|
|
|
|
- string LibraryName = "";
|
|
|
- string rstSTD = resfile.GetSTDName();
|
|
|
- if ("NoSTDDB" == rstSTD||
|
|
|
- "NoSTDDB.db" == rstSTD)
|
|
|
- {
|
|
|
- LibraryName = "OTSIncASysSTD";
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- LibraryName = rstSTD;
|
|
|
- }
|
|
|
-
|
|
|
- keyValues.Add(table["col6"].ToString(), LibraryName);
|
|
|
+ string LibraryName = "";
|
|
|
+
|
|
|
+ string strSTDType = resfile.GetSTDEngineType();
|
|
|
+ string rstSTD = resfile.GetSTDName();
|
|
|
+ string[] result = Regex.Split(strSTDType, ":");
|
|
|
+ if (result[0] == "-1")
|
|
|
+ {
|
|
|
+ if ("NoSTDDB" == rstSTD ||
|
|
|
+ "NoSTDDB.db" == rstSTD)
|
|
|
+ {
|
|
|
+ LibraryName = "OTSIncASysSTD";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ LibraryName = rstSTD;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ if (result[0] == "0")
|
|
|
+ {
|
|
|
+ LibraryName = "OTSIncASysSTD";
|
|
|
+ }
|
|
|
+ else if (result[0] == "1")
|
|
|
+ {
|
|
|
+
|
|
|
+ if ("NoSTDDB" == rstSTD ||
|
|
|
+ "NoSTDDB.db" == rstSTD)
|
|
|
+ {
|
|
|
+ LibraryName = "OTSIncASysSTD";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ LibraryName = rstSTD;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if (result[0] == "2")
|
|
|
+ {
|
|
|
+ if ("NoSTDDB" == rstSTD ||
|
|
|
+ "NoSTDDB.db" == rstSTD)
|
|
|
+ {
|
|
|
+ LibraryName = "OTSIncASysSTD";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ LibraryName = "OTSIncASysSTD+" + rstSTD;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if (result[0] == "3")
|
|
|
+ {
|
|
|
+ if ("NoSTDDB" == rstSTD ||
|
|
|
+ "NoSTDDB.db" == rstSTD)
|
|
|
+ {
|
|
|
+ LibraryName = "OTSIncASysSTD";
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ LibraryName = rstSTD;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ keyValues.Add(table["col6"].ToString(), LibraryName);
|
|
|
keyValues.Add(table["col7"].ToString(), fielddata.GetparticleCount().ToString());
|
|
|
keyValues.Add(table["col8"].ToString(), Math.Round(filedsArea, 2).ToString());
|
|
|
keyValues.Add(table["col9"].ToString(), particleArea.ToString());
|