|
@@ -208,7 +208,7 @@ namespace OTSIncAReportApp._1_UI.OTSTemplateDesigner
|
|
|
xrTa_ParticleSizeTable.Rows[1].Cells[0].TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
|
|
|
xrTa_ParticleSizeTable.Rows[1].Cells[0].Text = xrTa_ParticleSizeTable.Rows[1].Cells[0].Text + ComputeModeName + "(μm)";
|
|
|
xrTa_ParticleSizeTable.Rows[1].Cells[0].Font = new Font(Schriftart_chinese, xrTa_ParticleSizeTable.Rows[1].Cells[0].Font.Size);
|
|
|
-
|
|
|
+ int total = 0;
|
|
|
for (int i = 0; i < CompositeData[1].Rows.Count; i++)
|
|
|
{
|
|
|
XRTableRow row = new XRTableRow();
|
|
@@ -245,6 +245,11 @@ namespace OTSIncAReportApp._1_UI.OTSTemplateDesigner
|
|
|
XRTableCellData(row, tCell_size_7, Schriftart_english, DevExpress.XtraPrinting.TextAlignment.MiddleCenter, "Text", list_ParticelSizeData[i], "size_7");
|
|
|
xrTa_ParticleSizeTable.Rows.Add(row);
|
|
|
|
|
|
+ if (CompositeData[1].Rows[i]["Name"].ToString()!="")
|
|
|
+ {
|
|
|
+ total += Convert.ToInt32(CompositeData[1].Rows[i]["total"]);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
this.Detail.Controls.Add(xrTa_ParticleSizeTable);
|
|
|
xrTa_ParticleSizeTable.LocationF = new PointF(10f, 940f);
|
|
@@ -263,10 +268,10 @@ namespace OTSIncAReportApp._1_UI.OTSTemplateDesigner
|
|
|
vs.Add(0);
|
|
|
vs.Add(0);
|
|
|
vs.Add(0);
|
|
|
- int total = 0;
|
|
|
+
|
|
|
for (int i = 0; i < surface_dt2.Rows.Count; i++)
|
|
|
{
|
|
|
- for (int a = 1; a < 11; a++)
|
|
|
+ for (int a = 1; a < 10; a++)
|
|
|
{
|
|
|
if (surface_dt2.Rows[i]["c" + a.ToString()] != " " && surface_dt2.Rows[i]["c" + a.ToString()] != "" && surface_dt2.Rows[i]["c" + a.ToString()] != null)
|
|
|
{
|
|
@@ -275,7 +280,7 @@ namespace OTSIncAReportApp._1_UI.OTSTemplateDesigner
|
|
|
vs[a - 1] += Convert.ToInt32(result);
|
|
|
}
|
|
|
}
|
|
|
- total += Convert.ToInt32(surface_dt2.Rows[i]["total"]);
|
|
|
+ //total += Convert.ToInt32(surface_dt2.Rows[i]["total"]);
|
|
|
}
|
|
|
setXRLabelData(xrTable3.Rows[0].Cells[0], GetlanguageData("dev_total", languageData));
|
|
|
//xrTable3.Rows[0].Cells[0].Text = "总数量";
|
|
@@ -402,7 +407,7 @@ namespace OTSIncAReportApp._1_UI.OTSTemplateDesigner
|
|
|
int total = 0;
|
|
|
for (int i = 0; i < surface_dt2.Rows.Count; i++)
|
|
|
{
|
|
|
- for (int a = 1; a < 11; a++)
|
|
|
+ for (int a = 1; a < 10; a++)
|
|
|
{
|
|
|
if (surface_dt2.Rows[i]["c" + a.ToString()] != " " && surface_dt2.Rows[i]["c" + a.ToString()] != "" && surface_dt2.Rows[i]["c" + a.ToString()] != null)
|
|
|
{
|
|
@@ -484,7 +489,15 @@ namespace OTSIncAReportApp._1_UI.OTSTemplateDesigner
|
|
|
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);
|
|
|
- DataTable surface_dt2 = particleList.ParticleResults(TemplateClass, m_otsreport_export, ComputeMode);
|
|
|
+ //DataTable surface_dt2 = particleList.ParticleResults(TemplateClass, m_otsreport_export, ComputeMode);
|
|
|
+ DataTable surface_dt2 = CompositeData[1].Clone();
|
|
|
+ for (int i=0;i< CompositeData[1].Rows.Count;i++)
|
|
|
+ {
|
|
|
+ if (CompositeData[1].Rows[i]["Name"].ToString()!="")
|
|
|
+ {
|
|
|
+ surface_dt2.Rows.Add(CompositeData[1].Rows[i].ItemArray);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
for (int i = 0; i < classData.Rows.Count; i++)
|
|
|
{
|
|
@@ -562,10 +575,10 @@ namespace OTSIncAReportApp._1_UI.OTSTemplateDesigner
|
|
|
|
|
|
|
|
|
xrChart_ParticelSizeSubdivision.Visible = false;
|
|
|
- if (a_pieSeries && subdivdeData.Rows.Count>0)
|
|
|
+ if (a_pieSeries && surface_dt2.Rows.Count>0)
|
|
|
{
|
|
|
|
|
|
- DataView dv2 = subdivdeData.DefaultView;
|
|
|
+ DataView dv2 = surface_dt2.DefaultView;
|
|
|
dv2.Sort = "total DESC";
|
|
|
DataTable dt_subdivde_dt = dv2.ToTable();
|
|
|
|