9194790b0f85af75738342fe854777126324c7bf.svn-base 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ page language="java"
  3. import="java.util.ArrayList,
  4. com.sysmodel.listmodel.xmlmodel.impl.FormListImpl,
  5. com.sysmodel.listmodel.xmlmodel.impl.ListFieldImpl,
  6. com.sysmodel.listmodel.xmlmodel.impl.QueryListImpl"%>
  7. <%
  8. String listid = request.getParameter("listid") == null ? "" : request.getParameter("listid");
  9. request.setCharacterEncoding("utf-8");
  10. FormListImpl FormList = null;
  11. if(session.getAttribute("FormList"+listid) == null){
  12. return;
  13. } else {
  14. FormList = (FormListImpl)session.getAttribute("FormList"+listid);
  15. ArrayList newQueryListImpls = new ArrayList();
  16. QueryListImpl QueryListImpl = (QueryListImpl)FormList.getQueryList();
  17. ArrayList QueryListImpls = QueryListImpl.getlistFields();
  18. for (int i = 0 ; i < QueryListImpls.size() ; i++) {
  19. String lable = request.getParameter(""+i);
  20. for (int j = 0 ; j < QueryListImpls.size(); j++) {
  21. ListFieldImpl ListFieldImpl = (ListFieldImpl)QueryListImpls.get(j);
  22. if(ListFieldImpl.getLabel().equals(lable)){
  23. newQueryListImpls.add(ListFieldImpl);
  24. }
  25. }
  26. }
  27. QueryListImpl.setlistFields(newQueryListImpls);
  28. FormList.setQueryList(QueryListImpl);
  29. session.setAttribute("FormList"+listid,FormList);
  30. %>
  31. <script type="text/javascript">
  32. var url = window.opener.location.href;
  33. url = url.replace("sessionReload=true","sessionReload=false");
  34. window.opener.location.replace(url);
  35. window.close();
  36. </script>
  37. <%}%>