コード例 #1
0
ファイル: Index.aspx.cs プロジェクト: wgang10/XTHospatal
 /// <summary>
 /// 加载新闻
 /// </summary>
 public void LoadNews()
 {
     if (!IsPostBack)
     {
         XTHospital.BLL.BLL_System bll = new XTHospital.BLL.BLL_System();
         IList<XTHospital.COMM.Entity.Notic> list = bll.GetNewsList("Public", 10);
         System.Text.StringBuilder strNews = new System.Text.StringBuilder();
         for (int i = 0; i < list.Count&&i<10; i++)
         {
             strNews.AppendLine(@"<li><a title=" + list[i].Body + " href=" + list[i].Url + ">" + list[i].Title + "【" + list[i].CreateTime.ToShortDateString() + "】</a></li>");
         }
         this.ulNews.InnerHtml = strNews.ToString();
         this.ulNews.DataBind();
     }
 }
コード例 #2
0
ファイル: Service.cs プロジェクト: wgang10/XTHospatal
 public bool AddUpdateNews(XTHospital.COMM.Entity.Notic model)
 {
     BLL_System bll = new BLL_System();
     return bll.AddUpdateNews(model);
 }
コード例 #3
0
ファイル: Service.cs プロジェクト: wgang10/XTHospatal
 public List<XTHospital.COMM.Entity.Notic> GetNews(string SystemName,int nums)
 {
     BLL_System bll = new BLL_System();
     //return bll.GetNewsListForWeb(SystemName, nums);
     return (List<XTHospital.COMM.Entity.Notic>)bll.GetNewsList(SystemName, nums);
 }
コード例 #4
0
ファイル: Service.cs プロジェクト: wgang10/XTHospatal
 public bool DeleteNewsPhysic(int ID)
 {
     BLL_System bll = new BLL_System();
     return bll.DeleteNewsPhysic(ID);
 }