<%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ page import="net.sourceforge.fenixedu.domain.ShiftType" %> <%@ page import="net.sourceforge.fenixedu.domain.curriculum.EnrolmentEvaluationType" %> <%@ page import="net.sourceforge.fenixedu.util.AttendacyStateSelectionType" %> <%@ page import="net.sourceforge.fenixedu.dataTransferObject.InfoExecutionCourse" %> <%@ page import="net.sourceforge.fenixedu.dataTransferObject.InfoDegreeCurricularPlan" %> <%@ page import="net.sourceforge.fenixedu.dataTransferObject.InfoDegree" %> <%@ page import="net.sourceforge.fenixedu.dataTransferObject.InfoGrouping" %> <%@ page import="net.sourceforge.fenixedu.dataTransferObject.InfoStudentGroup" %> <%@ page import="net.sourceforge.fenixedu.dataTransferObject.InfoLesson" %> <%@ page import="net.sourceforge.fenixedu.dataTransferObject.InfoAttendsSummary" %> <%@ page import="net.sourceforge.fenixedu.dataTransferObject.InfoForReadStudentsWithAttendsByExecutionCourse" %> <%@ page import="java.util.Iterator" %> <%@ page import="java.util.Calendar" %> <%@ page import="java.util.GregorianCalendar" %> <%@ page import="java.util.TreeMap" %> <%@ page import="java.util.Map" %> <%@ page import="java.util.List" %> <%@ page import="java.util.Date" %>

Alunos de

<% String text = new String(); text += shift.getNome(); text += " ("; for (Iterator iterator= shift.getInfoLessons().iterator(); iterator.hasNext();) { InfoLesson lesson= (InfoLesson) iterator.next(); text += lesson.getDiaSemana().toString() + " "; text += lesson.getInicio().get(Calendar.HOUR_OF_DAY) + ":"; text += lesson.getInicio().get(Calendar.MINUTE) + "-"; text += lesson.getFim().get(Calendar.HOUR_OF_DAY) + ":"; text += lesson.getFim().get(Calendar.MINUTE) + " "; if(lesson.getInfoSala() != null){ text += lesson.getInfoSala().getNome(); } if (iterator.hasNext()) text += " ;"; } text += ")"; %> <%= text %>

<%=studentsComponent.getInfoAttends().size()%>


<% int shiftColSpan=((List)classTypes).size(); %> <% Integer shiftColSpanInteger = new Integer(shiftColSpan); %> <% if (shiftColSpan>0) {%> <% }%> <% Integer executionCourseId = executionCourse.getIdInternal(); for (Iterator groupsPropertiesIterator=((List)groupsProperties).iterator(); groupsPropertiesIterator.hasNext();) { InfoGrouping gProperties = (InfoGrouping) groupsPropertiesIterator.next(); Integer groupPropertiesIdInternal = gProperties.getIdInternal(); Integer studentGroupId = null; Integer shiftId = null; Integer groupNumber = null; Map studentGroups = attend.getInfoStudentGroups(); InfoStudentGroup infoStudentGroup = (InfoStudentGroup)studentGroups.get(gProperties.getName()); if (infoStudentGroup != null){ studentGroupId = infoStudentGroup.getIdInternal(); if(infoStudentGroup.getInfoShift() != null){//temporary correction, verify if this makes sence in data shiftId = infoStudentGroup.getInfoShift().getIdInternal(); } groupNumber = infoStudentGroup.getGroupNumber(); } %> <% } %>
" altKey="personPhoto" bundle="IMAGE_RESOURCES"/>   "> <% shortName = attendacy.getAluno().getInfoPerson().getNome(); String[] names = shortName.split(" "); String firstName = names[0]; String lastName = names[names.length-1]; shortName = firstName + " " + lastName; out.print(shortName); %> <%request.setAttribute("parameters",new TreeMap());%> <% if (studentGroupId != null) { parameters.put("shiftCode",shiftId); parameters.put("studentGroupCode",studentGroupId); parameters.put("method","viewStudentGroupInformation"); parameters.put("objectCode",executionCourseId); parameters.put("groupPropertiesCode",groupPropertiesIdInternal); %> <% out.print(groupNumber); %> <% } else{ %> <% } %> ">   <% if (((net.sourceforge.fenixedu.dataTransferObject.InfoShift)map.get(classType.getSiglaTipoAula()))==null){ %> <% } else{ out.print(((net.sourceforge.fenixedu.dataTransferObject.InfoShift)map.get(classType.getSiglaTipoAula())).getNome()); } %>

<%= ((net.sourceforge.fenixedu.dataTransferObject.InfoAttendsSummary)attendsSummary).getEnrollmentDistribution().get(enrollmentNumber).toString() %>