bpmDefinitionRuleSet.jsp 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/commons/include/html_doctype.html"%>
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <title>流程节点跳转规则设置</title>
  7. <%@include file="/commons/include/get.jsp"%>
  8. <script type="text/javascript" src="${ctx}/js/hotent/platform/bpm/FlowRuleWindow.js"></script>
  9. <script type="text/javascript">
  10. var actDefId = "${bpmDefinition.actDefId}";
  11. var deployId = "${bpmDefinition.actDeployId}";
  12. function setNodeRule(nodeId, nodeName) {
  13. var url = __ctx + "/platform/bpm/bpmNodeRule/edit.ht?deployId=" + deployId + "&actDefId=" + actDefId + "&nodeId=" + nodeId + "&nodeName=" + encodeURIComponent(nodeName);
  14. var winArgs = "dialogWidth=800px;dialogHeight=650px;help=0;status=0;scroll=1;center=0;resizable=1;";
  15. url = url.getNewUrl();
  16. //var rtn = window.showModalDialog(url, "", winArgs);
  17. //window.location.reload(true);
  18. DialogUtil.open({
  19. height:conf.dialogHeight,
  20. width: conf.dialogWidth,
  21. title : '流程节点跳转规则设置',
  22. url: url,
  23. //自定义参数
  24. sucCall:function(rtn){
  25. window.location.reload(true);
  26. }
  27. });
  28. }
  29. </script>
  30. </head>
  31. <body>
  32. <c:if test="${empty nodeId}">
  33. <jsp:include page="incDefinitionHead.jsp">
  34. <jsp:param value="节点人员设置" name="title" />
  35. </jsp:include>
  36. <f:tab curTab="跳转规则设置" tabName="flow" />
  37. </c:if>
  38. <div class="panel">
  39. <div class="panel-body">
  40. <form action="" method="post" id="">
  41. <input type="hidden" name="defId" value="${defId}" /> <input type="hidden" name="nodeId" value="${nodeId}" />
  42. <table class="table-grid" style="width: 100%">
  43. <thead>
  44. <tr>
  45. <th width="30" nowrap="nowrap">序号</th>
  46. <th >节点名称</th>
  47. <th >是否定义规则</th>
  48. <th >管理</th>
  49. </tr>
  50. </thead>
  51. <c:forEach items="${nodeSets}" var="nodeSet" varStatus="i">
  52. <tr>
  53. <td>${i.count}</td>
  54. <td>${nodeSet.nodeName}(${nodeSet.nodeId})</td>
  55. <td>
  56. <c:choose>
  57. <c:when test="${fn:length(nodeSetNodeRulesMap[nodeSet.setId])==0}">
  58. <span class="red">无</span>
  59. </c:when>
  60. <c:otherwise>
  61. <span class="green">已定义</span>
  62. </c:otherwise>
  63. </c:choose> </td>
  64. <td>
  65. <a href="javascript:;" class="link edit" onclick="setNodeRule('${nodeSet.nodeId}','${nodeSet.nodeName}')">编辑</a>
  66. </td>
  67. </tr>
  68. </c:forEach>
  69. </table>
  70. <div style="height: 40px"></div>
  71. </form>
  72. </div>
  73. </div>
  74. </body>
  75. </html>