equipment_use_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"%>
- <%@ page import="com.vnex.intranet.equipment.value.UserValueBean"%>
- <%@ page import="com.vnex.intranet.equipment.process.EquipmentException"%>
- <jsp:useBean id="equipmentProxy" class="com.vnex.intranet.equipment.proxy.EquipmentProxyBean" scope="session" />
- <jsp:useBean id="useValueAdd" class="com.vnex.intranet.equipment.value.EquipmentUseRecordValueBean" scope="session" />
- <jsp:setProperty name="useValueAdd" property="*" />
- <%
- Timestamp time = null;
- String equipmentId = request.getParameter("equipmentId");
- String equipmentCode = request.getParameter("equipmentCode");
- if (request.getParameter("startDay").length() != 0)
- {
- String startDay= request.getParameter("startDay") + " 00:00:00";
- time = TimeStamp.toTimestamp(startDay);
- }
- if (request.getParameter("equipmentId") == null)
- throw new EquipmentException("没有找到相应的ID号!");
- useValueAdd.setEquipmentId(Integer.parseInt(request.getParameter("equipmentId")));
- useValueAdd.setStartTime(time);
- equipmentProxy.addUseRecord(useValueAdd);
- %>
- <html>
- <head>
- <script language=javascript>
- function forward()
- {
- document.location="/mainctrl/equipmentUseList?equipmentId=<%=equipmentId%>&equipmentCode=<%=equipmentCode%>";
- }
- </script>
- </head>
- <body onload="javascript:forward()">
- 成功!
- </body>
- <html>