public void PopulateGroupList(ref DropDownList dropDownList) { dropDownList.Items.Clear(); var groupList = GroupDao.GetGroupList(); dropDownList.Items.Add(new ListItem("All", "0")); foreach (var g in groupList) { dropDownList.Items.Add(new ListItem(g.GroupName, g.IdGroup)); } }
/// <summary> /// 获取集团分页列表 /// </summary> /// <param name="criteria">查询条件</param> /// <returns></returns> public PageInfo <GroupApiConfigModel> GetGroupList(GroupParaModel criteria) { PageInfo <GroupApiConfigModel> pageinfo = _dao.GetGroupList <GroupApiConfigModel>(criteria); return(pageinfo); }