📄 planselllist.jsp
字号:
<jsp:useBean id="department" class="src.wuyang.Department" scope="page"/>
<jsp:useBean id="production" class="src.wuyang.Production" scope="page"/>
<jsp:useBean id="planSell" class="src.wuyang.PlanSell" 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>
<link rel="stylesheet" href="css.css" type="text/css">
</head>
<%
int position,state,curPage,totalPage;
int numInOnePage = planSell.getNumInOnePage();
planSell.listPage(request);
position = planSell.listPosition;
state = planSell.state;
curPage = planSell.curPage;
totalPage = planSell.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>
<!--<form method="post"> -->
<table width="88%" border="1" bordercolorlight="#000000" bordercolordark="#CCCCCC" cellpadding="0" cellspacing="0">
<tr bgcolor="#949b93" align="center">
<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>
<%
for(int listCount = 0; listCount < numInOnePage && (planSell.next() > 0) ; listCount++) {
department.load(planSell.getDeptId());
production.load(planSell.getProductId());
%>
<tr>
<td height="23" class="textb"><%= planSell.getPlanSellId() %></td>
<td height="23" class="textb" align="center"><%
if ((department.getDeptName()!=null)&&(!department.getDeptName().equals(""))) {
out.println(department.getDeptName());}
else
{out.println(" ");} %></td>
<td height="23" class="textb" align="center"><%
if ((production.getProductName()!=null)&&(!production.getProductName().equals(""))) {
out.println(production.getProductName());}
else
{out.println(" ");} %></td>
<td height="23" class="textb" align="center"><%
if ((production.getProductDesc()!=null)&&(!production.getProductDesc().equals(""))) {
out.println(production.getProductDesc());}
else
{out.println(" ");} %></td>
<td height="23" class="textb" align="right"><%
if (planSell.getPlanAmount()!=0) {
out.println(planSell.getPlanAmount());}
else
{out.println(" ");} %></td>
<td height="23" class="textb" align="center"><%
if ((planSell.getSellBegTime()!=null)&&(!planSell.getSellBegTime().equals(""))) {
out.println(planSell.getStringDate(planSell.getSellBegTime(),0));}
else
{out.println(" ");} %></td>
<td height="23" class="textb" align="center"><%
if ((planSell.getSellEndTime()!=null)&&(!planSell.getSellEndTime().equals(""))) {
out.println(planSell.getStringDate(planSell.getSellEndTime(),0));}
else
{out.println(" ");} %></td>
</tr>
<%
}
%>
</table>
<p> <span class="text">
<% if (position==0&&state==0){ %>
页码 <%=curPage %> / <%=totalPage%>
<% } else if (position==0&&state==2){ %>
<a href="PlanSelllist.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>   页码
<%=curPage %> / <%=totalPage%>
<% } else if (position>0&&state==-1){ %>
<a href="PlanSelllist.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>     页码
<%=curPage %> / <%=totalPage%>
<% } else if (position>0&&state==1){ %>
<a href="PlanSelllist.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>  <a href="PlanSelllist.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>  页码
<%=curPage %> / <%=totalPage%>
<% } %>
</span>
</blockquote>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -