Rev 1403 | Rev 1626 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1403 | Rev 1422 | ||
---|---|---|---|
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 contentType="text/html;charset=UTF-8" language="java" %> |
5 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
6 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
6 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
7 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
7 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
8 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
8 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
9 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
9 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
10 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
10 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
11 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
11 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
12 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
12 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
13 | 13 | ||
14 | <% |
14 | <% |
15 | long cursoAfetoId = Long.parseLong(request.getParameter("cursoAfetoId")); |
15 | long cursoAfetoId = Long.parseLong(request.getParameter("cursoAfetoId")); |
16 | AbstractDao.getCurrentSession().beginTransaction(); |
16 | AbstractDao.getCurrentSession().beginTransaction(); |
17 | QuestionarioPedagogicoCursoAfeto cursoAfeto = DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().load(cursoAfetoId); |
17 | QuestionarioPedagogicoCursoAfeto cursoAfeto = DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().load(cursoAfetoId); |
18 | cursoAfeto = DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().narrow(cursoAfeto); |
18 | cursoAfeto = DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().narrow(cursoAfeto); |
19 | request.setAttribute("CursoAfeto",cursoAfeto); |
19 | request.setAttribute("CursoAfeto",cursoAfeto); |
20 | Questionario q = cursoAfeto.getQuestionario(); |
20 | Questionario q = cursoAfeto.getQuestionario(); |
21 | q = DaoFactory.getQuestionarioDaoImpl().narrow(q); |
21 | q = DaoFactory.getQuestionarioDaoImpl().narrow(q); |
22 | ((QuestionarioImpl)q).initClearances((UserSessionImpl) UserSessionProxy.loadUserSessionFromRequest(request),false); |
22 | ((QuestionarioImpl)q).initClearances((UserSessionImpl) UserSessionProxy.loadUserSessionFromRequest(request),false); |
23 | request.setAttribute("Questionario",q); |
23 | request.setAttribute("Questionario",q); |
24 | %> |
24 | %> |
25 | <jsp:useBean id="Questionario" type="pt.estgp.estgweb.domain.QuestionarioImpl" scope="request"/> |
25 | <jsp:useBean id="Questionario" type="pt.estgp.estgweb.domain.QuestionarioImpl" scope="request"/> |
26 | <script> |
26 | <script> |
27 | $(document).ready( |
27 | $(document).ready( |
28 | 28 | ||
29 | function() |
29 | function() |
30 | { |
30 | { |
31 | $("#cursoAfetoTable${CursoAfeto.id} .usarCheck").each(function() |
31 | $("#cursoAfetoTable${CursoAfeto.id} .usarCheck").each(function() |
32 | { |
32 | { |
33 | if($(this).prop("checked")) |
33 | if($(this).prop("checked")) |
34 | { |
34 | { |
35 | $(this).closest("td").addClass("usarChecked"); |
35 | $(this).closest("td").addClass("usarChecked"); |
36 | $(this).closest("td").removeClass("usarNotChecked"); |
36 | $(this).closest("td").removeClass("usarNotChecked"); |
37 | } |
37 | } |
38 | else |
38 | else |
39 | { |
39 | { |
40 | $(this).closest("td").removeClass("usarChecked"); |
40 | $(this).closest("td").removeClass("usarChecked"); |
41 | $(this).closest("td").addClass("usarNotChecked"); |
41 | $(this).closest("td").addClass("usarNotChecked"); |
42 | } |
42 | } |
43 | } |
43 | } |
44 | ); |
44 | ); |
45 | $("#cursoAfetoTable${CursoAfeto.id} .vistaCheck").each(function() |
45 | $("#cursoAfetoTable${CursoAfeto.id} .vistaCheck").each(function() |
46 | { |
46 | { |
47 | if($(this).prop("checked")) |
47 | if($(this).prop("checked")) |
48 | { |
48 | { |
49 | $(this).closest("td").addClass("vistaChecked"); |
49 | $(this).closest("td").addClass("vistaChecked"); |
50 | $(this).closest("td").removeClass("vistaNotChecked"); |
50 | $(this).closest("td").removeClass("vistaNotChecked"); |
51 | } |
51 | } |
52 | else |
52 | else |
53 | { |
53 | { |
54 | $(this).closest("td").removeClass("vistaChecked"); |
54 | $(this).closest("td").removeClass("vistaChecked"); |
55 | $(this).closest("td").addClass("vistaNotChecked"); |
55 | $(this).closest("td").addClass("vistaNotChecked"); |
56 | } |
56 | } |
57 | }); |
57 | }); |
58 | $("#cursoAfetoTable${CursoAfeto.id} .vistaCheckProfs").each(function() |
58 | $("#cursoAfetoTable${CursoAfeto.id} .vistaCheckProfs").each(function() |
59 | { |
59 | { |
60 | if($(this).prop("checked")) |
60 | if($(this).prop("checked")) |
61 | { |
61 | { |
62 | $(this).closest("td").addClass("vistaChecked"); |
62 | $(this).closest("td").addClass("vistaChecked"); |
63 | $(this).closest("td").removeClass("vistaNotChecked"); |
63 | $(this).closest("td").removeClass("vistaNotChecked"); |
64 | } |
64 | } |
65 | else |
65 | else |
66 | { |
66 | { |
67 | $(this).closest("td").removeClass("vistaChecked"); |
67 | $(this).closest("td").removeClass("vistaChecked"); |
68 | $(this).closest("td").addClass("vistaNotChecked"); |
68 | $(this).closest("td").addClass("vistaNotChecked"); |
69 | } |
69 | } |
70 | }); |
70 | }); |
71 | 71 | ||
72 | $("#cursoAfetoTable${CursoAfeto.id} .usarCheck").on("change",function() |
72 | $("#cursoAfetoTable${CursoAfeto.id} .usarCheck").on("change",function() |
73 | { |
73 | { |
74 | if($(this).prop("checked")) |
74 | if($(this).prop("checked")) |
75 | { |
75 | { |
76 | $(this).closest("td").addClass("usarChecked"); |
76 | $(this).closest("td").addClass("usarChecked"); |
77 | $(this).closest("td").removeClass("usarNotChecked"); |
77 | $(this).closest("td").removeClass("usarNotChecked"); |
78 | } |
78 | } |
79 | else |
79 | else |
80 | { |
80 | { |
81 | $(this).closest("td").removeClass("usarChecked"); |
81 | $(this).closest("td").removeClass("usarChecked"); |
82 | $(this).closest("td").addClass("usarNotChecked"); |
82 | $(this).closest("td").addClass("usarNotChecked"); |
83 | } |
83 | } |
84 | }); |
84 | }); |
85 | 85 | ||
86 | $("#cursoAfetoTable${CursoAfeto.id} .vistaCheck").on("change",function() |
86 | $("#cursoAfetoTable${CursoAfeto.id} .vistaCheck").on("change",function() |
87 | { |
87 | { |
88 | if($(this).prop("checked")) |
88 | if($(this).prop("checked")) |
89 | { |
89 | { |
90 | $(this).closest("td").addClass("vistaChecked"); |
90 | $(this).closest("td").addClass("vistaChecked"); |
91 | $(this).closest("td").removeClass("vistaNotChecked"); |
91 | $(this).closest("td").removeClass("vistaNotChecked"); |
92 | } |
92 | } |
93 | else |
93 | else |
94 | { |
94 | { |
95 | $(this).closest("td").removeClass("vistaChecked"); |
95 | $(this).closest("td").removeClass("vistaChecked"); |
96 | $(this).closest("td").addClass("vistaNotChecked"); |
96 | $(this).closest("td").addClass("vistaNotChecked"); |
97 | } |
97 | } |
98 | }); |
98 | }); |
99 | 99 | ||
100 | $("#cursoAfetoTable${CursoAfeto.id} .vistaCheckProfs").on("change",function() |
100 | $("#cursoAfetoTable${CursoAfeto.id} .vistaCheckProfs").on("change",function() |
101 | { |
101 | { |
102 | if($(this).prop("checked")) |
102 | if($(this).prop("checked")) |
103 | { |
103 | { |
104 | $(this).closest("td").addClass("vistaChecked"); |
104 | $(this).closest("td").addClass("vistaChecked"); |
105 | $(this).closest("td").removeClass("vistaNotChecked"); |
105 | $(this).closest("td").removeClass("vistaNotChecked"); |
106 | } |
106 | } |
107 | else |
107 | else |
108 | { |
108 | { |
109 | $(this).closest("td").removeClass("vistaChecked"); |
109 | $(this).closest("td").removeClass("vistaChecked"); |
110 | $(this).closest("td").addClass("vistaNotChecked"); |
110 | $(this).closest("td").addClass("vistaNotChecked"); |
111 | } |
111 | } |
112 | }); |
112 | }); |
113 | } |
113 | } |
114 | ); |
114 | ); |
115 | </script> |
115 | </script> |
116 | <table id="cursoAfetoTable${CursoAfeto.id}" class="tablesorter-blue"> |
116 | <table id="cursoAfetoTable${CursoAfeto.id}" class="tablesorter-blue"> |
117 | <thead> |
117 | <thead> |
118 | <tr> |
118 | <tr> |
119 | <th></th> |
119 | <th></th> |
120 | <th>Codigo</th> |
120 | <th>Codigo</th> |
121 | <th>Nome</th> |
121 | <th>Nome</th> |
122 | <%--<th>Tipologias Manuais</th>--%> |
122 | <%--<th>Tipologias Manuais</th>--%> |
123 | <th>Turmas</th> |
123 | <th>Turmas</th> |
124 | <th>Docentes</th> |
124 | <th>Docentes</th> |
125 | <th>Estudantes</th> |
125 | <th>Estudantes</th> |
126 | <th>Alertas</th> |
126 | <th>Alertas</th> |
127 | <th>Docentes s/ sumario</th> |
127 | <th>Docentes s/ sumario</th> |
128 | <th>Turmas s/ sumario</th> |
128 | <th>Turmas s/ sumario</th> |
129 | <th>Usar</th> |
129 | <th>Usar</th> |
130 | <th>Alunos OK</th> |
130 | <th>Alunos OK</th> |
131 | <th>Profs OK</th> |
131 | <th>Profs OK</th> |
132 | <th>Obs.</th> |
132 | <th>Obs.</th> |
133 | <th data-toggle="tooltip" data-placement="top" title="Tipologias Requisitadas para Responder">TipReq</th> |
133 | <th data-toggle="tooltip" data-placement="top" title="Tipologias Requisitadas para Responder">Tip. Req</th> |
134 | <th data-toggle="tooltip" data-placement="top" title="Respostas Requisitadas para Responder">RespReq</th> |
134 | <th data-toggle="tooltip" data-placement="top" title="Respostas Requisitadas para Responder">Resp. Req</th> |
135 | </tr> |
135 | </tr> |
136 | </thead> |
136 | </thead> |
137 | <tbody> |
137 | <tbody> |
138 | <logic:iterate id="unidade" name="CursoAfeto" property="unidadesAfetas" type="pt.estgp.estgweb.domain.QuestionarioPedagogicoUnidadeCurricularAfetaImpl"> |
138 | <logic:iterate id="unidade" name="CursoAfeto" property="unidadesAfetas" type="pt.estgp.estgweb.domain.QuestionarioPedagogicoUnidadeCurricularAfetaImpl"> |
139 | <tr id="unidadeAfetaRow${unidade.id}"> |
139 | <tr id="unidadeAfetaRow${unidade.id}"> |
140 | <td> |
140 | <td> |
141 | <script> |
141 | <script> |
142 | $(document).ready( |
142 | $(document).ready( |
143 | function() |
143 | function() |
144 | { |
144 | { |
145 | $('#tipologias${unidade.id}').on('shown.bs.collapse', function () { |
145 | $('#tipologias${unidade.id}').on('shown.bs.collapse', function () { |
146 | $("#tipologias${unidade.id}Button .glyphicon").removeClass("glyphicon-zoom-in").addClass("glyphicon-zoom-out"); |
146 | $("#tipologias${unidade.id}Button .glyphicon").removeClass("glyphicon-zoom-in").addClass("glyphicon-zoom-out"); |
147 | }); |
147 | }); |
148 | $('#tipologias${unidade.id}').on('hidden.bs.collapse', function () { |
148 | $('#tipologias${unidade.id}').on('hidden.bs.collapse', function () { |
149 | $("#tipologias${unidade.id}Button .glyphicon").removeClass("glyphicon-zoom-out").addClass("glyphicon-zoom-in"); |
149 | $("#tipologias${unidade.id}Button .glyphicon").removeClass("glyphicon-zoom-out").addClass("glyphicon-zoom-in"); |
150 | }); |
150 | }); |
151 | 151 | ||
152 | $("#unidadeAfetaRow${unidade.id} .usarCheck").on("change",function(){ |
152 | $("#unidadeAfetaRow${unidade.id} .usarCheck").on("change",function(){ |
153 | var val =$(this).prop("checked") ? "true" : "false"; |
153 | var val =$(this).prop("checked") ? "true" : "false"; |
154 | var op = "usar"; |
154 | var op = "usar"; |
155 | setUnidadeAfetaVar('${CursoAfeto.id}','${unidade.id}',op,val,$(this).closest("td")); |
155 | setUnidadeAfetaVar('${CursoAfeto.id}','${unidade.id}',op,val,$(this).closest("td")); |
156 | }); |
156 | }); |
157 | $("#unidadeAfetaRow${unidade.id} .vistaCheck").on("change",function() |
157 | $("#unidadeAfetaRow${unidade.id} .vistaCheck").on("change",function() |
158 | { |
158 | { |
159 | var val =$(this).prop("checked") ? "true" : "false"; |
159 | var val =$(this).prop("checked") ? "true" : "false"; |
160 | var op = "vista"; |
160 | var op = "vista"; |
161 | setUnidadeAfetaVar('${CursoAfeto.id}','${unidade.id}',op,val,$(this).closest("td")); |
161 | setUnidadeAfetaVar('${CursoAfeto.id}','${unidade.id}',op,val,$(this).closest("td")); |
162 | }); |
162 | }); |
163 | $("#unidadeAfetaRow${unidade.id} .vistaCheckProfs").on("change",function() |
163 | $("#unidadeAfetaRow${unidade.id} .vistaCheckProfs").on("change",function() |
164 | { |
164 | { |
165 | var val =$(this).prop("checked") ? "true" : "false"; |
165 | var val =$(this).prop("checked") ? "true" : "false"; |
166 | var op = "vistaProfs"; |
166 | var op = "vistaProfs"; |
167 | setUnidadeAfetaVar('${CursoAfeto.id}','${unidade.id}',op,val,$(this).closest("td")); |
167 | setUnidadeAfetaVar('${CursoAfeto.id}','${unidade.id}',op,val,$(this).closest("td")); |
168 | }); |
168 | }); |
169 | 169 | ||
170 | } |
170 | } |
171 | 171 | ||
172 | ); |
172 | ); |
173 | </script> |
173 | </script> |
174 | <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> |
174 | <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> |
175 | <script> |
175 | <script> |
176 | $(document).ready( |
176 | $(document).ready( |
177 | function(){ |
177 | function(){ |
178 | $.post("<%=request.getContextPath()%>/user/questionarios/pedagogicoEstudante/pedagogicoCourseCheckUnidadeAfeta.jsp?unidadeAfetaId=${unidade.id}", function(data) { |
178 | $.post("<%=request.getContextPath()%>/user/questionarios/pedagogicoEstudante/pedagogicoCourseCheckUnidadeAfeta.jsp?unidadeAfetaId=${unidade.id}", function(data) { |
179 | $("#tipologias${unidade.id} .tipologias") |
179 | $("#tipologias${unidade.id} .tipologias") |
180 | .html(data); |
180 | .html(data); |
181 | evaluateTableSortersInside("#tipologias${unidade.id} .tipologias"); |
181 | evaluateTableSortersInside("#tipologias${unidade.id} .tipologias"); |
182 | }); |
182 | }); |
183 | } |
183 | } |
184 | ); |
184 | ); |
185 | </script> |
185 | </script> |
186 | </td> |
186 | </td> |
187 | <td>${unidade.codigoUnidade}</td> |
187 | <td>${unidade.codigoUnidade}</td> |
188 | <td> |
188 | <td> |
189 | <html:link target="_blank" action="/user/startLoadCourseUnitFromHome.do?id=${unidade.courseUnit.id}"> |
189 | <html:link target="_blank" action="/user/startLoadCourseUnitFromHome.do?id=${unidade.courseUnit.id}"> |
190 | ${unidade.nome} |
190 | ${unidade.nome} |
191 | </html:link> |
191 | </html:link> |
192 | </td> |
192 | </td> |
193 | <%-- <td>${unidade.addedTipologias}</td>--%> |
193 | <%-- <td>${unidade.addedTipologias}</td>--%> |
194 | <td> |
194 | <td> |
195 | <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"> |
195 | <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"> |
196 | ${unidade.turmas} |
196 | ${unidade.turmas} |
197 | </a> |
197 | </a> |
198 | <td> |
198 | <td> |
199 | <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"> |
199 | <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"> |
200 | ${unidade.profs} |
200 | ${unidade.profs} |
201 | </a> |
201 | </a> |
202 | 202 | ||
203 | </td> |
203 | </td> |
204 | <td> |
204 | <td> |
205 | 205 | ||
206 | <% |
206 | <% |
207 | CourseUnitImpl courseUnitImpl = (CourseUnitImpl) DaoFactory.getCourseUnitDaoImpl().narrow(unidade.getCourseUnit()); |
207 | CourseUnitImpl courseUnitImpl = (CourseUnitImpl) DaoFactory.getCourseUnitDaoImpl().narrow(unidade.getCourseUnit()); |
208 | int students = courseUnitImpl.studentsSize(); |
208 | int students = courseUnitImpl.studentsSize(); |
209 | int studentsTurmasSize = courseUnitImpl.studentsTurmaSize(); |
209 | int studentsTurmasSize = courseUnitImpl.studentsTurmaSize(); |
210 | if(students != studentsTurmasSize) |
210 | if(students != studentsTurmasSize) |
211 | { |
211 | { |
212 | unidade.setMarked(true); |
212 | unidade.setMarked(true); |
213 | if(unidade.getObs() != null && unidade.getObs().indexOf("Nº Estudantes")< 0) |
213 | if(unidade.getObs() != null && unidade.getObs().indexOf("Nº Estudantes")< 0) |
214 | unidade.addObs(" - Nº Estudantes diferente Somatorio Estudantes das turmas"); |
214 | unidade.addObs(" - Nº Estudantes diferente Somatorio Estudantes das turmas"); |
215 | %> |
215 | %> |
216 | <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"> |
216 | <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"> |
217 | <%=students%> |
217 | <%=students%> |
218 | </a> |
218 | </a> |
219 | != |
219 | != |
220 | <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"> |
220 | <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"> |
221 | <%=studentsTurmasSize%> |
221 | <%=studentsTurmasSize%> |
222 | </a> |
222 | </a> |
223 | <span class="glyphicon glyphicon-alert"></span> |
223 | <span class="glyphicon glyphicon-alert"></span> |
224 | 224 | ||
225 | <% |
225 | <% |
226 | } |
226 | } |
227 | else |
227 | else |
228 | { |
228 | { |
229 | %> |
229 | %> |
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"> |
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"> |
231 | <%=students%> |
231 | <%=students%> |
232 | </a> |
232 | </a> |
233 | <% |
233 | <% |
234 | } |
234 | } |
235 | %> |
235 | %> |
236 | 236 | ||
237 | </td> |
237 | </td> |
238 | <td> |
238 | <td> |
239 | <logic:equal value="true" name="unidade" property="marked"> |
239 | <logic:equal value="true" name="unidade" property="marked"> |
240 | <span class="glyphicon glyphicon-alert"></span> |
240 | <span class="glyphicon glyphicon-alert"></span> |
241 | </logic:equal> |
241 | </logic:equal> |
242 | </td> |
242 | </td> |
243 | <td>${unidade.profsWithoutTurma}</td> |
243 | <td>${unidade.profsWithoutTurma}</td> |
244 | <td>${unidade.turmaWithoutProf}</td> |
244 | <td>${unidade.turmaWithoutProf}</td> |
245 | <td> |
245 | <td> |
246 | <baco:clearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_USE_UNIT"> |
246 | <baco:clearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_USE_UNIT"> |
247 | <html:checkbox styleClass="usarCheck" name="unidade" property="usar"/> |
247 | <html:checkbox styleClass="usarCheck" name="unidade" property="usar"/> |
248 | </baco:clearOperation> |
248 | </baco:clearOperation> |
249 | <baco:notClearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_USE_UNIT"> |
249 | <baco:notClearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_USE_UNIT"> |
250 | <html:checkbox styleClass="usarCheck" name="unidade" property="usar" disabled="true"/> |
250 | <html:checkbox styleClass="usarCheck" name="unidade" property="usar" disabled="true"/> |
251 | </baco:notClearOperation> |
251 | </baco:notClearOperation> |
252 | </td> |
252 | </td> |
253 | <td> |
253 | <td> |
254 | <baco:clearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS"> |
254 | <baco:clearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS"> |
255 | <html:checkbox styleClass="vistaCheck" name="unidade" property="vista"/> |
255 | <html:checkbox styleClass="vistaCheck" name="unidade" property="vista"/> |
256 | </baco:clearOperation> |
256 | </baco:clearOperation> |
257 | <baco:notClearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS"> |
257 | <baco:notClearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS"> |
258 | <html:checkbox disabled="true" styleClass="vistaCheck" name="unidade" property="vista"/> |
258 | <html:checkbox disabled="true" styleClass="vistaCheck" name="unidade" property="vista"/> |
259 | </baco:notClearOperation> |
259 | </baco:notClearOperation> |
260 | </td> |
260 | </td> |
261 | <td> |
261 | <td> |
262 | <baco:clearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_CHECK_TEACHERS"> |
262 | <baco:clearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_CHECK_TEACHERS"> |
263 | <html:checkbox styleClass="vistaCheckProfs" name="unidade" property="vistaProfs"/> |
263 | <html:checkbox styleClass="vistaCheckProfs" name="unidade" property="vistaProfs"/> |
264 | </baco:clearOperation> |
264 | </baco:clearOperation> |
265 | <baco:notClearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_CHECK_TEACHERS"> |
265 | <baco:notClearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_CHECK_TEACHERS"> |
266 | <html:checkbox disabled="true" styleClass="vistaCheckProfs" name="unidade" property="vistaProfs"/> |
266 | <html:checkbox disabled="true" styleClass="vistaCheckProfs" name="unidade" property="vistaProfs"/> |
267 | </baco:notClearOperation> |
267 | </baco:notClearOperation> |
268 | </td> |
268 | </td> |
269 | <td id="editObsTd${unidade.id}" <%=unidade.getObs() != null && unidade.getObs().trim().length() > 0 ? "class=\"obsContent\"":""%>> |
269 | <td id="editObsTd${unidade.id}" <%=unidade.getObs() != null && unidade.getObs().trim().length() > 0 ? "class=\"obsContent\"":""%>> |
270 | <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> |
270 | <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> |
271 | </td> |
271 | </td> |
272 | <td><%=unidade.getStatTipologiasRequisitadas()%></td> |
272 | <td><%=unidade.getStatTipologiasRequisitadas()%></td> |
273 | <td><%=unidade.getStatRespostasRequisitadas()%></td> |
273 | <td><%=unidade.getStatRespostasRequisitadas()%></td> |
274 | </tr> |
274 | </tr> |
275 | <tr class="collapse" id="tipologias${unidade.id}"> |
275 | <tr class="collapse" id="tipologias${unidade.id}"> |
276 | <td></td> |
276 | <td></td> |
277 | <td colspan="12" class="tipologias" style="padding-left: 25px"> |
277 | <td colspan="14" class="tipologias" style="padding-left: 25px"> |
278 | 278 | ||
279 | <div class="panel panel-default"> |
279 | <div class="panel panel-default"> |
280 | <div class="panel-body"> |
280 | <div class="panel-body"> |
281 | <p>Por favor aguarde um momento, o sistema está a carregar as tipologias <img src="<%=request.getContextPath()%>/imgs/wait.gif"/></p> |
281 | <p>Por favor aguarde um momento, o sistema está a carregar as tipologias <img src="<%=request.getContextPath()%>/imgs/wait.gif"/></p> |
282 | </div> |
282 | </div> |
283 | </div> |
283 | </div> |
284 | </td> |
284 | </td> |
285 | </tr> |
285 | </tr> |
286 | <% |
286 | <% |
287 | //DaoFactory.getQuestionarioPedagogicoUnidadeCurricularAfetaDaoImpl().evict(unidade); |
287 | //DaoFactory.getQuestionarioPedagogicoUnidadeCurricularAfetaDaoImpl().evict(unidade); |
288 | %> |
288 | %> |
289 | </logic:iterate> |
289 | </logic:iterate> |
290 | </tbody> |
290 | </tbody> |
291 | </table> |
291 | </table> |
292 | 292 | ||
293 | <% |
293 | <% |
294 | DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().evict(cursoAfeto); |
294 | DaoFactory.getQuestionarioPedagogicoCursoAfetoDaoImpl().evict(cursoAfeto); |
295 | AbstractDao.getCurrentSession().getTransaction().commit(); |
295 | AbstractDao.getCurrentSession().getTransaction().commit(); |
296 | %> |
296 | %> |
297 | 297 | ||
298 | Generated by GNU Enscript 1.6.5.2. |
298 | Generated by GNU Enscript 1.6.5.2. |
299 | 299 | ||
300 | 300 |