int YongHuID = 0;
int myop = 0;
int KaiGuan = 0;
DataTable dtPiPeiMoKuai = new DataTable();
BLL系统维护.frm_QuanXianSheZhi.frm_QuanXianSheZhiClient myfrm_QuanXianSheZhiClient = new BLL系统维护.frm_QuanXianSheZhi.frm_QuanXianSheZhiClient();
private void trv_YuanGong_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
{
KaiGuan = 0;
YongHuID = Convert.ToInt32(e.Node.Name);
try
{
dtPiPeiMoKuai = myfrm_QuanXianSheZhiClient.trv_YuanGong_NodeMouseClick_SelectQuanXian(YongHuID).Tables[0];
}
catch { }
trv_MoKuai.Nodes.Clear();
AddTree2(7, (TreeNode)null);
//trv_MoKuai.ExpandAll();
}
#region 循环递归提取数据(全部模块)
public void AddTree2(int ParentID, TreeNode pNode) // 递归,自己调用自己
{
DataTable dtTree = myfrm_QuanXianSheZhiC
C# 用户权限管理
最新推荐文章于 2024-07-08 16:56:16 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)