e550ba15c893785cac19f3520fb9866ca7c77c32.svn-base 4.9 KB
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>已办任务</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
		});
		/**
		function page(n,s){
        	location = '${ctx}/act/task/historic/?pageNo='+n+'&pageSize='+s;
        }
		**/
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/act/task/todo/">待办任务</a></li>
		<li class="active"><a href="${ctx}/act/task/historic/">已办任务</a></li>
		<!-- 
		<li><a href="${ctx}/act/task/process/">新建任务</a></li>
		 -->
	</ul>
	<form:form id="searchForm" modelAttribute="act" action="${ctx}/act/task/historic/" method="get" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<div>
			<!-- 
			<label>流程类型:&nbsp;</label>
			<form:select path="procDefKey" class="input-medium">
				<form:option value="" label="全部流程"/>
				<form:options items="${fns:getDictList('act_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
			</form:select>
			<label>登记类型:</label>
			<form:select path="djlx" class="input-medium">
				<form:option value="" label=""/>
				<form:options items="${fns:getDictList('reg_bus_djlx')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
			</form:select>
			-->
			<label>业务编号:</label>
			<input id="ywh" name="ywh" value="${act.ywh}" maxlength="20" type="text" class="input-medium"/>
			<label>申请人:</label>
			<input id="sqr" name="sqr" value="${act.sqr}" maxlength="20" type="text" class="input-medium"/>
			<label>登记类型:</label>
			<form:select path="djlx" class="input-small">
				<form:option value="" label=""/>
				<form:options items="${fns:getDictList('reg_bus_djlx')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
			</form:select>
			<label>业务细类:</label>
			<form:select path="title" class="input-xlarge">
				<form:option value="" label=""/>
				<form:options items="${fns:getDictList('reg_bus_djxl')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
			</form:select><br>
			<%-- <label style="margin-top:10px;">项目编号:</label>
			<input id="proid" name="proid" value="${act.proid}" maxlength="20" type="text" class="input-medium"/> --%>
			<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询" style="margin-left: 10px;"/>
		</div>
		
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<%--
				<th>当前环节</th>
				<th>任务内容</th>
				<th>流程名称</th>
				<th>流程版本</th> --%>
				<th>业务编号</th>
				<th>业务细类</th>
				<th>申请人</th>
				<th>登记类型</th>
				<th>完成时间</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.list}" var="act">
				<c:set var="task" value="${act.histTask}" />
				<c:set var="vars" value="${act.vars}" />
				<c:set var="procDef" value="${act.procDef}" /><%--
				<c:set var="procExecUrl" value="${act.procExecUrl}" /> --%>
				<c:set var="status" value="${act.status}" />
				<tr>
					<%--
					<td>
						<a target="_blank" href="${pageContext.request.contextPath}/act/rest/diagram-viewer?processDefinitionId=${task.processDefinitionId}&processInstanceId=${task.processInstanceId}">${task.name}</a>
						<a target="_blank" href="${ctx}/act/task/trace/photo/${task.processDefinitionId}/${task.executionId}">${task.name}</a>
						<a target="_blank" href="${ctx}/act/task/trace/info/${task.processInstanceId}">${task.name}</a>
					</td>
					<td>${task.description}</td>
					<td>${procDef.name}</td>
					<td><b title='流程版本号'>V: ${procDef.version}</b></td>--%>
					<td>${vars.map.ywh}</td>
					<td>
						<a href="${ctx}/act/task/form?taskId=${task.id}&taskName=${fns:urlEncode(task.name)}&taskDefKey=${task.taskDefinitionKey}&procInsId=${task.processInstanceId}&procDefId=${task.processDefinitionId}&status=${status}">${fns:abbr(not empty vars.map.title ? vars.map.title : task.id, 60)}</a>
					</td>
					<td>${vars.map.sqr}</td>
					<td>${fns:getDictLabel(vars.map.djlx, 'reg_bus_djlx', '')}</td>
					<td><fmt:formatDate value="${task.endTime}" type="both"/></td>
					<td>
						<a href="${ctx}/act/task/form?taskId=${task.id}&taskName=${fns:urlEncode(task.name)}&taskDefKey=${task.taskDefinitionKey}&procInsId=${task.processInstanceId}&procDefId=${task.processDefinitionId}&status=${status}&actywh=${act1.ywh}&actsqr=${act1.sqr}&actdjlx=${act1.djlx}&acttitle=${act1.title}">详情</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>