rutask_list.jsp 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  4. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  5. <%
  6. String path = request.getContextPath();
  7. String basePath = request.getScheme() + "://"
  8. + request.getServerName() + ":" + request.getServerPort()
  9. + path + "/";
  10. %>
  11. <!DOCTYPE html>
  12. <html lang="en">
  13. <head>
  14. <base href="<%=basePath%>">
  15. <!-- jsp文件头和头部 -->
  16. <%@ include file="../../system/index/top.jsp"%>
  17. <!-- 日期框 -->
  18. <link rel="stylesheet" href="static/ace/css/datepicker.css" />
  19. </head>
  20. <body class="no-skin">
  21. <!-- /section:basics/navbar.layout -->
  22. <div class="main-container" id="main-container">
  23. <!-- /section:basics/sidebar -->
  24. <div class="main-content">
  25. <div class="main-content-inner">
  26. <div class="page-content">
  27. <div class="row">
  28. <div class="col-xs-12">
  29. <!-- 检索 -->
  30. <form action="rutask/list.do" method="post" name="Form" id="Form">
  31. <table style="margin-top:5px;">
  32. <tr>
  33. <td>
  34. <div class="nav-search">
  35. <span class="input-icon">
  36. <input type="text" placeholder="这里输入关键词" class="nav-search-input" id="nav-search-input" autocomplete="off" name="keywords" value="${pd.keywords }" placeholder="这里输入关键词"/>
  37. <i class="ace-icon fa fa-search nav-search-icon"></i>
  38. </span>
  39. </div>
  40. </td>
  41. <td style="padding-left:2px;"><input class="span10 date-picker" name="lastStart" id="lastStart" value="${pd.lastStart }" type="text" data-date-format="yyyy-mm-dd" readonly="readonly" style="width:88px;" placeholder="开始日期" title="开始日期"/></td>
  42. <td style="padding-left:2px;"><input class="span10 date-picker" name="lastEnd" id="lastEnd" value="${pd.lastEnd }" type="text" data-date-format="yyyy-mm-dd" readonly="readonly" style="width:88px;" placeholder="结束日期" title="结束日期"/></td>
  43. <c:if test="${QX.cha == 1 }">
  44. <td style="vertical-align:top;padding-left:2px"><a class="btn btn-light btn-xs" onclick="tosearch();" title="检索"><i id="nav-search-icon" class="ace-icon fa fa-search bigger-110 nav-search-icon blue"></i></a></td>
  45. </c:if>
  46. </tr>
  47. </table>
  48. <!-- 检索 -->
  49. <table id="simple-table" class="table table-striped table-bordered table-hover" style="margin-top:5px;">
  50. <thead>
  51. <tr>
  52. <th class="center" style="width:50px;">序号</th>
  53. <th class="center">流程名称</th>
  54. <th class="center">申请人</th>
  55. <th class="center">当前节点(待办人)</th>
  56. <th class="center">当前任务</th>
  57. <th class="center"><i class="ace-icon fa fa-clock-o bigger-110 hidden-480"></i>创建时间</th>
  58. <th class="center">操作</th>
  59. </tr>
  60. </thead>
  61. <tbody>
  62. <!-- 开始循环 -->
  63. <c:choose>
  64. <c:when test="${not empty varList}">
  65. <c:if test="${QX.cha == 1 }">
  66. <c:forEach items="${varList}" var="var" varStatus="vs">
  67. <tr>
  68. <td class='center' style="width: 30px;">${page.showCount*(page.currentPage-1)+vs.index+1}</td>
  69. <td class='center'>${var.PNAME_}</td>
  70. <td class='center'><a onclick="viewUser('${var.INITATOR}')" style="cursor:pointer;"><i id="nav-search-icon" class="ace-icon fa fa-search bigger-110 nav-search-icon blue"></i>${var.INITATOR}</a></td>
  71. <td class='center'><a onclick="viewUser('${var.ASSIGNEE_}')" style="cursor:pointer;"><i id="nav-search-icon" class="ace-icon fa fa-search bigger-110 nav-search-icon blue"></i>${var.ASSIGNEE_}</a></td>
  72. <td class='center'>${var.NAME_}</td>
  73. <td class='center'>${fn:substring(var.CREATE_TIME_ ,0,19)}</td>
  74. <td class="center">
  75. <c:if test="${var.SUSPENSION_STATE_ == 1 }">
  76. <c:if test="${QX.edit != 1 && QX.del != 1 }">
  77. <span class="label label-large label-grey arrowed-in-right arrowed-in"><i class="ace-icon fa fa-lock" title="无权限"></i></span>
  78. </c:if>
  79. <div class="hidden-sm hidden-xs btn-group">
  80. <c:if test="${QX.Delegate == 1 }">
  81. <a class="btn btn-xs btn-purple" title="委派" onclick="delegate('${var.ID_}');">
  82. <i class="ace-icon glyphicon glyphicon-user bigger-120" title="委派" style="float: left;"></i><div style="float: right;">委派</div>
  83. </a>
  84. </c:if>
  85. <c:if test="${QX.edit == 1 }">
  86. <a class="btn btn-xs btn-success" title="办理" onclick="handle('${var.PROC_INST_ID_}','${var.ID_}','${var.DGRM_RESOURCE_NAME_}');">
  87. <i class="ace-icon fa fa-pencil-square-o bigger-150" title="办理" style="float: left;"></i><div style="float: right;">办理</div>
  88. </a>
  89. </c:if>
  90. </div>
  91. <div class="hidden-md hidden-lg">
  92. <div class="inline pos-rel">
  93. <button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown" data-position="auto">
  94. <i class="ace-icon fa fa-cog icon-only bigger-110"></i>
  95. </button>
  96. <ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">
  97. <c:if test="${QX.Delegate == 1 }">
  98. <li>
  99. <a style="cursor:pointer;" onclick="delegate('${var.ID_}');" class="tooltip-success" data-rel="tooltip" title="委派">
  100. <span class="purple">
  101. <i class="ace-icon glyphicon glyphicon-user bigger-120"></i>
  102. </span>
  103. </a>
  104. </li>
  105. </c:if>
  106. <c:if test="${QX.edit == 1 }">
  107. <li>
  108. <a style="cursor:pointer;" onclick="handle('${var.PROC_INST_ID_}','${var.ID_}','${var.DGRM_RESOURCE_NAME_}');" class="tooltip-success" data-rel="tooltip" title="办理">
  109. <span class="green">
  110. <i class="ace-icon fa fa-pencil-square-o bigger-120"></i>
  111. </span>
  112. </a>
  113. </li>
  114. </c:if>
  115. </ul>
  116. </div>
  117. </div>
  118. </c:if>
  119. <c:if test="${var.SUSPENSION_STATE_ == 2 }">
  120. <h7 class="red">已挂起</h7>
  121. </c:if>
  122. </td>
  123. </tr>
  124. </c:forEach>
  125. </c:if>
  126. <c:if test="${QX.cha == 0 }">
  127. <tr>
  128. <td colspan="100" class="center">您无权查看</td>
  129. </tr>
  130. </c:if>
  131. </c:when>
  132. <c:otherwise>
  133. <tr class="main_info">
  134. <td colspan="100" class="center" >没有需要办理的任务</td>
  135. </tr>
  136. </c:otherwise>
  137. </c:choose>
  138. </tbody>
  139. </table>
  140. <div class="page-header position-relative">
  141. <table style="width:100%;">
  142. <tr>
  143. <td style="vertical-align:top;">
  144. </td>
  145. <td style="vertical-align:top;"><div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div></td>
  146. </tr>
  147. </table>
  148. </div>
  149. </form>
  150. </div>
  151. <!-- /.col -->
  152. </div>
  153. <!-- /.row -->
  154. </div>
  155. <!-- /.page-content -->
  156. </div>
  157. </div>
  158. <!-- /.main-content -->
  159. <!-- 返回顶部 -->
  160. <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
  161. <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
  162. </a>
  163. </div>
  164. <!-- /.main-container -->
  165. <!-- basic scripts -->
  166. <!-- 页面底部js¨ -->
  167. <%@ include file="../../system/index/foot.jsp"%>
  168. <!-- 确认窗口 -->
  169. <script src="static/ace/js/bootbox.js"></script>
  170. <!-- ace scripts -->
  171. <script src="static/ace/js/ace/ace.js"></script>
  172. <!-- 日期框 -->
  173. <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
  174. <!--提示框-->
  175. <script type="text/javascript" src="static/js/jquery.tips.js"></script>
  176. <script type="text/javascript">
  177. $(top.hangge());//关闭加载状态
  178. //检索
  179. function tosearch(){
  180. top.jzts();
  181. $("#Form").submit();
  182. }
  183. $(function() {
  184. //日期框
  185. $('.date-picker').datepicker({
  186. autoclose: true,
  187. todayHighlight: true
  188. });
  189. });
  190. //查看用户
  191. function viewUser(USERNAME){
  192. if('admin' == USERNAME){
  193. bootbox.dialog({
  194. message: "<span class='bigger-110'>不能查看admin用户!</span>",
  195. buttons:
  196. { "button":{ "label":"确定", "className":"btn-sm btn-success"}}
  197. });
  198. return;
  199. }
  200. top.jzts();
  201. var diag = new top.Dialog();
  202. diag.Modal = false; //有无遮罩窗口
  203. diag.Drag=true;
  204. diag.Title ="资料";
  205. diag.URL = '<%=basePath%>user/view.do?USERNAME='+USERNAME;
  206. diag.Width = 469;
  207. diag.Height = 380;
  208. diag.CancelEvent = function(){ //关闭事件
  209. diag.close();
  210. };
  211. diag.show();
  212. }
  213. //委派他人办理
  214. function delegate(ID_){
  215. top.jzts();
  216. var diag = new top.Dialog();
  217. diag.Drag=true;
  218. diag.Title ="委派对象";
  219. diag.URL = '<%=basePath%>ruprocdef/goDelegate.do?ID_='+ID_;
  220. diag.Width = 500;
  221. diag.Height = 130;
  222. diag.CancelEvent = function(){ //关闭事件
  223. if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){
  224. tosearch();
  225. }
  226. diag.close();
  227. };
  228. diag.show();
  229. }
  230. //办理任务
  231. function handle(PROC_INST_ID_,ID_,FILENAME){
  232. top.jzts();
  233. var diag = new top.Dialog();
  234. diag.Drag=true;
  235. diag.Title ="办理任务";
  236. diag.URL = '<%=basePath%>rutask/goHandle.do?PROC_INST_ID_='+PROC_INST_ID_+"&ID_="+ID_+'&FILENAME='+encodeURI(encodeURI(FILENAME));
  237. diag.Width = 1100;
  238. diag.Height = 750;
  239. diag.Modal = true; //有无遮罩窗口
  240. diag. ShowMaxButton = true; //最大化按钮
  241. diag.ShowMinButton = true; //最小化按钮
  242. diag.CancelEvent = function(){ //关闭事件
  243. if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){
  244. $("#simple-table").tips({
  245. side:3,
  246. msg:'审批完毕',
  247. bg:'#AE81FF',
  248. time:3
  249. });
  250. top.topTask();//刷新顶部任务列表
  251. setTimeout('tosearch()',1000);//3秒后刷新当前任务列表
  252. }
  253. diag.close();
  254. };
  255. diag.show();
  256. }
  257. </script>
  258. </body>
  259. </html>