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

📄 importproductlist.jsp

📁 (Java+SQL)-大型企业JAVA的ERP系统
💻 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 + -