From 0bc0468692ad7b16cd2d49d20c4689ddcd6fb212 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期二, 12 十一月 2024 17:43:14 +0800 Subject: [PATCH] 修改资产界面 --- WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/ThreeLinkManageMainPage.Designer.cs | 118 ++++++++++++++++++++++++++++++----------------------------- 1 files changed, 60 insertions(+), 58 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/02-main/ThreeLinkManageMainPage.Designer.cs b/WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/ThreeLinkManageMainPage.Designer.cs similarity index 85% rename from WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/02-main/ThreeLinkManageMainPage.Designer.cs rename to WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/ThreeLinkManageMainPage.Designer.cs index ddda5ec..296c694 100644 --- a/WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/02-main/ThreeLinkManageMainPage.Designer.cs +++ b/WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/ThreeLinkManageMainPage.Designer.cs @@ -35,6 +35,7 @@ BtnEdit = new DevExpress.XtraBars.BarButtonItem(); BtnDelete = new DevExpress.XtraBars.BarButtonItem(); BarBtnEidtPumpPart = new DevExpress.XtraBars.BarButtonItem(); + barBtnSetCoefficient = new DevExpress.XtraBars.BarButtonItem(); ribbonPage1 = new DevExpress.XtraBars.Ribbon.RibbonPage(); ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); ribbonPageGroup2 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); @@ -45,17 +46,16 @@ gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); colName = new DevExpress.XtraGrid.Columns.GridColumn(); colCaliber = new DevExpress.XtraGrid.Columns.GridColumn(); - colMaterialName = new DevExpress.XtraGrid.Columns.GridColumn(); - colCoefficient = new DevExpress.XtraGrid.Columns.GridColumn(); - colRunThroughCoefficient = new DevExpress.XtraGrid.Columns.GridColumn(); - colBranchThroughCoefficient = new DevExpress.XtraGrid.Columns.GridColumn(); colKeyWord = new DevExpress.XtraGrid.Columns.GridColumn(); - colIsDefault = new DevExpress.XtraGrid.Columns.GridColumn(); - colDescription = 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(); threeLinkTreeListCtrl1 = new ThreeLinkTreeListCtrl(); + colBranchThroughMinorLoss = new DevExpress.XtraGrid.Columns.GridColumn(); + colRunThroughMinorLoss = new DevExpress.XtraGrid.Columns.GridColumn(); + colMinorLoss = new DevExpress.XtraGrid.Columns.GridColumn(); + colMaterial = new DevExpress.XtraGrid.Columns.GridColumn(); + colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); ((System.ComponentModel.ISupportInitialize)ribbonControl1).BeginInit(); ((System.ComponentModel.ISupportInitialize)svgImageCollection1).BeginInit(); sidePanel1.SuspendLayout(); @@ -72,9 +72,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, barBtnSetCoefficient }); ribbonControl1.Location = new Point(0, 0); - ribbonControl1.MaxItemId = 24; + ribbonControl1.MaxItemId = 25; ribbonControl1.Name = "ribbonControl1"; ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] { ribbonPage1 }); ribbonControl1.ShowApplicationButton = DevExpress.Utils.DefaultBoolean.False; @@ -114,6 +114,14 @@ BarBtnEidtPumpPart.Id = 16; BarBtnEidtPumpPart.Name = "BarBtnEidtPumpPart"; // + // barBtnSetCoefficient + // + barBtnSetCoefficient.Caption = "灞�闃荤郴鏁�"; + barBtnSetCoefficient.Id = 24; + barBtnSetCoefficient.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("barBtnSetCoefficient.ImageOptions.SvgImage"); + barBtnSetCoefficient.Name = "barBtnSetCoefficient"; + barBtnSetCoefficient.ItemClick += barBtnSetCoefficient_ItemClick; + // // ribbonPage1 // ribbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] { ribbonPageGroup1, ribbonPageGroup2 }); @@ -130,6 +138,7 @@ // // ribbonPageGroup2 // + ribbonPageGroup2.ItemLinks.Add(barBtnSetCoefficient); ribbonPageGroup2.Name = "ribbonPageGroup2"; ribbonPageGroup2.Text = "鏇村"; // @@ -169,7 +178,7 @@ gridView1.Appearance.HeaderPanel.Options.UseTextOptions = true; gridView1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; gridView1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; - gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colCaliber, colMaterialName, colCoefficient, colRunThroughCoefficient, colBranchThroughCoefficient, colKeyWord, colIsDefault, colDescription }); + gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colCaliber, colKeyWord, colBranchThroughMinorLoss, colRunThroughMinorLoss, colMinorLoss, colMaterial, colDescription }); gridView1.GridControl = gridControl1; gridView1.Name = "gridView1"; gridView1.OptionsView.ShowGroupPanel = false; @@ -186,56 +195,14 @@ colCaliber.FieldName = "Caliber"; colCaliber.Name = "colCaliber"; colCaliber.Visible = true; - colCaliber.VisibleIndex = 1; - // - // colMaterialName - // - colMaterialName.FieldName = "MaterialName"; - colMaterialName.Name = "colMaterialName"; - colMaterialName.Visible = true; - colMaterialName.VisibleIndex = 2; - // - // colCoefficient - // - colCoefficient.FieldName = "Coefficient"; - colCoefficient.Name = "colCoefficient"; - colCoefficient.Visible = true; - colCoefficient.VisibleIndex = 3; - // - // colRunThroughCoefficient - // - colRunThroughCoefficient.FieldName = "RunThroughCoefficient"; - colRunThroughCoefficient.Name = "colRunThroughCoefficient"; - colRunThroughCoefficient.Visible = true; - colRunThroughCoefficient.VisibleIndex = 4; - // - // colBranchThroughCoefficient - // - colBranchThroughCoefficient.FieldName = "BranchThroughCoefficient"; - colBranchThroughCoefficient.Name = "colBranchThroughCoefficient"; - colBranchThroughCoefficient.Visible = true; - colBranchThroughCoefficient.VisibleIndex = 5; + colCaliber.VisibleIndex = 3; // // colKeyWord // colKeyWord.FieldName = "KeyWord"; colKeyWord.Name = "colKeyWord"; colKeyWord.Visible = true; - colKeyWord.VisibleIndex = 6; - // - // colIsDefault - // - colIsDefault.FieldName = "IsDefault"; - colIsDefault.Name = "colIsDefault"; - colIsDefault.Visible = true; - colIsDefault.VisibleIndex = 8; - // - // colDescription - // - colDescription.FieldName = "Description"; - colDescription.Name = "colDescription"; - colDescription.Visible = true; - colDescription.VisibleIndex = 7; + colKeyWord.VisibleIndex = 1; // // dockManager1 // @@ -273,6 +240,41 @@ threeLinkTreeListCtrl1.Name = "threeLinkTreeListCtrl1"; threeLinkTreeListCtrl1.Size = new Size(193, 491); threeLinkTreeListCtrl1.TabIndex = 0; + // + // colBranchThroughMinorLoss + // + colBranchThroughMinorLoss.FieldName = "BranchThroughMinorLoss"; + colBranchThroughMinorLoss.Name = "colBranchThroughMinorLoss"; + colBranchThroughMinorLoss.Visible = true; + colBranchThroughMinorLoss.VisibleIndex = 5; + // + // colRunThroughMinorLoss + // + colRunThroughMinorLoss.FieldName = "RunThroughMinorLoss"; + colRunThroughMinorLoss.Name = "colRunThroughMinorLoss"; + colRunThroughMinorLoss.Visible = true; + colRunThroughMinorLoss.VisibleIndex = 6; + // + // colMinorLoss + // + colMinorLoss.FieldName = "MinorLoss"; + colMinorLoss.Name = "colMinorLoss"; + colMinorLoss.Visible = true; + colMinorLoss.VisibleIndex = 4; + // + // colMaterial + // + colMaterial.FieldName = "Material"; + colMaterial.Name = "colMaterial"; + colMaterial.Visible = true; + colMaterial.VisibleIndex = 2; + // + // colDescription + // + colDescription.FieldName = "Description"; + colDescription.Name = "colDescription"; + colDescription.Visible = true; + colDescription.VisibleIndex = 7; // // ThreeLinkManageMainPage // @@ -318,12 +320,12 @@ private BindingSource threeLinkViewModelBindingSource; private DevExpress.XtraGrid.Columns.GridColumn colName; private DevExpress.XtraGrid.Columns.GridColumn colCaliber; - private DevExpress.XtraGrid.Columns.GridColumn colMaterialName; - private DevExpress.XtraGrid.Columns.GridColumn colCoefficient; - private DevExpress.XtraGrid.Columns.GridColumn colRunThroughCoefficient; - private DevExpress.XtraGrid.Columns.GridColumn colBranchThroughCoefficient; private DevExpress.XtraGrid.Columns.GridColumn colKeyWord; - private DevExpress.XtraGrid.Columns.GridColumn colIsDefault; + private DevExpress.XtraBars.BarButtonItem barBtnSetCoefficient; + private DevExpress.XtraGrid.Columns.GridColumn colBranchThroughMinorLoss; + private DevExpress.XtraGrid.Columns.GridColumn colRunThroughMinorLoss; + private DevExpress.XtraGrid.Columns.GridColumn colMinorLoss; + private DevExpress.XtraGrid.Columns.GridColumn colMaterial; private DevExpress.XtraGrid.Columns.GridColumn colDescription; } } -- Gitblit v1.9.3