Update Kwitansi Total

This commit is contained in:
Kals1um 2024-12-31 15:23:06 +07:00
parent c4e90986e6
commit 1e2edb31ee
2 changed files with 16 additions and 0 deletions

View File

@ -508,4 +508,18 @@ public class ReportingDao {
return null;
}
public JasperPrint exportPdfKwitansTotal(String noregistrasi) {
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
String path = jasperDirPath + "kwitotal.jrxml";
JasperReport jasperReport = JasperCompileManager.compileReport(path);
Map<String, Object> parameters = new HashMap<>();
parameters.put("noregistrasi", noregistrasi);
return JasperFillManager.fillReport(jasperReport, parameters, conn);
} catch (Exception var17) {
LOG.error("Exception at exportPdfKwitansTotal");
LOG.error(ReportingDao.class, var17);
}
return null;
}
}

View File

@ -132,6 +132,8 @@ public class ReportingService {
return this.reportingDao.exportPdfKwitansiPT(noregistrasi, nama_pt);
} else if (Objects.equals(jeniskwitansi, "NONLNAMA_PT")){
return this.reportingDao.exportPdfKwitansNonLiPT(noregistrasi, nama_pt);
} else if (Objects.equals(jeniskwitansi, "KWITOTAL")){
return this.reportingDao.exportPdfKwitansTotal(noregistrasi);
} else {
return this.reportingDao.exportPdfKwitansi(noregistrasi);
}