<%@ 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"%> <%@ taglib uri="/WEB-INF/taglibs-datetime.tld" prefix="dt"%> <%@ page import="java.util.HashMap" %> <%@ page import="org.apache.commons.collections.CollectionUtils" %> <%@ page import="org.apache.commons.collections.Predicate" %> <%@ page import="org.apache.commons.lang.StringUtils" %> <%@ page import="net.sourceforge.fenixedu.dataTransferObject.teacher.InfoOldPublication" %>

( )

:
:

:


" target="_blank" paramId="executionDegreeId" paramName="infoExecutionDegree" paramProperty="idInternal">
" target="_blank" paramId="executionDegreeId" paramName="infoExecutionDegree" paramProperty="idInternal">
" target="_blank">
" target="_blank">
<% HashMap statistics = new HashMap(); %> <% int numberOfFields = 0; int requiredFields = 0;%> <% if (infoSiteTeacherInformation.getInfoQualifications().size() > 0){ requiredFields++; } %> <% if (infoSiteTeacherInformation.getInfoTeachingCareers().size() > 0){ numberOfFields++; requiredFields++; } %> <% if (infoSiteTeacherInformation.getInfoOldCientificPublications().size() > 0){ InfoOldPublication infoOldPublication = (InfoOldPublication) CollectionUtils.find(infoSiteTeacherInformation.getInfoOldCientificPublications(), new Predicate(){ public boolean evaluate(Object arg0){ InfoOldPublication elem = (InfoOldPublication) arg0; if(StringUtils.deleteWhitespace(elem.getPublication()).length() == 0){ return false; } return true; }}); if(infoOldPublication != null){ requiredFields++; } } %> <% if (infoSiteTeacherInformation.getInfoOldDidacticPublications().size() > 0){ InfoOldPublication infoOldPublication = (InfoOldPublication) CollectionUtils.find(infoSiteTeacherInformation.getInfoOldDidacticPublications(), new Predicate(){ public boolean evaluate(Object arg0){ InfoOldPublication elem = (InfoOldPublication) arg0; if(StringUtils.deleteWhitespace(elem.getPublication()).length() == 0){ return false; } return true; }}); if(infoOldPublication != null){ requiredFields++; } } %> <% requiredFields++; %> <% if (!statistics.containsKey(new Integer(requiredFields))) statistics.put(new Integer(requiredFields), new Integer(1)); else { int value = ((Integer) statistics.get(new Integer(requiredFields))).intValue(); value++; statistics.put(new Integer(requiredFields), new Integer(value)); } %>
">  " paramId="username" paramName="infoSiteTeacherInformation" paramProperty="infoTeacher.infoPerson.username"> ">  " paramId="username" paramName="infoSiteTeacherInformation" paramProperty="infoTeacher.infoPerson.username"> ">  <% if (((net.sourceforge.fenixedu.dataTransferObject.teacher.InfoSiteTeacherInformation)infoSiteTeacherInformation).getInfoResponsibleExecutionCourses() != null && ((net.sourceforge.fenixedu.dataTransferObject.teacher.InfoSiteTeacherInformation)infoSiteTeacherInformation).getInfoResponsibleExecutionCourses().contains(infoExecutionCourse) ){%> () <% } %>   "> <%= requiredFields %> <%= requiredFields %>/5 <%= requiredFields %>/5 "> 
<% if (((net.sourceforge.fenixedu.dataTransferObject.teacher.InfoSiteTeacherInformation)infoSiteTeacherInformation).getInfoResponsibleExecutionCourses() != null && ((net.sourceforge.fenixedu.dataTransferObject.teacher.InfoSiteTeacherInformation)infoSiteTeacherInformation).getInfoResponsibleExecutionCourses().contains(infoExecutionCourse) ){%> () <% } %>  

:

: <% int filled = 0; %> <% filled++; %>

 (%)
5/5 <% Integer value5 = new Integer(0); if (statistics.containsKey(new Integer(5))) value5 = (Integer) statistics.get(new Integer(5)); %> <%= value5 %> <%= new Float((value5.floatValue()/length.floatValue())*100).intValue() %>
4/5 <% Integer value4 = new Integer(0); if (statistics.containsKey(new Integer(4))) value4 = (Integer) statistics.get(new Integer(4)); %> <%= value4 %> <%= new Float((value4.floatValue()/length.floatValue())*100).intValue() %>
3/5 <% Integer value3 = new Integer(0); if (statistics.containsKey(new Integer(3))) value3 = (Integer) statistics.get(new Integer(3)); %> <%= value3 %> <%= new Float((value3.floatValue()/length.floatValue())*100).intValue() %>
2/5 <% Integer value2 = new Integer(0); if (statistics.containsKey(new Integer(2))) value2 = (Integer) statistics.get(new Integer(2)); %> <%= value2 %> <%= new Float((value2.floatValue()/length.floatValue())*100).intValue() %>
1/5 <% Integer value1 = new Integer(0); if (statistics.containsKey(new Integer(1))) value1 = (Integer) statistics.get(new Integer(1)); %> <%= value1 %> <%= new Float((value1.floatValue()/length.floatValue())*100).intValue() %>
0/5 <% Integer value0 = new Integer(0); if (statistics.containsKey(new Integer(0))) value0 = (Integer) statistics.get(new Integer(0)); %> <%= value0 %> <%= new Float((value0.floatValue()/length.floatValue())*100).intValue() %>


" target="_blank" paramId="executionDegreeId" paramName="infoExecutionDegree" paramProperty="idInternal">
" target="_blank" paramId="executionDegreeId" paramName="infoExecutionDegree" paramProperty="idInternal">
" target="_blank">
" target="_blank">