|
@@ -87,7 +87,7 @@ public class ExcelWriter {
|
|
sheet.addMergedRegion(new CellRangeAddress(2, 0, 6, 6));
|
|
sheet.addMergedRegion(new CellRangeAddress(2, 0, 6, 6));
|
|
sheet.addMergedRegion(new CellRangeAddress(2, 0, 7, 7));
|
|
sheet.addMergedRegion(new CellRangeAddress(2, 0, 7, 7));
|
|
sheet.addMergedRegion(new CellRangeAddress(2, 0, 8, 8));
|
|
sheet.addMergedRegion(new CellRangeAddress(2, 0, 8, 8));
|
|
- sheet.addMergedRegion(new CellRangeAddress(0, 0, 9, 18));
|
|
|
|
|
|
+ sheet.addMergedRegion(new CellRangeAddress(0, 0, 9, 19));
|
|
sheet.addMergedRegion(new CellRangeAddress(2, 1, 9, 9));
|
|
sheet.addMergedRegion(new CellRangeAddress(2, 1, 9, 9));
|
|
sheet.addMergedRegion(new CellRangeAddress(2, 1, 10, 10));
|
|
sheet.addMergedRegion(new CellRangeAddress(2, 1, 10, 10));
|
|
sheet.addMergedRegion(new CellRangeAddress(2, 1, 11, 11));
|
|
sheet.addMergedRegion(new CellRangeAddress(2, 1, 11, 11));
|
|
@@ -493,25 +493,21 @@ public class ExcelWriter {
|
|
}
|
|
}
|
|
cell = row.createCell(cellNum++);
|
|
cell = row.createCell(cellNum++);
|
|
cell.setCellStyle(styles.get("data"));
|
|
cell.setCellStyle(styles.get("data"));
|
|
- if (null != maintainData.getTotalFee()) {
|
|
|
|
- cell.setCellValue(maintainData.getDesignFee()+maintainData.getSupervisionFee()+maintainData.getPreliminaryWorkFee()
|
|
|
|
|
|
+ cell.setCellValue(maintainData.getDesignFee()+maintainData.getSupervisionFee()+maintainData.getPreliminaryWorkFee()
|
|
+maintainData.getDamages()+maintainData.getManagementFee());
|
|
+maintainData.getDamages()+maintainData.getManagementFee());
|
|
- } else {
|
|
|
|
- cell.setCellValue("");
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
cell = row.createCell(cellNum++);
|
|
cell = row.createCell(cellNum++);
|
|
cell.setCellStyle(styles.get("data"));
|
|
cell.setCellStyle(styles.get("data"));
|
|
- if (null != maintainData.getTotalFee()) {
|
|
|
|
- cell.setCellValue(maintainData.getDesignFee()+maintainData.getSupervisionFee()+maintainData.getPreliminaryWorkFee()
|
|
|
|
|
|
+ cell.setCellValue(maintainData.getDesignFee()+maintainData.getSupervisionFee()+maintainData.getPreliminaryWorkFee()
|
|
+maintainData.getDamages()+maintainData.getManagementFee()+maintainData.getBuildingFee()+maintainData.getInstallFee()
|
|
+maintainData.getDamages()+maintainData.getManagementFee()+maintainData.getBuildingFee()+maintainData.getInstallFee()
|
|
+maintainData.getEquipmentFee()+maintainData.getMaterialFee());
|
|
+maintainData.getEquipmentFee()+maintainData.getMaterialFee());
|
|
- } else {
|
|
|
|
- cell.setCellValue("");
|
|
|
|
- }
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
private static Sheet buildHerd(Workbook workbook) {
|
|
private static Sheet buildHerd(Workbook workbook) {
|
|
|
|
+ CellStyle style = workbook.createCellStyle();
|
|
|
|
+ style.setBorderLeft(CellStyle.BORDER_THIN);
|
|
|
|
+ style.setLeftBorderColor(IndexedColors.GREY_50_PERCENT.getIndex());
|
|
Sheet sheet = workbook.createSheet();
|
|
Sheet sheet = workbook.createSheet();
|
|
// 设置列头宽度
|
|
// 设置列头宽度
|
|
// for (int i=0; i<CELL_HEADS.size(); i++) {
|
|
// for (int i=0; i<CELL_HEADS.size(); i++) {
|
|
@@ -613,6 +609,9 @@ public class ExcelWriter {
|
|
Cell cellp = row2.createCell(17);
|
|
Cell cellp = row2.createCell(17);
|
|
cellp.setCellValue("");
|
|
cellp.setCellValue("");
|
|
cellp.setCellStyle(styles.get("header"));
|
|
cellp.setCellStyle(styles.get("header"));
|
|
|
|
+ Cell cellq = row1.createCell(17);
|
|
|
|
+ cellq.setCellValue("");
|
|
|
|
+ cellq.setCellStyle(styles.get("header"));
|
|
|
|
|
|
Cell celle = row3.createCell(0);
|
|
Cell celle = row3.createCell(0);
|
|
celle.setCellValue("");
|
|
celle.setCellValue("");
|