From 28a7344a9f352624c9f44cc3fcb38d7226d5a754 Mon Sep 17 00:00:00 2001 From: qin <a@163.com> Date: 星期三, 19 三月 2025 09:10:02 +0800 Subject: [PATCH] 优化IBox接口请求 --- WinFrmUI/HStation.WinFrmUI.Dict.Core/DictManageMainPanel.Designer.cs | 55 +++++++++++++++++++++++++++++++++++++------------------ 1 files changed, 37 insertions(+), 18 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Dict.Core/DictManageMainPanel.Designer.cs b/WinFrmUI/HStation.WinFrmUI.Dict.Core/DictManageMainPanel.Designer.cs index f36e70b..d3b9124 100644 --- a/WinFrmUI/HStation.WinFrmUI.Dict.Core/DictManageMainPanel.Designer.cs +++ b/WinFrmUI/HStation.WinFrmUI.Dict.Core/DictManageMainPanel.Designer.cs @@ -51,13 +51,15 @@ colName = new DevExpress.XtraGrid.Columns.GridColumn(); colCode = new DevExpress.XtraGrid.Columns.GridColumn(); colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); - colSortCode = new DevExpress.XtraGrid.Columns.GridColumn(); colDictValue = new DevExpress.XtraGrid.Columns.GridColumn(); repositoryItemButtonEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit(); + colSortCode = new DevExpress.XtraGrid.Columns.GridColumn(); dockManager1 = new DevExpress.XtraBars.Docking.DockManager(components); dockPanel1 = new DevExpress.XtraBars.Docking.DockPanel(); dockPanel1_Container = new DevExpress.XtraBars.Docking.ControlContainer(); dictGroupTreeListCtrl1 = new DictGroupTreeListCtrl(); + ribbonPageGroup2 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); + btnRefresh = new DevExpress.XtraBars.BarButtonItem(); ((System.ComponentModel.ISupportInitialize)ribbonControl1).BeginInit(); ((System.ComponentModel.ISupportInitialize)svgImageCollection1).BeginInit(); sidePanel1.SuspendLayout(); @@ -75,9 +77,9 @@ ribbonControl1.DrawGroupsBorderMode = DevExpress.Utils.DefaultBoolean.True; ribbonControl1.ExpandCollapseItem.Id = 0; ribbonControl1.ItemPanelStyle = DevExpress.XtraBars.Ribbon.RibbonItemPanelStyle.Classic; - ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, BtnAdd, BtnEdit, BtnDelete, BarBtnEidtPumpPart }); + ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { ribbonControl1.ExpandCollapseItem, BtnAdd, BtnEdit, BtnDelete, BarBtnEidtPumpPart, btnRefresh }); ribbonControl1.Location = new Point(0, 0); - ribbonControl1.MaxItemId = 22; + ribbonControl1.MaxItemId = 23; ribbonControl1.Name = "ribbonControl1"; ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { ribbonPage1 }); ribbonControl1.ShowApplicationButton = DevExpress.Utils.DefaultBoolean.False; @@ -119,7 +121,7 @@ // // ribbonPage1 // - ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { ribbonPageGroup1 }); + ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { ribbonPageGroup1, ribbonPageGroup2 }); ribbonPage1.Name = "ribbonPage1"; ribbonPage1.Text = "ribbonPage1"; // @@ -167,7 +169,8 @@ // gridView1.Appearance.HeaderPanel.Options.UseTextOptions = true; gridView1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; - gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colCode, colDescription, colSortCode, colDictValue }); + gridView1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; + gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colCode, colDescription, colDictValue, colSortCode }); gridView1.GridControl = gridControl1; gridView1.Name = "gridView1"; gridView1.OptionsView.ShowGroupPanel = false; @@ -179,7 +182,7 @@ colName.Name = "colName"; colName.Visible = true; colName.VisibleIndex = 0; - colName.Width = 340; + colName.Width = 332; // // colCode // @@ -187,23 +190,15 @@ colCode.Name = "colCode"; colCode.Visible = true; colCode.VisibleIndex = 1; - colCode.Width = 226; + colCode.Width = 100; // // colDescription // colDescription.FieldName = "Description"; colDescription.Name = "colDescription"; colDescription.Visible = true; - colDescription.VisibleIndex = 3; - colDescription.Width = 380; - // - // colSortCode - // - colSortCode.FieldName = "SortCode"; - colSortCode.Name = "colSortCode"; - colSortCode.Visible = true; - colSortCode.VisibleIndex = 2; - colSortCode.Width = 123; + colDescription.VisibleIndex = 2; + colDescription.Width = 253; // // colDictValue // @@ -212,7 +207,7 @@ colDictValue.Name = "colDictValue"; colDictValue.Visible = true; colDictValue.VisibleIndex = 4; - colDictValue.Width = 101; + colDictValue.Width = 70; // // repositoryItemButtonEdit1 // @@ -221,6 +216,14 @@ repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default) }); repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1"; repositoryItemButtonEdit1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; + // + // colSortCode + // + colSortCode.FieldName = "SortCode"; + colSortCode.Name = "colSortCode"; + colSortCode.Visible = true; + colSortCode.VisibleIndex = 3; + colSortCode.Width = 83; // // dockManager1 // @@ -258,6 +261,20 @@ dictGroupTreeListCtrl1.Name = "dictGroupTreeListCtrl1"; dictGroupTreeListCtrl1.Size = new Size(193, 491); dictGroupTreeListCtrl1.TabIndex = 0; + // + // ribbonPageGroup2 + // + ribbonPageGroup2.ItemLinks.Add(btnRefresh); + ribbonPageGroup2.Name = "ribbonPageGroup2"; + ribbonPageGroup2.Text = "鏇村"; + // + // btnRefresh + // + btnRefresh.Caption = "鍒锋柊"; + btnRefresh.Id = 22; + btnRefresh.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("barButtonItem1.ImageOptions.SvgImage"); + btnRefresh.Name = "btnRefresh"; + btnRefresh.ItemClick += btnRefresh_ItemClick; // // DictManageMainPanel // @@ -307,5 +324,7 @@ private DevExpress.XtraGrid.Columns.GridColumn colDescription; private DevExpress.XtraGrid.Columns.GridColumn colDictValue; private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit1; + private DevExpress.XtraBars.BarButtonItem btnRefresh; + private DevExpress.XtraBars.Ribbon.RibbonPageGroup ribbonPageGroup2; } } -- Gitblit v1.9.3