public static OCNotice Notice_ADD(OCNotice model) { IES.JW.Model.User user = IES.Service.UserService.CurrentUser; OCNoticeBLL noticeBLL = new OCNoticeBLL(); model.UserID = user.UserID; model.EndDate = DateTime.Now.AddDays(30); return(noticeBLL.Notice_ADD(model)); }
public static List <OCClassTree> OCClass_Tree() { IES.JW.Model.User user = IES.Service.UserService.CurrentUser; OCClassTree occlasstree = new OCClassTree(); occlasstree.UserID = user.UserID; OCNoticeBLL noticeBLL = new OCNoticeBLL(); return(noticeBLL.OCClass_Tree(occlasstree)); }
public static bool Notice_Del(int NoticeID) { IES.JW.Model.User user = IES.Service.UserService.CurrentUser; OCNotice model = new OCNotice(); model.NoticeID = NoticeID; model.UserID = user.UserID; OCNoticeBLL noticeBLL = new OCNoticeBLL(); return(noticeBLL.Notice_Del(model)); }
public static List<OCNoticeResponse> GetCommentList(int NoticeID, int PageSize, int PageIndex) { OCNoticeBLL noticeBLL = new OCNoticeBLL(); OCNoticeResponse notice = new OCNoticeResponse(); notice.NoticeID = NoticeID; List<OCNoticeResponse> responseList = new List<OCNoticeResponse>(); responseList = noticeBLL.NoticeResponse_List(notice, PageIndex, PageSize); //for (int i = 0; i < responseList.Count; i++) //{ // responseList[i].ImgFileUrl = FileService.UserIMGURL(responseList[i].UserID); //} return responseList; }
public static OCNoticeResponse NoticeResponse_ADD(int NoticeID, string RConten) { IES.JW.Model.User user = IES.Service.UserService.CurrentUser; OCNoticeBLL noticeBLL = new OCNoticeBLL(); OCNoticeResponse noticeResponse = new OCNoticeResponse(); noticeResponse.ResponseID = -1; noticeResponse.NoticeID = NoticeID; noticeResponse.Conten = RConten; noticeResponse.UserID = user.UserID; noticeResponse.UserName = user.UserName; noticeResponse = noticeBLL.NoticeResponse_ADD(noticeResponse); noticeResponse.ResponseTimeStr = "刚刚发表"; //noticeResponse.ImgFileUrl = FileService.UserIMGURL(user.UserID); return noticeResponse; }
public static List <OCNoticeResponse> GetCommentList(int NoticeID, int PageSize, int PageIndex) { OCNoticeBLL noticeBLL = new OCNoticeBLL(); OCNoticeResponse notice = new OCNoticeResponse(); notice.NoticeID = NoticeID; List <OCNoticeResponse> responseList = new List <OCNoticeResponse>(); responseList = noticeBLL.NoticeResponse_List(notice, PageIndex, PageSize); //for (int i = 0; i < responseList.Count; i++) //{ // responseList[i].ImgFileUrl = FileService.UserIMGURL(responseList[i].UserID); //} return(responseList); }
public static OCNoticeResponse NoticeResponse_ADD(int NoticeID, string RConten) { IES.JW.Model.User user = IES.Service.UserService.CurrentUser; OCNoticeBLL noticeBLL = new OCNoticeBLL(); OCNoticeResponse noticeResponse = new OCNoticeResponse(); noticeResponse.ResponseID = -1; noticeResponse.NoticeID = NoticeID; noticeResponse.Conten = RConten; noticeResponse.UserID = user.UserID; noticeResponse.UserName = user.UserName; noticeResponse = noticeBLL.NoticeResponse_ADD(noticeResponse); noticeResponse.ResponseTimeStr = "刚刚发表"; //noticeResponse.ImgFileUrl = FileService.UserIMGURL(user.UserID); return(noticeResponse); }
public static List<OCNotice> GetNoticeList(OCNotice notice, int PageSize, int PageIndex) { OCNoticeBLL noticeBLL = new OCNoticeBLL(); //IES.JW.Model.Notice notice = new IES.JW.Model.Notice(); IES.JW.Model.User user = IES.Service.UserService.CurrentUser; notice.UserID = user.UserID; List<OCNotice> noticeList = new List<OCNotice>(); noticeList = noticeBLL.NoticeInfo_List(notice, PageIndex, PageSize); //for (int i = 0; i < noticeList.Count; i++) //{ // for (int j = 0; j < noticeList[i].NoticeResponse.Count; j++) // { // noticeList[i].NoticeResponse[j].ImgFileUrl = FileService.UserIMGURL(noticeList[i].NoticeResponse[j].UserID); // } //} return noticeList; }
public static List <OCNotice> GetNoticeList(OCNotice notice, int PageSize, int PageIndex) { OCNoticeBLL noticeBLL = new OCNoticeBLL(); //IES.JW.Model.Notice notice = new IES.JW.Model.Notice(); IES.JW.Model.User user = IES.Service.UserService.CurrentUser; notice.UserID = user.UserID; List <OCNotice> noticeList = new List <OCNotice>(); noticeList = noticeBLL.NoticeInfo_List(notice, PageIndex, PageSize); //for (int i = 0; i < noticeList.Count; i++) //{ // for (int j = 0; j < noticeList[i].NoticeResponse.Count; j++) // { // noticeList[i].NoticeResponse[j].ImgFileUrl = FileService.UserIMGURL(noticeList[i].NoticeResponse[j].UserID); // } //} return(noticeList); }
public static bool Notice_Del(int NoticeID) { IES.JW.Model.User user = IES.Service.UserService.CurrentUser; OCNotice model = new OCNotice(); model.NoticeID = NoticeID; model.UserID = user.UserID; OCNoticeBLL noticeBLL = new OCNoticeBLL(); return noticeBLL.Notice_Del(model); }
public static OCNotice Notice_ADD(OCNotice model) { IES.JW.Model.User user = IES.Service.UserService.CurrentUser; OCNoticeBLL noticeBLL = new OCNoticeBLL(); model.UserID = user.UserID; model.EndDate = DateTime.Now.AddDays(30); return noticeBLL.Notice_ADD(model); }
public static List<OCClassTree> OCClass_Tree() { IES.JW.Model.User user = IES.Service.UserService.CurrentUser; OCClassTree occlasstree = new OCClassTree(); occlasstree.UserID = user.UserID; OCNoticeBLL noticeBLL = new OCNoticeBLL(); return noticeBLL.OCClass_Tree(occlasstree); }