private void TreeBind() { BLL.online_service_group bll = new BLL.online_service_group(); DataSet ds = bll.GetList(0, "", "sort_id asc,id desc"); this.ddlGroupId.Items.Clear(); this.ddlGroupId.Items.Add(new ListItem("请选择分组...", "")); foreach (DataRow dr in ds.Tables[0].Rows) { this.ddlGroupId.Items.Add(new ListItem(dr["title"].ToString().Trim(), dr["id"].ToString())); } }
private void TreeBind() { BLL.online_service_group bll = new BLL.online_service_group(); DataTable dt = bll.GetList(0, "is_lock=0", "sort_id asc,id desc").Tables[0]; this.ddlGroupId.Items.Clear(); this.ddlGroupId.Items.Add(new ListItem("所有分组", "")); foreach (DataRow dr in dt.Rows) { this.ddlGroupId.Items.Add(new ListItem(dr["title"].ToString(), dr["id"].ToString())); } }
private void RptBind(string _strWhere, string _orderby) { BLL.online_service_group bll = new BLL.online_service_group(); this.rptList.DataSource = bll.GetList(0, _strWhere, _orderby); this.rptList.DataBind(); }
private void TreeBind() { BLL.online_service_group bll = new BLL.online_service_group(); DataTable dt = bll.GetList(0, "is_lock=0", "sort_id asc,id desc").Tables[0]; this.ddlGroupId.Items.Clear(); this.ddlGroupId.Items.Add(new ListItem("所有分组", "")); foreach (DataRow dr in dt.Rows) { this.ddlGroupId.Items.Add(new ListItem(dr["title"].ToString(), dr["id"].ToString())); } }
private void TreeBind() { BLL.online_service_group bll = new BLL.online_service_group(); DataSet ds = bll.GetList(0, "", "sort_id asc,id desc"); this.ddlGroupId.Items.Clear(); this.ddlGroupId.Items.Add(new ListItem("请选择分组...", "")); foreach (DataRow dr in ds.Tables[0].Rows) { this.ddlGroupId.Items.Add(new ListItem(dr["title"].ToString().Trim(), dr["id"].ToString())); } }
private void RptBind(string _strWhere, string _orderby) { BLL.online_service_group bll = new BLL.online_service_group(); this.rptList.DataSource = bll.GetList(0, _strWhere, _orderby); this.rptList.DataBind(); }