From 0dcff1805b3143dd1c2a25d604afdd724b452803 Mon Sep 17 00:00:00 2001 From: duheng <2286773002@qq.com> Date: 星期二, 18 三月 2025 13:13:54 +0800 Subject: [PATCH] 修复引用报错 --- WinFrmUI/PBS.WinFrmUI/02-facility/FacilityMgrPage.Designer.cs | 98 +++++++++++++++++++++++++++++++++++++------------ 1 files changed, 74 insertions(+), 24 deletions(-) diff --git a/WinFrmUI/PBS.WinFrmUI/02-facility/FacilityMgrPage.Designer.cs b/WinFrmUI/PBS.WinFrmUI/02-facility/FacilityMgrPage.Designer.cs index 4acf693..59cd09d 100644 --- a/WinFrmUI/PBS.WinFrmUI/02-facility/FacilityMgrPage.Designer.cs +++ b/WinFrmUI/PBS.WinFrmUI/02-facility/FacilityMgrPage.Designer.cs @@ -54,6 +54,10 @@ colUseStatus = new DevExpress.XtraGrid.Columns.GridColumn(); colSortCode = new DevExpress.XtraGrid.Columns.GridColumn(); colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); + gridColumn1 = new DevExpress.XtraGrid.Columns.GridColumn(); + repositoryItemTreeListLookUpEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemTreeListLookUpEdit(); + repositoryItemTreeListLookUpEdit1TreeList = new DevExpress.XtraTreeList.TreeList(); + treeListColumn1 = new DevExpress.XtraTreeList.Columns.TreeListColumn(); ribbonControl1 = new DevExpress.XtraBars.Ribbon.RibbonControl(); barBtnEdit = new DevExpress.XtraBars.BarButtonItem(); barBtnRefresh = new DevExpress.XtraBars.BarButtonItem(); @@ -78,6 +82,8 @@ ((ISupportInitialize)gridControl1).BeginInit(); ((ISupportInitialize)facilityViewModelBindingSource).BeginInit(); ((ISupportInitialize)gridView1).BeginInit(); + ((ISupportInitialize)repositoryItemTreeListLookUpEdit1).BeginInit(); + ((ISupportInitialize)repositoryItemTreeListLookUpEdit1TreeList).BeginInit(); ((ISupportInitialize)ribbonControl1).BeginInit(); ((ISupportInitialize)behaviorManager1).BeginInit(); SuspendLayout(); @@ -91,6 +97,7 @@ gridControl1.MainView = gridView1; gridControl1.Margin = new Padding(3, 4, 3, 4); gridControl1.Name = "gridControl1"; + gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repositoryItemTreeListLookUpEdit1 }); gridControl1.Size = new Size(935, 748); gridControl1.TabIndex = 18; gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); @@ -102,7 +109,7 @@ // gridView1 // behaviorManager1.SetBehaviors(gridView1, new DevExpress.Utils.Behaviors.Behavior[] { DevExpress.Utils.DragDrop.DragDropBehavior.Create(typeof(DevExpress.XtraGrid.Extensions.ColumnViewDragDropSource), true, true, true, true, dragDropEvents1) }); - gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colWaterSupply, colSupplyMode, colFloor, colFloorHeight, colHouseholds, colMaxWaterDemand, colConstantPressure, colTerminalPressure, colParas, colTagName, colUseStatus, colSortCode, colDescription }); + gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colWaterSupply, colSupplyMode, colFloor, colFloorHeight, colHouseholds, colMaxWaterDemand, colConstantPressure, colTerminalPressure, colParas, colTagName, colUseStatus, colSortCode, colDescription, gridColumn1 }); gridView1.DetailHeight = 450; gridView1.GridControl = gridControl1; gridView1.Name = "gridView1"; @@ -117,7 +124,7 @@ colName.Name = "colName"; colName.Visible = true; colName.VisibleIndex = 0; - colName.Width = 94; + colName.Width = 108; // // colWaterSupply // @@ -125,8 +132,8 @@ colWaterSupply.MinWidth = 25; colWaterSupply.Name = "colWaterSupply"; colWaterSupply.Visible = true; - colWaterSupply.VisibleIndex = 1; - colWaterSupply.Width = 94; + colWaterSupply.VisibleIndex = 2; + colWaterSupply.Width = 67; // // colSupplyMode // @@ -134,8 +141,8 @@ colSupplyMode.MinWidth = 25; colSupplyMode.Name = "colSupplyMode"; colSupplyMode.Visible = true; - colSupplyMode.VisibleIndex = 2; - colSupplyMode.Width = 94; + colSupplyMode.VisibleIndex = 3; + colSupplyMode.Width = 67; // // colFloor // @@ -143,8 +150,8 @@ colFloor.MinWidth = 25; colFloor.Name = "colFloor"; colFloor.Visible = true; - colFloor.VisibleIndex = 3; - colFloor.Width = 94; + colFloor.VisibleIndex = 4; + colFloor.Width = 67; // // colFloorHeight // @@ -152,8 +159,8 @@ colFloorHeight.MinWidth = 25; colFloorHeight.Name = "colFloorHeight"; colFloorHeight.Visible = true; - colFloorHeight.VisibleIndex = 4; - colFloorHeight.Width = 94; + colFloorHeight.VisibleIndex = 5; + colFloorHeight.Width = 67; // // colHouseholds // @@ -161,8 +168,8 @@ colHouseholds.MinWidth = 25; colHouseholds.Name = "colHouseholds"; colHouseholds.Visible = true; - colHouseholds.VisibleIndex = 5; - colHouseholds.Width = 94; + colHouseholds.VisibleIndex = 6; + colHouseholds.Width = 67; // // colMaxWaterDemand // @@ -170,8 +177,8 @@ colMaxWaterDemand.MinWidth = 25; colMaxWaterDemand.Name = "colMaxWaterDemand"; colMaxWaterDemand.Visible = true; - colMaxWaterDemand.VisibleIndex = 6; - colMaxWaterDemand.Width = 94; + colMaxWaterDemand.VisibleIndex = 7; + colMaxWaterDemand.Width = 67; // // colConstantPressure // @@ -179,8 +186,8 @@ colConstantPressure.MinWidth = 25; colConstantPressure.Name = "colConstantPressure"; colConstantPressure.Visible = true; - colConstantPressure.VisibleIndex = 7; - colConstantPressure.Width = 94; + colConstantPressure.VisibleIndex = 8; + colConstantPressure.Width = 67; // // colTerminalPressure // @@ -188,8 +195,8 @@ colTerminalPressure.MinWidth = 25; colTerminalPressure.Name = "colTerminalPressure"; colTerminalPressure.Visible = true; - colTerminalPressure.VisibleIndex = 8; - colTerminalPressure.Width = 94; + colTerminalPressure.VisibleIndex = 9; + colTerminalPressure.Width = 67; // // colParas // @@ -204,8 +211,8 @@ colTagName.MinWidth = 25; colTagName.Name = "colTagName"; colTagName.Visible = true; - colTagName.VisibleIndex = 9; - colTagName.Width = 94; + colTagName.VisibleIndex = 10; + colTagName.Width = 67; // // colUseStatus // @@ -213,8 +220,8 @@ colUseStatus.MinWidth = 25; colUseStatus.Name = "colUseStatus"; colUseStatus.Visible = true; - colUseStatus.VisibleIndex = 10; - colUseStatus.Width = 94; + colUseStatus.VisibleIndex = 11; + colUseStatus.Width = 67; // // colSortCode // @@ -229,8 +236,45 @@ colDescription.MinWidth = 25; colDescription.Name = "colDescription"; colDescription.Visible = true; - colDescription.VisibleIndex = 11; - colDescription.Width = 94; + colDescription.VisibleIndex = 12; + colDescription.Width = 82; + // + // gridColumn1 + // + gridColumn1.Caption = "鎵�灞炲満鎵�"; + gridColumn1.ColumnEdit = repositoryItemTreeListLookUpEdit1; + gridColumn1.FieldName = "PlaceID"; + gridColumn1.MinWidth = 25; + gridColumn1.Name = "gridColumn1"; + gridColumn1.Visible = true; + gridColumn1.VisibleIndex = 1; + gridColumn1.Width = 67; + // + // repositoryItemTreeListLookUpEdit1 + // + repositoryItemTreeListLookUpEdit1.AutoHeight = false; + repositoryItemTreeListLookUpEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); + repositoryItemTreeListLookUpEdit1.DisplayMember = "Name"; + repositoryItemTreeListLookUpEdit1.Name = "repositoryItemTreeListLookUpEdit1"; + repositoryItemTreeListLookUpEdit1.TreeList = repositoryItemTreeListLookUpEdit1TreeList; + repositoryItemTreeListLookUpEdit1.ValueMember = "ID"; + // + // repositoryItemTreeListLookUpEdit1TreeList + // + repositoryItemTreeListLookUpEdit1TreeList.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { treeListColumn1 }); + repositoryItemTreeListLookUpEdit1TreeList.Location = new Point(0, 0); + repositoryItemTreeListLookUpEdit1TreeList.Name = "repositoryItemTreeListLookUpEdit1TreeList"; + repositoryItemTreeListLookUpEdit1TreeList.OptionsView.ShowIndentAsRowStyle = true; + repositoryItemTreeListLookUpEdit1TreeList.Size = new Size(400, 200); + repositoryItemTreeListLookUpEdit1TreeList.TabIndex = 0; + // + // treeListColumn1 + // + treeListColumn1.Caption = "鍚嶇О"; + treeListColumn1.FieldName = "Name"; + treeListColumn1.Name = "treeListColumn1"; + treeListColumn1.Visible = true; + treeListColumn1.VisibleIndex = 0; // // ribbonControl1 // @@ -403,6 +447,8 @@ ((ISupportInitialize)gridControl1).EndInit(); ((ISupportInitialize)facilityViewModelBindingSource).EndInit(); ((ISupportInitialize)gridView1).EndInit(); + ((ISupportInitialize)repositoryItemTreeListLookUpEdit1).EndInit(); + ((ISupportInitialize)repositoryItemTreeListLookUpEdit1TreeList).EndInit(); ((ISupportInitialize)ribbonControl1).EndInit(); ((ISupportInitialize)behaviorManager1).EndInit(); ResumeLayout(false); @@ -448,5 +494,9 @@ private DevExpress.XtraGrid.Columns.GridColumn colSortCode; private DevExpress.XtraGrid.Columns.GridColumn colDescription; private DevExpress.XtraBars.BarButtonItem BtnAdd; + private DevExpress.XtraGrid.Columns.GridColumn gridColumn1; + private DevExpress.XtraEditors.Repository.RepositoryItemTreeListLookUpEdit repositoryItemTreeListLookUpEdit1; + private DevExpress.XtraTreeList.TreeList repositoryItemTreeListLookUpEdit1TreeList; + private DevExpress.XtraTreeList.Columns.TreeListColumn treeListColumn1; } } -- Gitblit v1.9.3