Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 1340 → Rev 1341

/branches/v3/impl/src/web/admin/questionarios/pedagogicoEstudante/questionarioObsEdit.jsp
42,10 → 42,11
<div class="form-group">
<label class="control-label col-sm-2">Observações</label>
<div class="col-sm-10">
<textarea class="form-control" name="val" id="setObsUnidade<%=unidadeAfetaId%>Val"><%=unidadeAfeta.getObs()%></textarea>
<textarea class="form-control" rows="10" name="val" id="setObsUnidade<%=unidadeAfetaId%>Val"><%=unidadeAfeta.getObs()%></textarea>
</div>
</div>
<button type="button" id="setObsUnidade<%=unidadeAfetaId%>" class="btn btn-success" data-dismiss="modal">Salvar</button>
<button type="button" id="setObsUnidade<%=unidadeAfetaId%>" class="btn btn-success pull-right" data-dismiss="modal">Salvar</button>
<button style="margin-right:10px" type="button" onclick="$(this.form).find('textarea').html('')" class="btn btn-warning pull-right">Clear</button>
</form>
<%
AbstractDao.getCurrentSession().getTransaction().commit();
/branches/v3/impl/src/web/admin/questionarios/pedagogicoEstudante/pedagogicoCourseCheckCursoAfeto.jsp
92,8 → 92,8
<th>Docentes</th>
<th>Estudantes</th>
<th>Alertas</th>
<th>Docentes s/ turma</th>
<th>Turmas s/ docente</th>
<th>Docentes s/ sumario</th>
<th>Turmas s/ sumario</th>
<th>Usar</th>
<th>Vista</th>
<th>Obs.</th>
160,9 → 160,38
 
</td>
<td>
 
<%
CourseUnitImpl courseUnitImpl = (CourseUnitImpl) DaoFactory.getCourseUnitDaoImpl().narrow(unidade.getCourseUnit());
int students = courseUnitImpl.studentsSize();
int studentsTurmasSize = courseUnitImpl.studentsTurmaSize();
if(students != studentsTurmasSize)
{
unidade.setMarked(true);
if(unidade.getObs() != null && unidade.getObs().indexOf("Nº Estudantes")< 0)
unidade.setObs("Nº Estudantes diferente Somatorio Estudantes das turmas");
%>
<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">
${unidade.students}
<%=students%>
</a>
!=
<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">
<%=studentsTurmasSize%>
</a>
<span class="glyphicon glyphicon-alert"></span>
 
<%
}
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>
<%
}
%>
 
</td>
<td>
<logic:equal value="true" name="unidade" property="marked">
193,7 → 222,7
</td>
</tr>
<%
DaoFactory.getQuestionarioPedagogicoUnidadeCurricularAfetaDaoImpl().evict(unidade);
//DaoFactory.getQuestionarioPedagogicoUnidadeCurricularAfetaDaoImpl().evict(unidade);
%>
</logic:iterate>
</tbody>
/branches/v3/impl/src/web/admin/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.QuestionarioPedagogicoCursoAfeto" %>
<%@ page import="pt.estgp.estgweb.domain.QuestionarioPedagogicoUnidadeCurricularAfeta" %>
<%@ page import="pt.estgp.estgweb.domain.QuestionarioPedagogicoUnidadeCurricularAfetaImpl" %>
<%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %>
<%@ page import="java.util.List" %>
<%@ page import="pt.estgp.estgweb.domain.QuestionarioPedagogicoUnidadeCurricularAfeta" %>
<%@ 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" %>
57,8 → 57,10
if(tipoPersistente == null)
{
unidade.setMarked(true);
if(unidade.getObs().indexOf("ERRO TURMA NAO SINCRONIZADA")<0)
unidade.setObs(unidade.getObs() + " ERRO TURMA NAO SINCRONIZADA TENTE CORRER AS IMPORTACOES ALUNOS E DOCENTES: " + tipologia.getCdTurma() + " " + tipologia.getCdDocente() + " " + tipologia.getDsTipologia());
if(unidade.getObs() != null && unidade.getObs().indexOf("Tipologia inexistente")<0)
((QuestionarioPedagogicoUnidadeCurricularAfetaImpl)unidade).addObs(
"Tipologia inexistente nesta unidade, possivelmente foi devida a sumários de uma turma paralela noutro curso Verificar: " + tipologia.getCdTurma() + " verificar se esta turma ou par sua têm curso associado. "
+ tipologia.getCdDocente() + " " + tipologia.getDsTipologia());
%>
<script>
$(document).ready(
68,7 → 70,7
}
);
</script>
<tr>
<%--<tr>
<td>${tipologia.cdDocente}</td>
<td>ERRO PROFESSOR NAO SINCRONIZADO</td>
<td>${tipologia.dsTipologia}</td>
96,7 → 98,7
<span class="glyphicon glyphicon-ok"></span>
</logic:equal>
</td>
</tr>
</tr>--%>
<%
}
else
/branches/v3/impl/src/web/user/courseunits/students.jsp
117,4 → 117,76
</tbody>
</table>
</div>
</div>
</div>
 
 
<%
if(CourseUnitView.getStudentsWithoutTurma() != null && CourseUnitView.getStudentsWithoutTurma().size() > 0)
{
request.setAttribute("students",CourseUnitView.getStudentsWithoutTurma());
request.setAttribute("studentsSize",CourseUnitView.getStudentsWithoutTurma().size());
%>
<h2>Estudantes MAL ATRIBUIDOS, SEM TURMA, contactar a administração do sistema informático</h2>
<div class="panel panel-default">
<div class="panel-body">
<p>
<logic:notEmpty name="turma">
(${turma})
</logic:notEmpty>
<bean:message key="courseunit.students.count"/>: ${studentsSize}
</p>
<table class="tablesorterfiltered">
<thead>
<tr>
<%/*<th><html:link action="${user}/startLoadCourseUnitStudents${fromAction}?courseUnitView.id=${CourseUnitView.id}&order=byNumber"><bean:message key="number"/></html:link></th>
<th><html:link action="${user}/startLoadCourseUnitStudents${fromAction}?courseUnitView.id=${CourseUnitView.id}&order=byName"><bean:message key="name"/></html:link></th>
*/%>
<th><bean:message key="number"/></th>
<th><bean:message key="name"/></th>
 
<th><bean:message key="user"/></th>
 
<th><bean:message key="email"/></th>
 
<baco:hasRole role="teacher">
<th><bean:message key="phone.number"/></th>
</baco:hasRole>
</tr>
</thead>
<tbody>
<logic:iterate id="student" name="students" type="pt.estgp.estgweb.domain.views.UserView">
<tr>
<td>
${student.code}
</td>
<td>
<logic:notEmpty name="fromAction">
<html:link action="${user}/startLoadStudentCourseUnit${fromAction}?code=${student.code}&courseUnitView.id=${CourseUnitView.id}">${student.name}</html:link>
</logic:notEmpty>
<logic:empty name="fromAction">
<html:link target="_blank" action="/user/startProfileFromHome.do?userView.id=${student.id}">${student.name}</html:link>
</logic:empty>
</td>
<td>
${student.username}
</td>
<td>
<logic:empty name="UserSession" property="user">
${student.safeEmail}
</logic:empty>
<logic:notEmpty name="UserSession" property="user">
${student.email}
</logic:notEmpty>
</td>
<baco:hasRole role="teacher">
<td>${student.phonenumber} </td>
</baco:hasRole>
</tr>
</logic:iterate>
</tbody>
</table>
</div>
</div>
<%
}
%>