update daftar hasil triase
This commit is contained in:
parent
0bbaefcc43
commit
8d86038c89
@ -394,6 +394,14 @@ public class ReportingController {
|
||||
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
|
||||
}
|
||||
|
||||
@RequestMapping(value = {"/daftar-triase-igd/{norec}"}, method = {RequestMethod.GET})
|
||||
public void exportPdfDaftarTriaseIGD(@PathVariable("norec") String norec,
|
||||
ModelAndView mv, HttpServletResponse response) throws Exception {
|
||||
JasperPrint jasperPrint = this.reportingService.exportPdfDaftarTriaseIGD(norec);
|
||||
response.setContentType("application/pdf");
|
||||
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Klinik Utama Bintaro
|
||||
|
||||
@ -643,6 +643,20 @@ public class ReportingDao {
|
||||
return null;
|
||||
}
|
||||
|
||||
public JasperPrint exportPdfDaftarTriaseIGD(String norec) {
|
||||
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
|
||||
String path = jasperDirPath + "daftartriaseigd.jrxml";
|
||||
JasperReport jasperReport = JasperCompileManager.compileReport(path);
|
||||
Map<String, Object> parameters = new HashMap<>();
|
||||
parameters.put("norec", norec);
|
||||
return JasperFillManager.fillReport(jasperReport, parameters, conn);
|
||||
} catch (Exception var17) {
|
||||
LOG.error("Exception at exportPdfDaftarTriaseIGD");
|
||||
LOG.error(ReportingDao.class, var17);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
// Klinik Utama Bintaro
|
||||
|
||||
|
||||
@ -179,6 +179,10 @@ public class ReportingService {
|
||||
return this.reportingDao.exportPdfTriaseIGD(norec);
|
||||
}
|
||||
|
||||
public JasperPrint exportPdfDaftarTriaseIGD(String norec) {
|
||||
return this.reportingDao.exportPdfDaftarTriaseIGD(norec);
|
||||
}
|
||||
|
||||
|
||||
//Klinik Utama Bintaro
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user