HSSFFont.BOLDWEIGHT_BOLD, HSSFCellStyle.ALIGN_CENTER,
HSSFColor.SEA_GREEN.index, HSSFCellStyle.BORDER_MEDIUM,
HSSFCellStyle.BORDER_MEDIUM, HSSFCellStyle.BORDER_MEDIUM,
HSSFCellStyle.BORDER_MEDIUM, null), (short) 0, "SALGSM�L");
sheet.addMergedRegion(new Region((short) currentRow - 1, (short) 0,
(short) currentRow - 1, (short) 20));
row = sheet.createRow((short) currentRow++);
for (int i = 0; i <= 20; i++) {
createCell(row, cellStyle.getStyle((short) 10,
HSSFFont.BOLDWEIGHT_BOLD, HSSFCellStyle.ALIGN_CENTER,
HSSFColor.GREY_25_PERCENT.index,
HSSFCellStyle.BORDER_MEDIUM, HSSFCellStyle.BORDER_MEDIUM,
HSSFCellStyle.BORDER_MEDIUM, HSSFCellStyle.BORDER_THIN,
null), (short) i, "");
}
createCell(row, cellStyle.getStyle((short) 10,
HSSFFont.BOLDWEIGHT_BOLD, HSSFCellStyle.ALIGN_CENTER,
HSSFColor.GREY_25_PERCENT.index, HSSFCellStyle.BORDER_MEDIUM,
HSSFCellStyle.BORDER_MEDIUM, HSSFCellStyle.BORDER_MEDIUM,
HSSFCellStyle.BORDER_THIN, null), (short) 2, "Salgsm�l "
+ reportSetting.getYear());
sheet.addMergedRegion(new Region((short) currentRow - 1, (short) 2,
(short) currentRow - 1, (short) 4));
createCell(row, cellStyle.getStyle((short) 10,
HSSFFont.BOLDWEIGHT_BOLD, HSSFCellStyle.ALIGN_CENTER,
HSSFColor.GREY_25_PERCENT.index, HSSFCellStyle.BORDER_MEDIUM,
HSSFCellStyle.BORDER_MEDIUM, HSSFCellStyle.BORDER_MEDIUM,
HSSFCellStyle.BORDER_THIN, null), (short) 5, "Uke "
+ reportSetting.getWeekFrom());
sheet.addMergedRegion(new Region((short) currentRow - 1, (short) 5,
(short) currentRow - 1, (short) 12));
createCell(row, cellStyle.getStyle((short) 10,
HSSFFont.BOLDWEIGHT_BOLD, HSSFCellStyle.ALIGN_CENTER,
HSSFColor.GREY_25_PERCENT.index, HSSFCellStyle.BORDER_MEDIUM,
HSSFCellStyle.BORDER_MEDIUM, HSSFCellStyle.BORDER_MEDIUM,
HSSFCellStyle.BORDER_THIN, null), (short) 13,
"Akkumulert pr uke " + reportSetting.getWeekFrom());
sheet.addMergedRegion(new Region((short) currentRow - 1, (short) 13,
(short) currentRow - 1, (short) 20));
row = sheet.createRow((short) currentRow++);
for (int i = 0; i <= 1; i++) {
createCell(row, cellStyle.getStyle((short) 10,
HSSFFont.BOLDWEIGHT_BOLD, HSSFCellStyle.ALIGN_CENTER,
HSSFColor.GREY_25_PERCENT.index,
HSSFCellStyle.BORDER_MEDIUM, HSSFCellStyle.BORDER_THIN,
HSSFCellStyle.BORDER_MEDIUM, HSSFCellStyle.BORDER_THIN,
null), (short) i, "");
}
for (int i = 2; i <= 4; i++) {
createCell(row, cellStyle.getStyle((short) 10,
HSSFFont.BOLDWEIGHT_BOLD, HSSFCellStyle.ALIGN_CENTER,
HSSFColor.GREY_25_PERCENT.index, null,
HSSFCellStyle.BORDER_THIN, HSSFCellStyle.BORDER_THIN,
HSSFCellStyle.BORDER_THIN, null), (short) i, "");
}
for (int i = 5; i <= 20; i++) {
createCell(row, cellStyle.getStyle((short) 10,
HSSFFont.BOLDWEIGHT_BOLD, HSSFCellStyle.ALIGN_CENTER,
HSSFColor.GREY_25_PERCENT.index, null,
HSSFCellStyle.BORDER_THIN, null, HSSFCellStyle.BORDER_THIN,
null), (short) i, "");
}
createCell(row, cellStyle.getStyle((short) 10,
HSSFFont.BOLDWEIGHT_BOLD, HSSFCellStyle.ALIGN_CENTER,
HSSFColor.GREY_25_PERCENT.index, null,
HSSFCellStyle.BORDER_THIN, HSSFCellStyle.BORDER_MEDIUM,
HSSFCellStyle.BORDER_THIN, null), (short) 20, "");
createCell(row, cellStyle.getStyle((short) 10,
HSSFFont.BOLDWEIGHT_BOLD, HSSFCellStyle.ALIGN_CENTER,
HSSFColor.GREY_25_PERCENT.index, HSSFCellStyle.BORDER_MEDIUM,
HSSFCellStyle.BORDER_THIN, HSSFCellStyle.BORDER_MEDIUM,
HSSFCellStyle.BORDER_THIN, null), (short) 5, "pr uke");
sheet.addMergedRegion(new Region((short) currentRow - 1, (short) 5,
(short) currentRow - 1, (short) 9));
createCell(row, cellStyle.getStyle((short) 10,
HSSFFont.BOLDWEIGHT_BOLD, HSSFCellStyle.ALIGN_CENTER,
HSSFColor.GREY_25_PERCENT.index, HSSFCellStyle.BORDER_THIN,
HSSFCellStyle.BORDER_THIN, HSSFCellStyle.BORDER_MEDIUM,
HSSFCellStyle.BORDER_THIN, null), (short) 10,
"Endring fra i fjor(diff):");
sheet.addMergedRegion(new Region((short) currentRow - 1, (short) 10,
(short) currentRow - 1, (short) 12));
createCell(row, cellStyle.getStyle((short) 10,
HSSFFont.BOLDWEIGHT_BOLD, HSSFCellStyle.ALIGN_CENTER,
HSSFColor.GREY_25_PERCENT.index, HSSFCellStyle.BORDER_MEDIUM,
HSSFCellStyle.BORDER_THIN, HSSFCellStyle.BORDER_MEDIUM,
HSSFCellStyle.BORDER_THIN, null), (short) 13, "pr uke");
sheet.addMergedRegion(new Region((short) currentRow - 1, (short) 13,
(short) currentRow - 1, (short) 17));
createCell(row, cellStyle.getStyle((short) 10,
HSSFFont.BOLDWEIGHT_BOLD, HSSFCellStyle.ALIGN_CENTER,
HSSFColor.GREY_25_PERCENT.index, HSSFCellStyle.BORDER_THIN,
HSSFCellStyle.BORDER_THIN, HSSFCellStyle.BORDER_MEDIUM,
HSSFCellStyle.BORDER_THIN, null), (short) 18,
"Endring fra i fjor(diff):");
sheet.addMergedRegion(new Region((short) currentRow - 1, (short) 18,
(short) currentRow - 1, (short) 20));
row = sheet.createRow((short) currentRow++);
createCell(row,