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

📄 reportlist.jsp

📁 (Java+SQL)-大型企业JAVA的ERP系统
💻 JSP
字号:
<jsp:useBean id="queryReport" class="src.wuyang.Report" 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 = queryReport.getNumInOnePage();
	queryReport.listPage(request);
	
	position = queryReport.listPosition;
        state = queryReport.state;
        curPage = queryReport.curPage;
        totalPage = queryReport.totalPage;
%>

<body bgcolor="#949B93" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="1" height="90%" cellspacing="0" cellpadding="0" align="center" bordercolorlight="#616860" bordercolordark="#CCCCCC" bgcolor="#4c7171" >
  <tr> 
    <td valign="top">
        <br>
        <table border="1" width="100%" class="text" cellpadding="0" cellspacing="0" borderColorLight=#666666 borderColorDark=#cccccc>
          <tr bgcolor="#949B93"> 
            <td class="text" width="17%" height="15"> 
              <div align="center"><b>客户名称</b></div>
            </td>
            <td class="text" width="15%" height="15"> 
              <div align="center"><b>产品名称</b></div>
            </td>
            <td class="text" width="16%" height="15"> 
              <div align="center"><b>规格/名称</b></div>
            </td>
            <td class="text" width="5%" height="15"> 
              <div align="center"><b>单位</b></div>
            </td>
            <td class="text" width="8%" height="15"> 
              <div align="center"><b>产品单价</b></div>
            </td>
            <td class="text" width="11%" height="15"> 
              <div align="center"><b>申请数量</b></div>
            </td>
            <td class="text" width="9%" height="15"> 
              <div align="center"><b>出入库数量</b></div>
            </td>
            <td class="text" width="8%" height="15"> 
              <div align="center"><b>业务员</b></div>
            </td>
            <td class="text" width="11%" height="15"> 
              <div align="center"><b>业务部门</b></div>
            </td>
          </tr>
          <%
	for(int listCount = 0; listCount < numInOnePage && (queryReport.next() > 0) ; listCount++) {
%>
          <tr> 
            <td class="textb" align="center" width="17%"><%=queryReport.getCustomerName()%></td>
            <td class="textb" align="center" width="15%"><%=queryReport.getProductName()%></td>
            <td class="textb" align="center" width="16%"><%=queryReport.getProductDesc()%></td>
            <td class="textb" align="center" width="5%"><%=queryReport.getUnit()%></td>
            <td class="textb" align="right" width="8%"><%=queryReport.doubleFormat(queryReport.getUnitPrice(),2)%></td>
            <td class="textb" align="right" width="11%"><%=queryReport.doubleFormat(queryReport.getQuantity(),2)%></td>
            <td class="textb" align="right" width="9%"><%=queryReport.doubleFormat(queryReport.getActQuantity(),2)%></td>
            <td class="textb" align="center" width="8%"><%=queryReport.getEmpName()%></td>
            <td class="textb" align="center" width="11%"><%=queryReport.getDeptName()%></td>
          </tr>
          <%
	}
%>
        </table>
        <p> <span class="text"> 
          <%    if (position==0&&state==0){ %>
          页码 <%=curPage %>&nbsp/&nbsp<%=totalPage%> 
          <% } else if (position==0&&state==2){ %>
          <a href="ReportList.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>&nbsp&nbsp&nbsp页码 
          <%=curPage %>&nbsp/&nbsp<%=totalPage%> 
          <% } else if (position>0&&state==-1){ %>
          <a href="ReportList.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="ReportList.jsp?browseMode=previous&position=<%=position%>&curPage=<%=curPage%>">上一页</a>&nbsp&nbsp<a href="ReportList.jsp?browseMode=next&position=<%=position%>&curPage=<%=curPage%>">下一页</a>&nbsp&nbsp页码 
          <%=curPage %>&nbsp/&nbsp<%=totalPage%> 
          <% } %>
          </span>
    </td>
  </tr>
</table>
<p>&nbsp;
</body>
</html>

⌨️ 快捷键说明

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