|
@@ -331,6 +331,25 @@ namespace OTSIncAReportApp._1_UI.OTSReportExport.DataIntegration
|
|
|
}
|
|
|
|
|
|
BData = OutData.Copy();
|
|
|
+ Measurements = new List<DataTable>();
|
|
|
+
|
|
|
+ for (int i = 0; i < GroupInformation.Count; i++)
|
|
|
+ {
|
|
|
+ DataTable table = dtp.Clone();
|
|
|
+ for (int a = 0; a < dtp.Rows.Count; a++)
|
|
|
+ {
|
|
|
+ string strGroupId = "Default";
|
|
|
+ if (dtp.Rows[a]["GroupName"].ToString() != "")
|
|
|
+ {
|
|
|
+ strGroupId = dtp.Rows[a]["GroupName"].ToString();
|
|
|
+ }
|
|
|
+ if (GroupInformation[i] == strGroupId)
|
|
|
+ {
|
|
|
+ table.Rows.Add(dtp.Rows[a].ItemArray);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Measurements.Add(table);
|
|
|
+ }
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -410,7 +429,12 @@ namespace OTSIncAReportApp._1_UI.OTSReportExport.DataIntegration
|
|
|
{
|
|
|
if (Convert.ToInt64(dtp.Rows[i]["TypeId"]) > 10)
|
|
|
{
|
|
|
- if (stringsa[i].ToString() == dtp.Rows[a]["GroupName"].ToString())
|
|
|
+ string strGroupName = "Default";
|
|
|
+ if (dtp.Rows[a]["GroupName"].ToString() != "")
|
|
|
+ {
|
|
|
+ strGroupName = dtp.Rows[a]["GroupName"].ToString();
|
|
|
+ }
|
|
|
+ if (stringsa[i].ToString() == strGroupName)
|
|
|
{
|
|
|
data.Rows.Add(dtp.Rows[a].ItemArray);
|
|
|
}
|
|
@@ -609,7 +633,17 @@ namespace OTSIncAReportApp._1_UI.OTSReportExport.DataIntegration
|
|
|
/// <returns></returns>
|
|
|
public string GetResfile()
|
|
|
{
|
|
|
- return resfile.GetSTDName();
|
|
|
+ string str_libraryName = "";
|
|
|
+ bool endsWithDb = resfile.GetSTDName().EndsWith(".db", StringComparison.OrdinalIgnoreCase);
|
|
|
+ if (endsWithDb)
|
|
|
+ {
|
|
|
+ str_libraryName = resfile.GetSTDName();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ str_libraryName = resfile.GetSTDName() + ".db";
|
|
|
+ }
|
|
|
+ return str_libraryName;
|
|
|
}
|
|
|
public void IsFilePath(OTSReport_Export m_otsreport_export)
|
|
|
{
|