📄 purchlist.jsp
字号:
<jsp:useBean id="Purch" class="src.wuyang.Purch" scope="session"/>
<jsp:useBean id="employee" class="src.wuyang.Employee" scope="page"/>
<jsp:useBean id="customer" class="src.wuyang.Customer" 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>
<%
String flag[] = {"销售","采购"};
String state0[] = {"要求部门经理审核","部门经理通过","采购部登记","高层审核通过","审核不通过","出入库","发票","完成","完成"};
int position,state,curPage,totalPage;
int numInOnePage = Purch.getNumInOnePage();
Purch.listPage(request);
position = Purch.listPosition;
state = Purch.state;
curPage = Purch.curPage;
totalPage = Purch.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>
<span class="textb">
<!--<form method="post"> -->
</span>
<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>
<td class="text">
<div align="center"><b>采购单状态 </b></div>
</td>
</tr>
<%
for(int listCount = 0; listCount < numInOnePage && (Purch.next() > 0) ; listCount++) {
employee.load(Purch.getProposer());
customer.load(Purch.getCustomerId());
%>
<tr>
<td class="textb"><a href="PurchDetail.jsp?purchId=<%=Purch.getPurchId()%>"><%= Purch.getPurchId() %></a></td>
<td class="textb"><%=customer.getCustomerName()%></td>
<td class="textb"><div align="right"><%=Purch.doubleFormat(Purch.getAppMoney(),2)%></div></td>
<td class="textb"><%=employee.getEmpName()%></td>
<td class="textb"><%=Purch.getStringDate(Purch.getAppDate(),0)%></td>
<td class="textb"><%=state0[Purch.getPurchState()]%></td>
</tr>
<%
}
%>
</table>
<p> <span class="textb">
<% if (position==0&&state==0){ %>
页码 <%=curPage %> / <%=totalPage%>
<% } else if (position==0&&state==2){ %>
<a href="Purchlist.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>   页码
<%=curPage %> / <%=totalPage%>
<% } else if (position>0&&state==-1){ %>
<a href="Purchlist.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>     页码
<%=curPage %> / <%=totalPage%>
<% } else if (position>0&&state==1){ %>
<a href="Purchlist.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>  <a href="PurchList.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>  页码
<%=curPage %> / <%=totalPage%>
<% } %>
</span>
</blockquote>
</td>
</tr>
</table>
<p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -