/// <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(); } }
public bool AddUpdateNews(XTHospital.COMM.Entity.Notic model) { BLL_System bll = new BLL_System(); return bll.AddUpdateNews(model); }
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); }
public bool DeleteNewsPhysic(int ID) { BLL_System bll = new BLL_System(); return bll.DeleteNewsPhysic(ID); }