public static bool DeleteNews(Guid newsId) { BizService bs = new BizService(); return bs.DeleteNews(newsId); }
public static bool CreateNews(Guid newsId, string title, string content, DateTime createDate, string loginId, string userName, Guid userId, char isVal, char isTop,char ntype) { BizService bs = new BizService(); return bs.CreateNews(newsId, title, content, createDate, loginId, userName, userId, isVal, isTop,ntype); }
public static News GetNews(Guid newsId) { BizService bs = new BizService(); News news = new News(); using (System.Data.DataTable dt = bs.GetNews(newsId)) { System.Data.DataRow row = dt.Rows[0]; news.NewsId = new Guid(row["newsId"].ToString()); news.Title = row["title"].ToString(); news.Content = row["ncontent"].ToString(); news.IsTop = char.Parse(row["istop"].ToString()); news.IsVal = char.Parse(row["isvalidate"].ToString()); news.CreateDate = DateTime.Parse(row["createDate"].ToString()); news.NType = char.Parse(row["ntype"].ToString()); news.UserName = row["userName"].ToString(); } return news; }
public static System.Data.DataTable GetNewsList(string title,char ntype) { BizService bs = new BizService(); return bs.GetNewsList(title,ntype); }
public static bool UpdateNews(Guid newsId, string title, string content, char isVal, char isTop,char ntype) { BizService bs = new BizService(); return bs.UpdateNews(newsId, title, content, isVal, isTop,ntype); }
/// <summary> /// 取得最新的流水号 /// </summary> /// <param name="Prefix">IMG V</param> /// <returns></returns> public string GetSN(string Prefix) { BizService bs = new BizService(); return bs.GetSN(Prefix); }