equipment_batch_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.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="session" /> 
  10. <jsp:useBean id="equipmentValueBatch" class="com.vnex.intranet.equipment.value.EquipmentValueBean" scope="session" /> 
  11. <jsp:setProperty name="equipmentValueBatch" property="*" />
  12. <%
  13. Timestamp time = null;
  14. if (request.getParameter("beginDay").length() != 0)
  15.     {
  16.     String beginTime = request.getParameter("beginDay") + " 00:00:00";
  17.     time = TimeStamp.toTimestamp(beginTime);     
  18. }
  19. equipmentValueBatch.setBuyDate(time);
  20. equipmentProxy.batchAddEquipment(equipmentValueBatch);
  21. String ctn = request.getParameter("ctn");
  22. String location = "";
  23. if (ctn.equals("1"))
  24. location = "/mainctrl/equipmentBatchAdd?ctn=1";
  25. else
  26. location = "/mainctrl/equipmentSearchResult";
  27. //如果点保存并清空SESSION仍回到增加页把location="/mainctrl/equipmentBatchAdd?ctn=0"就可以了,这是为了适合QA的要求而到列表页的。
  28. %>
  29. <html>
  30. <head>
  31. <script language=javascript>
  32. function forward()
  33. {
  34. document.location = "<%= location%>";
  35. }
  36. </script>
  37. </head>
  38. <body onload="javascript:forward()">
  39. 成功!
  40. </body>
  41. <html>