📄 allocatcostlistp.jsp
字号:
<jsp:useBean id="allocat" class="src.wuyang.Allocat" scope="session"/>
<jsp:useBean id="allocatproduct" class="src.wuyang.ReportAllocat" 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>
<%
int position,state,curPage,totalPage;
int numInOnePage = allocat.getNumInOnePage();
allocat.listPage(request);
position = allocat.listPosition;
state = allocat.state;
curPage = allocat.curPage;
totalPage = allocat.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" class="textb">
<blockquote>
<br>
<br>
<table width="1200" border="1" class="textb" height="76" bordercolorlight="#000000" bordercolordark="#CCCCCC" cellpadding="0" cellspacing="0">
<tr bgcolor="#949b93" class="textb">
<td width="80" >
<div align="center"><font color="#000000"><b>部门名称</b></font></div>
</td>
<td width="100" >
<div align="center"><font color="#000000"><b>调拨单编号</b></font></div>
</td>
<td width="80" >
<div align="center"><font color="#000000"><b>申请人员</b></font></div>
</td>
<td width="80" >
<div align="center"><font color="#000000"><b>申请日期</b></font></div>
</td>
<td width="100" >
<div align="center"><font color="#000000"><b>产品名称</b></font></div>
</td>
<td width="100" >
<div align="center"><font color="#000000"><b>规格/型号</b></font></div>
</td>
<td width="60" >
<div align="center"><font color="#000000"><b>单价</b></font></div>
</td>
<td width="80" >
<div align="center"><font color="#000000"><b>申请数量</b></font></div>
</td>
<td width="100" >
<div align="center"><font color="#000000"><b>总价</b></font></div>
</td>
</tr>
<%
float totalFee = 0;
for(int listCount = 0; listCount < numInOnePage && (allocat.next() > 0) ; listCount++) {
float totalPrice = 0;
allocatproduct.query("allocatId='"+allocat.getAllocatId()+"'","productId");
for(;allocatproduct.next() > 0;) {
totalPrice = allocatproduct.getQuantity() * allocatproduct.getUnitPrice();
%>
<tr class="text">
<td width="80" >
<div align="left"></div>
</td>
<td width="100" >
<div align="left"></div>
</td>
<td width="80" >
<div align="left"></div>
</td>
<td width="80" >
<div align="left"></div>
</td>
<td width="100">
<div align="left"><%=allocatproduct.getProductName()%></div>
</td>
<td width="100">
<div align="left"><%=allocatproduct.getProductDesc()%></div>
</td>
<td width="60">
<div align="right"><%=allocatproduct.doubleFormat(allocatproduct.getUnitPrice(),2)%></div>
</td>
<td width="80">
<div align="right"><%=allocatproduct.doubleFormat(allocatproduct.getQuantity(),2)%></div>
</td>
<td width="100">
<div align="right"><%=allocatproduct.doubleFormat(totalPrice,2)%></b></div>
</td>
</tr>
<%
}
float subFee=totalPrice;
totalFee = totalFee + subFee;
%>
<tr class="textb">
<td width="80" height="17" >
<div align="left"><font color="#000000"><%=allocatproduct.getCompanyName()%></font></div>
</td>
<td width="100" height="17" >
<div align="left"><font color="#000000"><%=allocat.getAllocatId()%></font></div>
</td>
<td width="80" height="17" >
<div align="left"><font color="#000000"><%=allocat.getProposer()%></font></div>
</td>
<td width="80" height="17" >
<div align="left"><font color="#000000"><%=allocat.getStringDate(allocat.getAllocatDate(),0)%>
</b></font></div>
</td>
<td width="100" height="17" >
<div align="left"><font color="#000000"> </font></div>
</td>
<td width="100" height="17" >
<div align="left"><font color="#000000"> </font></div>
</td>
<td width="60" height="17" >
<div align="right"><font color="#000000"> </font></div>
</td>
<td width="80" height="17" >
<div align="right"><font color="#000000"> </font></div>
</td>
<td width="100" height="17" >
<div align="right"><font color="#000000"><%=allocat.doubleFormat(subFee,2)%></font></div>
</td>
</tr>
<%
}
%>
<tr class="textb">
<td class="textb" width="80" height="2">
<div align="left"><font color="#000000"><b>总计:</b></font></div>
</td>
<td width="100" height="2" >
<div align="left"></div>
</td>
<td width="80" height="2" >
<div align="left"></div>
</td>
<td width="80" height="2" >
<div align="left"></div>
</td>
<td width="100" height="2" >
<div align="left"></div>
</td>
<td width="100" height="2" >
<div align="left"></div>
</td>
<td width="60" height="2" >
<div align="right"></div>
</td>
<td width="80" height="2" >
<div align="right"></div>
</td>
<td class="textb" width="100" height="2">
<div align="right"><font color="#000000"><b><%=allocat.doubleFormat(totalFee,2)%></b></font></div>
</td>
</tr>
</table>
<p> </p>
</blockquote>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -