equipment_repair_add_success.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:1k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <%@ page import="java.lang.*"%>
- <%@ page import="java.sql.Timestamp"%>
- <%@ page import="com.vnex.intranet.util.TimeStamp"%>
- <jsp:useBean id="equipmentProxy" class="com.vnex.intranet.equipment.proxy.EquipmentProxyBean" scope="session" />
- <jsp:useBean id="repairValue" class="com.vnex.intranet.equipment.value.EquipmentRepairRecordValueBean" scope="page" />
- <jsp:setProperty name="repairValue" property="*" />
- <%
- Timestamp time = null;
- if (request.getParameter("beginDay").length() != 0)
- {
- String beginTime = request.getParameter("beginDay") + " 00:00:00";
- time = TimeStamp.toTimestamp(beginTime);
- }
- repairValue.setTime(time);
- int eId = (new Integer(request.getParameter("equipmentId"))).intValue();
- repairValue.setEquipmentId(eId);
- equipmentProxy.addRepairRecord(repairValue);
- %>
- <html>
- <head>
- <script language=javascript>
- <!--
- function forward()
- {
- document.location="/mainctrl/equipmentRepairList?equipmentId=<%= eId%>";
- }
- //-->
- </script>
- </head>
- <body onload="javascript:forward()">
- 成功!
- </body>
- </html>