Merge branch 'dev/remun/kontrak' into prod/base
This commit is contained in:
commit
456407dfd5
@ -9,8 +9,6 @@ public final class Master {
|
|||||||
public static final short KODE_PROFILE = 0;
|
public static final short KODE_PROFILE = 0;
|
||||||
public static final String KONSUL = "konsul";
|
public static final String KONSUL = "konsul";
|
||||||
public static final String[] KONSUL_VISIT = { "konsul", "visit" };
|
public static final String[] KONSUL_VISIT = { "konsul", "visit" };
|
||||||
public static final Double MENIT_KERJA_HARIAN = 7.5 * 60.0;
|
|
||||||
public static final Double MENIT_KERJA_RAMADHAN = 6.0 * 60.0;
|
|
||||||
public static final boolean STATUS_ENABLE_FALSE = false;
|
public static final boolean STATUS_ENABLE_FALSE = false;
|
||||||
public static final boolean STATUS_ENABLE_TRUE = true;
|
public static final boolean STATUS_ENABLE_TRUE = true;
|
||||||
public static final String TIDAK_ADA_PERUBAHAN_DATA = "Tidak Ada Perubahan Data!";
|
public static final String TIDAK_ADA_PERUBAHAN_DATA = "Tidak Ada Perubahan Data!";
|
||||||
|
|||||||
@ -152,6 +152,7 @@ public class LogbookKinerjaServiceImpl extends BaseVoServiceImpl implements Logb
|
|||||||
public LogbookKinerjaVO update(LogbookKinerjaVO vo) throws JpaSystemException, ServiceVOException {
|
public LogbookKinerjaVO update(LogbookKinerjaVO vo) throws JpaSystemException, ServiceVOException {
|
||||||
DateFormat mf = new SimpleDateFormat("yyyy-MM");
|
DateFormat mf = new SimpleDateFormat("yyyy-MM");
|
||||||
|
|
||||||
|
double menitKerjaHarian = Double.parseDouble(GetSettingDataFixed("menitKerjaHarian"));
|
||||||
LogbookKinerja logbookKinerjaLama = logbookKinerjaDao.findOne(vo.getNoRec());
|
LogbookKinerja logbookKinerjaLama = logbookKinerjaDao.findOne(vo.getNoRec());
|
||||||
|
|
||||||
Pegawai pegawai = pegawaiConverter.transferVOToModel(vo.getPegawai(), new Pegawai());
|
Pegawai pegawai = pegawaiConverter.transferVOToModel(vo.getPegawai(), new Pegawai());
|
||||||
@ -165,7 +166,7 @@ public class LogbookKinerjaServiceImpl extends BaseVoServiceImpl implements Logb
|
|||||||
logbookKinerjaBaru.setIndikatorKinerja(indikatorKinerja);
|
logbookKinerjaBaru.setIndikatorKinerja(indikatorKinerja);
|
||||||
if (vo.getIndikatorKinerja().getId().equals(Master.IndikatorKinerja.PEMENUHAN_JAM_KERJA)) {
|
if (vo.getIndikatorKinerja().getId().equals(Master.IndikatorKinerja.PEMENUHAN_JAM_KERJA)) {
|
||||||
Integer targetHariKerja = hitungTargetHariKerja(vo.getBulan());
|
Integer targetHariKerja = hitungTargetHariKerja(vo.getBulan());
|
||||||
Double targetJamKerja = targetHariKerja.doubleValue() * Master.MENIT_KERJA_HARIAN;
|
Double targetJamKerja = targetHariKerja.doubleValue() * menitKerjaHarian;
|
||||||
logbookKinerjaBaru.setTarget(targetJamKerja);
|
logbookKinerjaBaru.setTarget(targetJamKerja);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -408,6 +409,8 @@ public class LogbookKinerjaServiceImpl extends BaseVoServiceImpl implements Logb
|
|||||||
Date start = DateUtil.startMonth(bulan);
|
Date start = DateUtil.startMonth(bulan);
|
||||||
Date end = DateUtil.endMonth(bulan);
|
Date end = DateUtil.endMonth(bulan);
|
||||||
|
|
||||||
|
double menitKerjaHarian = Double.parseDouble(GetSettingDataFixed("menitKerjaHarian"));
|
||||||
|
double menitKerjaRamadhan = Double.parseDouble(GetSettingDataFixed("menitKerjaRamadhan"));
|
||||||
List<Kalender> targetPresensi = kalenderDao.getTargetKerja(start, end);
|
List<Kalender> targetPresensi = kalenderDao.getTargetKerja(start, end);
|
||||||
int jumlahHariKerjaHarian = 0;
|
int jumlahHariKerjaHarian = 0;
|
||||||
int jumlahHariKerjaRamadhan = 0;
|
int jumlahHariKerjaRamadhan = 0;
|
||||||
@ -420,8 +423,8 @@ public class LogbookKinerjaServiceImpl extends BaseVoServiceImpl implements Logb
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
result += (double) jumlahHariKerjaHarian * Master.MENIT_KERJA_HARIAN;
|
result += (double) jumlahHariKerjaHarian * menitKerjaHarian;
|
||||||
result += (double) jumlahHariKerjaRamadhan * Master.MENIT_KERJA_RAMADHAN;
|
result += (double) jumlahHariKerjaRamadhan * menitKerjaRamadhan;
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user