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

📄 warehouseview.jsp~9~

📁 java 通用进销存系统。很完整的说明文档和源码以及源程序。
💻 JSP~9~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import = "data.*, user.*"%>
<%
  //设置取得字符串的编码机制
  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;
  }
  //创建数据类
  StockManagementData stockManagementData = new StockManagementData();
  //取得仓库数组
  String[][] warehouse = stockManagementData.getAllWarehouse(searchValue);
  //创建表格标题数组
  String[] colNames = new String[]{"仓库名字", "拼音码", "位置", "描述"};
%>
<html>
<head>
<title>仓库查看页面:用户(<%=userName%>)</title>
</head>
<body bgcolor="#ffffff">
<center>
<h3>仓库查看页面:用户(<%=userName%>)</h3>
<form action="warehouseview.jsp" method="get">
<p>
  查询条件:
  <select name="selectedIndex">
    <option value="0">按仓库名字查询</option>
    <option value="1">按地区查询</option>
  </select>
  查询值:
  <input name="searchValue" type="text" size="18">
  <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 < warehouse.length; i++){%>
    <tr align="left">
      <%for(int j = 0; j < warehouse[0].length; j++){
        if(j == warehouse[0].length - 1){%>
          <td>
            <font size="-1">
	      <textarea name="remark" cols="10" rows="1"><%=warehouse[i][j]%></textarea>
	    </font>
          </td>
        <%}else{%>
            <td><font size="-1"><%=warehouse[i][j]%></font></td>
      <%  }
        }%>
    </tr>
  <%}%>
</table>
</center>
</body>
</html>

⌨️ 快捷键说明

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