📄 invoicelist.jsp
字号:
<%@ taglib prefix="task" uri="/jsp/tld/WuYangTag.tld" %>
<jsp:useBean id="queryInvoice" class="src.wuyang.Invoice" scope="session"/>
<jsp:useBean id="customer" class="src.wuyang.Customer" scope="page"/>
<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="css.css" type="text/css">
</head>
<%
String invoiceState[] = {"未收付","在收付","已收付"};
int position,state,curPage,totalPage;
int numInOnePage = queryInvoice.getNumInOnePage();
queryInvoice.listPage(request);
position = queryInvoice.listPosition;
state = queryInvoice.state;
curPage = queryInvoice.curPage;
totalPage = queryInvoice.totalPage;
%>
<body bgcolor=#949b93><table width="100%" border="1" height="90%" bordercolorlight="#616860" bordercolordark="#CCCCCC" bgcolor="#4c7171" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<blockquote><br>
<br>
<table width="88%" border="1" bordercolorlight="#000000" bordercolordark="#CCCCCC" width="711" cellpadding="0" cellspacing="0">
<tr bgcolor="#949b93">
<td class="text">
<div align="center"><b>发票编号</b></div>
</td>
<td class="text">
<div align="center"><b>客户名称</b></div>
</td>
<td class="text">
<div align="center"><b>发票金额</b></div>
</td>
<td class="text">
<div align="center"><b>开票日期</b></div>
</td>
<td class="text">
<div align="center"><b>发票状态</b></div>
</td>
<td class="text">
<div align="center"><b>所属部门</b></div>
</td>
<td class="text">
<div align="center"><b>所属业务员</b></div>
</td>
</tr>
<%
for(int listCount = 0; listCount < numInOnePage && (queryInvoice.next() > 0) ; listCount++) {
customer.load(queryInvoice.getCustomerId());
%>
<tr class="textb">
<td><%=queryInvoice.getInvoiceId()%></td>
<td><%=customer.getCustomerName()%></td>
<td><div align="right">
<%=queryInvoice.doubleFormat(queryInvoice.getInvoiceMoney(),2)%></div>
</td>
<td><%=queryInvoice.getStringDate(queryInvoice.getInvoiceDate(),0)%></td>
<td><%=invoiceState[queryInvoice.getInvoiceState()]%></td>
<td><task:dept showType="get" deptId="<%=queryInvoice.getDeptId()%>" /></td>
<td><task:emp showType="get" employeeId="<%=queryInvoice.getEmployeeId()%>" /></td>
</tr>
<%
}
%>
</table>
<p class="textb">
<% if (position==0&&state==0){ %>
页码 <%=curPage %> / <%=totalPage%>
<% } else if (position==0&&state==2){ %>
<a href="InvoiceList.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>   页码
<%=curPage %> / <%=totalPage%>
<% } else if (position>0&&state==-1){ %>
<a href="InvoiceList.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>     页码
<%=curPage %> / <%=totalPage%>
<% } else if (position>0&&state==1){ %>
<a href="InvoiceList.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>  <a href="InvoiceList.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>  页码
<%=curPage %> / <%=totalPage%>
<% } %>
</blockquote>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -