Update Kwitansi KembaliDeposit
This commit is contained in:
parent
00e5289b80
commit
0e6a5c1378
@ -463,4 +463,18 @@ public class ReportingDao {
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public JasperPrint exportPdfKemKwidipo(String noregistrasi) {
|
||||||
|
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
|
||||||
|
String path = jasperDirPath + "kembalidiposit.jrxml";
|
||||||
|
JasperReport jasperReport = JasperCompileManager.compileReport(path);
|
||||||
|
Map<String, Object> parameters = new HashMap<>();
|
||||||
|
parameters.put("noregistrasi", noregistrasi);
|
||||||
|
return JasperFillManager.fillReport(jasperReport, parameters, conn);
|
||||||
|
} catch (Exception var17) {
|
||||||
|
LOG.error("Exception at exportPdfKemKwidipo");
|
||||||
|
LOG.error(ReportingDao.class, var17);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -126,6 +126,8 @@ public class ReportingService {
|
|||||||
return this.reportingDao.exportPdfKwidipo(noregistrasi);
|
return this.reportingDao.exportPdfKwidipo(noregistrasi);
|
||||||
} else if (Objects.equals(jeniskwitansi, "NONLAYANAN")){
|
} else if (Objects.equals(jeniskwitansi, "NONLAYANAN")){
|
||||||
return this.reportingDao.exportPdfKwitansiNonL(noregistrasi);
|
return this.reportingDao.exportPdfKwitansiNonL(noregistrasi);
|
||||||
|
} else if (Objects.equals(jeniskwitansi, "KEMBALIDEPOSIT")){
|
||||||
|
return this.reportingDao.exportPdfKemKwidipo(noregistrasi);
|
||||||
} else {
|
} else {
|
||||||
return this.reportingDao.exportPdfKwitansi(noregistrasi);
|
return this.reportingDao.exportPdfKwitansi(noregistrasi);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user