From 4cb1f00f84d160f97afd0fb86cf600e1be667dd5 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期四, 17 十月 2024 11:22:15 +0800 Subject: [PATCH] 水力组件更新 --- WinFrmUI/HStation.WinFrmUI.Basic/01-SysCatalogManage/SetSysPropForCatalogDlg.Designer.cs | 187 ++++++++++++++++++---------------------------- 1 files changed, 75 insertions(+), 112 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Basic/01-SysCatalogManage/SetSysPropForCatalogDlg.Designer.cs b/WinFrmUI/HStation.WinFrmUI.Basic/01-SysCatalogManage/SetSysPropForCatalogDlg.Designer.cs index 7e879c3..544cc88 100644 --- a/WinFrmUI/HStation.WinFrmUI.Basic/01-SysCatalogManage/SetSysPropForCatalogDlg.Designer.cs +++ b/WinFrmUI/HStation.WinFrmUI.Basic/01-SysCatalogManage/SetSysPropForCatalogDlg.Designer.cs @@ -31,18 +31,14 @@ components = new System.ComponentModel.Container(); BtnOk = new DevExpress.XtraEditors.SimpleButton(); layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); - gridControl1 = new DevExpress.XtraGrid.GridControl(); - sysCatalogPropViewModelBindingSource = new BindingSource(components); - gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); - colGroupName = new DevExpress.XtraGrid.Columns.GridColumn(); - colName = new DevExpress.XtraGrid.Columns.GridColumn(); - colIsHave = new DevExpress.XtraGrid.Columns.GridColumn(); - colIsNull = new DevExpress.XtraGrid.Columns.GridColumn(); - colUnitName = new DevExpress.XtraGrid.Columns.GridColumn(); - colDefaultValue = new DevExpress.XtraGrid.Columns.GridColumn(); - colPropChoice = new DevExpress.XtraGrid.Columns.GridColumn(); + treeList1 = new DevExpress.XtraTreeList.TreeList(); + colName = new DevExpress.XtraTreeList.Columns.TreeListColumn(); + colUnitName = new DevExpress.XtraTreeList.Columns.TreeListColumn(); + colIsNull = new DevExpress.XtraTreeList.Columns.TreeListColumn(); + colDefaultValue = new DevExpress.XtraTreeList.Columns.TreeListColumn(); + colPropChoice = new DevExpress.XtraTreeList.Columns.TreeListColumn(); repositoryItemCheckedComboBoxEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemCheckedComboBoxEdit(); - repositoryItemButtonEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit(); + sysCatalogPropViewModelBindingSource = new BindingSource(components); btnCancel = new DevExpress.XtraEditors.SimpleButton(); Root = new DevExpress.XtraLayout.LayoutControlGroup(); layoutControlItem2 = new DevExpress.XtraLayout.LayoutControlItem(); @@ -52,11 +48,9 @@ emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); ((System.ComponentModel.ISupportInitialize)layoutControl1).BeginInit(); layoutControl1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)gridControl1).BeginInit(); - ((System.ComponentModel.ISupportInitialize)sysCatalogPropViewModelBindingSource).BeginInit(); - ((System.ComponentModel.ISupportInitialize)gridView1).BeginInit(); + ((System.ComponentModel.ISupportInitialize)treeList1).BeginInit(); ((System.ComponentModel.ISupportInitialize)repositoryItemCheckedComboBoxEdit1).BeginInit(); - ((System.ComponentModel.ISupportInitialize)repositoryItemButtonEdit1).BeginInit(); + ((System.ComponentModel.ISupportInitialize)sysCatalogPropViewModelBindingSource).BeginInit(); ((System.ComponentModel.ISupportInitialize)Root).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem2).BeginInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem1).BeginInit(); @@ -69,9 +63,10 @@ // BtnOk.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Primary; BtnOk.Appearance.Options.UseBackColor = true; - BtnOk.Location = new Point(530, 384); + BtnOk.Location = new Point(654, 384); + BtnOk.Margin = new Padding(3, 2, 3, 2); BtnOk.Name = "BtnOk"; - BtnOk.Size = new Size(86, 22); + BtnOk.Size = new Size(107, 22); BtnOk.StyleController = layoutControl1; BtnOk.TabIndex = 2; BtnOk.Text = "瀹屾垚"; @@ -79,131 +74,106 @@ // // layoutControl1 // - layoutControl1.Controls.Add(gridControl1); + layoutControl1.Controls.Add(treeList1); layoutControl1.Controls.Add(btnCancel); layoutControl1.Controls.Add(BtnOk); layoutControl1.Dock = DockStyle.Fill; layoutControl1.Location = new Point(0, 0); + layoutControl1.Margin = new Padding(3, 2, 3, 2); layoutControl1.Name = "layoutControl1"; layoutControl1.Root = Root; - layoutControl1.Size = new Size(708, 408); + layoutControl1.Size = new Size(874, 408); layoutControl1.TabIndex = 9; layoutControl1.Text = "layoutControl1"; // - // gridControl1 + // treeList1 // - gridControl1.DataSource = sysCatalogPropViewModelBindingSource; - gridControl1.Location = new Point(2, 2); - gridControl1.MainView = gridView1; - gridControl1.Name = "gridControl1"; - gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repositoryItemCheckedComboBoxEdit1, repositoryItemButtonEdit1 }); - gridControl1.Size = new Size(704, 378); - gridControl1.TabIndex = 4; - gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); - // - // sysCatalogPropViewModelBindingSource - // - sysCatalogPropViewModelBindingSource.DataSource = typeof(SysPropMappingViewModel); - // - // gridView1 - // - gridView1.Appearance.HeaderPanel.Options.UseTextOptions = true; - gridView1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; - gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colGroupName, colName, colIsHave, colIsNull, colUnitName, colDefaultValue, colPropChoice }); - gridView1.GridControl = gridControl1; - gridView1.Name = "gridView1"; - gridView1.OptionsView.ShowGroupPanel = false; - gridView1.CustomDrawCell += gridView1_CustomDrawCell; - gridView1.ShowingEditor += gridView1_ShowingEditor; - // - // colGroupName - // - colGroupName.Caption = "缁勫悕"; - colGroupName.FieldName = "GroupName"; - colGroupName.Name = "colGroupName"; + treeList1.CheckBoxFieldName = "IsHave"; + treeList1.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { colName, colUnitName, colIsNull, colDefaultValue, colPropChoice }); + treeList1.DataSource = sysCatalogPropViewModelBindingSource; + treeList1.Location = new Point(2, 2); + treeList1.Margin = new Padding(3, 2, 3, 2); + treeList1.Name = "treeList1"; + treeList1.OptionsBehavior.AllowRecursiveNodeChecking = true; + treeList1.OptionsScrollAnnotations.ShowSelectedRows = DevExpress.Utils.DefaultBoolean.True; + treeList1.OptionsSelection.MultiSelect = true; + treeList1.OptionsView.CheckBoxStyle = DevExpress.XtraTreeList.DefaultNodeCheckBoxStyle.Check; + treeList1.OptionsView.RootCheckBoxStyle = DevExpress.XtraTreeList.NodeCheckBoxStyle.Check; + treeList1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repositoryItemCheckedComboBoxEdit1 }); + treeList1.Size = new Size(870, 378); + treeList1.TabIndex = 4; + treeList1.BeforeCheckNode += treeList1_BeforeCheckNode; + treeList1.AfterCheckNode += treeList1_AfterCheckNode; + treeList1.CustomDrawNodeCell += treeList1_CustomDrawNodeCell; + treeList1.ShowingEditor += treeList1_ShowingEditor; // // colName // - colName.AppearanceCell.Options.UseTextOptions = true; - colName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; - colName.Caption = "灞炴�у悕"; + colName.Caption = "鍚嶇О"; colName.FieldName = "Name"; colName.Name = "colName"; - colName.OptionsColumn.AllowEdit = false; + colName.OptionsColumn.AllowSort = true; colName.Visible = true; colName.VisibleIndex = 0; // - // colIsHave - // - colIsHave.AppearanceCell.Options.UseTextOptions = true; - colIsHave.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; - colIsHave.Caption = "鏄惁閫夋嫨"; - colIsHave.FieldName = "IsHave"; - colIsHave.Name = "colIsHave"; - colIsHave.Visible = true; - colIsHave.VisibleIndex = 4; - // - // colIsNull - // - colIsNull.AppearanceCell.Options.UseTextOptions = true; - colIsNull.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; - colIsNull.Caption = "鏄惁涓虹┖"; - colIsNull.FieldName = "IsNull"; - colIsNull.Name = "colIsNull"; - colIsNull.Visible = true; - colIsNull.VisibleIndex = 3; - // // colUnitName // - colUnitName.AppearanceCell.Options.UseTextOptions = true; - colUnitName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; colUnitName.Caption = "鍗曚綅"; colUnitName.FieldName = "UnitName"; colUnitName.Name = "colUnitName"; + colUnitName.OptionsColumn.AllowSort = true; colUnitName.Visible = true; colUnitName.VisibleIndex = 1; // + // colIsNull + // + colIsNull.Caption = "鏄惁涓虹┖"; + colIsNull.FieldName = "IsNull"; + colIsNull.Name = "colIsNull"; + colIsNull.OptionsColumn.AllowSort = true; + colIsNull.Visible = true; + colIsNull.VisibleIndex = 3; + // // colDefaultValue // - colDefaultValue.AppearanceCell.Options.UseTextOptions = true; - colDefaultValue.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; colDefaultValue.Caption = "榛樿鍊�"; colDefaultValue.FieldName = "DefaultValue"; colDefaultValue.Name = "colDefaultValue"; + colDefaultValue.OptionsColumn.AllowSort = true; colDefaultValue.Visible = true; colDefaultValue.VisibleIndex = 2; // // colPropChoice // - colPropChoice.Caption = "灞炴�ч�夐」"; + colPropChoice.Caption = "灞炴�ч�夋嫨"; colPropChoice.ColumnEdit = repositoryItemCheckedComboBoxEdit1; colPropChoice.FieldName = "DisplayChoice"; colPropChoice.Name = "colPropChoice"; + colPropChoice.OptionsColumn.AllowSort = true; colPropChoice.Visible = true; - colPropChoice.VisibleIndex = 5; + colPropChoice.VisibleIndex = 4; // // repositoryItemCheckedComboBoxEdit1 // repositoryItemCheckedComboBoxEdit1.AutoHeight = false; repositoryItemCheckedComboBoxEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); repositoryItemCheckedComboBoxEdit1.Name = "repositoryItemCheckedComboBoxEdit1"; - repositoryItemCheckedComboBoxEdit1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; + repositoryItemCheckedComboBoxEdit1.SelectAllItemCaption = "鍏ㄩ��"; repositoryItemCheckedComboBoxEdit1.EditValueChanged += repositoryItemCheckedComboBoxEdit1_EditValueChanged; // - // repositoryItemButtonEdit1 + // sysCatalogPropViewModelBindingSource // - repositoryItemButtonEdit1.AutoHeight = false; - repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph) }); - repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1"; + sysCatalogPropViewModelBindingSource.DataSource = typeof(SysPropMappingViewModel); // // btnCancel // btnCancel.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Danger; btnCancel.Appearance.Options.UseBackColor = true; btnCancel.DialogResult = DialogResult.Cancel; - btnCancel.Location = new Point(620, 384); + btnCancel.Location = new Point(765, 384); + btnCancel.Margin = new Padding(3, 2, 3, 2); btnCancel.Name = "btnCancel"; - btnCancel.Size = new Size(86, 22); + btnCancel.Size = new Size(107, 22); btnCancel.StyleController = layoutControl1; btnCancel.TabIndex = 3; btnCancel.Text = "鍙栨秷"; @@ -215,24 +185,24 @@ Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlItem2, layoutControlItem1, emptySpaceItem2, layoutControlItem3 }); Root.Name = "Root"; Root.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0); - Root.Size = new Size(708, 408); + Root.Size = new Size(874, 408); Root.TextVisible = false; // // layoutControlItem2 // layoutControlItem2.Control = btnCancel; - layoutControlItem2.Location = new Point(618, 382); + layoutControlItem2.Location = new Point(763, 382); layoutControlItem2.Name = "layoutControlItem2"; - layoutControlItem2.Size = new Size(90, 26); + layoutControlItem2.Size = new Size(111, 26); layoutControlItem2.TextSize = new Size(0, 0); layoutControlItem2.TextVisible = false; // // layoutControlItem1 // layoutControlItem1.Control = BtnOk; - layoutControlItem1.Location = new Point(528, 382); + layoutControlItem1.Location = new Point(652, 382); layoutControlItem1.Name = "layoutControlItem1"; - layoutControlItem1.Size = new Size(90, 26); + layoutControlItem1.Size = new Size(111, 26); layoutControlItem1.TextSize = new Size(0, 0); layoutControlItem1.TextVisible = false; // @@ -241,15 +211,15 @@ emptySpaceItem2.AllowHotTrack = false; emptySpaceItem2.Location = new Point(0, 382); emptySpaceItem2.Name = "emptySpaceItem2"; - emptySpaceItem2.Size = new Size(528, 26); + emptySpaceItem2.Size = new Size(652, 26); emptySpaceItem2.TextSize = new Size(0, 0); // // layoutControlItem3 // - layoutControlItem3.Control = gridControl1; + layoutControlItem3.Control = treeList1; layoutControlItem3.Location = new Point(0, 0); layoutControlItem3.Name = "layoutControlItem3"; - layoutControlItem3.Size = new Size(708, 382); + layoutControlItem3.Size = new Size(874, 382); layoutControlItem3.TextSize = new Size(0, 0); layoutControlItem3.TextVisible = false; // @@ -263,20 +233,17 @@ // // SetSysPropForCatalogDlg // - AutoScaleDimensions = new SizeF(7F, 17F); + AutoScaleDimensions = new SizeF(7F, 14F); AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(708, 408); + ClientSize = new Size(874, 408); Controls.Add(layoutControl1); - Margin = new Padding(3, 4, 3, 4); Name = "SetSysPropForCatalogDlg"; StartPosition = FormStartPosition.CenterScreen; ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); layoutControl1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)gridControl1).EndInit(); - ((System.ComponentModel.ISupportInitialize)sysCatalogPropViewModelBindingSource).EndInit(); - ((System.ComponentModel.ISupportInitialize)gridView1).EndInit(); + ((System.ComponentModel.ISupportInitialize)treeList1).EndInit(); ((System.ComponentModel.ISupportInitialize)repositoryItemCheckedComboBoxEdit1).EndInit(); - ((System.ComponentModel.ISupportInitialize)repositoryItemButtonEdit1).EndInit(); + ((System.ComponentModel.ISupportInitialize)sysCatalogPropViewModelBindingSource).EndInit(); ((System.ComponentModel.ISupportInitialize)Root).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem2).EndInit(); ((System.ComponentModel.ISupportInitialize)layoutControlItem1).EndInit(); @@ -295,18 +262,14 @@ private DevExpress.XtraLayout.LayoutControlItem layoutControlItem2; private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1; private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2; - private DevExpress.XtraGrid.GridControl gridControl1; - private DevExpress.XtraGrid.Views.Grid.GridView gridView1; - private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; private BindingSource sysCatalogPropViewModelBindingSource; - private DevExpress.XtraGrid.Columns.GridColumn colGroupName; - private DevExpress.XtraGrid.Columns.GridColumn colName; - private DevExpress.XtraGrid.Columns.GridColumn colIsHave; - private DevExpress.XtraGrid.Columns.GridColumn colIsNull; - private DevExpress.XtraGrid.Columns.GridColumn colUnitName; - private DevExpress.XtraGrid.Columns.GridColumn colDefaultValue; - private DevExpress.XtraGrid.Columns.GridColumn colPropChoice; + private DevExpress.XtraTreeList.TreeList treeList1; + private DevExpress.XtraTreeList.Columns.TreeListColumn colName; + private DevExpress.XtraTreeList.Columns.TreeListColumn colUnitName; + private DevExpress.XtraTreeList.Columns.TreeListColumn colIsNull; + private DevExpress.XtraTreeList.Columns.TreeListColumn colDefaultValue; + private DevExpress.XtraTreeList.Columns.TreeListColumn colPropChoice; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; private DevExpress.XtraEditors.Repository.RepositoryItemCheckedComboBoxEdit repositoryItemCheckedComboBoxEdit1; - private DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit repositoryItemButtonEdit1; } } -- Gitblit v1.9.3