?? produce_new_order.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("/RFID/pages/login.jsp");
return;
}
List orderList = null;
if(session.getAttribute("orderList") == null){
/* 獲得所有訂單的列表 */
TOrderDAO orderDAO = new TOrderDAO();
orderList = orderDAO.getOrder();
}else{
orderList = (List)session.getAttribute("orderList");
}
request.setAttribute("orderList",orderList);
%>
<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;
}
-->
</style>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>基于RFID的物流管理演示系統(tǒng)</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">,歡迎登錄生產(chǎn)子系統(tǒng)</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="style2"></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=form2 action="OrderAction.do" method="post">
<input type="hidden" name="todo" value="search">
<td height="58"> <span class="style1">請輸入酒名關(guān)鍵字:</span> <input type="text" name="name">
<input type="submit" name="Submit" value="查詢">
</td>
</form>
</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>數(shù)量</td>
<td>截止日期</td>
<td>進(jìn)行生產(chǎn)</td>
</tr>
<%
/* 遍歷輸出所有的訂單信息 */
if((orderList != null) && (orderList.size() > 0)) {
%>
<logic:iterate id="order" name="orderList" scope="request" type="com.rfid.model.TOrder">
<%
int status = order.getStatus();
if( status == Global.ORDER_STATUS_PRODUCT){
%>
<tr align="center" class="style2">
<td><%=order.getId() %></td>
<td><%=order.getName() %></td>
<td><%=order.getNumber() %></td>
<td><%=order.getLast_time() %></td>
<td>
<form name=form3 action="ProductAction.do" method="post">
<input type="hidden" name="todo" value="insert">
<input type="hidden" name="name" value="<%=order.getName() %>">
<input type="hidden" name="number" value="<%=order.getNumber() %>">
<input type="hidden" name="order_id" value="<%=order.getId() %>">
<input type="submit" name="Submit" value="進(jìn)行生產(chǎn)">
</form>
</td>
</tr>
<% } %>
</logic:iterate>
<%
}
%>
</table></td>
</tr>
</table>
<%
session.removeAttribute("orderList");
%>
<br><br><br><br>
<table width="513" border="0" align="left" background="../icons/1.png" bgcolor="#9eb6d8" height="33">
<tr>
<td width="109" align="left" class="style2"><a href="produce_index.jsp">返回到生產(chǎn)子系統(tǒng)主頁</a></td>
</tr>
</table>
<jsp:include page="../include/floor.jsp" />
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -