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

📄 warehouse_out.jsp

📁 jsp网页
💻 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="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("/RFID/pages/login.jsp");
		return;
	}
	
	/* 获得提货单列表 */
	TGetProductsDAO getProductsDAO = new TGetProductsDAO();
	List getProductsList = getProductsDAO.getOutProducts();
	request.setAttribute("getProductsList",getProductsList);
	
	
	/* 获得出货单列表 */
	List outList = null;
	if(session.getAttribute("outList") == null){
		TOutStoreDAO dao1 = new TOutStoreDAO();
		outList = dao1.getOutStore();
	}else{
		outList = (List)session.getAttribute("outList");
	}
	request.setAttribute("outList",outList);
%>
<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>
<table width="800" height="99" align="center" cellspacing="0">
  <tr>
    <td><img src="../icons/2.png" width="800" height="100"></td>
  </tr>
</table>

<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">&nbsp;</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">&nbsp;&nbsp;<span class="style1"><a href="warehouse_in.jsp">&nbsp;入库管理</a></span>&nbsp;<img src="../icons/1.gif" width="7" height="18">&nbsp;<span class="style1">出库管理&nbsp;<img src="../icons/1.gif" width="7" height="18">&nbsp;</span><span class="style2"><a href="warehouse_search.jsp">库中产品</a></span></td>
  </tr>
</table>

<table width="800" border="1" align="center" cellspacing="0" bordercolor="#e5e5e5">
	<tr>
		<td class="style2" valign="bottom" height="49">等待提货的列表</td>
	</tr>
	<tr>
		<td>
			<table width="796" border="1">
				<tr class="style3" align="center" bordercolor="#cccc99" bgcolor="#cccccc">
					<td>ID</td>
					<td>订单ID</td>
					<td>酒名</td>
					<td>数量</td>
					<td>操作</td>
				</tr>
				
				<%
					/* 遍历输出提货单列表 */
					if((getProductsList != null) && (getProductsList.size() > 0)){
				%>
					<logic:iterate id="getproduct" name="getProductsList" scope="request" type="com.rfid.model.TGetProducts">
				        <form action="OutStoreAction.do" method="post">
				        <input type="hidden" name="todo" value="outstore">
				        <input type="hidden" name="name" value="<%=getproduct.getName() %>">
				        <input type="hidden" name="number" value="<%=getproduct.getNumber() %>">
				        <input type="hidden" name="orderid" value="<%=getproduct.getId() %>">
				        <tr class="style1" align="center" cellspacing="0" border="1">
							<td><%=getproduct.getId() %></td>
							<td><%=getproduct.getOrder_id() %></td>
							<td><%=getproduct.getName() %></td>
							<td><%=getproduct.getNumber() %></td>
							<td>
								<input type="submit" name="Submit" value="出库">
							</td>
						</tr>
						</form>
				    </logic:iterate>
				<%
					}
				%>
			</table>
		</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="OutStoreAction.do" method="post">
    <td height="58">	  <span class="style1">请输入酒名关键字:</span>&nbsp;&nbsp;&nbsp;
	<input type="text" name="name">    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      
	<input type="submit" name="Submit" value="查询">
	<input type="hidden" name="todo" value="search">
    </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>订单ID</td>
        <td>酒名</td>
        <td>数量</td>
        <td>出库时间</td>
        <td>出库人</td>
        <td>目的地</td>
        </tr>
        <%
					/* 遍历输出出库单列表 */
					if((getProductsList != null) && (getProductsList.size() > 0)){
				%>
					<logic:iterate id="outstore" name="outList" scope="request" type="com.rfid.model.TOutStore">
				        <tr class="style1" align="center" cellspacing="0" border="1">
							<td><%=outstore.getId() %></td>
							<td><%=outstore.getOrderid() %></td>
							<td><%=outstore.getName() %></td>
							<td><%=outstore.getNumber() %></td>
							<td><%=outstore.getInputtime() %></td>
							<td><%=outstore.getInputuser() %></td>
							<td><%
									if(outstore.getEndplace().equals("")){
										out.print("&nbsp");
									}else{
										out.print(outstore.getEndplace());
									}
								%>
							</td>
						</tr>
				    </logic:iterate>
				<%
					}
				%>
    </table></td>
  </tr>
</table>
<jsp:include page="../include/floor.jsp" />
<%
	session.removeAttribute("outList");
%>
</body>
</html>

⌨️ 快捷键说明

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