2 次程式碼提交

作者 SHA1 備註 提交日期
  leoho2fi ba0aaf717b Merge branch 'master' of https://git.2fi-solutions.com/davidhui/TSMS-backend 1 年之前
  leoho2fi 7337f70d3e report update 1 年之前
共有 1 個檔案被更改,包括 14 行新增1 行删除
分割檢視
  1. +14
    -1
      src/main/java/com/ffii/tsms/modules/report/service/ReportService.kt

+ 14
- 1
src/main/java/com/ffii/tsms/modules/report/service/ReportService.kt 查看文件

@@ -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


Loading…
取消
儲存