Rev 1626 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1626 | Rev 1627 | ||
---|---|---|---|
Line 20... | Line 20... | ||
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 | <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"/> |
27 | <script> |
28 | <script> |
28 | $(document).ready( |
29 | $(document).ready( |
29 | 30 | ||
Line 142... | Line 143... | ||
142 | <% |
143 | <% |
143 | if(unidade.checkSincronizationDirty()) |
144 | if(unidade.checkSincronizationDirty()) |
144 | { |
145 | { |
145 | UpdateCoursesAndUnitsJobService.updateCountersUnidadeAfeta(unidade); |
146 | UpdateCoursesAndUnitsJobService.updateCountersUnidadeAfeta(unidade); |
146 | } |
147 | } |
- | 148 | ||
147 | %> |
149 | %> |
148 | <tr id="unidadeAfetaRow${unidade.id}"> |
150 | <tr id="unidadeAfetaRow${unidade.id}"> |
149 | <td> |
151 | <td> |
150 | <script> |
152 | <script> |
151 | $(document).ready( |
153 | $(document).ready( |
Line 182... | Line 184... | ||
182 | </script> |
184 | </script> |
183 | <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> |
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> |
184 | <script> |
186 | <script> |
185 | $(document).ready( |
187 | $(document).ready( |
186 | function(){ |
188 | function(){ |
187 | $.post("<%=request.getContextPath()%>/user/questionarios/pedagogicoEstudante/pedagogicoCourseCheckUnidadeAfeta.jsp?unidadeAfetaId=${unidade.id}", function(data) { |
189 | $.post("<%=request.getContextPath()%>/user/questionarios/pedagogicoEstudante/pedagogicoCourseCheckUnidadeAfeta.jsp?unidadeAfetaId=${unidade.id}", function(data) |
- | 190 | { |
|
188 | $("#tipologias${unidade.id} .tipologias") |
191 | $("#tipologias${unidade.id} .tipologias") |
189 | .html(data); |
192 | .html(data); |
190 | evaluateTableSortersInside("#tipologias${unidade.id} .tipologias"); |
193 | evaluateTableSortersInside("#tipologias${unidade.id} .tipologias"); |
191 | }); |
194 | }); |
192 | } |
195 | } |
Line 211... | Line 214... | ||
211 | 214 | ||
212 | </td> |
215 | </td> |
213 | <td> |
216 | <td> |
214 | 217 | ||
215 | <% |
218 | <% |
216 | try{ |
- | |
217 | CourseUnitImpl courseUnitImpl = (CourseUnitImpl) DaoFactory.getCourseUnitDaoImpl().narrow(unidade.getCourseUnit()); |
219 | CourseUnitImpl courseUnitImpl = (CourseUnitImpl) DaoFactory.getCourseUnitDaoImpl().narrow(unidade.getCourseUnit()); |
- | 220 | ||
- | 221 | try{ |
|
218 | int students = courseUnitImpl.studentsSize(); |
222 | int students = courseUnitImpl.studentsSize(); |
219 | int studentsTurmasSize = courseUnitImpl.studentsTurmaSize(); |
223 | int studentsTurmasSize = courseUnitImpl.studentsTurmaSize(); |
220 | if(students != studentsTurmasSize) |
224 | if(students != studentsTurmasSize) |
221 | { |
225 | { |
222 | unidade.setMarked(true); |
226 | unidade.setMarked(true); |
Line 240... | Line 244... | ||
240 | <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"> |
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"> |
241 | <%=students%> |
245 | <%=students%> |
242 | </a> |
246 | </a> |
243 | <% |
247 | <% |
244 | } |
248 | } |
- | 249 | } |
|
245 | }catch(Throwable e){e.printStackTrace();System.out.println(e.toString());} |
250 | catch(Throwable e) |
- | 251 | { |
|
- | 252 | System.out.println("Session: open:" + AbstractDao.getCurrentSession().isOpen() + " connected:" + AbstractDao.getCurrentSession().isConnected() +" CU:" + courseUnitImpl.getId() + " : " + e.toString()); |
|
- | 253 | ||
- | 254 | } |
|
246 | %> |
255 | %> |
247 | 256 | ||
248 | </td> |
257 | </td> |
249 | <td> |
258 | <td> |
250 | <logic:equal value="true" name="unidade" property="marked"> |
259 | <logic:equal value="true" name="unidade" property="marked"> |