update bukti layanan farmasi
This commit is contained in:
parent
19844ed0c7
commit
b1e5e933bd
@ -327,9 +327,16 @@ public class ReportingController {
|
|||||||
|
|
||||||
@RequestMapping(value = {"/bukti-layanan-farmasi/{norec}"}, method = {RequestMethod.GET})
|
@RequestMapping(value = {"/bukti-layanan-farmasi/{norec}"}, method = {RequestMethod.GET})
|
||||||
public void exportPdfBuktiLayanan(@PathVariable("norec") String norec,
|
public void exportPdfBuktiLayanan(@PathVariable("norec") String norec,
|
||||||
@RequestParam(value = "jenisbukti", required = false) String jenisbukti,
|
|
||||||
ModelAndView mv, HttpServletResponse response) throws Exception {
|
ModelAndView mv, HttpServletResponse response) throws Exception {
|
||||||
JasperPrint jasperPrint = this.reportingService.exportPdfBuktiLayanan(norec, jenisbukti);
|
JasperPrint jasperPrint = this.reportingService.exportPdfBuktiLayanan(norec);
|
||||||
|
response.setContentType("application/pdf");
|
||||||
|
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value = {"/bukti-nonlayanan-farmasi/{norec}"}, method = {RequestMethod.GET})
|
||||||
|
public void exportPdfBuktiNoLayanFarmasi(@PathVariable("norec") String norec,
|
||||||
|
ModelAndView mv, HttpServletResponse response) throws Exception {
|
||||||
|
JasperPrint jasperPrint = this.reportingService.exportPdfBuktiNoLayanFarmasi(norec);
|
||||||
response.setContentType("application/pdf");
|
response.setContentType("application/pdf");
|
||||||
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
|
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
|
||||||
}
|
}
|
||||||
|
|||||||
@ -147,12 +147,12 @@ public class ReportingService {
|
|||||||
return this.reportingDao.exportPdfSppb(norec);
|
return this.reportingDao.exportPdfSppb(norec);
|
||||||
}
|
}
|
||||||
|
|
||||||
public JasperPrint exportPdfBuktiLayanan(String norec, String jenisbukti) {
|
public JasperPrint exportPdfBuktiLayanan(String norec) {
|
||||||
if (Objects.equals(jenisbukti, "NONLAYANAN")){
|
|
||||||
return this.reportingDao.exportPdfBuktiNoLayanFarmasi(norec);
|
|
||||||
} else {
|
|
||||||
return this.reportingDao.exportPdfBuktiLayanan(norec);
|
return this.reportingDao.exportPdfBuktiLayanan(norec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public JasperPrint exportPdfBuktiNoLayanFarmasi(String norec) {
|
||||||
|
return this.reportingDao.exportPdfBuktiNoLayanFarmasi(norec);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user