コード例 #1
0
        public ActionResult AddSendMessage()
        {
            string evnetId     = Request.Form["EventId"].ToString();
            string leverId     = Request.Form["LevelId"].ToString();
            string sendContent = Request.Form["SendContent"].ToString();
            string remark      = Request.Form["Remark"].ToString();
            var    model       = new RouteAppWarnInfo();

            model.adcd           = adcd;
            model.AppWarnEventId = int.Parse(evnetId);
            model.Remark         = remark;
            model.userName       = UserName;
            model.WarnLevel      = int.Parse(leverId);
            model.WarnMessage    = sendContent;
            var json = AppApiManager.AddAppWarnInfoAndAppSendMessage(model);

            return(Json(json, JsonRequestBehavior.AllowGet));
        }
コード例 #2
0
 /// <summary>
 /// 返回插入事件和消息添加情况
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public BaseResult Post(RouteAppWarnInfo request)
 {
     return(this.AppApiManager.AddAppWarnInfoAndAppSendMessage(request));
 }