private void BindSYsUser() { DAL.manager dalManager = new DAL.manager(); var table = dalManager.GetList(" role_id=4"); checkSysUser.DataSource = table; checkSysUser.DataTextField = "real_name"; checkSysUser.DataValueField = "id"; checkSysUser.DataBind(); checkSysUser.Items.Insert(0, new ListItem() { Text = "全vip可見", Value = "-1" }); }
/// <summary> /// 获得前几行数据 /// </summary> public DataSet GetList(int Top, string strWhere, string filedOrder) { return(dal.GetList(Top, strWhere, filedOrder)); }
/// <summary> /// 获得数据列表 /// </summary> public DataSet GetList(string strWhere) { return(dal.GetList(strWhere)); }