123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
- <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
- <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme() + "://"
- + request.getServerName() + ":" + request.getServerPort()
- + path + "/";
- %>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <base href="<%=basePath%>">
- <!-- jsp文件头和头部 -->
- <%@ include file="../../system/index/top.jsp"%>
- <!-- 日期框 -->
- <link rel="stylesheet" href="static/ace/css/datepicker.css" />
- </head>
- <body class="no-skin">
- <!-- /section:basics/navbar.layout -->
- <div class="main-container" id="main-container">
- <!-- /section:basics/sidebar -->
- <div class="main-content">
- <div class="main-content-inner">
- <div class="page-content">
- <div class="row">
- <div class="col-xs-12">
-
- <!-- 检索 -->
- <form action="rutask/list.do" method="post" name="Form" id="Form">
- <table style="margin-top:5px;">
- <tr>
- <td>
- <div class="nav-search">
- <span class="input-icon">
- <input type="text" placeholder="这里输入关键词" class="nav-search-input" id="nav-search-input" autocomplete="off" name="keywords" value="${pd.keywords }" placeholder="这里输入关键词"/>
- <i class="ace-icon fa fa-search nav-search-icon"></i>
- </span>
- </div>
- </td>
- <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>
- <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>
- <c:if test="${QX.cha == 1 }">
- <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>
- </c:if>
- </tr>
- </table>
- <!-- 检索 -->
-
- <table id="simple-table" class="table table-striped table-bordered table-hover" style="margin-top:5px;">
- <thead>
- <tr>
- <th class="center" style="width:50px;">序号</th>
- <th class="center">流程名称</th>
- <th class="center">申请人</th>
- <th class="center">当前节点(待办人)</th>
- <th class="center">当前任务</th>
- <th class="center"><i class="ace-icon fa fa-clock-o bigger-110 hidden-480"></i>创建时间</th>
- <th class="center">操作</th>
- </tr>
- </thead>
-
- <tbody>
- <!-- 开始循环 -->
- <c:choose>
- <c:when test="${not empty varList}">
- <c:if test="${QX.cha == 1 }">
- <c:forEach items="${varList}" var="var" varStatus="vs">
- <tr>
- <td class='center' style="width: 30px;">${page.showCount*(page.currentPage-1)+vs.index+1}</td>
- <td class='center'>${var.PNAME_}</td>
- <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>
- <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>
- <td class='center'>${var.NAME_}</td>
- <td class='center'>${fn:substring(var.CREATE_TIME_ ,0,19)}</td>
- <td class="center">
- <c:if test="${var.SUSPENSION_STATE_ == 1 }">
- <c:if test="${QX.edit != 1 && QX.del != 1 }">
- <span class="label label-large label-grey arrowed-in-right arrowed-in"><i class="ace-icon fa fa-lock" title="无权限"></i></span>
- </c:if>
- <div class="hidden-sm hidden-xs btn-group">
- <c:if test="${QX.Delegate == 1 }">
- <a class="btn btn-xs btn-purple" title="委派" onclick="delegate('${var.ID_}');">
- <i class="ace-icon glyphicon glyphicon-user bigger-120" title="委派" style="float: left;"></i><div style="float: right;">委派</div>
- </a>
- </c:if>
- <c:if test="${QX.edit == 1 }">
- <a class="btn btn-xs btn-success" title="办理" onclick="handle('${var.PROC_INST_ID_}','${var.ID_}','${var.DGRM_RESOURCE_NAME_}');">
- <i class="ace-icon fa fa-pencil-square-o bigger-150" title="办理" style="float: left;"></i><div style="float: right;">办理</div>
- </a>
- </c:if>
- </div>
- <div class="hidden-md hidden-lg">
- <div class="inline pos-rel">
- <button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown" data-position="auto">
- <i class="ace-icon fa fa-cog icon-only bigger-110"></i>
- </button>
-
- <ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">
- <c:if test="${QX.Delegate == 1 }">
- <li>
- <a style="cursor:pointer;" onclick="delegate('${var.ID_}');" class="tooltip-success" data-rel="tooltip" title="委派">
- <span class="purple">
- <i class="ace-icon glyphicon glyphicon-user bigger-120"></i>
- </span>
- </a>
- </li>
- </c:if>
- <c:if test="${QX.edit == 1 }">
- <li>
- <a style="cursor:pointer;" onclick="handle('${var.PROC_INST_ID_}','${var.ID_}','${var.DGRM_RESOURCE_NAME_}');" class="tooltip-success" data-rel="tooltip" title="办理">
- <span class="green">
- <i class="ace-icon fa fa-pencil-square-o bigger-120"></i>
- </span>
- </a>
- </li>
- </c:if>
- </ul>
- </div>
- </div>
- </c:if>
- <c:if test="${var.SUSPENSION_STATE_ == 2 }">
- <h7 class="red">已挂起</h7>
- </c:if>
- </td>
- </tr>
- </c:forEach>
- </c:if>
- <c:if test="${QX.cha == 0 }">
- <tr>
- <td colspan="100" class="center">您无权查看</td>
- </tr>
- </c:if>
- </c:when>
- <c:otherwise>
- <tr class="main_info">
- <td colspan="100" class="center" >没有需要办理的任务</td>
- </tr>
- </c:otherwise>
- </c:choose>
- </tbody>
- </table>
- <div class="page-header position-relative">
- <table style="width:100%;">
- <tr>
- <td style="vertical-align:top;">
- </td>
- <td style="vertical-align:top;"><div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div></td>
- </tr>
- </table>
- </div>
- </form>
-
- </div>
- <!-- /.col -->
- </div>
- <!-- /.row -->
- </div>
- <!-- /.page-content -->
- </div>
- </div>
- <!-- /.main-content -->
- <!-- 返回顶部 -->
- <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
- <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
- </a>
- </div>
- <!-- /.main-container -->
- <!-- basic scripts -->
- <!-- 页面底部js¨ -->
- <%@ include file="../../system/index/foot.jsp"%>
- <!-- 确认窗口 -->
- <script src="static/ace/js/bootbox.js"></script>
- <!-- ace scripts -->
- <script src="static/ace/js/ace/ace.js"></script>
- <!-- 日期框 -->
- <script src="static/ace/js/date-time/bootstrap-datepicker.js"></script>
- <!--提示框-->
- <script type="text/javascript" src="static/js/jquery.tips.js"></script>
- <script type="text/javascript">
- $(top.hangge());//关闭加载状态
- //检索
- function tosearch(){
- top.jzts();
- $("#Form").submit();
- }
- $(function() {
-
- //日期框
- $('.date-picker').datepicker({
- autoclose: true,
- todayHighlight: true
- });
-
- });
-
- //查看用户
- function viewUser(USERNAME){
- if('admin' == USERNAME){
- bootbox.dialog({
- message: "<span class='bigger-110'>不能查看admin用户!</span>",
- buttons:
- { "button":{ "label":"确定", "className":"btn-sm btn-success"}}
- });
- return;
- }
- top.jzts();
- var diag = new top.Dialog();
- diag.Modal = false; //有无遮罩窗口
- diag.Drag=true;
- diag.Title ="资料";
- diag.URL = '<%=basePath%>user/view.do?USERNAME='+USERNAME;
- diag.Width = 469;
- diag.Height = 380;
- diag.CancelEvent = function(){ //关闭事件
- diag.close();
- };
- diag.show();
- }
-
- //委派他人办理
- function delegate(ID_){
- top.jzts();
- var diag = new top.Dialog();
- diag.Drag=true;
- diag.Title ="委派对象";
- diag.URL = '<%=basePath%>ruprocdef/goDelegate.do?ID_='+ID_;
- diag.Width = 500;
- diag.Height = 130;
- diag.CancelEvent = function(){ //关闭事件
- if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){
- tosearch();
- }
- diag.close();
- };
- diag.show();
- }
-
- //办理任务
- function handle(PROC_INST_ID_,ID_,FILENAME){
- top.jzts();
- var diag = new top.Dialog();
- diag.Drag=true;
- diag.Title ="办理任务";
- diag.URL = '<%=basePath%>rutask/goHandle.do?PROC_INST_ID_='+PROC_INST_ID_+"&ID_="+ID_+'&FILENAME='+encodeURI(encodeURI(FILENAME));
- diag.Width = 1100;
- diag.Height = 750;
- diag.Modal = true; //有无遮罩窗口
- diag. ShowMaxButton = true; //最大化按钮
- diag.ShowMinButton = true; //最小化按钮
- diag.CancelEvent = function(){ //关闭事件
- if(diag.innerFrame.contentWindow.document.getElementById('zhongxin').style.display == 'none'){
- $("#simple-table").tips({
- side:3,
- msg:'审批完毕',
- bg:'#AE81FF',
- time:3
- });
- top.topTask();//刷新顶部任务列表
- setTimeout('tosearch()',1000);//3秒后刷新当前任务列表
- }
- diag.close();
- };
- diag.show();
- }
- </script>
- </body>
- </html>
|