📄 productpricelist.jsp
字号:
<jsp:useBean id="queryProduct" class="src.wuyang.Production" scope="session"/>
<jsp:useBean id="productClass" class="src.wuyang.ProductClass" scope="page" />
<jsp:useBean id="dept" class="src.wuyang.Department" 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 = queryProduct.getNumInOnePage();
queryProduct.listPage(request);
position = queryProduct.listPosition;
state = queryProduct.state;
curPage = queryProduct.curPage;
totalPage = queryProduct.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">
<blockquote><br>
<br>
<table width="88%" border="1" bordercolorlight="#000000" bordercolordark="#CCCCCC" cellpadding="0" cellspacing="0">
<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>
</tr>
<%
for(int listCount = 0; listCount < numInOnePage && (queryProduct.next() > 0) ; listCount++) {
productClass.load(queryProduct.getClassId());
dept.load(queryProduct.getDeptId());
%>
<tr class="textb">
<td><%=queryProduct.getProductId() %></td>
<td><%=queryProduct.getProductName() %></td>
<td><%=productClass.getClassDesc() %> </td>
<td><div align="right"><%=queryProduct.doubleFormat(queryProduct.getRefPrice(),2)%></div></td>
<td><div align="center"><%=dept.getDeptName() %></div></td>
</tr>
<%
}
%>
</table>
<p class="textb">
<% if (position==0&&state==0){ %>
页码 <%=curPage %> / <%=totalPage%>
<% } else if (position==0&&state==2){ %>
<a href="ProductPricelist.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>   页码
<%=curPage %> / <%=totalPage%>
<% } else if (position>0&&state==-1){ %>
<a href="ProductPricelist.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>     页码
<%=curPage %> / <%=totalPage%>
<% } else if (position>0&&state==1){ %>
<a href="ProductPricelist.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>  <a href="ProductList.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>  页码
<%=curPage %> / <%=totalPage%>
<% } %>
</blockquote>
</td>
</tr>
</table>
<p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -