123456789101112131415161718192021222324252627282930313233343536373839 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%@ page language="java"
- import="java.util.ArrayList,
- com.sysmodel.collectmodel.xmlmodel.impl.FormCollectionImpl,
- com.sysmodel.collectmodel.xmlmodel.impl.ReportFieldImpl,
- com.sysmodel.collectmodel.xmlmodel.impl.PageBodyImpl"%>
- <%
- String pageid = request.getParameter("pageid") == null ? "" : request.getParameter("pageid");
- request.setCharacterEncoding("utf-8");
- FormCollectionImpl FormCollect = null;
- if(session.getAttribute("FormCollect"+pageid) == null){
- return;
- } else {
- FormCollect = (FormCollectionImpl)session.getAttribute("FormCollect"+pageid);
- PageBodyImpl PageBodyImpl=(PageBodyImpl)FormCollect.getPageBody();
- ArrayList ReportFieldImpls = FormCollect.getAllReportFields();
- ArrayList newReportFields = new ArrayList();
- for (int i = 0 ; i < ReportFieldImpls.size() ; i++) {
- String lable = request.getParameter(""+i);
- //lable = new String(lable.getBytes("ISO8859-1"), "GB2312");
- for (int j = 0 ; j < ReportFieldImpls.size(); j++) {
- ReportFieldImpl ReportFieldImpl = (ReportFieldImpl)ReportFieldImpls.get(j);
- if(ReportFieldImpl.getLabel().equals(lable)){
- newReportFields.add(ReportFieldImpl);
- }
- }
- }
- PageBodyImpl.setAlReportFields(newReportFields);
- FormCollect.setPageBody(PageBodyImpl);
- session.setAttribute("FormCollect"+pageid,FormCollect);
- %>
- <script type="text/javascript">
- var url = window.opener.location.href;
- url = url.replace("sessionReload=true","sessionReload=false");
- window.opener.location.replace(url);
- window.close();
- </script>
- <%}%>
|