update kwitansi fahmi

This commit is contained in:
ridwan 2025-05-15 15:14:50 +07:00
parent 5a90babda1
commit 02ec016b3e
3 changed files with 27 additions and 0 deletions

View File

@ -459,6 +459,14 @@ public class ReportingController {
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
}
@RequestMapping(value = {"/kwitansi-collecting-piutang/{noposting}"}, method = {RequestMethod.GET})
public void exportPdfKwitansiCollectingPiutang(@PathVariable("noposting") String norec,
ModelAndView mv, HttpServletResponse response) throws Exception {
JasperPrint jasperPrint = this.reportingService.exportPdfKwitansiCollectingPiutang(norec);
response.setContentType("application/pdf");
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
}
// Klinik Utama Bintaro
@RequestMapping(value = {"/bukti-layanan-farmasi-bintaro/{norec}/{user}"}, method = {RequestMethod.GET})

View File

@ -812,6 +812,21 @@ public class ReportingDao {
return null;
}
//Kwitansi_Collecting_Piutang
public JasperPrint exportPdfKwitansiCollectingPiutang(String noposting) {
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
String path = jasperDirPath + "Kwitansi_Collecting_Piutang.jrxml";
JasperReport jasperReport = JasperCompileManager.compileReport(path);
Map<String, Object> parameters = new HashMap<>();
parameters.put("noposting", noposting);
return JasperFillManager.fillReport(jasperReport, parameters, conn);
} catch (Exception var17) {
LOG.error("Exception at exportPdfKwitansiCollectingPiutang");
LOG.error(ReportingDao.class, var17);
}
return null;
}
// Klinik Utama Bintaro
public JasperPrint exportPdfBuktiLayananBintaro(String norec, String user) {

View File

@ -231,6 +231,10 @@ public class ReportingService {
return this.reportingDao.exportPdfSuratCollectingPiutang(noposting);
}
public JasperPrint exportPdfKwitansiCollectingPiutang(String noposting) {
return this.reportingDao.exportPdfKwitansiCollectingPiutang(noposting);
}
//Klinik Utama Bintaro