/// <summary> /// 根据新闻ID查询新闻内容,返回到调用者 /// </summary> /// <param name="_newId"></param> /// <returns></returns> public static string selNewContent(int _newId) { New news = new New(); news = SelectOper.getNew(_newId); string newContent = news.New_Content; return(newContent); }
/// <summary> /// 根据新闻ID查找新闻的标题 /// </summary> /// <returns></returns> public static string selNewTitle(int _newId) { New news = new New(); news = SelectOper.getNew(_newId); string newTitle = news.New_Title; return(newTitle); }
/// <summary> /// 查找改新闻的发布日期 /// </summary> /// <param name="_newId"></param> /// <returns></returns> public static string selNewTime(int _newId) { string time = ""; New news = new New(); news = SelectOper.getNew(_newId); DateTime newTime = news.Create_Time; time = newTime.ToShortDateString().ToString(); //2005-11-5 return(time); }