void BindRoleList() { var qm = Query.Build(new { SortFields = "RoleID desc" }); rprole.DataSource = br.GetRoleList(qm); rprole.DataBind(); }
void BindRoleList() { lbunseleted.Items.Clear(); foreach (SysRole sr in br.GetRoleList(Query.Build(new { SortFields = "RoleID" }))) { lbunseleted.Items.Add(new ListItem(sr.RoleName, sr.RoleID.ToString())); } }
void BindRole() { IList <SysRole> lso = br.GetRoleList(Query.Build(new { SortFields = "RoleID" })); dpUserRole.Items.Clear(); dpUserRole.Items.Add(new ListItem("全部", "全部")); foreach (SysRole sr in lso) { dpUserRole.Items.Add(new ListItem(sr.RoleName, sr.RoleID.ToString())); } }