Rev 1586 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<%@ page import="jomm.dao.impl.AbstractDao" %>
<%@ page import="pt.estgp.estgweb.domain.QuestionarioReportDocenteFile" %>
<%@ page import="pt.estgp.estgweb.domain.QuestionarioReportFile" %>
<%@ page import="pt.estgp.estgweb.domain.QuestionarioReportFileGroupDocentesAno" %>
<%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %>
<%@ page import="pt.estgp.estgweb.filters.filters.ResourceAccessControlQuestionariosReportBoardsPedagogicoFilter" %>
<%@ 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"/>
<div class="container-fluid">
<%
AbstractDao.getCurrentSession().beginTransaction();
String id = request.getParameter("id");
QuestionarioReportFileGroupDocentesAno reportGroup = DaoFactory.getQuestionarioReportFileGroupDocentesAnoDaoImpl().load(Long.parseLong(id));
request.setAttribute("reportGroup",reportGroup);
%>
<reports:reportGroupPanel reportGroup="${reportGroup}" title="Relatórios de Docentes - 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="Todas">Docente</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)
{
QuestionarioReportDocenteFile docenteFile = (QuestionarioReportDocenteFile) report;
request.setAttribute("docenteFile",docenteFile);
if(docenteFile.isActive() || ResourceAccessControlQuestionariosReportBoardsPedagogicoFilter.canAccessResource(UserSession))
{
%>
<tr>
<td>${docenteFile.entityCode}</td>
<td>${docenteFile.entityName}</td>
<!--INQUIRIDOS-->
<td>
<reports:progressPercent parcel="${docenteFile.inquiridosComResposta}" total="${docenteFile.inquiridos}" isUserType="true"/>
</td>
<!--${percentageColor} comes from progress Percent-->
<td><label class="label label-${percentageColor}" style="font-size: 1em"> ${docenteFile.inquiridosComResposta}</label><span class="icon icon-user"> </span></td>
<td><label class="label label-primary">${docenteFile.inquiridos}</label><span class="icon icon-users"> </span></td>
<!--RESPOSTAS-->
<td>
<reports:progressPercent parcel="${docenteFile.respostas}" total="${docenteFile.respostasRequisitadas}" isFilesType="true"/>
</td>
<!--${percentageColor} comes from progress Percent-->
<td class="text-nowrap"><label class="label label-${percentageColor}" style="font-size: 1em">${docenteFile.respostas}</label> <span class="icon icon-file-text2"> </span></td>
<td class="text-nowrap"><label class="label label-primary" style="font-size: 1em">${docenteFile.respostasRequisitadas}</label> <span class="icon icon-files-empty"> </span> </td>
<td>
<bacoTags:repositoryFile transactional="true" repositoryStream="${docenteFile.repositoryStream}"/>
</td>
<baco:hasRole role="admin,super,questionarios.admin">
<td id="updateReport${docenteFile.id}container">
<reports:reportCheckboxVisibiltyReportFile reportFile="${docenteFile}" containerRefSelect="updateReport${docenteFile.id}container"/>
</td>
</baco:hasRole>
</tr>
<%
}
}
%>
</tbody>
</table>
</div>
<%
AbstractDao.getCurrentSession().getTransaction().commit();
%>
Generated by GNU Enscript 1.6.5.2.