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

📄 allocatproductlist.jsp

📁 (Java+SQL)-大型企业JAVA的ERP系统
💻 JSP
字号:
<jsp:useBean id="AllocatProduct" class="src.wuyang.AllocatProduct" 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>
</head>
<% 
	int position,state,curPage,totalPage;    
	int numInOnePage = AllocatProduct.getNumInOnePage();
	AllocatProduct.listPage(request);
	
	position = AllocatProduct.listPosition;
        state = AllocatProduct.state;
        curPage = AllocatProduct.curPage;
        totalPage = AllocatProduct.totalPage;
%>
<body>
<form method="post"> 
 <table border="1">
  <tr><td>对应调拨单编号   </td>
<td>相应的产品编号   </td>
<td>件数   </td>
<td>总数   </td>
<td>包装   </td>
<td>含税单价   </td>
<td>实际发货数量   </td>
  </tr><%
for(int listCount = 0; listCount < numInOnePage && (AllocatProduct.next() > 0) ; listCount++) {
%>
  
  <tr>     <td><%= AllocatProduct.getAllocatId() %></td>
     <td><%= AllocatProduct.getProductId() %></td>
     <td><%= AllocatProduct.getCounting() %></td>
     <td><%= AllocatProduct.getQuantity() %></td>
     <td><%= AllocatProduct.getPack() %></td>
     <td><%= AllocatProduct.getUnitPrice() %></td>
     <td><%= AllocatProduct.getActQuantity() %></td>
  </tr>
<%
	}
%>
<p>
<%    if (position==0&&state==0){ %>
         页码 <%=curPage %>&nbsp/&nbsp<%=totalPage%>                     
<% } else if (position==0&&state==2){ %>
	<a href="AllocatProductList.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>&nbsp&nbsp&nbsp页码 <%=curPage %>&nbsp/&nbsp<%=totalPage%>
<% } else if (position>0&&state==-1){ %>
	<a href="AllocatProductList.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>&nbsp&nbsp&nbsp&nbsp&nbsp页码 <%=curPage %>&nbsp/&nbsp<%=totalPage%>
<% } else if (position>0&&state==1){ %>
	<a href="AllocatProductList.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>&nbsp&nbsp<a href="AllocatProductList.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>&nbsp&nbsp页码 <%=curPage %>&nbsp/&nbsp<%=totalPage%>
<% } %>	
</body>
</html>

⌨️ 快捷键说明

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