From a9e7dd0920d8d57dc5e3831a8a01a4b81457fb1c Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期四, 03 四月 2025 10:26:10 +0800 Subject: [PATCH] 字典 --- DevApp/Gs.DevApp/XtraForm1.Designer.cs | 111 +++++++++++++++++++++++++++++++++++-------------------- 1 files changed, 71 insertions(+), 40 deletions(-) diff --git a/DevApp/Gs.DevApp/XtraForm1.Designer.cs b/DevApp/Gs.DevApp/XtraForm1.Designer.cs index a8e7467..b498e3d 100644 --- a/DevApp/Gs.DevApp/XtraForm1.Designer.cs +++ b/DevApp/Gs.DevApp/XtraForm1.Designer.cs @@ -28,14 +28,19 @@ /// </summary> private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); this.tlMenu = new DevExpress.XtraTreeList.TreeList(); this.tlcModuleID = new DevExpress.XtraTreeList.Columns.TreeListColumn(); - this.tlcMenuName = new DevExpress.XtraTreeList.Columns.TreeListColumn(); this.tlcMenuCaption = new DevExpress.XtraTreeList.Columns.TreeListColumn(); + this.tlcMenuName = new DevExpress.XtraTreeList.Columns.TreeListColumn(); this.tlcActions = new DevExpress.XtraTreeList.Columns.TreeListColumn(); - this.tlcParentMenuName = new DevExpress.XtraTreeList.Columns.TreeListColumn(); - this.tlcMenuType = new DevExpress.XtraTreeList.Columns.TreeListColumn(); + this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); + this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem(); ((System.ComponentModel.ISupportInitialize)(this.tlMenu)).BeginInit(); + this.contextMenuStrip1.SuspendLayout(); this.SuspendLayout(); // // tlMenu @@ -43,23 +48,28 @@ this.tlMenu.Appearance.Row.Options.UseFont = true; this.tlMenu.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { this.tlcModuleID, - this.tlcMenuName, this.tlcMenuCaption, - this.tlcActions, - this.tlcParentMenuName, - this.tlcMenuType}); + this.tlcMenuName, + this.tlcActions}); this.tlMenu.Cursor = System.Windows.Forms.Cursors.Default; this.tlMenu.Dock = System.Windows.Forms.DockStyle.Fill; this.tlMenu.Location = new System.Drawing.Point(0, 0); this.tlMenu.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.tlMenu.MinWidth = 23; this.tlMenu.Name = "tlMenu"; + this.tlMenu.OptionsMenu.EnableColumnMenu = false; + this.tlMenu.OptionsMenu.EnableFooterMenu = false; + this.tlMenu.OptionsMenu.EnableNodeMenu = false; + this.tlMenu.OptionsMenu.ShowAddNodeItems = DevExpress.Utils.DefaultBoolean.False; + this.tlMenu.OptionsMenu.ShowAutoFilterRowItem = false; + this.tlMenu.OptionsMenu.ShowExpandCollapseItems = false; this.tlMenu.OptionsView.CheckBoxStyle = DevExpress.XtraTreeList.DefaultNodeCheckBoxStyle.Check; this.tlMenu.OptionsView.RootCheckBoxStyle = DevExpress.XtraTreeList.NodeCheckBoxStyle.None; this.tlMenu.OptionsView.TreeLineStyle = DevExpress.XtraTreeList.LineStyle.Solid; this.tlMenu.Size = new System.Drawing.Size(887, 659); this.tlMenu.TabIndex = 4; this.tlMenu.TreeLevelWidth = 21; + this.tlMenu.MouseDown += new System.Windows.Forms.MouseEventHandler(this.tlMenu_MouseDown); // // tlcModuleID // @@ -71,55 +81,72 @@ this.tlcModuleID.VisibleIndex = 0; this.tlcModuleID.Width = 103; // - // tlcMenuName - // - this.tlcMenuName.Caption = "鑿滃崟鍚嶇О"; - this.tlcMenuName.FieldName = "name"; - this.tlcMenuName.MinWidth = 38; - this.tlcMenuName.Name = "tlcMenuName"; - this.tlcMenuName.Visible = true; - this.tlcMenuName.VisibleIndex = 1; - this.tlcMenuName.Width = 215; - // // tlcMenuCaption // - this.tlcMenuCaption.Caption = "鑿滃崟璺緞"; - this.tlcMenuCaption.FieldName = "formPath"; + this.tlcMenuCaption.Caption = "缂栧彿"; + this.tlcMenuCaption.FieldName = "typeNo"; this.tlcMenuCaption.MinWidth = 23; this.tlcMenuCaption.Name = "tlcMenuCaption"; this.tlcMenuCaption.Visible = true; - this.tlcMenuCaption.VisibleIndex = 2; + this.tlcMenuCaption.VisibleIndex = 1; this.tlcMenuCaption.Width = 139; + // + // tlcMenuName + // + this.tlcMenuName.Caption = "鎻忚堪"; + this.tlcMenuName.FieldName = "typeMemo"; + this.tlcMenuName.MinWidth = 38; + this.tlcMenuName.Name = "tlcMenuName"; + this.tlcMenuName.Visible = true; + this.tlcMenuName.VisibleIndex = 2; + this.tlcMenuName.Width = 215; // // tlcActions // - this.tlcActions.Caption = "鑿滃崟绫诲瀷"; - this.tlcActions.FieldName = "category"; + this.tlcActions.Caption = "绫诲瀷"; + this.tlcActions.FieldName = "typeCategory"; this.tlcActions.MinWidth = 23; this.tlcActions.Name = "tlcActions"; this.tlcActions.Visible = true; this.tlcActions.VisibleIndex = 3; this.tlcActions.Width = 50; // - // tlcParentMenuName + // contextMenuStrip1 // - this.tlcParentMenuName.Caption = "鐘舵��"; - this.tlcParentMenuName.FieldName = "isStatus"; - this.tlcParentMenuName.MinWidth = 23; - this.tlcParentMenuName.Name = "tlcParentMenuName"; - this.tlcParentMenuName.Visible = true; - this.tlcParentMenuName.VisibleIndex = 4; - this.tlcParentMenuName.Width = 64; + this.contextMenuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20); + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolStripMenuItem1, + this.toolStripMenuItem2, + this.toolStripMenuItem3, + this.toolStripMenuItem4}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(228, 100); // - // tlcMenuType + // toolStripMenuItem1 // - this.tlcMenuType.Caption = "鎺掑簭鍙�"; - this.tlcMenuType.FieldName = "idx"; - this.tlcMenuType.MinWidth = 23; - this.tlcMenuType.Name = "tlcMenuType"; - this.tlcMenuType.Visible = true; - this.tlcMenuType.VisibleIndex = 5; - this.tlcMenuType.Width = 50; + this.toolStripMenuItem1.Name = "toolStripMenuItem1"; + this.toolStripMenuItem1.Size = new System.Drawing.Size(227, 24); + this.toolStripMenuItem1.Text = "toolStripMenuItem1"; + this.toolStripMenuItem1.Click += new System.EventHandler(this.toolStripMenuItem1_Click); + // + // toolStripMenuItem2 + // + this.toolStripMenuItem2.Name = "toolStripMenuItem2"; + this.toolStripMenuItem2.Size = new System.Drawing.Size(227, 24); + this.toolStripMenuItem2.Text = "toolStripMenuItem2"; + this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click); + // + // toolStripMenuItem3 + // + this.toolStripMenuItem3.Name = "toolStripMenuItem3"; + this.toolStripMenuItem3.Size = new System.Drawing.Size(227, 24); + this.toolStripMenuItem3.Text = "toolStripMenuItem3"; + // + // toolStripMenuItem4 + // + this.toolStripMenuItem4.Name = "toolStripMenuItem4"; + this.toolStripMenuItem4.Size = new System.Drawing.Size(227, 24); + this.toolStripMenuItem4.Text = "toolStripMenuItem4"; // // XtraForm1 // @@ -130,6 +157,7 @@ this.Name = "XtraForm1"; this.Text = "XtraForm1"; ((System.ComponentModel.ISupportInitialize)(this.tlMenu)).EndInit(); + this.contextMenuStrip1.ResumeLayout(false); this.ResumeLayout(false); } @@ -141,7 +169,10 @@ private DevExpress.XtraTreeList.Columns.TreeListColumn tlcMenuName; private DevExpress.XtraTreeList.Columns.TreeListColumn tlcMenuCaption; private DevExpress.XtraTreeList.Columns.TreeListColumn tlcActions; - private DevExpress.XtraTreeList.Columns.TreeListColumn tlcParentMenuName; - private DevExpress.XtraTreeList.Columns.TreeListColumn tlcMenuType; + private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem3; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem4; } } \ No newline at end of file -- Gitblit v1.9.3