private void GetPartner() { BannerBLL bannerBLL = new BannerBLL(); IList <PNK_Banner> lst = bannerBLL.GetList(DBConvert.ParseInt(ConfigurationManager.AppSettings["partnerId"]), string.Empty, "1", 1, 100, out total); if (lst.Count > 0) { this.rptResult.DataSource = lst; this.rptResult.DataBind(); } }
/// <summary> /// GetList /// </summary> /// <param name="begin"></param> /// <param name="end"></param> /// <returns></returns> private int GetList(int position, string content, int begin, int end) { int total; pcBll = new BannerBLL(); IList <PNK_Banner> lst = pcBll.GetList(position, content, string.Empty, begin, end, out total); this.records = DBConvert.ParseString(lst.Count); this.pager.PageSize = 50; this.pager.ItemCount = total; this.rptResult.DataSource = lst; this.rptResult.DataBind(); return(total); }
private void GetManufacture() { BannerBLL bannerBLL = new BannerBLL(); IList <PNK_Banner> lst = bannerBLL.GetList(DBConvert.ParseInt(ConfigurationManager.AppSettings["partnerId"]), string.Empty, "1", 1, 100, out total); if (total > 0) { this.rptManufacture.DataSource = lst; this.rptManufacture.DataBind(); } //IList<PNK_Banner> lstPartner = bannerBLL.GetList(DBConvert.ParseInt(ConfigurationManager.AppSettings["partnerId"]), string.Empty, "1", 1, 100, out total); //if (total > 0) //{ // this.rptPartner.DataSource = lstPartner; // this.rptPartner.DataBind(); //} }