update laporan tindakan fahmi
This commit is contained in:
parent
35875d5e08
commit
8c9902d302
@ -352,11 +352,11 @@ public class ReportingController {
|
|||||||
@RequestMapping(value = {"/lap-tindakan"}, method = {RequestMethod.GET})
|
@RequestMapping(value = {"/lap-tindakan"}, method = {RequestMethod.GET})
|
||||||
public void exportPdfLaporanTindakan(
|
public void exportPdfLaporanTindakan(
|
||||||
@RequestParam("ruanganid") Integer ruanganid, @RequestParam("instalasiid") Integer instalasiid,
|
@RequestParam("ruanganid") Integer ruanganid, @RequestParam("instalasiid") Integer instalasiid,
|
||||||
@RequestParam("unitid") Integer unitid, @RequestParam("produkid") Integer produkid,
|
@RequestParam("kelasid") Integer kelasid, @RequestParam("unitid") Integer unitid,
|
||||||
@RequestParam("statusprodukid") Integer statusprodukid, ModelAndView mv,
|
@RequestParam("produkid") Integer produkid, @RequestParam("statusprodukid") Integer statusprodukid, ModelAndView mv,
|
||||||
HttpServletRequest req, HttpServletResponse response) throws Exception {
|
HttpServletRequest req, HttpServletResponse response) throws Exception {
|
||||||
JasperPrint jasperPrint = this.reportingService
|
JasperPrint jasperPrint = this.reportingService
|
||||||
.printPdfLaporanTindakan(ruanganid, instalasiid, unitid, produkid, statusprodukid);
|
.printPdfLaporanTindakan(ruanganid, instalasiid, kelasid, unitid, produkid, statusprodukid);
|
||||||
|
|
||||||
response.setContentType("application/pdf");
|
response.setContentType("application/pdf");
|
||||||
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
|
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
|
||||||
|
|||||||
@ -565,13 +565,14 @@ public class ReportingDao {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public JasperPrint exportPdfLaporanTindakan(
|
public JasperPrint exportPdfLaporanTindakan(
|
||||||
Integer ruanganid, Integer instalasiid, Integer unitid, Integer produkid, Integer statusprodukid) {
|
Integer ruanganid, Integer instalasiid, Integer kelasid, Integer unitid, Integer produkid, Integer statusprodukid) {
|
||||||
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
|
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
|
||||||
String path = jasperDirPath + "laporan_tindakan.jrxml";
|
String path = jasperDirPath + "laporan_tindakan.jrxml";
|
||||||
JasperReport jasperReport = JasperCompileManager.compileReport(path);
|
JasperReport jasperReport = JasperCompileManager.compileReport(path);
|
||||||
Map<String, Object> parameters = new HashMap<>();
|
Map<String, Object> parameters = new HashMap<>();
|
||||||
parameters.put("ruanganid", ruanganid );
|
parameters.put("ruanganid", ruanganid );
|
||||||
parameters.put("instalasiid", instalasiid);
|
parameters.put("instalasiid", instalasiid);
|
||||||
|
parameters.put("kelasid", kelasid);
|
||||||
parameters.put("unitid", unitid);
|
parameters.put("unitid", unitid);
|
||||||
parameters.put("produkid", produkid);
|
parameters.put("produkid", produkid);
|
||||||
parameters.put("statusprodukid", statusprodukid);
|
parameters.put("statusprodukid", statusprodukid);
|
||||||
|
|||||||
@ -159,8 +159,8 @@ public class ReportingService {
|
|||||||
return this.reportingDao.exportPdfLabelFarmasi(norec);
|
return this.reportingDao.exportPdfLabelFarmasi(norec);
|
||||||
}
|
}
|
||||||
|
|
||||||
public JasperPrint printPdfLaporanTindakan(Integer ruanganid, Integer instalasiid, Integer unitid, Integer produkid, Integer statusprodukid) {
|
public JasperPrint printPdfLaporanTindakan(Integer ruanganid, Integer instalasiid, Integer kelasid, Integer unitid, Integer produkid, Integer statusprodukid) {
|
||||||
return this.reportingDao.exportPdfLaporanTindakan(ruanganid, instalasiid, produkid, unitid, statusprodukid);
|
return this.reportingDao.exportPdfLaporanTindakan(ruanganid, instalasiid, kelasid, produkid, unitid, statusprodukid);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user