Exemplo n.º 1
0
        private void GetId()
        {
            #region Set thuoc tinh cho block_baseimage

            block_baseimage.ImagePath    = ConfigurationManager.AppSettings["SliderUpload"];
            block_baseimage.MinWidth     = ConfigurationManager.AppSettings["minwidthSlider"];
            block_baseimage.MinHeigh     = ConfigurationManager.AppSettings["minheightSlider"];
            block_baseimage.MaxWidth     = ConfigurationManager.AppSettings["maxwidthSlider"];
            block_baseimage.MaxHeight    = ConfigurationManager.AppSettings["maxheightSlider"];
            block_baseimage.MaxWidthBox  = ConfigurationManager.AppSettings["minwidthboxSlider"];
            block_baseimage.MaxHeightBox = ConfigurationManager.AppSettings["minheightboxSlider"];

            HtmlControl divImageFont = block_baseimage.FindControl("divImageFont") as HtmlControl;
            divImageFont.Style.Add("display", "none");
            HtmlControl divImage = block_baseimage.FindControl("divImage") as HtmlControl;
            divImage.Style.Add("display", "none");

            #endregion

            //get ID param
            pcBll      = new BannerBLL();
            genericBLL = new Generic <PNK_Banner>();
            xmlBll     = new XMLConfigBLL();
            string strID = Utils.GetParameter("cid", string.Empty);
            this.productcategoryId = strID == string.Empty ? int.MinValue : DBConvert.ParseInt(strID);
            this.template_path     = WebUtils.GetWebPath();
        }
Exemplo n.º 2
0
        public void BuscarBanners()
        {
            BannerBLL bannerBLL = new BannerBLL();

            AdRotator1.DataSource = bannerBLL.GetAll();
            AdRotator1.DataBind();
        }
Exemplo n.º 3
0
        public void BuscarBanners()
        {
            BannerBLL bannerBLL = new BannerBLL();

            AdRotator1.DataSource = bannerBLL.getAll();
            AdRotator1.DataBind();
        }
Exemplo n.º 4
0
        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();
            }
        }
Exemplo n.º 5
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);
        }
        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();
            //}
        }