From a91c47d4ae8ad414e492a66f10eafce678892503 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期四, 09 一月 2025 11:43:37 +0800 Subject: [PATCH] 修复权限远程问题 --- WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/MenuMgrPage.Designer.cs | 81 ++++++++++++++++------------------------ 1 files changed, 33 insertions(+), 48 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/MenuMgrPage.Designer.cs b/WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/MenuMgrPage.Designer.cs index 2a99742..5596d58 100644 --- a/WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/MenuMgrPage.Designer.cs +++ b/WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/MenuMgrPage.Designer.cs @@ -44,16 +44,14 @@ ribbonPageGroup1 = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); ribPageGroupForMore = new DevExpress.XtraBars.Ribbon.RibbonPageGroup(); treeList1 = new DevExpress.XtraTreeList.TreeList(); - colType = new DevExpress.XtraTreeList.Columns.TreeListColumn(); colName = new DevExpress.XtraTreeList.Columns.TreeListColumn(); - colPermission = new DevExpress.XtraTreeList.Columns.TreeListColumn(); - colIsIframe = new DevExpress.XtraTreeList.Columns.TreeListColumn(); - colIsHide = new DevExpress.XtraTreeList.Columns.TreeListColumn(); - colWeight = new DevExpress.XtraTreeList.Columns.TreeListColumn(); colDescription = new DevExpress.XtraTreeList.Columns.TreeListColumn(); + colType = new DevExpress.XtraTreeList.Columns.TreeListColumn(); menuViewModelBindingSource = new BindingSource(components); behaviorManager1 = new DevExpress.Utils.Behaviors.BehaviorManager(components); dragDropEvents1 = new DevExpress.Utils.DragDrop.DragDropEvents(components); + colWeight = new DevExpress.XtraTreeList.Columns.TreeListColumn(); + ColPermission = new DevExpress.XtraTreeList.Columns.TreeListColumn(); ((System.ComponentModel.ISupportInitialize)svgImgC32).BeginInit(); ((System.ComponentModel.ISupportInitialize)ribbonControl1).BeginInit(); ((System.ComponentModel.ISupportInitialize)treeList1).BeginInit(); @@ -171,63 +169,37 @@ // treeList1 // behaviorManager1.SetBehaviors(treeList1, new DevExpress.Utils.Behaviors.Behavior[] { DevExpress.Utils.DragDrop.DragDropBehavior.Create(typeof(DevExpress.XtraTreeList.TreeListDragDropSource), true, true, true, false, dragDropEvents1) }); - treeList1.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { colType, colName, colPermission, colIsIframe, colIsHide, colWeight, colDescription }); + treeList1.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { colName, colDescription, colType, ColPermission }); treeList1.DataSource = menuViewModelBindingSource; treeList1.Dock = DockStyle.Fill; treeList1.Location = new Point(0, 101); treeList1.MenuManager = ribbonControl1; treeList1.Name = "treeList1"; + treeList1.OptionsBehavior.PopulateServiceColumns = true; treeList1.Size = new Size(932, 372); treeList1.TabIndex = 2; - // - // colType - // - colType.FieldName = "Type"; - colType.Name = "colType"; - colType.Visible = true; - colType.VisibleIndex = 0; // // colName // colName.FieldName = "Name"; colName.Name = "colName"; colName.Visible = true; - colName.VisibleIndex = 1; - // - // colPermission - // - colPermission.FieldName = "Permission"; - colPermission.Name = "colPermission"; - colPermission.Visible = true; - colPermission.VisibleIndex = 2; - // - // colIsIframe - // - colIsIframe.FieldName = "IsIframe"; - colIsIframe.Name = "colIsIframe"; - colIsIframe.Visible = true; - colIsIframe.VisibleIndex = 3; - // - // colIsHide - // - colIsHide.FieldName = "IsHide"; - colIsHide.Name = "colIsHide"; - colIsHide.Visible = true; - colIsHide.VisibleIndex = 4; - // - // colWeight - // - colWeight.FieldName = "Weight"; - colWeight.Name = "colWeight"; - colWeight.Visible = true; - colWeight.VisibleIndex = 5; + colName.VisibleIndex = 0; // // colDescription // colDescription.FieldName = "Description"; colDescription.Name = "colDescription"; colDescription.Visible = true; - colDescription.VisibleIndex = 6; + colDescription.VisibleIndex = 3; + // + // colType + // + colType.Caption = "绫诲瀷"; + colType.FieldName = "Type"; + colType.Name = "colType"; + colType.Visible = true; + colType.VisibleIndex = 1; // // menuViewModelBindingSource // @@ -236,6 +208,21 @@ // dragDropEvents1 // dragDropEvents1.DragDrop += dragDropEvents1_DragDrop; + // + // colWeight + // + colWeight.FieldName = "Weight"; + colWeight.Name = "colWeight"; + colWeight.Visible = true; + colWeight.VisibleIndex = 2; + // + // ColPermission + // + ColPermission.Caption = "鏉冮檺鏍囪瘑"; + ColPermission.FieldName = "Permission"; + ColPermission.Name = "ColPermission"; + ColPermission.Visible = true; + ColPermission.VisibleIndex = 2; // // MenuMgrPage // @@ -272,14 +259,12 @@ private DevExpress.XtraBars.Ribbon.RibbonPageGroup ribPageGroupForMore; private DevExpress.XtraTreeList.TreeList treeList1; private DevExpress.Utils.Behaviors.BehaviorManager behaviorManager1; - private DevExpress.XtraTreeList.Columns.TreeListColumn colType; private DevExpress.XtraTreeList.Columns.TreeListColumn colName; - private DevExpress.XtraTreeList.Columns.TreeListColumn colPermission; - private DevExpress.XtraTreeList.Columns.TreeListColumn colIsIframe; - private DevExpress.XtraTreeList.Columns.TreeListColumn colIsHide; - private DevExpress.XtraTreeList.Columns.TreeListColumn colWeight; private DevExpress.XtraTreeList.Columns.TreeListColumn colDescription; private BindingSource menuViewModelBindingSource; private DevExpress.Utils.DragDrop.DragDropEvents dragDropEvents1; + private DevExpress.XtraTreeList.Columns.TreeListColumn colType; + private DevExpress.XtraTreeList.Columns.TreeListColumn colWeight; + private DevExpress.XtraTreeList.Columns.TreeListColumn ColPermission; } } -- Gitblit v1.9.3