12345678910111213141516171819202122232425262728293031323334353637383940 |
- <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
- <%@ page language="java"
- import="java.util.ArrayList,
- com.sysmodel.listmodel.xmlmodel.impl.FormListImpl,
- com.sysmodel.listmodel.xmlmodel.impl.ListFieldImpl,
- com.sysmodel.listmodel.xmlmodel.impl.QueryListImpl"%>
- <%
- String listid = request.getParameter("listid") == null ? "" : request.getParameter("listid");
- request.setCharacterEncoding("utf-8");
- FormListImpl FormList = null;
- if(session.getAttribute("FormList"+listid) == null){
- return;
- } else {
- FormList = (FormListImpl)session.getAttribute("FormList"+listid);
- ArrayList newQueryListImpls = new ArrayList();
- QueryListImpl QueryListImpl = (QueryListImpl)FormList.getQueryList();
- ArrayList QueryListImpls = QueryListImpl.getlistFields();
-
- for (int i = 0 ; i < QueryListImpls.size() ; i++) {
- String lable = request.getParameter(""+i);
- for (int j = 0 ; j < QueryListImpls.size(); j++) {
- ListFieldImpl ListFieldImpl = (ListFieldImpl)QueryListImpls.get(j);
- if(ListFieldImpl.getLabel().equals(lable)){
- newQueryListImpls.add(ListFieldImpl);
- }
- }
- }
-
- QueryListImpl.setlistFields(newQueryListImpls);
- FormList.setQueryList(QueryListImpl);
- session.setAttribute("FormList"+listid,FormList);
- %>
- <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>
- <%}%>
|