|
@@ -118,7 +118,7 @@ namespace OTSIncAReportApp.OTSTemplateDesigner
|
|
|
dt.Columns.Add("TypeId");
|
|
|
dt.Columns.Add("Hardness", typeof(double));
|
|
|
dt.Columns.Add("Hardness_detailed");
|
|
|
- ResultFile resfile = m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.GetWorkingResult()];
|
|
|
+ ResultFile resfile = m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.getSelectedIndex()];
|
|
|
string str_libraryName = ((Dictionary<string, object>)((Dictionary<string, object>)((Dictionary<string, object>)resfile.ResultInfo["Sample"])["Members"])["MsrParams"])["STDName"].ToString();
|
|
|
|
|
|
OTSSysMgrTools.SqLiteHelper sh = new OTSSysMgrTools.SqLiteHelper("data source='" + System.IO.Directory.GetCurrentDirectory()+ "\\Config\\SysData\\"+ str_libraryName + ".db" + "'");
|
|
@@ -145,7 +145,7 @@ namespace OTSIncAReportApp.OTSTemplateDesigner
|
|
|
|
|
|
m_bt_DBData.Clear();
|
|
|
m_bt_DBData.Columns.Clear();
|
|
|
- ParticleData fielddata = new ParticleData(m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.GetWorkingResult()].FilePath);
|
|
|
+ ParticleData fielddata = new ParticleData(m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.getSelectedIndex()].FilePath);
|
|
|
List<string> colid = new List<string>() { "TypeName", "ar", "TypeId", "Largest", "Class", "con" };
|
|
|
//获取粒级表
|
|
|
string path1 = m_otsreport_export.m_ReportApp.m_rstDataMgr.m_RptConfigFile.PartSizeFileFolder + m_otsreport_export.m_ReportApp.m_rstDataMgr.m_RptConfigFile.PartSizeFile;
|
|
@@ -259,14 +259,14 @@ namespace OTSIncAReportApp.OTSTemplateDesigner
|
|
|
m_otsreport_export.m_ReportApp.im_ParticlesGridDevidePage = new ParticlesGridDevidePage(m_otsreport_export.m_ReportApp);
|
|
|
|
|
|
//根据sql条件,查询获取颗粒信息数据
|
|
|
- ParticleData fielddata = new ParticleData(m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.GetWorkingResult()].FilePath);
|
|
|
+ ParticleData fielddata = new ParticleData(m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.getSelectedIndex()].FilePath);
|
|
|
DataTable dt = InvalidRemoval(fielddata.GetIncaSurfaceData(),"TypeName") ;
|
|
|
//将颗粒大小排序(从大到小)
|
|
|
DataView dv = dt.DefaultView;
|
|
|
dv.Sort = "DMAX DESC";
|
|
|
DataTable dt_ParticlesGridDevidePage = dv.ToTable();
|
|
|
|
|
|
- string str_resultPath = m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.GetWorkingResult()].FilePath;
|
|
|
+ string str_resultPath = m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.getSelectedIndex()].FilePath;
|
|
|
//------------------加载模块,获取数据结束----------------------------------------------
|
|
|
#region 创建要插入数据库表结构
|
|
|
//插入模板需父子表,结构
|
|
@@ -632,7 +632,7 @@ namespace OTSIncAReportApp.OTSTemplateDesigner
|
|
|
m_otsreport_export.m_ReportApp.im_ParticlesGridDevidePage = new ParticlesGridDevidePage(m_otsreport_export.m_ReportApp);
|
|
|
|
|
|
//根据sql条件,查询获取颗粒信息数据
|
|
|
- ParticleData fielddata = new ParticleData(m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.GetWorkingResult()].FilePath);
|
|
|
+ ParticleData fielddata = new ParticleData(m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.getSelectedIndex()].FilePath);
|
|
|
DataTable dt = InvalidRemoval(fielddata.GetIncaSurfaceData(), "TypeName");
|
|
|
|
|
|
dt.Columns.Add("Hardness", typeof(double));
|
|
@@ -655,7 +655,7 @@ namespace OTSIncAReportApp.OTSTemplateDesigner
|
|
|
dv.Sort = "Hardness DESC";
|
|
|
DataTable dt_ParticlesGridDevidePage = dv.ToTable();
|
|
|
|
|
|
- string str_resultPath = m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.GetWorkingResult()].FilePath;
|
|
|
+ string str_resultPath = m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.getSelectedIndex()].FilePath;
|
|
|
//------------------加载模块,获取数据结束----------------------------------------------
|
|
|
#region 创建要插入数据库表结构
|
|
|
//插入模板需父子表,结构
|
|
@@ -1114,7 +1114,7 @@ namespace OTSIncAReportApp.OTSTemplateDesigner
|
|
|
DataRow dr = FrameGraphSubTable.NewRow();
|
|
|
dr["p1"] = newarr_p1;
|
|
|
newms_p1.Dispose();
|
|
|
- ResultFile resfile = m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.GetWorkingResult()];
|
|
|
+ ResultFile resfile = m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.getSelectedIndex()];
|
|
|
if (((Dictionary<string, object>)((Dictionary<string, object>)((Dictionary<string, object>)resfile.ResultInfo["Sample"])["Members"])["MsrParams"])["SysType"].ToString() == "0:IncA")
|
|
|
{
|
|
|
dr["pid"] = str_fieldid + dt_ParticlesGridDevidePage.Rows[i_row]["particleid"].ToString();
|
|
@@ -1196,7 +1196,7 @@ namespace OTSIncAReportApp.OTSTemplateDesigner
|
|
|
double d = Convert.ToDouble(sizestr.Split(',')[sizestr.Split(',').Length - 1]);
|
|
|
colid.Add(d.ToString() + "~MAX");
|
|
|
|
|
|
- ParticleData fielddata = new ParticleData(m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.GetWorkingResult()].FilePath);
|
|
|
+ ParticleData fielddata = new ParticleData(m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.getSelectedIndex()].FilePath);
|
|
|
|
|
|
//------------------------------------------------
|
|
|
DataTable ls_partsize_dt = new DataTable();
|
|
@@ -1556,7 +1556,7 @@ namespace OTSIncAReportApp.OTSTemplateDesigner
|
|
|
}
|
|
|
|
|
|
//根据sql条件,查询获取颗粒信息数据
|
|
|
- ParticleData fielddata = new ParticleData(m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.GetWorkingResult()].FilePath);
|
|
|
+ ParticleData fielddata = new ParticleData(m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.getSelectedIndex()].FilePath);
|
|
|
|
|
|
DataTable AllAnalysisDetails = new DataTable();
|
|
|
AllAnalysisDetails.TableName = "ElementValue";
|
|
@@ -1945,7 +1945,7 @@ namespace OTSIncAReportApp.OTSTemplateDesigner
|
|
|
{
|
|
|
|
|
|
//根据sql条件,查询获取颗粒信息数据
|
|
|
- ParticleData fielddata = new ParticleData(m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.GetWorkingResult()].FilePath);
|
|
|
+ ParticleData fielddata = new ParticleData(m_otsreport_export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_otsreport_export.m_ReportApp.m_rstDataMgr.getSelectedIndex()].FilePath);
|
|
|
//DataTable AreaInformationOfAllElements = fielddata.GetAreaByAllIncA("");//获取所有分类面积和数量信息
|
|
|
|
|
|
DataTable AreaInformationOfAllElements = InvalidRemoval(InvalidRemoval(fielddata.GetAreaByAllIncA(""), "GroupName"),"TypeName") ;
|