📄 allocatproductlist.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 %> / <%=totalPage%>
<% } else if (position==0&&state==2){ %>
<a href="AllocatProductList.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>   页码 <%=curPage %> / <%=totalPage%>
<% } else if (position>0&&state==-1){ %>
<a href="AllocatProductList.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>     页码 <%=curPage %> / <%=totalPage%>
<% } else if (position>0&&state==1){ %>
<a href="AllocatProductList.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>  <a href="AllocatProductList.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>  页码 <%=curPage %> / <%=totalPage%>
<% } %>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -