protected void initList() { Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member(); Eyousoft_yhq.Model.MSearchUser serchModel = new Eyousoft_yhq.Model.MSearchUser(); serchModel.ContactName = Utils.GetQueryStringValue("contactName"); serchModel.UserName = Utils.GetQueryStringValue("userName"); if (Utils.GetQueryStringValue("txtIsLvYouGuWen") == "1") { serchModel.IsLvYouGuWen = true; } if (Utils.GetQueryStringValue("txtIsLvYouGuWen") == "0") { serchModel.IsLvYouGuWen = false; } pageIndex = UtilsCommons.GetPagingIndex("Page"); var list = bll.GetList(pageSize, pageIndex, ref recordCount, serchModel, 0); if (list != null && list.Count > 0) { rpt_list.DataSource = list; rpt_list.DataBind(); BindPage(); litMsg.Visible = false; } else { rpt_list.Visible = false; } }
protected void initList() { string Code = string.Empty; var memeber = new Eyousoft_yhq.BLL.Member().GetModel(HuiYuanInfo.UserID); if (memeber == null || !memeber.IsAgent) return; Code = memeber.PromotionCode; if (string.IsNullOrEmpty(Code)) { litMsg.Visible = true; return; } Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member(); pageIndex = UtilsCommons.GetPagingIndex("Page"); var list = bll.GetList(pageSize, pageIndex, ref recordCount, new Eyousoft_yhq.Model.MSearchUser() { PromotionCode = Code }, 0); if (list != null && list.Count > 0) { rpt_list.DataSource = list; rpt_list.DataBind(); this.ExporPageInfoSelect1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?"; this.ExporPageInfoSelect1.intPageSize = pageSize; this.ExporPageInfoSelect1.CurrencyPage = pageIndex; this.ExporPageInfoSelect1.intRecordCount = recordCount; this.ExporPageInfoSelect1.UrlParams = Request.QueryString; litMsg.Visible = false; } else { rpt_list.Visible = false; } }
protected void initList(string Code) { if (string.IsNullOrEmpty(Code)) { litMsg.Visible = true; return; } Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member(); pageIndex = UtilsCommons.GetPagingIndex("Page"); var list = bll.GetList(pageSize, pageIndex, ref recordCount, new Eyousoft_yhq.Model.MSearchUser() { PromotionCode = Code }, 0); if (list != null && list.Count > 0) { rpt_list.DataSource = list; rpt_list.DataBind(); this.ExporPageInfoSelect1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?"; this.ExporPageInfoSelect1.intPageSize = pageSize; this.ExporPageInfoSelect1.CurrencyPage = pageIndex; this.ExporPageInfoSelect1.intRecordCount = recordCount; this.ExporPageInfoSelect1.UrlParams = Request.QueryString; litMsg.Visible = false; } else { rpt_list.Visible = false; } }