From bb7165071ee890cfac760dbb15cd921e6f6e3096 Mon Sep 17 00:00:00 2001
From: duheng <2784771470@qq.com>
Date: 星期三, 19 二月 2025 10:46:10 +0800
Subject: [PATCH] 报表优化

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/13-print/99-test/XtraForm1.Designer.cs |   91 ++++++++++++++++++++++++++++++++-------------
 1 files changed, 65 insertions(+), 26 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/13-print/99-test/XtraForm1.Designer.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/13-print/99-test/XtraForm1.Designer.cs
index a8179b8..8bacd86 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/13-print/99-test/XtraForm1.Designer.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/13-print/99-test/XtraForm1.Designer.cs
@@ -28,29 +28,63 @@
         /// </summary>
         private void InitializeComponent()
         {
+            ComponentResourceManager resources = new ComponentResourceManager(typeof(XtraForm1));
             ribbonControl1 = new DevExpress.XtraBars.Ribbon.RibbonControl();
+            barSubItem1 = new DevExpress.XtraBars.BarSubItem();
+            btnExportWord = new DevExpress.XtraBars.BarButtonItem();
+            btnExportPDF = new DevExpress.XtraBars.BarButtonItem();
             ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage();
             ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup();
             layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
-            Root = new DevExpress.XtraLayout.LayoutControlGroup();
             documentViewer1 = new DevExpress.XtraPrinting.Preview.DocumentViewer();
+            Root = new DevExpress.XtraLayout.LayoutControlGroup();
             layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
-            ((System.ComponentModel.ISupportInitialize)ribbonControl1).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)layoutControl1).BeginInit();
+            ((ISupportInitialize)ribbonControl1).BeginInit();
+            ((ISupportInitialize)layoutControl1).BeginInit();
             layoutControl1.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)Root).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)layoutControlItem1).BeginInit();
+            ((ISupportInitialize)Root).BeginInit();
+            ((ISupportInitialize)layoutControlItem1).BeginInit();
             SuspendLayout();
             // 
             // ribbonControl1
             // 
             ribbonControl1.ExpandCollapseItem.Id = 0;
-            ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem });
+            ribbonControl1.ItemPanelStyle = DevExpress.XtraBars.Ribbon.RibbonItemPanelStyle.Classic;
+            ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, barSubItem1, btnExportWord, btnExportPDF });
             ribbonControl1.Location = new Point(0, 0);
-            ribbonControl1.MaxItemId = 1;
+            ribbonControl1.MaxItemId = 5;
             ribbonControl1.Name = "ribbonControl1";
             ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { ribbonPage1 });
-            ribbonControl1.Size = new Size(1070, 152);
+            ribbonControl1.ShowApplicationButton = DevExpress.Utils.DefaultBoolean.False;
+            ribbonControl1.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages;
+            ribbonControl1.ShowToolbarCustomizeItem = false;
+            ribbonControl1.Size = new Size(1070, 128);
+            ribbonControl1.Toolbar.ShowCustomizeItem = false;
+            ribbonControl1.ToolbarLocation = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Hidden;
+            // 
+            // barSubItem1
+            // 
+            barSubItem1.Caption = "瀵煎嚭";
+            barSubItem1.Id = 2;
+            barSubItem1.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("barSubItem1.ImageOptions.SvgImage");
+            barSubItem1.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(btnExportWord), new DevExpress.XtraBars.LinkPersistInfo(btnExportPDF) });
+            barSubItem1.Name = "barSubItem1";
+            // 
+            // btnExportWord
+            // 
+            btnExportWord.Caption = "瀵煎嚭涓篧ord";
+            btnExportWord.Id = 3;
+            btnExportWord.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("btnExportWord.ImageOptions.SvgImage");
+            btnExportWord.Name = "btnExportWord";
+            btnExportWord.ItemClick += btnExportWord_ItemClick;
+            // 
+            // btnExportPDF
+            // 
+            btnExportPDF.Caption = "瀵煎嚭涓篜DF";
+            btnExportPDF.Id = 4;
+            btnExportPDF.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("btnExportPDF.ImageOptions.SvgImage");
+            btnExportPDF.Name = "btnExportPDF";
+            btnExportPDF.ItemClick += btnExportPDF_ItemClick;
             // 
             // ribbonPage1
             // 
@@ -60,19 +94,28 @@
             // 
             // ribbonPageGroup1
             // 
+            ribbonPageGroup1.ItemLinks.Add(barSubItem1);
             ribbonPageGroup1.Name = "ribbonPageGroup1";
-            ribbonPageGroup1.Text = "ribbonPageGroup1";
+            ribbonPageGroup1.Text = "鍩虹鎿嶄綔";
             // 
             // layoutControl1
             // 
             layoutControl1.Controls.Add(documentViewer1);
             layoutControl1.Dock = DockStyle.Fill;
-            layoutControl1.Location = new Point(0, 152);
+            layoutControl1.Location = new Point(0, 128);
             layoutControl1.Name = "layoutControl1";
             layoutControl1.Root = Root;
-            layoutControl1.Size = new Size(1070, 357);
+            layoutControl1.Size = new Size(1070, 381);
             layoutControl1.TabIndex = 2;
             layoutControl1.Text = "layoutControl1";
+            // 
+            // documentViewer1
+            // 
+            documentViewer1.IsMetric = true;
+            documentViewer1.Location = new Point(2, 2);
+            documentViewer1.Name = "documentViewer1";
+            documentViewer1.Size = new Size(1066, 377);
+            documentViewer1.TabIndex = 4;
             // 
             // Root
             // 
@@ -81,23 +124,15 @@
             Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1 });
             Root.Name = "Root";
             Root.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
-            Root.Size = new Size(1070, 357);
+            Root.Size = new Size(1070, 381);
             Root.TextVisible = false;
-            // 
-            // documentViewer1
-            // 
-            documentViewer1.IsMetric = true;
-            documentViewer1.Location = new Point(2, 2);
-            documentViewer1.Name = "documentViewer1";
-            documentViewer1.Size = new Size(1066, 353);
-            documentViewer1.TabIndex = 4;
             // 
             // layoutControlItem1
             // 
             layoutControlItem1.Control = documentViewer1;
             layoutControlItem1.Location = new Point(0, 0);
             layoutControlItem1.Name = "layoutControlItem1";
-            layoutControlItem1.Size = new Size(1070, 357);
+            layoutControlItem1.Size = new Size(1070, 381);
             layoutControlItem1.TextSize = new Size(0, 0);
             layoutControlItem1.TextVisible = false;
             // 
@@ -109,12 +144,12 @@
             Controls.Add(layoutControl1);
             Controls.Add(ribbonControl1);
             Name = "XtraForm1";
-            Text = "XtraForm1";
-            ((System.ComponentModel.ISupportInitialize)ribbonControl1).EndInit();
-            ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit();
+            Text = "鑺傝兘鎶ュ憡";
+            ((ISupportInitialize)ribbonControl1).EndInit();
+            ((ISupportInitialize)layoutControl1).EndInit();
             layoutControl1.ResumeLayout(false);
-            ((System.ComponentModel.ISupportInitialize)Root).EndInit();
-            ((System.ComponentModel.ISupportInitialize)layoutControlItem1).EndInit();
+            ((ISupportInitialize)Root).EndInit();
+            ((ISupportInitialize)layoutControlItem1).EndInit();
             ResumeLayout(false);
             PerformLayout();
         }
@@ -128,5 +163,9 @@
         private DevExpress.XtraPrinting.Preview.DocumentViewer documentViewer1;
         private DevExpress.XtraLayout.LayoutControlGroup Root;
         private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
+        private DevExpress.XtraBars.BarButtonItem btnExportWord;
+        private DevExpress.XtraBars.BarSubItem barSubItem1;
+        private DevExpress.XtraBars.BarButtonItem barButtonItem1;
+        private DevExpress.XtraBars.BarButtonItem btnExportPDF;
     }
 }
\ No newline at end of file

--
Gitblit v1.9.3