equipment_batch_add_success.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:1k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="java.lang.*"%>
- <%@ page import="java.util.Collection"%>
- <%@ page import="java.util.Iterator"%>
- <%@ page import="java.util.Vector"%>
- <%@ page import="java.sql.Timestamp"%>
- <%@ page import="com.vnex.intranet.util.TimeStamp"%>
- <%@ page import="com.vnex.intranet.equipment.value.UserValueBean"%>
- <jsp:useBean id="equipmentProxy" class="com.vnex.intranet.equipment.proxy.EquipmentProxyBean" scope="session" />
- <jsp:useBean id="equipmentValueBatch" class="com.vnex.intranet.equipment.value.EquipmentValueBean" scope="session" />
- <jsp:setProperty name="equipmentValueBatch" property="*" />
- <%
- Timestamp time = null;
- if (request.getParameter("beginDay").length() != 0)
- {
- String beginTime = request.getParameter("beginDay") + " 00:00:00";
- time = TimeStamp.toTimestamp(beginTime);
- }
- equipmentValueBatch.setBuyDate(time);
- equipmentProxy.batchAddEquipment(equipmentValueBatch);
- String ctn = request.getParameter("ctn");
- String location = "";
- if (ctn.equals("1"))
- location = "/mainctrl/equipmentBatchAdd?ctn=1";
- else
- location = "/mainctrl/equipmentSearchResult";
- //如果点保存并清空SESSION仍回到增加页把location="/mainctrl/equipmentBatchAdd?ctn=0"就可以了,这是为了适合QA的要求而到列表页的。
- %>
- <html>
- <head>
- <script language=javascript>
- function forward()
- {
- document.location = "<%= location%>";
- }
- </script>
- </head>
- <body onload="javascript:forward()">
- 成功!
- </body>
- <html>