Пример #1
0
        protected void InitPageData()
        {
            IList <EyouSoft.Model.ShopStructure.HighShopNews> list = new List <EyouSoft.Model.ShopStructure.HighShopNews>();
            string keyword   = Utils.GetQueryStringValue("k");
            string CompanyId = Utils.GetQueryStringValue("cid").Length > 0 ? Utils.GetQueryStringValue("cid") : cMaster.CompanyId;

            pageIndex = Utils.GetInt(Request.QueryString["Page"], 1);

            ltrHeadLink.Text = string.Format("当前位置:<a href=\"{0}\">首页</a>-&gt;<strong>旅游动态</strong>", Utils.GenerateShopPageUrl2("/default", CompanyId));

            list = EyouSoft.BLL.ShopStructure.HighShopNews.CreateInstance().GetWebList(pageSize, pageIndex, ref recordCount, CompanyId, keyword);

            RpTripGuides.DataSource = list;
            RpTripGuides.DataBind();
            if (recordCount == 0)
            {
                DataEmpty.Visible = true;
            }
            //绑定分页控件
            this.ExporPageInfoSelect1.intPageSize          = pageSize;
            this.ExporPageInfoSelect1.intRecordCount       = recordCount;
            this.ExporPageInfoSelect1.CurrencyPage         = pageIndex;
            this.ExporPageInfoSelect1.HrefType             = Adpost.Common.ExporPage.HrefTypeEnum.UrlHref;
            this.ExporPageInfoSelect1.CurrencyPageCssClass = "RedFnt";
            this.ExporPageInfoSelect1.LinkType             = 3;
            this.ExporPageInfoSelect1.PageLinkURL          = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
            this.ExporPageInfoSelect1.UrlParams            = Request.QueryString;
            list = null;
        }
Пример #2
0
        protected void InitPageData()
        {
            IList <EyouSoft.Model.ShopStructure.HighShopTripGuide> list = null;

            infoType = Utils.GetInt(Request.QueryString["t"], 0);
            string keyword   = Utils.GetQueryStringValue("k");
            string CompanyId = Utils.GetQueryStringValue("cid").Length > 0 ? Utils.GetQueryStringValue("cid") : cMaster.CompanyId;

            pageIndex = Utils.GetInt(Request.QueryString["Page"], 1);
            if (infoType > 0)
            {
                sTypeName.InnerText = "-> " + ((EyouSoft.Model.ShopStructure.HighShopTripGuide.TripGuideType)infoType).ToString();
                list = EyouSoft.BLL.ShopStructure.HighShopTripGuide.CreateInstance().GetList(pageSize, pageIndex, ref recordCount, CompanyId, keyword, (EyouSoft.Model.ShopStructure.HighShopTripGuide.TripGuideType)infoType);
            }
            else
            {
                list = EyouSoft.BLL.ShopStructure.HighShopTripGuide.CreateInstance().GetList(pageSize, pageIndex, ref recordCount, CompanyId, keyword);
            }
            RpTripGuides.DataSource = list;
            RpTripGuides.DataBind();
            if (recordCount == 0)
            {
                DataEmpty.Visible = true;
            }
            //绑定分页控件
            this.ExporPageByBtn1.intPageSize    = pageSize;//每页显示记录数
            this.ExporPageByBtn1.intRecordCount = recordCount;
            this.ExporPageByBtn1.CurrencyPage   = pageIndex;
            this.ExporPageByBtn1.UrlParams      = Request.QueryString;
            this.ExporPageByBtn1.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
            list = null;
        }