treeFlowModel.jsp 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=GBK">
  8. <title>Insert title here</title>
  9. <link
  10. href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css"
  11. rel="stylesheet" type="text/css" />
  12. <script type="text/javascript" src="/shares/js/jquery-1.8.2.js"></script>
  13. <script type="text/javascript" src="/shares/js/yw/bpm/promptDefine.js"></script>
  14. <script
  15. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js"
  16. type="text/javascript"></script>
  17. <link href="${pageContext.request.contextPath}/main.css"
  18. rel="stylesheet" type="text/css" />
  19. <script type="text/javascript" src="/shares/js/constant.js"></script>
  20. <script type="text/javascript" src="/shares/js/common.js"></script>
  21. <script type="text/javascript">
  22. $(function() {
  23. $("#tree2").ligerTree({
  24. checkbox : false,
  25. parentIcon : null,
  26. childIcon : null,
  27. attribute: ['id'],
  28. openFolderEven:false,
  29. nodeWidth : 140,
  30. onSelect: function(node){
  31. var id = node.data.id;
  32. if(id == -1){
  33. parent.document.getElementById('rightFrame').src=
  34. '${pageContext.request.contextPath }/TacheModelAction.do?task=toListForConfig&modelId=${requestScope.modelId }';
  35. } else {
  36. refreshT(id);
  37. }
  38. }
  39. });
  40. $("#tree3").ligerTree({
  41. checkbox : false,
  42. parentIcon : null,
  43. childIcon : null,
  44. nodeWidth : 140,
  45. openFolderEven:false,
  46. attribute: ['id'],
  47. onSelect: function(node){
  48. var id = node.data.id;
  49. if(id == -2){
  50. parent.document.getElementById('rightFrame').src=
  51. '${pageContext.request.contextPath }/PathModelAction.do?task=toListForConfig&modelId=${requestScope.modelId }';
  52. } else {
  53. refreshP(id);
  54. }
  55. }
  56. });
  57. });
  58. function refreshT(tmodelId){
  59. parent.document.getElementById('rightFrame').src=
  60. '${pageContext.request.contextPath }/TacheModelAction.do?task=info&tmodelId=' + tmodelId;
  61. }
  62. function refreshP(pathId){
  63. parent.document.getElementById('rightFrame').src=
  64. '${pageContext.request.contextPath }/PathModelAction.do?task=info&pathId=' + pathId;
  65. }
  66. </script>
  67. </head>
  68. <body>
  69. <div
  70. style="width: 95%; margin: 5px; float: left; border: 1px solid #ccc; ">
  71. <ul id="tree2">
  72. <li id="-1"><span>»·½ÚÁбí</span>
  73. <ul>
  74. <c:forEach items="${requestScope.tacheModelTrees }"
  75. var="tacheModel">
  76. <li id="${tacheModel.tmodelId }"><span>${tacheModel.tmodelName }</span></li>
  77. </c:forEach>
  78. </ul></li>
  79. </ul>
  80. <ul id="tree3">
  81. <li id="-2"><span>·¾¶Áбí</span>
  82. <ul>
  83. <c:forEach items="${requestScope.pathModelTrees }"
  84. var="pathModel">
  85. <li id="${pathModel.pathId }"><span>·¾¶${pathModel.pathId }</span></li>
  86. </c:forEach>
  87. </ul></li>
  88. </ul>
  89. </div>
  90. </body>
  91. </html>