Clean code
Persiapan untuk service split pelayanan pasien petugas karena split jumlah pelayanan pasien di diskon paket
This commit is contained in:
parent
691ce8418f
commit
3c93817c32
@ -14,40 +14,40 @@ import org.springframework.stereotype.Component;
|
|||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.jasamedika.medifirst2000.converter.base.BaseVoConverter;
|
import com.jasamedika.medifirst2000.converter.base.BaseVoConverter;
|
||||||
import com.jasamedika.medifirst2000.entities.Pegawai;
|
import com.jasamedika.medifirst2000.entities.Pegawai;
|
||||||
import com.jasamedika.medifirst2000.vo.PegawaiVO_;
|
import com.jasamedika.medifirst2000.vo.PegawaiJabatanVO;
|
||||||
|
|
||||||
@Component
|
@Component
|
||||||
public class MapPegawaiJabatanToUnitKerjaConverter implements BaseVoConverter<PegawaiVO_, Pegawai> {
|
public class MapPegawaiJabatanToUnitKerjaConverter implements BaseVoConverter<PegawaiJabatanVO, Pegawai> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Pegawai transferVOToModel(PegawaiVO_ vo, Pegawai model) {
|
public Pegawai transferVOToModel(PegawaiJabatanVO vo, Pegawai model) {
|
||||||
if (null == model)
|
if (null == model)
|
||||||
model = new Pegawai();
|
model = new Pegawai();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
String[] fieldsToInclude = null;
|
String[] fieldsToInclude = null;
|
||||||
Map<String, Object> serialized = vo.serialize(fieldsToInclude,vo.getClass().getName());
|
Map<String, Object> serialized = vo.serialize(fieldsToInclude, vo.getClass().getName());
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
String json = gson.toJson(serialized);
|
String json = gson.toJson(serialized);
|
||||||
model = gson.fromJson(json, Pegawai.class);
|
model = gson.fromJson(json, Pegawai.class);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
return model;
|
return model;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<PegawaiVO_> transferListOfModelToListOfVO(List<Pegawai> models, List<PegawaiVO_> vos) {
|
public List<PegawaiJabatanVO> transferListOfModelToListOfVO(List<Pegawai> models, List<PegawaiJabatanVO> vos) {
|
||||||
if (null == vos)
|
if (null == vos)
|
||||||
vos = new ArrayList<PegawaiVO_>();
|
vos = new ArrayList<PegawaiJabatanVO>();
|
||||||
|
|
||||||
if (null == models)
|
if (null == models)
|
||||||
return vos;
|
return vos;
|
||||||
|
|
||||||
for (Pegawai pegawai : models) {
|
for (Pegawai pegawai : models) {
|
||||||
PegawaiVO_ vo = new PegawaiVO_();
|
PegawaiJabatanVO vo = new PegawaiJabatanVO();
|
||||||
vo=transferModelToVO(pegawai, vo);
|
vo = transferModelToVO(pegawai, vo);
|
||||||
vos.add(vo);
|
vos.add(vo);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,47 +55,49 @@ public class MapPegawaiJabatanToUnitKerjaConverter implements BaseVoConverter<Pe
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PegawaiVO_ transferModelToVO(Pegawai model, PegawaiVO_ vo) {
|
public PegawaiJabatanVO transferModelToVO(Pegawai model, PegawaiJabatanVO vo) {
|
||||||
if (null == vo)
|
if (null == vo)
|
||||||
vo = new PegawaiVO_();
|
vo = new PegawaiJabatanVO();
|
||||||
try {
|
try {
|
||||||
|
|
||||||
List<String> fieldsToInclude = new ArrayList<String>();
|
List<String> fieldsToInclude = new ArrayList<String>();
|
||||||
for (Field field : model.GetFields(model.getClass())) {
|
for (Field field : model.GetFields(model.getClass())) {
|
||||||
String str = field.getName();
|
String str = field.getName();
|
||||||
String name = field.getName();
|
String name = field.getName();
|
||||||
if(name.equals("serialVersionUID"))continue;
|
if (name.equals("serialVersionUID"))
|
||||||
|
continue;
|
||||||
Boolean valid = false;
|
Boolean valid = false;
|
||||||
for (java.lang.annotation.Annotation annotation : field.getDeclaredAnnotations()) {
|
for (java.lang.annotation.Annotation annotation : field.getDeclaredAnnotations()) {
|
||||||
if (annotation instanceof JoinColumn) {
|
if (annotation instanceof JoinColumn) {
|
||||||
valid=true;
|
valid = true;
|
||||||
} else if (annotation instanceof Column) {
|
} else if (annotation instanceof Column) {
|
||||||
Column column = (Column)annotation;
|
Column column = (Column) annotation;
|
||||||
if(column.name().endsWith("Fk"))
|
if (column.name().endsWith("Fk"))
|
||||||
if(field.getName().endsWith("Id")==false)
|
if (field.getName().endsWith("Id") == false)
|
||||||
valid=true;
|
valid = true;
|
||||||
}else if (annotation instanceof OneToMany) {
|
} else if (annotation instanceof OneToMany) {
|
||||||
|
|
||||||
valid=true;
|
valid = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if(valid ==false)
|
if (valid == false)
|
||||||
fieldsToInclude.add(str);
|
fieldsToInclude.add(str);
|
||||||
|
|
||||||
}
|
}
|
||||||
Map<String, Object> serialized = model.ToMap();
|
Map<String, Object> serialized = model.ToMap();
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
// serialized.put("jenisPegawai", model.getJenisPegawai());
|
// serialized.put("jenisPegawai", model.getJenisPegawai());
|
||||||
// serialized.put("pegawai", model.getId());
|
// serialized.put("pegawai", model.getId());
|
||||||
// serialized.put("jabatanInternal", model.getJabatanInternal());
|
// serialized.put("jabatanInternal", model.getJabatanInternal());
|
||||||
// serialized.put("unitKerja", model.getUnitKerja());
|
// serialized.put("unitKerja", model.getUnitKerja());
|
||||||
serialized.put("unitKerjaPegawai", model.getUnitKerja().getUnitKerja());
|
serialized.put("unitKerjaPegawai", model.getUnitKerja().getUnitKerja());
|
||||||
serialized.put("isCanCreateJadwal", model.getJabatanInternal().getNamaJabatan().contains("Kepala")? true : false);
|
serialized.put("isCanCreateJadwal",
|
||||||
|
model.getJabatanInternal().getNamaJabatan().contains("Kepala") ? true : false);
|
||||||
serialized.put("isPrimary", true);
|
serialized.put("isPrimary", true);
|
||||||
serialized.put("statusEnabled1", true);
|
serialized.put("statusEnabled1", true);
|
||||||
String json = gson.toJson(serialized);
|
String json = gson.toJson(serialized);
|
||||||
vo = gson.fromJson(json, PegawaiVO_.class);
|
vo = gson.fromJson(json, PegawaiJabatanVO.class);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,8 +7,10 @@ import java.util.HashSet;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import com.jasamedika.medifirst2000.converter.BaseConverterImpl;
|
import com.jasamedika.medifirst2000.converter.BaseConverterImpl;
|
||||||
import com.jasamedika.medifirst2000.dao.IpsrsPelaksanaanPerbaikanDao;
|
import com.jasamedika.medifirst2000.dao.IpsrsPelaksanaanPerbaikanDao;
|
||||||
import com.jasamedika.medifirst2000.dao.IpsrsPerbaikanDao;
|
import com.jasamedika.medifirst2000.dao.IpsrsPerbaikanDao;
|
||||||
@ -20,7 +22,6 @@ import com.jasamedika.medifirst2000.entities.IpsrsPelaksanaanPerbaikanListTeknis
|
|||||||
import com.jasamedika.medifirst2000.entities.IpsrsPelaksanaanPerbaikanSukuCadang;
|
import com.jasamedika.medifirst2000.entities.IpsrsPelaksanaanPerbaikanSukuCadang;
|
||||||
import com.jasamedika.medifirst2000.entities.IpsrsPerbaikan;
|
import com.jasamedika.medifirst2000.entities.IpsrsPerbaikan;
|
||||||
import com.jasamedika.medifirst2000.entities.IpsrsStatusPerbaikan;
|
import com.jasamedika.medifirst2000.entities.IpsrsStatusPerbaikan;
|
||||||
import com.jasamedika.medifirst2000.entities.LoginUser;
|
|
||||||
import com.jasamedika.medifirst2000.entities.Pegawai;
|
import com.jasamedika.medifirst2000.entities.Pegawai;
|
||||||
import com.jasamedika.medifirst2000.entities.RegistrasiAset;
|
import com.jasamedika.medifirst2000.entities.RegistrasiAset;
|
||||||
import com.jasamedika.medifirst2000.entities.Ruangan;
|
import com.jasamedika.medifirst2000.entities.Ruangan;
|
||||||
@ -41,189 +42,190 @@ import com.jasamedika.medifirst2000.vo.RuanganVO;
|
|||||||
import com.jasamedika.medifirst2000.vo.StokProdukGlobalVO;
|
import com.jasamedika.medifirst2000.vo.StokProdukGlobalVO;
|
||||||
|
|
||||||
@Service("ipsrsPerbaikanService")
|
@Service("ipsrsPerbaikanService")
|
||||||
public class IpsrsPerbaikanServiceImpl implements IpsrsPerbaikanService{
|
public class IpsrsPerbaikanServiceImpl implements IpsrsPerbaikanService {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IpsrsPerbaikanDao ipsrsPerbaikanDao;
|
private IpsrsPerbaikanDao ipsrsPerbaikanDao;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private StrukOrderDao strukOrderRuanganDao;
|
private StrukOrderDao strukOrderRuanganDao;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IpsrsStatusPerbaikanDao ipsrsStatusPerbaikanDao;
|
private IpsrsStatusPerbaikanDao ipsrsStatusPerbaikanDao;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IpsrsPelaksanaanPerbaikanDao ipsrsPelaksanaanPerbaikanDao;
|
private IpsrsPelaksanaanPerbaikanDao ipsrsPelaksanaanPerbaikanDao;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private RuanganDao ruanganDao;
|
private RuanganDao ruanganDao;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private BaseConverterImpl <IpsrsPerbaikanVO, IpsrsPerbaikan> ipsrsPerbaikanConverter;
|
private BaseConverterImpl<IpsrsPerbaikanVO, IpsrsPerbaikan> ipsrsPerbaikanConverter;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private BaseConverterImpl <RegistrasiAsetVO, RegistrasiAset> registrasiAsetConverter;
|
private BaseConverterImpl<RegistrasiAsetVO, RegistrasiAset> registrasiAsetConverter;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private BaseConverterImpl <PegawaiVO, Pegawai> pegawaiConverter;
|
private BaseConverterImpl<PegawaiVO, Pegawai> pegawaiConverter;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private BaseConverterImpl <IpsrsStatusPerbaikanVO, IpsrsStatusPerbaikan> ipsrsStatusPerbaikanConverter;
|
private BaseConverterImpl<IpsrsStatusPerbaikanVO, IpsrsStatusPerbaikan> ipsrsStatusPerbaikanConverter;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private BaseConverterImpl <IpsrsPelaksanaanPerbaikanVO, IpsrsPelaksanaanPerbaikan> ipsrsPelaksanaanPerbaikanConverter;
|
private BaseConverterImpl<IpsrsPelaksanaanPerbaikanVO, IpsrsPelaksanaanPerbaikan> ipsrsPelaksanaanPerbaikanConverter;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private BaseConverterImpl <IpsrsPelaksanaanPerbaikanSukuCadangVO, IpsrsPelaksanaanPerbaikanSukuCadang> ipsrsPelaksanaanPerbaikanTambahBarangConverter;
|
private BaseConverterImpl<IpsrsPelaksanaanPerbaikanSukuCadangVO, IpsrsPelaksanaanPerbaikanSukuCadang> ipsrsPelaksanaanPerbaikanTambahBarangConverter;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private BaseConverterImpl <IpsrsPelaksanaanPerbaikanListTeknisiVO, IpsrsPelaksanaanPerbaikanListTeknisi> ipsrsPelaksanaanPerbaikanListpegawaiConverter;
|
private BaseConverterImpl<IpsrsPelaksanaanPerbaikanListTeknisiVO, IpsrsPelaksanaanPerbaikanListTeknisi> ipsrsPelaksanaanPerbaikanListpegawaiConverter;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private BaseConverterImpl <StokProdukGlobalVO, StokProdukGlobal> stokProdukGlobalConverter;
|
private BaseConverterImpl<StokProdukGlobalVO, StokProdukGlobal> stokProdukGlobalConverter;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private BaseConverterImpl <RuanganVO, Ruangan> ruanganConverter;
|
private BaseConverterImpl<RuanganVO, Ruangan> ruanganConverter;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private LoginUserService loginUserService;
|
private LoginUserService loginUserService;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> getUserLogin() {
|
public Map<String, Object> getUserLogin() {
|
||||||
Map<String, Object> result = new HashMap<String,Object>();
|
Map<String, Object> result = new HashMap<String, Object>();
|
||||||
Pegawai pegawai = loginUserService.getLoginUser().getPegawai();
|
Pegawai pegawai = loginUserService.getLoginUser().getPegawai();
|
||||||
if(CommonUtil.isNotNullOrEmpty(pegawai)){
|
if (CommonUtil.isNotNullOrEmpty(pegawai)) {
|
||||||
result.put("name", pegawai.getNamaLengkap());
|
result.put("name", pegawai.getNamaLengkap());
|
||||||
result.put("idPegawai", pegawai.getId());
|
result.put("idPegawai", pegawai.getId());
|
||||||
result.put("idRuangan", pegawai.getRuangan().getId());
|
result.put("idRuangan", pegawai.getRuangan().getId());
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> getNoOrderTable(){
|
public Map<String, Object> getNoOrderTable() {
|
||||||
Map<String, Object> result = new HashMap<>();
|
Map<String, Object> result = new HashMap<>();
|
||||||
List<String> list = ipsrsPerbaikanDao.noOrder();
|
List<String> list = ipsrsPerbaikanDao.noOrder();
|
||||||
|
|
||||||
if(CommonUtil.isNotNullOrEmpty(list)){
|
if (CommonUtil.isNotNullOrEmpty(list)) {
|
||||||
Integer data = Integer.parseInt(list.get(list.size()-1).substring(2))+1;
|
Integer data = Integer.parseInt(list.get(list.size() - 1).substring(2)) + 1;
|
||||||
result.put("noOrder", "PR"+data);
|
result.put("noOrder", "PR" + data);
|
||||||
} else{
|
} else {
|
||||||
result.put("noOrder", noOrderPerbaikan());
|
result.put("noOrder", noOrderPerbaikan());
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String noOrderPerbaikan() {
|
public String noOrderPerbaikan() {
|
||||||
Date dateNow=new Date();
|
Date dateNow = new Date();
|
||||||
Integer month=DateUtil.getMonthFromDate(dateNow);
|
Integer month = DateUtil.getMonthFromDate(dateNow);
|
||||||
Integer year=DateUtil.getYearFromDate(dateNow);
|
Integer year = DateUtil.getYearFromDate(dateNow);
|
||||||
Long count=ipsrsPerbaikanDao.count();
|
Long count = ipsrsPerbaikanDao.count();
|
||||||
|
|
||||||
String monthNow=month.toString();
|
|
||||||
String yearNow=year.toString().substring(2, 4);
|
|
||||||
String noOrder=null;
|
|
||||||
|
|
||||||
count++;
|
|
||||||
if(count.toString().length()==1){
|
|
||||||
noOrder="000";}
|
|
||||||
else if(count.toString().length()==2){
|
|
||||||
noOrder="00";}
|
|
||||||
else if(count.toString().length()==3){
|
|
||||||
noOrder="0";}
|
|
||||||
if(monthNow.length()==1)
|
|
||||||
monthNow = "0"+monthNow;
|
|
||||||
|
|
||||||
return "PR"+yearNow+monthNow+noOrder+count;
|
String monthNow = month.toString();
|
||||||
|
String yearNow = year.toString().substring(2, 4);
|
||||||
|
String noOrder = null;
|
||||||
|
|
||||||
|
count++;
|
||||||
|
if (count.toString().length() == 1) {
|
||||||
|
noOrder = "000";
|
||||||
|
} else if (count.toString().length() == 2) {
|
||||||
|
noOrder = "00";
|
||||||
|
} else if (count.toString().length() == 3) {
|
||||||
|
noOrder = "0";
|
||||||
|
}
|
||||||
|
if (monthNow.length() == 1)
|
||||||
|
monthNow = "0" + monthNow;
|
||||||
|
|
||||||
|
return "PR" + yearNow + monthNow + noOrder + count;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> getRuanganPerbaikan(){
|
public Map<String, Object> getRuanganPerbaikan() {
|
||||||
Map<String, Object> result = new HashMap<>();
|
Map<String, Object> result = new HashMap<>();
|
||||||
List<Ruangan> ruanganAset = ruanganDao.getRuanganOnAset();
|
List<Ruangan> ruanganAset = ruanganDao.getRuanganOnAset();
|
||||||
result.put("ruanganAset", ruanganAset);
|
result.put("ruanganAset", ruanganAset);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> getAsetPerbaikan(Integer id){
|
public Map<String, Object> getAsetPerbaikan(Integer id) {
|
||||||
Map<String, Object> result = new HashMap<>();
|
Map<String, Object> result = new HashMap<>();
|
||||||
List<Map<String, Object>> ipsrsPerbaikan = new ArrayList<>();
|
List<Map<String, Object>> ipsrsPerbaikan = new ArrayList<>();
|
||||||
List<Map<String, Object>> listPelapor = new ArrayList<>();
|
List<Map<String, Object>> listPelapor = new ArrayList<>();
|
||||||
if(CommonUtil.isNotNullOrEmpty(id)){
|
if (CommonUtil.isNotNullOrEmpty(id)) {
|
||||||
for(Map<String, Object> mapping : ipsrsPerbaikanDao.getAllRegistrasiByRuangan(id)){
|
for (Map<String, Object> mapping : ipsrsPerbaikanDao.getAllRegistrasiByRuangan(id)) {
|
||||||
if(CommonUtil.isNullOrEmpty(mapping.get("noRec"))){
|
if (CommonUtil.isNullOrEmpty(mapping.get("noRec"))) {
|
||||||
mapping.put("noRec", "-");
|
mapping.put("noRec", "-");
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNullOrEmpty(mapping.get("noSeri"))){
|
if (CommonUtil.isNullOrEmpty(mapping.get("noSeri"))) {
|
||||||
mapping.put("noSeri", "-");
|
mapping.put("noSeri", "-");
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNullOrEmpty(mapping.get("kdProduk"))){
|
if (CommonUtil.isNullOrEmpty(mapping.get("kdProduk"))) {
|
||||||
mapping.put("kdProduk", "-");
|
mapping.put("kdProduk", "-");
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNullOrEmpty(mapping.get("namaProduk"))){
|
if (CommonUtil.isNullOrEmpty(mapping.get("namaProduk"))) {
|
||||||
mapping.put("namaProduk", "-");
|
mapping.put("namaProduk", "-");
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNullOrEmpty(mapping.get("merkProduk"))){
|
if (CommonUtil.isNullOrEmpty(mapping.get("merkProduk"))) {
|
||||||
mapping.put("merkProduk", "-");
|
mapping.put("merkProduk", "-");
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNullOrEmpty(mapping.get("typeProduk"))){
|
if (CommonUtil.isNullOrEmpty(mapping.get("typeProduk"))) {
|
||||||
mapping.put("typeProduk", "-");
|
mapping.put("typeProduk", "-");
|
||||||
}
|
}
|
||||||
ipsrsPerbaikan.add(mapping);
|
ipsrsPerbaikan.add(mapping);
|
||||||
}
|
}
|
||||||
listPelapor = ipsrsPerbaikanDao.getPegawaiByRuangan(id);
|
listPelapor = ipsrsPerbaikanDao.getPegawaiByRuangan(id);
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan)){
|
if (CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan)) {
|
||||||
result.put("dataAset", ipsrsPerbaikan);
|
result.put("dataAset", ipsrsPerbaikan);
|
||||||
result.put("pelapor", listPelapor);
|
result.put("pelapor", listPelapor);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> savePermintaanPerbaikan(IpsrsPerbaikanVO vo){
|
public Map<String, Object> savePermintaanPerbaikan(IpsrsPerbaikanVO vo) {
|
||||||
Map<String, Object> result = new HashMap<>();
|
Map<String, Object> result = new HashMap<>();
|
||||||
IpsrsPerbaikan ipsrsPerbaikan = new IpsrsPerbaikan();
|
IpsrsPerbaikan ipsrsPerbaikan = new IpsrsPerbaikan();
|
||||||
if(CommonUtil.isNotNullOrEmpty(vo)){
|
if (CommonUtil.isNotNullOrEmpty(vo)) {
|
||||||
ipsrsPerbaikan = ipsrsPerbaikanConverter.transferVOToModel(vo, new IpsrsPerbaikan());
|
ipsrsPerbaikan = ipsrsPerbaikanConverter.transferVOToModel(vo, new IpsrsPerbaikan());
|
||||||
ipsrsPerbaikan.setNoOrder(noOrderPerbaikan());
|
ipsrsPerbaikan.setNoOrder(noOrderPerbaikan());
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNotNullOrEmpty(vo.getRegistrasiAset())){
|
if (CommonUtil.isNotNullOrEmpty(vo.getRegistrasiAset())) {
|
||||||
ipsrsPerbaikan.setRegistrasiAset(registrasiAsetConverter.transferVOToModel(vo.getRegistrasiAset(), new RegistrasiAset()));
|
ipsrsPerbaikan.setRegistrasiAset(
|
||||||
|
registrasiAsetConverter.transferVOToModel(vo.getRegistrasiAset(), new RegistrasiAset()));
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNotNullOrEmpty(vo.getPelapor())){
|
if (CommonUtil.isNotNullOrEmpty(vo.getPelapor())) {
|
||||||
ipsrsPerbaikan.setPelapor(pegawaiConverter.transferVOToModel(vo.getPelapor(), new Pegawai()));
|
ipsrsPerbaikan.setPelapor(pegawaiConverter.transferVOToModel(vo.getPelapor(), new Pegawai()));
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNotNullOrEmpty(vo.getIpsrsStatusPerbaikan())){
|
if (CommonUtil.isNotNullOrEmpty(vo.getIpsrsStatusPerbaikan())) {
|
||||||
IpsrsStatusPerbaikan ipsrsStatusPerbaikan = new IpsrsStatusPerbaikan();
|
IpsrsStatusPerbaikan ipsrsStatusPerbaikan = new IpsrsStatusPerbaikan();
|
||||||
if(CommonUtil.isNotNullOrEmpty(vo.getIpsrsStatusPerbaikan())){
|
if (CommonUtil.isNotNullOrEmpty(vo.getIpsrsStatusPerbaikan())) {
|
||||||
ipsrsStatusPerbaikan = ipsrsStatusPerbaikanConverter.
|
ipsrsStatusPerbaikan = ipsrsStatusPerbaikanConverter.transferVOToModel(vo.getIpsrsStatusPerbaikan(),
|
||||||
transferVOToModel(vo.getIpsrsStatusPerbaikan(), new IpsrsStatusPerbaikan());
|
new IpsrsStatusPerbaikan());
|
||||||
ipsrsStatusPerbaikan.setIpsrsPerbaikan(ipsrsPerbaikan);
|
ipsrsStatusPerbaikan.setIpsrsPerbaikan(ipsrsPerbaikan);
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNotNullOrEmpty(ipsrsStatusPerbaikan)){
|
if (CommonUtil.isNotNullOrEmpty(ipsrsStatusPerbaikan)) {
|
||||||
ipsrsPerbaikan.setIpsrsStatusPerbaikan(ipsrsStatusPerbaikan);
|
ipsrsPerbaikan.setIpsrsStatusPerbaikan(ipsrsStatusPerbaikan);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan)){
|
if (CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan)) {
|
||||||
IpsrsPerbaikan model = ipsrsPerbaikanDao.save(ipsrsPerbaikan);
|
IpsrsPerbaikan model = ipsrsPerbaikanDao.save(ipsrsPerbaikan);
|
||||||
if(CommonUtil.isNotNullOrEmpty(model)){
|
if (CommonUtil.isNotNullOrEmpty(model)) {
|
||||||
StrukOrder strukOrder = new StrukOrder();
|
StrukOrder strukOrder = new StrukOrder();
|
||||||
strukOrder.setNoOrder(model.getNoOrder());
|
strukOrder.setNoOrder(model.getNoOrder());
|
||||||
strukOrder.setTglOrder(model.getTglPesan());
|
strukOrder.setTglOrder(model.getTglPesan());
|
||||||
strukOrder.setIsDelivered((byte) 1);
|
strukOrder.setIsDelivered((byte) 1);
|
||||||
|
|
||||||
strukOrder.setKeteranganKeperluan(model.getKeluhan());
|
strukOrder.setKeteranganKeperluan(model.getKeluhan());
|
||||||
strukOrder.setKeteranganLainnya(model.getKeluhan());
|
strukOrder.setKeteranganLainnya(model.getKeluhan());
|
||||||
strukOrder.setKeteranganOrder("Permintaan Perbaikan Dari Ruangan");
|
strukOrder.setKeteranganOrder("Permintaan Perbaikan Dari Ruangan");
|
||||||
strukOrder.setRuangan(model.getRegistrasiAset().getRuangan());
|
strukOrder.setRuangan(model.getRegistrasiAset().getRuangan());
|
||||||
strukOrder.setPegawaiOrder(model.getPelapor());
|
strukOrder.setPegawaiOrder(model.getPelapor());
|
||||||
|
|
||||||
strukOrder.setQtyJenisProduk(0.00);
|
strukOrder.setQtyJenisProduk(0.00);
|
||||||
strukOrder.setQtyProduk(0.00);
|
strukOrder.setQtyProduk(0.00);
|
||||||
strukOrder.setTotalBeaMaterai(0.00);
|
strukOrder.setTotalBeaMaterai(0.00);
|
||||||
@ -236,151 +238,160 @@ public class IpsrsPerbaikanServiceImpl implements IpsrsPerbaikanService{
|
|||||||
strukOrder.setTotalPpn(0.00);
|
strukOrder.setTotalPpn(0.00);
|
||||||
strukOrderRuanganDao.save(strukOrder);
|
strukOrderRuanganDao.save(strukOrder);
|
||||||
}
|
}
|
||||||
|
|
||||||
result.put("tglPesan", model.getTglPesan());
|
result.put("tglPesan", model.getTglPesan());
|
||||||
result.put("produk", "");
|
result.put("produk", "");
|
||||||
result.put("ruangan", "");
|
result.put("ruangan", "");
|
||||||
result.put("namaPelapor", "");
|
result.put("namaPelapor", "");
|
||||||
result.put("keluhan", model.getKeluhan());
|
result.put("keluhan", model.getKeluhan());
|
||||||
|
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> getAllPermintaanPerbaikan() {
|
public Map<String, Object> getAllPermintaanPerbaikan() {
|
||||||
Map<String, Object> result = new HashMap<>();
|
Map<String, Object> result = new HashMap<>();
|
||||||
List<Map<String, Object>> listPermintaanPerbaikan =
|
List<Map<String, Object>> listPermintaanPerbaikan = ipsrsPerbaikanDao.getAllPermintaanPerbaikan();
|
||||||
ipsrsPerbaikanDao.getAllPermintaanPerbaikan();
|
if (CommonUtil.isNotNullOrEmpty(listPermintaanPerbaikan)) {
|
||||||
if(CommonUtil.isNotNullOrEmpty(listPermintaanPerbaikan)){
|
|
||||||
result.put("listPermintaanPerbaikan", listPermintaanPerbaikan);
|
result.put("listPermintaanPerbaikan", listPermintaanPerbaikan);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> getOnePermintaanPerbaikan(String noRec){
|
public Map<String, Object> getOnePermintaanPerbaikan(String noRec) {
|
||||||
Map<String, Object> result = new HashMap<>();
|
Map<String, Object> result = new HashMap<>();
|
||||||
IpsrsPerbaikan ipsrsPerbaikan = ipsrsPerbaikanDao.findOne(noRec);
|
IpsrsPerbaikan ipsrsPerbaikan = ipsrsPerbaikanDao.findOne(noRec);
|
||||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan)){
|
if (CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan)) {
|
||||||
IpsrsStatusPerbaikan ipsrsStatusPerbaikan = ipsrsPerbaikan.getIpsrsStatusPerbaikan();
|
IpsrsStatusPerbaikan ipsrsStatusPerbaikan = ipsrsPerbaikan.getIpsrsStatusPerbaikan();
|
||||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan.getIpsrsStatusPerbaikan())){
|
if (CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan.getIpsrsStatusPerbaikan())) {
|
||||||
Long dateTime = Math.abs(DateUtil.now().getTime() - ipsrsPerbaikan.getTglPesan().getTime());
|
Long dateTime = Math.abs(DateUtil.now().getTime() - ipsrsPerbaikan.getTglPesan().getTime());
|
||||||
long inMinute = dateTime / 60000;
|
long inMinute = dateTime / 60000;
|
||||||
if(inMinute<15){
|
if (inMinute < 15) {
|
||||||
ipsrsStatusPerbaikan.setStatusRespon(1);
|
ipsrsStatusPerbaikan.setStatusRespon(1);
|
||||||
ipsrsStatusPerbaikan.setWaktuRespon(inMinute);
|
ipsrsStatusPerbaikan.setWaktuRespon(inMinute);
|
||||||
ipsrsStatusPerbaikanDao.save(ipsrsStatusPerbaikan);
|
ipsrsStatusPerbaikanDao.save(ipsrsStatusPerbaikan);
|
||||||
} else if(inMinute>=15 && inMinute<=30){
|
} else if (inMinute >= 15 && inMinute <= 30) {
|
||||||
ipsrsStatusPerbaikan.setStatusRespon(2);
|
ipsrsStatusPerbaikan.setStatusRespon(2);
|
||||||
ipsrsStatusPerbaikan.setWaktuRespon(inMinute);
|
ipsrsStatusPerbaikan.setWaktuRespon(inMinute);
|
||||||
ipsrsStatusPerbaikanDao.save(ipsrsStatusPerbaikan);
|
ipsrsStatusPerbaikanDao.save(ipsrsStatusPerbaikan);
|
||||||
} else if(inMinute>30){
|
} else if (inMinute > 30) {
|
||||||
ipsrsStatusPerbaikan.setStatusRespon(3);
|
ipsrsStatusPerbaikan.setStatusRespon(3);
|
||||||
ipsrsStatusPerbaikan.setWaktuRespon(inMinute);
|
ipsrsStatusPerbaikan.setWaktuRespon(inMinute);
|
||||||
ipsrsStatusPerbaikanDao.save(ipsrsStatusPerbaikan);
|
ipsrsStatusPerbaikanDao.save(ipsrsStatusPerbaikan);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(CommonUtil.isNotNullOrEmpty(noRec)){
|
if (CommonUtil.isNotNullOrEmpty(noRec)) {
|
||||||
Map<String, Object> permintaanPerbaikan = ipsrsPerbaikanDao.getOnePermintaanPerbaikan(noRec);
|
Map<String, Object> permintaanPerbaikan = ipsrsPerbaikanDao.getOnePermintaanPerbaikan(noRec);
|
||||||
List<Ruangan> listRuangan = ruanganDao.getRuanganOnAset();
|
List<Ruangan> listRuangan = ruanganDao.getRuanganOnAset();
|
||||||
List<Map<String, Object>> listIpsrsPerbaikan = ipsrsPerbaikanDao.getAllRegistrasiByRuangan(ipsrsPerbaikan.getRegistrasiAset().getRuanganId());
|
List<Map<String, Object>> listIpsrsPerbaikan = ipsrsPerbaikanDao
|
||||||
List<Map<String, Object>> listUser = ipsrsPerbaikanDao.getPegawaiByRuangan((Integer)permintaanPerbaikan.get("id"));
|
.getAllRegistrasiByRuangan(ipsrsPerbaikan.getRegistrasiAset().getRuanganId());
|
||||||
|
List<Map<String, Object>> listUser = ipsrsPerbaikanDao
|
||||||
|
.getPegawaiByRuangan((Integer) permintaanPerbaikan.get("id"));
|
||||||
List<Map<String, Object>> listTeknisi = ipsrsPerbaikanDao.getTeknisi();
|
List<Map<String, Object>> listTeknisi = ipsrsPerbaikanDao.getTeknisi();
|
||||||
List<Map<String, Object>> listSukuCadang = ipsrsPerbaikanDao.getSukuCadang();
|
List<Map<String, Object>> listSukuCadang = ipsrsPerbaikanDao.getSukuCadang();
|
||||||
if(CommonUtil.isNotNullOrEmpty(permintaanPerbaikan)){
|
if (CommonUtil.isNotNullOrEmpty(permintaanPerbaikan)) {
|
||||||
result.put("listIpsrsPerbaikan", listIpsrsPerbaikan);
|
result.put("listIpsrsPerbaikan", listIpsrsPerbaikan);
|
||||||
result.put("permintaanPerbaikan", permintaanPerbaikan);
|
result.put("permintaanPerbaikan", permintaanPerbaikan);
|
||||||
result.put("sukuCadang", listSukuCadang);
|
result.put("sukuCadang", listSukuCadang);
|
||||||
result.put("listUser", listUser);
|
result.put("listUser", listUser);
|
||||||
result.put("listRuangan", listRuangan);
|
result.put("listRuangan", listRuangan);
|
||||||
result.put("listTeknisi", listTeknisi);
|
result.put("listTeknisi", listTeknisi);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> savePelaksanaanPerbaikan(IpsrsPelaksanaanPerbaikanVO vo){
|
public Map<String, Object> savePelaksanaanPerbaikan(IpsrsPelaksanaanPerbaikanVO vo) {
|
||||||
Map<String, Object> result = new HashMap<>();
|
Map<String, Object> result = new HashMap<>();
|
||||||
IpsrsPerbaikan ipsrsPerbaikan = ipsrsPerbaikanDao.findOne(vo.getNoRecIpsrsPerbaikan());
|
IpsrsPerbaikan ipsrsPerbaikan = ipsrsPerbaikanDao.findOne(vo.getNoRecIpsrsPerbaikan());
|
||||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan.getIpsrsStatusPerbaikan())){
|
if (CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan.getIpsrsStatusPerbaikan())) {
|
||||||
IpsrsStatusPerbaikan ipsrsStatusPerbaikan = ipsrsPerbaikan.getIpsrsStatusPerbaikan();
|
IpsrsStatusPerbaikan ipsrsStatusPerbaikan = ipsrsPerbaikan.getIpsrsStatusPerbaikan();
|
||||||
if(CommonUtil.isNotNullOrEmpty(vo.getStatusPengerjaan())){
|
if (CommonUtil.isNotNullOrEmpty(vo.getStatusPengerjaan())) {
|
||||||
ipsrsStatusPerbaikan.setStatusPengerjaan(vo.getStatusPengerjaan());
|
ipsrsStatusPerbaikan.setStatusPengerjaan(vo.getStatusPengerjaan());
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNotNullOrEmpty(vo.getKetStatusRespon())){
|
if (CommonUtil.isNotNullOrEmpty(vo.getKetStatusRespon())) {
|
||||||
ipsrsStatusPerbaikan.setKetStatusRespon(vo.getKetStatusRespon());
|
ipsrsStatusPerbaikan.setKetStatusRespon(vo.getKetStatusRespon());
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNotNullOrEmpty(ipsrsStatusPerbaikan)){
|
if (CommonUtil.isNotNullOrEmpty(ipsrsStatusPerbaikan)) {
|
||||||
ipsrsStatusPerbaikanDao.save(ipsrsStatusPerbaikan);
|
ipsrsStatusPerbaikanDao.save(ipsrsStatusPerbaikan);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(CommonUtil.isNullOrEmpty(ipsrsPerbaikan.getIpsrsPelaksanaanPerbaikan())){
|
if (CommonUtil.isNullOrEmpty(ipsrsPerbaikan.getIpsrsPelaksanaanPerbaikan())) {
|
||||||
IpsrsPelaksanaanPerbaikan ipsrsPelaksanaanPerbaikan = new IpsrsPelaksanaanPerbaikan();
|
IpsrsPelaksanaanPerbaikan ipsrsPelaksanaanPerbaikan = new IpsrsPelaksanaanPerbaikan();
|
||||||
if(CommonUtil.isNotNullOrEmpty(vo)){
|
if (CommonUtil.isNotNullOrEmpty(vo)) {
|
||||||
ipsrsPelaksanaanPerbaikan = ipsrsPelaksanaanPerbaikanConverter.transferVOToModel(vo, new IpsrsPelaksanaanPerbaikan());
|
ipsrsPelaksanaanPerbaikan = ipsrsPelaksanaanPerbaikanConverter.transferVOToModel(vo,
|
||||||
|
new IpsrsPelaksanaanPerbaikan());
|
||||||
ipsrsPelaksanaanPerbaikan.setIpsrsPerbaikan(ipsrsPerbaikan);
|
ipsrsPelaksanaanPerbaikan.setIpsrsPerbaikan(ipsrsPerbaikan);
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNotNullOrEmpty(vo.getUser())){
|
if (CommonUtil.isNotNullOrEmpty(vo.getUser())) {
|
||||||
ipsrsPelaksanaanPerbaikan.setUser(pegawaiConverter.transferVOToModel(vo.getUser(), new Pegawai()));
|
ipsrsPelaksanaanPerbaikan.setUser(pegawaiConverter.transferVOToModel(vo.getUser(), new Pegawai()));
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan)){
|
if (CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan)) {
|
||||||
ipsrsPerbaikan.setIpsrsPelaksanaanPerbaikan(ipsrsPelaksanaanPerbaikan);
|
ipsrsPerbaikan.setIpsrsPelaksanaanPerbaikan(ipsrsPelaksanaanPerbaikan);
|
||||||
}
|
}
|
||||||
|
|
||||||
Set<IpsrsPelaksanaanPerbaikanSukuCadang> listSukuCadang = new HashSet<>();
|
Set<IpsrsPelaksanaanPerbaikanSukuCadang> listSukuCadang = new HashSet<>();
|
||||||
if(CommonUtil.isNotNullOrEmpty(vo.getIpsrsPelaksanaanPerbaikanSukuCadang())){
|
if (CommonUtil.isNotNullOrEmpty(vo.getIpsrsPelaksanaanPerbaikanSukuCadang())) {
|
||||||
for(IpsrsPelaksanaanPerbaikanSukuCadangVO modelBarangVO : vo.getIpsrsPelaksanaanPerbaikanSukuCadang()){
|
for (IpsrsPelaksanaanPerbaikanSukuCadangVO modelBarangVO : vo
|
||||||
|
.getIpsrsPelaksanaanPerbaikanSukuCadang()) {
|
||||||
IpsrsPelaksanaanPerbaikanSukuCadang ipsrsPelaksanaanPerbaikanTambahBarang = new IpsrsPelaksanaanPerbaikanSukuCadang();
|
IpsrsPelaksanaanPerbaikanSukuCadang ipsrsPelaksanaanPerbaikanTambahBarang = new IpsrsPelaksanaanPerbaikanSukuCadang();
|
||||||
if(CommonUtil.isNotNullOrEmpty(modelBarangVO)){
|
if (CommonUtil.isNotNullOrEmpty(modelBarangVO)) {
|
||||||
ipsrsPelaksanaanPerbaikanTambahBarang = ipsrsPelaksanaanPerbaikanTambahBarangConverter.transferVOToModel(modelBarangVO, new IpsrsPelaksanaanPerbaikanSukuCadang());
|
ipsrsPelaksanaanPerbaikanTambahBarang = ipsrsPelaksanaanPerbaikanTambahBarangConverter
|
||||||
|
.transferVOToModel(modelBarangVO, new IpsrsPelaksanaanPerbaikanSukuCadang());
|
||||||
ipsrsPelaksanaanPerbaikanTambahBarang.setIpsrsPelaksanaanPerbaikan(ipsrsPelaksanaanPerbaikan);
|
ipsrsPelaksanaanPerbaikanTambahBarang.setIpsrsPelaksanaanPerbaikan(ipsrsPelaksanaanPerbaikan);
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNotNullOrEmpty(modelBarangVO.getStokProdukGlobal())){
|
if (CommonUtil.isNotNullOrEmpty(modelBarangVO.getStokProdukGlobal())) {
|
||||||
ipsrsPelaksanaanPerbaikanTambahBarang.setStokProdukGlobal(stokProdukGlobalConverter.transferVOToModel(modelBarangVO.getStokProdukGlobal(), new StokProdukGlobal()));
|
ipsrsPelaksanaanPerbaikanTambahBarang.setStokProdukGlobal(stokProdukGlobalConverter
|
||||||
|
.transferVOToModel(modelBarangVO.getStokProdukGlobal(), new StokProdukGlobal()));
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNotNullOrEmpty(modelBarangVO.getTujuanRuangan())){
|
if (CommonUtil.isNotNullOrEmpty(modelBarangVO.getTujuanRuangan())) {
|
||||||
ipsrsPelaksanaanPerbaikanTambahBarang.setTujuanRuangan(ruanganConverter.transferVOToModel(modelBarangVO.getTujuanRuangan(), new Ruangan()));
|
ipsrsPelaksanaanPerbaikanTambahBarang.setTujuanRuangan(
|
||||||
|
ruanganConverter.transferVOToModel(modelBarangVO.getTujuanRuangan(), new Ruangan()));
|
||||||
}
|
}
|
||||||
listSukuCadang.add(ipsrsPelaksanaanPerbaikanTambahBarang);
|
listSukuCadang.add(ipsrsPelaksanaanPerbaikanTambahBarang);
|
||||||
}
|
}
|
||||||
ipsrsPelaksanaanPerbaikan.setIpsrsPelaksanaanPerbaikanSukuCadang(listSukuCadang);
|
ipsrsPelaksanaanPerbaikan.setIpsrsPelaksanaanPerbaikanSukuCadang(listSukuCadang);
|
||||||
}
|
}
|
||||||
|
|
||||||
Set<IpsrsPelaksanaanPerbaikanListTeknisi> listTeknisi = new HashSet<>();
|
Set<IpsrsPelaksanaanPerbaikanListTeknisi> listTeknisi = new HashSet<>();
|
||||||
if(CommonUtil.isNotNullOrEmpty(vo.getIpsrsPelaksanaanPerbaikanListTeknisi())){
|
if (CommonUtil.isNotNullOrEmpty(vo.getIpsrsPelaksanaanPerbaikanListTeknisi())) {
|
||||||
for(IpsrsPelaksanaanPerbaikanListTeknisiVO modelTeknisiVO : vo.getIpsrsPelaksanaanPerbaikanListTeknisi()){
|
for (IpsrsPelaksanaanPerbaikanListTeknisiVO modelTeknisiVO : vo
|
||||||
|
.getIpsrsPelaksanaanPerbaikanListTeknisi()) {
|
||||||
IpsrsPelaksanaanPerbaikanListTeknisi ipsrsPelaksanaanPerbaikanListTeknisi = new IpsrsPelaksanaanPerbaikanListTeknisi();
|
IpsrsPelaksanaanPerbaikanListTeknisi ipsrsPelaksanaanPerbaikanListTeknisi = new IpsrsPelaksanaanPerbaikanListTeknisi();
|
||||||
if(CommonUtil.isNotNullOrEmpty(modelTeknisiVO)){
|
if (CommonUtil.isNotNullOrEmpty(modelTeknisiVO)) {
|
||||||
ipsrsPelaksanaanPerbaikanListTeknisi = ipsrsPelaksanaanPerbaikanListpegawaiConverter.transferVOToModel(modelTeknisiVO, new IpsrsPelaksanaanPerbaikanListTeknisi());
|
ipsrsPelaksanaanPerbaikanListTeknisi = ipsrsPelaksanaanPerbaikanListpegawaiConverter
|
||||||
|
.transferVOToModel(modelTeknisiVO, new IpsrsPelaksanaanPerbaikanListTeknisi());
|
||||||
ipsrsPelaksanaanPerbaikanListTeknisi.setIpsrsPelaksanaanPerbaikan(ipsrsPelaksanaanPerbaikan);
|
ipsrsPelaksanaanPerbaikanListTeknisi.setIpsrsPelaksanaanPerbaikan(ipsrsPelaksanaanPerbaikan);
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNotNullOrEmpty(modelTeknisiVO.getTeknisi())){
|
if (CommonUtil.isNotNullOrEmpty(modelTeknisiVO.getTeknisi())) {
|
||||||
ipsrsPelaksanaanPerbaikanListTeknisi.setTeknisi(pegawaiConverter.transferVOToModel(modelTeknisiVO.getTeknisi(), new Pegawai()));
|
ipsrsPelaksanaanPerbaikanListTeknisi.setTeknisi(
|
||||||
|
pegawaiConverter.transferVOToModel(modelTeknisiVO.getTeknisi(), new Pegawai()));
|
||||||
}
|
}
|
||||||
listTeknisi.add(ipsrsPelaksanaanPerbaikanListTeknisi);
|
listTeknisi.add(ipsrsPelaksanaanPerbaikanListTeknisi);
|
||||||
}
|
}
|
||||||
ipsrsPelaksanaanPerbaikan.setIpsrsPelaksanaanPerbaikanListTeknisi(listTeknisi);
|
ipsrsPelaksanaanPerbaikan.setIpsrsPelaksanaanPerbaikanListTeknisi(listTeknisi);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan)){
|
if (CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan)) {
|
||||||
IpsrsPelaksanaanPerbaikan model = ipsrsPelaksanaanPerbaikanDao.save(ipsrsPelaksanaanPerbaikan);
|
IpsrsPelaksanaanPerbaikan model = ipsrsPelaksanaanPerbaikanDao.save(ipsrsPelaksanaanPerbaikan);
|
||||||
if(CommonUtil.isNotNullOrEmpty(model)){
|
if (CommonUtil.isNotNullOrEmpty(model)) {
|
||||||
StrukOrder strukOrder = new StrukOrder();
|
StrukOrder strukOrder = new StrukOrder();
|
||||||
strukOrder.setNoOrder("");
|
strukOrder.setNoOrder("");
|
||||||
strukOrder.setTglOrder(model.getTglMulaiPeriksa());
|
strukOrder.setTglOrder(model.getTglMulaiPeriksa());
|
||||||
strukOrder.setIsDelivered((byte) 1);
|
strukOrder.setIsDelivered((byte) 1);
|
||||||
|
|
||||||
strukOrder.setKeteranganKeperluan(model.getAnalisaTeknisi());
|
strukOrder.setKeteranganKeperluan(model.getAnalisaTeknisi());
|
||||||
strukOrder.setKeteranganLainnya(model.getAnalisaKerusakan());
|
strukOrder.setKeteranganLainnya(model.getAnalisaKerusakan());
|
||||||
strukOrder.setKeteranganOrder("Permintaan suku cadang perbaikan dari IP3RS");
|
strukOrder.setKeteranganOrder("Permintaan suku cadang perbaikan dari IP3RS");
|
||||||
strukOrder.setRuangan(model.getIpsrsPerbaikan().getRegistrasiAset().getRuangan());
|
strukOrder.setRuangan(model.getIpsrsPerbaikan().getRegistrasiAset().getRuangan());
|
||||||
strukOrder.setPegawaiOrder(model.getUser());
|
strukOrder.setPegawaiOrder(model.getUser());
|
||||||
|
|
||||||
strukOrder.setQtyJenisProduk(0.00);
|
strukOrder.setQtyJenisProduk(0.00);
|
||||||
strukOrder.setQtyProduk(0.00);
|
strukOrder.setQtyProduk(0.00);
|
||||||
strukOrder.setTotalBeaMaterai(0.00);
|
strukOrder.setTotalBeaMaterai(0.00);
|
||||||
@ -392,44 +403,46 @@ public class IpsrsPerbaikanServiceImpl implements IpsrsPerbaikanService{
|
|||||||
strukOrder.setTotalPph(0.00);
|
strukOrder.setTotalPph(0.00);
|
||||||
strukOrder.setTotalPpn(0.00);
|
strukOrder.setTotalPpn(0.00);
|
||||||
strukOrderRuanganDao.save(strukOrder);
|
strukOrderRuanganDao.save(strukOrder);
|
||||||
}
|
}
|
||||||
result.put("noRec", model.getNoRec());
|
result.put("noRec", model.getNoRec());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> getAllIpsrsPerbaikanByNoRec(String noRec){
|
public Map<String, Object> getAllIpsrsPerbaikanByNoRec(String noRec) {
|
||||||
Map<String, Object> result = new HashMap<>();
|
Map<String, Object> result = new HashMap<>();
|
||||||
IpsrsPelaksanaanPerbaikan ipsrsPelaksanaanPerbaikan = ipsrsPerbaikanDao.getAllIpsrsPerbaikanByNoRec(noRec);
|
IpsrsPelaksanaanPerbaikan ipsrsPelaksanaanPerbaikan = ipsrsPerbaikanDao.getAllIpsrsPerbaikanByNoRec(noRec);
|
||||||
List<IpsrsPelaksanaanPerbaikanSukuCadang> listBarang = new ArrayList<>();
|
List<IpsrsPelaksanaanPerbaikanSukuCadang> listBarang = new ArrayList<>();
|
||||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan.getIpsrsPelaksanaanPerbaikanSukuCadang())){
|
if (CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan.getIpsrsPelaksanaanPerbaikanSukuCadang())) {
|
||||||
for(IpsrsPelaksanaanPerbaikanSukuCadang listModel : ipsrsPelaksanaanPerbaikan.getIpsrsPelaksanaanPerbaikanSukuCadang()){
|
for (IpsrsPelaksanaanPerbaikanSukuCadang listModel : ipsrsPelaksanaanPerbaikan
|
||||||
if(CommonUtil.isNotNullOrEmpty(listModel)){
|
.getIpsrsPelaksanaanPerbaikanSukuCadang()) {
|
||||||
|
if (CommonUtil.isNotNullOrEmpty(listModel)) {
|
||||||
listBarang.add(listModel);
|
listBarang.add(listModel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
List<IpsrsPelaksanaanPerbaikanListTeknisi> listTeknisi = new ArrayList<>();
|
List<IpsrsPelaksanaanPerbaikanListTeknisi> listTeknisi = new ArrayList<>();
|
||||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan.getIpsrsPelaksanaanPerbaikanListTeknisi())){
|
if (CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan.getIpsrsPelaksanaanPerbaikanListTeknisi())) {
|
||||||
for(IpsrsPelaksanaanPerbaikanListTeknisi listModel : ipsrsPelaksanaanPerbaikan.getIpsrsPelaksanaanPerbaikanListTeknisi()){
|
for (IpsrsPelaksanaanPerbaikanListTeknisi listModel : ipsrsPelaksanaanPerbaikan
|
||||||
|
.getIpsrsPelaksanaanPerbaikanListTeknisi()) {
|
||||||
IpsrsPelaksanaanPerbaikanListTeknisi model = new IpsrsPelaksanaanPerbaikanListTeknisi();
|
IpsrsPelaksanaanPerbaikanListTeknisi model = new IpsrsPelaksanaanPerbaikanListTeknisi();
|
||||||
if(CommonUtil.isNotNullOrEmpty(listModel.getTeknisi())){
|
if (CommonUtil.isNotNullOrEmpty(listModel.getTeknisi())) {
|
||||||
Pegawai ListTeknisi = listModel.getTeknisi();
|
Pegawai ListTeknisi = listModel.getTeknisi();
|
||||||
Pegawai teknisi = new Pegawai();
|
Pegawai teknisi = new Pegawai();
|
||||||
teknisi.setId(ListTeknisi.getId());
|
teknisi.setId(ListTeknisi.getId());
|
||||||
teknisi.setqPegawai(ListTeknisi.getqPegawai());
|
teknisi.setQPegawai(ListTeknisi.getQPegawai());
|
||||||
teknisi.setNamaLengkap(ListTeknisi.getNamaLengkap());
|
teknisi.setNamaLengkap(ListTeknisi.getNamaLengkap());
|
||||||
model.setTeknisi(teknisi);
|
model.setTeknisi(teknisi);
|
||||||
}
|
}
|
||||||
listTeknisi.add(model);
|
listTeknisi.add(model);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan)){
|
if (CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan)) {
|
||||||
result.put("tglMulaiPeriksa", ipsrsPelaksanaanPerbaikan.getTglMulaiPeriksa());
|
result.put("tglMulaiPeriksa", ipsrsPelaksanaanPerbaikan.getTglMulaiPeriksa());
|
||||||
result.put("analisaTeknisi", ipsrsPelaksanaanPerbaikan.getAnalisaTeknisi());
|
result.put("analisaTeknisi", ipsrsPelaksanaanPerbaikan.getAnalisaTeknisi());
|
||||||
result.put("analisaKerusakan", ipsrsPelaksanaanPerbaikan.getAnalisaKerusakan());
|
result.put("analisaKerusakan", ipsrsPelaksanaanPerbaikan.getAnalisaKerusakan());
|
||||||
@ -438,49 +451,50 @@ public class IpsrsPerbaikanServiceImpl implements IpsrsPerbaikanService{
|
|||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Boolean deleteIpsrsPerbaikan(String noRec){
|
public Boolean deleteIpsrsPerbaikan(String noRec) {
|
||||||
IpsrsPerbaikan ipsrsPerbaikan = new IpsrsPerbaikan();
|
IpsrsPerbaikan ipsrsPerbaikan = new IpsrsPerbaikan();
|
||||||
if(CommonUtil.isNotNullOrEmpty(noRec)){
|
if (CommonUtil.isNotNullOrEmpty(noRec)) {
|
||||||
ipsrsPerbaikan = ipsrsPerbaikanDao.findOne(noRec);
|
ipsrsPerbaikan = ipsrsPerbaikanDao.findOne(noRec);
|
||||||
ipsrsPerbaikanDao.delete(ipsrsPerbaikan);
|
ipsrsPerbaikanDao.delete(ipsrsPerbaikan);
|
||||||
return true;
|
return true;
|
||||||
} else{
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, Object> updatePermintaanPerbaikan(IpsrsPerbaikanVO vo){
|
public Map<String, Object> updatePermintaanPerbaikan(IpsrsPerbaikanVO vo) {
|
||||||
Map<String, Object> result = new HashMap<>();
|
Map<String, Object> result = new HashMap<>();
|
||||||
IpsrsPerbaikan ipsrsPerbaikan = new IpsrsPerbaikan();
|
IpsrsPerbaikan ipsrsPerbaikan = new IpsrsPerbaikan();
|
||||||
if(CommonUtil.isNotNullOrEmpty(vo)){
|
if (CommonUtil.isNotNullOrEmpty(vo)) {
|
||||||
ipsrsPerbaikan = ipsrsPerbaikanConverter.transferVOToModel(vo, new IpsrsPerbaikan());
|
ipsrsPerbaikan = ipsrsPerbaikanConverter.transferVOToModel(vo, new IpsrsPerbaikan());
|
||||||
ipsrsPerbaikan.setNoOrder(vo.getNoOrder());
|
ipsrsPerbaikan.setNoOrder(vo.getNoOrder());
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNotNullOrEmpty(vo.getRegistrasiAset())){
|
if (CommonUtil.isNotNullOrEmpty(vo.getRegistrasiAset())) {
|
||||||
ipsrsPerbaikan.setRegistrasiAset(registrasiAsetConverter.transferVOToModel(vo.getRegistrasiAset(), new RegistrasiAset()));
|
ipsrsPerbaikan.setRegistrasiAset(
|
||||||
|
registrasiAsetConverter.transferVOToModel(vo.getRegistrasiAset(), new RegistrasiAset()));
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNotNullOrEmpty(vo.getPelapor())){
|
if (CommonUtil.isNotNullOrEmpty(vo.getPelapor())) {
|
||||||
ipsrsPerbaikan.setPelapor(pegawaiConverter.transferVOToModel(vo.getPelapor(), new Pegawai()));
|
ipsrsPerbaikan.setPelapor(pegawaiConverter.transferVOToModel(vo.getPelapor(), new Pegawai()));
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNotNullOrEmpty(vo.getIpsrsStatusPerbaikan())){
|
if (CommonUtil.isNotNullOrEmpty(vo.getIpsrsStatusPerbaikan())) {
|
||||||
IpsrsStatusPerbaikan ipsrsStatusPerbaikan = new IpsrsStatusPerbaikan();
|
IpsrsStatusPerbaikan ipsrsStatusPerbaikan = new IpsrsStatusPerbaikan();
|
||||||
if(CommonUtil.isNotNullOrEmpty(vo.getIpsrsStatusPerbaikan())){
|
if (CommonUtil.isNotNullOrEmpty(vo.getIpsrsStatusPerbaikan())) {
|
||||||
ipsrsStatusPerbaikan = ipsrsStatusPerbaikanConverter.
|
ipsrsStatusPerbaikan = ipsrsStatusPerbaikanConverter.transferVOToModel(vo.getIpsrsStatusPerbaikan(),
|
||||||
transferVOToModel(vo.getIpsrsStatusPerbaikan(), new IpsrsStatusPerbaikan());
|
new IpsrsStatusPerbaikan());
|
||||||
ipsrsStatusPerbaikan.setIpsrsPerbaikan(ipsrsPerbaikan);
|
ipsrsStatusPerbaikan.setIpsrsPerbaikan(ipsrsPerbaikan);
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNotNullOrEmpty(ipsrsStatusPerbaikan)){
|
if (CommonUtil.isNotNullOrEmpty(ipsrsStatusPerbaikan)) {
|
||||||
ipsrsPerbaikan.setIpsrsStatusPerbaikan(ipsrsStatusPerbaikan);
|
ipsrsPerbaikan.setIpsrsStatusPerbaikan(ipsrsStatusPerbaikan);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan)){
|
if (CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan)) {
|
||||||
IpsrsPerbaikan resultIpsrsPerbaikan = ipsrsPerbaikanDao.save(ipsrsPerbaikan);
|
IpsrsPerbaikan resultIpsrsPerbaikan = ipsrsPerbaikanDao.save(ipsrsPerbaikan);
|
||||||
result.put("noRec", resultIpsrsPerbaikan.noRec);
|
result.put("noRec", resultIpsrsPerbaikan.noRec);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -1552,8 +1552,8 @@ public class PegawaiServiceImpl extends BaseVoServiceImpl implements PegawaiServ
|
|||||||
|
|
||||||
Pegawai resultDomain = pegawaiDao.save(model);
|
Pegawai resultDomain = pegawaiDao.save(model);
|
||||||
if (CommonUtil.isNotNullOrEmpty(resultDomain)) {
|
if (CommonUtil.isNotNullOrEmpty(resultDomain)) {
|
||||||
if (CommonUtil.isNotNullOrEmpty(resultDomain.getqPegawai())) {
|
if (CommonUtil.isNotNullOrEmpty(resultDomain.getQPegawai())) {
|
||||||
resultDomain.setqPegawai(resultDomain.getId().shortValue());
|
resultDomain.setQPegawai(resultDomain.getId().shortValue());
|
||||||
pegawaiDao.save(resultDomain);
|
pegawaiDao.save(resultDomain);
|
||||||
}
|
}
|
||||||
result.put("noRec", resultDomain.getId());
|
result.put("noRec", resultDomain.getId());
|
||||||
|
|||||||
@ -67,6 +67,7 @@ public class PenyuluhanServiceImpl extends BaseVoServiceImpl implements Penyuluh
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private PegawaiDao pegawaiDao;
|
private PegawaiDao pegawaiDao;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private KelompokTransaksiDao kelompokTransaksiDao;
|
private KelompokTransaksiDao kelompokTransaksiDao;
|
||||||
|
|
||||||
@ -468,7 +469,7 @@ public class PenyuluhanServiceImpl extends BaseVoServiceImpl implements Penyuluh
|
|||||||
jenisPetugasPelaksana.setJenisPetugasPe(element.getKdJenisPetugasPe().getJenisPetugasPe());
|
jenisPetugasPelaksana.setJenisPetugasPe(element.getKdJenisPetugasPe().getJenisPetugasPe());
|
||||||
jenisPetugasPelaksana.setKdJenisPetugasPe((byte) 0);
|
jenisPetugasPelaksana.setKdJenisPetugasPe((byte) 0);
|
||||||
jenisPetugasPelaksana.setKdProfile((short) 0);
|
jenisPetugasPelaksana.setKdProfile((short) 0);
|
||||||
jenisPetugasPelaksana.setqJenisPetugasPe((byte) 0);
|
jenisPetugasPelaksana.setQJenisPetugasPe((byte) 0);
|
||||||
jenisPetugasPelaksana.setStatusEnabled(true);
|
jenisPetugasPelaksana.setStatusEnabled(true);
|
||||||
jenisPetugasPelaksanaDao.save(jenisPetugasPelaksana);
|
jenisPetugasPelaksanaDao.save(jenisPetugasPelaksana);
|
||||||
|
|
||||||
|
|||||||
@ -40,13 +40,13 @@ import com.jasamedika.medifirst2000.vo.RuanganSmsVO;
|
|||||||
*/
|
*/
|
||||||
@Service("registrasiSmsService")
|
@Service("registrasiSmsService")
|
||||||
public class RegistrasiSmsServiceImpl extends BaseVoServiceImpl implements RegistrasiSmsService {
|
public class RegistrasiSmsServiceImpl extends BaseVoServiceImpl implements RegistrasiSmsService {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private PasienDao pasienDao;
|
private PasienDao pasienDao;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private RuanganDao ruanganDao;
|
private RuanganDao ruanganDao;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private JadwalDokterDao jadwalDokterDao;
|
private JadwalDokterDao jadwalDokterDao;
|
||||||
|
|
||||||
@ -376,7 +376,7 @@ public class RegistrasiSmsServiceImpl extends BaseVoServiceImpl implements Regis
|
|||||||
if (CommonUtil.isNotNullOrEmpty(list)) {
|
if (CommonUtil.isNotNullOrEmpty(list)) {
|
||||||
for (JadwalDokter jadwal : list) {
|
for (JadwalDokter jadwal : list) {
|
||||||
DokterSmsVO local = new DokterSmsVO();
|
DokterSmsVO local = new DokterSmsVO();
|
||||||
local.setKodePegawai(String.valueOf(jadwal.getDokter().getqPegawai()));
|
local.setKodePegawai(String.valueOf(jadwal.getDokter().getQPegawai()));
|
||||||
local.setNamaPegawai(jadwal.getDokter().getNamaLengkap());
|
local.setNamaPegawai(jadwal.getDokter().getNamaLengkap());
|
||||||
resultList.add(local);
|
resultList.add(local);
|
||||||
result.put("dokter", resultList);
|
result.put("dokter", resultList);
|
||||||
@ -401,7 +401,7 @@ public class RegistrasiSmsServiceImpl extends BaseVoServiceImpl implements Regis
|
|||||||
JadwalDokterSmsVO jadwalDokter = new JadwalDokterSmsVO();
|
JadwalDokterSmsVO jadwalDokter = new JadwalDokterSmsVO();
|
||||||
jadwalDokter.setKodeRuangan(jadwal.getRuangan().getKdRuangan());
|
jadwalDokter.setKodeRuangan(jadwal.getRuangan().getKdRuangan());
|
||||||
jadwalDokter.setNamaRuangan(jadwal.getRuangan().getNamaRuangan());
|
jadwalDokter.setNamaRuangan(jadwal.getRuangan().getNamaRuangan());
|
||||||
jadwalDokter.setKodePegawai(jadwal.getDokter().getqPegawai());
|
jadwalDokter.setKodePegawai(jadwal.getDokter().getQPegawai());
|
||||||
jadwalDokter.setNamaPegawai(jadwal.getDokter().getNamaLengkap());
|
jadwalDokter.setNamaPegawai(jadwal.getDokter().getNamaLengkap());
|
||||||
jadwalDokter.setTanggal(format.format(jadwal.getTanggalJadwal()));
|
jadwalDokter.setTanggal(format.format(jadwal.getTanggalJadwal()));
|
||||||
jadwalDokterList.add(jadwalDokter);
|
jadwalDokterList.add(jadwalDokter);
|
||||||
|
|||||||
@ -1575,8 +1575,8 @@ public class RekamDataPegawaiServiceImpl extends BaseVoServiceImpl implements Re
|
|||||||
|
|
||||||
Pegawai resultDomain = rekamDataPegawaiDao.save(pegawai);
|
Pegawai resultDomain = rekamDataPegawaiDao.save(pegawai);
|
||||||
if (CommonUtil.isNotNullOrEmpty(resultDomain)) {
|
if (CommonUtil.isNotNullOrEmpty(resultDomain)) {
|
||||||
if (CommonUtil.isNotNullOrEmpty(resultDomain.getqPegawai())) {
|
if (CommonUtil.isNotNullOrEmpty(resultDomain.getQPegawai())) {
|
||||||
resultDomain.setqPegawai(resultDomain.getId().shortValue());
|
resultDomain.setQPegawai(resultDomain.getId().shortValue());
|
||||||
rekamDataPegawaiDao.save(resultDomain);
|
rekamDataPegawaiDao.save(resultDomain);
|
||||||
this.saveHistoryPegawai(pegawai, perubahan);
|
this.saveHistoryPegawai(pegawai, perubahan);
|
||||||
|
|
||||||
@ -2541,8 +2541,8 @@ public class RekamDataPegawaiServiceImpl extends BaseVoServiceImpl implements Re
|
|||||||
|
|
||||||
Pegawai resultDomain = rekamDataPegawaiDao.save(model);
|
Pegawai resultDomain = rekamDataPegawaiDao.save(model);
|
||||||
if (CommonUtil.isNotNullOrEmpty(resultDomain)) {
|
if (CommonUtil.isNotNullOrEmpty(resultDomain)) {
|
||||||
if (CommonUtil.isNotNullOrEmpty(resultDomain.getqPegawai())) {
|
if (CommonUtil.isNotNullOrEmpty(resultDomain.getQPegawai())) {
|
||||||
resultDomain.setqPegawai(resultDomain.getId().shortValue());
|
resultDomain.setQPegawai(resultDomain.getId().shortValue());
|
||||||
rekamDataPegawaiDao.save(resultDomain);
|
rekamDataPegawaiDao.save(resultDomain);
|
||||||
this.saveHistoryPegawai(model, perubahan);
|
this.saveHistoryPegawai(model, perubahan);
|
||||||
|
|
||||||
|
|||||||
@ -7,11 +7,19 @@ import org.hibernate.validator.constraints.NotEmpty;
|
|||||||
|
|
||||||
import com.jasamedika.medifirst2000.helper.Caption;
|
import com.jasamedika.medifirst2000.helper.Caption;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author salmanoe
|
* @author salmanoe
|
||||||
* @since Feb 24, 2023
|
* @since Feb 24, 2023
|
||||||
*/
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
public class PegawaiDto {
|
public class PegawaiDto {
|
||||||
|
public PegawaiDto() {
|
||||||
|
}
|
||||||
|
|
||||||
@NotNull(message = "ID Pegawai tidak boleh null")
|
@NotNull(message = "ID Pegawai tidak boleh null")
|
||||||
@Caption(value = "ID Pegawai")
|
@Caption(value = "ID Pegawai")
|
||||||
private Integer id;
|
private Integer id;
|
||||||
@ -20,23 +28,4 @@ public class PegawaiDto {
|
|||||||
@Pattern(regexp = "\\d{16}", message = "Format NIK tidak sesuai")
|
@Pattern(regexp = "\\d{16}", message = "Format NIK tidak sesuai")
|
||||||
@Caption(value = "NIK Pegawai")
|
@Caption(value = "NIK Pegawai")
|
||||||
private String noIdentitas;
|
private String noIdentitas;
|
||||||
|
|
||||||
public PegawaiDto() {
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getNoIdentitas() {
|
|
||||||
return noIdentitas;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNoIdentitas(String noIdentitas) {
|
|
||||||
this.noIdentitas = noIdentitas;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,181 +1,55 @@
|
|||||||
package com.jasamedika.medifirst2000.entities;
|
package com.jasamedika.medifirst2000.entities;
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.JoinColumn;
|
|
||||||
import javax.persistence.ManyToOne;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
import javax.validation.constraints.NotNull;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
||||||
import com.jasamedika.medifirst2000.base.BaseMaster;
|
import com.jasamedika.medifirst2000.base.BaseMaster;
|
||||||
import com.jasamedika.medifirst2000.helper.Caption;
|
import com.jasamedika.medifirst2000.helper.Caption;
|
||||||
import javax.persistence.GeneratedValue;
|
import lombok.Getter;
|
||||||
import javax.persistence.GenerationType;
|
import lombok.Setter;
|
||||||
import javax.persistence.Id;
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
|
import static javax.persistence.FetchType.LAZY;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* class AsalProduk
|
* class AsalProduk
|
||||||
*
|
*
|
||||||
* @author Generator
|
* @author Generator
|
||||||
*/
|
*/
|
||||||
@Entity // @Audited
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Entity
|
||||||
@Table(name = "AsalProduk_M")
|
@Table(name = "AsalProduk_M")
|
||||||
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
|
|
||||||
public class AsalProduk extends BaseMaster {
|
public class AsalProduk extends BaseMaster {
|
||||||
@NotNull(message = "Asal Produk tidak boleh kosong")
|
@NotNull(message = "Asal Produk tidak boleh kosong")
|
||||||
@Column(name = "AsalProduk", nullable = false, length = 30)
|
@Column(name = "AsalProduk", nullable = false, length = 30)
|
||||||
@Caption(value = "Asal Produk")
|
@Caption(value = "Asal Produk")
|
||||||
private String asalProduk;
|
private String asalProduk;
|
||||||
|
|
||||||
public void setAsalProduk(String asalProduk) {
|
|
||||||
this.asalProduk = asalProduk;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getAsalProduk() {
|
|
||||||
return this.asalProduk;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Caption(value = "Kode Asal Produk")
|
@Caption(value = "Kode Asal Produk")
|
||||||
private Byte kdAsalProduk;
|
private Byte kdAsalProduk;
|
||||||
|
|
||||||
@NotNull(message = "QAsal Produk tidak boleh kosong")
|
@ManyToOne(fetch = LAZY)
|
||||||
@Column(name = "QAsalProduk", nullable = false)
|
|
||||||
public Byte getKdAsalProduk() {
|
|
||||||
return kdAsalProduk;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setKdAsalProduk(Byte kdAsalProduk) {
|
|
||||||
this.kdAsalProduk = kdAsalProduk;
|
|
||||||
}
|
|
||||||
|
|
||||||
@ManyToOne
|
|
||||||
@JoinColumn(name = "ObjectDepartemenFk")
|
@JoinColumn(name = "ObjectDepartemenFk")
|
||||||
@Caption(value = "Object Departemen")
|
@Caption(value = "Object Departemen")
|
||||||
private Departemen departemen;
|
private Departemen departemen;
|
||||||
|
|
||||||
public void setDepartemen(Departemen departemen) {
|
|
||||||
this.departemen = departemen;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Departemen getDepartemen() {
|
|
||||||
return this.departemen;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Column(name = "ObjectDepartemenFk", insertable = false, updatable = false)
|
@Column(name = "ObjectDepartemenFk", insertable = false, updatable = false)
|
||||||
private Integer departemenId;
|
private Integer departemenId;
|
||||||
|
|
||||||
public Integer getDepartemenId() {
|
@ManyToOne(fetch = LAZY)
|
||||||
return departemenId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDepartemenId(Integer departemenId) {
|
|
||||||
this.departemenId = departemenId;
|
|
||||||
}
|
|
||||||
|
|
||||||
@ManyToOne
|
|
||||||
@JoinColumn(name = "ObjectKelompokProdukFk")
|
@JoinColumn(name = "ObjectKelompokProdukFk")
|
||||||
@Caption(value = "Object Kelompok Produk")
|
@Caption(value = "Object Kelompok Produk")
|
||||||
private KelompokProduk kelompokProduk;
|
private KelompokProduk kelompokProduk;
|
||||||
|
|
||||||
public void setKelompokProduk(KelompokProduk kelompokProduk) {
|
|
||||||
this.kelompokProduk = kelompokProduk;
|
|
||||||
}
|
|
||||||
|
|
||||||
public KelompokProduk getKelompokProduk() {
|
|
||||||
return this.kelompokProduk;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Column(name = "ObjectKelompokProdukFk", insertable = false, updatable = false, nullable = false)
|
@Column(name = "ObjectKelompokProdukFk", insertable = false, updatable = false, nullable = false)
|
||||||
private Integer kelompokProdukId;
|
private Integer kelompokProdukId;
|
||||||
|
|
||||||
public Integer getKelompokProdukId() {
|
|
||||||
return kelompokProdukId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setKelompokProdukId(Integer kelompokProdukId) {
|
|
||||||
this.kelompokProdukId = kelompokProdukId;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Caption(value = "QAsal Produk")
|
@Caption(value = "QAsal Produk")
|
||||||
private Byte qAsalProduk;
|
private Byte qAsalProduk;
|
||||||
|
|
||||||
public Byte getqAsalProduk() {
|
|
||||||
return qAsalProduk;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setqAsalProduk(Byte qAsalProduk) {
|
|
||||||
this.qAsalProduk = qAsalProduk;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @JsonManagedReference
|
|
||||||
*
|
|
||||||
* @OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL,
|
|
||||||
* mappedBy="kdasalproduk") private Set<HargaNettoProdukByKelas>
|
|
||||||
* HargaNettoDiscPasienPulangSet = new HashSet<HargaNettoProdukByKelas>();
|
|
||||||
*
|
|
||||||
* public Set<HargaNettoProdukByKelas> getHargaNettoDiscPasienPulangSet() {
|
|
||||||
* return HargaNettoDiscPasienPulangSet; }
|
|
||||||
*
|
|
||||||
* public void setHargaNettoDiscPasienPulangSet(Set<HargaNettoProdukByKelas>
|
|
||||||
* hargaNettoDiscPasienPulangSet) { HargaNettoDiscPasienPulangSet =
|
|
||||||
* hargaNettoDiscPasienPulangSet; }
|
|
||||||
*
|
|
||||||
* @JsonManagedReference
|
|
||||||
*
|
|
||||||
* @OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL,
|
|
||||||
* mappedBy="kdasalproduk") private Set<HargaNettoProdukByKelas>
|
|
||||||
* HargaNettoProdukByKelasSet = new HashSet<HargaNettoProdukByKelas>();
|
|
||||||
*
|
|
||||||
* public Set<HargaNettoProdukByKelas> getHargaNettoProdukByKelasSet() {
|
|
||||||
* return HargaNettoProdukByKelasSet; }
|
|
||||||
*
|
|
||||||
* public void setHargaNettoProdukByKelasSet(Set<HargaNettoProdukByKelas>
|
|
||||||
* hargaNettoProdukByKelasSet) { HargaNettoProdukByKelasSet =
|
|
||||||
* hargaNettoProdukByKelasSet; }
|
|
||||||
*
|
|
||||||
* @JsonManagedReference
|
|
||||||
*
|
|
||||||
* @OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL,
|
|
||||||
* mappedBy="kdasalproduk") private Set<HargaNettoProdukByKelasD>
|
|
||||||
* HargaNettoProdukByKelasDSet = new HashSet<HargaNettoProdukByKelasD>();
|
|
||||||
*
|
|
||||||
* public Set<HargaNettoProdukByKelasD> getHargaNettoProdukByKelasDSet() {
|
|
||||||
* return HargaNettoProdukByKelasDSet; }
|
|
||||||
*
|
|
||||||
* public void setHargaNettoProdukByKelasDSet(Set<HargaNettoProdukByKelasD>
|
|
||||||
* hargaNettoProdukByKelasDSet) { HargaNettoProdukByKelasDSet =
|
|
||||||
* hargaNettoProdukByKelasDSet; }
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* @JsonManagedReference
|
|
||||||
*
|
|
||||||
* @OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL,
|
|
||||||
* mappedBy="kdasalproduk") private Set<HargaNettoProdukByTerima>
|
|
||||||
* HargaNettoProdukByTerimaSet = new HashSet<HargaNettoProdukByTerima>();
|
|
||||||
*
|
|
||||||
* public Set<HargaNettoProdukByTerima> getHargaNettoProdukByTerimaSet() {
|
|
||||||
* return HargaNettoProdukByTerimaSet; }
|
|
||||||
*
|
|
||||||
* public void setHargaNettoProdukByTerimaSet(Set<HargaNettoProdukByTerima>
|
|
||||||
* hargaNettoProdukByTerimaSet) { HargaNettoProdukByTerimaSet =
|
|
||||||
* hargaNettoProdukByTerimaSet; }
|
|
||||||
*/
|
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.asalproduk_m_id_seq")
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.asalproduk_m_id_seq")
|
||||||
@javax.persistence.SequenceGenerator(name = "public.asalproduk_m_id_seq", sequenceName = "public.asalproduk_m_id_seq", allocationSize = 1)
|
@SequenceGenerator(name = "public.asalproduk_m_id_seq", sequenceName = "public.asalproduk_m_id_seq", allocationSize = 1)
|
||||||
@Column(name = "id")
|
@Column(name = "id")
|
||||||
protected Integer id;
|
protected Integer id;
|
||||||
|
|
||||||
public Integer getId() {
|
|
||||||
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@ -1,68 +1,40 @@
|
|||||||
package com.jasamedika.medifirst2000.entities;
|
package com.jasamedika.medifirst2000.entities;
|
||||||
|
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.GeneratedValue;
|
|
||||||
import javax.persistence.GenerationType;
|
|
||||||
import javax.persistence.Id;
|
|
||||||
import javax.persistence.JoinColumn;
|
|
||||||
import javax.persistence.ManyToOne;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
import javax.validation.constraints.NotNull;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
||||||
import com.jasamedika.medifirst2000.base.BaseMaster;
|
import com.jasamedika.medifirst2000.base.BaseMaster;
|
||||||
import com.jasamedika.medifirst2000.helper.Caption;
|
import com.jasamedika.medifirst2000.helper.Caption;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
|
|
||||||
|
import static javax.persistence.FetchType.LAZY;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* class JenisPetugasPelaksana
|
* class JenisPetugasPelaksana
|
||||||
*
|
*
|
||||||
* @author Generator
|
* @author Generator
|
||||||
*/
|
*/
|
||||||
@Entity // @Audited
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Entity
|
||||||
@Table(name = "JenisPetugasPelaksana_M")
|
@Table(name = "JenisPetugasPelaksana_M")
|
||||||
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
|
|
||||||
public class JenisPetugasPelaksana extends BaseMaster {
|
public class JenisPetugasPelaksana extends BaseMaster {
|
||||||
@NotNull(message = "Jenis Petugas Pe tidak boleh kosong")
|
@NotNull(message = "Jenis Petugas Pe tidak boleh kosong")
|
||||||
@Column(name = "JenisPetugasPe", nullable = false, length = 50)
|
@Column(name = "JenisPetugasPe", nullable = false, length = 50)
|
||||||
@Caption(value = "Jenis Petugas Pe")
|
@Caption(value = "Jenis Petugas Pe")
|
||||||
private String jenisPetugasPe;
|
private String jenisPetugasPe;
|
||||||
|
|
||||||
public void setJenisPetugasPe(String jenisPetugasPe) {
|
|
||||||
this.jenisPetugasPe = jenisPetugasPe;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getJenisPetugasPe() {
|
|
||||||
return this.jenisPetugasPe;
|
|
||||||
}
|
|
||||||
|
|
||||||
@NotNull(message = "Kd Jenis Petugas Pe tidak boleh kosong")
|
@NotNull(message = "Kd Jenis Petugas Pe tidak boleh kosong")
|
||||||
@Column(name = "KdJenisPetugasPe", nullable = false)
|
@Column(name = "KdJenisPetugasPe", nullable = false)
|
||||||
@Caption(value = "Kode Jenis Petugas Pe")
|
@Caption(value = "Kode Jenis Petugas Pe")
|
||||||
private Byte kdJenisPetugasPe;
|
private Byte kdJenisPetugasPe;
|
||||||
|
|
||||||
public void setKdJenisPetugasPe(Byte kdJenisPetugasPe) {
|
@ManyToOne(fetch = LAZY)
|
||||||
this.kdJenisPetugasPe = kdJenisPetugasPe;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Byte getKdJenisPetugasPe() {
|
|
||||||
return this.kdJenisPetugasPe;
|
|
||||||
}
|
|
||||||
|
|
||||||
@ManyToOne
|
|
||||||
@JoinColumn(name = "ObjectKomponenHargaFk")
|
@JoinColumn(name = "ObjectKomponenHargaFk")
|
||||||
|
|
||||||
@Caption(value = "Object Komponen Harga")
|
@Caption(value = "Object Komponen Harga")
|
||||||
private KomponenHarga komponenHarga;
|
private KomponenHarga komponenHarga;
|
||||||
|
|
||||||
public void setKomponenHarga(KomponenHarga komponenHarga) {
|
|
||||||
this.komponenHarga = komponenHarga;
|
|
||||||
}
|
|
||||||
|
|
||||||
public KomponenHarga getKomponenHarga() {
|
|
||||||
return this.komponenHarga;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Column(name = "ObjectKomponenHargaFk", insertable = false, updatable = false)
|
@Column(name = "ObjectKomponenHargaFk", insertable = false, updatable = false)
|
||||||
private Integer komponenHargaId;
|
private Integer komponenHargaId;
|
||||||
|
|
||||||
@ -71,26 +43,9 @@ public class JenisPetugasPelaksana extends BaseMaster {
|
|||||||
@Caption(value = "QJenis Petugas Pe")
|
@Caption(value = "QJenis Petugas Pe")
|
||||||
private Byte qJenisPetugasPe;
|
private Byte qJenisPetugasPe;
|
||||||
|
|
||||||
public void setqJenisPetugasPe(Byte qJenisPetugasPe) {
|
|
||||||
this.qJenisPetugasPe = qJenisPetugasPe;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Byte getqJenisPetugasPe() {
|
|
||||||
return this.qJenisPetugasPe;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.jenispetugaspelaksana_m_id_seq")
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.jenispetugaspelaksana_m_id_seq")
|
||||||
@javax.persistence.SequenceGenerator(name = "public.jenispetugaspelaksana_m_id_seq", sequenceName = "public.jenispetugaspelaksana_m_id_seq", allocationSize = 1)
|
@SequenceGenerator(name = "public.jenispetugaspelaksana_m_id_seq", sequenceName = "public.jenispetugaspelaksana_m_id_seq", allocationSize = 1)
|
||||||
@Column(name = "id")
|
@Column(name = "id")
|
||||||
protected Integer id;
|
protected Integer id;
|
||||||
|
|
||||||
public Integer getId() {
|
|
||||||
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(Integer id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@ -1,170 +1,29 @@
|
|||||||
package com.jasamedika.medifirst2000.entities;
|
package com.jasamedika.medifirst2000.entities;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonBackReference;
|
||||||
|
import com.google.gson.annotations.Expose;
|
||||||
|
import com.jasamedika.medifirst2000.base.BaseMaster;
|
||||||
|
import com.jasamedika.medifirst2000.helper.Caption;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import javax.persistence.CascadeType;
|
import static javax.persistence.FetchType.LAZY;
|
||||||
import javax.persistence.Column;
|
|
||||||
import javax.persistence.Entity;
|
|
||||||
import javax.persistence.FetchType;
|
|
||||||
import javax.persistence.GeneratedValue;
|
|
||||||
import javax.persistence.GenerationType;
|
|
||||||
import javax.persistence.Id;
|
|
||||||
import javax.persistence.JoinColumn;
|
|
||||||
import javax.persistence.ManyToOne;
|
|
||||||
import javax.persistence.OneToMany;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
import javax.validation.constraints.NotNull;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonBackReference;
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
||||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
||||||
import com.google.gson.annotations.Expose;
|
|
||||||
import com.jasamedika.medifirst2000.base.BaseMaster;
|
|
||||||
import com.jasamedika.medifirst2000.helper.Caption;
|
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "Ruangan_M")
|
@Table(name = "Ruangan_M")
|
||||||
@JsonSerialize
|
|
||||||
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
|
|
||||||
public class Ruangan extends BaseMaster {
|
public class Ruangan extends BaseMaster {
|
||||||
|
|
||||||
@Id
|
|
||||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.ruangan_m_id_seq")
|
|
||||||
@javax.persistence.SequenceGenerator(name = "public.ruangan_m_id_seq", sequenceName = "public.ruangan_m_id_seq", allocationSize = 1)
|
|
||||||
@Column(name = "id")
|
|
||||||
protected Integer id;
|
|
||||||
|
|
||||||
@Column(name = "KdInternal", nullable = true, length = 5)
|
|
||||||
@Caption(value = "KodeInternal")
|
|
||||||
private String kdInternal;
|
|
||||||
|
|
||||||
@Column(name = "AlamatEmail", nullable = true, length = 50)
|
|
||||||
@Caption(value = "Alamat Email")
|
|
||||||
private String alamatEmail;
|
|
||||||
|
|
||||||
@Column(name = "Faksimile", nullable = true, length = 30)
|
|
||||||
@Caption(value = "Faksimile")
|
|
||||||
private String faksimile;
|
|
||||||
|
|
||||||
@Column(name = "FixedPhone", nullable = true, length = 30)
|
|
||||||
@Caption(value = "Fixed Phone")
|
|
||||||
private String fixedPhone;
|
|
||||||
|
|
||||||
@Column(name = "JamBuka", nullable = true, length = 5)
|
|
||||||
@Caption(value = "Jam Buka")
|
|
||||||
private String jamBuka;
|
|
||||||
|
|
||||||
@Column(name = "JamTutup", nullable = true, length = 5)
|
|
||||||
@Caption(value = "Jam Tutup")
|
|
||||||
private String jamTutup;
|
|
||||||
|
|
||||||
@ManyToOne
|
|
||||||
@JoinColumn(name = "ObjectUnitKerjaFk")
|
|
||||||
@Caption(value = "Object Unit Kerja")
|
|
||||||
private UnitKerjaPegawai unitKerja;
|
|
||||||
|
|
||||||
@Column(name = "ObjectUnitKerjaFk", insertable = false, updatable = false)
|
|
||||||
private Integer unitKerjaId;
|
|
||||||
|
|
||||||
@ManyToOne(fetch = FetchType.LAZY)
|
|
||||||
@JoinColumn(name = "ObjectDepartemenFk")
|
|
||||||
@Expose(serialize = false)
|
|
||||||
@Caption(value = "Object Departemen")
|
|
||||||
private Departemen departemen;
|
|
||||||
|
|
||||||
@Column(name = "ObjectDepartemenFk", insertable = false, updatable = false)
|
|
||||||
private Integer departemenId;
|
|
||||||
|
|
||||||
@ManyToOne(fetch = FetchType.LAZY)
|
|
||||||
@JoinColumn(name = "ObjectKelasHeadFk")
|
|
||||||
@Caption(value = "Object Kelas Head")
|
|
||||||
private Kelas kelasHead;
|
|
||||||
|
|
||||||
@Column(name = "ObjectKelasHeadFk", insertable = false, updatable = false, nullable = false)
|
|
||||||
private Integer kelasHeadId;
|
|
||||||
|
|
||||||
@ManyToOne(fetch = FetchType.LAZY)
|
|
||||||
@JoinColumn(name = "ObjectModulAplikasiFk")
|
|
||||||
@Caption(value = "Object Modul Aplikasi")
|
|
||||||
private ModulAplikasi modulAplikasi;
|
|
||||||
|
|
||||||
@Column(name = "ObjectModulAplikasiFk", insertable = false, updatable = false)
|
|
||||||
private Integer modulAplikasiId;
|
|
||||||
|
|
||||||
@ManyToOne(fetch = FetchType.LAZY)
|
|
||||||
@JoinColumn(name = "ObjectPegawaiKepalaFk")
|
|
||||||
@Caption(value = "Object Pegawai Kepala")
|
|
||||||
private Pegawai pegawaiKepala;
|
|
||||||
|
|
||||||
@Column(name = "ObjectPegawaiKepalaFk", insertable = false, updatable = false)
|
|
||||||
private Integer pegawaiKepalaId;
|
|
||||||
|
|
||||||
@NotNull(message = "Kd Ruangan tidak boleh kosong")
|
|
||||||
@Column(name = "KdRuangan", nullable = false, length = 3)
|
|
||||||
@Caption(value = "Kode Ruangan")
|
|
||||||
private String kdRuangan;
|
|
||||||
|
|
||||||
@Column(name = "LokasiRuangan", nullable = true, length = 50)
|
|
||||||
@Caption(value = "Lokasi Ruangan")
|
|
||||||
private String lokasiRuangan;
|
|
||||||
|
|
||||||
@Column(name = "MobilePhone", nullable = true, length = 30)
|
|
||||||
@Caption(value = "Mobile Phone")
|
|
||||||
private String mobilePhone;
|
|
||||||
|
|
||||||
@NotNull(message = "Nama Ruangan tidak boleh kosong")
|
|
||||||
@Column(name = "NamaRuangan", nullable = false, length = 50)
|
|
||||||
@Caption(value = "Nama Ruangan")
|
|
||||||
private String namaRuangan;
|
|
||||||
|
|
||||||
@Column(name = "NoCounter", nullable = true)
|
|
||||||
@Caption(value = "No Counter")
|
|
||||||
private Integer noCounter;
|
|
||||||
|
|
||||||
@Column(name = "NoRuangan", nullable = true, length = 4)
|
|
||||||
@Caption(value = "No Ruangan")
|
|
||||||
private String noRuangan;
|
|
||||||
|
|
||||||
@Column(name = "PrefixNoAntrian", nullable = true, length = 4)
|
|
||||||
@Caption(value = "Prefix No Antrian")
|
|
||||||
private String prefixNoAntrian;
|
|
||||||
|
|
||||||
@NotNull(message = "QRuangan tidak boleh kosong")
|
|
||||||
@Column(name = "QRuangan", nullable = false)
|
|
||||||
@Caption(value = "QRuangan")
|
|
||||||
private short qRuangan;
|
|
||||||
|
|
||||||
@Column(name = "StatusViewData", nullable = true)
|
|
||||||
@Caption(value = "Status View Data")
|
|
||||||
private Boolean statusViewData;
|
|
||||||
|
|
||||||
@Column(name = "Website", nullable = true, length = 80)
|
|
||||||
@Caption(value = "Website")
|
|
||||||
private String website;
|
|
||||||
|
|
||||||
@Column(name = "tanggal", nullable = true)
|
|
||||||
@Caption(value = "tanggal")
|
|
||||||
private Date tanggal;
|
|
||||||
|
|
||||||
@ManyToOne(fetch = FetchType.LAZY)
|
|
||||||
@JoinColumn(name = "ObjectRuanganFk")
|
|
||||||
@Caption(value = "Object Ruangan")
|
|
||||||
private Ruangan headRuangan;
|
|
||||||
|
|
||||||
@Column(name = "ObjectRuanganFk", insertable = false, updatable = false)
|
|
||||||
private Integer headRuanganId;
|
|
||||||
|
|
||||||
@JsonBackReference
|
|
||||||
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "ruangan")
|
|
||||||
Set<Kamar> kamarSet = new HashSet<>();
|
|
||||||
|
|
||||||
public Ruangan(String jamBuka, String jamTutup, String kdRuangan, String namaRuangan, String noRuangan,
|
public Ruangan(String jamBuka, String jamTutup, String kdRuangan, String namaRuangan, String noRuangan,
|
||||||
Boolean statusViewData, Integer id, Integer departemenId, Ruangan head) {
|
Boolean statusViewData, Integer id, Integer departemenId, Ruangan head) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
this.departemenId = departemenId;
|
|
||||||
this.jamBuka = jamBuka;
|
this.jamBuka = jamBuka;
|
||||||
this.jamTutup = jamTutup;
|
this.jamTutup = jamTutup;
|
||||||
this.departemenId = departemenId;
|
this.departemenId = departemenId;
|
||||||
@ -180,7 +39,6 @@ public class Ruangan extends BaseMaster {
|
|||||||
Boolean statusViewData, Integer id, Integer departemenId) {
|
Boolean statusViewData, Integer id, Integer departemenId) {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
this.departemenId = departemenId;
|
|
||||||
this.jamBuka = jamBuka;
|
this.jamBuka = jamBuka;
|
||||||
this.jamTutup = jamTutup;
|
this.jamTutup = jamTutup;
|
||||||
this.departemenId = departemenId;
|
this.departemenId = departemenId;
|
||||||
@ -209,257 +67,138 @@ public class Ruangan extends BaseMaster {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getId() {
|
@Id
|
||||||
return id;
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "public.ruangan_m_id_seq")
|
||||||
}
|
@SequenceGenerator(name = "public.ruangan_m_id_seq", sequenceName = "public.ruangan_m_id_seq", allocationSize = 1)
|
||||||
|
@Column(name = "id")
|
||||||
|
protected Integer id;
|
||||||
|
|
||||||
public void setId(Integer id) {
|
@Column(name = "KdInternal", length = 5)
|
||||||
this.id = id;
|
@Caption(value = "KodeInternal")
|
||||||
}
|
private String kdInternal;
|
||||||
|
|
||||||
public String getKdInternal() {
|
@Column(name = "AlamatEmail", length = 50)
|
||||||
return kdInternal;
|
@Caption(value = "Alamat Email")
|
||||||
}
|
private String alamatEmail;
|
||||||
|
|
||||||
public void setKdInternal(String kdInternal) {
|
@Column(name = "Faksimile", length = 30)
|
||||||
this.kdInternal = kdInternal;
|
@Caption(value = "Faksimile")
|
||||||
}
|
private String faksimile;
|
||||||
|
|
||||||
public String getAlamatEmail() {
|
@Column(name = "FixedPhone", length = 30)
|
||||||
return alamatEmail;
|
@Caption(value = "Fixed Phone")
|
||||||
}
|
private String fixedPhone;
|
||||||
|
|
||||||
public void setAlamatEmail(String alamatEmail) {
|
@Column(name = "JamBuka", length = 5)
|
||||||
this.alamatEmail = alamatEmail;
|
@Caption(value = "Jam Buka")
|
||||||
}
|
private String jamBuka;
|
||||||
|
|
||||||
public String getFaksimile() {
|
@Column(name = "JamTutup", length = 5)
|
||||||
return faksimile;
|
@Caption(value = "Jam Tutup")
|
||||||
}
|
private String jamTutup;
|
||||||
|
|
||||||
public void setFaksimile(String faksimile) {
|
@ManyToOne(fetch = LAZY)
|
||||||
this.faksimile = faksimile;
|
@JoinColumn(name = "ObjectUnitKerjaFk")
|
||||||
}
|
@Caption(value = "Object Unit Kerja")
|
||||||
|
private UnitKerjaPegawai unitKerja;
|
||||||
|
|
||||||
public String getFixedPhone() {
|
@Column(name = "ObjectUnitKerjaFk", insertable = false, updatable = false)
|
||||||
return fixedPhone;
|
private Integer unitKerjaId;
|
||||||
}
|
|
||||||
|
|
||||||
public void setFixedPhone(String fixedPhone) {
|
@ManyToOne(fetch = LAZY)
|
||||||
this.fixedPhone = fixedPhone;
|
@JoinColumn(name = "ObjectDepartemenFk")
|
||||||
}
|
@Expose(serialize = false)
|
||||||
|
@Caption(value = "Object Departemen")
|
||||||
|
private Departemen departemen;
|
||||||
|
|
||||||
public String getJamBuka() {
|
@Column(name = "ObjectDepartemenFk", insertable = false, updatable = false)
|
||||||
return jamBuka;
|
private Integer departemenId;
|
||||||
}
|
|
||||||
|
|
||||||
public void setJamBuka(String jamBuka) {
|
@ManyToOne(fetch = LAZY)
|
||||||
this.jamBuka = jamBuka;
|
@JoinColumn(name = "ObjectKelasHeadFk")
|
||||||
}
|
@Caption(value = "Object Kelas Head")
|
||||||
|
private Kelas kelasHead;
|
||||||
|
|
||||||
public String getJamTutup() {
|
@Column(name = "ObjectKelasHeadFk", insertable = false, updatable = false, nullable = false)
|
||||||
return jamTutup;
|
private Integer kelasHeadId;
|
||||||
}
|
|
||||||
|
|
||||||
public void setJamTutup(String jamTutup) {
|
@ManyToOne(fetch = LAZY)
|
||||||
this.jamTutup = jamTutup;
|
@JoinColumn(name = "ObjectModulAplikasiFk")
|
||||||
}
|
@Caption(value = "Object Modul Aplikasi")
|
||||||
|
private ModulAplikasi modulAplikasi;
|
||||||
|
|
||||||
public Departemen getDepartemen() {
|
@Column(name = "ObjectModulAplikasiFk", insertable = false, updatable = false)
|
||||||
return departemen;
|
private Integer modulAplikasiId;
|
||||||
}
|
|
||||||
|
|
||||||
public void setDepartemen(Departemen departemen) {
|
@ManyToOne(fetch = LAZY)
|
||||||
this.departemen = departemen;
|
@JoinColumn(name = "ObjectPegawaiKepalaFk")
|
||||||
}
|
@Caption(value = "Object Pegawai Kepala")
|
||||||
|
private Pegawai pegawaiKepala;
|
||||||
|
|
||||||
public Integer getDepartemenId() {
|
@Column(name = "ObjectPegawaiKepalaFk", insertable = false, updatable = false)
|
||||||
return departemenId;
|
private Integer pegawaiKepalaId;
|
||||||
}
|
|
||||||
|
|
||||||
public void setDepartemenId(Integer departemenId) {
|
@NotNull(message = "Kd Ruangan tidak boleh kosong")
|
||||||
this.departemenId = departemenId;
|
@Column(name = "KdRuangan", nullable = false, length = 3)
|
||||||
}
|
@Caption(value = "Kode Ruangan")
|
||||||
|
private String kdRuangan;
|
||||||
|
|
||||||
public Kelas getKelasHead() {
|
@Column(name = "LokasiRuangan", length = 50)
|
||||||
return kelasHead;
|
@Caption(value = "Lokasi Ruangan")
|
||||||
}
|
private String lokasiRuangan;
|
||||||
|
|
||||||
public void setKelasHead(Kelas kelasHead) {
|
@Column(name = "MobilePhone", length = 30)
|
||||||
this.kelasHead = kelasHead;
|
@Caption(value = "Mobile Phone")
|
||||||
}
|
private String mobilePhone;
|
||||||
|
|
||||||
public Integer getKelasHeadId() {
|
@NotNull(message = "Nama Ruangan tidak boleh kosong")
|
||||||
return kelasHeadId;
|
@Column(name = "NamaRuangan", nullable = false, length = 50)
|
||||||
}
|
@Caption(value = "Nama Ruangan")
|
||||||
|
private String namaRuangan;
|
||||||
|
|
||||||
public void setKelasHeadId(Integer kelasHeadId) {
|
@Column(name = "NoCounter")
|
||||||
this.kelasHeadId = kelasHeadId;
|
@Caption(value = "No Counter")
|
||||||
}
|
private Integer noCounter;
|
||||||
|
|
||||||
public ModulAplikasi getModulAplikasi() {
|
@Column(name = "NoRuangan", length = 4)
|
||||||
return modulAplikasi;
|
@Caption(value = "No Ruangan")
|
||||||
}
|
private String noRuangan;
|
||||||
|
|
||||||
public void setModulAplikasi(ModulAplikasi modulAplikasi) {
|
@Column(name = "PrefixNoAntrian", length = 4)
|
||||||
this.modulAplikasi = modulAplikasi;
|
@Caption(value = "Prefix No Antrian")
|
||||||
}
|
private String prefixNoAntrian;
|
||||||
|
|
||||||
public Integer getModulAplikasiId() {
|
@NotNull(message = "QRuangan tidak boleh kosong")
|
||||||
return modulAplikasiId;
|
@Column(name = "QRuangan", nullable = false)
|
||||||
}
|
@Caption(value = "QRuangan")
|
||||||
|
private short qRuangan;
|
||||||
|
|
||||||
public void setModulAplikasiId(Integer modulAplikasiId) {
|
@Column(name = "StatusViewData")
|
||||||
this.modulAplikasiId = modulAplikasiId;
|
@Caption(value = "Status View Data")
|
||||||
}
|
private Boolean statusViewData;
|
||||||
|
|
||||||
public Pegawai getPegawaiKepala() {
|
@Column(name = "Website", length = 80)
|
||||||
return pegawaiKepala;
|
@Caption(value = "Website")
|
||||||
}
|
private String website;
|
||||||
|
|
||||||
public void setPegawaiKepala(Pegawai pegawaiKepala) {
|
@Column(name = "tanggal")
|
||||||
this.pegawaiKepala = pegawaiKepala;
|
@Caption(value = "tanggal")
|
||||||
}
|
private Date tanggal;
|
||||||
|
|
||||||
public Integer getPegawaiKepalaId() {
|
@ManyToOne(fetch = LAZY)
|
||||||
return pegawaiKepalaId;
|
@JoinColumn(name = "ObjectRuanganFk")
|
||||||
}
|
@Caption(value = "Object Ruangan")
|
||||||
|
private Ruangan headRuangan;
|
||||||
|
|
||||||
public void setPegawaiKepalaId(Integer pegawaiKepalaId) {
|
@Column(name = "ObjectRuanganFk", insertable = false, updatable = false)
|
||||||
this.pegawaiKepalaId = pegawaiKepalaId;
|
private Integer headRuanganId;
|
||||||
}
|
|
||||||
|
|
||||||
public String getKdRuangan() {
|
@JsonBackReference
|
||||||
return kdRuangan;
|
@OneToMany(cascade = CascadeType.ALL, fetch = LAZY, mappedBy = "ruangan")
|
||||||
}
|
Set<Kamar> kamarSet = new HashSet<>();
|
||||||
|
|
||||||
public void setKdRuangan(String kdRuangan) {
|
|
||||||
this.kdRuangan = kdRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLokasiRuangan() {
|
|
||||||
return lokasiRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLokasiRuangan(String lokasiRuangan) {
|
|
||||||
this.lokasiRuangan = lokasiRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMobilePhone() {
|
|
||||||
return mobilePhone;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMobilePhone(String mobilePhone) {
|
|
||||||
this.mobilePhone = mobilePhone;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getNamaRuangan() {
|
|
||||||
return namaRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNamaRuangan(String namaRuangan) {
|
|
||||||
this.namaRuangan = namaRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getNoCounter() {
|
|
||||||
return noCounter;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNoCounter(Integer noCounter) {
|
|
||||||
this.noCounter = noCounter;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getNoRuangan() {
|
|
||||||
return noRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNoRuangan(String noRuangan) {
|
|
||||||
this.noRuangan = noRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPrefixNoAntrian() {
|
|
||||||
return prefixNoAntrian;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPrefixNoAntrian(String prefixNoAntrian) {
|
|
||||||
this.prefixNoAntrian = prefixNoAntrian;
|
|
||||||
}
|
|
||||||
|
|
||||||
public short getqRuangan() {
|
|
||||||
return qRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setqRuangan(short qRuangan) {
|
|
||||||
this.qRuangan = qRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Boolean getStatusViewData() {
|
|
||||||
return statusViewData;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setStatusViewData(Boolean statusViewData) {
|
|
||||||
this.statusViewData = statusViewData;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getWebsite() {
|
|
||||||
return website;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setWebsite(String website) {
|
|
||||||
this.website = website;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Date getTanggal() {
|
|
||||||
return tanggal;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTanggal(Date tanggal) {
|
|
||||||
this.tanggal = tanggal;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Ruangan getHeadRuangan() {
|
|
||||||
return headRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setHeadRuangan(Ruangan headRuangan) {
|
|
||||||
this.headRuangan = headRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getHeadRuanganId() {
|
|
||||||
return headRuanganId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setHeadRuanganId(Integer headRuanganId) {
|
|
||||||
this.headRuanganId = headRuanganId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Set<Kamar> getKamarSet() {
|
|
||||||
return kamarSet;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setKamarSet(Set<Kamar> kamarSet) {
|
|
||||||
this.kamarSet = kamarSet;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UnitKerjaPegawai getUnitKerja() {
|
|
||||||
return unitKerja;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUnitKerja(UnitKerjaPegawai unitKerja) {
|
|
||||||
this.unitKerja = unitKerja;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getUnitKerjaId() {
|
|
||||||
return unitKerjaId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUnitKerjaId(Integer unitKerjaId) {
|
|
||||||
this.unitKerjaId = unitKerjaId;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "Ruangan [id=" + id + ", namaRuangan=" + namaRuangan + ", statusEnabled=" + statusEnabled + "]";
|
return "Ruangan [id=" + id + ", namaRuangan=" + namaRuangan + ", statusEnabled=" + statusEnabled + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,170 +1,37 @@
|
|||||||
package com.jasamedika.medifirst2000.vo;
|
package com.jasamedika.medifirst2000.vo;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import javax.persistence.*;
|
|
||||||
import java.util.Date;
|
|
||||||
import org.hibernate.validator.constraints.NotEmpty;
|
|
||||||
|
|
||||||
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
|
|
||||||
import javax.validation.constraints.NotNull;
|
|
||||||
import org.hibernate.validator.constraints.Length;
|
|
||||||
import org.hibernate.validator.internal.util.logging.Messages;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonManagedReference;
|
|
||||||
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
|
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
|
||||||
import com.jasamedika.medifirst2000.helper.Caption;
|
import com.jasamedika.medifirst2000.helper.Caption;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import javax.persistence.Column;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* class AsalProduk
|
* class AsalProduk
|
||||||
*
|
*
|
||||||
* @author Generator
|
* @author Generator
|
||||||
*/
|
*/
|
||||||
//@Entity
|
@Getter
|
||||||
//@Table(name = "AsalProduk_M")
|
@Setter
|
||||||
public class AsalProdukVO extends BaseMasterVO {
|
public class AsalProdukVO extends BaseMasterVO {
|
||||||
@Caption(value="Asal Produk")
|
@Caption(value = "Asal Produk")
|
||||||
private String asalProduk;
|
private String asalProduk;
|
||||||
|
|
||||||
public void setAsalProduk(String asalProduk) {
|
@Caption(value = "Kode Asal Produk")
|
||||||
this.asalProduk = asalProduk;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Column(name = "AsalProduk", nullable = false , length = 30)
|
|
||||||
public String getAsalProduk(){
|
|
||||||
return this.asalProduk;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Caption(value="Kode Asal Produk")
|
|
||||||
private Byte kdAsalProduk;
|
private Byte kdAsalProduk;
|
||||||
|
|
||||||
@Column(name = "QAsalProduk", nullable = false )
|
@Caption(value = "Object Departemen")
|
||||||
public Byte getKdAsalProduk() {
|
|
||||||
return kdAsalProduk;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setKdAsalProduk(Byte kdAsalProduk) {
|
|
||||||
this.kdAsalProduk = kdAsalProduk;
|
|
||||||
}
|
|
||||||
|
|
||||||
@ManyToOne
|
|
||||||
@JoinColumn(name = "ObjectDepartemenFk")
|
|
||||||
@NotNull(message="Object DepartemenVO Harus Diisi")
|
|
||||||
@Caption(value="Object Departemen")
|
|
||||||
private DepartemenVO departemen;
|
private DepartemenVO departemen;
|
||||||
|
|
||||||
public void setDepartemen(DepartemenVO departemen) {
|
@Column(name = "ObjectDepartemenFk", insertable = false, updatable = false)
|
||||||
this.departemen = departemen;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Column(name = "KdDepartemen", nullable = false , length = 1)
|
|
||||||
public DepartemenVO getDepartemen(){
|
|
||||||
return this.departemen;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Column(name = "ObjectDepartemenFk", insertable=false,updatable=false)
|
|
||||||
private Integer departemenId;
|
private Integer departemenId;
|
||||||
|
|
||||||
|
|
||||||
public Integer getDepartemenId() {
|
@Caption(value = "Object Kelompok Produk")
|
||||||
return departemenId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDepartemenId(Integer departemenId) {
|
|
||||||
this.departemenId = departemenId;
|
|
||||||
}
|
|
||||||
|
|
||||||
@ManyToOne
|
|
||||||
@JoinColumn(name = "ObjectKelompokProdukFk")
|
|
||||||
@Caption(value="Object Kelompok Produk")
|
|
||||||
private KelompokProdukVO kelompokProduk;
|
private KelompokProdukVO kelompokProduk;
|
||||||
|
|
||||||
public void setKelompokProduk(KelompokProdukVO kelompokProduk) {
|
|
||||||
this.kelompokProduk = kelompokProduk;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Column(name = "KdKelompokProduk", nullable = true )
|
|
||||||
public KelompokProdukVO getKelompokProduk(){
|
|
||||||
return this.kelompokProduk;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Column(name = "ObjectKelompokProdukFk", insertable=false,updatable=false)
|
|
||||||
private Integer kelompokProdukId;
|
private Integer kelompokProdukId;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Integer getKelompokProdukId() {
|
@Caption(value = "QAsal Produk")
|
||||||
return kelompokProdukId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setKelompokProdukId(Integer kelompokProdukId) {
|
|
||||||
this.kelompokProdukId = kelompokProdukId;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Caption(value="QAsal Produk")
|
|
||||||
private Byte qAsalProduk;
|
private Byte qAsalProduk;
|
||||||
|
|
||||||
public Byte getqAsalProduk() {
|
|
||||||
return qAsalProduk;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setqAsalProduk(Byte qAsalProduk) {
|
|
||||||
this.qAsalProduk = qAsalProduk;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*//
|
|
||||||
@OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL, mappedBy="kdasalproduk")
|
|
||||||
private Set<HargaNettoProdukByKelas> HargaNettoDiscPasienPulangSet = new HashSet<HargaNettoProdukByKelas>();
|
|
||||||
|
|
||||||
public Set<HargaNettoProdukByKelas> getHargaNettoDiscPasienPulangSet() {
|
|
||||||
return HargaNettoDiscPasienPulangSet;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setHargaNettoDiscPasienPulangSet(Set<HargaNettoProdukByKelas> hargaNettoDiscPasienPulangSet) {
|
|
||||||
HargaNettoDiscPasienPulangSet = hargaNettoDiscPasienPulangSet;
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
@OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL, mappedBy="kdasalproduk")
|
|
||||||
private Set<HargaNettoProdukByKelas> HargaNettoProdukByKelasSet = new HashSet<HargaNettoProdukByKelas>();
|
|
||||||
|
|
||||||
public Set<HargaNettoProdukByKelas> getHargaNettoProdukByKelasSet() {
|
|
||||||
return HargaNettoProdukByKelasSet;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setHargaNettoProdukByKelasSet(Set<HargaNettoProdukByKelas> hargaNettoProdukByKelasSet) {
|
|
||||||
HargaNettoProdukByKelasSet = hargaNettoProdukByKelasSet;
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
@OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL, mappedBy="kdasalproduk")
|
|
||||||
private Set<HargaNettoProdukByKelasD> HargaNettoProdukByKelasDSet = new HashSet<HargaNettoProdukByKelasD>();
|
|
||||||
|
|
||||||
public Set<HargaNettoProdukByKelasD> getHargaNettoProdukByKelasDSet() {
|
|
||||||
return HargaNettoProdukByKelasDSet;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setHargaNettoProdukByKelasDSet(Set<HargaNettoProdukByKelasD> hargaNettoProdukByKelasDSet) {
|
|
||||||
HargaNettoProdukByKelasDSet = hargaNettoProdukByKelasDSet;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
/*//
|
|
||||||
@OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL, mappedBy="kdasalproduk")
|
|
||||||
private Set<HargaNettoProdukByTerima> HargaNettoProdukByTerimaSet = new HashSet<HargaNettoProdukByTerima>();
|
|
||||||
|
|
||||||
public Set<HargaNettoProdukByTerima> getHargaNettoProdukByTerimaSet() {
|
|
||||||
return HargaNettoProdukByTerimaSet;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setHargaNettoProdukByTerimaSet(Set<HargaNettoProdukByTerima> hargaNettoProdukByTerimaSet) {
|
|
||||||
HargaNettoProdukByTerimaSet = hargaNettoProdukByTerimaSet;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,80 +1,29 @@
|
|||||||
package com.jasamedika.medifirst2000.vo;
|
package com.jasamedika.medifirst2000.vo;
|
||||||
|
|
||||||
import java.io.Serializable;
|
|
||||||
import javax.persistence.*;
|
|
||||||
import java.util.Date;
|
|
||||||
import org.hibernate.validator.constraints.NotEmpty;
|
|
||||||
|
|
||||||
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
|
|
||||||
import javax.validation.constraints.NotNull;
|
|
||||||
import org.hibernate.validator.constraints.Length;
|
|
||||||
import org.hibernate.validator.internal.util.logging.Messages;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonManagedReference;
|
|
||||||
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
|
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
|
||||||
import com.jasamedika.medifirst2000.helper.Caption;
|
import com.jasamedika.medifirst2000.helper.Caption;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* class JenisPetugasPelaksana
|
* class JenisPetugasPelaksana
|
||||||
*
|
*
|
||||||
* @author Generator
|
* @author Generator
|
||||||
*/
|
*/
|
||||||
//@Entity
|
@Getter
|
||||||
//@Table(name = "JenisPetugasPelaksana_M")
|
@Setter
|
||||||
public class JenisPetugasPelaksanaVO extends BaseMasterVO {
|
public class JenisPetugasPelaksanaVO extends BaseMasterVO {
|
||||||
@Caption(value="Jenis Petugas Pe")
|
@Caption(value = "Jenis Petugas Pe")
|
||||||
private String jenisPetugasPe;
|
private String jenisPetugasPe;
|
||||||
|
|
||||||
public void setJenisPetugasPe(String jenisPetugasPe) {
|
@Caption(value = "Kode Jenis Petugas Pe")
|
||||||
this.jenisPetugasPe = jenisPetugasPe;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Column(name = "JenisPetugasPe", nullable = false , length = 50)
|
|
||||||
public String getJenisPetugasPe(){
|
|
||||||
return this.jenisPetugasPe;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Caption(value="Kode Jenis Petugas Pe")
|
|
||||||
private Byte kdJenisPetugasPe;
|
private Byte kdJenisPetugasPe;
|
||||||
|
|
||||||
public void setKdJenisPetugasPe(Byte kdJenisPetugasPe) {
|
@Caption(value = "Object Komponen Harga")
|
||||||
this.kdJenisPetugasPe = kdJenisPetugasPe;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Column(name = "KdJenisPetugasPe", nullable = false )
|
|
||||||
public Byte getKdJenisPetugasPe(){
|
|
||||||
return this.kdJenisPetugasPe;
|
|
||||||
}
|
|
||||||
|
|
||||||
@ManyToOne
|
|
||||||
@JoinColumn(name = "ObjectKomponenHargaFk")
|
|
||||||
@Caption(value="Object Komponen Harga")
|
|
||||||
private KomponenHargaVO komponenHarga;
|
private KomponenHargaVO komponenHarga;
|
||||||
|
|
||||||
public void setKomponenHarga(KomponenHargaVO komponenHarga) {
|
|
||||||
this.komponenHarga = komponenHarga;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Column(name = "KdKomponenHarga", nullable = true )
|
|
||||||
public KomponenHargaVO getKomponenHarga(){
|
|
||||||
return this.komponenHarga;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Column(name = "ObjectKomponenHargaFk", insertable=false,updatable=false)
|
|
||||||
private Integer komponenHargaId;
|
private Integer komponenHargaId;
|
||||||
|
|
||||||
@Caption(value="QJenis Petugas Pe")
|
@Caption(value = "QJenis Petugas Pe")
|
||||||
private Byte qJenisPetugasPe;
|
private Byte qJenisPetugasPe;
|
||||||
|
|
||||||
public void setqJenisPetugasPe(Byte qJenisPetugasPe) {
|
|
||||||
this.qJenisPetugasPe = qJenisPetugasPe;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Column(name = "QJenisPetugasPe", nullable = false )
|
|
||||||
public Byte getqJenisPetugasPe(){
|
|
||||||
return this.qJenisPetugasPe;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,27 @@
|
|||||||
|
package com.jasamedika.medifirst2000.vo;
|
||||||
|
|
||||||
|
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
|
||||||
|
import com.jasamedika.medifirst2000.entities.Jabatan;
|
||||||
|
import com.jasamedika.medifirst2000.entities.SubUnitKerjaPegawai;
|
||||||
|
import com.jasamedika.medifirst2000.entities.UnitKerjaPegawai;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* class Pegawai
|
||||||
|
*
|
||||||
|
* @author salmanoe
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class PegawaiJabatanVO extends BaseMasterVO {
|
||||||
|
private Jabatan jabatanInternal;
|
||||||
|
private SubUnitKerjaPegawai unitKerja;
|
||||||
|
private UnitKerjaPegawai unitKerjaPegawai;
|
||||||
|
private Boolean isCanCreateJadwal;
|
||||||
|
private Boolean isPrimary;
|
||||||
|
private Boolean statusEnabled;
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@ -1,70 +0,0 @@
|
|||||||
package com.jasamedika.medifirst2000.vo;
|
|
||||||
|
|
||||||
import javax.persistence.FetchType;
|
|
||||||
import javax.persistence.JoinColumn;
|
|
||||||
import javax.persistence.ManyToOne;
|
|
||||||
|
|
||||||
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
|
|
||||||
import com.jasamedika.medifirst2000.entities.Jabatan;
|
|
||||||
import com.jasamedika.medifirst2000.entities.Pegawai;
|
|
||||||
import com.jasamedika.medifirst2000.entities.SubUnitKerjaPegawai;
|
|
||||||
import com.jasamedika.medifirst2000.entities.UnitKerjaPegawai;
|
|
||||||
import com.jasamedika.medifirst2000.helper.Caption;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* class Pegawai
|
|
||||||
*
|
|
||||||
* @author salmanoe
|
|
||||||
*/
|
|
||||||
public class PegawaiVO_ extends BaseMasterVO {
|
|
||||||
// private Pegawai pegawai;
|
|
||||||
private Jabatan jabatanInternal;
|
|
||||||
private SubUnitKerjaPegawai unitKerja;
|
|
||||||
private UnitKerjaPegawai unitKerjaPegawai;
|
|
||||||
private Boolean isCanCreateJadwal;
|
|
||||||
private Boolean isPrimary;
|
|
||||||
private Boolean statusEnabled1;
|
|
||||||
// public Pegawai getPegawai() {
|
|
||||||
// return pegawai;
|
|
||||||
// }
|
|
||||||
// public void setPegawai(Pegawai pegawai) {
|
|
||||||
// this.pegawai = pegawai;
|
|
||||||
// }
|
|
||||||
public Jabatan getJabatanInternal() {
|
|
||||||
return jabatanInternal;
|
|
||||||
}
|
|
||||||
public void setJabatanInternal(Jabatan jabatanInternal) {
|
|
||||||
this.jabatanInternal = jabatanInternal;
|
|
||||||
}
|
|
||||||
public SubUnitKerjaPegawai getUnitKerja() {
|
|
||||||
return unitKerja;
|
|
||||||
}
|
|
||||||
public void setUnitKerja(SubUnitKerjaPegawai unitKerja) {
|
|
||||||
this.unitKerja = unitKerja;
|
|
||||||
}
|
|
||||||
public UnitKerjaPegawai getUnitKerjaPegawai() {
|
|
||||||
return unitKerjaPegawai;
|
|
||||||
}
|
|
||||||
public void setUnitKerjaPegawai(UnitKerjaPegawai unitKerjaPegawai) {
|
|
||||||
this.unitKerjaPegawai = unitKerjaPegawai;
|
|
||||||
}
|
|
||||||
public Boolean getIsCanCreateJadwal() {
|
|
||||||
return isCanCreateJadwal;
|
|
||||||
}
|
|
||||||
public void setIsCanCreateJadwal(Boolean isCanCreateJadwal) {
|
|
||||||
this.isCanCreateJadwal = isCanCreateJadwal;
|
|
||||||
}
|
|
||||||
public Boolean getIsPrimary() {
|
|
||||||
return isPrimary;
|
|
||||||
}
|
|
||||||
public void setIsPrimary(Boolean isPrimary) {
|
|
||||||
this.isPrimary = isPrimary;
|
|
||||||
}
|
|
||||||
public Boolean getStatusEnabled1() {
|
|
||||||
return statusEnabled1;
|
|
||||||
}
|
|
||||||
public void setStatusEnabled1(Boolean statusEnabled1) {
|
|
||||||
this.statusEnabled1 = statusEnabled1;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -6,9 +6,12 @@ import java.util.Set;
|
|||||||
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
|
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
|
||||||
import com.jasamedika.medifirst2000.helper.Caption;
|
import com.jasamedika.medifirst2000.helper.Caption;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
public class RuanganVO extends BaseMasterVO {
|
public class RuanganVO extends BaseMasterVO {
|
||||||
|
|
||||||
@Caption(value = "AlamatVO Email")
|
@Caption(value = "AlamatVO Email")
|
||||||
private String alamatEmail;
|
private String alamatEmail;
|
||||||
|
|
||||||
@ -78,236 +81,11 @@ public class RuanganVO extends BaseMasterVO {
|
|||||||
private RuanganVO headRuangan;
|
private RuanganVO headRuangan;
|
||||||
|
|
||||||
private Integer headRuanganId;
|
private Integer headRuanganId;
|
||||||
|
|
||||||
Set<KamarVO> kamarSet = new HashSet<>();
|
Set<KamarVO> kamarSet = new HashSet<>();
|
||||||
|
|
||||||
@Caption(value = "Object Unit Kerja")
|
@Caption(value = "Object Unit Kerja")
|
||||||
private UnitKerjaPegawaiVO unitKerja;
|
private UnitKerjaPegawaiVO unitKerja;
|
||||||
|
|
||||||
private Integer unitKerjaId;
|
private Integer unitKerjaId;
|
||||||
|
|
||||||
public String getAlamatEmail() {
|
|
||||||
return alamatEmail;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAlamatEmail(String alamatEmail) {
|
|
||||||
this.alamatEmail = alamatEmail;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getFaksimile() {
|
|
||||||
return faksimile;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFaksimile(String faksimile) {
|
|
||||||
this.faksimile = faksimile;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getFixedPhone() {
|
|
||||||
return fixedPhone;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFixedPhone(String fixedPhone) {
|
|
||||||
this.fixedPhone = fixedPhone;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getJamBuka() {
|
|
||||||
return jamBuka;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setJamBuka(String jamBuka) {
|
|
||||||
this.jamBuka = jamBuka;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getJamTutup() {
|
|
||||||
return jamTutup;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setJamTutup(String jamTutup) {
|
|
||||||
this.jamTutup = jamTutup;
|
|
||||||
}
|
|
||||||
|
|
||||||
public DepartemenVO getDepartemen() {
|
|
||||||
return departemen;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDepartemen(DepartemenVO departemen) {
|
|
||||||
this.departemen = departemen;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getDepartemenId() {
|
|
||||||
return departemenId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDepartemenId(Integer departemenId) {
|
|
||||||
this.departemenId = departemenId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public KelasVO getKelasHead() {
|
|
||||||
return kelasHead;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setKelasHead(KelasVO kelasHead) {
|
|
||||||
this.kelasHead = kelasHead;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getKelasHeadId() {
|
|
||||||
return kelasHeadId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setKelasHeadId(Integer kelasHeadId) {
|
|
||||||
this.kelasHeadId = kelasHeadId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ModulAplikasiVO getModulAplikasi() {
|
|
||||||
return modulAplikasi;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setModulAplikasi(ModulAplikasiVO modulAplikasi) {
|
|
||||||
this.modulAplikasi = modulAplikasi;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getModulAplikasiId() {
|
|
||||||
return modulAplikasiId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setModulAplikasiId(Integer modulAplikasiId) {
|
|
||||||
this.modulAplikasiId = modulAplikasiId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public LoginUserVO getPegawaiKepala() {
|
|
||||||
return pegawaiKepala;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPegawaiKepala(LoginUserVO pegawaiKepala) {
|
|
||||||
this.pegawaiKepala = pegawaiKepala;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getPegawaiKepalaId() {
|
|
||||||
return pegawaiKepalaId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPegawaiKepalaId(Integer pegawaiKepalaId) {
|
|
||||||
this.pegawaiKepalaId = pegawaiKepalaId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getKdRuangan() {
|
|
||||||
return kdRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setKdRuangan(String kdRuangan) {
|
|
||||||
this.kdRuangan = kdRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLokasiRuangan() {
|
|
||||||
return lokasiRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLokasiRuangan(String lokasiRuangan) {
|
|
||||||
this.lokasiRuangan = lokasiRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getMobilePhone() {
|
|
||||||
return mobilePhone;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMobilePhone(String mobilePhone) {
|
|
||||||
this.mobilePhone = mobilePhone;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getNamaRuangan() {
|
|
||||||
return namaRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNamaRuangan(String namaRuangan) {
|
|
||||||
this.namaRuangan = namaRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getNoCounter() {
|
|
||||||
return noCounter;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNoCounter(Integer noCounter) {
|
|
||||||
this.noCounter = noCounter;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getNoRuangan() {
|
|
||||||
return noRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNoRuangan(String noRuangan) {
|
|
||||||
this.noRuangan = noRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getPrefixNoAntrian() {
|
|
||||||
return prefixNoAntrian;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPrefixNoAntrian(String prefixNoAntrian) {
|
|
||||||
this.prefixNoAntrian = prefixNoAntrian;
|
|
||||||
}
|
|
||||||
|
|
||||||
public short getqRuangan() {
|
|
||||||
return qRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setqRuangan(short qRuangan) {
|
|
||||||
this.qRuangan = qRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Boolean getStatusViewData() {
|
|
||||||
return statusViewData;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setStatusViewData(Boolean statusViewData) {
|
|
||||||
this.statusViewData = statusViewData;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getWebsite() {
|
|
||||||
return website;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setWebsite(String website) {
|
|
||||||
this.website = website;
|
|
||||||
}
|
|
||||||
|
|
||||||
public RuanganVO getHeadRuangan() {
|
|
||||||
return headRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setHeadRuangan(RuanganVO headRuangan) {
|
|
||||||
this.headRuangan = headRuangan;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getHeadRuanganId() {
|
|
||||||
return headRuanganId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setHeadRuanganId(Integer headRuanganId) {
|
|
||||||
this.headRuanganId = headRuanganId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Set<KamarVO> getKamarSet() {
|
|
||||||
return kamarSet;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setKamarSet(Set<KamarVO> kamarSet) {
|
|
||||||
this.kamarSet = kamarSet;
|
|
||||||
}
|
|
||||||
|
|
||||||
public UnitKerjaPegawaiVO getUnitKerja() {
|
|
||||||
return unitKerja;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUnitKerja(UnitKerjaPegawaiVO unitKerja) {
|
|
||||||
this.unitKerja = unitKerja;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getUnitKerjaId() {
|
|
||||||
return unitKerjaId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUnitKerjaId(Integer unitKerjaId) {
|
|
||||||
this.unitKerjaId = unitKerjaId;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user