Subversion Repositories bacoAlunos

Rev

Rev 1405 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1405 Rev 1413
Line 11... Line 11...
11
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
11
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
12
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
12
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
13
<%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %>
13
<%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %>
14
<%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %>
14
<%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %>
15
<jsp:useBean id="Questionario" type="pt.estgp.estgweb.domain.QuestionarioImpl" scope="request"/>
15
<jsp:useBean id="Questionario" type="pt.estgp.estgweb.domain.QuestionarioImpl" scope="request"/>
16
<div class="col-sm-6">
-
 
17
 
16
 
18
    <div class="alert alert-info">
-
 
19
        <%
-
 
20
            AbstractDao.getCurrentSession().beginTransaction();
-
 
21
 
17
 
22
            long respostas = DaoFactory.getQuestionarioDaoImpl().getNumeroRespostas(Questionario.getId());
-
 
23
 
-
 
24
            QuestionarioDaoImpl.QuestionarioStatsVars questionarioStatsVars = DaoFactory.getQuestionarioDaoImpl().loadQuestionarioStatsPedagogico(Questionario.getId());
-
 
25
 
-
 
26
        %>
-
 
27
        <%=respostas%> Respostas
-
 
28
    </div>
-
 
29
    <table class="tablesorter-blue">
-
 
30
        <thead>
-
 
31
        <th>Cursos Selecionados</th>
-
 
32
        <th>Total de Unidades</th>
-
 
33
        <th>Unidades Não Selecionadas</th>
-
 
34
        <th>Unidades Selecionadas</th>
-
 
35
        <th>Turmas Selecionadas</th>
-
 
36
        <th>Alunos Selecionados</th>
-
 
37
        <th>Professores Selecionados</th>
-
 
38
        <th></th>
-
 
39
        </thead>
-
 
40
        <tbody>
-
 
41
        <td><%=questionarioStatsVars.cursos%></td>
-
 
42
        <td><%=questionarioStatsVars.unidades%></td>
-
 
43
        <td><%=questionarioStatsVars.unidades - questionarioStatsVars.unidadesUsadas%></td>
-
 
44
        <td><%=questionarioStatsVars.unidadesUsadas%></td>
-
 
45
        <td><%=questionarioStatsVars.turmas%></td>
-
 
46
        <td><%=questionarioStatsVars.alunosDeUsadas%></td>
-
 
47
        <td><%=questionarioStatsVars.profsDeUsadas%></td>
-
 
48
        <td></td>
-
 
49
        </tbody>
-
 
50
    </table>
-
 
51
 
-
 
52
    <table class="tablesorterfiltered">
-
 
53
        <thead>
-
 
54
        <th>Instituição</th>
-
 
55
        <th>Código</th>
-
 
56
        <th>Curso</th>
-
 
57
        <th>Unidades</th>
-
 
58
        <th>Respondidos</th>
-
 
59
        <th>Por Responder</th>
-
 
60
        <th>Total</th>
-
 
61
        </thead>
-
 
62
        <tbody>
-
 
63
        <%
-
 
64
            List<Long> cursos = DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().findCursosAfetosIds(Questionario.getId());
-
 
65
            for(Long cursoId: cursos)
-
 
66
            {
-
 
67
                QuestionarioPedagogicoCursoAfeto cursoAfeto = DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().load(cursoId);
-
 
68
                long respostasCurso = DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().countRespostas(cursoId);
-
 
69
        %>
-
 
70
        <tr>
-
 
71
            <td><%=cursoAfeto.getNomeInstituicao()%></td>
-
 
72
            <td><%=cursoAfeto.getCodigoCurso()%></td>
-
 
73
            <td><%=cursoAfeto.getNome()%></td>
-
 
74
            <td><%=cursoAfeto.getUnidadesAfetas().size()%></td>
-
 
75
            <td><%=respostasCurso%></td>
-
 
76
            <td><%=cursoAfeto.getStatRespostasRequisitadas() - respostasCurso%></td>
-
 
77
            <td><%=cursoAfeto.getStatRespostasRequisitadas()%></td>
-
 
78
        </tr>
-
 
79
        <%
-
 
80
            }
-
 
81
            AbstractDao.getCurrentSession().getTransaction().commit();
-
 
82
        %>
-
 
83
        </tbody>
-
 
84
    </table>
-
 
85
    <baco:clearOperation name="Questionario" op="QUESTIONARIO_STOP_PROCESSEMENT">
-
 
86
        <button class="btn btn-danger" type="button" data-toggle="modal" data-target="#confirm-ModalGeneric" data-message="Esta operação irá parar o questionário e os alunos não poderão responder!! Tem a certeza que deseja prosseguir?" data-href="<%=request.getContextPath()%>/user/questionariosPaeYearSemestre.do?dispatch=stopProcessement&questionarioId=${Questionario.id}">Parar Questionário</button>
-
 
87
    </baco:clearOperation>
-
 
88
</div>
-
 
89
18
 
-
 
19
<jsp:include page="pedagogicoEstudante/questionarioDashBoard.jsp"/>