else request.setAttribute("datesVisible", "false");
else { Object argsLesson[] = { element.getIdInternal() }; Calendar lessonStartDate = (Calendar) ServiceManagerServiceFactory.executeService(userView, "ReadLessonStartDate", argsLesson); lessonStartDate.set(Calendar.DAY_OF_WEEK, element.getDiaSemana().getDiaSemana().intValue()); dates.add(lessonStartDate.getTime()); request.setAttribute("dates", dates); }
    protected void findNextSummaryDate(HttpServletRequest request, InfoSummary infoSummary, Integer lessonSelected) throws FenixServiceException, FenixFilterException {        List lessons = infoSummary.getInfoShift().getInfoLessons();					        for (Iterator iter = lessons.iterator(); iter.hasNext();) {        	InfoLesson element = (InfoLesson) iter.next();        	if(element.getIdInternal().equals(lessonSelected)){					        		GregorianCalendar calendar = new GregorianCalendar();        		InfoSummary summaryBefore;        		IUserView userView = SessionUtils.getUserView(request);	        		Object args[] = { getObjectCode(request), infoSummary.getInfoShift().getIdInternal(), lessonSelected};							        		summaryBefore = (InfoSummary)ServiceManagerServiceFactory.executeService(userView, "ReadLastSummary", args);        		List dates = new ArrayList();        		if(summaryBefore != null){        			calendar.setTime(summaryBefore.getSummaryDate().getTime());        			calendar.set(Calendar.DAY_OF_WEEK, element.getDiaSemana().getDiaSemana().intValue());        			calendar.add(Calendar.DATE, 7);        			dates.add(calendar.getTime());							        			request.setAttribute("dates", dates);        		}        		else        			request.setAttribute("datesVisible", "false");           		        		break;        	}        }    }