|
|
@@ -196,7 +196,7 @@ namespace OTSIncAReportApp
|
|
|
//计算方式
|
|
|
AddGridData(OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE, dimensionCalculationMethod, OTS_ITEM_TYPES.COMBO, false, "image property calculation method", DefaultSIZE_CAL_METHOD_TYPE, m_rstDataMgr.GetSizeCalMethodTypeList(), ind);
|
|
|
//数据表类型
|
|
|
- List<string> list2 = new List<string>() { surveyResults, sampleMeasurementInformation, granularComponent, particleSizeDistribution, averageElementComposition };
|
|
|
+ List<string> list2 = new List<string>() { granularComponent, particleSizeDistribution, averageElementComposition };
|
|
|
ResultFile resultinfo = m_rstDataMgr.ResultFilesList[m_rstDataMgr.GetWorkingResultId()];
|
|
|
var Systype = RptConfigFile.GetRptConfig().Systype;
|
|
|
|
|
|
@@ -206,10 +206,10 @@ namespace OTSIncAReportApp
|
|
|
List<string> listStd = new List<string>() { chineseStandard1, chineseStandard2, americanStandard, germanStandard, yb6156 };
|
|
|
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);
|
|
|
+
|
|
|
+
|
|
|
+ AddGridData(OTS_REPORT_PROP_GRID_ITEMS.CALCULATE_TABLE_TYPE, dataTableType, OTS_ITEM_TYPES.COMBO, false, "Data table type", list2[0], list2, CALCULATE_TABLE_TYPE.PARTICALE_COMP);
|
|
|
// chart condition items
|
|
|
List<string> list22 = new List<string>() { commonClassification, granularComponent, particleSizeDistribution, ternaryPhaseDiagram, 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);
|
|
|
@@ -290,7 +290,6 @@ namespace OTSIncAReportApp
|
|
|
|
|
|
public bool GetWorkingPictureConditionVal()
|
|
|
{
|
|
|
- //var tabindex = this.tabIndex;
|
|
|
if (m_rstDataMgr.GetWorkingResultId() == -1)
|
|
|
{
|
|
|
return false;
|
|
|
@@ -329,39 +328,17 @@ namespace OTSIncAReportApp
|
|
|
|
|
|
break;
|
|
|
case DisplayPicutureType.AnalyzeDataTable:
|
|
|
-
|
|
|
data.TabIndex = DisplayPicutureType.AnalyzeDataTable;
|
|
|
-
|
|
|
data.ConditionItemList = GetSourceGridData(DisplayPicutureType.AnalyzeDataTable);
|
|
|
- var sampleData3 = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.CALCULATE_TABLE_TYPE];
|
|
|
- if ((int)sampleData3.itemVal == (int)CALCULATE_TABLE_TYPE.PARTICALE_GENE_INFO)
|
|
|
- {
|
|
|
- for (int i = 0; i < data.ConditionItemList.Count; i++)
|
|
|
- {
|
|
|
- if (data.ConditionItemList[i].iItemId == OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE)
|
|
|
- {
|
|
|
- if (data.ConditionItemList[i].itemDisplayVal.ToString().Contains("+"))
|
|
|
- {
|
|
|
- data.ConditionItemList[i].itemDisplayVal = data.ConditionItemList[i].comboDownList[0].ToString();
|
|
|
- data.ConditionItemList[i].itemVal = 0;
|
|
|
- m_rstDataMgr.SetWorkingResultId((int)data.ConditionItemList[i].itemVal);
|
|
|
- m_ReportApp.m_StandardLibrary.DataRefresh();
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- m_rstDataMgr.SetWorkingResultId((int)data.ConditionItemList[i].itemVal);
|
|
|
- m_ReportApp.m_StandardLibrary.DataRefresh();
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
break;
|
|
|
- case DisplayPicutureType.AnalyzeDataChart:
|
|
|
-
|
|
|
- data.TabIndex = DisplayPicutureType.AnalyzeDataChart;
|
|
|
-
|
|
|
- data.ConditionItemList = GetSourceGridData(DisplayPicutureType.AnalyzeDataChart);
|
|
|
+ case DisplayPicutureType.AnalyzeSheetandChart:
|
|
|
+ data.TabIndex = DisplayPicutureType.AnalyzeSheetandChart;
|
|
|
+ //var sampleData3 = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.CALCULATE_TABLE_TYPE];
|
|
|
+ data.ConditionItemList = GetSourceGridData(DisplayPicutureType.AnalyzeSheetandChart);
|
|
|
+ break;
|
|
|
+ case DisplayPicutureType.OverviewTable:
|
|
|
+ data.TabIndex = DisplayPicutureType.OverviewTable;
|
|
|
+ data.ConditionItemList = GetSourceGridData(DisplayPicutureType.OverviewTable);
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
|
|
@@ -379,7 +356,6 @@ namespace OTSIncAReportApp
|
|
|
/// <returns></returns>SampleData1
|
|
|
private List<ConditionItem> GetSourceGridData(DisplayPicutureType tbindex)
|
|
|
{
|
|
|
-
|
|
|
string BSEOriginal = resTable["bseoriginal"].ToString();//BSE原图
|
|
|
string ClassifiedDisplay = resTable["classifieddisplay"].ToString();//分类显示
|
|
|
string OriginalSplicing = resTable["originalsplicing"].ToString();//原图拼接
|
|
|
@@ -388,6 +364,7 @@ namespace OTSIncAReportApp
|
|
|
|
|
|
List<ConditionItem> list = new List<ConditionItem>();
|
|
|
ConditionItem sampleData;
|
|
|
+
|
|
|
if (tbindex == DisplayPicutureType.AnalyzeImg)//分布图页
|
|
|
{
|
|
|
//测量结果数据源
|
|
|
@@ -497,24 +474,26 @@ namespace OTSIncAReportApp
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- else if (tbindex == DisplayPicutureType.AnalyzeDataTable)//Grid表格页
|
|
|
+ else if (tbindex == DisplayPicutureType.AnalyzeDataTable)//颗粒列表
|
|
|
+ {
|
|
|
+ sampleData = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE];
|
|
|
+ list.Add(sampleData);
|
|
|
+ var sampleData1 = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.PARTICE_LIST];
|
|
|
+ list.Add(sampleData1);
|
|
|
+ }
|
|
|
+ else if (tbindex == DisplayPicutureType.AnalyzeSheetandChart)//统计分析
|
|
|
{
|
|
|
- //测量结果数据源
|
|
|
-
|
|
|
sampleData = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE];
|
|
|
list.Add(sampleData);
|
|
|
-
|
|
|
-
|
|
|
var sampleData3 = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.CALCULATE_TABLE_TYPE];
|
|
|
list.Add(sampleData3);
|
|
|
|
|
|
-
|
|
|
- if ((int)sampleData3.itemVal == (int)CALCULATE_TABLE_TYPE.PARTICALE_SIZE_DISTRIBUTION )
|
|
|
+ if ((int)sampleData3.itemVal == (int)CALCULATE_TABLE_TYPE.PARTICALE_SIZE_DISTRIBUTION)
|
|
|
{
|
|
|
//粒级表
|
|
|
|
|
|
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();
|
|
|
+ m_ReportApp.m_rstDataMgr.m_RptConfigFile.PartSizeFile = sampleData_partsizefile.itemDisplayVal.ToString();
|
|
|
list.Add(sampleData_partsizefile);
|
|
|
|
|
|
//尺寸计算方法
|
|
|
@@ -526,7 +505,7 @@ namespace OTSIncAReportApp
|
|
|
list.Add(stditm);
|
|
|
|
|
|
var sampleData1 = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE];
|
|
|
-
|
|
|
+
|
|
|
list.Insert(2, sampleData1);
|
|
|
}
|
|
|
if ((int)sampleData3.itemVal == (int)CALCULATE_TABLE_TYPE.PARTICALE_COMP)
|
|
|
@@ -536,86 +515,36 @@ namespace OTSIncAReportApp
|
|
|
list.Add(sampleData5);
|
|
|
|
|
|
var sampleData1 = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE];
|
|
|
-
|
|
|
+
|
|
|
list.Insert(2, sampleData1);
|
|
|
var sampleDataA5 = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.GRAPHIC_TYPE];
|
|
|
list.Add(sampleDataA5);
|
|
|
}
|
|
|
|
|
|
- if ((int)sampleData3.itemVal == (int)CALCULATE_TABLE_TYPE.PARTICALE_GENE_INFO)
|
|
|
- {
|
|
|
- var sampleData1 = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.PARTICE_LIST];
|
|
|
-
|
|
|
- list.Insert(2, sampleData1);
|
|
|
- }
|
|
|
+ //if ((int)sampleData3.itemVal == (int)CALCULATE_TABLE_TYPE.PARTICALE_GENE_INFO)
|
|
|
+ //{
|
|
|
+ // var sampleData1 = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.PARTICE_LIST];
|
|
|
+
|
|
|
+ // list.Insert(2, sampleData1);
|
|
|
+ //}
|
|
|
|
|
|
//元素分析表
|
|
|
if ((int)sampleData3.itemVal == (int)CALCULATE_TABLE_TYPE.AVE_ELEMENT_COMP)
|
|
|
{
|
|
|
var sampleData1 = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE];
|
|
|
-
|
|
|
+
|
|
|
list.Insert(2, sampleData1);
|
|
|
|
|
|
//all particle types
|
|
|
var stditm = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.STD_ID];
|
|
|
list.Add(stditm);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
- else if (tbindex == DisplayPicutureType.AnalyzeDataChart)//Chart图页
|
|
|
+ else if (tbindex == DisplayPicutureType.OverviewTable)//概况
|
|
|
{
|
|
|
-
|
|
|
sampleData = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE];
|
|
|
list.Add(sampleData);
|
|
|
-
|
|
|
- var sampleData3 = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.CALCULATE_CHART_TYPE];
|
|
|
- list.Add(sampleData3);
|
|
|
-
|
|
|
- var sampleData1 = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE];
|
|
|
- list.Add(sampleData1);
|
|
|
-
|
|
|
- //数据图类型
|
|
|
-
|
|
|
- if ((int)sampleData3.itemVal == (int)CALCULATE_CHART_TYPE.PARTICALE_SIZE_DISTRIBUTION)
|
|
|
- {
|
|
|
- //粒级表
|
|
|
-
|
|
|
- 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);
|
|
|
-
|
|
|
- if ((int)sampleData3.iItemId == (int)OTS_REPORT_PROP_GRID_ITEMS.CALCULATE_CHART_TYPE)
|
|
|
- {
|
|
|
- //all particle types
|
|
|
- var stditm = m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.STD_ID];
|
|
|
- list.Add(stditm);
|
|
|
- }
|
|
|
- }
|
|
|
- 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 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);
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
|
|
|
return list;
|
|
|
@@ -759,59 +688,53 @@ namespace OTSIncAReportApp
|
|
|
case DisplayPicutureType.AnalyzeDataTable:
|
|
|
#region 第二页选项窗体,分析数据表
|
|
|
m_ReportApp.m_RibbonFun.SetRibbonButnStatu_ByModule(DisplayPicutureType.AnalyzeDataTable);
|
|
|
-
|
|
|
+ if (m_ReportApp.im_ParticlesGridDevidePage != null && m_ReportApp.im_ParticlesGridDevidePage.FileName == m_fileName && (m_ReportApp.im_Control_DrawDistrbutionImageAndBSE == null || !m_ReportApp.im_Control_DrawDistrbutionImageAndBSE.WhetherThereAreDeleteParticles()))
|
|
|
+ {
|
|
|
+ m_ReportApp.m_ParticlesListWindow.Controls.Clear();
|
|
|
+ m_ReportApp.m_ParticlesListWindow.Controls.Add(m_ReportApp.im_ParticlesGridDevidePage);
|
|
|
+ m_ReportApp.m_ParticlesListWindow.Activate();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ m_ReportApp.m_ParticlesListWindow.Controls.Clear();
|
|
|
+ m_ReportApp.im_ParticlesGridDevidePage = new OTSIncAReportGrids.ParticlesGridDevidePage(m_ReportApp);
|
|
|
+ m_ReportApp.im_ParticlesGridDevidePage.FileName = m_fileName;
|
|
|
+ m_ReportApp.im_ParticlesGridDevidePage.Dock = DockStyle.Fill;
|
|
|
+ m_ReportApp.m_ParticlesListWindow.Controls.Add(m_ReportApp.im_ParticlesGridDevidePage);
|
|
|
+ m_ReportApp.m_ParticlesListWindow.Activate();
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ #endregion
|
|
|
+ //分析数据图
|
|
|
+ case DisplayPicutureType.AnalyzeSheetandChart:
|
|
|
+ m_ReportApp.m_RibbonFun.SetRibbonButnStatu_ByModule(DisplayPicutureType.AnalyzeSheetandChart);
|
|
|
CALCULATE_TABLE_TYPE TableType = (CALCULATE_TABLE_TYPE)prop.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.CALCULATE_TABLE_TYPE);
|
|
|
switch (TableType)
|
|
|
{
|
|
|
- case CALCULATE_TABLE_TYPE.MEASURE_INFO:
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Clear();
|
|
|
- m_ReportApp.im_ResultGrid = new ResultGrid(m_ReportApp);
|
|
|
- m_ReportApp.im_ResultGrid.Dock = DockStyle.Fill;
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Add(m_ReportApp.im_ResultGrid);
|
|
|
- m_ReportApp.m_TablesWindow.Activate();
|
|
|
- m_ReportApp.m_StandardLibrary.DataRefresh();
|
|
|
- break;
|
|
|
- case CALCULATE_TABLE_TYPE.PARTICALE_GENE_INFO:
|
|
|
- if (m_ReportApp.im_ParticlesGridDevidePage != null && m_ReportApp.im_ParticlesGridDevidePage.FileName == m_fileName&&(m_ReportApp.im_Control_DrawDistrbutionImageAndBSE==null||!m_ReportApp.im_Control_DrawDistrbutionImageAndBSE.WhetherThereAreDeleteParticles()))
|
|
|
- {
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Clear();
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Add(m_ReportApp.im_ParticlesGridDevidePage);
|
|
|
- m_ReportApp.m_TablesWindow.Activate();
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Clear();
|
|
|
- m_ReportApp.im_ParticlesGridDevidePage = new OTSIncAReportGrids.ParticlesGridDevidePage(m_ReportApp);
|
|
|
- m_ReportApp.im_ParticlesGridDevidePage.FileName = m_fileName;
|
|
|
- m_ReportApp.im_ParticlesGridDevidePage.Dock = DockStyle.Fill;
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Add(m_ReportApp.im_ParticlesGridDevidePage);
|
|
|
- m_ReportApp.m_TablesWindow.Activate();
|
|
|
- }
|
|
|
- break;
|
|
|
case CALCULATE_TABLE_TYPE.PARTICALE_COMP:
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Clear();
|
|
|
+ m_ReportApp.m_TablesWindowandChart.Controls.Clear();
|
|
|
m_ReportApp.im_CompositionDistributionGrid = new CompositionDistributionGrid(m_ReportApp);
|
|
|
m_ReportApp.im_CompositionDistributionGrid.Dock = DockStyle.Fill;
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Add(m_ReportApp.im_CompositionDistributionGrid);
|
|
|
- m_ReportApp.m_TablesWindow.Activate();
|
|
|
+ m_ReportApp.m_TablesWindowandChart.Controls.Add(m_ReportApp.im_CompositionDistributionGrid);
|
|
|
+ m_ReportApp.m_TablesWindowandChart.Activate();
|
|
|
|
|
|
m_ReportApp.im_CompositionDistributionGrid.SetGraphicType(m_conditionData);
|
|
|
break;
|
|
|
case CALCULATE_TABLE_TYPE.PARTICALE_SIZE_DISTRIBUTION://颗粒尺寸分布表
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Clear();
|
|
|
+ m_ReportApp.m_TablesWindowandChart.Controls.Clear();
|
|
|
m_ReportApp.im_ParticlesSizeGrid = new ParticlesSizeGrid(m_ReportApp);
|
|
|
m_ReportApp.im_ParticlesSizeGrid.Dock = DockStyle.Fill;
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Add(m_ReportApp.im_ParticlesSizeGrid);
|
|
|
- m_ReportApp.m_TablesWindow.Activate();
|
|
|
+ m_ReportApp.m_TablesWindowandChart.Controls.Add(m_ReportApp.im_ParticlesSizeGrid);
|
|
|
+ m_ReportApp.m_TablesWindowandChart.Activate();
|
|
|
m_ReportApp.im_ParticlesSizeGrid.SetGraphicType(m_conditionData);
|
|
|
|
|
|
break;
|
|
|
case CALCULATE_TABLE_TYPE.AVE_ELEMENT_COMP:
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Clear();
|
|
|
+ m_ReportApp.m_TablesWindowandChart.Controls.Clear();
|
|
|
m_ReportApp.im_ElementCompositionAvgGrid = new ElementCompositionAvgGrid(m_ReportApp);
|
|
|
m_ReportApp.im_ElementCompositionAvgGrid.Dock = DockStyle.Fill;
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Add(m_ReportApp.im_ElementCompositionAvgGrid);
|
|
|
- m_ReportApp.m_TablesWindow.Activate();
|
|
|
+ m_ReportApp.m_TablesWindowandChart.Controls.Add(m_ReportApp.im_ElementCompositionAvgGrid);
|
|
|
+ m_ReportApp.m_TablesWindowandChart.Activate();
|
|
|
m_ReportApp.im_ElementCompositionAvgGrid.SetGraphicType(m_conditionData);
|
|
|
break;
|
|
|
case CALCULATE_TABLE_TYPE.GB_Method1:
|
|
|
@@ -821,7 +744,7 @@ namespace OTSIncAReportApp
|
|
|
MessageBox.Show("This function does not support multiple samples!");
|
|
|
return;
|
|
|
}
|
|
|
- //国标一
|
|
|
+ //国标一
|
|
|
Cursor.Current = Cursors.WaitCursor;
|
|
|
|
|
|
int index = m_ReportApp.m_conditionChoose.m_conditionData.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE);
|
|
|
@@ -844,14 +767,14 @@ namespace OTSIncAReportApp
|
|
|
|
|
|
List<OTSCLRINTERFACE.CGridDataClr> listGriddataclr = m_ReportApp.m_rstDataMgr.m_ReportMgr.GridDataTransfer(clr_prop);//
|
|
|
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Clear();
|
|
|
+ m_ReportApp.m_TablesWindowandChart.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_TablesWindowandChart.Controls.Add(m_ReportApp.im_ChineseStandardABCDDS);
|
|
|
m_ReportApp.im_ChineseStandardABCDDS.UseWaitCursor = false;
|
|
|
Cursor.Current = Cursors.Default;
|
|
|
- m_ReportApp.m_TablesWindow.Activate();
|
|
|
+ m_ReportApp.m_TablesWindowandChart.Activate();
|
|
|
|
|
|
break;
|
|
|
case CALCULATE_TABLE_TYPE.GB_Method2:
|
|
|
@@ -864,7 +787,7 @@ namespace OTSIncAReportApp
|
|
|
//国标二
|
|
|
Cursor.Current = Cursors.WaitCursor;
|
|
|
int index2 = m_ReportApp.m_conditionChoose.m_conditionData.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE);
|
|
|
-
|
|
|
+
|
|
|
for (int i = 0; i < m_ReportApp.m_rstDataMgr.ResultFilesList.Count; i++)
|
|
|
{
|
|
|
string anothername = m_ReportApp.m_rstDataMgr.ResultFilesList[i].anotherFileName.ToString();
|
|
|
@@ -882,12 +805,12 @@ namespace OTSIncAReportApp
|
|
|
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.m_TablesWindowandChart.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_TablesWindowandChart.Controls.Add(m_ReportApp.im_NationalStandardMethodTwo);
|
|
|
Cursor.Current = Cursors.WaitCursor;
|
|
|
- m_ReportApp.m_TablesWindow.Activate();
|
|
|
+ m_ReportApp.m_TablesWindowandChart.Activate();
|
|
|
break;
|
|
|
case CALCULATE_TABLE_TYPE.ASTM:
|
|
|
var Val = m_ReportApp.m_conditionChoose.m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE].itemDisplayVal.ToString();
|
|
|
@@ -900,7 +823,7 @@ namespace OTSIncAReportApp
|
|
|
Cursor.Current = Cursors.WaitCursor;
|
|
|
|
|
|
int index3 = m_ReportApp.m_conditionChoose.m_conditionData.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE);
|
|
|
-
|
|
|
+
|
|
|
for (int i = 0; i < m_ReportApp.m_rstDataMgr.ResultFilesList.Count; i++)
|
|
|
{
|
|
|
string anothername = m_ReportApp.m_rstDataMgr.ResultFilesList[i].anotherFileName.ToString();
|
|
|
@@ -918,12 +841,12 @@ namespace OTSIncAReportApp
|
|
|
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.m_TablesWindowandChart.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_TablesWindowandChart.Controls.Add(m_ReportApp.im_ASTMStandardABCDDS);
|
|
|
Cursor.Current = Cursors.Default;
|
|
|
- m_ReportApp.m_TablesWindow.Activate();
|
|
|
+ m_ReportApp.m_TablesWindowandChart.Activate();
|
|
|
break;
|
|
|
case CALCULATE_TABLE_TYPE.DIN:
|
|
|
var ite = m_ReportApp.m_conditionChoose.m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE].itemDisplayVal.ToString();
|
|
|
@@ -935,7 +858,7 @@ namespace OTSIncAReportApp
|
|
|
//德标
|
|
|
Cursor.Current = Cursors.WaitCursor;
|
|
|
int index4 = m_ReportApp.m_conditionChoose.m_conditionData.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE);
|
|
|
-
|
|
|
+
|
|
|
for (int i = 0; i < m_ReportApp.m_rstDataMgr.ResultFilesList.Count; i++)
|
|
|
{
|
|
|
string anothername = m_ReportApp.m_rstDataMgr.ResultFilesList[i].anotherFileName.ToString();
|
|
|
@@ -948,17 +871,17 @@ namespace OTSIncAReportApp
|
|
|
datasourcelist4.Add(m_ReportApp.m_conditionChoose.m_conditionData.GetComboDownListByItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE)[index4]);
|
|
|
clr_prop4.SetDataSourceList(datasourcelist4);
|
|
|
clr_prop4.SetDataSourceId(index4);//
|
|
|
-
|
|
|
+
|
|
|
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.m_TablesWindowandChart.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_TablesWindowandChart.Controls.Add(m_ReportApp.im_DINStandardABCDDS);
|
|
|
Cursor.Current = Cursors.Default;
|
|
|
- m_ReportApp.m_TablesWindow.Activate();
|
|
|
+ m_ReportApp.m_TablesWindowandChart.Activate();
|
|
|
break;
|
|
|
case CALCULATE_TABLE_TYPE.YB6156:
|
|
|
var eve = m_ReportApp.m_conditionChoose.m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE].itemDisplayVal.ToString();
|
|
|
@@ -988,105 +911,31 @@ namespace OTSIncAReportApp
|
|
|
clr_prop5.SetCalTableType((int)CALCULATE_TABLE_TYPE.YB6156);
|
|
|
List<OTSCLRINTERFACE.CGridDataClr> listGriddataclr5 = m_ReportApp.m_rstDataMgr.m_ReportMgr.GridDataTransfer(clr_prop5);
|
|
|
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Clear();
|
|
|
+ m_ReportApp.m_TablesWindowandChart.Controls.Clear();
|
|
|
m_ReportApp.im_YB6156ABCD = new YB6156ABCD(m_ReportApp.m_rstDataMgr.m_ReportMgr, listGriddataclr5);
|
|
|
m_ReportApp.im_YB6156ABCD.Dock = DockStyle.Fill;
|
|
|
- m_ReportApp.m_TablesWindow.Controls.Add(m_ReportApp.im_YB6156ABCD);
|
|
|
+ m_ReportApp.m_TablesWindowandChart.Controls.Add(m_ReportApp.im_YB6156ABCD);
|
|
|
Cursor.Current = Cursors.Default;
|
|
|
- m_ReportApp.m_TablesWindow.Activate();
|
|
|
+ m_ReportApp.m_TablesWindowandChart.Activate();
|
|
|
break;
|
|
|
}
|
|
|
-
|
|
|
- #endregion 第二页选项窗体,分析数据表
|
|
|
break;
|
|
|
- //分析数据图
|
|
|
- case DisplayPicutureType.AnalyzeDataChart:
|
|
|
- m_ReportApp.m_RibbonFun.SetRibbonButnStatu_ByModule(DisplayPicutureType.AnalyzeDataChart);
|
|
|
- #region 第三页选项窗体,分析数据图
|
|
|
- m_ReportApp.m_ChartsWindow.Controls.Clear();
|
|
|
-
|
|
|
- string m_reportname = "";
|
|
|
- string m_str_AxisY = "";
|
|
|
- string str_operatonmodule = "";
|
|
|
-
|
|
|
- CALCULATE_CHART_TYPE ChartType = (CALCULATE_CHART_TYPE)prop.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.CALCULATE_CHART_TYPE);
|
|
|
- switch (ChartType)
|
|
|
- {
|
|
|
- case CALCULATE_CHART_TYPE.COMMON_FIVE:
|
|
|
- m_reportname = resTable["m_reportname1"].ToString();//常用夹杂物分类
|
|
|
- m_str_AxisY = resTable["m_str_axisy1"].ToString();
|
|
|
- str_operatonmodule = resTable["str_operatonmodule1"].ToString();
|
|
|
-
|
|
|
- m_ReportApp.im_EChart_ParticlesComposition = new Control_ECharts.DEVChart_ParticlesComposition(m_ReportApp, "CommonlyUsedClassify");
|
|
|
- m_ReportApp.im_EChart_ParticlesComposition.Dock = DockStyle.Fill;
|
|
|
- m_ReportApp.m_reportname = m_reportname;
|
|
|
- m_ReportApp.im_EChart_ParticlesComposition.m_str_AxisY = m_str_AxisY;
|
|
|
- m_ReportApp.type = "pie";
|
|
|
- m_ReportApp.m_ChartsWindow.Controls.Add(m_ReportApp.im_EChart_ParticlesComposition);
|
|
|
- m_ReportApp.m_ChartsWindow.Activate();
|
|
|
- break;
|
|
|
- case CALCULATE_CHART_TYPE.PARTICALE_COMP:
|
|
|
- m_reportname = resTable["m_reportname2"].ToString();//颗粒成分
|
|
|
- m_str_AxisY = resTable["m_str_axisy2"].ToString();//颗粒数
|
|
|
- str_operatonmodule = resTable["str_operatonmodule2"].ToString();//颗粒成分图
|
|
|
-
|
|
|
- m_ReportApp.im_EChart_ParticlesComposition = new Control_ECharts.DEVChart_ParticlesComposition(m_ReportApp, "PComponent");
|
|
|
- m_ReportApp.im_EChart_ParticlesComposition.Dock = DockStyle.Fill;
|
|
|
- m_ReportApp.m_reportname = m_reportname;
|
|
|
- m_ReportApp.im_EChart_ParticlesComposition.m_str_AxisY = m_str_AxisY;
|
|
|
- m_ReportApp.type = "pie";
|
|
|
- m_ReportApp.m_ChartsWindow.Controls.Add(m_ReportApp.im_EChart_ParticlesComposition);
|
|
|
- m_ReportApp.m_ChartsWindow.Activate();
|
|
|
- break;
|
|
|
- case CALCULATE_CHART_TYPE.PARTICALE_SIZE_DISTRIBUTION://颗粒尺寸分布图
|
|
|
- m_reportname = resTable["m_reportname4"].ToString();//颗粒尺寸分布
|
|
|
- m_str_AxisY = resTable["m_str_axisy4"].ToString();//颗粒数
|
|
|
- str_operatonmodule = resTable["str_operatonmodule4"].ToString();//颗粒尺寸分布图
|
|
|
-
|
|
|
- m_ReportApp.im_EChart_ParticlesComposition = new Control_ECharts.DEVChart_ParticlesComposition(m_ReportApp, "PSize");
|
|
|
- m_ReportApp.im_EChart_ParticlesComposition.Dock = DockStyle.Fill;
|
|
|
- m_ReportApp.m_reportname = m_reportname;
|
|
|
- m_ReportApp.im_EChart_ParticlesComposition.m_str_AxisY = m_str_AxisY;
|
|
|
- m_ReportApp.type = "pie";
|
|
|
- m_ReportApp.m_ChartsWindow.Controls.Add(m_ReportApp.im_EChart_ParticlesComposition);
|
|
|
- m_ReportApp.m_ChartsWindow.Activate();
|
|
|
-
|
|
|
- m_ReportApp.im_EChart_ParticlesComposition.DisplayTheChartAgainByParticleCategory(m_conditionData);
|
|
|
- break;
|
|
|
- case CALCULATE_CHART_TYPE.TRIO_CHART:
|
|
|
-
|
|
|
- int index = prop.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.TRIO_CHART_TYPE);
|
|
|
-
|
|
|
- str_operatonmodule = resTable["str_operatonmodule5"].ToString();
|
|
|
-
|
|
|
- m_ReportApp.im_EChart_Trianglediagram = new Control_ECharts.DEVChart_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 = resTable["incaareascale"].ToString();
|
|
|
- m_str_AxisY = "平方微米";
|
|
|
-
|
|
|
- m_ReportApp.im_EChart_ParticlesComposition = new Control_ECharts.DEVChart_ParticlesComposition(m_ReportApp, "InclusionareaRatio");
|
|
|
- m_ReportApp.im_EChart_ParticlesComposition.Dock = DockStyle.Fill;
|
|
|
- m_ReportApp.m_reportname = m_reportname;
|
|
|
- m_ReportApp.im_EChart_ParticlesComposition.m_str_AxisY = m_str_AxisY;
|
|
|
- m_ReportApp.type = "pie";
|
|
|
- m_ReportApp.m_ChartsWindow.Controls.Add(m_ReportApp.im_EChart_ParticlesComposition);
|
|
|
- m_ReportApp.m_ChartsWindow.Activate();
|
|
|
- break;
|
|
|
- }
|
|
|
- #endregion 第三页窗体,分析数据图
|
|
|
+ case DisplayPicutureType.OverviewTable:
|
|
|
+ #region 第一页选项窗体,结果概况
|
|
|
+ m_ReportApp.m_RibbonFun.SetRibbonButnStatu_ByModule(DisplayPicutureType.OverviewTable);
|
|
|
+
|
|
|
+ m_ReportApp.m_OverviewWindow.Controls.Clear();
|
|
|
+ m_ReportApp.im_ResultGrid = new ResultGrid(m_ReportApp);
|
|
|
+ m_ReportApp.im_ResultGrid.Dock = DockStyle.Fill;
|
|
|
+ m_ReportApp.m_OverviewWindow.Controls.Add(m_ReportApp.im_ResultGrid);
|
|
|
+ m_ReportApp.m_OverviewWindow.Activate();
|
|
|
+ m_ReportApp.m_StandardLibrary.DataRefresh();
|
|
|
+ #endregion
|
|
|
break;
|
|
|
}
|
|
|
#endregion
|
|
|
}
|
|
|
-
|
|
|
#endregion
|
|
|
-
|
|
|
#region 属性Grid相关事件
|
|
|
/// <summary>
|
|
|
/// 属性Grid点击事件
|