Example #1
0
 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);
 }
Example #2
0
        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;
        }
Example #3
0
 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);
 }