private void RptBind(string _strWhere, string _orderby) { int aid = MyCommFun.RequestInt("id"); _strWhere = "actid=" + aid + " " + _strWhere; this.page = MXRequest.GetQueryInt("page", 1); txtKeywords.Text = this.keywords; DataSet ds = ubll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount); this.rptList.DataSource = ds; this.rptList.DataBind(); //绑定页码 txtPageNum.Text = this.pageSize.ToString(); string pageUrl = Utils.CombUrlTxt("zjdAwardUser.aspx", "id={0}&keywords={1}&page={2}", MyCommFun.RequestInt("id").ToString(), this.keywords, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }
/// <summary> /// 最新中奖手机号 /// </summary> public void zjtel(int aid) { BLL.wx_zjdAwardUser zjbll = new BLL.wx_zjdAwardUser(); DataSet dzj = zjbll.GetList(aid); if (dzj.Tables[0].Rows.Count > 0) { for (int i = 0; i < dzj.Tables[0].Rows.Count; i++)// { zhongjtel += "<tr><td >" + dzj.Tables[0].Rows[i]["createDate"] + "</td><td >"; if (dzj.Tables[0].Rows[i]["uTel"].ToString() != "" && dzj.Tables[0].Rows[i]["uTel"].ToString().Length == 11) { zhongjtel += dzj.Tables[0].Rows[i]["uTel"].ToString().Substring(0, 4) + " ****" + dzj.Tables[0].Rows[i]["uTel"].ToString().Substring(8, 3); } else { zhongjtel += " ****"; } zhongjtel += " </td><td>砸中" + dzj.Tables[0].Rows[i]["jxName"] + "</td></tr>"; } } }