/branches/v3/impl/src/web/user/courses/topnavDepartmentsEdit.jsp |
---|
New file |
0,0 → 1,14 |
<%@page contentType="text/html"%> |
<%@page pageEncoding="UTF-8"%> |
<%@page import="jomm.dao.impl.AbstractDao"%> |
<%@ page import="jomm.web.utils.NavPlaceServer" %> |
<%@ page import="jomm.web.utils.TopNav" %> |
<% |
TopNav topNav = NavPlaceServer.getInstance().createTopNav(request); |
topNav.addNavPlace("/user/homePae.do", "intranet.separator.home.back"); |
topNav.addNavPlace(null, "departamentos"); |
%> |
<jsp:include page="/layout/topnav.jsp"/> |
Property changes: |
Added: svn:executable |
+ * |
/branches/v3/impl/src/web/user/courses/departments.jsp |
---|
New file |
0,0 → 1,140 |
<%@ page import="jomm.dao.impl.AbstractDao" %> |
<%@ page import="pt.estgp.estgweb.Globals" %> |
<%@ page import="pt.estgp.estgweb.domain.CourseDepartment" %> |
<%@ page import="pt.estgp.estgweb.domain.CourseDepartmentImpl" %> |
<%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %> |
<%@ page import="pt.estgp.estgweb.web.filters.UserRoleProxy" %> |
<%@ page import="java.util.ArrayList" %> |
<%@ page import="java.util.List" %> |
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
<%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
<%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
<%@ page contentType="text/html;charset=UTF-8" language="java" %> |
<% |
AbstractDao.getCurrentSession().beginTransaction(); |
ArrayList<CourseDepartment> departments = (ArrayList<CourseDepartment>) DaoFactory.getCourseDepartmentDaoImpl().findAll(); |
String jsonArrayDepartments = CourseDepartmentImpl.getJson(departments); |
request.setAttribute("jsonArrayDepartments",jsonArrayDepartments); |
request.setAttribute("departments",departments); |
List<String> rolesBoardDepartamento = UserRoleProxy.getUserRolesByPrefix("department.board"); |
List<String> rolesDiretorDepartamento = UserRoleProxy.getUserRolesByPrefix("department.diretor"); |
request.setAttribute("rolesBoardDepartamento",rolesBoardDepartamento); |
request.setAttribute("rolesDiretorDepartamento",rolesDiretorDepartamento); |
%> |
<div baco-model-class="pt.estgp.estgweb.domain.CourseDepartmentImpl" |
id="departmentsModule" |
ng-app="departmentsModule" |
ng-controller="departmentsModuleController"> |
<script> |
//DECLARACAO DA APLICACAO LOCAL EM ANGULAR |
var departmentsModule = angular.module('departmentsModule', []); |
GLOBAL_BacoAngularAppDependencies.push('departmentsModule'); |
departmentsModule.controller('departmentsModuleController', function($scope) { |
$scope.departments = ${jsonArrayDepartments}; |
}); |
</script> |
<p><label class="label-info">Papeis dos Departamentos:</label> Os papeis de departamento são escolhidos da lista de papeis do sistema considerando-se todos os papeis com os prefixos:</p> |
<ul> |
<li>department.board: para membros da direcção</li> |
<li>department.diretor: para diretores direcção</li> |
</ul> |
<p>Caso seja necessário um novo papel deverá administrar os papeis institucionais dirija-se <html:link action="/user/configurationUserRoles">Aqui</html:link></p> |
<div class="form-horizontal"> |
<table class="tablesorter-blue"> |
<thead> |
<tr> |
<th>Ativo</th> |
<th>Instituição</th> |
<th>Nome</th> |
<th>Nome En</th> |
<th>Nome Es</th> |
<th>Nome Fr</th> |
<th>Papel para Membro da Direcao</th> |
<th>Papel para Director</th> |
<th></th> |
</tr> |
</thead> |
<tbody> |
<tr ng-repeat="d in departments | orderBy:institutionalCode:false"> |
<td> |
<select class="chosenOff" ng-model="d.active"> |
<option ng-value="true" ng-selected="d.active == true">Ativo</option> |
<option ng-value="false" ng-selected="d.active == false">Inativo</option> |
</select> |
</td> |
<td> |
<select class="chosenOff" ng-model="d.institutionalCode"> |
<option value="<%=Globals.INSTITUTIONAL_CODE_ESTG%>"><%=Globals.INSTITUTIONAL_SMALL_NAME_ESTG%></option> |
<option value="<%=Globals.INSTITUTIONAL_CODE_ESAE%>"><%=Globals.INSTITUTIONAL_SMALL_NAME_ESAE%></option> |
<option value="<%=Globals.INSTITUTIONAL_CODE_ESECS%>"><%=Globals.INSTITUTIONAL_SMALL_NAME_ESECS%></option> |
<option value="<%=Globals.INSTITUTIONAL_CODE_ESS%>"><%=Globals.INSTITUTIONAL_SMALL_NAME_ESS%></option> |
</select> |
</td> |
<td> |
<input class="form-control" type="text" ng-model="d.name"> |
</td> |
<td> |
<input class="form-control" type="text" ng-model="d.nameEn"> |
</td> |
<td> |
<input class="form-control" type="text" ng-model="d.nameEs"> |
</td> |
<td> |
<input class="form-control" type="text" ng-model="d.nameFr"> |
</td> |
<td> |
<select class="chosenOff" ng-model="d.boardRole"> |
<option value="">Escolha</option> |
<logic:iterate id="role" name="rolesBoardDepartamento"> |
<option value="${role}"><bean:message key="user.role.${role}"/></option> |
</logic:iterate> |
</select> |
</td> |
<td> |
<select class="chosenOff" ng-model="d.directorRole"> |
<option value="">Escolha</option> |
<logic:iterate id="role" name="rolesDiretorDepartamento"> |
<option value="${role}"><bean:message key="user.role.${role}"/></option> |
</logic:iterate> |
</select> |
</td> |
<td> |
<button type="button" class="btn btn-danger btn-xs"> |
<span class="glyphicon glyphicon-remove"/> |
</button> |
</td> |
</tr> |
</tbody> |
</table> |
<%-- |
<model:id name="department" property="id"/> |
<model:field name="department" property="name"/> |
<model:field name="department" property="nameEn"/> |
<model:field name="department" property="nameEs"/> |
<model:field name="department" property="nameFr"/> |
<model:remove name="department"/> |
--%> |
</div> |
</div> |
Teste |
<% |
AbstractDao.getCurrentSession().getTransaction().commit(); |
%> |
/branches/v3/impl/src/web/user/serviceZone/topnavConfigurationUserRoles.jsp |
---|
4,7 → 4,7 |
<%@ page import="jomm.web.utils.TopNav" %> |
<% |
TopNav topNav = NavPlaceServer.getInstance().createTopNav(request); |
topNav.addNavPlace("/user/startHome.do", "intranet.separator.home.back"); |
topNav.addNavPlace("/user/homePae.do", "intranet.separator.home.back"); |
topNav.addNavPlace(null, "configuration.userRoles"); |
%> |
<jsp:include page="/layout/topnav.jsp"/> |
/branches/v3/impl/src/web/user/profile/roleUsers.jsp |
---|
1,10 → 1,8 |
<%@ page import="jomm.dao.impl.AbstractDao" %> |
<%@ page import="pt.estgp.estgweb.Globals" %> |
<%@ page import="pt.estgp.estgweb.domain.Course" %> |
<%@ page import="pt.estgp.estgweb.domain.User" %> |
<%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %> |
<%@ page import="pt.estgp.estgweb.utils.ConfigProperties" %> |
<%@ page import="pt.estgp.estgweb.web.filters.UserRoleProxy" %> |
<%@ page import="java.util.ArrayList" %> |
<%@ page import="java.util.List" %> |
<%@ page contentType="text/html; charset=UTF-8" language="java"%> |
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
165,6 → 163,38 |
<div class="panel panel-default"> |
<div class="panel-heading"> |
<a data-toggle="collapse" data-parent="#accordion" href="#departamentos"> |
Departamentos |
</a> |
</div> |
<div id="departamentos" class="panel-collapse collapse"> |
<div class="panel-body"> |
<% |
List<String> rolesBoardDepartamento = UserRoleProxy.getUserRolesByPrefix("department.board"); |
List<String> rolesDiretorDepartamento = UserRoleProxy.getUserRolesByPrefix("department.diretor"); |
request.setAttribute("rolesBoardDepartamento",rolesBoardDepartamento); |
request.setAttribute("rolesDiretorDepartamento",rolesDiretorDepartamento); |
%> |
<h3 class="well">Diretores</h3> |
<logic:iterate id="role" name="rolesDiretorDepartamento"> |
<bacoTags:printRoleGroup role="${role}" transactional="true"/> |
</logic:iterate> |
<h3 class="well">Restantes Membros das Direcções</h3> |
<logic:iterate id="role" name="rolesBoardDepartamento"> |
<bacoTags:printRoleGroup role="${role}" transactional="true"/> |
</logic:iterate> |
<% |
%> |
</div> |
</div> |
</div> |
<div class="panel panel-default"> |
<div class="panel-heading"> |
<a name="comissoes" data-toggle="collapse" data-parent="#accordion" href="#coordenacoes"> |
Coordenações de Curso |
</a> |
/branches/v3/impl/src/web/user/questionarios/reports/reportsHelp.jsp |
---|
54,6 → 54,7 |
<th>Docente</th> |
<th>Coord. Curso</th> |
<th>Direção Escola</th> |
<th>Departamento</th> |
<th>Alunos</th> |
</tr> |
</thead> |
65,6 → 66,7 |
<td><span class="glyphicon glyphicon-ok"></span></td> |
<td><span class="glyphicon glyphicon-ok"></span></td> |
<td></td> |
<td></td> |
<td><span class="glyphicon glyphicon-ok"></span></td> |
<td></td> |
</tr> |
76,6 → 78,7 |
<td></td> |
<td></td> |
<td></td> |
<td></td> |
</tr> |
89,6 → 92,7 |
<td></td> |
<td></td> |
<td></td> |
<td></td> |
</tr> |
<tr> |
99,6 → 103,7 |
<td></td> |
<td></td> |
<td></td> |
<td></td> |
</tr> |
112,6 → 117,7 |
<td><span class="glyphicon glyphicon-ok"></span></td> |
<td><span class="glyphicon glyphicon-ok"></span></td> |
<td><span class="glyphicon glyphicon-ok"></span></td> |
<td><span class="glyphicon glyphicon-ok"></span></td> |
</tr> |
<tr> |
<th>Inativo</th> |
121,6 → 127,7 |
<td></td> |
<td></td> |
<td></td> |
<td></td> |
</tr> |
<tr> |
132,6 → 139,7 |
<td><span class="glyphicon glyphicon-ok"></span></td> |
<td><span class="glyphicon glyphicon-ok"></span></td> |
<td><span class="glyphicon glyphicon-ok"></span></td> |
<td><span class="glyphicon glyphicon-ok"></span></td> |
</tr> |
<tr> |
142,7 → 150,7 |
<td></td> |
<td></td> |
<td></td> |
<td></td> |
</tr> |
152,9 → 160,11 |
<td><span class="glyphicon glyphicon-ok"></span></td> |
<td><span class="glyphicon glyphicon-ok"></span></td> |
<td></td> |
<td></td> |
<td></td> |
<td><span class="glyphicon glyphicon-ok"></span></td> |
<td><span class="glyphicon glyphicon-ok"></span></td> |
<td></td> |
</tr> |
<tr> |
<th>Inativo</th> |
164,6 → 174,7 |
<td></td> |
<td></td> |
<td></td> |
<td></td> |
</tr> |
177,6 → 188,7 |
<td></td> |
<td></td> |
<td></td> |
<td></td> |
</tr> |
<tr> |
187,6 → 199,7 |
<td></td> |
<td></td> |
<td></td> |
<td></td> |
</tr> |
199,6 → 212,7 |
<td></td> |
<td></td> |
<td></td> |
<td></td> |
</tr> |
<tr> |
<th>Inativo</th> |
208,6 → 222,7 |
<td></td> |
<td></td> |
<td></td> |
<td></td> |
</tr> |
</tbody> |
/branches/v3/impl/src/web/user/questionarios/headerQuestionarios.jsp |
---|
171,6 → 171,15 |
<li>Caso algum professor não tenha qualquer tipologia associada é criada uma tipologia Simples no processo de atribuição de respostas de forma a contemplar esse professor nas avaliações. |
Essa entrada é criada para todas as turmas da unidade em questão.</li> |
</ul> |
<h3>Questões relativas a Exclusões e Actualizações</h3> |
<ul> |
<li>As tipologias são atualizadas todos os dias desde o dia 22 de Janeiro de 2017</li> |
<li>As tipologias podem ser excluidas pelas pessoas dos académicos com papel de Verificação de Professores durante a fase de afetacções.</li> |
<li>Podem ainda ser excluidas pelos administradores em qualquer fase do processo</li> |
<li>A exclusão de uma tipologia antes da fase de respostas evita a criação de respostas requisitadas</li> |
<li>A exclusão de uma tipologia após as respostas dos alunos afeta a geração dos Cubos OLAP pelo que terão de ser gerados novamente antes de gerar Relatórios</li> |
</ul> |
</div> |
<button type="button" class="btn btn-success" data-dismiss="modal">Voltar</button> |
/branches/v3/impl/src/web/user/questionarios/pedagogicoEstudante/setUnidadeAfetaVar.jsp |
---|
9,12 → 9,27 |
String val = request.getParameter("val"); |
IServiceManager sm = ServiceManager.getInstance(); |
String[] names = {"questionarioId","cursosAfetos"}; |
Object[] args = {Long.parseLong(questionarioId),Long.parseLong(unidadeAfetaId),op,val}; |
sm.execute(RequestUtils.getRequester(request, response),"QuestionarioUpdateCheckVarPedagogico",args,names); |
if(op.equals("excludeTipologia")) |
{ |
String docente = request.getParameter("docente"); |
String turma = request.getParameter("turma"); |
String cdTipologia = request.getParameter("cdTipologia"); |
String[] names = {"questionarioId","unidadeAfeta","docente","turma","cdTipologia"}; |
Object[] args = {Long.parseLong(questionarioId),Long.parseLong(unidadeAfetaId),docente,turma,cdTipologia,op,val}; |
sm.execute(RequestUtils.getRequester(request, response),"QuestionarioUpdateCheckVarExcludedPedagogico",args,names); |
} |
else |
{ |
String[] names = {"questionarioId","unidadeAfeta"}; |
Object[] args = {Long.parseLong(questionarioId),Long.parseLong(unidadeAfetaId),op,val}; |
sm.execute(RequestUtils.getRequester(request, response),"QuestionarioUpdateCheckVarPedagogico",args,names); |
} |
JSONObject json = new JSONObject(); |
json.put("ok","ok"); |
/branches/v3/impl/src/web/user/questionarios/pedagogicoEstudante/pedagogicoCourseCheckUnidadeAfeta.jsp |
---|
1,9 → 1,9 |
<%@ page import="jomm.dao.impl.AbstractDao" %> |
<%@ page import="pt.estgp.estgweb.domain.CourseUnitImpl" %> |
<%@ page import="pt.estgp.estgweb.domain.QuestionarioPedagogicoUnidadeCurricularAfeta" %> |
<%@ page import="pt.estgp.estgweb.domain.QuestionarioPedagogicoUnidadeCurricularAfetaImpl" %> |
<%@ page import="pt.estgp.estgweb.domain.*" %> |
<%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %> |
<%@ page import="java.util.List" %> |
<%@ page import="pt.estgp.estgweb.services.questionarios.pedagogico.UpdateCoursesAndUnitsJobService" %> |
<%@ page import="pt.estgp.estgweb.web.UserSessionProxy" %> |
<%@ page import="java.util.ArrayList" %> |
<%@ page contentType="text/html;charset=UTF-8" language="java" %> |
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
15,23 → 15,32 |
<% |
long unidadeAfetaId = Long.parseLong(request.getParameter("unidadeAfetaId")); |
AbstractDao.getCurrentSession().beginTransaction(); |
QuestionarioPedagogicoUnidadeCurricularAfeta unidade = DaoFactory.getQuestionarioPedagogicoUnidadeCurricularAfetaDaoImpl().load(unidadeAfetaId); |
unidade = DaoFactory.getQuestionarioPedagogicoUnidadeCurricularAfetaDaoImpl().narrow(unidade); |
QuestionarioPedagogicoUnidadeCurricularAfeta unidadeG = DaoFactory.getQuestionarioPedagogicoUnidadeCurricularAfetaDaoImpl().load(unidadeAfetaId); |
QuestionarioPedagogicoUnidadeCurricularAfetaImpl unidade = (QuestionarioPedagogicoUnidadeCurricularAfetaImpl) DaoFactory.getQuestionarioPedagogicoUnidadeCurricularAfetaDaoImpl().narrow(unidadeG); |
request.setAttribute("unidade",unidade); |
Questionario q = unidade.getCursoAfeto().getQuestionario(); |
q = DaoFactory.getQuestionarioDaoImpl().narrow(q); |
((QuestionarioImpl)q).initClearances((UserSessionImpl) UserSessionProxy.loadUserSessionFromRequest(request),false); |
request.setAttribute("Questionario",q); |
%> |
<% |
CourseUnitImpl courseUnit = (CourseUnitImpl) DaoFactory.getCourseUnitDaoImpl().narrow(unidade.getCourseUnit()); |
List<CourseUnitImpl.Tipologia> tipologias; |
ArrayList<CourseUnitImpl.Tipologia> tipologias; |
CourseUnitImpl.Tipologias tipologiasClass=courseUnit.getTipologiasClass(); |
if(unidade.getCursoAfeto().isUsarTipologias()) |
{ |
tipologias = courseUnit.getTipologiasClass().obtainMergeTipologias(); |
tipologias = tipologiasClass.obtainMergeTipologias(); |
} |
else |
{ |
tipologias = courseUnit.getTipologiasClass().obtainTipologiasSimples(courseUnit); |
tipologias = tipologiasClass.obtainTipologiasSimples(courseUnit); |
} |
//UPDATE VARS CHECK PROF; TURMAS; STUDENTS Esta em duplicado, aqui e na selecção de cursos do UpdateCoursesAndUnitsJobService |
// Foi chamado um update no JSP anterior a este onde apresenta o Curso |
//UpdateCoursesAndUnitsJobService.updateCountersUnidadeAfeta(tipologiasClass,unidade,tipologias); |
request.setAttribute("tipologias",tipologias); |
if(tipologias.size() == 0) |
{ |
43,6 → 52,51 |
{ |
%> |
<%=tipologias.size()%> |
<script> |
$(document).ready( |
function() |
{ |
$("#tipologias${unidade.id} .excludeTipologia").each(function() |
{ |
if($(this).prop("checked")) |
{ |
$(this).closest("td").removeClass("vistaChecked"); |
$(this).closest("td").addClass("usarNotChecked"); |
} |
else |
{ |
$(this).closest("td").removeClass("usarNotChecked"); |
$(this).closest("td").addClass("vistaChecked"); |
} |
} |
); |
$("#tipologias${unidade.id} .excludeTipologia").on("change",function() |
{ |
if($(this).prop("checked")) |
{ |
$(this).closest("td").removeClass("vistaChecked"); |
$(this).closest("td").addClass("usarNotChecked"); |
} |
else |
{ |
$(this).closest("td").removeClass("usarNotChecked"); |
$(this).closest("td").addClass("vistaChecked"); |
} |
}); |
/* |
$("#tipologias${unidade.id} .excludeTipologia").on("change",function() |
{ |
var val =$(this).prop("checked") ? "true" : "false"; |
var op = "excludeTipologia"; |
setUnidadeAfetaVar('${CursoAfeto.id}','${unidade.id}',tipologiaTeacher,,op,val,$(this).closest("td")); |
});*/ |
}); |
</script> |
<table class="tablesorterfiltered"> |
<thead> |
<tr> |
56,7 → 110,7 |
<th>Tip. Manual</th> |
<th>Tip. Horário Ref.</th> |
<th>Tip. Sumário</th> |
<th>Tip. Req.</th> |
<th>Excluir</th> |
</tr> |
</thead> |
<tbody> |
100,12 → 154,18 |
<span class="glyphicon glyphicon-asterisk"></span> |
</logic:equal> |
</td> |
<td> |
<logic:equal value="true" name="tipologia" property="sumario"> |
<span class="glyphicon glyphicon-ok"></span> |
</logic:equal> |
<baco:hasRole role="questionarios.admin,admin,super"> |
<html:checkbox onchange="setTipologiaAfetaVar($(this),'${unidade.cursoAfeto.id}','${unidade.id}','${tipologia.cdDocente}','${tipologia.cdTurma}','${tipologia.cdTipologia}')" styleClass="excludeTipologia" name="tipologia" property="exclude"/> |
</baco:hasRole> |
<baco:hasNotRole role="questionarios.admin,admin,super"> |
<baco:clearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_CHECK_TEACHERS"> |
<html:checkbox onchange="setTipologiaAfetaVar($(this),'${unidade.cursoAfeto.id}','${unidade.id}','${tipologia.cdDocente}','${tipologia.cdTurma}','${tipologia.cdTipologia}')" styleClass="excludeTipologia" name="tipologia" property="exclude"/> |
</baco:clearOperation> |
<baco:notClearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_CHECK_TEACHERS"> |
<html:checkbox disabled="true" styleClass="excludeTipologia" name="tipologia" property="exclude"/> |
</baco:notClearOperation> |
</baco:hasNotRole> |
</td> |
</tr> |
<% |
/branches/v3/impl/src/web/user/questionarios/pedagogicoEstudante/pedagogicoCourseCheckCursoAfeto.jsp |
---|
2,6 → 2,7 |
<%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %> |
<%@ page import="pt.estgp.estgweb.web.UserSessionProxy" %> |
<%@ page import="pt.estgp.estgweb.domain.*" %> |
<%@ page import="pt.estgp.estgweb.services.questionarios.pedagogico.UpdateCoursesAndUnitsJobService" %> |
<%@ page contentType="text/html;charset=UTF-8" language="java" %> |
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
42,6 → 43,7 |
} |
} |
); |
$("#cursoAfetoTable${CursoAfeto.id} .vistaCheck").each(function() |
{ |
if($(this).prop("checked")) |
126,6 → 128,7 |
<th>Alertas</th> |
<th>Docentes s/ sumario</th> |
<th>Turmas s/ sumario</th> |
<th>Escluidas</th> |
<th>Usar</th> |
<th>Alunos OK</th> |
<th>Profs OK</th> |
136,6 → 139,12 |
</thead> |
<tbody> |
<logic:iterate id="unidade" name="CursoAfeto" property="unidadesAfetas" type="pt.estgp.estgweb.domain.QuestionarioPedagogicoUnidadeCurricularAfetaImpl"> |
<% |
if(unidade.checkSincronizationDirty()) |
{ |
UpdateCoursesAndUnitsJobService.updateCountersUnidadeAfeta(unidade); |
} |
%> |
<tr id="unidadeAfetaRow${unidade.id}"> |
<td> |
<script> |
204,6 → 213,7 |
<td> |
<% |
try{ |
CourseUnitImpl courseUnitImpl = (CourseUnitImpl) DaoFactory.getCourseUnitDaoImpl().narrow(unidade.getCourseUnit()); |
int students = courseUnitImpl.studentsSize(); |
int studentsTurmasSize = courseUnitImpl.studentsTurmaSize(); |
223,15 → 233,16 |
<span class="glyphicon glyphicon-alert"></span> |
<% |
} |
else |
{ |
} |
else |
{ |
%> |
<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"> |
<%=students%> |
</a> |
<% |
} |
}catch(Throwable e){e.printStackTrace();System.out.println(e.toString());} |
%> |
</td> |
240,8 → 251,9 |
<span class="glyphicon glyphicon-alert"></span> |
</logic:equal> |
</td> |
<td>${unidade.profsWithoutTurma}</td> |
<td>${unidade.turmaWithoutProf}</td> |
<td>${unidade.profsWithoutTurma}</td><%--PROFS SEM SUMARIO--%> |
<td>${unidade.turmaWithoutProf}</td><%--Turmas Sem Sumario--%> |
<td>${unidade.excludedTipologias}</td> |
<td> |
<baco:clearOperation name="Questionario" op="QUESTIONARIO_CHANGE_ASSIGNEMENTS_USE_UNIT"> |
<html:checkbox styleClass="usarCheck" name="unidade" property="usar"/> |
/branches/v3/impl/src/web/user/questionarios/pedagogicoEstudante/pedagogicoEstudanteCoursesCheck.jsp |
---|
244,6 → 244,39 |
}, |
"json"); |
} |
//TODO AQUI tirar o metodo daqui e meter no pedagogicoCoursesCheck |
function setTipologiaAfetaVar(checkObj,cursoAfetoId,unidadeAfetaId,docente,turma,cdTipo) |
{ |
targetObject = $(checkObj).closest("td"); |
var val =$(checkObj).prop("checked") ? "true" : "false"; |
var op = "excludeTipologia"; |
$(targetObject).addClass("waitPost"); |
$.post("<%=request.getContextPath()%>/user/questionarios/pedagogicoEstudante/setUnidadeAfetaVar.jsp", |
{ |
"questionarioId" : ${Questionario.id}, |
"unidadeAfetaId":unidadeAfetaId, |
"docente":docente, |
"turma":turma, |
"cdTipologia":cdTipo, |
"op":op, |
"val": val |
}, |
function(data, textStatus) |
{ |
if(data.error) |
{ |
alert(data.error); |
} |
else if(data.ok == "ok") |
{ |
$(targetObject).removeClass("waitPost"); |
reloadCursoStats(cursoAfetoId); |
} |
}, |
"json"); |
} |
function reloadCursoStats(cursoAfetoId) |
{ |