📄 warehouse_search.jsp
字号:
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="com.rfid.dao.*" %>
<%@ page import="com.rfid.global.*" %>
<%@ page import="com.rfid.model.*" %>
<%
/* 获得用户信息 */
TUSer user = (TUSer)session.getAttribute(Global.USER);
if(user == null)
{
response.sendRedirect("/pages/login.jsp");
return;
}
List productList = null;
if(session.getAttribute("productList") == null){
/* 获得所有产品的列表 */
TStoreProductsDAO dao = new TStoreProductsDAO();
productList = dao.getProduct();
}else{
productList = (List)session.getAttribute("productList");
}
request.setAttribute("productList",productList);
%>
<style type="text/css">
<!--
.style1 {
color: #AAAAAA;
font-size: 12px;
}
.style2 {
color: #ff9933;
font-size: 12px;
}
.style3 {font-size: 12px; color: #009999; }
.style4 {
font-size: 12px;
color: #CC9900;
}
.style5 {color: #FF0000; font-size: 12px; }
-->
</style>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>基于RFID的物流管理演示系统</title>
</head>
<body>
<jsp:include page="../include/logo.jsp" />
<table width="800" border="0" align="center" background="../icons/1.png" bgcolor="#9eb6d8">
<tr>
<td width="529"><span class="style2"><%=user.getUsername() %></span><span class="style4">,欢迎登录仓库管理子系统</span></td>
<td width="148" align="center" class="style2"> </td>
<td width="109" align="right" class="style2"><a href="../login.jsp">退出</a></td>
</tr>
</table>
<table width="800" border="1" align="center" cellspacing="0" bordercolor="#CDCDCD">
<tr>
<td align="left" bgcolor="#E3E3E3"> <span class="style1"> <a href="warehouse_in.jsp">入库管理</a></span> <img src="../icons/1.gif" width="7" height="18"> <span class="style1"><a href="warehouse_out.jsp">出库管理</a></span><span class="style1"> <img src="../icons/1.gif" width="7" height="18"> </span><span class="style1">库中产品</span></td>
</tr>
</table>
<table width="800" border="1" align="center" cellspacing="0" bordercolor="#E5E5E5">
<tr>
<td height="50" valign="bottom" class="style2">库中产品查询</td>
</tr>
<tr>
<form name="form1" action="StoreProductsAction.do" method="post">
<td height="58"><span class="style1">请输入酒名关键字:</span>
<input type="hidden" name="todo" value="search">
<input type="text" name="name">
<input type="submit" name="Submit" value="查询">
</form>
</td>
</tr>
</table>
<table width="800" border="1" align="center" cellspacing="0" bordercolor="#E5E5E5">
<tr>
<td height="49" valign="bottom" class="style2">库中产品列表</td>
</tr>
<tr>
<td><table width="796" border="1" cellspacing="0">
<tr align="center" bordercolor="#CCCC99" bgcolor="#CCCCCC" class="style3">
<td>ID</td>
<td>酒名</td>
<td>数量</td>
</tr>
<%
/* 遍历输出所有的产品信息 */
if((productList != null) && (productList.size() > 0)) {
%>
<logic:iterate id="product" name="productList" scope="request" type="com.rfid.model.TStoreProducts">
<tr align="center" class="style1">
<td><%=product.getId() %></td>
<td><%=product.getName() %></td>
<td><%=product.getNumber() %></td>
</tr>
</logic:iterate>
<%
}
%>
</table></td>
</tr>
</table>
<jsp:include page="../include/floor.jsp" />
<%
session.removeAttribute("productList");
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -