Rev 1627 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1627 | Rev 1754 | ||
---|---|---|---|
Line 43... | Line 43... | ||
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"); |
Line 84... | Line 99... | ||
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"); |
Line 128... | Line 157... | ||
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> |
Line 163... | Line 193... | ||
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")); |
Line 196... | Line 231... | ||
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> |
Line 261... | Line 296... | ||
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"> |
Line 293... | Line 336... | ||
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> |