tableAttExc.jsp 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <%@ page contentType="text/html; charset=UTF-8" language="java" %>
  2. <%@ page language="java"
  3. import="com.sysmodel.collectmodel.xmlmodel.able.FormCollection,
  4. com.sysmodel.collectmodel.xmlmodel.impl.*"%>
  5. <%
  6. String pageid = request.getParameter("pageid") == null ? "" : request.getParameter("pageid");
  7. String action = request.getParameter("action") == null ? "" : request.getParameter("action") ;
  8. String pageTitle = request.getParameter("pageTitle") == null ? "" : request.getParameter("pageTitle") ;
  9. String pageHeadWidth = request.getParameter("pageHeadWidth") == null ? "" : request.getParameter("pageHeadWidth") ;
  10. String pageHeadHeight = request.getParameter("pageHeadHeight") == null ? "" : request.getParameter("pageHeadHeight") ;
  11. String backURL = request.getParameter("backURL") == null ? "" : request.getParameter("backURL") ;
  12. String pageBodyWidth = request.getParameter("pageBodyWidth") == null ? "" : request.getParameter("pageBodyWidth") ;
  13. String pageBodyHeight = request.getParameter("pageBodyHeight") == null ? "" : request.getParameter("pageBodyHeight") ;
  14. String labelWidth = request.getParameter("labelWidth") == null ? "" : request.getParameter("labelWidth") ;
  15. String controlWidth = request.getParameter("controlWidth") == null ? "" : request.getParameter("controlWidth") ;
  16. String columnCount = request.getParameter("columnCount") == null ? "" : request.getParameter("columnCount") ;
  17. String labelAlign = request.getParameter("labelAlign") == null ? "" : request.getParameter("labelAlign") ;
  18. String controlAlign = request.getParameter("controlAlign") == null ? "" : request.getParameter("controlAlign") ;
  19. String pageRootWidth = request.getParameter("pageRootWidth") == null ? "" : request.getParameter("pageRootWidth") ;
  20. String image = request.getParameter("image") == null ? "false" : request.getParameter("image") ;
  21. String align = request.getParameter("align") == null ? "" : request.getParameter("align") ;
  22. String pageRootHeight = request.getParameter("pageRootHeight") == null ? "" : request.getParameter("pageRootHeight") ;
  23. FormCollection FormCollection = null;
  24. if(session.getAttribute("FormCollect"+pageid) == null ){
  25. return;
  26. } else {
  27. FormCollection = (FormCollection)session.getAttribute("FormCollect"+pageid);
  28. PageHeadImpl PageHeadImpl = (PageHeadImpl)FormCollection.getPageHead();
  29. PageHeadImpl.setBackURL(backURL);
  30. PageHeadImpl.setHeight(pageHeadHeight + "%");
  31. PageHeadImpl.setPageTitle(pageTitle);
  32. PageHeadImpl.setWidth(pageHeadWidth + "%");
  33. PageBodyImpl PageBodyImpl = (PageBodyImpl)FormCollection.getPageBody();
  34. PageBodyImpl.setWidth(pageBodyWidth + "%" );
  35. PageBodyImpl.setHeight(pageBodyHeight + "%");
  36. if(!columnCount.equals("")){
  37. PageBodyImpl.setColumnCount(Integer.parseInt(columnCount));
  38. }
  39. PageBodyImpl.setControlAlign(controlAlign);
  40. PageBodyImpl.setControlWidth(controlWidth + "%");
  41. PageBodyImpl.setLabelAlign(labelAlign);
  42. PageBodyImpl.setLabelWidth(labelWidth + "%");
  43. PageRootImpl PageRootImpl = (PageRootImpl)FormCollection.getPageRoot();
  44. PageRootImpl.setWidth(pageRootWidth + "%");
  45. PageRootImpl.setHeight(pageRootHeight + "%");
  46. PageRootImpl.setAlign(align);
  47. PageRootImpl.setImage(new Boolean(image).booleanValue());
  48. session.setAttribute("FormCollect"+pageid , FormCollection);
  49. %>
  50. <script type="text/javascript">
  51. var url = window.opener.location.href;
  52. url = url.replace("sessionReload=true","sessionReload=false");
  53. window.opener.location.replace(url);
  54. window.close();
  55. </script>
  56. <%} %>