Update used filepath services
Perubahan filepath karena migrasi server
This commit is contained in:
parent
c9cab3a65d
commit
a0009a803c
@ -14,6 +14,8 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.apache.commons.codec.binary.Base64;
|
import org.apache.commons.codec.binary.Base64;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
@ -40,11 +42,12 @@ import com.jasamedika.medifirst2000.vo.HabsenVO;
|
|||||||
* Implement class for AbsensiPegawaiService
|
* Implement class for AbsensiPegawaiService
|
||||||
*
|
*
|
||||||
* @author Generator
|
* @author Generator
|
||||||
* @param <T>
|
|
||||||
*/
|
*/
|
||||||
@Service("absensiPegawaiService")
|
@Service("absensiPegawaiService")
|
||||||
public class AbsensiPegawaiServiceImpl extends BaseVoServiceImpl implements AbsensiPegawaiService {
|
public class AbsensiPegawaiServiceImpl extends BaseVoServiceImpl implements AbsensiPegawaiService {
|
||||||
|
|
||||||
|
private static final Logger LOGGER = LoggerFactory.getLogger(AbsensiPegawaiServiceImpl.class);
|
||||||
|
|
||||||
@Value("${systemDirectory}")
|
@Value("${systemDirectory}")
|
||||||
String systemDirectory;
|
String systemDirectory;
|
||||||
|
|
||||||
@ -166,23 +169,15 @@ public class AbsensiPegawaiServiceImpl extends BaseVoServiceImpl implements Abse
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDirPath(String dirname) {
|
private String getDirPathPresensiPegawai(String dirname) {
|
||||||
String result = "";
|
String osName = System.getProperty("os.name").toLowerCase();
|
||||||
|
String path = systemDirectory + "presensi-pegawai/" + dirname + "/";
|
||||||
|
if (osName.contains("win"))
|
||||||
|
path = systemDirectory.replace("/", "\\") + "presensi-pegawai\\" + dirname + "\\";
|
||||||
|
|
||||||
String workingDir = System.getProperty("user.dir");
|
LOGGER.info("Path presensi pegawai {}", path);
|
||||||
String your_os = System.getProperty("os.name").toLowerCase();
|
|
||||||
if (your_os.indexOf("win") >= 0) {
|
|
||||||
// if_windows
|
|
||||||
result = workingDir + "\\" + systemDirectory + "\\" + dirname + "\\";
|
|
||||||
} else if (your_os.indexOf("nix") >= 0 || your_os.indexOf("nux") >= 0 || your_os.indexOf("mac") >= 0) {
|
|
||||||
// if_unix_or_mac
|
|
||||||
result = workingDir + "//" + systemDirectory + "//" + dirname + "//";
|
|
||||||
} else {
|
|
||||||
// unknown_os?
|
|
||||||
result = workingDir + "/" + systemDirectory + "/" + dirname + "/";
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void uploadPhotoCapture(String imageURLData, String idFinger, Date trDate, Date trTime, Integer trNo) {
|
public void uploadPhotoCapture(String imageURLData, String idFinger, Date trDate, Date trTime, Integer trNo) {
|
||||||
@ -190,7 +185,7 @@ public class AbsensiPegawaiServiceImpl extends BaseVoServiceImpl implements Abse
|
|||||||
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
|
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
DateFormat tf = new SimpleDateFormat("HH.mm.ss");
|
DateFormat tf = new SimpleDateFormat("HH.mm.ss");
|
||||||
|
|
||||||
String directory = getDirPath(mf.format(trDate));
|
String directory = getDirPathPresensiPegawai(mf.format(trDate));
|
||||||
String filename = directory + idFinger.toString() + "_" + df.format(trDate) + "_" + tf.format(trTime) + "#"
|
String filename = directory + idFinger.toString() + "_" + df.format(trDate) + "_" + tf.format(trTime) + "#"
|
||||||
+ trNo + ".jpg";
|
+ trNo + ".jpg";
|
||||||
|
|
||||||
@ -205,6 +200,8 @@ public class AbsensiPegawaiServiceImpl extends BaseVoServiceImpl implements Abse
|
|||||||
|
|
||||||
File outputFile = new File(filename);
|
File outputFile = new File(filename);
|
||||||
|
|
||||||
|
LOGGER.info("Path presensi pegawai {}", outputFile.getAbsolutePath());
|
||||||
|
|
||||||
OutputStream stream = new FileOutputStream(outputFile);
|
OutputStream stream = new FileOutputStream(outputFile);
|
||||||
stream.write(imagedata);
|
stream.write(imagedata);
|
||||||
stream.close();
|
stream.close();
|
||||||
@ -263,8 +260,13 @@ public class AbsensiPegawaiServiceImpl extends BaseVoServiceImpl implements Abse
|
|||||||
for (Map<String, Object> map : data) {
|
for (Map<String, Object> map : data) {
|
||||||
Map<String, Object> mapRs = new HashMap<>();
|
Map<String, Object> mapRs = new HashMap<>();
|
||||||
String imageURLData = "";
|
String imageURLData = "";
|
||||||
String encodeRs = ImageUtil.encodeFileToBase64Binary(
|
|
||||||
new File(getDirPath(map.get("trdate").toString()) + map.get("filePath").toString()));
|
File file = new File(
|
||||||
|
getDirPathPresensiPegawai(map.get("trdate").toString()) + map.get("filePath").toString());
|
||||||
|
|
||||||
|
LOGGER.info("Path presensi pegawai {}", file.getAbsolutePath());
|
||||||
|
|
||||||
|
String encodeRs = ImageUtil.encodeFileToBase64Binary(file);
|
||||||
if (CommonUtil.isNotNullOrEmpty(encodeRs)) {
|
if (CommonUtil.isNotNullOrEmpty(encodeRs)) {
|
||||||
imageURLData = "data:image/jpg;base64," + encodeRs;
|
imageURLData = "data:image/jpg;base64," + encodeRs;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,7 +30,10 @@ import org.joda.time.Chronology;
|
|||||||
import org.joda.time.LocalDate;
|
import org.joda.time.LocalDate;
|
||||||
import org.joda.time.chrono.ISOChronology;
|
import org.joda.time.chrono.ISOChronology;
|
||||||
import org.joda.time.chrono.IslamicChronology;
|
import org.joda.time.chrono.IslamicChronology;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.core.io.Resource;
|
import org.springframework.core.io.Resource;
|
||||||
import org.springframework.core.io.UrlResource;
|
import org.springframework.core.io.UrlResource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
@ -71,6 +74,11 @@ import com.jasamedika.medifirst2000.vo.ShiftKerjaVO;
|
|||||||
|
|
||||||
@Service("PegawaiJadwalKerjaService")
|
@Service("PegawaiJadwalKerjaService")
|
||||||
public class PegawaiJadwalKerjaServiceImpl extends BaseVoServiceImpl implements PegawaiJadwalKerjaService {
|
public class PegawaiJadwalKerjaServiceImpl extends BaseVoServiceImpl implements PegawaiJadwalKerjaService {
|
||||||
|
|
||||||
|
private static final Logger LOGGER = LoggerFactory.getLogger(PegawaiJadwalKerjaServiceImpl.class);
|
||||||
|
|
||||||
|
@Value("${systemDirectory}")
|
||||||
|
String systemDirectory;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private PegawaiJadwalKerjaDao pegawaiJadwalKerjaDao;
|
private PegawaiJadwalKerjaDao pegawaiJadwalKerjaDao;
|
||||||
@ -1013,6 +1021,17 @@ public class PegawaiJadwalKerjaServiceImpl extends BaseVoServiceImpl implements
|
|||||||
pegawaiJadwalKerjaDao.delete(id);
|
pegawaiJadwalKerjaDao.delete(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String getDirPathJadwalPegawai(String filename) {
|
||||||
|
String osName = System.getProperty("os.name").toLowerCase();
|
||||||
|
String path = systemDirectory + "jadwal-pegawai/" + filename + "/";
|
||||||
|
if (osName.contains("win"))
|
||||||
|
path = systemDirectory.replace("/", "\\") + "jadwal-pegawai\\" + filename + "\\";
|
||||||
|
|
||||||
|
LOGGER.info("Path jadwal pegawai {}", path);
|
||||||
|
|
||||||
|
return path;
|
||||||
|
}
|
||||||
|
|
||||||
@SuppressWarnings("resource")
|
@SuppressWarnings("resource")
|
||||||
@Override
|
@Override
|
||||||
public String writeExcelPegawaiJadwalKerja(String bulan, Integer idUnitKerja, Integer idSubunitKerja)
|
public String writeExcelPegawaiJadwalKerja(String bulan, Integer idUnitKerja, Integer idSubunitKerja)
|
||||||
@ -1085,22 +1104,12 @@ public class PegawaiJadwalKerjaServiceImpl extends BaseVoServiceImpl implements
|
|||||||
String filename = "Jadwal_Dinas_Pegawai_" + unitKerja.get("name").toString().replace(" ", "_") + "_"
|
String filename = "Jadwal_Dinas_Pegawai_" + unitKerja.get("name").toString().replace(" ", "_") + "_"
|
||||||
+ subunitKerja.get("name").toString().replace(" ", "_") + ".xls";
|
+ subunitKerja.get("name").toString().replace(" ", "_") + ".xls";
|
||||||
|
|
||||||
String workingDir = System.getProperty("user.dir");
|
absoluteFilePath = getDirPathJadwalPegawai(filename);
|
||||||
String your_os = System.getProperty("os.name").toLowerCase();
|
File file = new File(absoluteFilePath);
|
||||||
|
|
||||||
if (your_os.indexOf("win") >= 0) {
|
LOGGER.info("Path jadwal pegawai {}", file.getAbsolutePath());
|
||||||
// if_windows
|
|
||||||
absoluteFilePath = workingDir + "\\" + filename;
|
FileOutputStream out = new FileOutputStream(file);
|
||||||
} else if (your_os.indexOf("nix") >= 0 || your_os.indexOf("nux") >= 0 || your_os.indexOf("mac") >= 0) {
|
|
||||||
// if_unix_or_mac
|
|
||||||
absoluteFilePath = workingDir + "//tmp//" + filename;
|
|
||||||
// absoluteFilePath = workingDir + "/" + filename;
|
|
||||||
} else {
|
|
||||||
// unknown_os?
|
|
||||||
absoluteFilePath = workingDir + "/" + filename;
|
|
||||||
}
|
|
||||||
|
|
||||||
FileOutputStream out = new FileOutputStream(new File(absoluteFilePath));
|
|
||||||
workbook.write(out);
|
workbook.write(out);
|
||||||
|
|
||||||
out.close();
|
out.close();
|
||||||
|
|||||||
@ -17,6 +17,8 @@ import org.joda.time.Chronology;
|
|||||||
import org.joda.time.LocalDate;
|
import org.joda.time.LocalDate;
|
||||||
import org.joda.time.chrono.ISOChronology;
|
import org.joda.time.chrono.ISOChronology;
|
||||||
import org.joda.time.chrono.IslamicChronology;
|
import org.joda.time.chrono.IslamicChronology;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.data.domain.Page;
|
import org.springframework.data.domain.Page;
|
||||||
@ -85,11 +87,12 @@ import com.jasamedika.medifirst2000.vo.RekamDataPegawaiVO;
|
|||||||
* Implement class for PasienService
|
* Implement class for PasienService
|
||||||
*
|
*
|
||||||
* @author Adik
|
* @author Adik
|
||||||
* @param <T>
|
|
||||||
*/
|
*/
|
||||||
@Service("pegawaiService")
|
@Service("pegawaiService")
|
||||||
public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiService {
|
public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiService {
|
||||||
|
|
||||||
|
private static final Logger LOGGER = LoggerFactory.getLogger(PegawaiServiceImpl.class);
|
||||||
|
|
||||||
@Value("${systemDirectory}")
|
@Value("${systemDirectory}")
|
||||||
String systemDirectory;
|
String systemDirectory;
|
||||||
|
|
||||||
@ -1828,13 +1831,28 @@ public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiServ
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String getDirPathFotoProfil(String dirname) {
|
||||||
|
String osName = System.getProperty("os.name").toLowerCase();
|
||||||
|
String path = systemDirectory + dirname + "/";
|
||||||
|
if (osName.contains("win"))
|
||||||
|
path = systemDirectory.replace("/", "\\") + dirname + "\\";
|
||||||
|
|
||||||
|
LOGGER.info("Path foto profil {}", path);
|
||||||
|
|
||||||
|
return path;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> findPegawaiDetailById(Integer idPegawai) {
|
public Map<String, Object> findPegawaiDetailById(Integer idPegawai) {
|
||||||
Map<String, Object> result = pegawaiDao.getPegawaiDetailById(idPegawai);
|
Map<String, Object> result = pegawaiDao.getPegawaiDetailById(idPegawai);
|
||||||
Map<String, Object> dataEvaluasiJabatan = (Map<String, Object>) this.getEvaluasiJabatanByPegawai(idPegawai);
|
Map<String, Object> dataEvaluasiJabatan = (Map<String, Object>) this.getEvaluasiJabatanByPegawai(idPegawai);
|
||||||
|
|
||||||
String imageURLData = "";
|
String imageURLData = "";
|
||||||
String encodeRs = ImageUtil.encodeFileToBase64Binary(new File(getDirPath("foto-profil") + idPegawai + ".jpg"));
|
File file = new File(getDirPathFotoProfil("foto-profil") + idPegawai + ".jpg");
|
||||||
|
|
||||||
|
LOGGER.info("Path foto profil {}", file.getAbsolutePath());
|
||||||
|
|
||||||
|
String encodeRs = ImageUtil.encodeFileToBase64Binary(file);
|
||||||
if (CommonUtil.isNotNullOrEmpty(encodeRs)) {
|
if (CommonUtil.isNotNullOrEmpty(encodeRs)) {
|
||||||
imageURLData = "data:image/jpg;base64," + encodeRs;
|
imageURLData = "data:image/jpg;base64," + encodeRs;
|
||||||
}
|
}
|
||||||
@ -2409,25 +2427,6 @@ public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiServ
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDirPath(String dirname) {
|
|
||||||
String result = "";
|
|
||||||
|
|
||||||
String workingDir = System.getProperty("user.dir");
|
|
||||||
String your_os = System.getProperty("os.name").toLowerCase();
|
|
||||||
if (your_os.indexOf("win") >= 0) {
|
|
||||||
// if_windows
|
|
||||||
result = workingDir + "\\" + systemDirectory + "\\" + dirname + "\\";
|
|
||||||
} else if (your_os.indexOf("nix") >= 0 || your_os.indexOf("nux") >= 0 || your_os.indexOf("mac") >= 0) {
|
|
||||||
// if_unix_or_mac
|
|
||||||
result = workingDir + "//" + systemDirectory + "//" + dirname + "//";
|
|
||||||
} else {
|
|
||||||
// unknown_os?
|
|
||||||
result = workingDir + "/" + systemDirectory + "/" + dirname + "/";
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Map<String, Object>> findBirthdayEmployees() {
|
public List<Map<String, Object>> findBirthdayEmployees() {
|
||||||
DateFormat df = new SimpleDateFormat("MM-dd");
|
DateFormat df = new SimpleDateFormat("MM-dd");
|
||||||
@ -2435,8 +2434,11 @@ public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiServ
|
|||||||
List<Map<String, Object>> result = pegawaiDao.findByBirthDate(df.format(new Date()));
|
List<Map<String, Object>> result = pegawaiDao.findByBirthDate(df.format(new Date()));
|
||||||
for (Map<String, Object> map : result) {
|
for (Map<String, Object> map : result) {
|
||||||
String imageURLData = "";
|
String imageURLData = "";
|
||||||
String encodeRs = ImageUtil
|
File file = new File(getDirPathFotoProfil("foto-profil") + map.get("id").toString() + ".jpg");
|
||||||
.encodeFileToBase64Binary(new File(getDirPath("foto-profil") + map.get("id").toString() + ".jpg"));
|
|
||||||
|
LOGGER.info("Path foto profil {}", file.getAbsolutePath());
|
||||||
|
|
||||||
|
String encodeRs = ImageUtil.encodeFileToBase64Binary(file);
|
||||||
if (CommonUtil.isNotNullOrEmpty(encodeRs)) {
|
if (CommonUtil.isNotNullOrEmpty(encodeRs)) {
|
||||||
imageURLData = "data:image/jpg;base64," + encodeRs;
|
imageURLData = "data:image/jpg;base64," + encodeRs;
|
||||||
}
|
}
|
||||||
@ -2449,9 +2451,11 @@ public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiServ
|
|||||||
@Override
|
@Override
|
||||||
public String findAvatar(Integer idPegawai) {
|
public String findAvatar(Integer idPegawai) {
|
||||||
String result = "";
|
String result = "";
|
||||||
|
File file = new File(getDirPathFotoProfil("foto-profil") + idPegawai.toString() + ".jpg");
|
||||||
|
|
||||||
String encodeRs = ImageUtil
|
LOGGER.info("Path foto profil {}", file.getAbsolutePath());
|
||||||
.encodeFileToBase64Binary(new File(getDirPath("foto-profil") + idPegawai.toString() + ".jpg"));
|
|
||||||
|
String encodeRs = ImageUtil.encodeFileToBase64Binary(file);
|
||||||
if (CommonUtil.isNotNullOrEmpty(encodeRs)) {
|
if (CommonUtil.isNotNullOrEmpty(encodeRs)) {
|
||||||
result = "data:image/jpg;base64," + encodeRs;
|
result = "data:image/jpg;base64," + encodeRs;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,7 +13,10 @@ import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
|||||||
import org.apache.poi.ss.usermodel.Cell;
|
import org.apache.poi.ss.usermodel.Cell;
|
||||||
import org.apache.poi.ss.usermodel.CellStyle;
|
import org.apache.poi.ss.usermodel.CellStyle;
|
||||||
import org.apache.poi.ss.usermodel.Row;
|
import org.apache.poi.ss.usermodel.Row;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.data.domain.Sort;
|
import org.springframework.data.domain.Sort;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
@ -34,6 +37,12 @@ import java.util.stream.Collectors;
|
|||||||
@Service
|
@Service
|
||||||
@Transactional
|
@Transactional
|
||||||
public class SlipGajiServiceImpl implements SlipGajiService {
|
public class SlipGajiServiceImpl implements SlipGajiService {
|
||||||
|
|
||||||
|
private static final Logger LOGGER = LoggerFactory.getLogger(SlipGajiServiceImpl.class);
|
||||||
|
|
||||||
|
@Value("${systemDirectory}")
|
||||||
|
String systemDirectory;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SlipGajiDao slipGajiDao;
|
private SlipGajiDao slipGajiDao;
|
||||||
|
|
||||||
@ -392,6 +401,17 @@ public class SlipGajiServiceImpl implements SlipGajiService {
|
|||||||
return dto.build();
|
return dto.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String getDirPathSlipGaji(String dirname) {
|
||||||
|
String osName = System.getProperty("os.name").toLowerCase();
|
||||||
|
String path = systemDirectory + dirname + "/";
|
||||||
|
if (osName.contains("win"))
|
||||||
|
path = systemDirectory.replace("/", "\\") + dirname + "\\";
|
||||||
|
|
||||||
|
LOGGER.info("Path slip gaji {}", path);
|
||||||
|
|
||||||
|
return path;
|
||||||
|
}
|
||||||
|
|
||||||
@SuppressWarnings("resource")
|
@SuppressWarnings("resource")
|
||||||
@Override
|
@Override
|
||||||
public String writeExcel(Long bulan) throws IOException {
|
public String writeExcel(Long bulan) throws IOException {
|
||||||
@ -480,22 +500,14 @@ public class SlipGajiServiceImpl implements SlipGajiService {
|
|||||||
sheet.createFreezePane(4, 2);
|
sheet.createFreezePane(4, 2);
|
||||||
DateFormat df = new SimpleDateFormat("yyyyMMdd_HHmmss");
|
DateFormat df = new SimpleDateFormat("yyyyMMdd_HHmmss");
|
||||||
String timestampToString = df.format(new Date());
|
String timestampToString = df.format(new Date());
|
||||||
|
|
||||||
String filename = "Template_Slip_Gaji_" + timestampToString + ".xls";
|
String filename = "Template_Slip_Gaji_" + timestampToString + ".xls";
|
||||||
String workingDir = System.getProperty("user.dir");
|
String absoluteFilePath = getDirPathSlipGaji("slip-gaji") + filename;
|
||||||
String your_os = System.getProperty("os.name").toLowerCase();
|
File file = new File(absoluteFilePath);
|
||||||
String absoluteFilePath = "";
|
|
||||||
if (your_os.contains("win")) {
|
LOGGER.info("Path foto profil {}", file.getAbsolutePath());
|
||||||
// if_windows
|
|
||||||
absoluteFilePath = workingDir + "\\" + filename;
|
try (FileOutputStream out = new FileOutputStream(file)) {
|
||||||
} else if (your_os.contains("nix") || your_os.contains("nux") || your_os.contains("mac")) {
|
|
||||||
// if_unix_or_mac
|
|
||||||
absoluteFilePath = workingDir + "//tmp//" + filename;
|
|
||||||
// absoluteFilePath = workingDir + "/" + filename;
|
|
||||||
} else {
|
|
||||||
// unknown_os?
|
|
||||||
absoluteFilePath = workingDir + "/" + filename;
|
|
||||||
}
|
|
||||||
try (FileOutputStream out = new FileOutputStream(new File(absoluteFilePath))) {
|
|
||||||
workbook.write(out);
|
workbook.write(out);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -513,16 +525,6 @@ public class SlipGajiServiceImpl implements SlipGajiService {
|
|||||||
result.put("jabatan", dto.getJabatan());
|
result.put("jabatan", dto.getJabatan());
|
||||||
result.put("unitKerja", dto.getUnitKerja());
|
result.put("unitKerja", dto.getUnitKerja());
|
||||||
result.put("subUnitKerja", dto.getSubUnitKerja());
|
result.put("subUnitKerja", dto.getSubUnitKerja());
|
||||||
// List<SlipGajiKomponenDto> komponenDto = dto.getKomponen();
|
|
||||||
// List<KomponenGaji> listMasterKomponen = komponenGajiDao.findAll(new
|
|
||||||
// Sort("id"));
|
|
||||||
// for (KomponenGaji m : listMasterKomponen) {
|
|
||||||
// for (SlipGajiKomponenDto k : komponenDto) {
|
|
||||||
// if (m.getId().equals(k.getIdKomponen())) {
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -18,7 +18,7 @@ jdbc.portNumber = 5432
|
|||||||
corePoolSizeAsyncConfigurer = 50
|
corePoolSizeAsyncConfigurer = 50
|
||||||
maxPoolSizeAsyncConfigurer = 100
|
maxPoolSizeAsyncConfigurer = 100
|
||||||
|
|
||||||
systemDirectory=//mnt//images//
|
systemDirectory=/mnt/files/
|
||||||
reportDirectory=/home/svradmin/app-back/uploadfile/
|
reportDirectory=/home/svradmin/app-back/uploadfile/
|
||||||
|
|
||||||
urlServiceSarPras=https://smart.rsabhk.co.id:2222/jasamedika-web/
|
urlServiceSarPras=https://smart.rsabhk.co.id:2222/jasamedika-web/
|
||||||
|
|||||||
@ -18,7 +18,7 @@ jdbc.portNumber = 5432
|
|||||||
corePoolSizeAsyncConfigurer = 5
|
corePoolSizeAsyncConfigurer = 5
|
||||||
maxPoolSizeAsyncConfigurer = 5
|
maxPoolSizeAsyncConfigurer = 5
|
||||||
|
|
||||||
systemDirectory=//mnt//images//
|
systemDirectory=/mnt/files/
|
||||||
reportDirectory=/home/svradmin/app-back/uploadfile/
|
reportDirectory=/home/svradmin/app-back/uploadfile/
|
||||||
|
|
||||||
urlServiceSarPras=https://smart.rsabhk.co.id:2222/jasamedika-web/
|
urlServiceSarPras=https://smart.rsabhk.co.id:2222/jasamedika-web/
|
||||||
|
|||||||
@ -18,7 +18,7 @@ jdbc.portNumber = 5432
|
|||||||
corePoolSizeAsyncConfigurer = 5
|
corePoolSizeAsyncConfigurer = 5
|
||||||
maxPoolSizeAsyncConfigurer = 5
|
maxPoolSizeAsyncConfigurer = 5
|
||||||
|
|
||||||
systemDirectory=//tmp//
|
systemDirectory=/mnt/files/
|
||||||
reportDirectory=/home/svradmin/app-back/uploadfile/
|
reportDirectory=/home/svradmin/app-back/uploadfile/
|
||||||
|
|
||||||
urlServiceSarPras=http://192.168.12.3:8080/jasamedika-web/
|
urlServiceSarPras=http://192.168.12.3:8080/jasamedika-web/
|
||||||
|
|||||||
@ -18,7 +18,7 @@ jdbc.portNumber = 5432
|
|||||||
corePoolSizeAsyncConfigurer = 5
|
corePoolSizeAsyncConfigurer = 5
|
||||||
maxPoolSizeAsyncConfigurer = 5
|
maxPoolSizeAsyncConfigurer = 5
|
||||||
|
|
||||||
systemDirectory=//mnt//images//
|
systemDirectory=/mnt/files/
|
||||||
reportDirectory=/home/svradmin/app-back/uploadfile/
|
reportDirectory=/home/svradmin/app-back/uploadfile/
|
||||||
|
|
||||||
urlServiceSarPras=https://smart.rsabhk.co.id:2222/jasamedika-web/
|
urlServiceSarPras=https://smart.rsabhk.co.id:2222/jasamedika-web/
|
||||||
|
|||||||
@ -18,7 +18,7 @@ jdbc.portNumber = 5432
|
|||||||
corePoolSizeAsyncConfigurer = 5
|
corePoolSizeAsyncConfigurer = 5
|
||||||
maxPoolSizeAsyncConfigurer = 5
|
maxPoolSizeAsyncConfigurer = 5
|
||||||
|
|
||||||
systemDirectory=//mnt//images//
|
systemDirectory=/mnt/files/
|
||||||
reportDirectory=/home/svradmin/app-back/uploadfile/
|
reportDirectory=/home/svradmin/app-back/uploadfile/
|
||||||
|
|
||||||
urlServiceSarPras=https://smart.rsabhk.co.id:2222/jasamedika-web/
|
urlServiceSarPras=https://smart.rsabhk.co.id:2222/jasamedika-web/
|
||||||
|
|||||||
@ -18,7 +18,7 @@ jdbc.portNumber = 5432
|
|||||||
corePoolSizeAsyncConfigurer = 5
|
corePoolSizeAsyncConfigurer = 5
|
||||||
maxPoolSizeAsyncConfigurer = 5
|
maxPoolSizeAsyncConfigurer = 5
|
||||||
|
|
||||||
systemDirectory=//mnt//images//
|
systemDirectory=/mnt/files/
|
||||||
reportDirectory=/home/svradmin/app-back/uploadfile/
|
reportDirectory=/home/svradmin/app-back/uploadfile/
|
||||||
|
|
||||||
urlServiceSarPras=https://smart.rsabhk.co.id:2222/jasamedika-web/
|
urlServiceSarPras=https://smart.rsabhk.co.id:2222/jasamedika-web/
|
||||||
|
|||||||
@ -18,7 +18,7 @@ jdbc.portNumber = 5432
|
|||||||
corePoolSizeAsyncConfigurer = 5
|
corePoolSizeAsyncConfigurer = 5
|
||||||
maxPoolSizeAsyncConfigurer = 5
|
maxPoolSizeAsyncConfigurer = 5
|
||||||
|
|
||||||
systemDirectory=//mnt//images//
|
systemDirectory=/mnt/files/
|
||||||
reportDirectory=/home/svradmin/app-back/uploadfile/
|
reportDirectory=/home/svradmin/app-back/uploadfile/
|
||||||
|
|
||||||
urlServiceSarPras=https://smart.rsabhk.co.id:2222/jasamedika-web/
|
urlServiceSarPras=https://smart.rsabhk.co.id:2222/jasamedika-web/
|
||||||
|
|||||||
@ -18,7 +18,7 @@ jdbc.portNumber = 5432
|
|||||||
corePoolSizeAsyncConfigurer = 5
|
corePoolSizeAsyncConfigurer = 5
|
||||||
maxPoolSizeAsyncConfigurer = 5
|
maxPoolSizeAsyncConfigurer = 5
|
||||||
|
|
||||||
systemDirectory=//tmp//
|
systemDirectory=/mnt/files/
|
||||||
reportDirectory=/home/svradmin/app-back/uploadfile/
|
reportDirectory=/home/svradmin/app-back/uploadfile/
|
||||||
|
|
||||||
urlServiceSarPras=http://192.168.12.3:8080/jasamedika-web/
|
urlServiceSarPras=http://192.168.12.3:8080/jasamedika-web/
|
||||||
|
|||||||
@ -18,7 +18,7 @@ jdbc.portNumber = 5432
|
|||||||
corePoolSizeAsyncConfigurer = 50
|
corePoolSizeAsyncConfigurer = 50
|
||||||
maxPoolSizeAsyncConfigurer = 100
|
maxPoolSizeAsyncConfigurer = 100
|
||||||
|
|
||||||
systemDirectory=//mnt//images//
|
systemDirectory=/mnt/files/
|
||||||
reportDirectory=/home/svradmin/app-back/uploadfile/
|
reportDirectory=/home/svradmin/app-back/uploadfile/
|
||||||
|
|
||||||
urlServiceSarPras=https://smart.rsabhk.co.id:2222/jasamedika-web/
|
urlServiceSarPras=https://smart.rsabhk.co.id:2222/jasamedika-web/
|
||||||
|
|||||||
@ -18,7 +18,7 @@ jdbc.portNumber = 5432
|
|||||||
corePoolSizeAsyncConfigurer = 50
|
corePoolSizeAsyncConfigurer = 50
|
||||||
maxPoolSizeAsyncConfigurer = 100
|
maxPoolSizeAsyncConfigurer = 100
|
||||||
|
|
||||||
systemDirectory=//mnt//images//
|
systemDirectory=/mnt/files/
|
||||||
reportDirectory=/home/svradmin/app-back/uploadfile/
|
reportDirectory=/home/svradmin/app-back/uploadfile/
|
||||||
|
|
||||||
urlServiceSarPras=https://smart.rsabhk.co.id:2222/jasamedika-web/
|
urlServiceSarPras=https://smart.rsabhk.co.id:2222/jasamedika-web/
|
||||||
|
|||||||
@ -18,7 +18,7 @@ jdbc.portNumber = 5432
|
|||||||
corePoolSizeAsyncConfigurer = 50
|
corePoolSizeAsyncConfigurer = 50
|
||||||
maxPoolSizeAsyncConfigurer = 100
|
maxPoolSizeAsyncConfigurer = 100
|
||||||
|
|
||||||
systemDirectory=//mnt//images//
|
systemDirectory=/mnt/files/
|
||||||
reportDirectory=/home/svradmin/app-back/uploadfile/
|
reportDirectory=/home/svradmin/app-back/uploadfile/
|
||||||
|
|
||||||
urlServiceSarPras=https://smart.rsabhk.co.id:2222/jasamedika-web/
|
urlServiceSarPras=https://smart.rsabhk.co.id:2222/jasamedika-web/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user