⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 moneylistreport.jsp

📁 (Java+SQL)-大型企业JAVA的ERP系统
💻 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) %>&nbsp;-&nbsp;
<%= 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("&nbsp;");}%>
		</td>
		<td align="center">
			<%if ((moneyList.getCustomerName()!=null)&&(!moneyList.getCustomerName().equals(""))) {
				out.print(moneyList.getCustomerName()); }
			else {out.print("&nbsp;");}%>
		</td>		
		<td align="right">
			<%if (moneyList.getShouldReceive()!=0) {
				out.print( moneyList.doubleFormat(moneyList.getShouldReceive(),2)); }
			else {out.print("&nbsp;");}%>
		</td>		
		<td align="right">
			<%if (moneyList.getGetReceive()!=0) {
				out.print( moneyList.doubleFormat(moneyList.getGetReceive(),2)); }
			else {out.print("&nbsp;");}%>
		</td>		
		<td align="right">
			<%if (moneyList.getShouldPay()!=0) {
				out.print( moneyList.doubleFormat(moneyList.getShouldPay(),2)); }
			else {out.print("&nbsp;");}%>
		</td>				
		<td align="right">
			<%if (moneyList.getGetPay()!=0) {
				out.print( moneyList.doubleFormat(moneyList.getGetPay(),2)); }
			else {out.print("&nbsp;");}%>
		</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 %>&nbsp/&nbsp<%=totalPage%>                     
<% } else if (curPage==1/*position==0&&state==2*/){ %>
	<a href="MoneyListReport.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>&nbsp&nbsp&nbsp页码 <%=curPage %>&nbsp/&nbsp<%=totalPage%>
<% } else if (curPage==totalPage/*position>0&&state==-1*/){ %>
	<a href="MoneyListReport.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>&nbsp&nbsp&nbsp&nbsp&nbsp页码 <%=curPage %>&nbsp/&nbsp<%=totalPage%>
<% } else if (curPage<totalPage/*position>0&&state==1*/){ %>
	<a href="MoneyListReport.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>&nbsp&nbsp<a href="MoneyListReport.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>&nbsp&nbsp页码 <%=curPage %>&nbsp/&nbsp<%=totalPage%>
<% } %>	
</tr></td>
</div>	
</table>
<p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -