private void BindRoleList() { SysRoleInfoBus bus = new SysRoleInfoBus(); string whereString = "IsDel=0 and IsEnabled=1"; DataTable dt = bus.Query(whereString, "CreateDate DESC"); this.list.DataSource = dt; this.list.DataBind(); }
/// <summary> /// 显示角色信息 /// </summary> private void ShowRoleAuth() { this.TargetTypeName.Text = "角色"; SysRoleInfoBus bus = new SysRoleInfoBus(); var model = bus.QueryModel("Id=" + this.TargetId.Value); if (model != null) { this.TargetName.Text = model.RoleName; this.TargetMemo.Text = model.Comment; } }