reason.jsp 2.5 KB
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.dao.bkyld.YLDDataBase"%>
<%@ page import="com.vo.YLD_reason_DataManage"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="java.util.Date"%>
<%
	String selectresult = request.getParameter("selectdate");
    SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:00:00");//设置日期格式
    if(selectresult == null||selectresult == ""){
    	selectresult = df.format(new Date());
    }
    YLDDataBase ylddb = new YLDDataBase();
    selectresult = ylddb.showRightTime(selectresult);
    Map yldreason = ylddb.select(selectresult);//获得未开展自行监测原因
	int size = yldreason.size();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
   <title>未开展自行监测原因</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <center>
  
  <table width="753" height="80" border="1">
  <tr>
  <th bgcolor="#dbeef3" align =center height="39" scope="col">序号</th>
    <th bgcolor="#dbeef3" align =center height="39" scope="col">监测点位</th>
    <th bgcolor="#dbeef3" align =center scope="col">监测时间</th>
    <th bgcolor="#dbeef3" align =center scope="col">监测类型</th>
    <th bgcolor="#dbeef3" align =center scope="col">未开展自行监测原因</th>
  </tr>
    <%	
	if(size!=0){
    int x = 1;
    while(x <= size){
    	Map jspinfo = yldreason.get(String.valueOf(x)) == null? null : (Map)yldreason.get(String.valueOf(x));
%>
 		 <tr>

		</tr>
  <tr >
    <td  align =center><%=x%></td>
    <td align =center><%=ylddb.getInfo(jspinfo,"a_point") %></td>
    <td align =center><%=ylddb.getInfo(jspinfo,"a_datetime") %></td>
    <td  align =center><%=ylddb.getInfo(jspinfo,"a_type") %></td>
    <td align =center><%=ylddb.getInfo(jspinfo,"a_reason") %></td>
  </tr>	
  <% 
    x++; 
    }
    }else{
    
   %>		
		 </table>
		<table width="753" height="80"  border="1" align="center" cellspacing="0px">
		<tr><td  align =center>系统稳定运行,暂无未开展自行检测项目!</td></tr>
		</table>
	<% 
   }
   %>		
  </center>
  </body>
</html>