From 0663632b0a4aa990a68fca7ea564c93d963c3eaf Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期一, 26 八月 2024 15:01:51 +0800 Subject: [PATCH] 优化界面 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/PumpMain/PumpMainChoicePage.Designer.cs | 165 ++++++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 133 insertions(+), 32 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/PumpMain/PumpMainChoicePage.Designer.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/PumpMain/PumpMainChoicePage.Designer.cs index 047a13c..24c38d6 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/PumpMain/PumpMainChoicePage.Designer.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-scheme/02-asset-mgr/PumpMain/PumpMainChoicePage.Designer.cs @@ -31,6 +31,9 @@ { ComponentResourceManager resources = new ComponentResourceManager(typeof(PumpMainChoicePage)); layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); + popupContainerControl2 = new DevExpress.XtraEditors.PopupContainerControl(); + gridControl1 = new DevExpress.XtraGrid.GridControl(); + gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); popupContainerControl1 = new DevExpress.XtraEditors.PopupContainerControl(); treeList1 = new DevExpress.XtraTreeList.TreeList(); treeListColumn1 = new DevExpress.XtraTreeList.Columns.TreeListColumn(); @@ -55,11 +58,22 @@ simpleLabelItem6 = new DevExpress.XtraLayout.SimpleLabelItem(); simpleLabelItem7 = new DevExpress.XtraLayout.SimpleLabelItem(); simpleLabelItem8 = new DevExpress.XtraLayout.SimpleLabelItem(); - popupContainerControl2 = new DevExpress.XtraEditors.PopupContainerControl(); - gridControl1 = new DevExpress.XtraGrid.GridControl(); - gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); + colName = new DevExpress.XtraGrid.Columns.GridColumn(); + colTagName = new DevExpress.XtraGrid.Columns.GridColumn(); + colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); + colRatedFlow = new DevExpress.XtraGrid.Columns.GridColumn(); + colRatedHead = new DevExpress.XtraGrid.Columns.GridColumn(); + colD2 = new DevExpress.XtraGrid.Columns.GridColumn(); + colErosion = new DevExpress.XtraGrid.Columns.GridColumn(); + colRatedEfficiency = new DevExpress.XtraGrid.Columns.GridColumn(); + colRatedPower = new DevExpress.XtraGrid.Columns.GridColumn(); + colRatedSpeed = new DevExpress.XtraGrid.Columns.GridColumn(); ((ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); + ((ISupportInitialize)popupContainerControl2).BeginInit(); + popupContainerControl2.SuspendLayout(); + ((ISupportInitialize)gridControl1).BeginInit(); + ((ISupportInitialize)gridView1).BeginInit(); ((ISupportInitialize)popupContainerControl1).BeginInit(); popupContainerControl1.SuspendLayout(); ((ISupportInitialize)treeList1).BeginInit(); @@ -82,10 +96,6 @@ ((ISupportInitialize)simpleLabelItem6).BeginInit(); ((ISupportInitialize)simpleLabelItem7).BeginInit(); ((ISupportInitialize)simpleLabelItem8).BeginInit(); - ((ISupportInitialize)popupContainerControl2).BeginInit(); - popupContainerControl2.SuspendLayout(); - ((ISupportInitialize)gridControl1).BeginInit(); - ((ISupportInitialize)gridView1).BeginInit(); SuspendLayout(); // // layoutControl1 @@ -104,6 +114,31 @@ layoutControl1.Size = new Size(960, 535); layoutControl1.TabIndex = 0; layoutControl1.Text = "layoutControl1"; + // + // popupContainerControl2 + // + popupContainerControl2.Controls.Add(gridControl1); + popupContainerControl2.Location = new Point(383, 169); + popupContainerControl2.Name = "popupContainerControl2"; + popupContainerControl2.Size = new Size(521, 304); + popupContainerControl2.TabIndex = 6; + // + // gridControl1 + // + gridControl1.Dock = DockStyle.Fill; + gridControl1.Location = new Point(0, 0); + gridControl1.MainView = gridView1; + gridControl1.Name = "gridControl1"; + gridControl1.Size = new Size(521, 304); + gridControl1.TabIndex = 0; + gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); + // + // gridView1 + // + gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colTagName, colDescription, colRatedFlow, colRatedHead, colD2, colErosion, colRatedEfficiency, colRatedPower, colRatedSpeed }); + gridView1.GridControl = gridControl1; + gridView1.Name = "gridView1"; + gridView1.OptionsView.ShowGroupPanel = false; // // popupContainerControl1 // @@ -231,7 +266,7 @@ // simpleLabelItemVagueSearch // simpleLabelItemVagueSearch.AllowHotTrack = false; - simpleLabelItemVagueSearch.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("simpleLabelItem10.ImageOptions.SvgImage"); + simpleLabelItemVagueSearch.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("simpleLabelItemVagueSearch.ImageOptions.SvgImage"); simpleLabelItemVagueSearch.ImageOptions.SvgImageSize = new Size(20, 20); simpleLabelItemVagueSearch.Location = new Point(380, 0); simpleLabelItemVagueSearch.Name = "simpleLabelItemVagueSearch"; @@ -239,7 +274,7 @@ simpleLabelItemVagueSearch.Text = " "; simpleLabelItemVagueSearch.TextAlignMode = DevExpress.XtraLayout.TextAlignModeItem.AutoSize; simpleLabelItemVagueSearch.TextSize = new Size(29, 20); - simpleLabelItemVagueSearch.Click += this.simpleLabelItemVagueSearch_Click; + simpleLabelItemVagueSearch.Click += simpleLabelItemVagueSearch_Click; // // layoutControlItem1 // @@ -322,29 +357,85 @@ simpleLabelItem8.Size = new Size(0, 0); simpleLabelItem8.TextSize = new Size(50, 20); // - // popupContainerControl2 + // colName // - popupContainerControl2.Controls.Add(gridControl1); - popupContainerControl2.Location = new Point(383, 169); - popupContainerControl2.Name = "popupContainerControl2"; - popupContainerControl2.Size = new Size(521, 304); - popupContainerControl2.TabIndex = 6; + colName.Caption = "鍨嬪彿"; + colName.FieldName = "Name"; + colName.Name = "colName"; + colName.Visible = true; + colName.VisibleIndex = 0; // - // gridControl1 + // colTagName // - gridControl1.Dock = DockStyle.Fill; - gridControl1.Location = new Point(0, 0); - gridControl1.MainView = gridView1; - gridControl1.Name = "gridControl1"; - gridControl1.Size = new Size(521, 304); - gridControl1.TabIndex = 0; - gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); + colTagName.Caption = "鏍囩"; + colTagName.FieldName = "TagName"; + colTagName.Name = "colTagName"; + colTagName.Visible = true; + colTagName.VisibleIndex = 1; // - // gridView1 + // colDescription // - gridView1.GridControl = gridControl1; - gridView1.Name = "gridView1"; - gridView1.OptionsView.ShowGroupPanel = false; + colDescription.Caption = "璇存槑"; + colDescription.FieldName = "Description"; + colDescription.Name = "colDescription"; + colDescription.Visible = true; + colDescription.VisibleIndex = 2; + // + // colRatedFlow + // + colRatedFlow.Caption = "棰濆畾娴侀噺(m鲁/h)"; + colRatedFlow.FieldName = "RatedFlow"; + colRatedFlow.Name = "colRatedFlow"; + colRatedFlow.Visible = true; + colRatedFlow.VisibleIndex = 3; + // + // colRatedHead + // + colRatedHead.Caption = "棰濆畾鎵▼(m)"; + colRatedHead.FieldName = "RatedHead"; + colRatedHead.Name = "colRatedHead"; + colRatedHead.Visible = true; + colRatedHead.VisibleIndex = 4; + // + // colD2 + // + colD2.Caption = "鍙惰疆澶栧緞(mm)"; + colD2.FieldName = "D2"; + colD2.Name = "colD2"; + colD2.Visible = true; + colD2.VisibleIndex = 5; + // + // colErosion + // + colErosion.Caption = "姘旇殌"; + colErosion.FieldName = "Erosion"; + colErosion.Name = "colErosion"; + colErosion.Visible = true; + colErosion.VisibleIndex = 6; + // + // colRatedEfficiency + // + colRatedEfficiency.Caption = "棰濆畾鏁堢巼"; + colRatedEfficiency.FieldName = "RatedEfficiency"; + colRatedEfficiency.Name = "colRatedEfficiency"; + colRatedEfficiency.Visible = true; + colRatedEfficiency.VisibleIndex = 7; + // + // colRatedPower + // + colRatedPower.Caption = "棰濆畾鍔熺巼"; + colRatedPower.FieldName = "RatedPower"; + colRatedPower.Name = "colRatedPower"; + colRatedPower.Visible = true; + colRatedPower.VisibleIndex = 8; + // + // colRatedSpeed + // + colRatedSpeed.Caption = "棰濆畾杞��"; + colRatedSpeed.FieldName = "RatedSpeed"; + colRatedSpeed.Name = "colRatedSpeed"; + colRatedSpeed.Visible = true; + colRatedSpeed.VisibleIndex = 9; // // PumpMainChoicePage // @@ -355,6 +446,10 @@ Size = new Size(960, 535); ((ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); + ((ISupportInitialize)popupContainerControl2).EndInit(); + popupContainerControl2.ResumeLayout(false); + ((ISupportInitialize)gridControl1).EndInit(); + ((ISupportInitialize)gridView1).EndInit(); ((ISupportInitialize)popupContainerControl1).EndInit(); popupContainerControl1.ResumeLayout(false); ((ISupportInitialize)treeList1).EndInit(); @@ -377,13 +472,9 @@ ((ISupportInitialize)simpleLabelItem6).EndInit(); ((ISupportInitialize)simpleLabelItem7).EndInit(); ((ISupportInitialize)simpleLabelItem8).EndInit(); - ((ISupportInitialize)popupContainerControl2).EndInit(); - popupContainerControl2.ResumeLayout(false); - ((ISupportInitialize)gridControl1).EndInit(); - ((ISupportInitialize)gridView1).EndInit(); ResumeLayout(false); } - + #endregion @@ -415,5 +506,15 @@ private DevExpress.XtraEditors.PopupContainerControl popupContainerControl2; private DevExpress.XtraGrid.GridControl gridControl1; private DevExpress.XtraGrid.Views.Grid.GridView gridView1; + private DevExpress.XtraGrid.Columns.GridColumn colName; + private DevExpress.XtraGrid.Columns.GridColumn colTagName; + private DevExpress.XtraGrid.Columns.GridColumn colDescription; + private DevExpress.XtraGrid.Columns.GridColumn colRatedFlow; + private DevExpress.XtraGrid.Columns.GridColumn colRatedHead; + private DevExpress.XtraGrid.Columns.GridColumn colD2; + private DevExpress.XtraGrid.Columns.GridColumn colErosion; + private DevExpress.XtraGrid.Columns.GridColumn colRatedEfficiency; + private DevExpress.XtraGrid.Columns.GridColumn colRatedPower; + private DevExpress.XtraGrid.Columns.GridColumn colRatedSpeed; } } -- Gitblit v1.9.3