equipment_modify_success.jsp
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:1k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ page import="java.lang.*"%>
  3. <%@ page import="java.util.Collection"%>
  4. <%@ page import="java.util.Iterator"%>
  5. <%@ page import="java.util.Vector"%>
  6. <%@ page import="java.sql.Timestamp"%>
  7. <%@ page import="com.vnex.intranet.util.TimeStamp"%>
  8. <%@ page import="com.vnex.intranet.equipment.value.UserValueBean"%>
  9. <jsp:useBean id="equipmentProxy" class="com.vnex.intranet.equipment.proxy.EquipmentProxyBean" scope="page" /> 
  10. <jsp:useBean id="equipmentValue" class="com.vnex.intranet.equipment.value.EquipmentValueBean" scope="page" /> 
  11. <jsp:setProperty name="equipmentValue" property="*" />
  12. <%
  13. String sId;
  14. int equipmentId;
  15. Timestamp time = null;
  16. sId = request.getParameter("equipmentId");
  17. equipmentId = (new Integer(sId)).intValue();
  18. equipmentValue.setId(equipmentId);
  19. if (request.getParameter("beginDay").length() != 0)
  20.     {
  21.     String beginTime = request.getParameter("beginDay") + " 00:00:00";
  22.     time = TimeStamp.toTimestamp(beginTime);     
  23. }
  24. equipmentValue.setBuyDate(time);  
  25. equipmentProxy.modifyEquipment(equipmentValue);
  26. System.out.println("modify Ok");
  27. %>
  28. <html>
  29. <head>
  30. <script language=javascript>
  31. <!--
  32. function forward()
  33. {
  34. document.location="/mainctrl/equipmentDetail?equipmentId=<%= equipmentValue.getId()%>";
  35. }
  36. //-->
  37. </script>
  38. </head>
  39. <body onload="javascript:forward()">
  40. 成功!
  41. </body>
  42. <html>
  43. 成功!