- 积分
- 1
- 在线时间
- 8 小时
- 主题
- 7
- 注册时间
- 2014-2-25
- 帖子
- 10
- 最后登录
- 2019-3-23
- 帖子
- 10
- 软币
- 127
- 在线时间
- 8 小时
- 注册时间
- 2014-2-25
|
private void CreatTreeList()
{
TreeListColumn tc1 = new TreeListColumn();
tc1.Caption = "权限ID";
tc1.VisibleIndex = 0;
TreeListColumn tc2 = new TreeListColumn();
tc2.Caption = "父权限";
tc2.VisibleIndex = 1;
TreeListColumn tc3 = new TreeListColumn();
tc3.Caption = "权限名称";
tc3.VisibleIndex = 2;
TreeListColumn tc4 = new TreeListColumn();
tc4.Caption = "权限描述";
tc4.VisibleIndex = 3;
this.treeList1.Columns.AddRange(new TreeListColumn[] { tc1, tc2, tc3, tc4, });
DataSet mydata = AuthorityInfo.GetAllTabel("Tb_PerRigth");
treeList1.Nodes.Clear();
DataTable table = mydata.Tables[0];
this.treeList1.DataSource = table;
this.treeList1.KeyFieldName = "tt_id";
this.treeList1.RefreshDataSource();
} [img]file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\617204565\QQ\WinTemp\RichOle\S9[PPWXA`KHJS_SO_Q%O}}4.jpg[/img]
|
|