|
@@ -2,6 +2,8 @@
|
|
|
using DevExpress.XtraCharts;
|
|
|
using DevExpress.XtraPrinting.Drawing;
|
|
|
using DevExpress.XtraReports.UI;
|
|
|
+using OTSCommon;
|
|
|
+using OTSCommon.Model;
|
|
|
using OTSIncAReportApp._1_UI.OTSReportExport.DataIntegration;
|
|
|
using OTSIncAReportApp.OTSSampleReportInfo;
|
|
|
using OTSIncAReportApp.OTSTemplateDesigner;
|
|
@@ -10,6 +12,7 @@ using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Data;
|
|
|
using System.Drawing;
|
|
|
+using System.Windows.Forms;
|
|
|
using static OTSIncAReportApp.OTSReport_Export;
|
|
|
|
|
|
namespace OTSIncAReportApp._1_UI.OTSTemplateDesigner
|
|
@@ -29,6 +32,7 @@ namespace OTSIncAReportApp._1_UI.OTSTemplateDesigner
|
|
|
DataTable languageData = new DataTable();
|
|
|
private string ComputeMode = "";//计算方式
|
|
|
private string ComputeModeName = "";//计算方式
|
|
|
+ private string PartSizeFile = "";//粒级文件
|
|
|
|
|
|
public OTS_DEVReport(OTSReport_Export in_export, c_TemplateClass a_Template, frmReportApp a_frmReportApp)
|
|
|
{
|
|
@@ -48,8 +52,47 @@ namespace OTSIncAReportApp._1_UI.OTSTemplateDesigner
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- string con = a_frmReportApp.m_conditionChoose.m_conditionData.GetPropItemDisplayValueByPropItemName(OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE).ToString();
|
|
|
+ //string con = a_frmReportApp.m_conditionChoose.m_conditionData.GetPropItemDisplayValueByPropItemName(OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE).ToString();
|
|
|
+ string con = "";
|
|
|
+ DataSet ds1 = XMLoperate.GetXmlData(Application.StartupPath + RptConfigFile.m_ReportMgrParamFile, "XMLData");
|
|
|
+ DataTable dt1 = ds1.Tables["Member"];
|
|
|
string po = "";
|
|
|
+
|
|
|
+
|
|
|
+ foreach (DataRow element in dt1.Rows)
|
|
|
+ {
|
|
|
+ string RegName = element["RegName"].ToString();
|
|
|
+
|
|
|
+ if (RegName == "PartSizeFile")
|
|
|
+ {
|
|
|
+ PartSizeFile = element["name"].ToString();
|
|
|
+ //comboBox_PartiSizeFileFolder.SelectedIndex = comboBox_PartiSizeFileFolder.Items.IndexOf(element["name"].ToString());
|
|
|
+ }
|
|
|
+
|
|
|
+ if (RegName == "TRIO_CHART_TYPE")
|
|
|
+ {
|
|
|
+ po = element["strValue"].ToString();
|
|
|
+ //cB_sjtmbwj.SelectedIndex = cB_sjtmbwj.Items.IndexOf(element["strValue"].ToString());
|
|
|
+ }
|
|
|
+ if (RegName == "SIZE_CAL_METHOD_TYPE")
|
|
|
+ {
|
|
|
+ po = element["strValue"].ToString();
|
|
|
+ //cB_SIZE_CAL_METHOD_TYPE.SelectedIndex = cB_SIZE_CAL_METHOD_TYPE.Items.IndexOf(element["strValue"].ToString());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ for (int i=0;i< dt1.Rows.Count;i++)
|
|
|
+ {
|
|
|
+ if (dt1.Rows[i]["RegName"].ToString()== "SIZE_CAL_METHOD_TYPE")
|
|
|
+ {
|
|
|
+ con = dt1.Rows[i]["strValue"].ToString();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
switch (con)
|
|
|
{
|
|
|
case "DMAX":
|
|
@@ -487,7 +530,7 @@ namespace OTSIncAReportApp._1_UI.OTSTemplateDesigner
|
|
|
{
|
|
|
xrPageBreak1.Visible = true;
|
|
|
ParticleAnalysis particleList = new ParticleAnalysis();
|
|
|
- List<DataTable> CompositeData = particleList.GetClassificationConsolidationTable(TemplateClass, m_otsreport_export, ComputeMode);
|
|
|
+ List<DataTable> CompositeData = particleList.GetClassificationConsolidationTable(TemplateClass, m_otsreport_export, ComputeMode, PartSizeFile);
|
|
|
DataTable classData= particleList.GetLargeClassification(TemplateClass, m_otsreport_export, ComputeMode);
|
|
|
DataTable subdivdeData = particleList.GetSubClassification(TemplateClass, m_otsreport_export, ComputeMode);
|
|
|
DataTable chartmax= particleList.GetChartDataCalss(TemplateClass, m_otsreport_export, ComputeMode);
|
|
@@ -1574,7 +1617,7 @@ namespace OTSIncAReportApp._1_UI.OTSTemplateDesigner
|
|
|
xRPicture_legend.LocationF = new PointF(400f, NeueStartposition);
|
|
|
xRPicture_legend.SizeF = new SizeF(260f, 120f);
|
|
|
xRPicture_legend.Sizing = DevExpress.XtraPrinting.ImageSizeMode.ZoomImage;
|
|
|
- ImageSource imageSource_legend = new ImageSource(ternaryDiagram.DrawATernaryDiagramLegend(Color_list,m_otsreport_export, TemplateClass));
|
|
|
+ ImageSource imageSource_legend = new ImageSource(ternaryDiagram.DrawATernaryDiagramLegend(Color_list,m_otsreport_export, PartSizeFile));
|
|
|
xRPicture_legend.ImageSource = imageSource_legend;
|
|
|
NeueStartposition = xRPicture_legend.LocationF.Y + xRPicture_legend.SizeF.Height;
|
|
|
return xRPicture_legend;
|