Update Kwitansi Total
This commit is contained in:
parent
c4e90986e6
commit
1e2edb31ee
@ -508,4 +508,18 @@ public class ReportingDao {
|
|||||||
return null;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -132,6 +132,8 @@ public class ReportingService {
|
|||||||
return this.reportingDao.exportPdfKwitansiPT(noregistrasi, nama_pt);
|
return this.reportingDao.exportPdfKwitansiPT(noregistrasi, nama_pt);
|
||||||
} else if (Objects.equals(jeniskwitansi, "NONLNAMA_PT")){
|
} else if (Objects.equals(jeniskwitansi, "NONLNAMA_PT")){
|
||||||
return this.reportingDao.exportPdfKwitansNonLiPT(noregistrasi, nama_pt);
|
return this.reportingDao.exportPdfKwitansNonLiPT(noregistrasi, nama_pt);
|
||||||
|
} else if (Objects.equals(jeniskwitansi, "KWITOTAL")){
|
||||||
|
return this.reportingDao.exportPdfKwitansTotal(noregistrasi);
|
||||||
} else {
|
} else {
|
||||||
return this.reportingDao.exportPdfKwitansi(noregistrasi);
|
return this.reportingDao.exportPdfKwitansi(noregistrasi);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user