CyManager/UpdateRole.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace CyManager
{
public partial class UpdateRole : Form
{
Common.CRolesMenu crm = new Common.CRolesMenu();
Common.CRoles role = new Common.CRoles();
public UpdateRole()
{
InitializeComponent();
}
public UpdateRole(Common.CRoles role)
: this()
{
this.role = role;
}
DataSet ds;
DataSet dss;
List<int> li = new List<int>();
private void UpdatRole_Load(object sender, EventArgs e)
{
this.label4.Text = role.CrName1;
ds = new BLL.BLLUsersManages().BllMenuSearch();
foreach (DataRow row in ds.Tables[0].Rows)
{
TreeNode node = new TreeNode();
if (row["marentId"].ToString() == "0")
{
node.Text = row["mText"].ToString();
node.Tag = row["mId"].ToString();
getChildNode(node);
this.treeView1.Nodes.Add(node);
}
}
this.treeView1.ExpandAll();
dss = new BLL.BLLUsersManages().BllRolesMenusSeachByRid(role);
getCheck(this.treeView1.Nodes);
}
private void getChildNode(TreeNode node)
{
foreach (DataRow row in ds.Tables[0].Rows)
{
TreeNode n = new TreeNode();
if (row["marentId"].ToString() == node.Text)
{
n.Text = row["mText"].ToString();
n.Tag = row["mId"].ToString();
getChildNode(n);
node.Nodes.Add(n);
}
}
}
后面还有 84 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。