bde4e1b23a8b54df71c253fb815d8b95673da12e.svn-base 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ page language="java"
  3. import="java.util.ArrayList,
  4. com.sysmodel.collectmodel.xmlmodel.impl.FormCollectionImpl,
  5. com.sysmodel.collectmodel.xmlmodel.impl.PageRootImpl"%>
  6. <%
  7. String pageid = request.getParameter("pageid") == null ? "" : request.getParameter("pageid");
  8. request.setCharacterEncoding("utf-8");
  9. FormCollectionImpl FormCollect = null;
  10. if(session.getAttribute("FormCollect"+pageid) == null){
  11. return;
  12. } else {
  13. FormCollect = (FormCollectionImpl)session.getAttribute("FormCollect"+pageid);
  14. PageRootImpl PageRootImpl=(PageRootImpl)FormCollect.getPageRoot();
  15. ArrayList actions = FormCollect.getPageRoot().getAllActions();
  16. ArrayList newActions = new ArrayList();
  17. for (int i = 0 ; i < actions.size() ; i++) {
  18. String type = request.getParameter(""+i);
  19. newActions.add( FormCollect.getPageRoot().getActionByType(type));
  20. }
  21. PageRootImpl.setAlAction(newActions);
  22. FormCollect.setPageRoot(PageRootImpl);
  23. session.setAttribute("FormCollect"+pageid,FormCollect);
  24. %>
  25. <script type="text/javascript">
  26. var url = window.opener.location.href;
  27. url = url.replace("sessionReload=true","sessionReload=false");
  28. window.opener.location.replace(url);
  29. window.close();
  30. </script>
  31. <%}%>