示例#1
0
 //获取通知回复列表
 public void GetCommentList(HttpContext context)
 {
     NoticeBLL noticeBLL = new NoticeBLL();
     IES.JW.Model.NoticeResponse notice = new IES.JW.Model.NoticeResponse();
     notice.NoticeID = Convert.ToInt32(context.Request.Params["NoticeID"]);
     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.NoticeResponse>(noticeBLL.NoticeResponse_List(notice, PageIndex, PageSize));
     if (dt != null && dt.Rows.Count > 0)
     {
         context.Response.Write(Tools.JsonConvert.GetJSON(dt));
     }
     else
     {
         context.Response.Write("empty");
     }
 }
示例#2
0
        //获取通知回复列表
        public void NoticeResponse_ADD(HttpContext context)
        {
            IES.JW.Model.User user = IES.Service.UserService.CurrentUser;
            NoticeBLL noticeBLL = new NoticeBLL();
            IES.JW.Model.NoticeResponse notice = new IES.JW.Model.NoticeResponse();
            notice.ResponseID = -1;
            notice.NoticeID = Convert.ToInt32(context.Request.Params["NoticeID"]);
            notice.Conten = context.Request.Params["Conten"].ToString();
            notice.UserID = user.UserID;

            IES.JW.Model.NoticeResponse addnotice = noticeBLL.NoticeResponse_ADD(notice);
            if (addnotice.ResponseID != -1)
            {
                context.Response.Write("true");
            }
            else
            {
                context.Response.Write("empty");
            }
        }