From 0c249ab28b9eddccb2a7c0e413086931cb2346f1 Mon Sep 17 00:00:00 2001
From: lu <123456>
Date: 星期四, 11 九月 2025 10:02:17 +0800
Subject: [PATCH] print
---
DevApp/Gs.DevApp/DevFrm/User/RoleSelectAction.cs | 37 +++++++++++++++++++++++++++++++++++--
1 files changed, 35 insertions(+), 2 deletions(-)
diff --git a/DevApp/Gs.DevApp/DevFrm/User/RoleSelectAction.cs b/DevApp/Gs.DevApp/DevFrm/User/RoleSelectAction.cs
index 9ec9290..c757f27 100644
--- a/DevApp/Gs.DevApp/DevFrm/User/RoleSelectAction.cs
+++ b/DevApp/Gs.DevApp/DevFrm/User/RoleSelectAction.cs
@@ -11,14 +11,25 @@
{
private StringBuilder _actionLst = new StringBuilder();
private readonly string _rightGuid;
- public RoleSelectAction(string rightGuid)
+
+
+ /// <summary>
+ ///
+ /// </summary>
+ /// <param name="rightGuid">涓汉guid锛屾垨瑙掕壊guid</param>
+ /// <param name="formTxt"></param>
+ public RoleSelectAction(string rightGuid,string formTxt)
{
InitializeComponent();
+ this.Text = formTxt;
trv.AfterCheck += Trv_AfterCheck;
_rightGuid = rightGuid;
getTree(_rightGuid);
}
-
+ /// <summary>
+ /// 璇诲彇鏉冮檺鍒楄〃
+ /// </summary>
+ /// <param name="roleGuid"></param>
private void getTree(string roleGuid)
{
trv.Nodes.Clear();
@@ -106,6 +117,11 @@
if (node.Nodes.Count > 0) TraverseTreeViewNodes(node.Nodes);
}
}
+ /// <summary>
+ /// 淇濆瓨瑙掕壊鐨勬潈闄�
+ /// </summary>
+ /// <param name="sender"></param>
+ /// <param name="e"></param>
private void btnSave_Click(object sender, EventArgs e)
{
string rowGuid = _rightGuid;
@@ -138,5 +154,22 @@
MsgHelper.Warning("鎻愮ず锛�" + ex.Message);
}
}
+
+ private void btnOpen_Click(object sender, EventArgs e)
+ {
+ if (btnOpen.Text == "鍏ㄩ儴灞曞紑")
+ {
+ trv.ExpandAll();
+ btnOpen.Text = "鍏ㄩ儴鏀舵嫝";
+ return;
+ }
+
+ if (btnOpen.Text == "鍏ㄩ儴鏀舵嫝")
+ {
+ trv.CollapseAll();
+ btnOpen.Text = "鍏ㄩ儴灞曞紑";
+ return;
+ }
+ }
}
}
\ No newline at end of file
--
Gitblit v1.9.3