Align target deadlines in early warning and reports
This commit is contained in:
@@ -672,15 +672,15 @@
|
||||
@push('script')
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$("#in_tanggal").datepicker({format: 'yyyy-mm-dd'});
|
||||
$("#out_tanggal").datepicker({format: 'yyyy-mm-dd'});
|
||||
$("#edit_tanggal").datepicker({format: 'yyyy-mm-dd'});
|
||||
$("#op_in_tanggal").datepicker({format: 'yyyy-mm-dd'});
|
||||
$("#in_masa_expired").datepicker({format: 'dd-mm-yyyy'});
|
||||
$("#op_in_masa_expired").datepicker({format: 'dd-mm-yyyy'});
|
||||
$("#edit_masa_expired").datepicker({format: 'dd-mm-yyyy'});
|
||||
});
|
||||
$(function () {
|
||||
$("#in_tanggal").datepicker({format: 'yyyy-mm-dd'});
|
||||
$("#out_tanggal").datepicker({format: 'yyyy-mm-dd'});
|
||||
$("#edit_tanggal").datepicker({format: 'yyyy-mm-dd'});
|
||||
$("#op_in_tanggal").datepicker({format: 'yyyy-mm-dd'});
|
||||
$("#in_masa_expired").datepicker({format: 'dd-mm-yyyy'});
|
||||
$("#op_in_masa_expired").datepicker({format: 'dd-mm-yyyy'});
|
||||
$("#edit_masa_expired").datepicker({format: 'dd-mm-yyyy'});
|
||||
});
|
||||
function openedpage( jQuery ){
|
||||
var set01=document.getElementById('cekbln').value;
|
||||
var set02=document.getElementById('cekthn').value;
|
||||
@@ -732,17 +732,28 @@
|
||||
editrow = row;
|
||||
var offset = $("#gridreportblnini").offset();
|
||||
var dataRecord = $("#gridreportblnini").jqxGrid('getrowdata', editrow);
|
||||
var tanggal = dataRecord.tanggal;
|
||||
var bulan = dataRecord.bulan;
|
||||
var tahun = dataRecord.tahun;
|
||||
var tulis = tahun+'-'+bulan+'-'+tanggal;
|
||||
$("#edit_deskripsi").val(dataRecord.deskripsi);
|
||||
$("#edit_id").val(dataRecord.id);
|
||||
$("#edit_pos").val(dataRecord.jenis);
|
||||
$("#edit_total").val(dataRecord.total);
|
||||
$("#edit_tanggal").val(tulis);
|
||||
$("#edit_masa_expired").val(dataRecord.masa_expired || '');
|
||||
$("#modaleditor").modal('show');
|
||||
var previlage = "{{ Session::get('previlage') }}";
|
||||
if (previlage == 'developer' && previlage == 'supervisor') {
|
||||
var tanggal = dataRecord.tanggal;
|
||||
var bulan = dataRecord.bulan;
|
||||
var tahun = dataRecord.tahun;
|
||||
var tulis = tahun+'-'+bulan+'-'+tanggal;
|
||||
$("#edit_deskripsi").val(dataRecord.deskripsi);
|
||||
$("#edit_id").val(dataRecord.id);
|
||||
$("#edit_pos").val(dataRecord.jenis);
|
||||
$("#edit_total").val(dataRecord.total);
|
||||
$("#edit_tanggal").val(tulis);
|
||||
$("#edit_masa_expired").val(dataRecord.masa_expired || '');
|
||||
$("#modaleditor").modal('show');
|
||||
} else {
|
||||
swal({
|
||||
title: 'Akses Ditolak',
|
||||
text: 'Anda tidak memiliki izin untuk mengedit data.',
|
||||
icon: 'error',
|
||||
confirmButtonText: 'OK'
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user