Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@ page import="jomm.dao.impl.AbstractDao" %>
<%@ page import="pt.estgp.estgweb.Globals" %>
<%@ page import="pt.estgp.estgweb.domain.QuestionarioReportCursoFile" %>
<%@ page import="pt.estgp.estgweb.domain.QuestionarioReportFile" %>
<%@ page import="pt.estgp.estgweb.domain.QuestionarioReportFileGroupCursosAno" %>
<%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %>
<%@ page import="java.util.Set" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %>
<%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %>
<%@taglib prefix="reports" tagdir="/WEB-INF/tags/reports" %>
<%@taglib prefix="bacoTags" tagdir="/WEB-INF/tags" %>
<jsp:useBean id="UserSession" type="pt.estgp.estgweb.domain.UserSession" scope="request"/>
<!--
<script type='text/javascript' src='https://www.gstatic.com/charts/loader.js'></script>
<script type='text/javascript'>
google.charts.load('upcoming', {'packages': ['geochart','gauge'],mapsApiKey: 'AIzaSyBd66v8v8y49E7U0zzr3RjD33VdDHZLZRY'});
google.charts.setOnLoadCallback(drawMarkersMap);
function drawMarkersMap() {
var data = google.visualization.arrayToDataTable([
['Distrito','Respostas'],
['Leiria',23],
['Lisboa',34],
['Portalegre',90],
['Braga',4],
['Faro',2]
]);
var options = {
region: 'PT',
displayMode: 'markers',
//dataMode: 'markers',
colorAxis: {colors: ['blue']},
backgroundColor: '#81d4fa',
width: 150, height: 150
//,
//showLegend: false,
//dataMode: 'regions',
//chartArea: {left:0,top:0,'width': '100%', 'height': '100%'}
};
//var geomap = new google.visualization.GeoMap(container);
var chart = new google.visualization.GeoChart(document.getElementById('chart_div'));
chart.draw(data, options);
var data2 = google.visualization.arrayToDataTable([
['Label', 'Value'],
['Particip. %', 80]
]);
var options2 = {
min:0, max:100,
width: 100, height: 100,
greenFrom: 70, greenTo: 100,
yellowFrom:25, yellowTo: 50,
redFrom:0, redTo: 25,
minorTicks: 5
};
var chart2 = new google.visualization.Gauge(document.getElementById('chart_div2'));
chart2.draw(data2, options2);
/*setInterval(function() {
data2.setValue(0, 1, 40 + Math.round(60 * Math.random()));
chart2.draw(data2, options2);
}, 13000);
setInterval(function() {
data2.setValue(1, 1, 40 + Math.round(60 * Math.random()));
chart2.draw(data2, options2);
}, 5000);
setInterval(function() {
data2.setValue(2, 1, 60 + Math.round(20 * Math.random()));
chart2.draw(data2, options2);
}, 26000);*/
};
</script>
-->
<div class="container-fluid">
<%
AbstractDao.getCurrentSession().beginTransaction();
String id = request.getParameter("id");
QuestionarioReportFileGroupCursosAno reportGroup = DaoFactory.getQuestionarioReportFileGroupCursosAnoDaoImpl().load(Long.parseLong(id));
request.setAttribute("reportGroup",reportGroup);
%>
<reports:reportGroupPanel reportGroup="${reportGroup}" title="Relatório de Curso - Ano: ${reportGroup.importYearFormatted}"/>
<div class="web-messages-table">
<div class="web-messages"></div>
</div>
<table class="tablesorterfiltered">
<thead>
<tr>
<th>Código</th>
<th class="filter-name filter-select" data-placeholder="Todos">Tipo Curso</th>
<th class="filter-name filter-select" data-placeholder="Todos">Curso</th>
<th class="filter-name filter-select" data-placeholder="Todas">Escola</th>
<th>Alunos com Resposta %</th>
<th>Alunos com Resposta</th>
<th>Alunos Selecionados</th>
<th>Respostas %</th>
<th>Respostas</th>
<th>Repostas Requisitadas</th>
<th>Descarregar Relatório</th>
<baco:hasRole role="admin,super,questionarios.admin">
<th>Visivel</th>
</baco:hasRole>
</tr>
</thead>
<tbody>
<%
Set<QuestionarioReportFile> reports = reportGroup.getReportFiles();
for(QuestionarioReportFile report: reports)
{
QuestionarioReportCursoFile cursoFile = (QuestionarioReportCursoFile) report;
request.setAttribute("cursoFile",cursoFile);
if(cursoFile.isActive() || UserSession.getUser().isSuperuserOrAdmin() || UserSession.getUser().hasRole(Globals.QUESTIONARIOS_ADMIN))
{
%>
<tr>
<td>${cursoFile.entityCode}</td>
<td>${cursoFile.tipoCurso}</td>
<td>${cursoFile.entityName}</td>
<td>${cursoFile.escola}</td>
<!--INQUIRIDOS-->
<td>
<reports:progressPercent parcel="${cursoFile.inquiridosComResposta}" total="${cursoFile.inquiridos}" isUserType="true"/>
</td>
<!--${percentageColor} comes from progress Percent-->
<td><label class="label label-${percentageColor}" style="font-size: 1em"> ${cursoFile.inquiridosComResposta}</label><span class="icon icon-user"> </span></td>
<td><label class="label label-primary">${cursoFile.inquiridos}</label><span class="icon icon-users"> </span></td>
<!--RESPOSTAS-->
<td>
<reports:progressPercent parcel="${cursoFile.respostas}" total="${cursoFile.respostasRequisitadas}" isFilesType="true"/>
</td>
<!--${percentageColor} comes from progress Percent-->
<td class="text-nowrap"><label class="label label-${percentageColor}" style="font-size: 1em">${cursoFile.respostas}</label> <span class="icon icon-file-text2"> </span></td>
<td class="text-nowrap"><label class="label label-primary" style="font-size: 1em">${cursoFile.respostasRequisitadas}</label> <span class="icon icon-files-empty"> </span> </td>
<td>
<bacoTags:repositoryFile transactional="true" repositoryStream="${cursoFile.repositoryStream}"/>
</td>
<baco:hasRole role="admin,super,questionarios.admin">
<td id="updateReport${cursoFile.id}container">
<reports:reportCheckboxVisibiltyReportFile reportFile="${cursoFile}" containerRefSelect="updateReport${cursoFile.id}container"/>
</td>
</baco:hasRole>
</tr>
<%
}
}
%>
</tbody>
</table>
</div>
<%
AbstractDao.getCurrentSession().getTransaction().commit();
%>
Generated by GNU Enscript 1.6.5.2.