Beispiel #1
0
 /// <summary>
 /// 点击滚动的标题
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void TeachingNewsLink_AfterClick(object sender, EventArgs e)
 {
     USCTAMis.Web.WebControls.UTMisLinkButton clickLink = sender as
                                                          USCTAMis.Web.WebControls.UTMisLinkButton;
     PagePath = "NewsView.aspx";
     SetPageParameter <string>(clickLink.ID.ToString());
     USCTAMis.Web.WebClient.ScriptManager.OpenWindow(PathBuilder, 650, 850);
 }
 /// <summary>
 /// 动态显示教务新闻
 /// </summary>
 protected void AddLinkButtonForDynamic()
 {
     IList<Model.Sys.NewsModel> TeachingNews = _infoView.RetrievePreFiveTeachingNews();
     for (int startNews = 0; startNews < TeachingNews.Count; startNews++)
     {
         USCTAMis.Web.WebControls.UTMisLinkButton TeachingNewsLink = new USCTAMis.Web.WebControls.UTMisLinkButton();
         TeachingNewsLink.Text = TeachingNews[startNews].NewsTitle;
         TeachingNewsLink.ID = TeachingNews[startNews].NewsID;
         TeachingNewsLink.AfterClick += new EventHandler(TeachingNewsLink_AfterClick);
         this.Teaching.Controls.Add(TeachingNewsLink);
         this.Teaching.Controls.Add(new LiteralControl(" <br/><br/> "));
     }
 }
Beispiel #3
0
        /// <summary>
        /// 动态显示教务新闻
        /// </summary>
        protected void AddLinkButtonForDynamic()
        {
            IList <Model.Sys.NewsModel> TeachingNews = _infoView.RetrievePreFiveTeachingNews();

            for (int startNews = 0; startNews < TeachingNews.Count; startNews++)
            {
                USCTAMis.Web.WebControls.UTMisLinkButton TeachingNewsLink = new USCTAMis.Web.WebControls.UTMisLinkButton();
                TeachingNewsLink.Text        = TeachingNews[startNews].NewsTitle;
                TeachingNewsLink.ID          = TeachingNews[startNews].NewsID;
                TeachingNewsLink.AfterClick += new EventHandler(TeachingNewsLink_AfterClick);
                this.Teaching.Controls.Add(TeachingNewsLink);
                this.Teaching.Controls.Add(new LiteralControl(" <br/><br/> "));
            }
        }