reason.jsp
2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.dao.bksh.SHDataBase"%>
<%@ page import="com.dao.dbutil.DataBase"%>
<%@ page import="com.vo.SH_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());
}
SHDataBase shdb = new SHDataBase();
DataBase db = new DataBase();
selectresult = shdb.showRightTime(selectresult);
Map shreason = shdb.select(selectresult);//获得未开展自行监测原因
int size = shreason.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 = shreason.get(String.valueOf(x)) == null? null : (Map)shreason.get(String.valueOf(x));
%>
<tr>
</tr>
<tr >
<td align =center><%=x%></td>
<td align =center><%=shdb.getInfo(jspinfo,"a_point") %></td>
<td align =center><%=db.timechange(shdb.getInfo(jspinfo,"a_datetime")) %></td>
<td align =center><%=shdb.getInfo(jspinfo,"a_type") %></td>
<td align =center><%=shdb.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>