2018-03-13 10:14:23 +08:00
|
|
|
|
<%@ page contentType="text/html;charset=UTF-8"%>
|
|
|
|
|
|
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
|
|
|
|
|
<html>
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<title>专项任务</title>
|
|
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="page-content">
|
2018-07-16 14:21:21 +08:00
|
|
|
|
<c:set var ="isOptator" value="false"></c:set>
|
|
|
|
|
|
<c:set var ="isConfirmor" value="false"></c:set>
|
|
|
|
|
|
<c:set var ="isAuditor" value="false"></c:set>
|
|
|
|
|
|
<c:forEach items="${fns:getUser().userRoleList}" var="role">
|
|
|
|
|
|
<c:if test="${role.id ==28}">
|
|
|
|
|
|
<c:set var ="isAuditor" value="true"></c:set>
|
|
|
|
|
|
</c:if>
|
|
|
|
|
|
<c:if test="${role.id ==27}">
|
|
|
|
|
|
<c:set var ="isConfirmor" value="true"></c:set>
|
|
|
|
|
|
</c:if>
|
|
|
|
|
|
<c:if test="${role.id ==26}">
|
|
|
|
|
|
<c:set var ="isOptator" value="true"></c:set>
|
|
|
|
|
|
</c:if>
|
|
|
|
|
|
<c:if test="${role.id ==1}">
|
|
|
|
|
|
<c:set var ="isOptator" value="true"></c:set>
|
|
|
|
|
|
<c:set var ="isConfirmor" value="true"></c:set>
|
|
|
|
|
|
<c:set var ="isAuditor" value="true"></c:set>
|
|
|
|
|
|
</c:if>
|
|
|
|
|
|
</c:forEach>
|
2018-03-19 14:34:39 +08:00
|
|
|
|
<shiro:hasPermission name="basics:taskInfo:edit">
|
2018-07-16 14:21:21 +08:00
|
|
|
|
<c:if test="${isOptator }">
|
2018-03-13 10:14:23 +08:00
|
|
|
|
<div class="theme-panel hidden-xs hidden-sm">
|
|
|
|
|
|
<button type="button" class="btn btn-primary"
|
|
|
|
|
|
onClick="javascript:window.location='${ctx}/basics/taskInfo/form'">
|
|
|
|
|
|
<i class="fa fa-plus"></i>
|
|
|
|
|
|
<spring:message code="add"/></button>
|
|
|
|
|
|
</div>
|
2018-07-16 14:21:21 +08:00
|
|
|
|
</c:if>
|
2018-03-19 14:34:39 +08:00
|
|
|
|
</shiro:hasPermission>
|
2018-03-13 10:14:23 +08:00
|
|
|
|
<h3 class="page-title">
|
|
|
|
|
|
<spring:message code="special_task"></spring:message>
|
|
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
|
|
|
|
<h5 class="page-header"></h5>
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
|
<div class="portlet">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="portlet-body">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row" >
|
|
|
|
|
|
<form:form id="searchForm" modelAttribute="taskInfo" action="${ctx}/basics/taskInfo/list" method="post" class="form-search">
|
|
|
|
|
|
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
|
|
|
|
|
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 筛选按钮展开状态-->
|
|
|
|
|
|
<input id="isFilterAction" name="isFilterAction" type="hidden" value="${taskInfo.isFilterAction }"/>
|
2018-03-20 09:59:01 +08:00
|
|
|
|
<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
|
2018-03-13 10:14:23 +08:00
|
|
|
|
<!-- 搜索内容与操作按钮栏 -->
|
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="pull-left">
|
|
|
|
|
|
<form:select path="isAudit" class="selectpicker select2 input-small" >
|
|
|
|
|
|
<form:option value=""><spring:message code="all_states"/></form:option>
|
|
|
|
|
|
<form:option value="0"><spring:message code="created"></spring:message></form:option>
|
|
|
|
|
|
<form:option value="1"><spring:message code="approved"></spring:message></form:option>
|
|
|
|
|
|
</form:select>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="pull-left">
|
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
|
<div class="input-group-btn">
|
2018-03-20 09:59:01 +08:00
|
|
|
|
<input id="taskName" name="taskName" class="form-control input-medium" type="text" value="${taskInfo.taskName }">
|
2018-03-13 10:14:23 +08:00
|
|
|
|
</div>
|
2018-03-22 22:18:57 +08:00
|
|
|
|
|
2018-03-13 10:14:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="pull-left">
|
2018-03-22 22:18:57 +08:00
|
|
|
|
<button type="button" class="btn blue" onClick="page()"> <i class="fa fa-search"></i> <spring:message code="search"/> </button>
|
|
|
|
|
|
<button type="button" class="btn btn-default" onClick="resetx()"> <i class="fa fa-refresh"></i> <spring:message code="reset"/> </button>
|
2018-03-13 10:14:23 +08:00
|
|
|
|
<button type="button" class="btn btn-default" id="filter-btn"> <spring:message code="filter"></spring:message> <i class="fa fa-angle-double-down"></i></button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="pull-right">
|
2018-03-19 14:34:39 +08:00
|
|
|
|
<shiro:hasPermission name="basics:taskInfo:edit">
|
2018-07-16 14:21:21 +08:00
|
|
|
|
<c:if test="${isOptator }">
|
2018-03-13 10:14:23 +08:00
|
|
|
|
<button type="button" class="btn btn-default" onclick="edit()">
|
|
|
|
|
|
<i class="fa fa-edit"></i> <spring:message code="edit"></spring:message></button>
|
|
|
|
|
|
<sys:delRow url="${ctx}/basics/taskInfo/delete" id="contentTable" label="delete"></sys:delRow>
|
|
|
|
|
|
<!-- <button type="button" class="btn btn-default">
|
|
|
|
|
|
<i class="fa fa-download"></i> 导出</button> -->
|
2018-07-16 14:21:21 +08:00
|
|
|
|
</c:if>
|
|
|
|
|
|
<c:if test="${isConfirmor }">
|
2018-03-13 10:14:23 +08:00
|
|
|
|
<div class="btn-group">
|
|
|
|
|
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
|
|
|
|
|
<i class="fa fa-wrench"></i> <spring:message code="examine"></spring:message>
|
|
|
|
|
|
<i class="fa fa-angle-down"></i>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<ul class="dropdown-menu pull-right">
|
|
|
|
|
|
<li><sys:delRow url="${ctx}/basics/taskInfo/taskExamine" id="contentTable" label="approved"></sys:delRow></li>
|
|
|
|
|
|
<li><sys:delRow url="${ctx}/basics/taskInfo/taskExamineNo" id="contentTable" label="unapproved"></sys:delRow></li>
|
|
|
|
|
|
<li><sys:delRow url="${ctx}/basics/taskInfo/taskCancelExamine" id="contentTable" label="cancelPass"></sys:delRow></li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</div>
|
2018-07-16 14:21:21 +08:00
|
|
|
|
</c:if>
|
2018-03-19 14:34:39 +08:00
|
|
|
|
</shiro:hasPermission>
|
2018-03-16 09:36:32 +08:00
|
|
|
|
<a class="btn btn-icon-only btn-default setfields tooltips"
|
|
|
|
|
|
data-container="body" data-placement="top" data-original-title=<spring:message code="custom_columns"/> href="javascript:;">
|
|
|
|
|
|
<i class="icon-wrench"></i>
|
|
|
|
|
|
</a>
|
2018-03-13 10:14:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<!-- /搜索内容与操作按钮栏-->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 筛选搜索内容栏默认隐藏-->
|
|
|
|
|
|
<div class="col-md-12 filter-action-select-panle hide" >
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
2018-03-22 22:18:57 +08:00
|
|
|
|
<div class="col-md-3">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label><spring:message code="task_time"/>:</label>
|
|
|
|
|
|
<input id="beginDate" name="beginDate" type="text" readonly="readonly" maxlength="20" class="form-control Wdate" data-options="buttons:buttons"
|
2018-03-13 10:14:23 +08:00
|
|
|
|
value="<fmt:formatDate value="${taskInfo.beginDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
|
2018-03-22 22:18:57 +08:00
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-3">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label> </label>
|
|
|
|
|
|
<input id="endDate" name="endDate" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
2018-03-13 10:14:23 +08:00
|
|
|
|
value="<fmt:formatDate value="${taskInfo.endDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
|
2018-03-22 22:18:57 +08:00
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2018-03-13 10:14:23 +08:00
|
|
|
|
</div>
|
2018-03-22 22:18:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-3">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label><spring:message code="edit_time"/>:</label>
|
|
|
|
|
|
<input id="dobeginDate" name="dobeginDate" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
2018-03-13 10:14:23 +08:00
|
|
|
|
value="<fmt:formatDate value="${taskInfo.dobeginDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
|
2018-03-22 22:18:57 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2018-03-13 10:14:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2018-03-22 22:18:57 +08:00
|
|
|
|
<div class="col-md-3">
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
<label> </label>
|
|
|
|
|
|
<input id="doendDate" name="doendDate" type="text" readonly="readonly" maxlength="20" class="form-control Wdate"
|
|
|
|
|
|
value="<fmt:formatDate value="${taskInfo.doendDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2018-03-13 10:14:23 +08:00
|
|
|
|
</div>
|
2018-03-22 22:18:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-03-13 10:14:23 +08:00
|
|
|
|
</div>
|
2018-03-22 22:18:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
2018-03-13 10:14:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- /筛选搜索内容栏 结束-->
|
|
|
|
|
|
|
|
|
|
|
|
</form:form>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2018-03-19 17:16:02 +08:00
|
|
|
|
<div class="table-responsive">
|
2018-03-13 10:14:23 +08:00
|
|
|
|
<sys:message content="${message}"/>
|
2018-03-19 17:16:02 +08:00
|
|
|
|
<table id="contentTable" class="table table-striped table-bordered table-condensed text-nowrap">
|
2018-03-13 10:14:23 +08:00
|
|
|
|
<thead>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
|
|
|
|
|
<th><spring:message code="task_name"></spring:message></th>
|
|
|
|
|
|
<th><spring:message code="task_org"></spring:message></th>
|
|
|
|
|
|
<th><spring:message code="task_time"></spring:message></th>
|
|
|
|
|
|
<th><spring:message code="state"></spring:message></th>
|
2018-03-21 11:23:43 +08:00
|
|
|
|
<th><spring:message code="desc"></spring:message></th>
|
2018-03-16 18:29:53 +08:00
|
|
|
|
<th><spring:message code="creator"></spring:message></th>
|
2018-03-20 09:59:01 +08:00
|
|
|
|
<th class="sort-column createTime"><spring:message code="create_time"/></th>
|
|
|
|
|
|
<th><spring:message code="editor"/></th>
|
|
|
|
|
|
<th class="sort-column editTime"><spring:message code="edit_time"/></th>
|
2018-03-16 09:36:32 +08:00
|
|
|
|
<th><spring:message code="auditor"></spring:message></th>
|
2018-03-20 09:59:01 +08:00
|
|
|
|
<th class="sort-column auditTime"><spring:message code="audit_time"></spring:message></th>
|
2018-03-13 10:14:23 +08:00
|
|
|
|
</tr>
|
|
|
|
|
|
</thead>
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
<c:forEach items="${page.list}" var="taskInfo">
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td><input type="checkbox" class="i-checks" id="${taskInfo.id}" value="${taskInfo.isAudit}"></td>
|
|
|
|
|
|
<td>${taskInfo.taskName }</td>
|
|
|
|
|
|
<td>${taskInfo.taskOrg }</td>
|
|
|
|
|
|
<td><fmt:formatDate value="${taskInfo.taskTime }" pattern="yyyy-MM-dd"/></td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<c:choose>
|
|
|
|
|
|
<c:when test="${taskInfo.isAudit eq '0'}"><span class="label label-danger"><spring:message code="created"></spring:message></span></c:when>
|
|
|
|
|
|
<c:when test="${taskInfo.isAudit eq '1'}"><span class="label label-success"><spring:message code="approved"></spring:message></span></c:when>
|
|
|
|
|
|
<c:when test="${taskInfo.isAudit eq '2'}"><span class="label label-warning"><spring:message code="unapproved"></spring:message></span></c:when>
|
2018-07-27 15:29:27 +08:00
|
|
|
|
<c:when test="${taskInfo.isAudit eq '3'}"><span class="label label-warning"><spring:message code="cancel_approved"></spring:message></span></c:when>
|
2018-03-13 10:14:23 +08:00
|
|
|
|
</c:choose>
|
|
|
|
|
|
</td>
|
2018-03-21 11:23:43 +08:00
|
|
|
|
<td>${taskInfo.taskDesc }</td>
|
2018-03-13 10:14:23 +08:00
|
|
|
|
<td>${taskInfo.creatorName }</td>
|
2018-03-16 18:29:53 +08:00
|
|
|
|
<td><fmt:formatDate value="${taskInfo.createTime }" pattern="yyyy-MM-dd"/></td>
|
|
|
|
|
|
<td>${taskInfo.editorName }</td>
|
|
|
|
|
|
<td><fmt:formatDate value="${taskInfo.editTime }" pattern="yyyy-MM-dd"/></td>
|
2018-03-16 09:36:32 +08:00
|
|
|
|
<td>${taskInfo.auditorName }</td>
|
|
|
|
|
|
<td><fmt:formatDate value="${taskInfo.auditTime }" pattern="yyyy-MM-dd"/></td>
|
2018-03-13 10:14:23 +08:00
|
|
|
|
</tr>
|
|
|
|
|
|
</c:forEach>
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
<div class="page">${page}</div>
|
|
|
|
|
|
</div>
|
2018-03-19 17:16:02 +08:00
|
|
|
|
</div>
|
2018-03-13 10:14:23 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
if("${taskInfo.taskName}"){
|
|
|
|
|
|
$("#intype").val("${taskInfo.taskName}");
|
|
|
|
|
|
}else{
|
|
|
|
|
|
$("#intype").attr("placeholder","<spring:message code='input'/>"+$("#seltype").find("option:selected").text());
|
|
|
|
|
|
}
|
|
|
|
|
|
//筛选功能初始化
|
|
|
|
|
|
filterActionInit();
|
|
|
|
|
|
|
|
|
|
|
|
$("#isAudit").change(function(){
|
|
|
|
|
|
page();
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2018-03-22 16:27:56 +08:00
|
|
|
|
$("#taskName").attr("placeholder","<spring:message code='input'/>"+"<spring:message code='task_name'/>");
|
2018-03-13 10:14:23 +08:00
|
|
|
|
//全选及取消
|
|
|
|
|
|
$("#checkAll").change(function(){
|
|
|
|
|
|
if($("#checkAll").prop("checked")){
|
|
|
|
|
|
$("input.i-checks").prop("checked",true);
|
|
|
|
|
|
}else{
|
|
|
|
|
|
$("input.i-checks").prop("checked",false);
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function resetx(){
|
2018-03-20 09:59:01 +08:00
|
|
|
|
$("select.selectpicker").each(function(){
|
|
|
|
|
|
$(this).selectpicker('val',$(this).find('option:first').val());
|
|
|
|
|
|
$(this).find("option").attr("selected",false);
|
|
|
|
|
|
$(this).find("option:first").attr("selected",true);
|
|
|
|
|
|
});
|
|
|
|
|
|
$(".Wdate").attr("value",'');
|
|
|
|
|
|
$("#searchForm")[0].reset();
|
2018-03-13 10:14:23 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询
|
|
|
|
|
|
function page(n,s){
|
|
|
|
|
|
|
|
|
|
|
|
$("#pageNo").val(n);
|
|
|
|
|
|
$("#pageSize").val(s);
|
|
|
|
|
|
$("#searchForm").attr("action","${ctx}/basics/taskInfo/list");
|
|
|
|
|
|
$("#searchForm").submit();
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
|
|
|
|
|
//编辑
|
|
|
|
|
|
function edit(){
|
|
|
|
|
|
var cked = $('tbody tr td input.i-checks:checkbox:checked');
|
|
|
|
|
|
if(cked.val()==1){
|
|
|
|
|
|
top.$.jBox.tip("<spring:message code='has_approved'/>", "<spring:message code='info'/>");
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
if(cked.length==1){
|
|
|
|
|
|
window.location = "${ctx}/basics/taskInfo/form?id="+cked.attr("id");
|
|
|
|
|
|
}else{
|
|
|
|
|
|
top.$.jBox.tip("<spring:message code='check_one'/>", "<spring:message code='info'/>");
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|