<%@page import="org.activiti.engine.repository.ProcessDefinition" %>
<%@page import="org.activiti.engine.impl.persistence.entity.*" %>
<%@page import="org.activiti.engine.repository.Deployment" %>
<%@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>
	<script type="text/javascript" src="${ctx }/resource/js/jquery-1.8.3.min.js"></script>
	<script src="${ctx}/resource/js/plugins/highcharts/highcharts.js"></script>
     <script src="${ctx}/resource/js/plugins/highcharts/modules/exporting.js"></script>
       <script src="${ctx}/resource/js/common/processReport.js"></script>
	<script type="text/javascript">
		
	</script>
</head>
<body>
	<form id="queryForm" name="queryForm" action="${ctx}/processReport/reportByDate.do" method="post" style="display: inline;">
			<div class="main-container" id="main-container">
		<div class="panel panel-primary">
			<div class="panel-heading">
				<h8>按流程定义统计</h8>
			</div>
			<div class="panel-body">
				<div class="form-group well well-sm">

				<table border="0" cellspacing="0" cellpadding="0"
					class="table-search">
					<tr>	
						<td width="50px">年份：</td>		
						<td width="100px">
							<select name="year" id="year">
								<option value="2014">2014</option>
							</select>
						</td>
						
						<td>
						<button type="submit" class="btn btn-xs btn-primary">
									统&nbsp;&nbsp;计
									<i class="ace-icon fa fa-bar-chart-o bigger-110"></i>
						</button>
						
						</td>
						
					</tr>
					
					
				</table>
			</div>
			<div class="row">
					<div class="col-xs-12">
						<div class="table-responsive">
						<!-- 
								<div id="processDefZjt" style="height: 450px; margin: 0 auto"></div>
						<script>
						var seriesValue=" {type: 'column',name: '运行个数',data: [${column}]}";
						getReportDataByZjt("processDefZjt","${row}","123",seriesValue,"已运行流程统计：一共运行 ${total}个流程");
						</script>
						-->
						<div id="processDefBar" style="height: 450px; margin: 0 auto"></div>
						<script>
						//getReportDataByZjt("processDefZjt","${row}","123",seriesValue,"已运行流程统计：一共运行 ${total}个流程");
						getReportDataByZxt("processDefBar","按流程及时间统计","${year}年一共运行 ${total}个流程","${row}","${column}",'运行个数');
						</script>
								
						</div>
						<!-- /.table-responsive -->
					</div>
					<!-- /span -->
				</div>
			</div>
		</div>

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

