public void BindRbl() { #region 绑定用户角色 Users user = UserManager.GetUserById(Convert.ToInt32(ViewState["UserId"])); DataTable dtuserrole = UserRoleManager.GetAllUserRoles(); GridViewHelp.BindRBL(dtuserrole, rbtnlistuserrole, "Name", "Id"); foreach (ListItem lt in rbtnlistuserrole.Items) { if (lt.Text == user.UserRoles.Name) { lt.Selected = true; } } #endregion #region 绑定用户状态 DataTable dtuserstate = UserStateManager.GetAllUserState(); GridViewHelp.BindRBL(dtuserstate, rbtnlistuserstate, "Name", "Id"); foreach (ListItem lt in rbtnlistuserstate.Items) { if (lt.Text == user.UserStates.Name) { lt.Selected = true; } } #endregion }
public void BindDDL() { #region 绑定用户角色 DataTable dtuserrole = UserRoleManager.GetAllUserRoles(); GridViewHelp.BindDDL(dtuserrole, dluserrole, "Name", "Id"); #endregion }
public void BindDDL() { #region 绑定图书分类 DataTable dtbookcategory = CategoriesManager.GetDataTableByCategories(); GridViewHelp.BindDDL(dtbookcategory, ddlbooksort, "Name", "Id"); GridViewHelp.BindDDL(dtbookcategory, ddlnewcategory, "Name", "Id"); #endregion }
public void BindDDL() { #region 绑定图书分类和出版社 DataTable dt = CategoriesManager.GetDataTableByCategories(); GridViewHelp.BindDDL(dt, ddlcategory, "Name", "Id"); DataTable dt2 = PublisherManager.GetDataTableByCategories(); GridViewHelp.BindDDL(dt2, ddlpublisher, "Name", "Id"); #endregion }
protected void btnresever_Click(object sender, EventArgs e) { GridViewHelp.InsteadCheck(grvuserlist, "cbok"); }
protected void btnall_Click(object sender, EventArgs e) { GridViewHelp.ALlCheck(grvuserlist, "cbok"); }