示例#1
0
 public DataTable GetNewsHot(string lang)
 {
     NewsDAO newsDAO = new NewsDAO();
     return newsDAO.GetNewsHot(lang);
 }
示例#2
0
 public DataTable GetNewsByCateHomeList(string strCate, int num, string approval)
 {
     string restr = strCate.Remove(strCate.LastIndexOf(",")).Replace(",", "','");
     NewsDAO newsDAO = new NewsDAO();
     return newsDAO.GetNewsByCateHomeList(restr, num, approval);
 }
示例#3
0
 public News GetNewsById(int nId)
 {
     NewsDAO newsDAO = new NewsDAO();
     return newsDAO.GetNewsById(nId);
 }
示例#4
0
 public DataTable NewsSearch(string keyword, int cId, string lang)
 {
     NewsDAO newsDAO = new NewsDAO();
     return newsDAO.NewsSearch(keyword, cId, lang);
 }
示例#5
0
 public DataTable GetNewsByCateHomeAll(int n, string strCate)
 {
     string restr = strCate.Remove(strCate.LastIndexOf(",")).Replace(",", "','");
     NewsDAO newsDAO = new NewsDAO();
     return newsDAO.GetNewsByCateHomeAll(n, restr);
 }
示例#6
0
 public DataTable NewsFollow(int Id, int cId, int n)
 {
     NewsDAO newsDAO = new NewsDAO();
     return newsDAO.NewsFollow(Id, cId, n);
 }
示例#7
0
 public DataTable GetNewsViewHome(string lang, string strCate, int n)
 {
     string restr = strCate.Remove(strCate.LastIndexOf(",")).Replace(",", "','");
     NewsDAO newsDAO = new NewsDAO();
     return newsDAO.GetNewsViewHome(lang, restr, n);
 }
示例#8
0
 public DataTable GetNewsViewHome(string lang, int n, string approval)
 {
     NewsDAO newsDAO = new NewsDAO();
     return newsDAO.GetNewsViewHome(lang, n, approval);
 }
示例#9
0
 public DataTable GetNewsViewHome(string lang, int n, int cID)
 {
     NewsDAO newsDAO = new NewsDAO();
     return newsDAO.GetNewsViewHome(lang, n, cID);
 }
示例#10
0
 public DataTable GetNewsViewHome(string lang)
 {
     NewsDAO newsDAO = new NewsDAO();
     return newsDAO.GetNewsViewHome(lang);
 }