Compare commits
10 Commits
02ec016b3e
...
9be130c829
| Author | SHA1 | Date | |
|---|---|---|---|
| 9be130c829 | |||
| 6cfab0df9d | |||
| c24aef35df | |||
| 90e7c9c721 | |||
| 8ec5272edb | |||
| 765755172c | |||
| f9ef023bca | |||
| 26114208a0 | |||
| 49ac34d4b7 | |||
| b240990d62 |
@ -43,8 +43,9 @@ public class ReportingController {
|
|||||||
|
|
||||||
@RequestMapping(value = {"/label-gizi/{noregistrasi}"}, method = {RequestMethod.GET})
|
@RequestMapping(value = {"/label-gizi/{noregistrasi}"}, method = {RequestMethod.GET})
|
||||||
public void exportLabelGiziTest(@PathVariable("noregistrasi") String noregistrasi,
|
public void exportLabelGiziTest(@PathVariable("noregistrasi") String noregistrasi,
|
||||||
|
@RequestParam(value = "jnsdiet", required = false) String jnsdiet,
|
||||||
ModelAndView mv, HttpServletResponse response) throws Exception {
|
ModelAndView mv, HttpServletResponse response) throws Exception {
|
||||||
JasperPrint jasperPrint = this.reportingService.exportPdfLabelGizi(noregistrasi);
|
JasperPrint jasperPrint = this.reportingService.exportPdfLabelGizi(noregistrasi, jnsdiet);
|
||||||
response.setContentType("application/pdf");
|
response.setContentType("application/pdf");
|
||||||
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
|
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
|
||||||
}
|
}
|
||||||
@ -461,12 +462,90 @@ public class ReportingController {
|
|||||||
|
|
||||||
@RequestMapping(value = {"/kwitansi-collecting-piutang/{noposting}"}, method = {RequestMethod.GET})
|
@RequestMapping(value = {"/kwitansi-collecting-piutang/{noposting}"}, method = {RequestMethod.GET})
|
||||||
public void exportPdfKwitansiCollectingPiutang(@PathVariable("noposting") String norec,
|
public void exportPdfKwitansiCollectingPiutang(@PathVariable("noposting") String norec,
|
||||||
|
@RequestParam(value = "PrintBy", required = false, defaultValue = "") String PrintBy,
|
||||||
ModelAndView mv, HttpServletResponse response) throws Exception {
|
ModelAndView mv, HttpServletResponse response) throws Exception {
|
||||||
JasperPrint jasperPrint = this.reportingService.exportPdfKwitansiCollectingPiutang(norec);
|
JasperPrint jasperPrint = this.reportingService.exportPdfKwitansiCollectingPiutang(norec, PrintBy);
|
||||||
response.setContentType("application/pdf");
|
response.setContentType("application/pdf");
|
||||||
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
|
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value = {"/lap-pasien-pulang"}, method = {RequestMethod.GET})
|
||||||
|
public void exportPdfLapCetakPulang(
|
||||||
|
@RequestParam("tglAwal") String tglAwal, @RequestParam("tglAkhir") String tglAkhir,
|
||||||
|
@RequestParam("IdDepartement") Integer IdDepartement, @RequestParam(value = "IdRuangan", required = false, defaultValue = "") Integer IdRuangan,
|
||||||
|
@RequestParam(value = "IdRekanan", required = false, defaultValue = "") Integer IdRekanan, ModelAndView mv,
|
||||||
|
HttpServletRequest req, HttpServletResponse response) throws Exception {
|
||||||
|
JasperPrint jasperPrint = this.reportingService
|
||||||
|
.exportPdfLapCetakPulang(tglAwal, tglAkhir, IdDepartement, IdRuangan, IdRekanan);
|
||||||
|
|
||||||
|
response.setContentType("application/pdf");
|
||||||
|
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value = {"/daftar-penerima-barang-farmasi/{norec}"}, method = {RequestMethod.GET})
|
||||||
|
public void exportPdfdaftarPenerimaBarangFarmasi(@PathVariable("norec") String norec,
|
||||||
|
@RequestParam(value = "idMenyerahkan", required = false, defaultValue = "") Integer idMenyerahkan,
|
||||||
|
@RequestParam(value = "idMengetahui", required = false, defaultValue = "") Integer idMengetahui,
|
||||||
|
@RequestParam(value = "idMenerima", required = false, defaultValue = "") Integer idMenerima,
|
||||||
|
@RequestParam(value = "jabatanMenyerahkan", required = false, defaultValue = "") String jabatanMenyerahkan,
|
||||||
|
@RequestParam(value = "jabatanMengetahui", required = false, defaultValue = "") String jabatanMengetahui,
|
||||||
|
@RequestParam(value = "jabatanMenerima", required = false, defaultValue = "") String jabatanMenerima,
|
||||||
|
@RequestParam(value = "printBy", required = false, defaultValue = "") String printBy,
|
||||||
|
ModelAndView mv, HttpServletResponse response) throws Exception {
|
||||||
|
JasperPrint jasperPrint = this.reportingService.exportPdfdaftarPenerimaBarangFarmasi(norec, idMenyerahkan, idMengetahui, idMenerima, jabatanMenyerahkan, jabatanMengetahui, jabatanMenerima, printBy);
|
||||||
|
response.setContentType("application/pdf");
|
||||||
|
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value = {"/bukti-pengeluaran-barang/{norec}"}, method = {RequestMethod.GET})
|
||||||
|
public void exportPdfBuktiPengeluaranBarang(@PathVariable("norec") String norec,
|
||||||
|
@RequestParam(value = "idMenyerahkan", required = false, defaultValue = "") Integer idMenyerahkan,
|
||||||
|
@RequestParam(value = "idMengetahui", required = false, defaultValue = "") Integer idMengetahui,
|
||||||
|
@RequestParam(value = "idMenerima", required = false, defaultValue = "") Integer idMenerima,
|
||||||
|
@RequestParam(value = "jabatanMenyerahkan", required = false, defaultValue = "") String jabatanMenyerahkan,
|
||||||
|
@RequestParam(value = "jabatanMengetahui", required = false, defaultValue = "") String jabatanMengetahui,
|
||||||
|
@RequestParam(value = "jabatanMenerima", required = false, defaultValue = "") String jabatanMenerima,
|
||||||
|
@RequestParam(value = "printBy", required = false, defaultValue = "") String printBy,
|
||||||
|
ModelAndView mv, HttpServletResponse response) throws Exception {
|
||||||
|
JasperPrint jasperPrint = this.reportingService.exportPdfBuktiPengeluaranBarang(norec, idMenyerahkan, idMengetahui, idMenerima, jabatanMenyerahkan, jabatanMengetahui, jabatanMenerima, printBy);
|
||||||
|
response.setContentType("application/pdf");
|
||||||
|
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value = {"/kartu-pasien-pulang/{noregistrasi}"}, method = {RequestMethod.GET})
|
||||||
|
public void exportPdfKartuPasienPulang(@PathVariable("noregistrasi") String noregistrasi,
|
||||||
|
@RequestParam(value = "printBy", required = false, defaultValue = "") String printBy,
|
||||||
|
ModelAndView mv, HttpServletResponse response) throws Exception {
|
||||||
|
JasperPrint jasperPrint = this.reportingService.exportPdfKartuPasienPulang(noregistrasi, printBy);
|
||||||
|
response.setContentType("application/pdf");
|
||||||
|
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value = {"/resume-medis"}, method = {RequestMethod.GET})
|
||||||
|
public void exportPdfResumeeMedis(@RequestParam("norec") String norec,
|
||||||
|
@RequestParam("nocm") String nocm,
|
||||||
|
ModelAndView mv, HttpServletResponse response) throws Exception {
|
||||||
|
JasperPrint jasperPrint = this.reportingService.exportPdfResumeeMedis(norec, nocm);
|
||||||
|
response.setContentType("application/pdf");
|
||||||
|
JasperExportManager.exportReportToPdfStream(jasperPrint, response.getOutputStream());
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value = {"/bukti-penerimaan-barang-farmasi/{norec}"}, method = {RequestMethod.GET})
|
||||||
|
public void exportPdfBuktiPenerimaanBarangFarmasi(@PathVariable("norec") String norec,
|
||||||
|
@RequestParam(value = "idMenyerahkan", required = false, defaultValue = "") Integer idMenyerahkan,
|
||||||
|
@RequestParam(value = "idMengetahui", required = false, defaultValue = "") Integer idMengetahui,
|
||||||
|
@RequestParam(value = "idMenerima", required = false, defaultValue = "") Integer idMenerima,
|
||||||
|
@RequestParam(value = "jabatanMenyerahkan", required = false, defaultValue = "") String jabatanMenyerahkan,
|
||||||
|
@RequestParam(value = "jabatanMengetahui", required = false, defaultValue = "") String jabatanMengetahui,
|
||||||
|
@RequestParam(value = "jabatanMenerima", required = false, defaultValue = "") String jabatanMenerima,
|
||||||
|
@RequestParam(value = "printBy", required = false, defaultValue = "") String printBy,
|
||||||
|
ModelAndView mv, HttpServletResponse response) throws Exception {
|
||||||
|
JasperPrint jasperPrint = this.reportingService.exportPdfBuktiPenerimaanBarangFarmasi(norec, idMenyerahkan, idMengetahui, idMenerima, jabatanMenyerahkan, jabatanMengetahui, jabatanMenerima, printBy);
|
||||||
|
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})
|
||||||
|
|||||||
@ -76,6 +76,21 @@ public class ReportingDao {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public JasperPrint exportPdfLabelGiziMakanan(String noregistrasi, String jnsdiet) {
|
||||||
|
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
|
||||||
|
String path = jasperDirPath + "rpt_labelgizimakanan.jrxml";
|
||||||
|
JasperReport jasperReport = JasperCompileManager.compileReport(path);
|
||||||
|
Map<String, Object> parameters = new HashMap<>();
|
||||||
|
parameters.put("noregistrasi", noregistrasi);
|
||||||
|
parameters.put("jnsdiet", jnsdiet);
|
||||||
|
return JasperFillManager.fillReport(jasperReport, parameters, conn);
|
||||||
|
} catch (Exception var15) {
|
||||||
|
LOG.error("Exception at exportPdfLabelGiziMakanan");
|
||||||
|
LOG.error(ReportingDao.class, var15);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
public JasperPrint exportPdfLabelGizi(String noregistrasi) {
|
public JasperPrint exportPdfLabelGizi(String noregistrasi) {
|
||||||
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
|
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
|
||||||
String path = jasperDirPath + "rpt_labelgizi.jrxml";
|
String path = jasperDirPath + "rpt_labelgizi.jrxml";
|
||||||
@ -90,6 +105,7 @@ public class ReportingDao {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public JasperPrint exportPdfPermintaanMakanan(Integer idRu, String tglAwal, String tglAkhir) {
|
public JasperPrint exportPdfPermintaanMakanan(Integer idRu, String tglAwal, String tglAkhir) {
|
||||||
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
|
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
|
||||||
String path = jasperDirPath + "pl_permintaan_makan.jrxml";
|
String path = jasperDirPath + "pl_permintaan_makan.jrxml";
|
||||||
@ -310,6 +326,24 @@ public class ReportingDao {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public JasperPrint exportPdfPermintaanMinuman(int idRu, String tglAwal, String tglAkhir, String jenisDiet, String tglLayanan) {
|
||||||
|
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
|
||||||
|
String path = jasperDirPath + "pl_permintaan_minuman.jrxml";
|
||||||
|
JasperReport jasperReport = JasperCompileManager.compileReport(path);
|
||||||
|
Map<String, Object> parameters = new HashMap<>();
|
||||||
|
parameters.put("idRu", idRu);
|
||||||
|
parameters.put("tglAwal", tglAwal);
|
||||||
|
parameters.put("tglAkhir", tglAkhir);
|
||||||
|
parameters.put("jenisDiet", jenisDiet);
|
||||||
|
parameters.put("tglLayanan", tglLayanan);
|
||||||
|
return JasperFillManager.fillReport(jasperReport, parameters, conn);
|
||||||
|
} catch (Exception var17) {
|
||||||
|
LOG.error("Exception at exportPdfPermintaanMinuman");
|
||||||
|
LOG.error(ReportingDao.class, var17);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
public JasperPrint exportPdfRekapMakanan(int idRu, String tglAwal, String tglAkhir) {
|
public JasperPrint exportPdfRekapMakanan(int idRu, String tglAwal, String tglAkhir) {
|
||||||
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
|
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
|
||||||
String path = jasperDirPath + "pl_rekap_makan.jrxml";
|
String path = jasperDirPath + "pl_rekap_makan.jrxml";
|
||||||
@ -813,12 +847,13 @@ public class ReportingDao {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Kwitansi_Collecting_Piutang
|
//Kwitansi_Collecting_Piutang
|
||||||
public JasperPrint exportPdfKwitansiCollectingPiutang(String noposting) {
|
public JasperPrint exportPdfKwitansiCollectingPiutang(String noposting, String PrintBy) {
|
||||||
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
|
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
|
||||||
String path = jasperDirPath + "Kwitansi_Collecting_Piutang.jrxml";
|
String path = jasperDirPath + "Kwitansi_Collecting_Piutang.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("noposting", noposting);
|
parameters.put("noposting", noposting);
|
||||||
|
parameters.put("PrintBy", PrintBy);
|
||||||
return JasperFillManager.fillReport(jasperReport, parameters, conn);
|
return JasperFillManager.fillReport(jasperReport, parameters, conn);
|
||||||
} catch (Exception var17) {
|
} catch (Exception var17) {
|
||||||
LOG.error("Exception at exportPdfKwitansiCollectingPiutang");
|
LOG.error("Exception at exportPdfKwitansiCollectingPiutang");
|
||||||
@ -827,6 +862,122 @@ public class ReportingDao {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public JasperPrint exportPdfLapCetakPulang(Date tglAwal, Date tglAkhir, Integer IdDepartement, Integer IdRuangan , Integer IdRekanan) {
|
||||||
|
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
|
||||||
|
String path = jasperDirPath + "laporan_cetak_pulang_dong.jrxml";
|
||||||
|
JasperReport jasperReport = JasperCompileManager.compileReport(path);
|
||||||
|
Map<String, Object> parameters = new HashMap<>();
|
||||||
|
parameters.put("tglAwal", tglAwal);
|
||||||
|
parameters.put("tglAkhir", tglAkhir);
|
||||||
|
parameters.put("IdDepartement", IdDepartement);
|
||||||
|
parameters.put("IdRuangan", IdRuangan);
|
||||||
|
parameters.put("IdRekanan", IdRekanan);
|
||||||
|
return JasperFillManager.fillReport(jasperReport, parameters, conn);
|
||||||
|
} catch (Exception e) {
|
||||||
|
LOG.error("Exception at exportPdfLapCetakPulang");
|
||||||
|
LOG.error(ReportingDao.class, e);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Bukti penerima barang suplier
|
||||||
|
public JasperPrint exportPdfdaftarPenerimaBarangFarmasi(String norec, Integer idMenyerahkan, Integer idMengetahui, Integer idMenerima, String jabatanMenyerahkan, String jabatanMengetahui,
|
||||||
|
String jabatanMenerima, String printBy){
|
||||||
|
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()){
|
||||||
|
String path = jasperDirPath + "daftar_penerimaan_barang_dari_suplier_dong.jrxml";
|
||||||
|
JasperReport jasperReport = JasperCompileManager.compileReport(path);
|
||||||
|
Map<String, Object> parameters = new HashMap<>();
|
||||||
|
parameters.put("norec", norec);
|
||||||
|
parameters.put("idMenyerahkan", idMenyerahkan);
|
||||||
|
parameters.put("idMengetahui", idMengetahui);
|
||||||
|
parameters.put("idMenerima", idMenerima);
|
||||||
|
parameters.put("jabatanMenyerahkan", jabatanMenyerahkan);
|
||||||
|
parameters.put("jabatanMengetahui", jabatanMengetahui);
|
||||||
|
parameters.put("jabatanMenerima", jabatanMenerima);
|
||||||
|
parameters.put("printBy", printBy);
|
||||||
|
return JasperFillManager.fillReport(jasperReport, parameters, conn);
|
||||||
|
}catch (Exception e){
|
||||||
|
LOG.error("Exception at exportPdfdaftarPenerimaBarangFarmasi");
|
||||||
|
LOG.error(ReportingDao.class, e);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JasperPrint exportPdfBuktiPengeluaranBarang(String norec, Integer idMenyerahkan, Integer idMengetahui, Integer idMenerima, String jabatanMenyerahkan, String jabatanMengetahui,
|
||||||
|
String jabatanMenerima, String printBy){
|
||||||
|
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()){
|
||||||
|
String path = jasperDirPath + "bukti_pengeluaran_barang.jrxml";
|
||||||
|
JasperReport jasperReport = JasperCompileManager.compileReport(path);
|
||||||
|
Map<String, Object> parameters = new HashMap<>();
|
||||||
|
parameters.put("norec", norec);
|
||||||
|
parameters.put("idMenyerahkan", idMenyerahkan);
|
||||||
|
parameters.put("idMengetahui", idMengetahui);
|
||||||
|
parameters.put("idMenerima", idMenerima);
|
||||||
|
parameters.put("jabatanMenyerahkan", jabatanMenyerahkan);
|
||||||
|
parameters.put("jabatanMengetahui", jabatanMengetahui);
|
||||||
|
parameters.put("jabatanMenerima", jabatanMenerima);
|
||||||
|
parameters.put("printBy", printBy);
|
||||||
|
return JasperFillManager.fillReport(jasperReport, parameters, conn);
|
||||||
|
}catch (Exception e){
|
||||||
|
LOG.error("Exception at exportPdfBuktiPengeluaranBarang");
|
||||||
|
LOG.error(ReportingDao.class, e);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JasperPrint exportPdfKartuPasienPulang(String noregistrasi, String printBy) {
|
||||||
|
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
|
||||||
|
String path = jasperDirPath + "kartu_pemberitahuan_pasien_pulang.jrxml";
|
||||||
|
JasperReport jasperReport = JasperCompileManager.compileReport(path);
|
||||||
|
Map<String, Object> parameters = new HashMap<>();
|
||||||
|
parameters.put("noregistrasi", noregistrasi);
|
||||||
|
parameters.put("printBy", printBy);
|
||||||
|
return JasperFillManager.fillReport(jasperReport, parameters, conn);
|
||||||
|
} catch (Exception var15) {
|
||||||
|
LOG.error("Exception at exportPdfKartuPasienPulang");
|
||||||
|
LOG.error(ReportingDao.class, var15);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JasperPrint exportPdfResumeeMedis(String norec, String nocm) {
|
||||||
|
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
|
||||||
|
String path = jasperDirPath + "resum_medis.jrxml";
|
||||||
|
JasperReport jasperReport = JasperCompileManager.compileReport(path);
|
||||||
|
Map<String, Object> parameters = new HashMap<>();
|
||||||
|
parameters.put("norec", norec);
|
||||||
|
parameters.put("nocm", nocm);
|
||||||
|
return JasperFillManager.fillReport(jasperReport, parameters, conn);
|
||||||
|
} catch (Exception var15) {
|
||||||
|
LOG.error("Exception at exportPdfResumeeMedis");
|
||||||
|
LOG.error(ReportingDao.class, var15);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public JasperPrint exportPdfBuktiPenerimaanBarangFarmasi(String norec, Integer idMenyerahkan, Integer idMengetahui, Integer idMenerima, String jabatanMenyerahkan, String jabatanMengetahui,
|
||||||
|
String jabatanMenerima, String printBy){
|
||||||
|
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()){
|
||||||
|
String path = jasperDirPath + "bukti_penerimaan_barang_farmasi.jrxml";
|
||||||
|
JasperReport jasperReport = JasperCompileManager.compileReport(path);
|
||||||
|
Map<String, Object> parameters = new HashMap<>();
|
||||||
|
parameters.put("norec", norec);
|
||||||
|
parameters.put("idMenyerahkan", idMenyerahkan);
|
||||||
|
parameters.put("idMengetahui", idMengetahui);
|
||||||
|
parameters.put("idMenerima", idMenerima);
|
||||||
|
parameters.put("jabatanMenyerahkan", jabatanMenyerahkan);
|
||||||
|
parameters.put("jabatanMengetahui", jabatanMengetahui);
|
||||||
|
parameters.put("jabatanMenerima", jabatanMenerima);
|
||||||
|
parameters.put("printBy", printBy);
|
||||||
|
return JasperFillManager.fillReport(jasperReport, parameters, conn);
|
||||||
|
}catch (Exception e){
|
||||||
|
LOG.error("Exception at exportPdfBuktiPenerimaanBarangFarmasi");
|
||||||
|
LOG.error(ReportingDao.class, e);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Klinik Utama Bintaro
|
// Klinik Utama Bintaro
|
||||||
|
|
||||||
public JasperPrint exportPdfBuktiLayananBintaro(String norec, String user) {
|
public JasperPrint exportPdfBuktiLayananBintaro(String norec, String user) {
|
||||||
|
|||||||
@ -22,6 +22,14 @@ public class ReportingService {
|
|||||||
public ReportingService() {
|
public ReportingService() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public JasperPrint exportPdfLabelGizi(String noregistrasi, String jnsdiet) {
|
||||||
|
if (Objects.equals(jnsdiet, "MAKANAN")) {
|
||||||
|
return this.reportingDao.exportPdfLabelGiziMakanan(noregistrasi, jnsdiet);
|
||||||
|
} else {
|
||||||
|
return this.reportingDao.exportPdfLabelGizi(noregistrasi);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public JasperPrint exportPdfLabelGizi(String noregistrasi) {
|
public JasperPrint exportPdfLabelGizi(String noregistrasi) {
|
||||||
return this.reportingDao.exportPdfLabelGizi(noregistrasi);
|
return this.reportingDao.exportPdfLabelGizi(noregistrasi);
|
||||||
}
|
}
|
||||||
@ -85,7 +93,11 @@ public class ReportingService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public JasperPrint printPdfPermintaanMakanan(int idRu, String tglAwal, String tglAkhir, String jenisDiet, String tglLayanan) {
|
public JasperPrint printPdfPermintaanMakanan(int idRu, String tglAwal, String tglAkhir, String jenisDiet, String tglLayanan) {
|
||||||
return this.reportingDao.exportPdfPermintaanMakanan(idRu, tglAwal, tglAkhir, jenisDiet, tglLayanan);
|
if (Objects.equals(jenisDiet, "MINUMAN")) {
|
||||||
|
return this.reportingDao.exportPdfPermintaanMinuman(idRu, tglAwal, tglAkhir, jenisDiet, tglLayanan);
|
||||||
|
} else {
|
||||||
|
return this.reportingDao.exportPdfPermintaanMakanan(idRu, tglAwal, tglAkhir, jenisDiet, tglLayanan);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public JasperPrint printPdfRekapMakanan(int idRu, String tglAwal, String tglAkhir) {
|
public JasperPrint printPdfRekapMakanan(int idRu, String tglAwal, String tglAkhir) {
|
||||||
@ -231,8 +243,44 @@ public class ReportingService {
|
|||||||
return this.reportingDao.exportPdfSuratCollectingPiutang(noposting);
|
return this.reportingDao.exportPdfSuratCollectingPiutang(noposting);
|
||||||
}
|
}
|
||||||
|
|
||||||
public JasperPrint exportPdfKwitansiCollectingPiutang(String noposting) {
|
public JasperPrint exportPdfKwitansiCollectingPiutang(String noposting, String PrintBy) {
|
||||||
return this.reportingDao.exportPdfKwitansiCollectingPiutang(noposting);
|
return this.reportingDao.exportPdfKwitansiCollectingPiutang(noposting, PrintBy);
|
||||||
|
}
|
||||||
|
|
||||||
|
public JasperPrint exportPdfLapCetakPulang(String tglAwal, String tglAkhir, Integer IdDepartement, Integer IdRuangan, Integer IdRekanan) {
|
||||||
|
try {
|
||||||
|
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
Date parse = formatter.parse(tglAwal);
|
||||||
|
Date parse2 = formatter.parse(tglAkhir);
|
||||||
|
return this.reportingDao.exportPdfLapCetakPulang(parse, parse2, IdDepartement, IdRuangan, IdRekanan);
|
||||||
|
} catch (ParseException e) {
|
||||||
|
log.error(e.getMessage());
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public JasperPrint exportPdfdaftarPenerimaBarangFarmasi(String norec, Integer idMenyerahkan, Integer idMengetahui, Integer idMenerima, String jabatanMenyerahkan, String jabatanMengetahui,
|
||||||
|
String jabatanMenerima, String printBy){
|
||||||
|
return this.reportingDao.exportPdfdaftarPenerimaBarangFarmasi(norec, idMenyerahkan, idMengetahui, idMenerima, jabatanMenyerahkan, jabatanMengetahui, jabatanMenerima, printBy);
|
||||||
|
}
|
||||||
|
|
||||||
|
public JasperPrint exportPdfBuktiPengeluaranBarang(String norec, Integer idMenyerahkan, Integer idMengetahui, Integer idMenerima, String jabatanMenyerahkan, String jabatanMengetahui,
|
||||||
|
String jabatanMenerima, String printBy){
|
||||||
|
return this.reportingDao.exportPdfBuktiPengeluaranBarang(norec, idMenyerahkan, idMengetahui, idMenerima, jabatanMenyerahkan, jabatanMengetahui, jabatanMenerima, printBy);
|
||||||
|
}
|
||||||
|
|
||||||
|
public JasperPrint exportPdfKartuPasienPulang(String noregistrasi, String printBy) {
|
||||||
|
return this.reportingDao.exportPdfKartuPasienPulang(noregistrasi, printBy);
|
||||||
|
}
|
||||||
|
|
||||||
|
public JasperPrint exportPdfResumeeMedis(String norec, String nocm) {
|
||||||
|
return this.reportingDao.exportPdfResumeeMedis(norec, nocm);
|
||||||
|
}
|
||||||
|
|
||||||
|
public JasperPrint exportPdfBuktiPenerimaanBarangFarmasi(String norec, Integer idMenyerahkan, Integer idMengetahui, Integer idMenerima, String jabatanMenyerahkan, String jabatanMengetahui,
|
||||||
|
String jabatanMenerima, String printBy){
|
||||||
|
return this.reportingDao.exportPdfBuktiPenerimaanBarangFarmasi(norec, idMenyerahkan, idMengetahui, idMenerima, jabatanMenyerahkan, jabatanMengetahui, jabatanMenerima, printBy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user