equipment_modify_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="page" />
- <jsp:useBean id="equipmentValue" class="com.vnex.intranet.equipment.value.EquipmentValueBean" scope="page" />
- <jsp:setProperty name="equipmentValue" property="*" />
- <%
- String sId;
- int equipmentId;
- Timestamp time = null;
- sId = request.getParameter("equipmentId");
- equipmentId = (new Integer(sId)).intValue();
- equipmentValue.setId(equipmentId);
- if (request.getParameter("beginDay").length() != 0)
- {
- String beginTime = request.getParameter("beginDay") + " 00:00:00";
- time = TimeStamp.toTimestamp(beginTime);
- }
- equipmentValue.setBuyDate(time);
- equipmentProxy.modifyEquipment(equipmentValue);
- System.out.println("modify Ok");
- %>
- <html>
- <head>
- <script language=javascript>
- <!--
- function forward()
- {
- document.location="/mainctrl/equipmentDetail?equipmentId=<%= equipmentValue.getId()%>";
- }
- //-->
- </script>
- </head>
- <body onload="javascript:forward()">
- 成功!
- </body>
- <html>
- 成功!