|
@@ -105,16 +105,12 @@ namespace OTSIncAReportApp
|
|
|
string granularComponent= resTable["sscaptionname27"].ToString();//颗粒成分
|
|
|
string particleSizeDistribution= resTable["sscaptionname29"].ToString();//颗粒尺寸分布
|
|
|
string averageElementComposition= resTable["sscaptionname30"].ToString();//平均元素成分
|
|
|
- string ternaryPhaseDiagram= resTable["sscaptionname12"].ToString();//三元相图
|
|
|
+ string ternaryPhaseDiagram = resTable["sscaptionname12"].ToString();//三元相图
|
|
|
string bseOriginal = resTable["bseoriginal"].ToString();//BSE原图
|
|
|
string classifiedDisplay = resTable["classifieddisplay"].ToString();//分类显示
|
|
|
string originalSplicing = resTable["originalsplicing"].ToString();//原图拼接
|
|
|
string originalDistribution = resTable["originaldistribution"].ToString();//原图颗粒分布
|
|
|
string particleSizeTable = resTable["particlesizetable"].ToString();//粒级表
|
|
|
- string chineseStandard1 = resTable["chinesestandard1"].ToString();//国标方法一
|
|
|
- string chineseStandard2 = resTable["chinesestandard2"].ToString();//国标方法二
|
|
|
- string americanStandard = resTable["americanstandard"].ToString();//美标
|
|
|
- string germanStandard = resTable["germanstandard"].ToString();//德标
|
|
|
string commonClassification = resTable["commonclassification"].ToString();//常用夹杂物分类
|
|
|
string allParticles = resTable["allparticles"].ToString();//全部颗粒
|
|
|
string selectParticles = resTable["selectparticles"].ToString();//选择颗粒
|
|
@@ -154,11 +150,11 @@ namespace OTSIncAReportApp
|
|
|
//数据表类型
|
|
|
List<string> list2 = new List<string>() { surveyResults, sampleMeasurementInformation, granularComponent, particleSizeDistribution, averageElementComposition };
|
|
|
//string[] aa = m_ReportApp.Text.Split('-');
|
|
|
- List<string> listStd = new List<string>() { chineseStandard1, chineseStandard2, americanStandard, germanStandard };
|
|
|
- list2.AddRange(listStd);
|
|
|
+ //List<string> listStd = new List<string>() { chineseStandard1, chineseStandard2, americanStandard, germanStandard };
|
|
|
+ //list2.AddRange(listStd);
|
|
|
AddGridData(OTS_REPORT_PROP_GRID_ITEMS.CALCULATE_TABLE_TYPE, dataTableType, OTS_ITEM_TYPES.COMBO, false, "Data table type", list2[0], list2, CALCULATE_TABLE_TYPE.MEASURE_INFO);
|
|
|
// chart condition items
|
|
|
- List<string> list22 = new List<string>() { commonClassification, granularComponent, particleSizeDistribution, ternaryPhaseDiagram , InclusionAreaRatio };
|
|
|
+ List<string> list22 = new List<string>() { commonClassification, granularComponent, particleSizeDistribution, InclusionAreaRatio };
|
|
|
AddGridData(OTS_REPORT_PROP_GRID_ITEMS.CALCULATE_CHART_TYPE, dataTableType, OTS_ITEM_TYPES.COMBO, false, "Data graph type", list22[0], list22, CALCULATE_CHART_TYPE.COMMON_FIVE);
|
|
|
//三元相图模板
|
|
|
List<string> trio_listname = m_rstDataMgr.GetTriTemplateNameList();
|
|
@@ -464,25 +460,25 @@ namespace OTSIncAReportApp
|
|
|
|
|
|
|
|
|
}
|
|
|
- else if((int)sampleData3.itemVal == (int)CALCULATE_CHART_TYPE.TRIO_CHART)
|
|
|
- {
|
|
|
- //三元相图模板
|
|
|
+ //else if((int)sampleData3.itemVal == (int)CALCULATE_CHART_TYPE.TRIO_CHART)
|
|
|
+ //{
|
|
|
+ // //三元相图模板
|
|
|
|
|
|
- var sampleData15 = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.TRIO_CHART_TYPE];
|
|
|
- list.Add(sampleData15);
|
|
|
+ // var sampleData15 = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.TRIO_CHART_TYPE];
|
|
|
+ // list.Add(sampleData15);
|
|
|
|
|
|
- //粒级表
|
|
|
+ // //粒级表
|
|
|
|
|
|
- var sampleData_partsizefile = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.GRAIN_SIZE_CLASS_TABLE];
|
|
|
- m_ReportApp.m_rstDataMgr.m_RptConfigFile.PartSizeFile = sampleData_partsizefile.itemDisplayVal.ToString();
|
|
|
- list.Add(sampleData_partsizefile);
|
|
|
+ // var sampleData_partsizefile = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.GRAIN_SIZE_CLASS_TABLE];
|
|
|
+ // m_ReportApp.m_rstDataMgr.m_RptConfigFile.PartSizeFile = sampleData_partsizefile.itemDisplayVal.ToString();
|
|
|
+ // list.Add(sampleData_partsizefile);
|
|
|
|
|
|
- //尺寸计算方法
|
|
|
+ // //尺寸计算方法
|
|
|
|
|
|
|
|
|
- var sampleData5 = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE];
|
|
|
- list.Add(sampleData5);
|
|
|
- }
|
|
|
+ // var sampleData5 = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE];
|
|
|
+ // list.Add(sampleData5);
|
|
|
+ //}
|
|
|
|
|
|
|
|
|
}
|
|
@@ -678,95 +674,7 @@ namespace OTSIncAReportApp
|
|
|
m_ReportApp.im_ElementCompositionAvgGrid.Dock = DockStyle.Fill;
|
|
|
m_ReportApp.m_TablesWindow.Controls.Add(m_ReportApp.im_ElementCompositionAvgGrid);
|
|
|
m_ReportApp.m_TablesWindow.Activate();
|
|
|
- break;
|
|
|
- case CALCULATE_TABLE_TYPE.GB_Method1:
|
|
|
- //国标一
|
|
|
- string resultfile = m_rstDataMgr.ResultFilesList[m_rstDataMgr.GetWorkingResult()].FilePath + "\\"
|
|
|
- + m_rstDataMgr.ResultFilesList[m_rstDataMgr.GetWorkingResult()].FileName;
|
|
|
-
|
|
|
- m_ReportApp.m_rstDataMgr.m_ReportMgr.AddASmplMsrResultMgr(resultfile);
|
|
|
-
|
|
|
- OTSCLRINTERFACE.CPropParamClr clr_prop = m_ReportApp.m_rstDataMgr.m_ReportMgr.GetPropertyParamTable();
|
|
|
- clr_prop.SetDataSourceId(0);//
|
|
|
- clr_prop.SetType((int)DisplayPicutureType.AnalyzeDataTable);//table
|
|
|
- clr_prop.SetCalTableType((int)CALCULATE_TABLE_TYPE.GB_Method1);//国标1
|
|
|
-
|
|
|
- List<OTSCLRINTERFACE.CGridDataClr> listGriddataclr = m_ReportApp.m_rstDataMgr.m_ReportMgr.GridDataTransfer(clr_prop);//
|
|
|
-
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Clear();
|
|
|
- m_ReportApp.im_ChineseStandardABCDDS = new ChineseStandardABCDDS(m_ReportApp.m_rstDataMgr.m_ReportMgr, listGriddataclr);
|
|
|
-
|
|
|
- m_ReportApp.im_ChineseStandardABCDDS.Dock = DockStyle.Fill;
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Add(m_ReportApp.im_ChineseStandardABCDDS);
|
|
|
- m_ReportApp.m_TablesWindow.Activate();
|
|
|
-
|
|
|
-
|
|
|
- //OpenOTSINcAreportTemplateAPP(m_RstProp.m_ReportApp.m_DataMgrFun.resultFilesList[m_RstProp.m_ReportApp.m_DataMgrFun.WorkingResult].FilePath+"\\"
|
|
|
- // + m_RstProp.m_ReportApp.m_DataMgrFun.resultFilesList[m_RstProp.m_ReportApp.m_DataMgrFun.WorkingResult].FileName, "GB1");
|
|
|
- break;
|
|
|
- case CALCULATE_TABLE_TYPE.GB_Method2:
|
|
|
- //国标二
|
|
|
- string resultfile2 = m_rstDataMgr.ResultFilesList[m_rstDataMgr.GetWorkingResult()].FilePath + "\\"
|
|
|
- + m_rstDataMgr.ResultFilesList[m_rstDataMgr.GetWorkingResult()].FileName;
|
|
|
-
|
|
|
- m_ReportApp.m_rstDataMgr.m_ReportMgr.AddASmplMsrResultMgr(resultfile2);
|
|
|
-
|
|
|
- OTSCLRINTERFACE.CPropParamClr clr_prop2 = m_ReportApp.m_rstDataMgr.m_ReportMgr.GetPropertyParamTable();
|
|
|
- clr_prop2.SetDataSourceId(0);//
|
|
|
- clr_prop2.SetType((int)DisplayPicutureType.AnalyzeDataTable);//table
|
|
|
- clr_prop2.SetCalTableType((int)CALCULATE_TABLE_TYPE.GB_Method2);//国标2
|
|
|
- List<OTSCLRINTERFACE.CGridDataClr> listGriddataclr2 = m_ReportApp.m_rstDataMgr.m_ReportMgr.GridDataTransfer(clr_prop2);//
|
|
|
-
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Clear();
|
|
|
- m_ReportApp.im_NationalStandardMethodTwo = new NationalStandardMethodTwo(m_ReportApp.m_rstDataMgr.m_ReportMgr, listGriddataclr2);
|
|
|
- m_ReportApp.im_NationalStandardMethodTwo.Dock = DockStyle.Fill;
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Add(m_ReportApp.im_NationalStandardMethodTwo);
|
|
|
- m_ReportApp.m_TablesWindow.Activate();
|
|
|
- //OpenOTSINcAreportTemplateAPP(m_RstProp.m_ReportApp.m_DataMgrFun.resultFilesList[m_RstProp.m_ReportApp.m_DataMgrFun.WorkingResult].FilePath + "\\"
|
|
|
- // + m_RstProp.m_ReportApp.m_DataMgrFun.resultFilesList[m_RstProp.m_ReportApp.m_DataMgrFun.WorkingResult].FileName, "GB2");
|
|
|
- break;
|
|
|
- case CALCULATE_TABLE_TYPE.ASTM:
|
|
|
- //美标
|
|
|
- string resultfile3 = m_rstDataMgr.ResultFilesList[m_rstDataMgr.GetWorkingResult()].FilePath + "\\"
|
|
|
- + m_rstDataMgr.ResultFilesList[m_rstDataMgr.GetWorkingResult()].FileName;
|
|
|
-
|
|
|
- m_ReportApp.m_rstDataMgr.m_ReportMgr.AddASmplMsrResultMgr(resultfile3);
|
|
|
-
|
|
|
- OTSCLRINTERFACE.CPropParamClr clr_prop3 = m_ReportApp.m_rstDataMgr.m_ReportMgr.GetPropertyParamTable();
|
|
|
- clr_prop3.SetDataSourceId(0);//
|
|
|
- clr_prop3.SetType((int)DisplayPicutureType.AnalyzeDataTable);//table
|
|
|
- clr_prop3.SetCalTableType((int)CALCULATE_TABLE_TYPE.ASTM);
|
|
|
- List<OTSCLRINTERFACE.CGridDataClr> listGriddataclr3 = m_ReportApp.m_rstDataMgr.m_ReportMgr.GridDataTransfer(clr_prop3);
|
|
|
-
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Clear();
|
|
|
- m_ReportApp.im_ASTMStandardABCDDS = new ASTMStandardABCDDS(m_ReportApp.m_rstDataMgr.m_ReportMgr, listGriddataclr3);
|
|
|
- m_ReportApp.im_ASTMStandardABCDDS.Dock = DockStyle.Fill;
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Add(m_ReportApp.im_ASTMStandardABCDDS);
|
|
|
- m_ReportApp.m_TablesWindow.Activate();
|
|
|
- //OpenOTSINcAreportTemplateAPP(m_RstProp.m_ReportApp.m_DataMgrFun.resultFilesList[m_RstProp.m_ReportApp.m_DataMgrFun.WorkingResult].FilePath + "\\"
|
|
|
- // + m_RstProp.m_ReportApp.m_DataMgrFun.resultFilesList[m_RstProp.m_ReportApp.m_DataMgrFun.WorkingResult].FileName, "ASTM");
|
|
|
- break;
|
|
|
- case CALCULATE_TABLE_TYPE.DIN:
|
|
|
- //德标
|
|
|
- string resultfile4 = m_rstDataMgr.ResultFilesList[m_rstDataMgr.GetWorkingResult()].FilePath + "\\"
|
|
|
- + m_rstDataMgr.ResultFilesList[m_rstDataMgr.GetWorkingResult()].FileName;
|
|
|
-
|
|
|
- m_ReportApp.m_rstDataMgr.m_ReportMgr.AddASmplMsrResultMgr(resultfile4);
|
|
|
-
|
|
|
- OTSCLRINTERFACE.CPropParamClr clr_prop4 = m_ReportApp.m_rstDataMgr.m_ReportMgr.GetPropertyParamTable();
|
|
|
- clr_prop4.SetDataSourceId(0);//
|
|
|
- clr_prop4.SetType((int)DisplayPicutureType.AnalyzeDataTable);//table
|
|
|
- clr_prop4.SetCalTableType((int)CALCULATE_TABLE_TYPE.DIN);
|
|
|
- List<OTSCLRINTERFACE.CGridDataClr> listGriddataclr4 = m_ReportApp.m_rstDataMgr.m_ReportMgr.GridDataTransfer(clr_prop4);
|
|
|
-
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Clear();
|
|
|
- m_ReportApp.im_DINStandardABCDDS = new DINStandardABCDDS(m_ReportApp.m_rstDataMgr.m_ReportMgr, listGriddataclr4);
|
|
|
- m_ReportApp.im_DINStandardABCDDS.Dock = DockStyle.Fill;
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Add(m_ReportApp.im_DINStandardABCDDS);
|
|
|
- m_ReportApp.m_TablesWindow.Activate();
|
|
|
- //OpenOTSINcAreportTemplateAPP(m_RstProp.m_ReportApp.m_DataMgrFun.resultFilesList[m_RstProp.m_ReportApp.m_DataMgrFun.WorkingResult].FilePath + "\\"
|
|
|
- // + m_RstProp.m_ReportApp.m_DataMgrFun.resultFilesList[m_RstProp.m_ReportApp.m_DataMgrFun.WorkingResult].FileName, "DIN");
|
|
|
- break;
|
|
|
+ break;
|
|
|
}
|
|
|
|
|
|
#endregion 第二页选项窗体,分析数据表
|
|
@@ -824,21 +732,21 @@ namespace OTSIncAReportApp
|
|
|
m_ReportApp.m_ChartsWindow.Controls.Add(m_ReportApp.im_EChart_ParticlesComposition);
|
|
|
m_ReportApp.m_ChartsWindow.Activate();
|
|
|
break;
|
|
|
- case CALCULATE_CHART_TYPE.TRIO_CHART:
|
|
|
+ //case CALCULATE_CHART_TYPE.TRIO_CHART:
|
|
|
|
|
|
- //idx = m_RstProp. m_ReportApp.m_DataMgrFun.GetPropIndexByPropItemName(m_RstProp. SourceGridData.ConditionItemList, OTSIncAReportApp.OTSSampleReportInfo.OTS_REPORT_PROP_GRID_ITEMS.TRIO_CHART_TYPE);
|
|
|
- //string TrioChartType = prop.ConditionItemList[idx].itemVal.ToString();
|
|
|
- //List<string> nameList = prop.ConditionItemList[idx].comboDownList;
|
|
|
- int index = prop.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.TRIO_CHART_TYPE);
|
|
|
+ // //idx = m_RstProp. m_ReportApp.m_DataMgrFun.GetPropIndexByPropItemName(m_RstProp. SourceGridData.ConditionItemList, OTSIncAReportApp.OTSSampleReportInfo.OTS_REPORT_PROP_GRID_ITEMS.TRIO_CHART_TYPE);
|
|
|
+ // //string TrioChartType = prop.ConditionItemList[idx].itemVal.ToString();
|
|
|
+ // //List<string> nameList = prop.ConditionItemList[idx].comboDownList;
|
|
|
+ // int index = prop.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.TRIO_CHART_TYPE);
|
|
|
|
|
|
- str_operatonmodule = resTable["str_operatonmodule5"].ToString();
|
|
|
+ // str_operatonmodule = resTable["str_operatonmodule5"].ToString();
|
|
|
|
|
|
- m_ReportApp.im_EChart_Trianglediagram = new Control_ECharts.EChart_Trianglediagram(m_ReportApp);
|
|
|
- m_ReportApp.im_EChart_Trianglediagram.Template = "";
|
|
|
- m_ReportApp.im_EChart_Trianglediagram.Dock = DockStyle.Fill;
|
|
|
- m_ReportApp.m_ChartsWindow.Controls.Add(m_ReportApp.im_EChart_Trianglediagram);
|
|
|
- m_ReportApp.m_ChartsWindow.Activate();
|
|
|
- break;
|
|
|
+ // m_ReportApp.im_EChart_Trianglediagram = new Control_ECharts.EChart_Trianglediagram(m_ReportApp);
|
|
|
+ // m_ReportApp.im_EChart_Trianglediagram.Template = "";
|
|
|
+ // m_ReportApp.im_EChart_Trianglediagram.Dock = DockStyle.Fill;
|
|
|
+ // m_ReportApp.m_ChartsWindow.Controls.Add(m_ReportApp.im_EChart_Trianglediagram);
|
|
|
+ // m_ReportApp.m_ChartsWindow.Activate();
|
|
|
+ // break;
|
|
|
|
|
|
case CALCULATE_CHART_TYPE.INCLUSION_AREA_RATIO:
|
|
|
m_reportname = "夹杂物面积比";
|