update kwitansi fahmi
This commit is contained in:
parent
5a90babda1
commit
02ec016b3e
@ -459,6 +459,14 @@ public class ReportingController {
|
|||||||
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
|
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
|
// Klinik Utama Bintaro
|
||||||
|
|
||||||
@RequestMapping(value = {"/bukti-layanan-farmasi-bintaro/{norec}/{user}"}, method = {RequestMethod.GET})
|
@RequestMapping(value = {"/bukti-layanan-farmasi-bintaro/{norec}/{user}"}, method = {RequestMethod.GET})
|
||||||
|
|||||||
@ -812,6 +812,21 @@ public class ReportingDao {
|
|||||||
return null;
|
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
|
// Klinik Utama Bintaro
|
||||||
|
|
||||||
public JasperPrint exportPdfBuktiLayananBintaro(String norec, String user) {
|
public JasperPrint exportPdfBuktiLayananBintaro(String norec, String user) {
|
||||||
|
|||||||
@ -231,6 +231,10 @@ public class ReportingService {
|
|||||||
return this.reportingDao.exportPdfSuratCollectingPiutang(noposting);
|
return this.reportingDao.exportPdfSuratCollectingPiutang(noposting);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public JasperPrint exportPdfKwitansiCollectingPiutang(String noposting) {
|
||||||
|
return this.reportingDao.exportPdfKwitansiCollectingPiutang(noposting);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//Klinik Utama Bintaro
|
//Klinik Utama Bintaro
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user