?? importproductlist.jsp
字號:
<jsp:useBean id="importproduct" class="src.wuyang.ImportProduct" scope="session"/>
<jsp:useBean id="product" class="src.wuyang.Production" 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 = importproduct.getNumInOnePage();
importproduct.listPage(request);
position = importproduct.listPosition;
state = importproduct.state;
curPage = importproduct.curPage;
totalPage = importproduct.totalPage;
//System.out.println("totalPage=" + totalPage);
//System.out.println("curPage=" + curPage);
//System.out.println("position=" + position);
//System.out.println("state=" + state);
%>
<body bgcolor="#949B93" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="1" height="90%" cellspacing="0" cellpadding="0" align="center" bordercolorlight="#616860" bordercolordark="#CCCCCC" bgcolor="#4c7171" >
<tr>
<td valign="top" >
<br><br>
<form method="post"> <blockquote>
<table border="1" bordercolorlight="#000000" bordercolordark="#CCCCCC" cellpadding="0" cellspacing="0"> <tr bgcolor="#949b93">
<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>
<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>
<%
float totalPrice=0;
float subPrice=0;
for(int listCount = 0; listCount < numInOnePage && (importproduct.next() > 0) ; listCount++)
{
%>
<tr>
<td height="23" class="textb"><%=importproduct.getContractId() %></td>
<td height="23" class="textb"><%=importproduct.getProductId()%></td>
<% product.load(importproduct.getProductId());
%>
<td height="23" class="textb"><%=product.getProductName()%></td>
<td height="23" class="textb"><%=product.getProductEName()%></td>
<td height="23" class="textb"><%=product.getProductDesc()%></td>
<td height="23" class="textb"><%=importproduct.getQuantity()%> </td>
<td height="23" class="textb"><%=importproduct.getUnitPrice()%>
</td>
<% subPrice=importproduct.getQuantity()*importproduct.getUnitPrice();
%>
<td height="23" class="textb"><%=subPrice%> </td>
<td height="23" class="textb"><%=importproduct.getCustomsNum()%>
</td>
<td height="23" class="textb"><%=importproduct.getIncaseNum()%>
</td>
</tr>
<%
totalPrice=totalPrice+subPrice;
}
%>
</table>
<p class="textb"> <b>總計金額: <%=totalPrice%></b>
</blockquote>
</form>
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -