85,11 → 85,13 |
<th>Unidades Não Selecionadas</th> |
<th>Unidades Selecionadas</th> |
<th>Turmas Selecionadas</th> |
<th>Alunos com Resposta %</th> |
<th>Alunos com Resposta</th> |
<th>Alunos Selecionados</th> |
<th>Professores Selecionados</th> |
<th>Tipologias Selecionadas</th> |
<th>Respostas %</th> |
<th>Respostas</th> |
<th>Por Responder</th> |
<th>Respostas Requisitadas</th> |
|
</thead> |
99,11 → 101,53 |
<td><%=questionarioStatsVars.unidades - questionarioStatsVars.unidadesUsadas%></td> |
<td><%=questionarioStatsVars.unidadesUsadas%></td> |
<td><%=questionarioStatsVars.turmas%></td> |
<td> |
<% |
int percentage = (int) (questionarioStatsVars.alunosQueResponderam/questionarioStatsVars.alunosDeUsadas); |
|
String percentageColor = "danger"; |
if(percentage < 20) |
percentageColor = "danger"; |
else if(percentage < 40) |
percentageColor = "warning"; |
else if(percentage < 60) |
percentageColor = "info"; |
else |
percentageColor = "success"; |
%> |
<div class="progress"> |
<div class="progress-bar progress-bar-<%=percentageColor%>" role="progressbar" aria-valuenow="<%=percentage%>" |
aria-valuemin="0" aria-valuemax="100" style="width:<%=percentage%>%"> |
<%=percentage%>% |
</div> |
</div> |
</td> |
<td><label class="label label-<%=percentageColor%>" style="font-size: 1em"><%=questionarioStatsVars.alunosQueResponderam%></label></td> |
<td><%=questionarioStatsVars.alunosDeUsadas%></td> |
<td><%=questionarioStatsVars.profsDeUsadas%></td> |
<td><%=questionarioStatsVars.tipologiasUsadas%></td> |
<td><label class="label label-success" style="font-size: 1em"><%=questionarioStatsVars.respostasObtidas%></label></td> |
<td><label class="label label-danger" style="font-size: 1em"><%=(questionarioStatsVars.respostasRequisitadas-questionarioStatsVars.respostasObtidas)%></label></td> |
<td> |
<% |
percentage = (int) (questionarioStatsVars.respostasObtidas/questionarioStatsVars.respostasRequisitadas); |
|
percentageColor = "danger"; |
if(percentage < 20) |
percentageColor = "danger"; |
else if(percentage < 40) |
percentageColor = "warning"; |
else if(percentage < 60) |
percentageColor = "info"; |
else |
percentageColor = "success"; |
%> |
<div class="progress"> |
<div class="progress-bar progress-bar-<%=percentageColor%>" role="progressbar" aria-valuenow="<%=percentage%>" |
aria-valuemin="0" aria-valuemax="100" style="width:<%=percentage%>%"> |
<%=percentage%>% |
</div> |
</div> |
</td> |
<td><label class="label label-<%=percentageColor%>" style="font-size: 1em"><%=questionarioStatsVars.respostasObtidas%></label></td> |
<td><label class="label label-info" style="font-size: 1em"><%=questionarioStatsVars.respostasRequisitadas%></label></td> |
|
</tbody> |
116,9 → 160,11 |
<th>Código</th> |
<th>Curso</th> |
<th>Unidades</th> |
<th>% Alunos</th> |
<th>Alunos com resposta</th> |
<th>Alunos</th> |
<th>% Respostas</th> |
<th>Respostas</th> |
<th>Por Responder</th> |
<th>Total</th> |
<th></th> |
</thead> |
130,7 → 176,15 |
QuestionarioPedagogicoCursoAfeto cursoAfeto = DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().load(cursoId); |
long respostasCurso = DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().countRespostas(cursoId); |
long alunosComRespostasCurso = DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().countAlunosComRespostas(cursoId); |
long alunosTotalCurso = DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().countAlunos(cursoId); |
if(alunosTotalCurso == 0) |
alunosTotalCurso = 1; |
if(alunosTotalCurso == 0) |
alunosTotalCurso = 1; |
|
request.setAttribute("cursoAfeto",cursoAfeto); |
if(cursoAfeto.getStatRespostasRequisitadas() > 0) |
{ |
%> |
<tr> |
<td><%=cursoAfeto.getNomeInstituicao()%></td> |
142,9 → 196,52 |
</a> |
|
</td> |
<td><label class="label <%=alunosComRespostasCurso > 0 ? "label-success":"label-warning"%>" style="font-size: 1em"><%=alunosComRespostasCurso%></label></td> |
<td><label class="label <%=respostasCurso > 0 ? "label-success":"label-warning"%>" style="font-size: 1em"><%=respostasCurso%></label></td> |
<td><label class="label label-danger" style="font-size: 1em"><%=cursoAfeto.getStatRespostasRequisitadas() - respostasCurso%></label></td> |
<td> |
<% |
percentage = (int) (alunosComRespostasCurso/alunosTotalCurso); |
|
percentageColor = "danger"; |
if(percentage < 20) |
percentageColor = "danger"; |
else if(percentage < 40) |
percentageColor = "warning"; |
else if(percentage < 60) |
percentageColor = "info"; |
else |
percentageColor = "success"; |
%> |
<div class="progress"> |
<div class="progress-bar progress-bar-<%=percentageColor%>" role="progressbar" aria-valuenow="<%=percentage%>" |
aria-valuemin="0" aria-valuemax="100" style="width:<%=percentage%>%"> |
<%=percentage%>% |
</div> |
</div> |
|
</td> |
<td><label class="label label-<%=percentageColor%>" style="font-size: 1em"><%=alunosComRespostasCurso%></label></td> |
<td><label class="label label-info" style="font-size: 1em"><%=alunosTotalCurso%></label></td> |
<td> |
<% |
percentage = (int) (respostasCurso/cursoAfeto.getStatRespostasRequisitadas()); |
|
percentageColor = "danger"; |
if(percentage < 20) |
percentageColor = "danger"; |
else if(percentage < 40) |
percentageColor = "warning"; |
else if(percentage < 60) |
percentageColor = "info"; |
else |
percentageColor = "success"; |
%> |
<div class="progress"> |
<div class="progress-bar progress-bar-<%=percentageColor%>" role="progressbar" aria-valuenow="<%=percentage%>" |
aria-valuemin="0" aria-valuemax="100" style="width:<%=percentage%>%"> |
<%=percentage%>% |
</div> |
</div> |
</td> |
<td><label class="label label-<%=percentageColor%>" style="font-size: 1em"><%=respostasCurso%></label></td> |
<td><label class="label label-info" style="font-size: 1em"><%=cursoAfeto.getStatRespostasRequisitadas()%></label></td> |
<td> |
<% |
157,6 → 254,7 |
</td> |
</tr> |
<% |
} |
} |
AbstractDao.getCurrentSession().getTransaction().commit(); |
%> |