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

📄 stocksubledgerview.jsp~5~

📁 java 通用进销存系统。很完整的说明文档和源码以及源程序。
💻 JSP~5~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import = "data.*, user.*, method.DataMethod"%>
<%
  //设置取得字符串的编码机制
  request.setCharacterEncoding("GBK");
  String userName = "";
  if(session.getAttribute("user") != null){
    User user = (User)session.getAttribute("user");
    userName = user.getUserName();
  }else{
    out.print("<h3>请先登陆系统.</h3>");
    return;
  }
  String ledgerDate = "";
  if(session.getAttribute("ledgerDate") == null){
    out.print("<h3>请先选择账套.</h3>");
    return;
  }else{
    ledgerDate = (String)session.getAttribute("ledgerDate");
  }
  //创建库存明细账套数组
  String[][] stockLedgers = new String[0][6];
  //创建数据类
  StockManagementData stockManagementData = new StockManagementData();
  //创建方法类
  DataMethod dataMethod = new DataMethod();
  //根据传入参数取得库存明细账套数组
  if(request.getParameter("orderId") != null){
  }
  //创建表格标题数组
  String[] colNames = {"单据编号", "单据类型", "供应商", "请购员", "订购员", "验收员",
               "现金管理员", "收货地址", "仓库名", "订单日期", "到货日期", "完成状态", "备注"};
%>
<html>
<head>
<title>库存明细账套查看页面:用户(<%=userName%>):账套(<%=ledgerDate%>)</title>
</head>
<body bgcolor="#ffffff">
<center>
<h3>库存明细账套查看页面:用户(<%=userName%>):账套(<%=ledgerDate%>)</h3>
<form action="stockledgerview.jsp" method="get">
<p>
  查询条件:
  <select name="selectedIndex">
    <option value="0">根据单据编号查询</option>
    <option value="1">根据请购员查询</option>
    <option value="2">根据订购员查询</option>
    <option value="3">根据验收员查询</option>
    <option value="4">根据收货地址查询</option>
    <option value="5">根据仓库名查询</option>
    <option value="6">根据完成状态查询</option>
    <option value="7">根据订单日期查询</option>
  </select>
  查询值:
  <input name="searchValue" type="text" size="18">
</p>
<p>
  开始日期:
  <input name="startDate" type="text" size="12">
  结束日期:
  <input name="endDate" type="text" size="12">
  <input name="search" type="submit" value="查询">
</p>
</form>
<hr size="3" color="#0066FF">
<!--根据库存明细账套数组显示表格内容-->
<table width="100%" border="1">
  <tr align="center">
    <%for(int i = 0; i < colNames.length; i++){%>
      <td><font size="-1"><%=colNames[i]%></font></td>
    <%}%>
  </tr>
  <%for (int i = 0; i < stockLedgers.length; i++){%>
    <tr align="left">
      <%for(int j = 0; j < stockLedgers[0].length; j++){
        if(j == stockLedgers[0].length - 1){%>
          <td>
            <font size="-1">
	      <textarea name="remark" cols="10" rows="1"><%=stockLedgers[i][j]%></textarea>
	    </font>
          </td>
        <%}else if(j == 0){%>
            <td>
              <font size="-1">
                 <a href="stocksubledgerview.jsp?orderId=<%=stockLedgers[i][j]%>" target="stocksubledger">
                   <%=stockLedgers[i][j]%>
                 </a>
              </font>
            </td>
        <%}else{%>
            <td><font size="-1"><%=stockLedgers[i][j]%>&nbsp;</font></td>
      <%  }
        }%>
    </tr>
  <%}%>
</table>
</center>
</body>
</html>

⌨️ 快捷键说明

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