/// <summary> /// 获取热点信息 /// </summary> /// <returns></returns> public JsonResult GetHotPoinInfoAJax() { MessageObject ms = null; string hotid = Request.Params["hotid"]; if (string.IsNullOrEmpty(hotid)) { ms = new MessageObject(false, null); return(Json(ms)); } var sw = new T_IPS_HOTS_SW(); sw.HOTSID = hotid; var model = T_IPS_HOTSCls.getModel(sw); if (model != null) { ms = new MessageObject(true, model); } else { ms = new MessageObject(false, null); } return(Json(ms)); }
/// <summary> /// 保存热点信息 /// </summary> /// <returns></returns> public JsonResult SaveHotPointInfoAjax() { Message ms = null; string hotid = Request.Params["hotid"]; string hotresult = Request.Params["hotresult"]; if (string.IsNullOrEmpty(hotid)) { ms = new Message(false, "hotid参数传递错误!", ""); return(Json(ms)); } var m = new T_IPS_HOTS_Model(); m.opMethod = "Man"; m.HOTSID = hotid; m.MANRESULT = hotresult; m.MANUSERID = SystemCls.getUserID(); ms = T_IPS_HOTSCls.Manager(m); var jctype = System.Configuration.ConfigurationManager.AppSettings["ISJcFire"].ToString(); if (jctype.Trim() == "1")//增加至监测火情表 { var list = JC_FIRECls.GetListModel(new JC_FIRE_SW() { FIREFROMID = m.HOTSID }); if (!list.Any()) { if (ms.Success) { //红外相机 = 1, //卫星热点 = 2, //人工报警 = 3, //电子报警 = 4, //护林员火情上报 = 5 var sw = new T_IPS_HOTS_SW(); sw.HOTSID = hotid; var record = T_IPS_HOTSCls.getModel(sw); if (record != null) { JC_FIRE_Model model = new JC_FIRE_Model(); model.opMethod = "Add"; model.FIREFROMID = m.HOTSID; model.FIREFROM = "2";//卫星热点 model.FIRENAME = record.WXBH + record.ZQWZ + ClsSwitch.SwitTM(record.FXSJ) + "卫星热点火情"; model.FIRETIME = record.FXSJ; model.JD = record.JD; model.WD = record.WD; model.ZQWZ = record.ZQWZ; model.WXBH = record.WXBH; model.DQRDBH = record.DQRDBH; model.RSMJ = record.XS; model.DL = record.DL; model.YY = record.YY; model.JXHQSJ = record.JXHQSJ; model.RECEIVETIME = record.SBSJ; var mm = JC_FIRECls.Manager(model); } } } } return(Json(ms)); }