示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     EyouSoft.Common.Control.FrontPage page = this.Page as EyouSoft.Common.Control.FrontPage;
     if (page != null)
     {
         CityId = page.CityId;
     }
     if (!IsPostBack)
     {
         InitData();
     }
 }
示例#2
0
        protected EyouSoft.Model.AdvStructure.AdvInfo adv = null; //供求广告BANNER
        protected void Page_Load(object sender, EventArgs e)
        {
            pa = (EyouSoft.Common.Control.FrontPage) this.Page;
            IList <EyouSoft.Model.AdvStructure.AdvInfo> advlist = EyouSoft.BLL.AdvStructure.Adv.CreateInstance().GetAdvs(pa.CityId, EyouSoft.Model.AdvStructure.AdvPosition.供求信息频道通栏banner);

            if (advlist != null && advlist.Count > 0)
            {
                adv = advlist[0];
            }
            UserPublicCenter.MasterPage.NewPublicCenter masterPage = this.Master as UserPublicCenter.MasterPage.NewPublicCenter;
            if (masterPage != null)
            {
                masterPage.HeadMenuIndex = 6;//选中首页菜单项
            }
        }
示例#3
0
        /// <summary>
        /// 初始化数据
        /// </summary>
        private void InitData()
        {
            #region 学堂介绍

            CommonTopicControl1.PartType  = UserPublicCenter.SupplierInfo.UserControl.CommonTopicControl.PartTypes.学堂介绍;
            CommonTopicControl1.TopicType = UserPublicCenter.SupplierInfo.UserControl.CommonTopicControl.TopicTypes.文字描述;

            #endregion

            #region  业之星访谈

            CommonTopicControl2.PartType   = UserPublicCenter.SupplierInfo.UserControl.CommonTopicControl.PartTypes.业之星访谈;
            CommonTopicControl2.TopicType  = UserPublicCenter.SupplierInfo.UserControl.CommonTopicControl.TopicTypes.图文广告列表;
            CommonTopicControl2.TopicArea  = EyouSoft.Model.CommunityStructure.TopicAreas.业之星;
            CommonTopicControl2.TopicClass = EyouSoft.Model.CommunityStructure.TopicClass.行业资讯;

            EyouSoft.Common.Control.FrontPage CurrPage = (EyouSoft.Common.Control.FrontPage) this.Page;
            if (!CurrPage.Equals(null))
            {
                CommonTopicControl2.CurrCityId = CurrPage.CityId;
            }
            CurrPage = null;

            #endregion

            #region 新闻资讯

            CommonTopicControl3.PartType   = UserPublicCenter.SupplierInfo.UserControl.CommonTopicControl.PartTypes.资讯;
            CommonTopicControl3.TopicType  = UserPublicCenter.SupplierInfo.UserControl.CommonTopicControl.TopicTypes.软文广告列表;
            CommonTopicControl3.TopicClass = EyouSoft.Model.CommunityStructure.TopicClass.行业资讯;
            CommonTopicControl3.TopicArea  = EyouSoft.Model.CommunityStructure.TopicAreas.新闻资讯;

            #endregion

            #region 行业动态

            CommonTopicControl4.PartType   = UserPublicCenter.SupplierInfo.UserControl.CommonTopicControl.PartTypes.资讯;
            CommonTopicControl4.TopicType  = UserPublicCenter.SupplierInfo.UserControl.CommonTopicControl.TopicTypes.软文广告列表;
            CommonTopicControl4.TopicClass = EyouSoft.Model.CommunityStructure.TopicClass.行业资讯;
            CommonTopicControl4.TopicArea  = EyouSoft.Model.CommunityStructure.TopicAreas.行业动态;

            #endregion
        }
示例#4
0
        protected int ticketCount;    //特价机票数
        protected void Page_Load(object sender, EventArgs e)
        {
            EyouSoft.Common.Control.FrontPage thePage = (this.Page as EyouSoft.Common.Control.FrontPage);
            IsLogin         = thePage.IsLogin;
            CityId          = thePage.CityId;
            ImageServerPath = (Page as EyouSoft.Common.Control.FrontPage).ImageServerUrl;
            IList <EyouSoft.Model.TicketStructure.SpecialFares> ticketList = EyouSoft.BLL.TicketStructure.SpecialFares.CreateInstance().GetTopSpecialFares(30);
            StringBuilder strBuilder = new StringBuilder();

            if (ticketList != null && ticketList.Count > 0)
            {
                ticketCount = ticketList.Count;
                foreach (EyouSoft.Model.TicketStructure.SpecialFares model in ticketList)
                {
                    strBuilder.AppendFormat("<li><span class=\"wenzilanse\">[{2}]</span> <a href=\"{0}\" title=\"{3}\" target=\"_blank\">{1}</a> </li>",
                                            model.IsJump ? (IsLogin ? "/PlaneInfo/PlaneListPage.aspx" : "/AirTickets/Login.aspx?return=PlaneListPage") : EyouSoft.Common.URLREWRITE.Plane.SpecialFaresUrl(model.ID, CityId),
                                            EyouSoft.Common.Utils.GetText(model.Title, 22, true),
                                            model.SpecialFaresType,
                                            model.Title);
                }
            }
            ticketsHtml = strBuilder.ToString();
        }