durationSum += timesheet.getDuration();
}
final List<RowHolder> list = new ArrayList<RowHolder>();
for (final TimesheetDO timesheet : timeSheets) {
final RowHolder row = new RowHolder();
if (actionFilter.getUserId() != null) {
final Kost2DO kost2 = kostCache.getKost2(timesheet.getKost2Id());
if (kost2 != null) {
row.addCell(new CellHolder(KostFormatter.format(kost2)));
} else {
row.addCell(new CellHolder(""));
}
} else {
row.addCell(new CellHolder(userFormatter.getFormattedUser(timesheet.getUser())));
}
final String taskPath = taskFormatter.getTaskPath(timesheet.getTaskId(), taskId, true, OutputType.PLAIN);
row.addCell(new CellHolder(htmlHelper.formatXSLFOText(taskPath, true)));
row.addCell(new CellHolder(dateTimeFormatter.getFormattedTimePeriod(timesheet.getTimePeriod(), RenderType.FOP, true)));
row.addCell(new CellHolder(dateTimeFormatter.getFormattedDuration(timesheet.getTimePeriod())));
row.addCell(new CellHolder(htmlHelper.formatXSLFOText(timesheet.getDescription(), true)));
if (StringUtils.isNotBlank(timesheet.getLocation()) == true) {
row.addCell(new CellHolder(htmlHelper.formatXSLFOText(timesheet.getLocation(), true)));
} else {
row.addCell(new CellHolder(""));
}
list.add(row);
}
data.put("list", list);