/// <summary> /// 获取目前最新未处理热点 /// </summary> /// <returns></returns> public JsonResult GetHotPontListAjax() { MessageListObject ms = null; string state = Request.Params["state"]; var sw = new T_IPS_HOTS_SW(); sw.MANSTATE = state; var list = T_IPS_HOTSCls.getModelList(sw); if (list.Any()) { ms = new MessageListObject(true, list); } return(Json(ms)); }
/// <summary> /// 获取热点列表Html /// </summary> /// <returns></returns> public JsonResult GetHotPointAjax() { Message ms = null; StringBuilder sb = new StringBuilder(); sb.AppendFormat("<table cellpadding=\"0\" cellspacing=\"0\">"); sb.AppendFormat("<thead>"); sb.AppendFormat("<tr>"); sb.AppendFormat("<th>序号</th>"); sb.AppendFormat("<th>编号</th>"); sb.AppendFormat("<th>热点区域</th>"); sb.AppendFormat("<th>接收时间</th>"); sb.AppendFormat("<th>像素</th>"); sb.AppendFormat("<th>烟云</th>"); sb.AppendFormat("<th>连续</th>"); sb.AppendFormat("<th>状态</th>"); sb.AppendFormat("<th>操作</th>"); sb.AppendFormat("</tr>"); sb.AppendFormat("</thead>"); sb.AppendFormat("<tbody>"); string txtHotStartTime = Request.Params["txtHotStartTime"]; //开始时间 string txtHotEndTime = Request.Params["txtHotEndTime"]; //结束时间 string hotstatus = Request.Params["hotstatus"]; //处理结果 var sw = new T_IPS_HOTS_SW(); sw.DateBegin = txtHotStartTime; sw.DateEnd = txtHotEndTime; if (hotstatus != "2")//0 未处理1已处理 2全部 { sw.MANSTATE = hotstatus; } var list = T_IPS_HOTSCls.getModelList(sw); if (list.Any()) { int i = 0; foreach (var item in list) { sb.AppendFormat("<tr>"); sb.AppendFormat("<td>{0}</td>", ++i); sb.AppendFormat("<td>{0}</td>", item.DQRDBH); sb.AppendFormat("<td>{0}</td>", item.ZQWZ); sb.AppendFormat("<td>{0}</td>", item.FXSJ); sb.AppendFormat("<td>{0}</td>", item.XS); sb.AppendFormat("<td>{0}</td>", item.YY); sb.AppendFormat("<td>{0}</td>", (item.JXHQSJ == "无") ? "非连续" : "连续"); if (item.MANSTATE == "0") { sb.AppendFormat("<td><a class=\"label label-danger\">未处理</a></td>"); } else { sb.AppendFormat("<td><a class=\"label label-success\">已处理</a></td>"); } sb.AppendFormat("<td><a href=\"javascript:void(0);\" onClick=\"getLocaHot(" + item.HOTSID + ")\">定位</a></td>"); sb.AppendFormat("</tr>"); } } else { sb.AppendFormat("<tr>"); sb.AppendFormat("<td colspan=\"8\">暂无热点信息</td>"); sb.AppendFormat("</tr>"); } sb.AppendFormat("</tbody>"); sb.AppendFormat("</table>"); ms = new Message(true, sb.ToString(), ""); return(Json(ms)); }