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

电子政务应用

开发平台:

Java

  1. <%@ page errorPage="/vnex/ErrorPage.jsp" %>
  2. <%@ page import="java.lang.*"%>
  3. <%@ page import="java.sql.Timestamp"%>
  4. <%@ page import="com.vnex.intranet.util.TimeStamp"%>
  5. <jsp:useBean id="equipmentProxy" class="com.vnex.intranet.equipment.proxy.EquipmentProxyBean" scope="session" /> 
  6. <jsp:useBean id="repairValue" class="com.vnex.intranet.equipment.value.EquipmentRepairRecordValueBean" scope="page" /> 
  7. <jsp:setProperty name="repairValue" property="*" />
  8. <%
  9. Timestamp time = null;
  10. if (request.getParameter("beginDay").length() != 0)
  11.     {
  12.     String beginTime = request.getParameter("beginDay") + " 00:00:00";
  13.     time = TimeStamp.toTimestamp(beginTime);     
  14. }
  15. repairValue.setTime(time);
  16. int eId = (new Integer(request.getParameter("equipmentId"))).intValue();
  17. repairValue.setEquipmentId(eId);
  18. equipmentProxy.addRepairRecord(repairValue);
  19. %>
  20. <html>
  21. <head>
  22. <script language=javascript>
  23. <!--
  24. function forward()
  25. {
  26. document.location="/mainctrl/equipmentRepairList?equipmentId=<%= eId%>";
  27. }
  28. //-->
  29. </script>
  30. </head>
  31. <body onload="javascript:forward()">
  32. 成功!
  33. </body>
  34. </html>