📄 feelist.jsp
字号:
<%@ page language="java" pageEncoding="gbk" import="bean.FeeList,java.util.*"%>
<html>
<head>
<title>物业费用明细表单</title>
<link rel="stylesheet" type="text/css" href="../../../css/secondcss.css">
<script type="text/javascript">
// 状态改变后操作
function change()
{
form1.yearhdIndex.value=form1.dropYear.selectedIndex;
form1.monthhdIndex.value=form1.dropMonth.selectedIndex;
document.form1.action="../../../feeMonthChange.do";
document.form1.submit();
}
// 页面加载
function windowLoad(yearindex,monthindex)
{
var dpMonth = form1.dropMonth;
var dpYear = form1.dropYear;
var today = new Date();
var year = today.getYear();
var month = today.getMonth();
for(var i=1;i<=12;i++)
{
var obj = document.createElement("option");
if( i<10)
{
obj.text= "0"+ i + "月";
obj.value = "0" + i;
}
else
{
obj.text = i+"月";
obj.value = i;
}
dpMonth.add( obj );
}
dpMonth.options[month].selected = true;
for( var j=year-50;j<=year+50;j++)
{
var obj = document.createElement("option");
obj.text= j;
obj.value = j;
dpYear.add( obj );
}
for(var n = 0; n<dpYear.options.length;n++)
{
if( dpYear.options[n].text == year)
dpYear.options[n].selected = true;
}
// 状态改变时的操作
if( yearindex != null && monthindex != null)
{
form1.dropYear.options[yearindex].selected = true;
form1.dropMonth.options[monthindex].selected = true;
}
}
</script>
</head>
<%
String yearindex = request.getParameter("n");
String monthindex = request.getParameter("m");
%>
<body style="overflow: scroll" onload="windowLoad(<%=yearindex %>,<%=monthindex %>)">
<form id="form1" name="form1" method="post">
<table width="99%" border="0" style="border-top-width: 0px; border-left-width: 0px; background: none transparent scroll repeat 0% 0%;
border-bottom-width: 0px; letter-spacing: 0px; border-right-width: 0px; border-spacing: 0px">
<!--按钮操作表格-->
<tr>
<td width="36%"><div align="left"><strong><font size="3">费用明细表单</font></strong></div>
<input type="hidden" name="yearhdIndex" value="">
<input type="hidden" name="monthhdIndex" value=""></td>
<td width="10%">年份:
<select name="dropYear" style="font-size: 9pt">
</select>
</td>
<td width="10%">月份:
<select name="dropMonth" onchange="change()" style="font-size: 9pt">
</select>
</td>
<td width="8%"><img src="../../../images/dayin1.gif" width="69" height="22px" style="cursor:hand"
onmousemove="this.src='../../../images/dayin2.gif'"
onmouseout="this.src='../../../images/dayin1.gif'"
onmousedown="this.src='../../../images/dayin3.gif'"
onmouseup="this.src='../../../images/dayin2.gif'"
onclick="if(confirm('您确定打印吗?')){ window.print();}"></td>
</tr>
</table>
<br>
<hr color="green">
<br>
<table width="99%" style="border-top-width: 0px; border-left-width: 0px; background: none transparent scroll repeat 0% 0%;
border-bottom-width: 0px; letter-spacing: 0px; border-right-width: 0px; border-spacing: 0px;">
<tbody>
<tr style="background-color:#5D7B9D;color:white; ">
<td>明细单号</td>
<td>房屋编号</td>
<td>费用名称</td>
<td>费用金额(元)</td>
<td>产生月份</td>
</tr>
<%
List arrayList = (ArrayList)session.getAttribute("feeList");
if( arrayList != null )
{
for( int i=0; i<arrayList.size(); i++)
{
FeeList fList = (FeeList)arrayList.get(i);
%>
<tr style="background-color: #F7F6F3;color:#333333; ">
<td><%=fList.getListID() %></td>
<td><%=fList.getHouseID() %></td>
<td><%=fList.getRateID() %></td>
<td><%=fList.getMoney() %></td>
<td><%=fList.getFeeMonth() %></td>
</tr>
<%
}
}
else
{
out.println("<tr><td colspan='5' style='text-align: left'>");
out.println("没有找到相关信息!");
out.println("</td></tr>");
}
session.setAttribute("feeList",null);
%>
</tbody>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -