Ejemplo n.º 1
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");
            }
        }