update pendaftaran online
This commit is contained in:
parent
c4adb3db32
commit
846eae51bb
@ -1504,8 +1504,8 @@ public class ReportingController {
|
||||
|
||||
@RequestMapping(value = {"/laporan-pendaftaran-online"}, method = {RequestMethod.GET})
|
||||
public void handleLpPendaftaranOnline(
|
||||
@RequestParam("tglAwal") String tglAwal,
|
||||
@RequestParam("tglAkhir") String tglAkhir,
|
||||
@RequestParam("tglAwal") Timestamp tglAwal,
|
||||
@RequestParam("tglAkhir") Timestamp tglAkhir,
|
||||
@RequestParam(value = "idUnit", required = false, defaultValue = "") Integer idUnit,
|
||||
@RequestParam(value = "idRuangan", required = false, defaultValue = "") Integer idRuangan,
|
||||
@RequestParam(value = "format", required = false, defaultValue = "pdf") String format,
|
||||
|
||||
@ -1318,7 +1318,7 @@ public class ReportingDao {
|
||||
}
|
||||
|
||||
|
||||
public JasperPrint exportLpPendaftaranOnline(Date tglAwal, Date tglAkhir, Integer idUnit, Integer idRuangan, String printBy) {
|
||||
public JasperPrint exportLpPendaftaranOnline(Timestamp tglAwal, Timestamp tglAkhir, Integer idUnit, Integer idRuangan, String printBy) {
|
||||
try (Connection conn = this.jdbcTemplate1.getDataSource().getConnection()) {
|
||||
String path = jaspersim2DirPath + "Laporan_pemanfaatan_pendaftaran.jrxml";
|
||||
JasperReport jasperReport = JasperCompileManager.compileReport(path);
|
||||
|
||||
@ -420,20 +420,26 @@ public class ReportingService {
|
||||
return this.reportingDao.exportRekapKunjunganPasienLab(tglAwal, tglAkhir, printBy);
|
||||
}
|
||||
|
||||
public JasperPrint exportLpPendaftaranOnline(String tglAwal, String tglAkhir, Integer idUnit, Integer idRuangan, String printBy) {
|
||||
log.info("Starting exportLpPendaftaranOnline with tglAwal: {}, tglAkhir: {}, idUnit: {}, idRuangan: {}, printBy: {}", tglAwal, tglAkhir, idUnit, idRuangan, printBy);
|
||||
try {
|
||||
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
|
||||
Date parse = formatter.parse(tglAwal);
|
||||
Date parse2 = formatter.parse(tglAkhir);
|
||||
return this.reportingDao.exportLpPendaftaranOnline(parse, parse2, idUnit, idRuangan, printBy);
|
||||
} catch (ParseException e) {
|
||||
log.error(e.getMessage());
|
||||
// public JasperPrint exportLpPendaftaranOnline(String tglAwal, String tglAkhir, Integer idUnit, Integer idRuangan, String printBy) {
|
||||
// log.info("Starting exportLpPendaftaranOnline with tglAwal: {}, tglAkhir: {}, idUnit: {}, idRuangan: {}, printBy: {}", tglAwal, tglAkhir, idUnit, idRuangan, printBy);
|
||||
// try {
|
||||
// SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
|
||||
// Date parse = formatter.parse(tglAwal);
|
||||
// Date parse2 = formatter.parse(tglAkhir);
|
||||
// return this.reportingDao.exportLpPendaftaranOnline(parse, parse2, idUnit, idRuangan, printBy);
|
||||
// } catch (ParseException e) {
|
||||
// log.error(e.getMessage());
|
||||
//
|
||||
// return null;
|
||||
// }
|
||||
// }
|
||||
|
||||
return null;
|
||||
}
|
||||
public JasperPrint exportLpPendaftaranOnline(Timestamp tglAwal, Timestamp tglAkhir, Integer idUnit, Integer idRuangan, String printBy) {
|
||||
log.info("Starting exportLpPendaftaranOnline with tglAwal: {}, tglAkhir: {}, idUnit: {}, idRuangan: {}, printBy: {}", tglAwal, tglAkhir, idUnit, idRuangan, printBy);
|
||||
return this.reportingDao.exportLpPendaftaranOnline(tglAwal, tglAkhir, idUnit, idRuangan, printBy);
|
||||
}
|
||||
|
||||
|
||||
public JasperPrint exportLpVolumeTindakan(String tglAwal, String tglAkhir, Integer idInstalasi, Integer idUnit, Integer idRuangan, Integer idProduk, Integer idPegawai, Integer idKp, String printBy) {
|
||||
log.info("Starting exportLpVolumeTindakan with tglAwal: {}, tglAkhir: {}, idInstalasi: {}, idUnit: {}, idRuangan: {}, idProduk: {}, idPegawai: {}, idKp: {}, printBy: {}", tglAwal, tglAkhir, idInstalasi, idUnit, idRuangan, idProduk, idPegawai, idKp, printBy);
|
||||
return this.reportingDao.exportLpVolumeTindakan(tglAwal, tglAkhir, idInstalasi, idUnit, idRuangan, idProduk, idPegawai, idKp, printBy);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user