?? moneylistreport.jsp
字號:
<%@page import="java.sql.*"%>
<jsp:useBean id="moneyList" class="src.report.MoneyList" scope="session"/>
<jsp:useBean id="global" class="src.com.MyGlobal" scope="session"/>
<% if (global.isLogined == false) {
%>
<jsp:forward page="../pub/DBErr.jsp" >
<jsp:param name="rtcode" value="-4" />
</jsp:forward>
<% }
%>
<html>
<head>
<title>客戶應收應付明細表</title>
<link rel="stylesheet" href="report.css">
</head>
<%
//分頁
int position,state,curPage,totalPage,recordNum;
int numInOnePage = moneyList.getNumInOnePage();
moneyList.listPage(request);
position = moneyList.listPosition;
state = moneyList.state;
curPage = moneyList.curPage;
totalPage = moneyList.totalPage;
%>
<body>
<center><br><FONT class="f16">江蘇五洋集團有限公司 <%= moneyList.getStringDate(moneyList.beginDate,1) %> 客戶應收應付明細表</FONT><center>
<%= moneyList.getStringDate(moneyList.beginDate,1) %>-<%= moneyList.getStringDate(moneyList.beginDate,2) %> -
<%= moneyList.getStringDate(moneyList.endDate,1) %>-<%= moneyList.getStringDate(moneyList.endDate,2) %>
<table border="1"border="1" cellspacing="0" cellpadding="2" bordercolor="#000000">
<tr>
<td align="center">客戶編號</td>
<td align="center">客戶名稱</td>
<td align="center">應收</td>
<td align="center">已收</td>
<td align="center">應付</td>
<td align="center">已付</td>
</tr>
<%
for(int listCount = 0; listCount < numInOnePage && (moneyList.next() > 0) ; listCount++) {
//while (moneyList.next() > 0) {
%>
<tr>
<td align="center">
<%if ((moneyList.getCustomerId()!=null)&&(!moneyList.getCustomerId().equals(""))) {
out.print(moneyList.getCustomerId()); }
else {out.print(" ");}%>
</td>
<td align="center">
<%if ((moneyList.getCustomerName()!=null)&&(!moneyList.getCustomerName().equals(""))) {
out.print(moneyList.getCustomerName()); }
else {out.print(" ");}%>
</td>
<td align="right">
<%if (moneyList.getShouldReceive()!=0) {
out.print( moneyList.doubleFormat(moneyList.getShouldReceive(),2)); }
else {out.print(" ");}%>
</td>
<td align="right">
<%if (moneyList.getGetReceive()!=0) {
out.print( moneyList.doubleFormat(moneyList.getGetReceive(),2)); }
else {out.print(" ");}%>
</td>
<td align="right">
<%if (moneyList.getShouldPay()!=0) {
out.print( moneyList.doubleFormat(moneyList.getShouldPay(),2)); }
else {out.print(" ");}%>
</td>
<td align="right">
<%if (moneyList.getGetPay()!=0) {
out.print( moneyList.doubleFormat(moneyList.getGetPay(),2)); }
else {out.print(" ");}%>
</td>
</tr>
<%
}
%>
</table>
<p>
<table border="0" align="center">
<tr><td>
<div id = "pannel" class="text">
<input type="button" value=" 打印 " onclick=" window.pannel.style.visibility='hidden';window.print(); window.pannel.style.display='block';">
<% if (totalPage==1/*position==0&&state==0*/){ %>
頁碼 <%=curPage %> / <%=totalPage%>
<% } else if (curPage==1/*position==0&&state==2*/){ %>
<a href="MoneyListReport.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一頁</a>   頁碼 <%=curPage %> / <%=totalPage%>
<% } else if (curPage==totalPage/*position>0&&state==-1*/){ %>
<a href="MoneyListReport.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一頁</a>     頁碼 <%=curPage %> / <%=totalPage%>
<% } else if (curPage<totalPage/*position>0&&state==1*/){ %>
<a href="MoneyListReport.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一頁</a>  <a href="MoneyListReport.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一頁</a>  頁碼 <%=curPage %> / <%=totalPage%>
<% } %>
</tr></td>
</div>
</table>
<p>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -