コード例 #1
0
ファイル: home.ascx.cs プロジェクト: cong1389/Foody
        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();
            }
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
        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();
            //}
        }