|
@@ -2559,100 +2559,184 @@ namespace OTSIncAReportApp._1_UI.OTSTemplateDesigner
|
|
|
public void set_kllb_data_frame()
|
|
|
{
|
|
|
ParticleList particleList = new ParticleList();
|
|
|
- particleList.Get_dev_kllb_data_frame(TemplateClass, out List<DataTable> dt_pic, out List<List<DataTable>> listData, m_otsreport_export, FrameData);
|
|
|
+ //particleList.Get_dev_kllb_data_frame(TemplateClass, out List<DataTable> dt_pic, out List<List<DataTable>> listData, m_otsreport_export, FrameData);
|
|
|
|
|
|
-
|
|
|
- for (int FD = 0; FD < FrameData.Count; FD++)
|
|
|
- {
|
|
|
- for (int i = 0; i < listData.Count; i++)
|
|
|
+ particleList.Get_dev_kllb_data_frame_pic(TemplateClass, out DataTable dt_pic, out List<DataTable> listData, m_otsreport_export, FrameData);
|
|
|
+ for (int i = 0; i < listData.Count; i++)
|
|
|
+ {
|
|
|
+ for (int a = 0; a < listData[i].Rows.Count; a++)
|
|
|
{
|
|
|
- for (int a = 0; a < listData[FD][i].Rows.Count; a++)
|
|
|
- {
|
|
|
- listData[FD][i].Rows[a]["Class"] = subscript.Getsubscriptstring(listData[FD][i].Rows[a]["Class"].ToString());
|
|
|
- }
|
|
|
+ listData[i].Rows[a]["Class"] = subscript.Getsubscriptstring(listData[i].Rows[a]["Class"].ToString());
|
|
|
}
|
|
|
- for (int i = 0; i < dt_pic[FD].Rows.Count; i++)
|
|
|
+ }
|
|
|
+ for (int i = 0; i < dt_pic.Rows.Count; i++)
|
|
|
+ {
|
|
|
+ //分页符
|
|
|
+ XRPageBreak xRPage = new XRPageBreak();
|
|
|
+ xRPage.Name = "framePage_" + i.ToString();
|
|
|
+ xRPage.LocationF = new PointF(0, NeueStartposition);
|
|
|
+ NeueStartposition = NeueStartposition + 10;
|
|
|
+ this.Detail.Controls.Add(xRPage);
|
|
|
+ //表头
|
|
|
+ XRTable Template = new XRTable();
|
|
|
+ XRTableRow Template_Rows_1 = new XRTableRow();
|
|
|
+ XRTableRow Template_Rows_2 = new XRTableRow();
|
|
|
+ XRTableCell Template_Rows1_Cell_1 = new XRTableCell();
|
|
|
+ XRTableCell Template_Rows2_Cell_1 = new XRTableCell();
|
|
|
+ Template_Rows1_Cell_1.WidthF = 688f;
|
|
|
+ Template_Rows2_Cell_1.WidthF = 688f;
|
|
|
+ Template_Rows_1.Controls.Add(Template_Rows1_Cell_1);
|
|
|
+ Template_Rows_2.Controls.Add(Template_Rows2_Cell_1);
|
|
|
+ Template.Rows.Add(Template_Rows_1);
|
|
|
+ Template.Rows.Add(Template_Rows_2);
|
|
|
+ Template.SizeF = new SizeF(688f, 25f);
|
|
|
+ Template.Rows[0].Cells[0].Text = GetlanguageData("dev_frame_diagram", "帧图") + dt_pic.Rows[i]["id"];
|
|
|
+ Template.LocationF = new PointF(0, NeueStartposition);
|
|
|
+ Template.Borders = DevExpress.XtraPrinting.BorderSide.All;
|
|
|
+ Template.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
|
|
|
+ Template.Rows[0].Font = new Font(Schriftart_chinese, 14f, FontStyle.Regular);
|
|
|
+ Template.Rows[0].BackColor = Color.DarkGray;
|
|
|
+ this.Detail.Controls.Add(Template);
|
|
|
+ //图片
|
|
|
+ XRPictureBox xRPicture = new XRPictureBox();
|
|
|
+ xRPicture.Name = "frameName_" + i.ToString();
|
|
|
+ xRPicture.SizeF = new SizeF(688f, 485f);
|
|
|
+ xRPicture.ImageAlignment = DevExpress.XtraPrinting.ImageAlignment.MiddleCenter;
|
|
|
+ xRPicture.Sizing = DevExpress.XtraPrinting.ImageSizeMode.Squeeze;
|
|
|
+ ImageSource imageSource = new ImageSource((Bitmap)dt_pic.Rows[i]["Field_pic"]);
|
|
|
+ xRPicture.ImageSource = imageSource;
|
|
|
+ xRPicture.LocationF = new PointF(0, NeueStartposition + Template.SizeF.Height);
|
|
|
+ xRPicture.Borders = DevExpress.XtraPrinting.BorderSide.All;
|
|
|
+ this.Detail.Controls.Add(xRPicture);
|
|
|
+ NeueStartposition = NeueStartposition + xRPicture.SizeF.Height + Template.SizeF.Height;
|
|
|
+
|
|
|
+ for (int a = 0; a < listData.Count; a++)
|
|
|
{
|
|
|
- //分页符
|
|
|
- XRPageBreak xRPage = new XRPageBreak();
|
|
|
- xRPage.Name = "framePage_" + i.ToString();
|
|
|
- xRPage.LocationF = new PointF(0, NeueStartposition);
|
|
|
- NeueStartposition = NeueStartposition + 10;
|
|
|
- this.Detail.Controls.Add(xRPage);
|
|
|
- //表头
|
|
|
- XRTable Template = new XRTable();
|
|
|
- XRTableRow Template_Rows_1 = new XRTableRow();
|
|
|
- XRTableRow Template_Rows_2 = new XRTableRow();
|
|
|
- XRTableCell Template_Rows1_Cell_1 = new XRTableCell();
|
|
|
- XRTableCell Template_Rows2_Cell_1 = new XRTableCell();
|
|
|
- Template_Rows1_Cell_1.WidthF = 688f;
|
|
|
- Template_Rows2_Cell_1.WidthF = 688f;
|
|
|
- Template_Rows_1.Controls.Add(Template_Rows1_Cell_1);
|
|
|
- Template_Rows_2.Controls.Add(Template_Rows2_Cell_1);
|
|
|
- Template.Rows.Add(Template_Rows_1);
|
|
|
- Template.Rows.Add(Template_Rows_2);
|
|
|
- Template.SizeF = new SizeF(688f, 25f);
|
|
|
- Template.Rows[0].Cells[0].Text =
|
|
|
- GetlanguageData("dev_frame_diagram", "帧图") + dt_pic[FD].Rows[i]["id"]+"("+ FrameData[i].Rows[0]["GroupName"].ToString() + "组)";
|
|
|
- Template.LocationF = new PointF(0, NeueStartposition);
|
|
|
- Template.Borders = DevExpress.XtraPrinting.BorderSide.All;
|
|
|
- Template.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
|
|
|
- Template.Rows[0].Font = new Font(Schriftart_chinese, 14f, FontStyle.Regular);
|
|
|
- Template.Rows[0].BackColor = Color.DarkGray;
|
|
|
- this.Detail.Controls.Add(Template);
|
|
|
- //图片
|
|
|
- XRPictureBox xRPicture = new XRPictureBox();
|
|
|
- xRPicture.Name = "frameName_" + i.ToString();
|
|
|
- xRPicture.SizeF = new SizeF(688f, 485f);
|
|
|
- xRPicture.ImageAlignment = DevExpress.XtraPrinting.ImageAlignment.MiddleCenter;
|
|
|
- xRPicture.Sizing = DevExpress.XtraPrinting.ImageSizeMode.Squeeze;
|
|
|
- ImageSource imageSource = new ImageSource((Bitmap)dt_pic[FD].Rows[i]["Field_pic"]);
|
|
|
- xRPicture.ImageSource = imageSource;
|
|
|
- xRPicture.LocationF = new PointF(0, NeueStartposition + Template.SizeF.Height);
|
|
|
- xRPicture.Borders = DevExpress.XtraPrinting.BorderSide.All;
|
|
|
- this.Detail.Controls.Add(xRPicture);
|
|
|
- NeueStartposition = NeueStartposition + xRPicture.SizeF.Height + Template.SizeF.Height;
|
|
|
-
|
|
|
- for (int a = 0; a < listData.Count; a++)
|
|
|
+ if (dt_pic.Rows[i]["id"].ToString() == listData[a].Rows[0]["FieldId"].ToString())
|
|
|
{
|
|
|
- if (dt_pic[FD].Rows[i]["id"].ToString() == listData[FD][a].Rows[0]["FieldId"].ToString())
|
|
|
+ for (int b = 0; b < listData[a].Rows.Count; b++)
|
|
|
{
|
|
|
- for (int b = 0; b < listData[FD][a].Rows.Count; b++)
|
|
|
+ //数据表
|
|
|
+ XRTable xRTable = add_XRTable_frame();
|
|
|
+ xRTable.Rows[0].Cells[0].Text = GetlanguageData("dev_image", "图像");
|
|
|
+ xRTable.Rows[0].Cells[0].Font = new Font(Schriftart_chinese, xRTable.Rows[0].Cells[0].Font.Size);
|
|
|
+ xRTable.Rows[0].Cells[1].Text = GetlanguageData("dev_class", "分类");
|
|
|
+ xRTable.Rows[0].Cells[1].Font = new Font(Schriftart_chinese, xRTable.Rows[0].Cells[1].Font.Size);
|
|
|
+ xRTable.Rows[0].Cells[2].Text = TemplateClass.M_KLLBXX.str_cb_kllb_sort_p1.ToString();
|
|
|
+ xRTable.Rows[0].Cells[3].Text = TemplateClass.M_KLLBXX.str_cb_kllb_sort_p2.ToString();
|
|
|
+ xRTable.Rows[1].Cells[1].Text = listData[a].Rows[b]["Class"].ToString();
|
|
|
+ xRTable.Rows[1].Cells[2].Text = listData[a].Rows[b]["pid"].ToString();
|
|
|
+ xRTable.Rows[1].Cells[3].Text = listData[a].Rows[b]["Size"].ToString();
|
|
|
+ for (int c = 1; c < 10; c++)
|
|
|
{
|
|
|
- //数据表
|
|
|
- XRTable xRTable = add_XRTable_frame();
|
|
|
- xRTable.Rows[0].Cells[0].Text = GetlanguageData("dev_image", "图像");
|
|
|
- xRTable.Rows[0].Cells[0].Font = new Font(Schriftart_chinese, xRTable.Rows[0].Cells[0].Font.Size);
|
|
|
- xRTable.Rows[0].Cells[1].Text = GetlanguageData("dev_class", "分类");
|
|
|
- xRTable.Rows[0].Cells[1].Font = new Font(Schriftart_chinese, xRTable.Rows[0].Cells[1].Font.Size);
|
|
|
- xRTable.Rows[0].Cells[2].Text = TemplateClass.M_KLLBXX.str_cb_kllb_sort_p1.ToString();
|
|
|
- xRTable.Rows[0].Cells[3].Text = TemplateClass.M_KLLBXX.str_cb_kllb_sort_p2.ToString();
|
|
|
- xRTable.Rows[1].Cells[1].Text = listData[FD][a].Rows[b]["Class"].ToString();
|
|
|
- xRTable.Rows[1].Cells[2].Text = listData[FD][a].Rows[b]["pid"].ToString();
|
|
|
- xRTable.Rows[1].Cells[3].Text = listData[FD][a].Rows[b]["Size"].ToString();
|
|
|
- for (int c = 1; c < 10; c++)
|
|
|
- {
|
|
|
- xRTable.Rows[2].Cells[c].Text = listData[FD][a].Rows[b]["ColName" + (c).ToString()].ToString();
|
|
|
- xRTable.Rows[3].Cells[c].Text = listData[FD][a].Rows[b]["ColVal" + (c).ToString()].ToString();
|
|
|
- }
|
|
|
- xRTable.LocationF = new PointF(0, NeueStartposition);
|
|
|
- XRPictureBox xRPicture1 = new XRPictureBox();
|
|
|
- xRPicture1.ImageSource = new ImageSource((Bitmap)listData[FD][a].Rows[b]["pic"]);
|
|
|
- xRPicture1.Sizing = DevExpress.XtraPrinting.ImageSizeMode.Squeeze;
|
|
|
- xRPicture1.SizeF = new SizeF(94, 70);
|
|
|
- xRPicture1.LocationF = new PointF(0, NeueStartposition + 20);
|
|
|
- this.Detail.Controls.Add(xRTable);
|
|
|
- this.Detail.Controls.Add(xRPicture1);
|
|
|
- NeueStartposition = NeueStartposition + xRTable.SizeF.Height + 1;
|
|
|
+ xRTable.Rows[2].Cells[c].Text = listData[a].Rows[b]["ColName" + (c).ToString()].ToString();
|
|
|
+ xRTable.Rows[3].Cells[c].Text = listData[a].Rows[b]["ColVal" + (c).ToString()].ToString();
|
|
|
}
|
|
|
+ xRTable.LocationF = new PointF(0, NeueStartposition);
|
|
|
+ XRPictureBox xRPicture1 = new XRPictureBox();
|
|
|
+ xRPicture1.ImageSource = new ImageSource((Bitmap)listData[a].Rows[b]["pic"]);
|
|
|
+ xRPicture1.Sizing = DevExpress.XtraPrinting.ImageSizeMode.Squeeze;
|
|
|
+ xRPicture1.SizeF = new SizeF(94, 70);
|
|
|
+ xRPicture1.LocationF = new PointF(0, NeueStartposition + 20);
|
|
|
+ this.Detail.Controls.Add(xRTable);
|
|
|
+ this.Detail.Controls.Add(xRPicture1);
|
|
|
+ NeueStartposition = NeueStartposition + xRTable.SizeF.Height + 1;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- }
|
|
|
+ //for (int FD = 0; FD < FrameData.Count; FD++)
|
|
|
+ // {
|
|
|
+ // for (int i = 0; i < listData.Count; i++)
|
|
|
+ // {
|
|
|
+ // for (int a = 0; a < listData[FD][i].Rows.Count; a++)
|
|
|
+ // {
|
|
|
+ // listData[FD][i].Rows[a]["Class"] = subscript.Getsubscriptstring(listData[FD][i].Rows[a]["Class"].ToString());
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // for (int i = 0; i < dt_pic[FD].Rows.Count; i++)
|
|
|
+ // {
|
|
|
+ // //分页符
|
|
|
+ // XRPageBreak xRPage = new XRPageBreak();
|
|
|
+ // //xRPage.Name = "framePage_" + i.ToString();
|
|
|
+ // xRPage.LocationF = new PointF(0, NeueStartposition);
|
|
|
+ // NeueStartposition = NeueStartposition + 10;
|
|
|
+ // this.Detail.Controls.Add(xRPage);
|
|
|
+ // //表头
|
|
|
+ // XRTable Template = new XRTable();
|
|
|
+ // XRTableRow Template_Rows_1 = new XRTableRow();
|
|
|
+ // XRTableRow Template_Rows_2 = new XRTableRow();
|
|
|
+ // XRTableCell Template_Rows1_Cell_1 = new XRTableCell();
|
|
|
+ // XRTableCell Template_Rows2_Cell_1 = new XRTableCell();
|
|
|
+ // Template_Rows1_Cell_1.WidthF = 688f;
|
|
|
+ // Template_Rows2_Cell_1.WidthF = 688f;
|
|
|
+ // Template_Rows_1.Controls.Add(Template_Rows1_Cell_1);
|
|
|
+ // Template_Rows_2.Controls.Add(Template_Rows2_Cell_1);
|
|
|
+ // Template.Rows.Add(Template_Rows_1);
|
|
|
+ // Template.Rows.Add(Template_Rows_2);
|
|
|
+ // Template.SizeF = new SizeF(688f, 25f);
|
|
|
+ // Template.Rows[0].Cells[0].Text =
|
|
|
+ // GetlanguageData("dev_frame_diagram", "帧图") + dt_pic[FD].Rows[i]["id"]+"("+ FrameData[i].Rows[0]["GroupName"].ToString() + "组)";
|
|
|
+ // Template.LocationF = new PointF(0, NeueStartposition);
|
|
|
+ // Template.Borders = DevExpress.XtraPrinting.BorderSide.All;
|
|
|
+ // Template.TextAlignment = DevExpress.XtraPrinting.TextAlignment.MiddleLeft;
|
|
|
+ // Template.Rows[0].Font = new Font(Schriftart_chinese, 14f, FontStyle.Regular);
|
|
|
+ // Template.Rows[0].BackColor = Color.DarkGray;
|
|
|
+ // this.Detail.Controls.Add(Template);
|
|
|
+ // //图片
|
|
|
+ // XRPictureBox xRPicture = new XRPictureBox();
|
|
|
+ // xRPicture.Name = "frameName_" + i.ToString();
|
|
|
+ // xRPicture.SizeF = new SizeF(688f, 485f);
|
|
|
+ // xRPicture.ImageAlignment = DevExpress.XtraPrinting.ImageAlignment.MiddleCenter;
|
|
|
+ // xRPicture.Sizing = DevExpress.XtraPrinting.ImageSizeMode.Squeeze;
|
|
|
+ // ImageSource imageSource = new ImageSource((Bitmap)dt_pic[FD].Rows[i]["Field_pic"]);
|
|
|
+ // xRPicture.ImageSource = imageSource;
|
|
|
+ // xRPicture.LocationF = new PointF(0, NeueStartposition + Template.SizeF.Height);
|
|
|
+ // xRPicture.Borders = DevExpress.XtraPrinting.BorderSide.All;
|
|
|
+ // this.Detail.Controls.Add(xRPicture);
|
|
|
+ // NeueStartposition = NeueStartposition + xRPicture.SizeF.Height + Template.SizeF.Height;
|
|
|
+
|
|
|
+ // for (int a = 0; a < listData[FD].Count; a++)
|
|
|
+ // {
|
|
|
+ // if (dt_pic[FD].Rows[i]["id"].ToString() == listData[FD][a].Rows[0]["FieldId"].ToString())
|
|
|
+ // {
|
|
|
+ // for (int b = 0; b < listData[FD][a].Rows.Count; b++)
|
|
|
+ // {
|
|
|
+ // //数据表
|
|
|
+ // XRTable xRTable = add_XRTable_frame();
|
|
|
+ // xRTable.Rows[0].Cells[0].Text = GetlanguageData("dev_image", "图像");
|
|
|
+ // xRTable.Rows[0].Cells[0].Font = new Font(Schriftart_chinese, xRTable.Rows[0].Cells[0].Font.Size);
|
|
|
+ // xRTable.Rows[0].Cells[1].Text = GetlanguageData("dev_class", "分类");
|
|
|
+ // xRTable.Rows[0].Cells[1].Font = new Font(Schriftart_chinese, xRTable.Rows[0].Cells[1].Font.Size);
|
|
|
+ // xRTable.Rows[0].Cells[2].Text = TemplateClass.M_KLLBXX.str_cb_kllb_sort_p1.ToString();
|
|
|
+ // xRTable.Rows[0].Cells[3].Text = TemplateClass.M_KLLBXX.str_cb_kllb_sort_p2.ToString();
|
|
|
+ // xRTable.Rows[1].Cells[1].Text = listData[FD][a].Rows[b]["Class"].ToString();
|
|
|
+ // xRTable.Rows[1].Cells[2].Text = listData[FD][a].Rows[b]["pid"].ToString();
|
|
|
+ // xRTable.Rows[1].Cells[3].Text = listData[FD][a].Rows[b]["Size"].ToString();
|
|
|
+ // for (int c = 1; c < 10; c++)
|
|
|
+ // {
|
|
|
+ // xRTable.Rows[2].Cells[c].Text = listData[FD][a].Rows[b]["ColName" + (c).ToString()].ToString();
|
|
|
+ // xRTable.Rows[3].Cells[c].Text = listData[FD][a].Rows[b]["ColVal" + (c).ToString()].ToString();
|
|
|
+ // }
|
|
|
+ // xRTable.LocationF = new PointF(0, NeueStartposition);
|
|
|
+ // XRPictureBox xRPicture1 = new XRPictureBox();
|
|
|
+ // xRPicture1.ImageSource = new ImageSource((Bitmap)listData[FD][a].Rows[b]["pic"]);
|
|
|
+ // xRPicture1.Sizing = DevExpress.XtraPrinting.ImageSizeMode.Squeeze;
|
|
|
+ // xRPicture1.SizeF = new SizeF(94, 70);
|
|
|
+ // xRPicture1.LocationF = new PointF(0, NeueStartposition + 20);
|
|
|
+ // this.Detail.Controls.Add(xRTable);
|
|
|
+ // this.Detail.Controls.Add(xRPicture1);
|
|
|
+ // NeueStartposition = NeueStartposition + xRTable.SizeF.Height + 1;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
+ //}
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
#endregion
|
|
|
|
|
|
private void setXRLabelData(XRLabel cell, string str)
|