|
|
@@ -649,7 +649,7 @@ open class ReportService( |
|
|
|
private fun createLateStartReport( |
|
|
|
project: Project, |
|
|
|
templatePath: String |
|
|
|
): Workbook { |
|
|
|
):Workbook{ |
|
|
|
|
|
|
|
project |
|
|
|
val resource = ClassPathResource(templatePath) |
|
|
@@ -662,6 +662,19 @@ open class ReportService( |
|
|
|
val dateCell = sheet.getRow(1)?.getCell(2) ?: sheet.getRow(1).createCell(2) |
|
|
|
dateCell.setCellValue(formattedToday) |
|
|
|
|
|
|
|
// // Start populating project data starting at row 7 |
|
|
|
// val startRow = 6 // 0-based index for row 7 |
|
|
|
// val projectDataRow = sheet.createRow(startRow) |
|
|
|
|
|
|
|
// // Populate the row with project data |
|
|
|
// projectDataRow.createCell(1).setCellValue(project.code) // Column B |
|
|
|
// projectDataRow.createCell(2).setCellValue(project.name) // Column C |
|
|
|
// projectDataRow.createCell(3).setCellValue(project.teamLead?.name) // Column D |
|
|
|
// projectDataRow.createCell(4).setCellValue(project.custLeadName) // Column E |
|
|
|
// projectDataRow.createCell(5).setCellValue( |
|
|
|
// project.planStart?.format(DateTimeFormatter.ofPattern("yyyy/MM/dd")) ?: "N/A" // Column F |
|
|
|
// ) |
|
|
|
|
|
|
|
// Styling for cell A1: Font size 16 and bold |
|
|
|
val headerFont = workbook.createFont().apply { |
|
|
|
bold = true |
|
|
|