Changeset 3488
- Timestamp:
- 09/09/10 10:01:26 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molgenis_projects/molgenis4phenotype/handwritten/java/plugin/yearlyreportplugin/VWAReport4.java
r3482 r3488 42 42 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd", Locale.US); 43 43 Date startOfYear = sdf.parse(year + "-01-01"); 44 Date endOfYear = sdf.parse( year + "-12-31");44 Date endOfYear = sdf.parse((year + 1) + "-01-01"); 45 45 46 46 List<Integer> aliveEndOfPrevYearList = new ArrayList<Integer>(); … … 97 97 aliveEndOfPrevYear = true; // can be changed later if we find out this one is dead! 98 98 } 99 } else { 100 // Don't consider animals that have no 'Alive' status start date 101 skipAnimal = true; 99 102 } 100 103 } else { … … 137 140 if (valueList.size() > 0) { 138 141 int speciesid = valueList.get(0).getRelatedObservationTarget(); 139 if (!speciesIdList.contains(speciesid)) { 142 if (!speciesIdList.contains(speciesid)) { // new species 140 143 speciesIdList.add(speciesid); 141 144 // Plus, store numbers on status for right species … … 150 153 aliveEndOfPrevYearList.add(0); 151 154 } 152 } else { 155 } else { // species already in list 153 156 int specid = speciesIdList.indexOf(speciesid); 154 157 if (aliveEndOfPrevYear) {
Note: See TracChangeset
for help on using the changeset viewer.