erweiterung der Spalten für KW Excel - wegen neuer Abteilungen
This commit is contained in:
parent
a14762f784
commit
00e2dde892
2 changed files with 5 additions and 4 deletions
|
|
@ -19,6 +19,7 @@ import org.apache.poi.ss.usermodel.CellCopyPolicy;
|
||||||
import org.apache.poi.ss.usermodel.CellStyle;
|
import org.apache.poi.ss.usermodel.CellStyle;
|
||||||
import org.apache.poi.ss.usermodel.FillPatternType;
|
import org.apache.poi.ss.usermodel.FillPatternType;
|
||||||
import org.apache.poi.ss.usermodel.IndexedColors;
|
import org.apache.poi.ss.usermodel.IndexedColors;
|
||||||
|
import org.apache.poi.ss.usermodel.Row.MissingCellPolicy;
|
||||||
import org.apache.poi.xssf.usermodel.XSSFCell;
|
import org.apache.poi.xssf.usermodel.XSSFCell;
|
||||||
import org.apache.poi.xssf.usermodel.XSSFRow;
|
import org.apache.poi.xssf.usermodel.XSSFRow;
|
||||||
import org.apache.poi.xssf.usermodel.XSSFSheet;
|
import org.apache.poi.xssf.usermodel.XSSFSheet;
|
||||||
|
|
@ -289,21 +290,21 @@ public class OPListExportAdapterByWeek extends POIFindReplaceAdapter {
|
||||||
XSSFCell cell = null;
|
XSSFCell cell = null;
|
||||||
// column++;
|
// column++;
|
||||||
// Space currency EUR
|
// Space currency EUR
|
||||||
cell = referenceRowSpacesCurrencies.getCell(column);
|
cell = referenceRowSpacesCurrencies.getCell(column, MissingCellPolicy.CREATE_NULL_AS_BLANK);
|
||||||
cell.copyCellFrom(cellKWTotalReference, new CellCopyPolicy());
|
cell.copyCellFrom(cellKWTotalReference, new CellCopyPolicy());
|
||||||
cell.setCellValue(currency1);
|
cell.setCellValue(currency1);
|
||||||
cell = rowSpacesLabels.getCell(column);
|
cell = rowSpacesLabels.getCell(column, MissingCellPolicy.CREATE_NULL_AS_BLANK);
|
||||||
cell.copyCellFrom(cellKWTotalReference, new CellCopyPolicy());
|
cell.copyCellFrom(cellKWTotalReference, new CellCopyPolicy());
|
||||||
cell.setCellValue("");
|
cell.setCellValue("");
|
||||||
|
|
||||||
// Space currency USD
|
// Space currency USD
|
||||||
column++;
|
column++;
|
||||||
cell = referenceRowSpacesCurrencies.getCell(column);
|
cell = referenceRowSpacesCurrencies.getCell(column, MissingCellPolicy.CREATE_NULL_AS_BLANK);
|
||||||
cell.copyCellFrom(cellKWTotalReference, new CellCopyPolicy());
|
cell.copyCellFrom(cellKWTotalReference, new CellCopyPolicy());
|
||||||
cell.setCellValue(currency2);
|
cell.setCellValue(currency2);
|
||||||
|
|
||||||
// Space Label
|
// Space Label
|
||||||
cell = rowSpacesLabels.getCell(column);
|
cell = rowSpacesLabels.getCell(column, MissingCellPolicy.CREATE_NULL_AS_BLANK);
|
||||||
cell.copyCellFrom(cellKWTotalReference, new CellCopyPolicy());
|
cell.copyCellFrom(cellKWTotalReference, new CellCopyPolicy());
|
||||||
cell.setCellValue("Total");
|
cell.setCellValue("Total");
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in a new issue