Subversion Repositories bacoAlunos

Rev

Rev 1627 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1627 Rev 1754
1
<%@ page import="jomm.dao.impl.AbstractDao" %>
1
<%@ page import="jomm.dao.impl.AbstractDao" %>
2
<%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %>
2
<%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %>
3
<%@ page import="pt.estgp.estgweb.web.UserSessionProxy" %>
3
<%@ page import="pt.estgp.estgweb.web.UserSessionProxy" %>
4
<%@ page import="pt.estgp.estgweb.domain.*" %>
4
<%@ page import="pt.estgp.estgweb.domain.*" %>
5
<%@ page import="pt.estgp.estgweb.services.questionarios.pedagogico.UpdateCoursesAndUnitsJobService" %>
5
<%@ page import="pt.estgp.estgweb.services.questionarios.pedagogico.UpdateCoursesAndUnitsJobService" %>
6
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
6
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
7
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
7
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
8
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
8
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
9
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
9
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
10
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
10
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
11
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
11
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
12
<%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %>
12
<%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %>
13
<%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %>
13
<%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %>
14
 
14
 
15
<%
15
<%
16
    long cursoAfetoId = Long.parseLong(request.getParameter("cursoAfetoId"));
16
    long cursoAfetoId = Long.parseLong(request.getParameter("cursoAfetoId"));
17
    AbstractDao.getCurrentSession().beginTransaction();
17
    AbstractDao.getCurrentSession().beginTransaction();
18
    QuestionarioPedagogicoCursoAfeto cursoAfeto = DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().load(cursoAfetoId);
18
    QuestionarioPedagogicoCursoAfeto cursoAfeto = DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().load(cursoAfetoId);
19
    cursoAfeto = DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().narrow(cursoAfeto);
19
    cursoAfeto = DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().narrow(cursoAfeto);
20
    request.setAttribute("CursoAfeto",cursoAfeto);
20
    request.setAttribute("CursoAfeto",cursoAfeto);
21
    Questionario q = cursoAfeto.getQuestionario();
21
    Questionario q = cursoAfeto.getQuestionario();
22
     q = DaoFactory.getQuestionarioDaoImpl().narrow(q);
22
     q = DaoFactory.getQuestionarioDaoImpl().narrow(q);
23
    ((QuestionarioImpl)q).initClearances((UserSessionImpl) UserSessionProxy.loadUserSessionFromRequest(request),false);
23
    ((QuestionarioImpl)q).initClearances((UserSessionImpl) UserSessionProxy.loadUserSessionFromRequest(request),false);
24
    request.setAttribute("Questionario",q);
24
    request.setAttribute("Questionario",q);
25
 
25
 
26
%>
26
%>
27
<jsp:useBean id="Questionario" type="pt.estgp.estgweb.domain.QuestionarioImpl" scope="request"/>
27
<jsp:useBean id="Questionario" type="pt.estgp.estgweb.domain.QuestionarioImpl" scope="request"/>
28
<script>
28
<script>
29
    $(document).ready(
29
    $(document).ready(
30
 
30
 
31
            function()
31
            function()
32
            {
32
            {
33
                $("#cursoAfetoTable${CursoAfeto.id} .usarCheck").each(function()
33
                $("#cursoAfetoTable${CursoAfeto.id} .usarCheck").each(function()
34
                {
34
                {
35
                    if($(this).prop("checked"))
35
                    if($(this).prop("checked"))
36
                    {
36
                    {
37
                        $(this).closest("td").addClass("usarChecked");
37
                        $(this).closest("td").addClass("usarChecked");
38
                        $(this).closest("td").removeClass("usarNotChecked");
38
                        $(this).closest("td").removeClass("usarNotChecked");
39
                    }
39
                    }
40
                    else
40
                    else
41
                    {
41
                    {
42
                        $(this).closest("td").removeClass("usarChecked");
42
                        $(this).closest("td").removeClass("usarChecked");
43
                        $(this).closest("td").addClass("usarNotChecked");
43
                        $(this).closest("td").addClass("usarNotChecked");
44
                    }
44
                    }
45
                }
45
                }
46
                );
46
                );
47
 
47
 
-
 
48
                $("#cursoAfetoTable${CursoAfeto.id} .usarOlapCheck").each(function()
-
 
49
                        {
-
 
50
                            if($(this).prop("checked"))
-
 
51
                            {
-
 
52
                                $(this).closest("td").addClass("usarOlapCheck");
-
 
53
                                $(this).closest("td").removeClass("usarOlapNotCheck");
-
 
54
                            }
-
 
55
                            else
-
 
56
                            {
-
 
57
                                $(this).closest("td").removeClass("usarOlapChecked");
-
 
58
                                $(this).closest("td").addClass("usarOlapNotChecked");
-
 
59
                            }
-
 
60
                        }
-
 
61
                );
-
 
62
 
48
                $("#cursoAfetoTable${CursoAfeto.id} .vistaCheck").each(function()
63
                $("#cursoAfetoTable${CursoAfeto.id} .vistaCheck").each(function()
49
                {
64
                {
50
                    if($(this).prop("checked"))
65
                    if($(this).prop("checked"))
51
                    {
66
                    {
52
                        $(this).closest("td").addClass("vistaChecked");
67
                        $(this).closest("td").addClass("vistaChecked");
53
                        $(this).closest("td").removeClass("vistaNotChecked");
68
                        $(this).closest("td").removeClass("vistaNotChecked");
54
                    }
69
                    }
55
                    else
70
                    else
56
                    {
71
                    {
57
                        $(this).closest("td").removeClass("vistaChecked");
72
                        $(this).closest("td").removeClass("vistaChecked");
58
                        $(this).closest("td").addClass("vistaNotChecked");
73
                        $(this).closest("td").addClass("vistaNotChecked");
59
                    }
74
                    }
60
                });
75
                });
61
                $("#cursoAfetoTable${CursoAfeto.id} .vistaCheckProfs").each(function()
76
                $("#cursoAfetoTable${CursoAfeto.id} .vistaCheckProfs").each(function()
62
                {
77
                {
63
                    if($(this).prop("checked"))
78
                    if($(this).prop("checked"))
64
                    {
79
                    {
65
                        $(this).closest("td").addClass("vistaChecked");
80
                        $(this).closest("td").addClass("vistaChecked");
66
                        $(this).closest("td").removeClass("vistaNotChecked");
81
                        $(this).closest("td").removeClass("vistaNotChecked");
67
                    }
82
                    }
68
                    else
83
                    else
69
                    {
84
                    {
70
                        $(this).closest("td").removeClass("vistaChecked");
85
                        $(this).closest("td").removeClass("vistaChecked");
71
                        $(this).closest("td").addClass("vistaNotChecked");
86
                        $(this).closest("td").addClass("vistaNotChecked");
72
                    }
87
                    }
73
                });
88
                });
74
 
89
 
75
                $("#cursoAfetoTable${CursoAfeto.id} .usarCheck").on("change",function()
90
                $("#cursoAfetoTable${CursoAfeto.id} .usarCheck").on("change",function()
76
                {
91
                {
77
                    if($(this).prop("checked"))
92
                    if($(this).prop("checked"))
78
                    {
93
                    {
79
                        $(this).closest("td").addClass("usarChecked");
94
                        $(this).closest("td").addClass("usarChecked");
80
                        $(this).closest("td").removeClass("usarNotChecked");
95
                        $(this).closest("td").removeClass("usarNotChecked");
81
                    }
96
                    }
82
                    else
97
                    else
83
                    {
98
                    {
84
                        $(this).closest("td").removeClass("usarChecked");
99
                        $(this).closest("td").removeClass("usarChecked");
85
                        $(this).closest("td").addClass("usarNotChecked");
100
                        $(this).closest("td").addClass("usarNotChecked");
86
                    }
101
                    }
87
                });
102
                });
88
 
103
 
-
 
104
                $("#cursoAfetoTable${CursoAfeto.id} .usarOlapCheck").on("change",function()
-
 
105
                {
-
 
106
                    if($(this).prop("checked"))
-
 
107
                    {
-
 
108
                        $(this).closest("td").addClass("usarOlapChecked");
-
 
109
                        $(this).closest("td").removeClass("usarOlapNotChecked");
-
 
110
                    }
-
 
111
                    else
-
 
112
                    {
-
 
113
                        $(this).closest("td").removeClass("usarOlapChecked");
-
 
114
                        $(this).closest("td").addClass("usarOlapNotChecked");
-
 
115
                    }
-
 
116
                });
-
 
117
 
89
                $("#cursoAfetoTable${CursoAfeto.id} .vistaCheck").on("change",function()
118
                $("#cursoAfetoTable${CursoAfeto.id} .vistaCheck").on("change",function()
90
                {
119
                {
91
                    if($(this).prop("checked"))
120
                    if($(this).prop("checked"))
92
                    {
121
                    {
93
                        $(this).closest("td").addClass("vistaChecked");
122
                        $(this).closest("td").addClass("vistaChecked");
94
                        $(this).closest("td").removeClass("vistaNotChecked");
123
                        $(this).closest("td").removeClass("vistaNotChecked");
95
                    }
124
                    }
96
                    else
125
                    else
97
                    {
126
                    {
98
                        $(this).closest("td").removeClass("vistaChecked");
127
                        $(this).closest("td").removeClass("vistaChecked");
99
                        $(this).closest("td").addClass("vistaNotChecked");
128
                        $(this).closest("td").addClass("vistaNotChecked");
100
                    }
129
                    }
101
                });
130
                });
102
 
131
 
103
                $("#cursoAfetoTable${CursoAfeto.id} .vistaCheckProfs").on("change",function()
132
                $("#cursoAfetoTable${CursoAfeto.id} .vistaCheckProfs").on("change",function()
104
                {
133
                {
105
                    if($(this).prop("checked"))
134
                    if($(this).prop("checked"))
106
                    {
135
                    {
107
                        $(this).closest("td").addClass("vistaChecked");
136
                        $(this).closest("td").addClass("vistaChecked");
108
                        $(this).closest("td").removeClass("vistaNotChecked");
137
                        $(this).closest("td").removeClass("vistaNotChecked");
109
                    }
138
                    }
110
                    else
139
                    else
111
                    {
140
                    {
112
                        $(this).closest("td").removeClass("vistaChecked");
141
                        $(this).closest("td").removeClass("vistaChecked");
113
                        $(this).closest("td").addClass("vistaNotChecked");
142
                        $(this).closest("td").addClass("vistaNotChecked");
114
                    }
143
                    }
115
                });
144
                });
116
            }
145
            }
117
    );
146
    );
118
</script>
147
</script>
119
    <table id="cursoAfetoTable${CursoAfeto.id}" class="tablesorter-blue">
148
    <table id="cursoAfetoTable${CursoAfeto.id}" class="tablesorter-blue">
120
        <thead>
149
        <thead>
121
        <tr>
150
        <tr>
122
            <th></th>
151
            <th></th>
123
            <th>Codigo</th>
152
            <th>Codigo</th>
124
            <th>Nome</th>
153
            <th>Nome</th>
125
            <%--<th>Tipologias Manuais</th>--%>
154
            <%--<th>Tipologias Manuais</th>--%>
126
            <th>Turmas</th>
155
            <th>Turmas</th>
127
            <th>Docentes</th>
156
            <th>Docentes</th>
128
            <th>Estudantes</th>
157
            <th>Estudantes</th>
129
            <th>Alertas</th>
158
            <th>Alertas</th>
130
            <th>Docentes s/ sumario</th>
159
            <th>Docentes s/ sumario</th>
131
            <th>Turmas s/ sumario</th>
160
            <th>Turmas s/ sumario</th>
132
            <th>Escluidas</th>
161
            <th>Escluidas</th>
-
 
162
            <th>Usar OLAP</th>
133
            <th>Usar</th>
163
            <th>Usar</th>
134
            <th>Alunos OK</th>
164
            <th>Alunos OK</th>
135
            <th>Profs OK</th>
165
            <th>Profs OK</th>
136
            <th>Obs.</th>
166
            <th>Obs.</th>
137
            <th data-toggle="tooltip" data-placement="top" title="Tipologias Requisitadas para Responder">Tip. Req</th>
167
            <th data-toggle="tooltip" data-placement="top" title="Tipologias Requisitadas para Responder">Tip. Req</th>
138
            <th data-toggle="tooltip" data-placement="top" title="Respostas Requisitadas para Responder">Resp. Req</th>
168
            <th data-toggle="tooltip" data-placement="top" title="Respostas Requisitadas para Responder">Resp. Req</th>
139
        </tr>
169
        </tr>
140
        </thead>
170
        </thead>
141
        <tbody>
171
        <tbody>
142
            <logic:iterate id="unidade" name="CursoAfeto" property="unidadesAfetas" type="pt.estgp.estgweb.domain.QuestionarioPedagogicoUnidadeCurricularAfetaImpl">
172
            <logic:iterate id="unidade" name="CursoAfeto" property="unidadesAfetas" type="pt.estgp.estgweb.domain.QuestionarioPedagogicoUnidadeCurricularAfetaImpl">
143
                 <%
173
                 <%
144
                     if(unidade.checkSincronizationDirty())
174
                     if(unidade.checkSincronizationDirty())
145
                     {
175
                     {
146
                        UpdateCoursesAndUnitsJobService.updateCountersUnidadeAfeta(unidade);
176
                        UpdateCoursesAndUnitsJobService.updateCountersUnidadeAfeta(unidade);
147
                     }
177
                     }
148
 
178
 
149
                 %>
179
                 %>
150
                 <tr id="unidadeAfetaRow${unidade.id}">
180
                 <tr id="unidadeAfetaRow${unidade.id}">
151
                     <td>
181
                     <td>
152
                         <script>
182
                         <script>
153
                             $(document).ready(
183
                             $(document).ready(
154
                                     function()
184
                                     function()
155
                                     {
185
                                     {
156
                                         $('#tipologias${unidade.id}').on('shown.bs.collapse', function () {
186
                                         $('#tipologias${unidade.id}').on('shown.bs.collapse', function () {
157
                                             $("#tipologias${unidade.id}Button .glyphicon").removeClass("glyphicon-zoom-in").addClass("glyphicon-zoom-out");
187
                                             $("#tipologias${unidade.id}Button .glyphicon").removeClass("glyphicon-zoom-in").addClass("glyphicon-zoom-out");
158
                                         });
188
                                         });
159
                                         $('#tipologias${unidade.id}').on('hidden.bs.collapse', function () {
189
                                         $('#tipologias${unidade.id}').on('hidden.bs.collapse', function () {
160
                                             $("#tipologias${unidade.id}Button .glyphicon").removeClass("glyphicon-zoom-out").addClass("glyphicon-zoom-in");
190
                                             $("#tipologias${unidade.id}Button .glyphicon").removeClass("glyphicon-zoom-out").addClass("glyphicon-zoom-in");
161
                                         });
191
                                         });
162
 
192
 
163
                                         $("#unidadeAfetaRow${unidade.id} .usarCheck").on("change",function(){
193
                                         $("#unidadeAfetaRow${unidade.id} .usarCheck").on("change",function(){
164
                                            var val =$(this).prop("checked") ? "true" : "false";
194
                                            var val =$(this).prop("checked") ? "true" : "false";
165
                                            var op = "usar";
195
                                            var op = "usar";
166
                                            setUnidadeAfetaVar('${CursoAfeto.id}','${unidade.id}',op,val,$(this).closest("td"));
196
                                            setUnidadeAfetaVar('${CursoAfeto.id}','${unidade.id}',op,val,$(this).closest("td"));
167
                                         });
197
                                         });
-
 
198
                                         $("#unidadeAfetaRow${unidade.id} .usarOlapCheck").on("change",function(){
-
 
199
                                             var val =$(this).prop("checked") ? "true" : "false";
-
 
200
                                             var op = "usarOlap";
-
 
201
                                             setUnidadeAfetaVar('${CursoAfeto.id}','${unidade.id}',op,val,$(this).closest("td"));
-
 
202
                                         });
168
                                         $("#unidadeAfetaRow${unidade.id} .vistaCheck").on("change",function()
203
                                         $("#unidadeAfetaRow${unidade.id} .vistaCheck").on("change",function()
169
                                         {
204
                                         {
170
                                             var val =$(this).prop("checked") ? "true" : "false";
205
                                             var val =$(this).prop("checked") ? "true" : "false";
171
                                             var op = "vista";
206
                                             var op = "vista";
172
                                             setUnidadeAfetaVar('${CursoAfeto.id}','${unidade.id}',op,val,$(this).closest("td"));
207
                                             setUnidadeAfetaVar('${CursoAfeto.id}','${unidade.id}',op,val,$(this).closest("td"));
173
                                         });
208
                                         });
174
                                         $("#unidadeAfetaRow${unidade.id} .vistaCheckProfs").on("change",function()
209
                                         $("#unidadeAfetaRow${unidade.id} .vistaCheckProfs").on("change",function()
175
                                         {
210
                                         {
176
                                             var val =$(this).prop("checked") ? "true" : "false";
211
                                             var val =$(this).prop("checked") ? "true" : "false";
177
                                             var op = "vistaProfs";
212
                                             var op = "vistaProfs";
178
                                             setUnidadeAfetaVar('${CursoAfeto.id}','${unidade.id}',op,val,$(this).closest("td"));
213
                                             setUnidadeAfetaVar('${CursoAfeto.id}','${unidade.id}',op,val,$(this).closest("td"));
179
                                         });
214
                                         });
180
 
215
 
181
                                     }
216
                                     }
182
 
217
 
183
                             );
218
                             );
184
                         </script>
219
                         </script>
185
                         <button id="tipologias${unidade.id}Button" class="btn btn-default btn-small" type="button" data-toggle="collapse" data-target="#tipologias${unidade.id}"><span class="glyphicon glyphicon-zoom-in"></span></button>
220
                         <button id="tipologias${unidade.id}Button" class="btn btn-default btn-small" type="button" data-toggle="collapse" data-target="#tipologias${unidade.id}"><span class="glyphicon glyphicon-zoom-in"></span></button>
186
                         <script>
221
                         <script>
187
                             $(document).ready(
222
                             $(document).ready(
188
                                     function(){
223
                                     function(){
189
                                         $.post("<%=request.getContextPath()%>/user/questionarios/pedagogicoEstudante/pedagogicoCourseCheckUnidadeAfeta.jsp?unidadeAfetaId=${unidade.id}", function(data)
224
                                         $.post("<%=request.getContextPath()%>/user/questionarios/pedagogicoEstudante/pedagogicoCourseCheckUnidadeAfeta.jsp?unidadeAfetaId=${unidade.id}", function(data)
190
                                         {
225
                                         {
191
                                             $("#tipologias${unidade.id} .tipologias")
226
                                             $("#tipologias${unidade.id} .tipologias")
192
                                                     .html(data);
227
                                                     .html(data);
193
                                             evaluateTableSortersInside("#tipologias${unidade.id} .tipologias");
228
                                             evaluateTableSortersInside("#tipologias${unidade.id} .tipologias");
194
                                         });
229
                                         });
195
                                     }
230
                                     }
196
                             );
231
                             );
197
                         </script>
232
                         </script>
198
                     </td>
233
                     </td>
199
                    <td>${unidade.codigoUnidade}</td>
234
                    <td>${unidade.codigoUnidade}</td>
200
                    <td>
235
                    <td>
201
                        <html:link target="_blank"  action="/user/startLoadCourseUnitFromHome.do?id=${unidade.courseUnit.id}">
236
                        <html:link target="_blank"  action="/user/startLoadCourseUnitFromHome?id=${unidade.courseUnit.id}">
202
                            ${unidade.nome}
237
                            ${unidade.nome}
203
                        </html:link>
238
                        </html:link>
204
                    </td>
239
                    </td>
205
                   <%-- <td>${unidade.addedTipologias}</td>--%>
240
                   <%-- <td>${unidade.addedTipologias}</td>--%>
206
                    <td>
241
                    <td>
207
                        <a href="#" data-href="<%=request.getContextPath()%>/user/questionarios/pedagogicoEstudante/listCunitTurmas.jsp?courseUnitId=${unidade.courseUnit.id}" data-title="Turmas da Unidade ${unidade.nome} (${unidade.codigoUnidade}) do curso de ${CursoAfeto.nome} (${CursoAfeto.codigoCurso})" data-toggle="modal" data-target="#modalAjaxRequest">
242
                        <a href="#" data-href="<%=request.getContextPath()%>/user/questionarios/pedagogicoEstudante/listCunitTurmas.jsp?courseUnitId=${unidade.courseUnit.id}" data-title="Turmas da Unidade ${unidade.nome} (${unidade.codigoUnidade}) do curso de ${CursoAfeto.nome} (${CursoAfeto.codigoCurso})" data-toggle="modal" data-target="#modalAjaxRequest">
208
                            ${unidade.turmas}
243
                            ${unidade.turmas}
209
                        </a>
244
                        </a>
210
                    <td>
245
                    <td>
211
                        <a href="#" data-href="<%=request.getContextPath()%>/user/courseunits/teachersInfo.jsp?courseUnitId=${unidade.courseUnit.id}" data-title="Docentes da unidade de ${unidade.nome} (${unidade.codigoUnidade}) do curso de ${CursoAfeto.nome} (${CursoAfeto.codigoCurso})" data-toggle="modal" data-target="#modalAjaxRequest">
246
                        <a href="#" data-href="<%=request.getContextPath()%>/user/courseunits/teachersInfo.jsp?courseUnitId=${unidade.courseUnit.id}" data-title="Docentes da unidade de ${unidade.nome} (${unidade.codigoUnidade}) do curso de ${CursoAfeto.nome} (${CursoAfeto.codigoCurso})" data-toggle="modal" data-target="#modalAjaxRequest">
212
                            ${unidade.profs}
247
                            ${unidade.profs}
213
                        </a>
248
                        </a>
214
 
249
 
215
                    </td>
250
                    </td>
216
                     <td>
251
                     <td>
217
 
252
 
218
                         <%
253
                         <%
219
                             CourseUnitImpl courseUnitImpl = (CourseUnitImpl) DaoFactory.getCourseUnitDaoImpl().narrow(unidade.getCourseUnit());
254
                             CourseUnitImpl courseUnitImpl = (CourseUnitImpl) DaoFactory.getCourseUnitDaoImpl().narrow(unidade.getCourseUnit());
220
 
255
 
221
                             try{
256
                             try{
222
                             int students = courseUnitImpl.studentsSize();
257
                             int students = courseUnitImpl.studentsSize();
223
                             int studentsTurmasSize = courseUnitImpl.studentsTurmaSize();
258
                             int studentsTurmasSize = courseUnitImpl.studentsTurmaSize();
224
                             if(students != studentsTurmasSize)
259
                             if(students != studentsTurmasSize)
225
                             {
260
                             {
226
                                 unidade.setMarked(true);
261
                                 unidade.setMarked(true);
227
                                 if(unidade.getObs() != null && unidade.getObs().indexOf("Nº Estudantes")< 0)
262
                                 if(unidade.getObs() != null && unidade.getObs().indexOf("Nº Estudantes")< 0)
228
                                    unidade.addObs(" - Nº Estudantes diferente Somatorio Estudantes das turmas");
263
                                    unidade.addObs(" - Nº Estudantes diferente Somatorio Estudantes das turmas");
229
                         %>
264
                         %>
230
                         <a href="#" data-href="<%=request.getContextPath()%>/user/courseunits/listStudentsService.jsp?courseUnitView.id=${unidade.courseUnit.id}" data-title="Alunos da unidade de ${unidade.nome} (${unidade.codigoUnidade}) do curso de ${CursoAfeto.nome} (${CursoAfeto.codigoCurso})" data-toggle="modal" data-target="#modalAjaxRequest">
265
                         <a href="#" data-href="<%=request.getContextPath()%>/user/courseunits/listStudentsService.jsp?courseUnitView.id=${unidade.courseUnit.id}" data-title="Alunos da unidade de ${unidade.nome} (${unidade.codigoUnidade}) do curso de ${CursoAfeto.nome} (${CursoAfeto.codigoCurso})" data-toggle="modal" data-target="#modalAjaxRequest">
231
                         <%=students%>
266
                         <%=students%>
232
                         </a>
267
                         </a>
233
                         !=
268
                         !=
234
                         <a href="#" data-href="<%=request.getContextPath()%>/user/courseunits/listStudentsService.jsp?courseUnitView.id=${unidade.courseUnit.id}" data-title="Alunos da unidade de ${unidade.nome} (${unidade.codigoUnidade}) do curso de ${CursoAfeto.nome} (${CursoAfeto.codigoCurso})" data-toggle="modal" data-target="#modalAjaxRequest">
269
                         <a href="#" data-href="<%=request.getContextPath()%>/user/courseunits/listStudentsService.jsp?courseUnitView.id=${unidade.courseUnit.id}" data-title="Alunos da unidade de ${unidade.nome} (${unidade.codigoUnidade}) do curso de ${CursoAfeto.nome} (${CursoAfeto.codigoCurso})" data-toggle="modal" data-target="#modalAjaxRequest">
235
                                     <%=studentsTurmasSize%>
270
                                     <%=studentsTurmasSize%>
236
                         </a>
271
                         </a>
237
                         <span class="glyphicon glyphicon-alert"></span>
272
                         <span class="glyphicon glyphicon-alert"></span>
238
 
273
 
239
                         <%
274
                         <%
240
                             }
275
                             }
241
                             else
276
                             else
242
                             {
277
                             {
243
                         %>
278
                         %>
244
                         <a href="#" data-href="<%=request.getContextPath()%>/user/courseunits/listStudentsService.jsp?courseUnitView.id=${unidade.courseUnit.id}" data-title="Alunos da unidade de ${unidade.nome} (${unidade.codigoUnidade}) do curso de ${CursoAfeto.nome} (${CursoAfeto.codigoCurso})" data-toggle="modal" data-target="#modalAjaxRequest">
279
                         <a href="#" data-href="<%=request.getContextPath()%>/user/courseunits/listStudentsService.jsp?courseUnitView.id=${unidade.courseUnit.id}" data-title="Alunos da unidade de ${unidade.nome} (${unidade.codigoUnidade}) do curso de ${CursoAfeto.nome} (${CursoAfeto.codigoCurso})" data-toggle="modal" data-target="#modalAjaxRequest">
245
                             <%=students%>
280
                             <%=students%>
246
                         </a>
281
                         </a>
247
                         <%
282
                         <%
248
                             }
283
                             }
249
                             }
284
                             }
250
                             catch(Throwable e)
285
                             catch(Throwable e)
251
                             {
286
                             {
252
                                 System.out.println("Session: open:" + AbstractDao.getCurrentSession().isOpen() + " connected:" + AbstractDao.getCurrentSession().isConnected() +" CU:" + courseUnitImpl.getId() + " : " + e.toString());
287
                                 System.out.println("Session: open:" + AbstractDao.getCurrentSession().isOpen() + " connected:" + AbstractDao.getCurrentSession().isConnected() +" CU:" + courseUnitImpl.getId() + " : " + e.toString());
253
 
288
 
254
                             }
289
                             }
255
                         %>
290
                         %>
256
 
291
 
257
                     </td>
292
                     </td>
258
                    <td>
293
                    <td>
259
                        <logic:equal value="true" name="unidade" property="marked">
294
                        <logic:equal value="true" name="unidade" property="marked">
260
                            <span class="glyphicon glyphicon-alert"></span>
295
                            <span class="glyphicon glyphicon-alert"></span>
261
                        </logic:equal>
296
                        </logic:equal>
262
                    </td>
297
                    </td>
263
                    <td>${unidade.profsWithoutTurma}</td><%--PROFS SEM SUMARIO--%>
298
                    <td>${unidade.profsWithoutTurma}</td><%--PROFS SEM SUMARIO--%>
264
                    <td>${unidade.turmaWithoutProf}</td><%--Turmas Sem Sumario--%>
299
                    <td>${unidade.turmaWithoutProf}</td><%--Turmas Sem Sumario--%>
265
                    <td>${unidade.excludedTipologias}</td>
300
                    <td>${unidade.excludedTipologias}</td>
-
 
301
                     <td>
-
 
302
                         <baco:clearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_USE_OLAP_UNIT">
-
 
303
                             <html:checkbox styleClass="usarOlapCheck" name="unidade" property="usarOlap"/>
-
 
304
                         </baco:clearOperation>
-
 
305
                         <baco:notClearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_USE_OLAP_UNIT">
-
 
306
                             <html:checkbox styleClass="usarOlapCheck" name="unidade" property="usarOlap" disabled="true"/>
-
 
307
                         </baco:notClearOperation>
-
 
308
                     </td>
266
                    <td>
309
                    <td>
267
                        <baco:clearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_USE_UNIT">
310
                        <baco:clearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_USE_UNIT">
268
                            <html:checkbox styleClass="usarCheck" name="unidade" property="usar"/>
311
                            <html:checkbox styleClass="usarCheck" name="unidade" property="usar"/>
269
                        </baco:clearOperation>
312
                        </baco:clearOperation>
270
                        <baco:notClearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_USE_UNIT">
313
                        <baco:notClearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_USE_UNIT">
271
                            <html:checkbox styleClass="usarCheck" name="unidade" property="usar" disabled="true"/>
314
                            <html:checkbox styleClass="usarCheck" name="unidade" property="usar" disabled="true"/>
272
                        </baco:notClearOperation>
315
                        </baco:notClearOperation>
273
                    </td>
316
                    </td>
274
                    <td>
317
                    <td>
275
                        <baco:clearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS">
318
                        <baco:clearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS">
276
                            <html:checkbox styleClass="vistaCheck" name="unidade" property="vista"/>
319
                            <html:checkbox styleClass="vistaCheck" name="unidade" property="vista"/>
277
                        </baco:clearOperation>
320
                        </baco:clearOperation>
278
                        <baco:notClearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS">
321
                        <baco:notClearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS">
279
                            <html:checkbox disabled="true" styleClass="vistaCheck" name="unidade" property="vista"/>
322
                            <html:checkbox disabled="true" styleClass="vistaCheck" name="unidade" property="vista"/>
280
                        </baco:notClearOperation>
323
                        </baco:notClearOperation>
281
                    </td>
324
                    </td>
282
                    <td>
325
                    <td>
283
                         <baco:clearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_CHECK_TEACHERS">
326
                         <baco:clearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_CHECK_TEACHERS">
284
                             <html:checkbox styleClass="vistaCheckProfs" name="unidade" property="vistaProfs"/>
327
                             <html:checkbox styleClass="vistaCheckProfs" name="unidade" property="vistaProfs"/>
285
                         </baco:clearOperation>
328
                         </baco:clearOperation>
286
                        <baco:notClearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_CHECK_TEACHERS">
329
                        <baco:notClearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_CHECK_TEACHERS">
287
                            <html:checkbox disabled="true" styleClass="vistaCheckProfs" name="unidade" property="vistaProfs"/>
330
                            <html:checkbox disabled="true" styleClass="vistaCheckProfs" name="unidade" property="vistaProfs"/>
288
                        </baco:notClearOperation>
331
                        </baco:notClearOperation>
289
                    </td>
332
                    </td>
290
                    <td id="editObsTd${unidade.id}" <%=unidade.getObs() != null && unidade.getObs().trim().length() > 0 ? "class=\"obsContent\"":""%>>
333
                    <td id="editObsTd${unidade.id}" <%=unidade.getObs() != null && unidade.getObs().trim().length() > 0 ? "class=\"obsContent\"":""%>>
291
                         <button class="btn btn-warning btn-small" type="button" data-href="<%=request.getContextPath()%>/user/questionarios/pedagogicoEstudante/questionarioObsEdit.jsp?unidadeAfetaId=${unidade.id}&targetSetVarId=editObsTd${unidade.id}" data-title="Observações para a unidade ${unidade.nome} (${unidade.codigoUnidade}) do curso de ${CursoAfeto.nome} (${CursoAfeto.codigoCurso})" data-toggle="modal" data-target="#modalAjaxRequest"><span class="glyphicon glyphicon-pencil"></span></button>
334
                         <button class="btn btn-warning btn-small" type="button" data-href="<%=request.getContextPath()%>/user/questionarios/pedagogicoEstudante/questionarioObsEdit.jsp?unidadeAfetaId=${unidade.id}&targetSetVarId=editObsTd${unidade.id}" data-title="Observações para a unidade ${unidade.nome} (${unidade.codigoUnidade}) do curso de ${CursoAfeto.nome} (${CursoAfeto.codigoCurso})" data-toggle="modal" data-target="#modalAjaxRequest"><span class="glyphicon glyphicon-pencil"></span></button>
292
                    </td>
335
                    </td>
293
                     <td><%=unidade.getStatTipologiasRequisitadas()%></td>
336
                     <td><%=unidade.getStatTipologiasRequisitadas()%></td>
294
                     <td><%=unidade.getStatRespostasRequisitadas()%></td>
337
                     <td><%=unidade.getStatRespostasRequisitadas()%></td>
295
                </tr>
338
                </tr>
296
                <tr class="collapse" id="tipologias${unidade.id}">
339
                <tr class="collapse" id="tipologias${unidade.id}">
297
                    <td></td>
340
                    <td></td>
298
                    <td colspan="14" class="tipologias" style="padding-left: 25px">
341
                    <td colspan="15" class="tipologias" style="padding-left: 25px">
299
 
342
 
300
                        <div class="panel panel-default">
343
                        <div class="panel panel-default">
301
                            <div class="panel-body">
344
                            <div class="panel-body">
302
                                <p>Por favor aguarde um momento, o sistema está a carregar as tipologias <img src="<%=request.getContextPath()%>/imgs/wait.gif"/></p>
345
                                <p>Por favor aguarde um momento, o sistema está a carregar as tipologias <img src="<%=request.getContextPath()%>/imgs/wait.gif"/></p>
303
                            </div>
346
                            </div>
304
                        </div>
347
                        </div>
305
                    </td>
348
                    </td>
306
                </tr>
349
                </tr>
307
            <%
350
            <%
308
                    //DaoFactory.getQuestionarioPedagogicoUnidadeCurricularAfetaDaoImpl().evict(unidade);
351
                    //DaoFactory.getQuestionarioPedagogicoUnidadeCurricularAfetaDaoImpl().evict(unidade);
309
            %>
352
            %>
310
            </logic:iterate>
353
            </logic:iterate>
311
        </tbody>
354
        </tbody>
312
    </table>
355
    </table>
313
 
356
 
314
<%
357
<%
315
    DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().evict(cursoAfeto);
358
    DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().evict(cursoAfeto);
316
    AbstractDao.getCurrentSession().getTransaction().commit();
359
    AbstractDao.getCurrentSession().getTransaction().commit();
317
%>
360
%>
318
 
361
 
319
Generated by GNU Enscript 1.6.5.2.
362
Generated by GNU Enscript 1.6.5.2.
320
 
363
 
321
 
364