|
@@ -246,8 +246,6 @@ namespace OTSIncAReportApp
|
|
|
dpbOpen.Tag = "dpbOpen";
|
|
|
|
|
|
dpbExport.Tag = "dpbExport";
|
|
|
- dpbCopy.Tag = "dpbCopy";
|
|
|
- dpbCopyAll.Tag = "dpbCopyAll";
|
|
|
ribbonOrbOptionButton1.Tag = "ribbonOrbOptionButton1";
|
|
|
}
|
|
|
|
|
@@ -990,221 +988,6 @@ namespace OTSIncAReportApp
|
|
|
MemoryManagementClass.FlushMemory();
|
|
|
}
|
|
|
|
|
|
- /// <summary>
|
|
|
- /// 复制
|
|
|
- /// </summary>
|
|
|
- /// <param name="sender"></param>
|
|
|
- /// <param name="e"></param>
|
|
|
- private void ribbonOrbMenuItem6_Click(object sender, EventArgs e)
|
|
|
- {
|
|
|
- int tabIndex = (int)m_conditionChoose.tabIndex;
|
|
|
-
|
|
|
- //int imgDisType = SourceGridData.SampleDataList[2].comboDownList.IndexOf(SourceGridData.SampleDataList[2].itemVal.ToString());
|
|
|
- //int calTableType = SourceGridData.SampleDataList[2].comboDownList.IndexOf(SourceGridData.SampleDataList[2].itemVal.ToString());
|
|
|
- //int calChartType = SourceGridData.SampleDataList[2].comboDownList.IndexOf(SourceGridData.SampleDataList[2].itemVal.ToString());
|
|
|
-
|
|
|
- //int idx = m_DataMgrFun.GetPropIndexByPropItemName(SourceGridData.ConditionItemList, OTSIncAReportApp.OTSSampleReportInfo.OTS_REPORT_PROP_GRID_ITEMS.CALCULATE_TABLE_TYPE);
|
|
|
- //int DisType = SourceGridData.ConditionItemList[idx].comboDownList.IndexOf(SourceGridData.ConditionItemList[idx].itemVal.ToString());
|
|
|
- int DisType = m_conditionChoose.m_SourceGridData.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.IMAGE_DISPLAY_TYPE);
|
|
|
- switch (tabIndex)
|
|
|
- {
|
|
|
- case (int)DisplayPicutureType.AnalyzeImg: //如果是分布图,排列图
|
|
|
- if (DisType == (int)IMAGE_DISPLAY_TYPE.DISTRIBUTION) //oper_module == "颗粒分布图"
|
|
|
- {
|
|
|
- if (im_Control_DrawDistrbutionImageAndBSE != null)
|
|
|
- {
|
|
|
- //分布图
|
|
|
- im_Control_DrawDistrbutionImageAndBSE.CopyToBitmap();
|
|
|
- }
|
|
|
- }
|
|
|
- if (DisType == (int)IMAGE_DISPLAY_TYPE.IMAGE_GRID)
|
|
|
- {
|
|
|
- if (im_Control_DrawDistrbutionSortImage != null)
|
|
|
- {
|
|
|
- //排列图
|
|
|
- im_Control_DrawDistrbutionSortImage.CopyToBitmap();
|
|
|
- }
|
|
|
- }
|
|
|
- break;
|
|
|
- case (int)DisplayPicutureType.AnalyzeDataTable: //如果是Grid表格
|
|
|
- if (DisType == (int)CALCULATE_TABLE_TYPE.MEASURE_INFO)
|
|
|
- {
|
|
|
- if (im_ResultGrid != null)
|
|
|
- {
|
|
|
- //测量结果信息
|
|
|
- im_ResultGrid.CopySelected();
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- if (DisType == (int)CALCULATE_TABLE_TYPE.PARTICALE_GENE_INFO)
|
|
|
- {
|
|
|
- if (im_ParticlesGridDevidePage != null)
|
|
|
- {
|
|
|
- //颗粒列表
|
|
|
- im_ParticlesGridDevidePage.CopySelected();
|
|
|
- }
|
|
|
- }
|
|
|
- if (DisType == (int)CALCULATE_TABLE_TYPE.PARTICALE_COMP)
|
|
|
- {
|
|
|
- if (im_CompositionDistributionGrid != null)
|
|
|
- {
|
|
|
- //成份分布表
|
|
|
- im_CompositionDistributionGrid.CopySelected();
|
|
|
- }
|
|
|
- }
|
|
|
- if (DisType == (int)CALCULATE_TABLE_TYPE.AVE_ELEMENT_COMP)
|
|
|
- {
|
|
|
- if (im_ElementCompositionAvgGrid != null)
|
|
|
- {
|
|
|
- //平均元素含量表
|
|
|
- im_ElementCompositionAvgGrid.CopySelected();
|
|
|
- }
|
|
|
- }
|
|
|
- if (DisType == (int)CALCULATE_TABLE_TYPE.PARTICALE_SIZE_DISTRIBUTION)
|
|
|
- {
|
|
|
- if (im_ParticlesSizeGrid != null)
|
|
|
- {
|
|
|
- //颗粒尺寸表
|
|
|
- im_ParticlesSizeGrid.CopySelected();
|
|
|
- }
|
|
|
- }
|
|
|
- break;
|
|
|
- case (int)DisplayPicutureType.AnalyzeDataChart: //如果是Chart图表
|
|
|
- if (DisType == (int)CALCULATE_CHART_TYPE.PARTICALE_COMP)
|
|
|
- {
|
|
|
- //if (im_ParticalesCompositionChart != null)
|
|
|
- //{
|
|
|
- // //颗粒成份图
|
|
|
- // im_ParticalesCompositionChart.CopyToBitmap();
|
|
|
- //}
|
|
|
- }
|
|
|
- if (DisType == (int)CALCULATE_CHART_TYPE.PARTICALE_SIZE_DISTRIBUTION)
|
|
|
- {
|
|
|
- //if (im_ParticalesSizeDistributionChart != null)
|
|
|
- //{
|
|
|
- // //颗粒尺寸分布图
|
|
|
- // im_ParticalesSizeDistributionChart.CopyToBitmap();
|
|
|
- //}
|
|
|
- }
|
|
|
- //if (DisType == (int)CALCULATE_CHART_TYPE.TRIO_CHART)
|
|
|
- //{
|
|
|
- // //if (im_Trianglediagram != null)
|
|
|
- // //{
|
|
|
- // // //三角图
|
|
|
- // // im_Trianglediagram.CopyToBitmap();
|
|
|
- // //}
|
|
|
- //}
|
|
|
- break;
|
|
|
- default:
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /// <summary>
|
|
|
- /// 复制全部
|
|
|
- /// </summary>
|
|
|
- /// <param name="sender"></param>
|
|
|
- /// <param name="e"></param>
|
|
|
- private void ribbonOrbMenuItem8_Click(object sender, EventArgs e)
|
|
|
- {
|
|
|
- int tabIndex = (int)m_conditionChoose.tabIndex;
|
|
|
-
|
|
|
- //int idx = m_DataMgrFun.GetPropIndexByPropItemName(SourceGridData.ConditionItemList, OTSIncAReportApp.OTSSampleReportInfo.OTS_REPORT_PROP_GRID_ITEMS.CALCULATE_TABLE_TYPE);
|
|
|
- //int DisType = SourceGridData.ConditionItemList[idx].comboDownList.IndexOf(SourceGridData.ConditionItemList[idx].itemVal.ToString());
|
|
|
- int DisType = m_conditionChoose.m_SourceGridData.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.IMAGE_DISPLAY_TYPE);
|
|
|
- switch (tabIndex)
|
|
|
- {
|
|
|
- case (int)DisplayPicutureType.AnalyzeImg:
|
|
|
- if (DisType == (int)IMAGE_DISPLAY_TYPE.DISTRIBUTION)
|
|
|
- {
|
|
|
- if (im_Control_DrawDistrbutionImageAndBSE != null)
|
|
|
- {
|
|
|
- //分布图
|
|
|
- im_Control_DrawDistrbutionImageAndBSE.CopyToBitmap();
|
|
|
- }
|
|
|
- }
|
|
|
- if (DisType == (int)IMAGE_DISPLAY_TYPE.IMAGE_GRID)
|
|
|
- {
|
|
|
- if (im_Control_DrawDistrbutionSortImage != null)
|
|
|
- {
|
|
|
- //排列图
|
|
|
- im_Control_DrawDistrbutionSortImage.CopyToBitmap();
|
|
|
- }
|
|
|
- }
|
|
|
- break;
|
|
|
- case (int)DisplayPicutureType.AnalyzeDataTable:
|
|
|
- if (DisType == (int)CALCULATE_TABLE_TYPE.MEASURE_INFO)
|
|
|
- {
|
|
|
- if (im_ResultGrid != null)
|
|
|
- {
|
|
|
- //测量结果信息
|
|
|
- im_ResultGrid.CopyAll();
|
|
|
- }
|
|
|
- }
|
|
|
- if (DisType == (int)CALCULATE_TABLE_TYPE.PARTICALE_GENE_INFO)
|
|
|
- {
|
|
|
- if (im_ParticlesGridDevidePage != null)
|
|
|
- {
|
|
|
- //颗粒列表
|
|
|
- im_ParticlesGridDevidePage.CopyAll();
|
|
|
- }
|
|
|
- }
|
|
|
- if (DisType == (int)CALCULATE_TABLE_TYPE.PARTICALE_COMP)
|
|
|
- {
|
|
|
- if (im_CompositionDistributionGrid != null)
|
|
|
- {
|
|
|
- //成份分布表
|
|
|
- im_CompositionDistributionGrid.CopyAll();
|
|
|
- }
|
|
|
- }
|
|
|
- if (DisType == (int)CALCULATE_TABLE_TYPE.AVE_ELEMENT_COMP)
|
|
|
- {
|
|
|
- if (im_ElementCompositionAvgGrid != null)
|
|
|
- {
|
|
|
- //平均元素含量表
|
|
|
- im_ElementCompositionAvgGrid.CopyAll();
|
|
|
- }
|
|
|
- }
|
|
|
- if (DisType == (int)CALCULATE_TABLE_TYPE.PARTICALE_SIZE_DISTRIBUTION)
|
|
|
- {
|
|
|
- if (im_ParticlesSizeGrid != null)
|
|
|
- {
|
|
|
- //颗粒尺寸表
|
|
|
- im_ParticlesSizeGrid.CopyAll();
|
|
|
- }
|
|
|
- }
|
|
|
- break;
|
|
|
- case (int)DisplayPicutureType.AnalyzeDataChart:
|
|
|
- if (DisType == (int)CALCULATE_CHART_TYPE.PARTICALE_COMP)
|
|
|
- {
|
|
|
- //if (im_ParticalesCompositionChart != null)
|
|
|
- //{
|
|
|
- // //颗粒成份图
|
|
|
- // im_ParticalesCompositionChart.CopyToBitmap();
|
|
|
- //}
|
|
|
- }
|
|
|
- if (DisType == (int)CALCULATE_CHART_TYPE.PARTICALE_SIZE_DISTRIBUTION)
|
|
|
- {
|
|
|
- //if (im_ParticalesSizeDistributionChart != null)
|
|
|
- //{
|
|
|
- // //颗粒尺寸分布图
|
|
|
- // im_ParticalesSizeDistributionChart.CopyToBitmap();
|
|
|
- //}
|
|
|
- }
|
|
|
- //if (DisType == (int)CALCULATE_CHART_TYPE.TRIO_CHART)
|
|
|
- //{
|
|
|
- // //if (im_Trianglediagram != null)
|
|
|
- // //{
|
|
|
- // // //三角图
|
|
|
- // // im_Trianglediagram.CopyToBitmap();
|
|
|
- // //}
|
|
|
- //}
|
|
|
- break;
|
|
|
- default:
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
private void frmReportApp_FormClosed(object sender, FormClosedEventArgs e)
|
|
|
{
|