public static List<Notice> GetNoticeList(Notice notice, int PageSize, int PageIndex) { NoticeBLL noticeBLL = new NoticeBLL(); //IES.JW.Model.Notice notice = new IES.JW.Model.Notice(); IES.JW.Model.User user = IES.Service.UserService.CurrentUser; notice.UserID = user.UserID; return noticeBLL.Notice_List(notice, PageIndex, PageSize); }
public static List <Notice> GetNoticeList(Notice notice, int PageSize, int PageIndex) { NoticeBLL noticeBLL = new NoticeBLL(); //IES.JW.Model.Notice notice = new IES.JW.Model.Notice(); IES.JW.Model.User user = IES.Service.UserService.CurrentUser; notice.UserID = user.UserID; return(noticeBLL.Notice_List(notice, PageIndex, PageSize)); }
//获取通知列表 public void GetNoticeList(HttpContext context) { NoticeBLL noticeBLL = new NoticeBLL(); IES.JW.Model.Notice notice = new IES.JW.Model.Notice(); IES.JW.Model.User user = IES.Service.UserService.CurrentUser; notice.UserID = user.UserID; notice.SysID = 1; notice.ModuleID = Convert.ToInt32(context.Request.Params["ModuleID"]); int PageSize = Convert.ToInt32(context.Request.Params["PageSize"]); int PageIndex = Convert.ToInt32(context.Request.Params["PageIndex"]); //noticeBLL.Notice_List(notice, 1, 20); DataTable dt = IES.Common.ListToDateUtil.ListToDataTable<IES.JW.Model.Notice>(noticeBLL.Notice_List(notice, PageIndex, PageSize)); if (dt != null && dt.Rows.Count > 0) { context.Response.Write(Tools.JsonConvert.GetJSON(dt)); } else { context.Response.Write("empty"); } }