2f695b5eec2aff18dcbf0c8350e4b61864c67ddb.svn-base 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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.ReportFieldImpl,
  6. com.sysmodel.collectmodel.xmlmodel.impl.PageBodyImpl"%>
  7. <%
  8. String pageid = request.getParameter("pageid") == null ? "" : request.getParameter("pageid");
  9. request.setCharacterEncoding("utf-8");
  10. FormCollectionImpl FormCollect = null;
  11. if(session.getAttribute("FormCollect"+pageid) == null){
  12. return;
  13. } else {
  14. FormCollect = (FormCollectionImpl)session.getAttribute("FormCollect"+pageid);
  15. PageBodyImpl PageBodyImpl=(PageBodyImpl)FormCollect.getPageBody();
  16. ArrayList ReportFieldImpls = FormCollect.getAllReportFields();
  17. ArrayList newReportFields = new ArrayList();
  18. for (int i = 0 ; i < ReportFieldImpls.size() ; i++) {
  19. String lable = request.getParameter(""+i);
  20. //lable = new String(lable.getBytes("ISO8859-1"), "GB2312");
  21. for (int j = 0 ; j < ReportFieldImpls.size(); j++) {
  22. ReportFieldImpl ReportFieldImpl = (ReportFieldImpl)ReportFieldImpls.get(j);
  23. if(ReportFieldImpl.getLabel().equals(lable)){
  24. newReportFields.add(ReportFieldImpl);
  25. }
  26. }
  27. }
  28. PageBodyImpl.setAlReportFields(newReportFields);
  29. FormCollect.setPageBody(PageBodyImpl);
  30. session.setAttribute("FormCollect"+pageid,FormCollect);
  31. %>
  32. <script type="text/javascript">
  33. var url = window.opener.location.href;
  34. url = url.replace("sessionReload=true","sessionReload=false");
  35. window.opener.location.replace(url);
  36. window.close();
  37. </script>
  38. <%}%>