|
@@ -202,6 +202,26 @@ namespace OTSIncAReportGrids
|
|
DateTime star = new DateTime();
|
|
DateTime star = new DateTime();
|
|
DateTime end = new DateTime();
|
|
DateTime end = new DateTime();
|
|
|
|
|
|
|
|
+ //int filedCount = fielddata.GetFiledCount();
|
|
|
|
+ //double wide = resfile.GetImageWidth();
|
|
|
|
+ //double high = resfile.GetImageHeight();
|
|
|
|
+ //double pixelSize = resfile.GetPixelSize();
|
|
|
|
+ //double filedsArea = Math.Round(high * wide * pixelSize * pixelSize * filedCount, 2);
|
|
|
|
+ //int particleArea = fielddata.GetparticleArea();
|
|
|
|
+ //string xmlpath = Application.StartupPath + RptConfigFile.m_ReportMgrParamFile;
|
|
|
|
+ //DataSet ds = XMLoperate.GetXmlData(xmlpath, "XMLData");
|
|
|
|
+ //DataTable dt1 = ds.Tables["Member"];
|
|
|
|
+ //string sizestr = "1000";
|
|
|
|
+ //for (int i = 0; i < dt1.Rows.Count; i++)
|
|
|
|
+ //{
|
|
|
|
+ // if (dt1.Rows[i]["RegName"].ToString() == "Scale")
|
|
|
|
+ // {
|
|
|
|
+ // sizestr = dt1.Rows[i]["strValue"].ToString();
|
|
|
|
+ // break;
|
|
|
|
+ // }
|
|
|
|
+ //}
|
|
|
|
+ //double ratio = Math.Round(particleArea / filedsArea * double.Parse(sizestr), 3);
|
|
|
|
+
|
|
System.Globalization.DateTimeFormatInfo dtFormat = new System.Globalization.DateTimeFormatInfo();
|
|
System.Globalization.DateTimeFormatInfo dtFormat = new System.Globalization.DateTimeFormatInfo();
|
|
dtFormat.ShortDatePattern = "dd/MM/yyyy hh:mm:ss";
|
|
dtFormat.ShortDatePattern = "dd/MM/yyyy hh:mm:ss";
|
|
|
|
|
|
@@ -222,26 +242,16 @@ namespace OTSIncAReportGrids
|
|
}
|
|
}
|
|
TimeSpan timeSpan = end - star;
|
|
TimeSpan timeSpan = end - star;
|
|
int all_FiledCount = resfile.GetTotalFields();
|
|
int all_FiledCount = resfile.GetTotalFields();
|
|
- ////当前屏幕尺寸/µm
|
|
|
|
- //double ScanFieldSize = resfile.GetScanFieldSizeX();
|
|
|
|
- ////100倍时屏幕尺寸/µm
|
|
|
|
- //double ScanFieldSize100 = resfile.GetScanFieldSizeX100();
|
|
|
|
- //double Magnification = ScanFieldSize100 / ScanFieldSize * 100;
|
|
|
|
-
|
|
|
|
double Magnification = resfile.GetMeasurementMagnification();
|
|
double Magnification = resfile.GetMeasurementMagnification();
|
|
int filedCount = fielddata.GetFiledCount();
|
|
int filedCount = fielddata.GetFiledCount();
|
|
- //Dictionary<string, object> sampleMembers = ((Dictionary<string, object>)((Dictionary<string, object>)resfile.ResultInfo["Sample"])["Members"]);
|
|
|
|
- //Dictionary<string, object> semDataMsr = (Dictionary<string, object>)sampleMembers["SEMDataMsr"];
|
|
|
|
- //double scanFieldSize = resfile.GetScanFieldSizeX();
|
|
|
|
- //Dictionary<string, object> imageScanParam = (Dictionary<string, object>)((Dictionary<string, object>)((Dictionary<string, object>)sampleMembers["MsrParams"])["Members"])["ImageScanParam"];
|
|
|
|
- //string ImageResolution = imageScanParam["ImageResolution"].ToString();
|
|
|
|
|
|
+
|
|
double wide = resfile.GetImageWidth();
|
|
double wide = resfile.GetImageWidth();
|
|
double high = resfile.GetImageHeight();
|
|
double high = resfile.GetImageHeight();
|
|
double pixelSize = resfile.GetPixelSize();
|
|
double pixelSize = resfile.GetPixelSize();
|
|
double filedsArea = Math.Round(high * wide * pixelSize * pixelSize * filedCount, 2);
|
|
double filedsArea = Math.Round(high * wide * pixelSize * pixelSize * filedCount, 2);
|
|
int particleArea = fielddata.GetparticleArea();
|
|
int particleArea = fielddata.GetparticleArea();
|
|
|
|
|
|
- double ratio = particleArea / filedsArea;
|
|
|
|
|
|
+ //double ratio = particleArea / filedsArea;
|
|
|
|
|
|
//报告参数文件
|
|
//报告参数文件
|
|
string xmlpath = Application.StartupPath + RptConfigFile.m_ReportMgrParamFile;
|
|
string xmlpath = Application.StartupPath + RptConfigFile.m_ReportMgrParamFile;
|
|
@@ -256,11 +266,13 @@ namespace OTSIncAReportGrids
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ double ratio = Math.Round(particleArea / filedsArea * double.Parse(sizestr), 3);
|
|
|
|
+
|
|
keyValues.Add(table["col2"].ToString(), star.ToString("yyyy-MM-dd HH:mm:ss"));
|
|
keyValues.Add(table["col2"].ToString(), star.ToString("yyyy-MM-dd HH:mm:ss"));
|
|
keyValues.Add(table["col3"].ToString(), end.ToString("yyyy-MM-dd HH:mm:ss"));
|
|
keyValues.Add(table["col3"].ToString(), end.ToString("yyyy-MM-dd HH:mm:ss"));
|
|
keyValues.Add(table["col4"].ToString(), Math.Round(timeSpan.TotalMinutes, 2).ToString() + "mins");
|
|
keyValues.Add(table["col4"].ToString(), Math.Round(timeSpan.TotalMinutes, 2).ToString() + "mins");
|
|
- keyValues.Add(table["col5"].ToString(), all_FiledCount.ToString());
|
|
|
|
|
|
+ keyValues.Add(table["col5"].ToString(), filedCount.ToString());
|
|
|
|
|
|
string LibraryName = "";
|
|
string LibraryName = "";
|
|
string rstSTD = resfile.GetSTDName();
|
|
string rstSTD = resfile.GetSTDName();
|
|
@@ -283,6 +295,8 @@ namespace OTSIncAReportGrids
|
|
keyValues.Add(table["col11"].ToString(), sizestr);
|
|
keyValues.Add(table["col11"].ToString(), sizestr);
|
|
keyValues.Add("Magnification", Math.Round(Magnification,2).ToString());
|
|
keyValues.Add("Magnification", Math.Round(Magnification,2).ToString());
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
return keyValues;
|
|
return keyValues;
|
|
}
|
|
}
|
|
|
|
|