<%@page import="org.activiti.engine.repository.ProcessDefinition"%>
<%@page import="org.activiti.bpmn.model.*"%>
<%@page import="com.blueland.bpm.engine.config.model.*"%>
<%@page import="com.blueland.bpm.common.page.*"%>
<%@page import="com.blueland.bpm.common.util.*"%>
<%@page import="java.util.*"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>
<%@ include file="/commons/taglibs.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@ include file="/commons/meta.jsp"%>
<base href="<%=basePath%>">
<title>环节用户列表</title>
	<link href="${ctx_js_plugins}/simpletable/simpletable.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="${ctx_js_plugins}/simpletable/simpletable.js"></script>


<script type="text/javascript">
	$(document).ready(function() {

	});

	
</script>
</head>
<body class="white-page">
	<%@ include file="/commons/messages.jsp"%>
	<form id="queryForm" name="queryForm"
		action="${ctx}/actInfo/sequenceFlow/list.do" method="post"
		style="display: inline;">
		<input name="actId" id="actId" value="${gateway.id}" type="hidden"/>
		<input name="procDefId" id="procDefId" value="${params.processDefId}"  type="hidden"/>
		<div class="main-container" id="main-container">
		<div class="panel panel-primary">
			<div class="panel-heading" style="background: none !important;">
				网关ID：${gateway.id},网关名称：${gateway.name}
			</div>
<%--			<div class="form-group well well-sm">--%>

<%--				<table width="100%" border="0" cellspacing="0" cellpadding="0"--%>
<%--					class="table-search">--%>
<%--				<tr>--%>
<%--					<td colspan="7">--%>

<%--						<input onclick="art.dialog.close();" type="button" class="btn btn-xs btn-primary" value="关&nbsp;&nbsp;闭"/>--%>


<%--					</td>--%>
<%--				</tr>--%>
<%--			</table>--%>
<%--</div>--%>
			<div class="panel-body">
				<div class="row">
					<div class="col-xs-12">
						<div class="table-responsive" style="margin: 0 0 0 10px !important;padding: 0!important;">
							<table id="sample-table-1"
								class="table table-striped table-bordered table-hover">
								<thead>
			<tr>
				<th>输出线名称</th>
				<th>当前环节名称</th>
				<th>目标目标环节</th>
				<th>操作</th>
			</tr>

</thead>
<tbody>
			<c:forEach items="${gateway.outgoingFlows}" var="item"
				varStatus="status">
				<tr class="${status.count % 2 == 0 ? 'odd' : 'even'}">
					<td>${item.name}&nbsp;</td>
					<td>${gateway.name}</td>
					<td>${item.targetRefName}&nbsp;</td>
					<td>
					<a href="javascript:void(0);" onclick="showDiaLog('${ctx}/actInfo/sequenceFlow/edit.do?procDefId=${params.processDefId}&sequenceFlowId=${item.id}','${item.sourceRefName}->${item.targetRefName}-输出线','900px','600px')">编辑</a>
					<a href="javascript:void(0);" onclick="showDiaLog('${ctx}/actInfo/activityRule/create.do?procDefId=${params.processDefId}&sourceActId=${gateway.id}&sourceActName=${gateway.name}&targetActId=${item.targetRef}&targetActName=${item.targetRefName}','${item.sourceRefName}->${item.targetRefName}-输出线-跳转规则配置','900px','600px')">跳转规则配置</a>
					<a href="javascript:void(0);" onclick="showDiaLog('${ctx}/actInfo/activityResourceRule/create.do?procDefId=${params.processDefId}&sourceActId=${gateway.id}&sourceActName=${gateway.name}&targetActId=${item.targetRef}&targetActName=${item.targetRefName}','${item.sourceRefName}->${item.targetRefName}-输出线-人员规则配置','900px','600px')">人员规则配置</a>
					</td>
				</tr>
			</c:forEach>

</tbody>
				</table>
				
			</div>
						<!-- /.table-responsive -->
					</div>
					<!-- /span -->
				</div>
			</div>
		</div>

	</div>
	</form>
</body>
</html>