Esempio n. 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));
        }
Esempio n. 2
0
        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));
        }
Esempio n. 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));
        }
Esempio n. 4
0
 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;
 }
Esempio n. 5
0
 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;
 }
Esempio n. 6
0
        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);
        }
Esempio n. 7
0
        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);
        }
Esempio n. 8
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;
        }
Esempio n. 9
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);
        }
Esempio n. 10
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);
 }
Esempio n. 11
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);
 }
Esempio n. 12
0
 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);
 }