listFlow_v_2_1.jsp 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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>流程列表</title>
  9. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  10. <link href="${pageContext.request.contextPath}/yw/bpm/style/flowlist.css" rel="stylesheet" type="text/css" />
  11. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  12. <script
  13. src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js"
  14. type="text/javascript"></script>
  15. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  16. <script type="text/javascript" src="/shares/js/constant.js"></script>
  17. <script type="text/javascript" src="/shares/js/common.js"></script>
  18. <script type="text/javascript" src="/shares/js/yw/bpm/oa.js"></script>
  19. <script type="text/javascript">
  20. function startFlow(modelId, modelName) {
  21. //var defaultName = '流程:'+ modelName + "(" + getDate() + " ${session.name})";
  22. var defaultName = "";
  23. $("input[type='text']:first").focus();
  24. $.ligerDialog.prompt('流程标题', defaultName, function(yes, value) {
  25. if (yes){
  26. if($.trim(value) == ''){
  27. addError("流程标题不能为空!");
  28. return;
  29. }
  30. if($.trim(value).length > 100){
  31. addError("流程标题不能超过100个字!");
  32. return;
  33. }
  34. value = value.replace("#", "%23");
  35. var dialogId = modelId + new Date().getTime();
  36. value = encodeURI(encodeURI(value)); // 增加对中文字符编码 tangj 20160302
  37. openODialog('${pageContext.request.contextPath }/FlowAction.do?task=toStart&modelId='
  38. + modelId + '&tabid='+getCurrentTabId() + '&modelName=' + value +
  39. '&dialogId=' + dialogId, '流程发起', dialogId);
  40. }
  41. });
  42. }
  43. function getDate(){
  44. var now = new Date();
  45. return now.getFullYear() + "-" + (now.getMonth()+1) + "-" + now.getDate();
  46. }
  47. var oldSearch = null;
  48. function searchInPage(){
  49. if(oldSearch != null){
  50. $("table[title*='" + oldSearch + "']").css("border" ,"");
  51. }
  52. var search = stripscript($("#insName").val());
  53. oldSearch = search;
  54. $("table[title*='" + search + "']").css("border" ,"2px solid #ff0000");
  55. }
  56. function removeSearch(){
  57. var search =stripscript($("#insName").val());
  58. $("table[title*='" + search + "']").css("border" ,"");
  59. $("#insName").val("");
  60. }
  61. </script>
  62. </head>
  63. <body>
  64. <div class="container-layout" style="padding-top: 40px; ">
  65. <div id="title" class="form-button" style="width:100%;">
  66. <input onclick="closeTabUseInOA();" type="button" value="关闭" class="l-button">
  67. </div>
  68. <div class="default_search" style="margin: 5px 0px 0px 0px ; width: 100%;">
  69. <ul class="list_search" style="width:250px;">
  70. <li class="title">流程标题:</li>
  71. <li class="text">
  72. <input type="text" id="insName" name="insName" style="width: 130px;">
  73. </li>
  74. </ul>
  75. <ul style="width:350px;"><li class="title">&nbsp;</li>
  76. <li class="search-button">
  77. <input type="button" class='l-button' name="search" onclick="searchInPage()" value="查询"/>
  78. <input type="button" class='l-button' name="search" onclick="removeSearch()" value="清除条件"/>
  79. </li>
  80. </ul>
  81. </div>
  82. <div id="liucheng">
  83. <c:forEach items="${requestScope.ftypeList }" var="flowType">
  84. <div id="liucheng_lx">
  85. <div id="liucheng_lx_name">
  86. <span><img src="${pageContext.request.contextPath}/yw/bpm/style/liucheng_lx_name.png" /></span>${flowType.typeName }
  87. </div>
  88. </div>
  89. <% int i = 1; %>
  90. <c:forEach items="${requestScope.fList }" var="flow" varStatus="s">
  91. <c:if test="${flowType.typeId eq flow.typeId.typeId }">
  92. <% if(i%5==1){%>
  93. <div id="liucheng_name">
  94. <% }%>
  95. <div id="liucheng_name1">
  96. <table width="100%" class="bg" onclick="startFlow('${flow.modelId }', '${flow.modelName }')" title="#${flow.modelName }" height="auto" cellpadding="0" cellspacing="0" border="0">
  97. <tbody>
  98. <tr>
  99. <td valign="middle" style="width:20%; text-align:center;"><img src="${pageContext.request.contextPath}/yw/bpm/style/li.png" /></td>
  100. <td style="width:80%;line-height:28px; text-align:left;" >${flow.modelName }</td>
  101. </tr>
  102. </tbody>
  103. </table>
  104. </div>
  105. <!-- <div id="liucheng_name1"> -->
  106. <%-- <a href="#${flow.modelName }" onclick="startFlow('${flow.modelId }', '${flow.modelName }')"><div>${flow.modelName }</div></a> --%>
  107. <!-- </div> -->
  108. <% if(i%5==0){%>
  109. </div>
  110. <% }
  111. i++;
  112. %>
  113. </c:if>
  114. </c:forEach>
  115. </c:forEach>
  116. </div>
  117. </div>
  118. </div>
  119. <%@ include file="/include/message.jsp"%>
  120. </body>
  121. </html>