void getChexing(int id, int pid) { BLL.wx_wq_chexing cgBll = new BLL.wx_wq_chexing(); Model.wx_userweixin weixin = GetWeiXinCode(); DataTable dt = cgBll.GetList(" wid=" + weixin.id + " and xid=" + id + " and pid=" + pid).Tables[0]; this.ddlChexing.Items.Clear(); this.ddlChexing.Items.Add(new ListItem("请选择车型...", "")); foreach (DataRow dr in dt.Rows) { string Id = dr["id"].ToString(); string Title = dr["Name"].ToString().Trim(); this.ddlChexing.Items.Add(new ListItem(Title, Id)); } }
private void RptBind(string _strWhere, string _orderby) { Model.wx_userweixin weixin = GetWeiXinCode(); _strWhere = "wId=" + weixin.id + " " + _strWhere; this.page = MXRequest.GetQueryInt("page", 1); txtKeywords.Text = this.keywords; this.rptList.DataSource = bll.GetList(this.pageSize, page, _strWhere, _orderby, out totalCount); this.rptList.DataBind(); //绑定页码 txtPageNum.Text = this.pageSize.ToString(); string pageUrl = Utils.CombUrlTxt("chexingMgr.aspx", "keywords={0}&page={1}", this.keywords, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }