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.jasamedika.medifirst2000.converter.base.BaseVoConverter;
|
||||
import com.jasamedika.medifirst2000.entities.Pegawai;
|
||||
import com.jasamedika.medifirst2000.vo.PegawaiVO_;
|
||||
import com.jasamedika.medifirst2000.vo.PegawaiJabatanVO;
|
||||
|
||||
@Component
|
||||
public class MapPegawaiJabatanToUnitKerjaConverter implements BaseVoConverter<PegawaiVO_, Pegawai> {
|
||||
public class MapPegawaiJabatanToUnitKerjaConverter implements BaseVoConverter<PegawaiJabatanVO, Pegawai> {
|
||||
|
||||
@Override
|
||||
public Pegawai transferVOToModel(PegawaiVO_ vo, Pegawai model) {
|
||||
public Pegawai transferVOToModel(PegawaiJabatanVO vo, Pegawai model) {
|
||||
if (null == model)
|
||||
model = new Pegawai();
|
||||
|
||||
try {
|
||||
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();
|
||||
String json = gson.toJson(serialized);
|
||||
model = gson.fromJson(json, Pegawai.class);
|
||||
String json = gson.toJson(serialized);
|
||||
model = gson.fromJson(json, Pegawai.class);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
return model;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PegawaiVO_> transferListOfModelToListOfVO(List<Pegawai> models, List<PegawaiVO_> vos) {
|
||||
public List<PegawaiJabatanVO> transferListOfModelToListOfVO(List<Pegawai> models, List<PegawaiJabatanVO> vos) {
|
||||
if (null == vos)
|
||||
vos = new ArrayList<PegawaiVO_>();
|
||||
vos = new ArrayList<PegawaiJabatanVO>();
|
||||
|
||||
if (null == models)
|
||||
return vos;
|
||||
|
||||
for (Pegawai pegawai : models) {
|
||||
PegawaiVO_ vo = new PegawaiVO_();
|
||||
vo=transferModelToVO(pegawai, vo);
|
||||
PegawaiJabatanVO vo = new PegawaiJabatanVO();
|
||||
vo = transferModelToVO(pegawai, vo);
|
||||
vos.add(vo);
|
||||
}
|
||||
|
||||
@ -55,47 +55,49 @@ public class MapPegawaiJabatanToUnitKerjaConverter implements BaseVoConverter<Pe
|
||||
}
|
||||
|
||||
@Override
|
||||
public PegawaiVO_ transferModelToVO(Pegawai model, PegawaiVO_ vo) {
|
||||
public PegawaiJabatanVO transferModelToVO(Pegawai model, PegawaiJabatanVO vo) {
|
||||
if (null == vo)
|
||||
vo = new PegawaiVO_();
|
||||
vo = new PegawaiJabatanVO();
|
||||
try {
|
||||
|
||||
|
||||
List<String> fieldsToInclude = new ArrayList<String>();
|
||||
for (Field field : model.GetFields(model.getClass())) {
|
||||
String str = field.getName();
|
||||
String name = field.getName();
|
||||
if(name.equals("serialVersionUID"))continue;
|
||||
if (name.equals("serialVersionUID"))
|
||||
continue;
|
||||
Boolean valid = false;
|
||||
for (java.lang.annotation.Annotation annotation : field.getDeclaredAnnotations()) {
|
||||
if (annotation instanceof JoinColumn) {
|
||||
valid=true;
|
||||
valid = true;
|
||||
} else if (annotation instanceof Column) {
|
||||
Column column = (Column)annotation;
|
||||
if(column.name().endsWith("Fk"))
|
||||
if(field.getName().endsWith("Id")==false)
|
||||
valid=true;
|
||||
}else if (annotation instanceof OneToMany) {
|
||||
|
||||
valid=true;
|
||||
Column column = (Column) annotation;
|
||||
if (column.name().endsWith("Fk"))
|
||||
if (field.getName().endsWith("Id") == false)
|
||||
valid = true;
|
||||
} else if (annotation instanceof OneToMany) {
|
||||
|
||||
valid = true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if(valid ==false)
|
||||
if (valid == false)
|
||||
fieldsToInclude.add(str);
|
||||
|
||||
|
||||
}
|
||||
Map<String, Object> serialized = model.ToMap();
|
||||
Gson gson = new Gson();
|
||||
// serialized.put("jenisPegawai", model.getJenisPegawai());
|
||||
// serialized.put("pegawai", model.getId());
|
||||
// serialized.put("jabatanInternal", model.getJabatanInternal());
|
||||
// serialized.put("unitKerja", model.getUnitKerja());
|
||||
// serialized.put("jenisPegawai", model.getJenisPegawai());
|
||||
// serialized.put("pegawai", model.getId());
|
||||
// serialized.put("jabatanInternal", model.getJabatanInternal());
|
||||
// serialized.put("unitKerja", model.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("statusEnabled1", true);
|
||||
String json = gson.toJson(serialized);
|
||||
vo = gson.fromJson(json, PegawaiVO_.class);
|
||||
String json = gson.toJson(serialized);
|
||||
vo = gson.fromJson(json, PegawaiJabatanVO.class);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
@ -7,8 +7,10 @@ import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.jasamedika.medifirst2000.converter.BaseConverterImpl;
|
||||
import com.jasamedika.medifirst2000.dao.IpsrsPelaksanaanPerbaikanDao;
|
||||
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.IpsrsPerbaikan;
|
||||
import com.jasamedika.medifirst2000.entities.IpsrsStatusPerbaikan;
|
||||
import com.jasamedika.medifirst2000.entities.LoginUser;
|
||||
import com.jasamedika.medifirst2000.entities.Pegawai;
|
||||
import com.jasamedika.medifirst2000.entities.RegistrasiAset;
|
||||
import com.jasamedika.medifirst2000.entities.Ruangan;
|
||||
@ -41,189 +42,190 @@ import com.jasamedika.medifirst2000.vo.RuanganVO;
|
||||
import com.jasamedika.medifirst2000.vo.StokProdukGlobalVO;
|
||||
|
||||
@Service("ipsrsPerbaikanService")
|
||||
public class IpsrsPerbaikanServiceImpl implements IpsrsPerbaikanService{
|
||||
public class IpsrsPerbaikanServiceImpl implements IpsrsPerbaikanService {
|
||||
|
||||
@Autowired
|
||||
private IpsrsPerbaikanDao ipsrsPerbaikanDao;
|
||||
|
||||
|
||||
@Autowired
|
||||
private StrukOrderDao strukOrderRuanganDao;
|
||||
|
||||
|
||||
@Autowired
|
||||
private IpsrsStatusPerbaikanDao ipsrsStatusPerbaikanDao;
|
||||
|
||||
|
||||
@Autowired
|
||||
private IpsrsPelaksanaanPerbaikanDao ipsrsPelaksanaanPerbaikanDao;
|
||||
|
||||
@Autowired
|
||||
private RuanganDao ruanganDao;
|
||||
|
||||
|
||||
@Autowired
|
||||
private BaseConverterImpl <IpsrsPerbaikanVO, IpsrsPerbaikan> ipsrsPerbaikanConverter;
|
||||
|
||||
private BaseConverterImpl<IpsrsPerbaikanVO, IpsrsPerbaikan> ipsrsPerbaikanConverter;
|
||||
|
||||
@Autowired
|
||||
private BaseConverterImpl <RegistrasiAsetVO, RegistrasiAset> registrasiAsetConverter;
|
||||
|
||||
private BaseConverterImpl<RegistrasiAsetVO, RegistrasiAset> registrasiAsetConverter;
|
||||
|
||||
@Autowired
|
||||
private BaseConverterImpl <PegawaiVO, Pegawai> pegawaiConverter;
|
||||
|
||||
private BaseConverterImpl<PegawaiVO, Pegawai> pegawaiConverter;
|
||||
|
||||
@Autowired
|
||||
private BaseConverterImpl <IpsrsStatusPerbaikanVO, IpsrsStatusPerbaikan> ipsrsStatusPerbaikanConverter;
|
||||
|
||||
private BaseConverterImpl<IpsrsStatusPerbaikanVO, IpsrsStatusPerbaikan> ipsrsStatusPerbaikanConverter;
|
||||
|
||||
@Autowired
|
||||
private BaseConverterImpl <IpsrsPelaksanaanPerbaikanVO, IpsrsPelaksanaanPerbaikan> ipsrsPelaksanaanPerbaikanConverter;
|
||||
|
||||
private BaseConverterImpl<IpsrsPelaksanaanPerbaikanVO, IpsrsPelaksanaanPerbaikan> ipsrsPelaksanaanPerbaikanConverter;
|
||||
|
||||
@Autowired
|
||||
private BaseConverterImpl <IpsrsPelaksanaanPerbaikanSukuCadangVO, IpsrsPelaksanaanPerbaikanSukuCadang> ipsrsPelaksanaanPerbaikanTambahBarangConverter;
|
||||
|
||||
private BaseConverterImpl<IpsrsPelaksanaanPerbaikanSukuCadangVO, IpsrsPelaksanaanPerbaikanSukuCadang> ipsrsPelaksanaanPerbaikanTambahBarangConverter;
|
||||
|
||||
@Autowired
|
||||
private BaseConverterImpl <IpsrsPelaksanaanPerbaikanListTeknisiVO, IpsrsPelaksanaanPerbaikanListTeknisi> ipsrsPelaksanaanPerbaikanListpegawaiConverter;
|
||||
|
||||
private BaseConverterImpl<IpsrsPelaksanaanPerbaikanListTeknisiVO, IpsrsPelaksanaanPerbaikanListTeknisi> ipsrsPelaksanaanPerbaikanListpegawaiConverter;
|
||||
|
||||
@Autowired
|
||||
private BaseConverterImpl <StokProdukGlobalVO, StokProdukGlobal> stokProdukGlobalConverter;
|
||||
|
||||
private BaseConverterImpl<StokProdukGlobalVO, StokProdukGlobal> stokProdukGlobalConverter;
|
||||
|
||||
@Autowired
|
||||
private BaseConverterImpl <RuanganVO, Ruangan> ruanganConverter;
|
||||
|
||||
private BaseConverterImpl<RuanganVO, Ruangan> ruanganConverter;
|
||||
|
||||
@Autowired
|
||||
private LoginUserService loginUserService;
|
||||
|
||||
|
||||
@Override
|
||||
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();
|
||||
if(CommonUtil.isNotNullOrEmpty(pegawai)){
|
||||
if (CommonUtil.isNotNullOrEmpty(pegawai)) {
|
||||
result.put("name", pegawai.getNamaLengkap());
|
||||
result.put("idPegawai", pegawai.getId());
|
||||
result.put("idRuangan", pegawai.getRuangan().getId());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getNoOrderTable(){
|
||||
public Map<String, Object> getNoOrderTable() {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
List<String> list = ipsrsPerbaikanDao.noOrder();
|
||||
|
||||
if(CommonUtil.isNotNullOrEmpty(list)){
|
||||
Integer data = Integer.parseInt(list.get(list.size()-1).substring(2))+1;
|
||||
result.put("noOrder", "PR"+data);
|
||||
} else{
|
||||
|
||||
if (CommonUtil.isNotNullOrEmpty(list)) {
|
||||
Integer data = Integer.parseInt(list.get(list.size() - 1).substring(2)) + 1;
|
||||
result.put("noOrder", "PR" + data);
|
||||
} else {
|
||||
result.put("noOrder", noOrderPerbaikan());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String noOrderPerbaikan() {
|
||||
Date dateNow=new Date();
|
||||
Integer month=DateUtil.getMonthFromDate(dateNow);
|
||||
Integer year=DateUtil.getYearFromDate(dateNow);
|
||||
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;
|
||||
Date dateNow = new Date();
|
||||
Integer month = DateUtil.getMonthFromDate(dateNow);
|
||||
Integer year = DateUtil.getYearFromDate(dateNow);
|
||||
Long count = ipsrsPerbaikanDao.count();
|
||||
|
||||
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
|
||||
public Map<String, Object> getRuanganPerbaikan(){
|
||||
public Map<String, Object> getRuanganPerbaikan() {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
List<Ruangan> ruanganAset = ruanganDao.getRuanganOnAset();
|
||||
result.put("ruanganAset", ruanganAset);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getAsetPerbaikan(Integer id){
|
||||
public Map<String, Object> getAsetPerbaikan(Integer id) {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
List<Map<String, Object>> ipsrsPerbaikan = new ArrayList<>();
|
||||
List<Map<String, Object>> listPelapor = new ArrayList<>();
|
||||
if(CommonUtil.isNotNullOrEmpty(id)){
|
||||
for(Map<String, Object> mapping : ipsrsPerbaikanDao.getAllRegistrasiByRuangan(id)){
|
||||
if(CommonUtil.isNullOrEmpty(mapping.get("noRec"))){
|
||||
if (CommonUtil.isNotNullOrEmpty(id)) {
|
||||
for (Map<String, Object> mapping : ipsrsPerbaikanDao.getAllRegistrasiByRuangan(id)) {
|
||||
if (CommonUtil.isNullOrEmpty(mapping.get("noRec"))) {
|
||||
mapping.put("noRec", "-");
|
||||
}
|
||||
if(CommonUtil.isNullOrEmpty(mapping.get("noSeri"))){
|
||||
}
|
||||
if (CommonUtil.isNullOrEmpty(mapping.get("noSeri"))) {
|
||||
mapping.put("noSeri", "-");
|
||||
}
|
||||
if(CommonUtil.isNullOrEmpty(mapping.get("kdProduk"))){
|
||||
}
|
||||
if (CommonUtil.isNullOrEmpty(mapping.get("kdProduk"))) {
|
||||
mapping.put("kdProduk", "-");
|
||||
}
|
||||
if(CommonUtil.isNullOrEmpty(mapping.get("namaProduk"))){
|
||||
if (CommonUtil.isNullOrEmpty(mapping.get("namaProduk"))) {
|
||||
mapping.put("namaProduk", "-");
|
||||
}
|
||||
if(CommonUtil.isNullOrEmpty(mapping.get("merkProduk"))){
|
||||
}
|
||||
if (CommonUtil.isNullOrEmpty(mapping.get("merkProduk"))) {
|
||||
mapping.put("merkProduk", "-");
|
||||
}
|
||||
if(CommonUtil.isNullOrEmpty(mapping.get("typeProduk"))){
|
||||
if (CommonUtil.isNullOrEmpty(mapping.get("typeProduk"))) {
|
||||
mapping.put("typeProduk", "-");
|
||||
}
|
||||
ipsrsPerbaikan.add(mapping);
|
||||
}
|
||||
listPelapor = ipsrsPerbaikanDao.getPegawaiByRuangan(id);
|
||||
}
|
||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan)){
|
||||
if (CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan)) {
|
||||
result.put("dataAset", ipsrsPerbaikan);
|
||||
result.put("pelapor", listPelapor);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Map<String, Object> savePermintaanPerbaikan(IpsrsPerbaikanVO vo){
|
||||
public Map<String, Object> savePermintaanPerbaikan(IpsrsPerbaikanVO vo) {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
IpsrsPerbaikan ipsrsPerbaikan = new IpsrsPerbaikan();
|
||||
if(CommonUtil.isNotNullOrEmpty(vo)){
|
||||
if (CommonUtil.isNotNullOrEmpty(vo)) {
|
||||
ipsrsPerbaikan = ipsrsPerbaikanConverter.transferVOToModel(vo, new IpsrsPerbaikan());
|
||||
ipsrsPerbaikan.setNoOrder(noOrderPerbaikan());
|
||||
}
|
||||
if(CommonUtil.isNotNullOrEmpty(vo.getRegistrasiAset())){
|
||||
ipsrsPerbaikan.setRegistrasiAset(registrasiAsetConverter.transferVOToModel(vo.getRegistrasiAset(), new RegistrasiAset()));
|
||||
if (CommonUtil.isNotNullOrEmpty(vo.getRegistrasiAset())) {
|
||||
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()));
|
||||
}
|
||||
if(CommonUtil.isNotNullOrEmpty(vo.getIpsrsStatusPerbaikan())){
|
||||
if (CommonUtil.isNotNullOrEmpty(vo.getIpsrsStatusPerbaikan())) {
|
||||
IpsrsStatusPerbaikan ipsrsStatusPerbaikan = new IpsrsStatusPerbaikan();
|
||||
if(CommonUtil.isNotNullOrEmpty(vo.getIpsrsStatusPerbaikan())){
|
||||
ipsrsStatusPerbaikan = ipsrsStatusPerbaikanConverter.
|
||||
transferVOToModel(vo.getIpsrsStatusPerbaikan(), new IpsrsStatusPerbaikan());
|
||||
if (CommonUtil.isNotNullOrEmpty(vo.getIpsrsStatusPerbaikan())) {
|
||||
ipsrsStatusPerbaikan = ipsrsStatusPerbaikanConverter.transferVOToModel(vo.getIpsrsStatusPerbaikan(),
|
||||
new IpsrsStatusPerbaikan());
|
||||
ipsrsStatusPerbaikan.setIpsrsPerbaikan(ipsrsPerbaikan);
|
||||
}
|
||||
if(CommonUtil.isNotNullOrEmpty(ipsrsStatusPerbaikan)){
|
||||
if (CommonUtil.isNotNullOrEmpty(ipsrsStatusPerbaikan)) {
|
||||
ipsrsPerbaikan.setIpsrsStatusPerbaikan(ipsrsStatusPerbaikan);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan)){
|
||||
|
||||
if (CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan)) {
|
||||
IpsrsPerbaikan model = ipsrsPerbaikanDao.save(ipsrsPerbaikan);
|
||||
if(CommonUtil.isNotNullOrEmpty(model)){
|
||||
if (CommonUtil.isNotNullOrEmpty(model)) {
|
||||
StrukOrder strukOrder = new StrukOrder();
|
||||
strukOrder.setNoOrder(model.getNoOrder());
|
||||
strukOrder.setTglOrder(model.getTglPesan());
|
||||
strukOrder.setIsDelivered((byte) 1);
|
||||
|
||||
|
||||
strukOrder.setKeteranganKeperluan(model.getKeluhan());
|
||||
strukOrder.setKeteranganLainnya(model.getKeluhan());
|
||||
strukOrder.setKeteranganOrder("Permintaan Perbaikan Dari Ruangan");
|
||||
strukOrder.setRuangan(model.getRegistrasiAset().getRuangan());
|
||||
strukOrder.setPegawaiOrder(model.getPelapor());
|
||||
|
||||
|
||||
strukOrder.setQtyJenisProduk(0.00);
|
||||
strukOrder.setQtyProduk(0.00);
|
||||
strukOrder.setTotalBeaMaterai(0.00);
|
||||
@ -236,151 +238,160 @@ public class IpsrsPerbaikanServiceImpl implements IpsrsPerbaikanService{
|
||||
strukOrder.setTotalPpn(0.00);
|
||||
strukOrderRuanganDao.save(strukOrder);
|
||||
}
|
||||
|
||||
|
||||
result.put("tglPesan", model.getTglPesan());
|
||||
result.put("produk", "");
|
||||
result.put("ruangan", "");
|
||||
result.put("namaPelapor", "");
|
||||
result.put("keluhan", model.getKeluhan());
|
||||
|
||||
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getAllPermintaanPerbaikan() {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
List<Map<String, Object>> listPermintaanPerbaikan =
|
||||
ipsrsPerbaikanDao.getAllPermintaanPerbaikan();
|
||||
if(CommonUtil.isNotNullOrEmpty(listPermintaanPerbaikan)){
|
||||
List<Map<String, Object>> listPermintaanPerbaikan = ipsrsPerbaikanDao.getAllPermintaanPerbaikan();
|
||||
if (CommonUtil.isNotNullOrEmpty(listPermintaanPerbaikan)) {
|
||||
result.put("listPermintaanPerbaikan", listPermintaanPerbaikan);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getOnePermintaanPerbaikan(String noRec){
|
||||
public Map<String, Object> getOnePermintaanPerbaikan(String noRec) {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
IpsrsPerbaikan ipsrsPerbaikan = ipsrsPerbaikanDao.findOne(noRec);
|
||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan)){
|
||||
if (CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan)) {
|
||||
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 inMinute = dateTime / 60000;
|
||||
if(inMinute<15){
|
||||
if (inMinute < 15) {
|
||||
ipsrsStatusPerbaikan.setStatusRespon(1);
|
||||
ipsrsStatusPerbaikan.setWaktuRespon(inMinute);
|
||||
ipsrsStatusPerbaikanDao.save(ipsrsStatusPerbaikan);
|
||||
} else if(inMinute>=15 && inMinute<=30){
|
||||
} else if (inMinute >= 15 && inMinute <= 30) {
|
||||
ipsrsStatusPerbaikan.setStatusRespon(2);
|
||||
ipsrsStatusPerbaikan.setWaktuRespon(inMinute);
|
||||
ipsrsStatusPerbaikanDao.save(ipsrsStatusPerbaikan);
|
||||
} else if(inMinute>30){
|
||||
} else if (inMinute > 30) {
|
||||
ipsrsStatusPerbaikan.setStatusRespon(3);
|
||||
ipsrsStatusPerbaikan.setWaktuRespon(inMinute);
|
||||
ipsrsStatusPerbaikanDao.save(ipsrsStatusPerbaikan);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(CommonUtil.isNotNullOrEmpty(noRec)){
|
||||
|
||||
if (CommonUtil.isNotNullOrEmpty(noRec)) {
|
||||
Map<String, Object> permintaanPerbaikan = ipsrsPerbaikanDao.getOnePermintaanPerbaikan(noRec);
|
||||
List<Ruangan> listRuangan = ruanganDao.getRuanganOnAset();
|
||||
List<Map<String, Object>> listIpsrsPerbaikan = ipsrsPerbaikanDao.getAllRegistrasiByRuangan(ipsrsPerbaikan.getRegistrasiAset().getRuanganId());
|
||||
List<Map<String, Object>> listUser = ipsrsPerbaikanDao.getPegawaiByRuangan((Integer)permintaanPerbaikan.get("id"));
|
||||
List<Map<String, Object>> listIpsrsPerbaikan = ipsrsPerbaikanDao
|
||||
.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>> listSukuCadang = ipsrsPerbaikanDao.getSukuCadang();
|
||||
if(CommonUtil.isNotNullOrEmpty(permintaanPerbaikan)){
|
||||
List<Map<String, Object>> listSukuCadang = ipsrsPerbaikanDao.getSukuCadang();
|
||||
if (CommonUtil.isNotNullOrEmpty(permintaanPerbaikan)) {
|
||||
result.put("listIpsrsPerbaikan", listIpsrsPerbaikan);
|
||||
result.put("permintaanPerbaikan", permintaanPerbaikan);
|
||||
result.put("sukuCadang", listSukuCadang);
|
||||
result.put("listUser", listUser);
|
||||
result.put("listRuangan", listRuangan);
|
||||
result.put("listTeknisi", listTeknisi);
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Map<String, Object> savePelaksanaanPerbaikan(IpsrsPelaksanaanPerbaikanVO vo){
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
public Map<String, Object> savePelaksanaanPerbaikan(IpsrsPelaksanaanPerbaikanVO vo) {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
IpsrsPerbaikan ipsrsPerbaikan = ipsrsPerbaikanDao.findOne(vo.getNoRecIpsrsPerbaikan());
|
||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan.getIpsrsStatusPerbaikan())){
|
||||
if (CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan.getIpsrsStatusPerbaikan())) {
|
||||
IpsrsStatusPerbaikan ipsrsStatusPerbaikan = ipsrsPerbaikan.getIpsrsStatusPerbaikan();
|
||||
if(CommonUtil.isNotNullOrEmpty(vo.getStatusPengerjaan())){
|
||||
if (CommonUtil.isNotNullOrEmpty(vo.getStatusPengerjaan())) {
|
||||
ipsrsStatusPerbaikan.setStatusPengerjaan(vo.getStatusPengerjaan());
|
||||
}
|
||||
if(CommonUtil.isNotNullOrEmpty(vo.getKetStatusRespon())){
|
||||
if (CommonUtil.isNotNullOrEmpty(vo.getKetStatusRespon())) {
|
||||
ipsrsStatusPerbaikan.setKetStatusRespon(vo.getKetStatusRespon());
|
||||
}
|
||||
if(CommonUtil.isNotNullOrEmpty(ipsrsStatusPerbaikan)){
|
||||
if (CommonUtil.isNotNullOrEmpty(ipsrsStatusPerbaikan)) {
|
||||
ipsrsStatusPerbaikanDao.save(ipsrsStatusPerbaikan);
|
||||
}
|
||||
}
|
||||
|
||||
if(CommonUtil.isNullOrEmpty(ipsrsPerbaikan.getIpsrsPelaksanaanPerbaikan())){
|
||||
|
||||
if (CommonUtil.isNullOrEmpty(ipsrsPerbaikan.getIpsrsPelaksanaanPerbaikan())) {
|
||||
IpsrsPelaksanaanPerbaikan ipsrsPelaksanaanPerbaikan = new IpsrsPelaksanaanPerbaikan();
|
||||
if(CommonUtil.isNotNullOrEmpty(vo)){
|
||||
ipsrsPelaksanaanPerbaikan = ipsrsPelaksanaanPerbaikanConverter.transferVOToModel(vo, new IpsrsPelaksanaanPerbaikan());
|
||||
if (CommonUtil.isNotNullOrEmpty(vo)) {
|
||||
ipsrsPelaksanaanPerbaikan = ipsrsPelaksanaanPerbaikanConverter.transferVOToModel(vo,
|
||||
new IpsrsPelaksanaanPerbaikan());
|
||||
ipsrsPelaksanaanPerbaikan.setIpsrsPerbaikan(ipsrsPerbaikan);
|
||||
}
|
||||
if(CommonUtil.isNotNullOrEmpty(vo.getUser())){
|
||||
if (CommonUtil.isNotNullOrEmpty(vo.getUser())) {
|
||||
ipsrsPelaksanaanPerbaikan.setUser(pegawaiConverter.transferVOToModel(vo.getUser(), new Pegawai()));
|
||||
}
|
||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan)){
|
||||
if (CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan)) {
|
||||
ipsrsPerbaikan.setIpsrsPelaksanaanPerbaikan(ipsrsPelaksanaanPerbaikan);
|
||||
}
|
||||
|
||||
|
||||
Set<IpsrsPelaksanaanPerbaikanSukuCadang> listSukuCadang = new HashSet<>();
|
||||
if(CommonUtil.isNotNullOrEmpty(vo.getIpsrsPelaksanaanPerbaikanSukuCadang())){
|
||||
for(IpsrsPelaksanaanPerbaikanSukuCadangVO modelBarangVO : vo.getIpsrsPelaksanaanPerbaikanSukuCadang()){
|
||||
if (CommonUtil.isNotNullOrEmpty(vo.getIpsrsPelaksanaanPerbaikanSukuCadang())) {
|
||||
for (IpsrsPelaksanaanPerbaikanSukuCadangVO modelBarangVO : vo
|
||||
.getIpsrsPelaksanaanPerbaikanSukuCadang()) {
|
||||
IpsrsPelaksanaanPerbaikanSukuCadang ipsrsPelaksanaanPerbaikanTambahBarang = new IpsrsPelaksanaanPerbaikanSukuCadang();
|
||||
if(CommonUtil.isNotNullOrEmpty(modelBarangVO)){
|
||||
ipsrsPelaksanaanPerbaikanTambahBarang = ipsrsPelaksanaanPerbaikanTambahBarangConverter.transferVOToModel(modelBarangVO, new IpsrsPelaksanaanPerbaikanSukuCadang());
|
||||
if (CommonUtil.isNotNullOrEmpty(modelBarangVO)) {
|
||||
ipsrsPelaksanaanPerbaikanTambahBarang = ipsrsPelaksanaanPerbaikanTambahBarangConverter
|
||||
.transferVOToModel(modelBarangVO, new IpsrsPelaksanaanPerbaikanSukuCadang());
|
||||
ipsrsPelaksanaanPerbaikanTambahBarang.setIpsrsPelaksanaanPerbaikan(ipsrsPelaksanaanPerbaikan);
|
||||
}
|
||||
if(CommonUtil.isNotNullOrEmpty(modelBarangVO.getStokProdukGlobal())){
|
||||
ipsrsPelaksanaanPerbaikanTambahBarang.setStokProdukGlobal(stokProdukGlobalConverter.transferVOToModel(modelBarangVO.getStokProdukGlobal(), new StokProdukGlobal()));
|
||||
if (CommonUtil.isNotNullOrEmpty(modelBarangVO.getStokProdukGlobal())) {
|
||||
ipsrsPelaksanaanPerbaikanTambahBarang.setStokProdukGlobal(stokProdukGlobalConverter
|
||||
.transferVOToModel(modelBarangVO.getStokProdukGlobal(), new StokProdukGlobal()));
|
||||
}
|
||||
if(CommonUtil.isNotNullOrEmpty(modelBarangVO.getTujuanRuangan())){
|
||||
ipsrsPelaksanaanPerbaikanTambahBarang.setTujuanRuangan(ruanganConverter.transferVOToModel(modelBarangVO.getTujuanRuangan(), new Ruangan()));
|
||||
if (CommonUtil.isNotNullOrEmpty(modelBarangVO.getTujuanRuangan())) {
|
||||
ipsrsPelaksanaanPerbaikanTambahBarang.setTujuanRuangan(
|
||||
ruanganConverter.transferVOToModel(modelBarangVO.getTujuanRuangan(), new Ruangan()));
|
||||
}
|
||||
listSukuCadang.add(ipsrsPelaksanaanPerbaikanTambahBarang);
|
||||
}
|
||||
ipsrsPelaksanaanPerbaikan.setIpsrsPelaksanaanPerbaikanSukuCadang(listSukuCadang);
|
||||
}
|
||||
|
||||
|
||||
Set<IpsrsPelaksanaanPerbaikanListTeknisi> listTeknisi = new HashSet<>();
|
||||
if(CommonUtil.isNotNullOrEmpty(vo.getIpsrsPelaksanaanPerbaikanListTeknisi())){
|
||||
for(IpsrsPelaksanaanPerbaikanListTeknisiVO modelTeknisiVO : vo.getIpsrsPelaksanaanPerbaikanListTeknisi()){
|
||||
if (CommonUtil.isNotNullOrEmpty(vo.getIpsrsPelaksanaanPerbaikanListTeknisi())) {
|
||||
for (IpsrsPelaksanaanPerbaikanListTeknisiVO modelTeknisiVO : vo
|
||||
.getIpsrsPelaksanaanPerbaikanListTeknisi()) {
|
||||
IpsrsPelaksanaanPerbaikanListTeknisi ipsrsPelaksanaanPerbaikanListTeknisi = new IpsrsPelaksanaanPerbaikanListTeknisi();
|
||||
if(CommonUtil.isNotNullOrEmpty(modelTeknisiVO)){
|
||||
ipsrsPelaksanaanPerbaikanListTeknisi = ipsrsPelaksanaanPerbaikanListpegawaiConverter.transferVOToModel(modelTeknisiVO, new IpsrsPelaksanaanPerbaikanListTeknisi());
|
||||
if (CommonUtil.isNotNullOrEmpty(modelTeknisiVO)) {
|
||||
ipsrsPelaksanaanPerbaikanListTeknisi = ipsrsPelaksanaanPerbaikanListpegawaiConverter
|
||||
.transferVOToModel(modelTeknisiVO, new IpsrsPelaksanaanPerbaikanListTeknisi());
|
||||
ipsrsPelaksanaanPerbaikanListTeknisi.setIpsrsPelaksanaanPerbaikan(ipsrsPelaksanaanPerbaikan);
|
||||
}
|
||||
if(CommonUtil.isNotNullOrEmpty(modelTeknisiVO.getTeknisi())){
|
||||
ipsrsPelaksanaanPerbaikanListTeknisi.setTeknisi(pegawaiConverter.transferVOToModel(modelTeknisiVO.getTeknisi(), new Pegawai()));
|
||||
if (CommonUtil.isNotNullOrEmpty(modelTeknisiVO.getTeknisi())) {
|
||||
ipsrsPelaksanaanPerbaikanListTeknisi.setTeknisi(
|
||||
pegawaiConverter.transferVOToModel(modelTeknisiVO.getTeknisi(), new Pegawai()));
|
||||
}
|
||||
listTeknisi.add(ipsrsPelaksanaanPerbaikanListTeknisi);
|
||||
}
|
||||
ipsrsPelaksanaanPerbaikan.setIpsrsPelaksanaanPerbaikanListTeknisi(listTeknisi);
|
||||
}
|
||||
|
||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan)){
|
||||
|
||||
if (CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan)) {
|
||||
IpsrsPelaksanaanPerbaikan model = ipsrsPelaksanaanPerbaikanDao.save(ipsrsPelaksanaanPerbaikan);
|
||||
if(CommonUtil.isNotNullOrEmpty(model)){
|
||||
if (CommonUtil.isNotNullOrEmpty(model)) {
|
||||
StrukOrder strukOrder = new StrukOrder();
|
||||
strukOrder.setNoOrder("");
|
||||
strukOrder.setTglOrder(model.getTglMulaiPeriksa());
|
||||
strukOrder.setIsDelivered((byte) 1);
|
||||
|
||||
|
||||
strukOrder.setKeteranganKeperluan(model.getAnalisaTeknisi());
|
||||
strukOrder.setKeteranganLainnya(model.getAnalisaKerusakan());
|
||||
strukOrder.setKeteranganOrder("Permintaan suku cadang perbaikan dari IP3RS");
|
||||
strukOrder.setRuangan(model.getIpsrsPerbaikan().getRegistrasiAset().getRuangan());
|
||||
strukOrder.setPegawaiOrder(model.getUser());
|
||||
|
||||
|
||||
strukOrder.setQtyJenisProduk(0.00);
|
||||
strukOrder.setQtyProduk(0.00);
|
||||
strukOrder.setTotalBeaMaterai(0.00);
|
||||
@ -392,44 +403,46 @@ public class IpsrsPerbaikanServiceImpl implements IpsrsPerbaikanService{
|
||||
strukOrder.setTotalPph(0.00);
|
||||
strukOrder.setTotalPpn(0.00);
|
||||
strukOrderRuanganDao.save(strukOrder);
|
||||
}
|
||||
}
|
||||
result.put("noRec", model.getNoRec());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Map<String, Object> getAllIpsrsPerbaikanByNoRec(String noRec){
|
||||
public Map<String, Object> getAllIpsrsPerbaikanByNoRec(String noRec) {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
IpsrsPelaksanaanPerbaikan ipsrsPelaksanaanPerbaikan = ipsrsPerbaikanDao.getAllIpsrsPerbaikanByNoRec(noRec);
|
||||
List<IpsrsPelaksanaanPerbaikanSukuCadang> listBarang = new ArrayList<>();
|
||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan.getIpsrsPelaksanaanPerbaikanSukuCadang())){
|
||||
for(IpsrsPelaksanaanPerbaikanSukuCadang listModel : ipsrsPelaksanaanPerbaikan.getIpsrsPelaksanaanPerbaikanSukuCadang()){
|
||||
if(CommonUtil.isNotNullOrEmpty(listModel)){
|
||||
if (CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan.getIpsrsPelaksanaanPerbaikanSukuCadang())) {
|
||||
for (IpsrsPelaksanaanPerbaikanSukuCadang listModel : ipsrsPelaksanaanPerbaikan
|
||||
.getIpsrsPelaksanaanPerbaikanSukuCadang()) {
|
||||
if (CommonUtil.isNotNullOrEmpty(listModel)) {
|
||||
listBarang.add(listModel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
List<IpsrsPelaksanaanPerbaikanListTeknisi> listTeknisi = new ArrayList<>();
|
||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan.getIpsrsPelaksanaanPerbaikanListTeknisi())){
|
||||
for(IpsrsPelaksanaanPerbaikanListTeknisi listModel : ipsrsPelaksanaanPerbaikan.getIpsrsPelaksanaanPerbaikanListTeknisi()){
|
||||
if (CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan.getIpsrsPelaksanaanPerbaikanListTeknisi())) {
|
||||
for (IpsrsPelaksanaanPerbaikanListTeknisi listModel : ipsrsPelaksanaanPerbaikan
|
||||
.getIpsrsPelaksanaanPerbaikanListTeknisi()) {
|
||||
IpsrsPelaksanaanPerbaikanListTeknisi model = new IpsrsPelaksanaanPerbaikanListTeknisi();
|
||||
if(CommonUtil.isNotNullOrEmpty(listModel.getTeknisi())){
|
||||
if (CommonUtil.isNotNullOrEmpty(listModel.getTeknisi())) {
|
||||
Pegawai ListTeknisi = listModel.getTeknisi();
|
||||
Pegawai teknisi = new Pegawai();
|
||||
teknisi.setId(ListTeknisi.getId());
|
||||
teknisi.setqPegawai(ListTeknisi.getqPegawai());
|
||||
teknisi.setQPegawai(ListTeknisi.getQPegawai());
|
||||
teknisi.setNamaLengkap(ListTeknisi.getNamaLengkap());
|
||||
model.setTeknisi(teknisi);
|
||||
}
|
||||
listTeknisi.add(model);
|
||||
}
|
||||
}
|
||||
|
||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan)){
|
||||
|
||||
if (CommonUtil.isNotNullOrEmpty(ipsrsPelaksanaanPerbaikan)) {
|
||||
result.put("tglMulaiPeriksa", ipsrsPelaksanaanPerbaikan.getTglMulaiPeriksa());
|
||||
result.put("analisaTeknisi", ipsrsPelaksanaanPerbaikan.getAnalisaTeknisi());
|
||||
result.put("analisaKerusakan", ipsrsPelaksanaanPerbaikan.getAnalisaKerusakan());
|
||||
@ -438,49 +451,50 @@ public class IpsrsPerbaikanServiceImpl implements IpsrsPerbaikanService{
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Boolean deleteIpsrsPerbaikan(String noRec){
|
||||
public Boolean deleteIpsrsPerbaikan(String noRec) {
|
||||
IpsrsPerbaikan ipsrsPerbaikan = new IpsrsPerbaikan();
|
||||
if(CommonUtil.isNotNullOrEmpty(noRec)){
|
||||
if (CommonUtil.isNotNullOrEmpty(noRec)) {
|
||||
ipsrsPerbaikan = ipsrsPerbaikanDao.findOne(noRec);
|
||||
ipsrsPerbaikanDao.delete(ipsrsPerbaikan);
|
||||
return true;
|
||||
} else{
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Map<String, Object> updatePermintaanPerbaikan(IpsrsPerbaikanVO vo){
|
||||
public Map<String, Object> updatePermintaanPerbaikan(IpsrsPerbaikanVO vo) {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
IpsrsPerbaikan ipsrsPerbaikan = new IpsrsPerbaikan();
|
||||
if(CommonUtil.isNotNullOrEmpty(vo)){
|
||||
if (CommonUtil.isNotNullOrEmpty(vo)) {
|
||||
ipsrsPerbaikan = ipsrsPerbaikanConverter.transferVOToModel(vo, new IpsrsPerbaikan());
|
||||
ipsrsPerbaikan.setNoOrder(vo.getNoOrder());
|
||||
}
|
||||
if(CommonUtil.isNotNullOrEmpty(vo.getRegistrasiAset())){
|
||||
ipsrsPerbaikan.setRegistrasiAset(registrasiAsetConverter.transferVOToModel(vo.getRegistrasiAset(), new RegistrasiAset()));
|
||||
if (CommonUtil.isNotNullOrEmpty(vo.getRegistrasiAset())) {
|
||||
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()));
|
||||
}
|
||||
if(CommonUtil.isNotNullOrEmpty(vo.getIpsrsStatusPerbaikan())){
|
||||
if (CommonUtil.isNotNullOrEmpty(vo.getIpsrsStatusPerbaikan())) {
|
||||
IpsrsStatusPerbaikan ipsrsStatusPerbaikan = new IpsrsStatusPerbaikan();
|
||||
if(CommonUtil.isNotNullOrEmpty(vo.getIpsrsStatusPerbaikan())){
|
||||
ipsrsStatusPerbaikan = ipsrsStatusPerbaikanConverter.
|
||||
transferVOToModel(vo.getIpsrsStatusPerbaikan(), new IpsrsStatusPerbaikan());
|
||||
if (CommonUtil.isNotNullOrEmpty(vo.getIpsrsStatusPerbaikan())) {
|
||||
ipsrsStatusPerbaikan = ipsrsStatusPerbaikanConverter.transferVOToModel(vo.getIpsrsStatusPerbaikan(),
|
||||
new IpsrsStatusPerbaikan());
|
||||
ipsrsStatusPerbaikan.setIpsrsPerbaikan(ipsrsPerbaikan);
|
||||
}
|
||||
if(CommonUtil.isNotNullOrEmpty(ipsrsStatusPerbaikan)){
|
||||
if (CommonUtil.isNotNullOrEmpty(ipsrsStatusPerbaikan)) {
|
||||
ipsrsPerbaikan.setIpsrsStatusPerbaikan(ipsrsStatusPerbaikan);
|
||||
}
|
||||
}
|
||||
if(CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan)){
|
||||
if (CommonUtil.isNotNullOrEmpty(ipsrsPerbaikan)) {
|
||||
IpsrsPerbaikan resultIpsrsPerbaikan = ipsrsPerbaikanDao.save(ipsrsPerbaikan);
|
||||
result.put("noRec", resultIpsrsPerbaikan.noRec);
|
||||
}
|
||||
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);
|
||||
if (CommonUtil.isNotNullOrEmpty(resultDomain)) {
|
||||
if (CommonUtil.isNotNullOrEmpty(resultDomain.getqPegawai())) {
|
||||
resultDomain.setqPegawai(resultDomain.getId().shortValue());
|
||||
if (CommonUtil.isNotNullOrEmpty(resultDomain.getQPegawai())) {
|
||||
resultDomain.setQPegawai(resultDomain.getId().shortValue());
|
||||
pegawaiDao.save(resultDomain);
|
||||
}
|
||||
result.put("noRec", resultDomain.getId());
|
||||
|
||||
@ -67,6 +67,7 @@ public class PenyuluhanServiceImpl extends BaseVoServiceImpl implements Penyuluh
|
||||
|
||||
@Autowired
|
||||
private PegawaiDao pegawaiDao;
|
||||
|
||||
@Autowired
|
||||
private KelompokTransaksiDao kelompokTransaksiDao;
|
||||
|
||||
@ -468,7 +469,7 @@ public class PenyuluhanServiceImpl extends BaseVoServiceImpl implements Penyuluh
|
||||
jenisPetugasPelaksana.setJenisPetugasPe(element.getKdJenisPetugasPe().getJenisPetugasPe());
|
||||
jenisPetugasPelaksana.setKdJenisPetugasPe((byte) 0);
|
||||
jenisPetugasPelaksana.setKdProfile((short) 0);
|
||||
jenisPetugasPelaksana.setqJenisPetugasPe((byte) 0);
|
||||
jenisPetugasPelaksana.setQJenisPetugasPe((byte) 0);
|
||||
jenisPetugasPelaksana.setStatusEnabled(true);
|
||||
jenisPetugasPelaksanaDao.save(jenisPetugasPelaksana);
|
||||
|
||||
|
||||
@ -40,13 +40,13 @@ import com.jasamedika.medifirst2000.vo.RuanganSmsVO;
|
||||
*/
|
||||
@Service("registrasiSmsService")
|
||||
public class RegistrasiSmsServiceImpl extends BaseVoServiceImpl implements RegistrasiSmsService {
|
||||
|
||||
|
||||
@Autowired
|
||||
private PasienDao pasienDao;
|
||||
|
||||
|
||||
@Autowired
|
||||
private RuanganDao ruanganDao;
|
||||
|
||||
|
||||
@Autowired
|
||||
private JadwalDokterDao jadwalDokterDao;
|
||||
|
||||
@ -376,7 +376,7 @@ public class RegistrasiSmsServiceImpl extends BaseVoServiceImpl implements Regis
|
||||
if (CommonUtil.isNotNullOrEmpty(list)) {
|
||||
for (JadwalDokter jadwal : list) {
|
||||
DokterSmsVO local = new DokterSmsVO();
|
||||
local.setKodePegawai(String.valueOf(jadwal.getDokter().getqPegawai()));
|
||||
local.setKodePegawai(String.valueOf(jadwal.getDokter().getQPegawai()));
|
||||
local.setNamaPegawai(jadwal.getDokter().getNamaLengkap());
|
||||
resultList.add(local);
|
||||
result.put("dokter", resultList);
|
||||
@ -401,7 +401,7 @@ public class RegistrasiSmsServiceImpl extends BaseVoServiceImpl implements Regis
|
||||
JadwalDokterSmsVO jadwalDokter = new JadwalDokterSmsVO();
|
||||
jadwalDokter.setKodeRuangan(jadwal.getRuangan().getKdRuangan());
|
||||
jadwalDokter.setNamaRuangan(jadwal.getRuangan().getNamaRuangan());
|
||||
jadwalDokter.setKodePegawai(jadwal.getDokter().getqPegawai());
|
||||
jadwalDokter.setKodePegawai(jadwal.getDokter().getQPegawai());
|
||||
jadwalDokter.setNamaPegawai(jadwal.getDokter().getNamaLengkap());
|
||||
jadwalDokter.setTanggal(format.format(jadwal.getTanggalJadwal()));
|
||||
jadwalDokterList.add(jadwalDokter);
|
||||
|
||||
@ -1575,8 +1575,8 @@ public class RekamDataPegawaiServiceImpl extends BaseVoServiceImpl implements Re
|
||||
|
||||
Pegawai resultDomain = rekamDataPegawaiDao.save(pegawai);
|
||||
if (CommonUtil.isNotNullOrEmpty(resultDomain)) {
|
||||
if (CommonUtil.isNotNullOrEmpty(resultDomain.getqPegawai())) {
|
||||
resultDomain.setqPegawai(resultDomain.getId().shortValue());
|
||||
if (CommonUtil.isNotNullOrEmpty(resultDomain.getQPegawai())) {
|
||||
resultDomain.setQPegawai(resultDomain.getId().shortValue());
|
||||
rekamDataPegawaiDao.save(resultDomain);
|
||||
this.saveHistoryPegawai(pegawai, perubahan);
|
||||
|
||||
@ -2541,8 +2541,8 @@ public class RekamDataPegawaiServiceImpl extends BaseVoServiceImpl implements Re
|
||||
|
||||
Pegawai resultDomain = rekamDataPegawaiDao.save(model);
|
||||
if (CommonUtil.isNotNullOrEmpty(resultDomain)) {
|
||||
if (CommonUtil.isNotNullOrEmpty(resultDomain.getqPegawai())) {
|
||||
resultDomain.setqPegawai(resultDomain.getId().shortValue());
|
||||
if (CommonUtil.isNotNullOrEmpty(resultDomain.getQPegawai())) {
|
||||
resultDomain.setQPegawai(resultDomain.getId().shortValue());
|
||||
rekamDataPegawaiDao.save(resultDomain);
|
||||
this.saveHistoryPegawai(model, perubahan);
|
||||
|
||||
|
||||
@ -7,11 +7,19 @@ import org.hibernate.validator.constraints.NotEmpty;
|
||||
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @since Feb 24, 2023
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class PegawaiDto {
|
||||
public PegawaiDto() {
|
||||
}
|
||||
|
||||
@NotNull(message = "ID Pegawai tidak boleh null")
|
||||
@Caption(value = "ID Pegawai")
|
||||
private Integer id;
|
||||
@ -20,23 +28,4 @@ public class PegawaiDto {
|
||||
@Pattern(regexp = "\\d{16}", message = "Format NIK tidak sesuai")
|
||||
@Caption(value = "NIK Pegawai")
|
||||
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;
|
||||
|
||||
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.helper.Caption;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
import static javax.persistence.FetchType.LAZY;
|
||||
|
||||
/**
|
||||
* class AsalProduk
|
||||
*
|
||||
* @author Generator
|
||||
*/
|
||||
@Entity // @Audited
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "AsalProduk_M")
|
||||
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
|
||||
public class AsalProduk extends BaseMaster {
|
||||
@NotNull(message = "Asal Produk tidak boleh kosong")
|
||||
@Column(name = "AsalProduk", nullable = false, length = 30)
|
||||
@Caption(value = "Asal Produk")
|
||||
private String asalProduk;
|
||||
|
||||
public void setAsalProduk(String asalProduk) {
|
||||
this.asalProduk = asalProduk;
|
||||
}
|
||||
|
||||
public String getAsalProduk() {
|
||||
return this.asalProduk;
|
||||
}
|
||||
|
||||
@Caption(value = "Kode Asal Produk")
|
||||
private Byte kdAsalProduk;
|
||||
|
||||
@NotNull(message = "QAsal Produk tidak boleh kosong")
|
||||
@Column(name = "QAsalProduk", nullable = false)
|
||||
public Byte getKdAsalProduk() {
|
||||
return kdAsalProduk;
|
||||
}
|
||||
|
||||
public void setKdAsalProduk(Byte kdAsalProduk) {
|
||||
this.kdAsalProduk = kdAsalProduk;
|
||||
}
|
||||
|
||||
@ManyToOne
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "ObjectDepartemenFk")
|
||||
@Caption(value = "Object 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)
|
||||
private Integer departemenId;
|
||||
|
||||
public Integer getDepartemenId() {
|
||||
return departemenId;
|
||||
}
|
||||
|
||||
public void setDepartemenId(Integer departemenId) {
|
||||
this.departemenId = departemenId;
|
||||
}
|
||||
|
||||
@ManyToOne
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "ObjectKelompokProdukFk")
|
||||
@Caption(value = "Object Kelompok Produk")
|
||||
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)
|
||||
private Integer kelompokProdukId;
|
||||
|
||||
public Integer getKelompokProdukId() {
|
||||
return kelompokProdukId;
|
||||
}
|
||||
|
||||
public void setKelompokProdukId(Integer kelompokProdukId) {
|
||||
this.kelompokProdukId = kelompokProdukId;
|
||||
}
|
||||
|
||||
@Caption(value = "QAsal Produk")
|
||||
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
|
||||
@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")
|
||||
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;
|
||||
|
||||
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.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
import static javax.persistence.FetchType.LAZY;
|
||||
|
||||
/**
|
||||
* class JenisPetugasPelaksana
|
||||
*
|
||||
* @author Generator
|
||||
*/
|
||||
@Entity // @Audited
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "JenisPetugasPelaksana_M")
|
||||
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
|
||||
public class JenisPetugasPelaksana extends BaseMaster {
|
||||
@NotNull(message = "Jenis Petugas Pe tidak boleh kosong")
|
||||
@Column(name = "JenisPetugasPe", nullable = false, length = 50)
|
||||
@Caption(value = "Jenis Petugas Pe")
|
||||
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")
|
||||
@Column(name = "KdJenisPetugasPe", nullable = false)
|
||||
@Caption(value = "Kode Jenis Petugas Pe")
|
||||
private Byte kdJenisPetugasPe;
|
||||
|
||||
public void setKdJenisPetugasPe(Byte kdJenisPetugasPe) {
|
||||
this.kdJenisPetugasPe = kdJenisPetugasPe;
|
||||
}
|
||||
|
||||
public Byte getKdJenisPetugasPe() {
|
||||
return this.kdJenisPetugasPe;
|
||||
}
|
||||
|
||||
@ManyToOne
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "ObjectKomponenHargaFk")
|
||||
|
||||
@Caption(value = "Object Komponen Harga")
|
||||
private KomponenHarga komponenHarga;
|
||||
|
||||
public void setKomponenHarga(KomponenHarga komponenHarga) {
|
||||
this.komponenHarga = komponenHarga;
|
||||
}
|
||||
|
||||
public KomponenHarga getKomponenHarga() {
|
||||
return this.komponenHarga;
|
||||
}
|
||||
|
||||
@Column(name = "ObjectKomponenHargaFk", insertable = false, updatable = false)
|
||||
private Integer komponenHargaId;
|
||||
|
||||
@ -71,26 +43,9 @@ public class JenisPetugasPelaksana extends BaseMaster {
|
||||
@Caption(value = "QJenis Petugas Pe")
|
||||
private Byte qJenisPetugasPe;
|
||||
|
||||
public void setqJenisPetugasPe(Byte qJenisPetugasPe) {
|
||||
this.qJenisPetugasPe = qJenisPetugasPe;
|
||||
}
|
||||
|
||||
public Byte getqJenisPetugasPe() {
|
||||
return this.qJenisPetugasPe;
|
||||
}
|
||||
|
||||
@Id
|
||||
@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")
|
||||
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;
|
||||
|
||||
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.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import javax.persistence.CascadeType;
|
||||
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;
|
||||
import static javax.persistence.FetchType.LAZY;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "Ruangan_M")
|
||||
@JsonSerialize
|
||||
@JsonIgnoreProperties({ "hibernateLazyInitializer", "handler" })
|
||||
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,
|
||||
Boolean statusViewData, Integer id, Integer departemenId, Ruangan head) {
|
||||
super();
|
||||
|
||||
this.departemenId = departemenId;
|
||||
this.jamBuka = jamBuka;
|
||||
this.jamTutup = jamTutup;
|
||||
this.departemenId = departemenId;
|
||||
@ -180,7 +39,6 @@ public class Ruangan extends BaseMaster {
|
||||
Boolean statusViewData, Integer id, Integer departemenId) {
|
||||
super();
|
||||
|
||||
this.departemenId = departemenId;
|
||||
this.jamBuka = jamBuka;
|
||||
this.jamTutup = jamTutup;
|
||||
this.departemenId = departemenId;
|
||||
@ -209,257 +67,138 @@ public class Ruangan extends BaseMaster {
|
||||
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
@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) {
|
||||
this.id = id;
|
||||
}
|
||||
@Column(name = "KdInternal", length = 5)
|
||||
@Caption(value = "KodeInternal")
|
||||
private String kdInternal;
|
||||
|
||||
public String getKdInternal() {
|
||||
return kdInternal;
|
||||
}
|
||||
@Column(name = "AlamatEmail", length = 50)
|
||||
@Caption(value = "Alamat Email")
|
||||
private String alamatEmail;
|
||||
|
||||
public void setKdInternal(String kdInternal) {
|
||||
this.kdInternal = kdInternal;
|
||||
}
|
||||
@Column(name = "Faksimile", length = 30)
|
||||
@Caption(value = "Faksimile")
|
||||
private String faksimile;
|
||||
|
||||
public String getAlamatEmail() {
|
||||
return alamatEmail;
|
||||
}
|
||||
@Column(name = "FixedPhone", length = 30)
|
||||
@Caption(value = "Fixed Phone")
|
||||
private String fixedPhone;
|
||||
|
||||
public void setAlamatEmail(String alamatEmail) {
|
||||
this.alamatEmail = alamatEmail;
|
||||
}
|
||||
@Column(name = "JamBuka", length = 5)
|
||||
@Caption(value = "Jam Buka")
|
||||
private String jamBuka;
|
||||
|
||||
public String getFaksimile() {
|
||||
return faksimile;
|
||||
}
|
||||
@Column(name = "JamTutup", length = 5)
|
||||
@Caption(value = "Jam Tutup")
|
||||
private String jamTutup;
|
||||
|
||||
public void setFaksimile(String faksimile) {
|
||||
this.faksimile = faksimile;
|
||||
}
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "ObjectUnitKerjaFk")
|
||||
@Caption(value = "Object Unit Kerja")
|
||||
private UnitKerjaPegawai unitKerja;
|
||||
|
||||
public String getFixedPhone() {
|
||||
return fixedPhone;
|
||||
}
|
||||
@Column(name = "ObjectUnitKerjaFk", insertable = false, updatable = false)
|
||||
private Integer unitKerjaId;
|
||||
|
||||
public void setFixedPhone(String fixedPhone) {
|
||||
this.fixedPhone = fixedPhone;
|
||||
}
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "ObjectDepartemenFk")
|
||||
@Expose(serialize = false)
|
||||
@Caption(value = "Object Departemen")
|
||||
private Departemen departemen;
|
||||
|
||||
public String getJamBuka() {
|
||||
return jamBuka;
|
||||
}
|
||||
@Column(name = "ObjectDepartemenFk", insertable = false, updatable = false)
|
||||
private Integer departemenId;
|
||||
|
||||
public void setJamBuka(String jamBuka) {
|
||||
this.jamBuka = jamBuka;
|
||||
}
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "ObjectKelasHeadFk")
|
||||
@Caption(value = "Object Kelas Head")
|
||||
private Kelas kelasHead;
|
||||
|
||||
public String getJamTutup() {
|
||||
return jamTutup;
|
||||
}
|
||||
@Column(name = "ObjectKelasHeadFk", insertable = false, updatable = false, nullable = false)
|
||||
private Integer kelasHeadId;
|
||||
|
||||
public void setJamTutup(String jamTutup) {
|
||||
this.jamTutup = jamTutup;
|
||||
}
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "ObjectModulAplikasiFk")
|
||||
@Caption(value = "Object Modul Aplikasi")
|
||||
private ModulAplikasi modulAplikasi;
|
||||
|
||||
public Departemen getDepartemen() {
|
||||
return departemen;
|
||||
}
|
||||
@Column(name = "ObjectModulAplikasiFk", insertable = false, updatable = false)
|
||||
private Integer modulAplikasiId;
|
||||
|
||||
public void setDepartemen(Departemen departemen) {
|
||||
this.departemen = departemen;
|
||||
}
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "ObjectPegawaiKepalaFk")
|
||||
@Caption(value = "Object Pegawai Kepala")
|
||||
private Pegawai pegawaiKepala;
|
||||
|
||||
public Integer getDepartemenId() {
|
||||
return departemenId;
|
||||
}
|
||||
@Column(name = "ObjectPegawaiKepalaFk", insertable = false, updatable = false)
|
||||
private Integer pegawaiKepalaId;
|
||||
|
||||
public void setDepartemenId(Integer departemenId) {
|
||||
this.departemenId = departemenId;
|
||||
}
|
||||
@NotNull(message = "Kd Ruangan tidak boleh kosong")
|
||||
@Column(name = "KdRuangan", nullable = false, length = 3)
|
||||
@Caption(value = "Kode Ruangan")
|
||||
private String kdRuangan;
|
||||
|
||||
public Kelas getKelasHead() {
|
||||
return kelasHead;
|
||||
}
|
||||
@Column(name = "LokasiRuangan", length = 50)
|
||||
@Caption(value = "Lokasi Ruangan")
|
||||
private String lokasiRuangan;
|
||||
|
||||
public void setKelasHead(Kelas kelasHead) {
|
||||
this.kelasHead = kelasHead;
|
||||
}
|
||||
@Column(name = "MobilePhone", length = 30)
|
||||
@Caption(value = "Mobile Phone")
|
||||
private String mobilePhone;
|
||||
|
||||
public Integer getKelasHeadId() {
|
||||
return kelasHeadId;
|
||||
}
|
||||
@NotNull(message = "Nama Ruangan tidak boleh kosong")
|
||||
@Column(name = "NamaRuangan", nullable = false, length = 50)
|
||||
@Caption(value = "Nama Ruangan")
|
||||
private String namaRuangan;
|
||||
|
||||
public void setKelasHeadId(Integer kelasHeadId) {
|
||||
this.kelasHeadId = kelasHeadId;
|
||||
}
|
||||
@Column(name = "NoCounter")
|
||||
@Caption(value = "No Counter")
|
||||
private Integer noCounter;
|
||||
|
||||
public ModulAplikasi getModulAplikasi() {
|
||||
return modulAplikasi;
|
||||
}
|
||||
@Column(name = "NoRuangan", length = 4)
|
||||
@Caption(value = "No Ruangan")
|
||||
private String noRuangan;
|
||||
|
||||
public void setModulAplikasi(ModulAplikasi modulAplikasi) {
|
||||
this.modulAplikasi = modulAplikasi;
|
||||
}
|
||||
@Column(name = "PrefixNoAntrian", length = 4)
|
||||
@Caption(value = "Prefix No Antrian")
|
||||
private String prefixNoAntrian;
|
||||
|
||||
public Integer getModulAplikasiId() {
|
||||
return modulAplikasiId;
|
||||
}
|
||||
@NotNull(message = "QRuangan tidak boleh kosong")
|
||||
@Column(name = "QRuangan", nullable = false)
|
||||
@Caption(value = "QRuangan")
|
||||
private short qRuangan;
|
||||
|
||||
public void setModulAplikasiId(Integer modulAplikasiId) {
|
||||
this.modulAplikasiId = modulAplikasiId;
|
||||
}
|
||||
@Column(name = "StatusViewData")
|
||||
@Caption(value = "Status View Data")
|
||||
private Boolean statusViewData;
|
||||
|
||||
public Pegawai getPegawaiKepala() {
|
||||
return pegawaiKepala;
|
||||
}
|
||||
@Column(name = "Website", length = 80)
|
||||
@Caption(value = "Website")
|
||||
private String website;
|
||||
|
||||
public void setPegawaiKepala(Pegawai pegawaiKepala) {
|
||||
this.pegawaiKepala = pegawaiKepala;
|
||||
}
|
||||
@Column(name = "tanggal")
|
||||
@Caption(value = "tanggal")
|
||||
private Date tanggal;
|
||||
|
||||
public Integer getPegawaiKepalaId() {
|
||||
return pegawaiKepalaId;
|
||||
}
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "ObjectRuanganFk")
|
||||
@Caption(value = "Object Ruangan")
|
||||
private Ruangan headRuangan;
|
||||
|
||||
public void setPegawaiKepalaId(Integer pegawaiKepalaId) {
|
||||
this.pegawaiKepalaId = pegawaiKepalaId;
|
||||
}
|
||||
@Column(name = "ObjectRuanganFk", insertable = false, updatable = false)
|
||||
private Integer headRuanganId;
|
||||
|
||||
public String getKdRuangan() {
|
||||
return kdRuangan;
|
||||
}
|
||||
@JsonBackReference
|
||||
@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
|
||||
public String toString() {
|
||||
return "Ruangan [id=" + id + ", namaRuangan=" + namaRuangan + ", statusEnabled=" + statusEnabled + "]";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1,170 +1,37 @@
|
||||
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.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.persistence.Column;
|
||||
|
||||
/**
|
||||
* class AsalProduk
|
||||
* class AsalProduk
|
||||
*
|
||||
* @author Generator
|
||||
*/
|
||||
//@Entity
|
||||
//@Table(name = "AsalProduk_M")
|
||||
@Getter
|
||||
@Setter
|
||||
public class AsalProdukVO extends BaseMasterVO {
|
||||
@Caption(value="Asal Produk")
|
||||
@Caption(value = "Asal Produk")
|
||||
private String asalProduk;
|
||||
|
||||
public void setAsalProduk(String asalProduk) {
|
||||
this.asalProduk = asalProduk;
|
||||
}
|
||||
|
||||
@Column(name = "AsalProduk", nullable = false , length = 30)
|
||||
public String getAsalProduk(){
|
||||
return this.asalProduk;
|
||||
}
|
||||
|
||||
@Caption(value="Kode Asal Produk")
|
||||
@Caption(value = "Kode Asal Produk")
|
||||
private Byte kdAsalProduk;
|
||||
|
||||
@Column(name = "QAsalProduk", nullable = false )
|
||||
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")
|
||||
@Caption(value = "Object Departemen")
|
||||
private DepartemenVO departemen;
|
||||
|
||||
public void setDepartemen(DepartemenVO departemen) {
|
||||
this.departemen = departemen;
|
||||
}
|
||||
|
||||
@Column(name = "KdDepartemen", nullable = false , length = 1)
|
||||
public DepartemenVO getDepartemen(){
|
||||
return this.departemen;
|
||||
}
|
||||
|
||||
@Column(name = "ObjectDepartemenFk", insertable=false,updatable=false)
|
||||
@Column(name = "ObjectDepartemenFk", insertable = false, updatable = false)
|
||||
private Integer departemenId;
|
||||
|
||||
|
||||
public Integer getDepartemenId() {
|
||||
return departemenId;
|
||||
}
|
||||
|
||||
public void setDepartemenId(Integer departemenId) {
|
||||
this.departemenId = departemenId;
|
||||
}
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "ObjectKelompokProdukFk")
|
||||
@Caption(value="Object Kelompok Produk")
|
||||
@Caption(value = "Object Kelompok Produk")
|
||||
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;
|
||||
|
||||
|
||||
|
||||
public Integer getKelompokProdukId() {
|
||||
return kelompokProdukId;
|
||||
}
|
||||
|
||||
public void setKelompokProdukId(Integer kelompokProdukId) {
|
||||
this.kelompokProdukId = kelompokProdukId;
|
||||
}
|
||||
|
||||
@Caption(value="QAsal Produk")
|
||||
@Caption(value = "QAsal Produk")
|
||||
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;
|
||||
|
||||
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.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* class JenisPetugasPelaksana
|
||||
* class JenisPetugasPelaksana
|
||||
*
|
||||
* @author Generator
|
||||
*/
|
||||
//@Entity
|
||||
//@Table(name = "JenisPetugasPelaksana_M")
|
||||
@Getter
|
||||
@Setter
|
||||
public class JenisPetugasPelaksanaVO extends BaseMasterVO {
|
||||
@Caption(value="Jenis Petugas Pe")
|
||||
@Caption(value = "Jenis Petugas Pe")
|
||||
private String jenisPetugasPe;
|
||||
|
||||
public void setJenisPetugasPe(String jenisPetugasPe) {
|
||||
this.jenisPetugasPe = jenisPetugasPe;
|
||||
}
|
||||
|
||||
@Column(name = "JenisPetugasPe", nullable = false , length = 50)
|
||||
public String getJenisPetugasPe(){
|
||||
return this.jenisPetugasPe;
|
||||
}
|
||||
|
||||
@Caption(value="Kode Jenis Petugas Pe")
|
||||
@Caption(value = "Kode Jenis Petugas Pe")
|
||||
private Byte kdJenisPetugasPe;
|
||||
|
||||
public void setKdJenisPetugasPe(Byte kdJenisPetugasPe) {
|
||||
this.kdJenisPetugasPe = kdJenisPetugasPe;
|
||||
}
|
||||
|
||||
@Column(name = "KdJenisPetugasPe", nullable = false )
|
||||
public Byte getKdJenisPetugasPe(){
|
||||
return this.kdJenisPetugasPe;
|
||||
}
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "ObjectKomponenHargaFk")
|
||||
@Caption(value="Object Komponen Harga")
|
||||
@Caption(value = "Object Komponen Harga")
|
||||
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;
|
||||
|
||||
@Caption(value="QJenis Petugas Pe")
|
||||
@Caption(value = "QJenis Petugas Pe")
|
||||
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.helper.Caption;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class RuanganVO extends BaseMasterVO {
|
||||
|
||||
@Caption(value = "AlamatVO Email")
|
||||
private String alamatEmail;
|
||||
|
||||
@ -78,236 +81,11 @@ public class RuanganVO extends BaseMasterVO {
|
||||
private RuanganVO headRuangan;
|
||||
|
||||
private Integer headRuanganId;
|
||||
|
||||
|
||||
Set<KamarVO> kamarSet = new HashSet<>();
|
||||
|
||||
|
||||
@Caption(value = "Object Unit Kerja")
|
||||
private UnitKerjaPegawaiVO unitKerja;
|
||||
|
||||
|
||||
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