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 }