From 865ca7b89bde6b1793641c8421fc466695d48f6a Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期一, 04 十一月 2024 22:25:59 +0800 Subject: [PATCH] 部分水力属性修改 --- WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-parter/13-pressmeter/HydroPressmeterListCtrl.Designer.cs | 254 +++++++++++++++++++++----------------------------- 1 files changed, 108 insertions(+), 146 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/07-bulkset/02-node/01-source/02-tank/01-waterbox/HydroWaterboxBulkSetListCtrl.Designer.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-parter/13-pressmeter/HydroPressmeterListCtrl.Designer.cs similarity index 75% copy from WinFrmUI/Yw.WinFrmUI.Hydro.Core/07-bulkset/02-node/01-source/02-tank/01-waterbox/HydroWaterboxBulkSetListCtrl.Designer.cs copy to WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-parter/13-pressmeter/HydroPressmeterListCtrl.Designer.cs index 9e1b611..9500b63 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/07-bulkset/02-node/01-source/02-tank/01-waterbox/HydroWaterboxBulkSetListCtrl.Designer.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/06-parter/13-pressmeter/HydroPressmeterListCtrl.Designer.cs @@ -1,6 +1,6 @@ 锘縩amespace Yw.WinFrmUI { - partial class HydroWaterboxBulkSetListCtrl + partial class HydroPressmeterListCtrl { /// <summary> /// Required designer variable. @@ -30,19 +30,17 @@ { components = new Container(); gridControl1 = new DevExpress.XtraGrid.GridControl(); + hydroPressmeterViewModelBindingSource = new BindingSource(components); gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); colDbLocked = new DevExpress.XtraGrid.Columns.GridColumn(); - colName = new DevExpress.XtraGrid.Columns.GridColumn(); colCode = new DevExpress.XtraGrid.Columns.GridColumn(); - colPoolElev = new DevExpress.XtraGrid.Columns.GridColumn(); - colInitLevel = new DevExpress.XtraGrid.Columns.GridColumn(); - colMinLevel = new DevExpress.XtraGrid.Columns.GridColumn(); - colMaxLevel = new DevExpress.XtraGrid.Columns.GridColumn(); - colDN = new DevExpress.XtraGrid.Columns.GridColumn(); - colMinVol = new DevExpress.XtraGrid.Columns.GridColumn(); - colOverFlow = new DevExpress.XtraGrid.Columns.GridColumn(); + colName = new DevExpress.XtraGrid.Columns.GridColumn(); colModelType = new DevExpress.XtraGrid.Columns.GridColumn(); colHasDb = new DevExpress.XtraGrid.Columns.GridColumn(); + colElev = new DevExpress.XtraGrid.Columns.GridColumn(); + colMinorLoss = new DevExpress.XtraGrid.Columns.GridColumn(); + colCurrentPress = new DevExpress.XtraGrid.Columns.GridColumn(); + colCalcuPr = new DevExpress.XtraGrid.Columns.GridColumn(); colFlagsString = new DevExpress.XtraGrid.Columns.GridColumn(); colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); @@ -53,7 +51,6 @@ txtModelType = new DevExpress.XtraEditors.TextEdit(); txtCode = new DevExpress.XtraEditors.TextEdit(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); - layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem(); groupForHead = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); @@ -62,8 +59,9 @@ layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem(); layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem(); - hydroWaterboxBulkSetViewModelBindingSource = new BindingSource(components); + layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem(); ((ISupportInitialize)gridControl1).BeginInit(); + ((ISupportInitialize)hydroPressmeterViewModelBindingSource).BeginInit(); ((ISupportInitialize)gridView1).BeginInit(); ((ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); @@ -71,7 +69,6 @@ ((ISupportInitialize)txtModelType.Properties).BeginInit(); ((ISupportInitialize)txtCode.Properties).BeginInit(); ((ISupportInitialize)Root).BeginInit(); - ((ISupportInitialize)layoutControlItem1).BeginInit(); ((ISupportInitialize)groupForHead).BeginInit(); ((ISupportInitialize)layoutControlItem4).BeginInit(); ((ISupportInitialize)layoutControlItem2).BeginInit(); @@ -80,24 +77,29 @@ ((ISupportInitialize)layoutControlItem5).BeginInit(); ((ISupportInitialize)layoutControlItem6).BeginInit(); ((ISupportInitialize)layoutControlItem7).BeginInit(); - ((ISupportInitialize)hydroWaterboxBulkSetViewModelBindingSource).BeginInit(); + ((ISupportInitialize)layoutControlItem8).BeginInit(); SuspendLayout(); // // gridControl1 // - gridControl1.DataSource = hydroWaterboxBulkSetViewModelBindingSource; + gridControl1.DataSource = hydroPressmeterViewModelBindingSource; gridControl1.Location = new Point(2, 50); gridControl1.MainView = gridView1; gridControl1.Name = "gridControl1"; - gridControl1.Size = new Size(1377, 421); - gridControl1.TabIndex = 4; + gridControl1.Size = new Size(1084, 495); + gridControl1.TabIndex = 0; gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); + // + // hydroPressmeterViewModelBindingSource + // + hydroPressmeterViewModelBindingSource.DataSource = typeof(HydroPressmeterViewModel); // // gridView1 // - gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colDbLocked, colName, colCode, colPoolElev, colInitLevel, colMinLevel, colMaxLevel, colDN, colMinVol, colOverFlow, colModelType, colHasDb, colFlagsString, colDescription }); + gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colDbLocked, colCode, colName, colModelType, colHasDb, colElev, colMinorLoss, colCurrentPress, colCalcuPr, colFlagsString, colDescription }); gridView1.GridControl = gridControl1; gridView1.Name = "gridView1"; + gridView1.OptionsFind.AlwaysVisible = true; gridView1.RowClick += gridView1_RowClick; // // colDbLocked @@ -110,16 +112,6 @@ colDbLocked.VisibleIndex = 0; colDbLocked.Width = 60; // - // colName - // - colName.FieldName = "Name"; - colName.MaxWidth = 150; - colName.MinWidth = 100; - colName.Name = "colName"; - colName.Visible = true; - colName.VisibleIndex = 1; - colName.Width = 100; - // // colCode // colCode.FieldName = "Code"; @@ -130,75 +122,15 @@ colCode.VisibleIndex = 2; colCode.Width = 100; // - // colPoolElev + // colName // - colPoolElev.FieldName = "PoolElev"; - colPoolElev.MaxWidth = 100; - colPoolElev.MinWidth = 100; - colPoolElev.Name = "colPoolElev"; - colPoolElev.Visible = true; - colPoolElev.VisibleIndex = 4; - colPoolElev.Width = 100; - // - // colInitLevel - // - colInitLevel.FieldName = "InitLevel"; - colInitLevel.MaxWidth = 100; - colInitLevel.MinWidth = 100; - colInitLevel.Name = "colInitLevel"; - colInitLevel.Visible = true; - colInitLevel.VisibleIndex = 5; - colInitLevel.Width = 100; - // - // colMinLevel - // - colMinLevel.FieldName = "MinLevel"; - colMinLevel.MaxWidth = 100; - colMinLevel.MinWidth = 100; - colMinLevel.Name = "colMinLevel"; - colMinLevel.Visible = true; - colMinLevel.VisibleIndex = 6; - colMinLevel.Width = 100; - // - // colMaxLevel - // - colMaxLevel.FieldName = "MaxLevel"; - colMaxLevel.MaxWidth = 100; - colMaxLevel.MinWidth = 100; - colMaxLevel.Name = "colMaxLevel"; - colMaxLevel.Visible = true; - colMaxLevel.VisibleIndex = 7; - colMaxLevel.Width = 100; - // - // colDN - // - colDN.FieldName = "DN"; - colDN.MaxWidth = 100; - colDN.MinWidth = 100; - colDN.Name = "colDN"; - colDN.Visible = true; - colDN.VisibleIndex = 8; - colDN.Width = 100; - // - // colMinVol - // - colMinVol.FieldName = "MinVol"; - colMinVol.MaxWidth = 100; - colMinVol.MinWidth = 100; - colMinVol.Name = "colMinVol"; - colMinVol.Visible = true; - colMinVol.VisibleIndex = 9; - colMinVol.Width = 100; - // - // colOverFlow - // - colOverFlow.FieldName = "OverFlow"; - colOverFlow.MaxWidth = 80; - colOverFlow.MinWidth = 80; - colOverFlow.Name = "colOverFlow"; - colOverFlow.Visible = true; - colOverFlow.VisibleIndex = 10; - colOverFlow.Width = 80; + colName.FieldName = "Name"; + colName.MaxWidth = 150; + colName.MinWidth = 100; + colName.Name = "colName"; + colName.Visible = true; + colName.VisibleIndex = 1; + colName.Width = 100; // // colModelType // @@ -217,8 +149,48 @@ colHasDb.MinWidth = 60; colHasDb.Name = "colHasDb"; colHasDb.Visible = true; - colHasDb.VisibleIndex = 11; + colHasDb.VisibleIndex = 8; colHasDb.Width = 60; + // + // colElev + // + colElev.FieldName = "Elev"; + colElev.MaxWidth = 100; + colElev.MinWidth = 100; + colElev.Name = "colElev"; + colElev.Visible = true; + colElev.VisibleIndex = 4; + colElev.Width = 100; + // + // colMinorLoss + // + colMinorLoss.FieldName = "MinorLoss"; + colMinorLoss.MaxWidth = 100; + colMinorLoss.MinWidth = 100; + colMinorLoss.Name = "colMinorLoss"; + colMinorLoss.Visible = true; + colMinorLoss.VisibleIndex = 5; + colMinorLoss.Width = 100; + // + // colCurrentPress + // + colCurrentPress.FieldName = "CurrentPress"; + colCurrentPress.MaxWidth = 100; + colCurrentPress.MinWidth = 100; + colCurrentPress.Name = "colCurrentPress"; + colCurrentPress.Visible = true; + colCurrentPress.VisibleIndex = 6; + colCurrentPress.Width = 100; + // + // colCalcuPr + // + colCalcuPr.FieldName = "CalcuPr"; + colCalcuPr.MaxWidth = 100; + colCalcuPr.MinWidth = 100; + colCalcuPr.Name = "colCalcuPr"; + colCalcuPr.Visible = true; + colCalcuPr.VisibleIndex = 7; + colCalcuPr.Width = 100; // // colFlagsString // @@ -227,7 +199,7 @@ colFlagsString.MinWidth = 100; colFlagsString.Name = "colFlagsString"; colFlagsString.Visible = true; - colFlagsString.VisibleIndex = 12; + colFlagsString.VisibleIndex = 9; colFlagsString.Width = 100; // // colDescription @@ -236,25 +208,25 @@ colDescription.MinWidth = 100; colDescription.Name = "colDescription"; colDescription.Visible = true; - colDescription.VisibleIndex = 13; + colDescription.VisibleIndex = 10; colDescription.Width = 100; // // layoutControl1 // + layoutControl1.Controls.Add(gridControl1); layoutControl1.Controls.Add(btnReset); layoutControl1.Controls.Add(btnSet); layoutControl1.Controls.Add(btnSearch); layoutControl1.Controls.Add(txtName); layoutControl1.Controls.Add(txtModelType); layoutControl1.Controls.Add(txtCode); - layoutControl1.Controls.Add(gridControl1); layoutControl1.Dock = DockStyle.Fill; layoutControl1.Location = new Point(0, 0); layoutControl1.Name = "layoutControl1"; layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(1227, 184, 650, 400); layoutControl1.Root = Root; - layoutControl1.Size = new Size(1381, 473); - layoutControl1.TabIndex = 1; + layoutControl1.Size = new Size(1088, 547); + layoutControl1.TabIndex = 2; layoutControl1.Text = "layoutControl1"; // // btnReset @@ -267,19 +239,17 @@ btnReset.StyleController = layoutControl1; btnReset.TabIndex = 7; btnReset.Text = "閲嶇疆"; - btnReset.Click += btnReset_Click; // // btnSet // btnSet.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Success; btnSet.Appearance.Options.UseBackColor = true; - btnSet.Location = new Point(1271, 14); + btnSet.Location = new Point(978, 14); btnSet.Name = "btnSet"; btnSet.Size = new Size(96, 22); btnSet.StyleController = layoutControl1; btnSet.TabIndex = 6; btnSet.Text = "璁剧疆"; - btnSet.Click += btnSet_Click; // // btnSearch // @@ -291,7 +261,6 @@ btnSearch.StyleController = layoutControl1; btnSearch.TabIndex = 5; btnSearch.Text = "鏌ヨ"; - btnSearch.Click += btnSearch_Click; // // txtName // @@ -326,28 +295,18 @@ Root.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; Root.GroupBordersVisible = false; - Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem1, groupForHead }); + Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { groupForHead, layoutControlItem8 }); Root.Name = "Root"; Root.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); - Root.Size = new Size(1381, 473); + Root.Size = new Size(1088, 547); Root.TextVisible = false; - // - // layoutControlItem1 - // - layoutControlItem1.Control = gridControl1; - layoutControlItem1.Location = new Point(0, 48); - layoutControlItem1.Name = "layoutControlItem1"; - layoutControlItem1.Size = new Size(1381, 425); - layoutControlItem1.TextSize = new Size(0, 0); - layoutControlItem1.TextVisible = false; // // groupForHead // groupForHead.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem4, layoutControlItem2, layoutControlItem3, emptySpaceItem1, layoutControlItem5, layoutControlItem6, layoutControlItem7 }); groupForHead.Location = new Point(0, 0); groupForHead.Name = "groupForHead"; - groupForHead.Size = new Size(1381, 48); - groupForHead.Spacing = new DevExpress.XtraLayout.Utils.Padding(2, 2, 2, 0); + groupForHead.Size = new Size(1088, 50); groupForHead.Text = "鏌ヨ鏉′欢"; groupForHead.TextVisible = false; // @@ -392,7 +351,7 @@ emptySpaceItem1.AllowHotTrack = false; emptySpaceItem1.Location = new Point(800, 0); emptySpaceItem1.Name = "emptySpaceItem1"; - emptySpaceItem1.Size = new Size(457, 26); + emptySpaceItem1.Size = new Size(164, 26); emptySpaceItem1.TextSize = new Size(0, 0); // // layoutControlItem5 @@ -410,7 +369,7 @@ // layoutControlItem6 // layoutControlItem6.Control = btnSet; - layoutControlItem6.Location = new Point(1257, 0); + layoutControlItem6.Location = new Point(964, 0); layoutControlItem6.MaxSize = new Size(100, 26); layoutControlItem6.MinSize = new Size(100, 26); layoutControlItem6.Name = "layoutControlItem6"; @@ -431,18 +390,25 @@ layoutControlItem7.TextSize = new Size(0, 0); layoutControlItem7.TextVisible = false; // - // hydroWaterboxBulkSetViewModelBindingSource + // layoutControlItem8 // - hydroWaterboxBulkSetViewModelBindingSource.DataSource = typeof(HydroWaterboxBulkSetViewModel); + layoutControlItem8.Control = gridControl1; + layoutControlItem8.Location = new Point(0, 50); + layoutControlItem8.Name = "layoutControlItem8"; + layoutControlItem8.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 0, 2); + layoutControlItem8.Size = new Size(1088, 497); + layoutControlItem8.TextSize = new Size(0, 0); + layoutControlItem8.TextVisible = false; // - // HydroWaterboxBulkSetListCtrl + // HydroPressmeterListCtrl // AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; Controls.Add(layoutControl1); - Name = "HydroWaterboxBulkSetListCtrl"; - Size = new Size(1381, 473); + Name = "HydroPressmeterListCtrl"; + Size = new Size(1088, 547); ((ISupportInitialize)gridControl1).EndInit(); + ((ISupportInitialize)hydroPressmeterViewModelBindingSource).EndInit(); ((ISupportInitialize)gridView1).EndInit(); ((ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); @@ -450,7 +416,6 @@ ((ISupportInitialize)txtModelType.Properties).EndInit(); ((ISupportInitialize)txtCode.Properties).EndInit(); ((ISupportInitialize)Root).EndInit(); - ((ISupportInitialize)layoutControlItem1).EndInit(); ((ISupportInitialize)groupForHead).EndInit(); ((ISupportInitialize)layoutControlItem4).EndInit(); ((ISupportInitialize)layoutControlItem2).EndInit(); @@ -459,7 +424,7 @@ ((ISupportInitialize)layoutControlItem5).EndInit(); ((ISupportInitialize)layoutControlItem6).EndInit(); ((ISupportInitialize)layoutControlItem7).EndInit(); - ((ISupportInitialize)hydroWaterboxBulkSetViewModelBindingSource).EndInit(); + ((ISupportInitialize)layoutControlItem8).EndInit(); ResumeLayout(false); } @@ -467,37 +432,34 @@ private DevExpress.XtraGrid.GridControl gridControl1; private DevExpress.XtraGrid.Views.Grid.GridView gridView1; + private DevExpress.XtraGrid.Columns.GridColumn colCode; + private DevExpress.XtraGrid.Columns.GridColumn colName; + private DevExpress.XtraGrid.Columns.GridColumn colFlagsString; + private DevExpress.XtraGrid.Columns.GridColumn colElev; + private DevExpress.XtraGrid.Columns.GridColumn colDescription; + private BindingSource hydroPressmeterViewModelBindingSource; + private DevExpress.XtraGrid.Columns.GridColumn colDbLocked; + private DevExpress.XtraGrid.Columns.GridColumn colModelType; + private DevExpress.XtraGrid.Columns.GridColumn colHasDb; + private DevExpress.XtraGrid.Columns.GridColumn colMinorLoss; + private DevExpress.XtraGrid.Columns.GridColumn colCalcuPr; + private DevExpress.XtraGrid.Columns.GridColumn colCurrentPress; private DevExpress.XtraLayout.LayoutControl layoutControl1; - private DevExpress.XtraLayout.LayoutControlGroup Root; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; + private DevExpress.XtraEditors.SimpleButton btnReset; + private DevExpress.XtraEditors.SimpleButton btnSet; private DevExpress.XtraEditors.SimpleButton btnSearch; private DevExpress.XtraEditors.TextEdit txtName; private DevExpress.XtraEditors.TextEdit txtModelType; private DevExpress.XtraEditors.TextEdit txtCode; + private DevExpress.XtraLayout.LayoutControlGroup Root; private DevExpress.XtraLayout.LayoutControlGroup groupForHead; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5; - private DevExpress.XtraEditors.SimpleButton btnSet; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6; - private DevExpress.XtraEditors.SimpleButton btnReset; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; - private DevExpress.XtraGrid.Columns.GridColumn colDbLocked; - private DevExpress.XtraGrid.Columns.GridColumn colName; - private DevExpress.XtraGrid.Columns.GridColumn colCode; - private DevExpress.XtraGrid.Columns.GridColumn colPoolElev; - private DevExpress.XtraGrid.Columns.GridColumn colInitLevel; - private DevExpress.XtraGrid.Columns.GridColumn colMinLevel; - private DevExpress.XtraGrid.Columns.GridColumn colMaxLevel; - private DevExpress.XtraGrid.Columns.GridColumn colDN; - private DevExpress.XtraGrid.Columns.GridColumn colMinVol; - private DevExpress.XtraGrid.Columns.GridColumn colOverFlow; - private DevExpress.XtraGrid.Columns.GridColumn colModelType; - private DevExpress.XtraGrid.Columns.GridColumn colHasDb; - private DevExpress.XtraGrid.Columns.GridColumn colFlagsString; - private DevExpress.XtraGrid.Columns.GridColumn colDescription; - private BindingSource hydroWaterboxBulkSetViewModelBindingSource; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem8; } } -- Gitblit v1.9.3