//发送通知 public void AddNotice(HttpContext context) { IES.JW.Model.User user = IES.Service.UserService.CurrentUser; NoticeBLL noticeBLL = new NoticeBLL(); IES.JW.Model.Notice notice = new IES.JW.Model.Notice(); notice.Title = context.Request.Params["Title"].ToString(); notice.Conten = context.Request.Params["Conten"].ToString(); notice.IsTop = Convert.ToBoolean(context.Request.Params["IsTop"]); notice.IsForMail = Convert.ToBoolean(context.Request.Params["IsEmail"]); notice.IsForSMS = Convert.ToBoolean(context.Request.Params["IsMSM"]); notice.SysID = Convert.ToInt32(context.Request.Params["SysID"].ToString()); notice.ModuleID = Convert.ToInt32(context.Request.Params["ModuleID"].ToString()); notice.UserID = user.UserID; notice.EndDate = DateTime.Now.AddDays(30); notice.Source2 = context.Request.Params["Source2"].ToString(); notice.SourceIDs = context.Request.Params["SourceIDs"].ToString(); notice.Source = context.Request.Params["Source"].ToString(); notice.SourceIDs2 = context.Request.Params["SourceIDs2"].ToString(); notice.EntryDates = context.Request.Params["EntryDates"].ToString(); notice = noticeBLL.Notice_ADD(notice); if (notice.NoticeID > 0) { if (notice.IsCanSendMsg == 0) { context.Response.Write("False"); } else { context.Response.Write("True"); } } else { context.Response.Write("empty"); } }