update
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
<button type="button" class="btn btn-primary" id="btnReport">Detail</button>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<button type="button" class="btn btn-warning btn-block" id="btnrekaptat">Rekap TAT</button>
|
||||
</div>
|
||||
<div class="form-group col-md-3">
|
||||
<button type="button" class="btn btn-warning btn-block" id="btnrekap">Rekap Antibiotik</button>
|
||||
@@ -691,7 +692,6 @@ $(document).ready(function () {
|
||||
divContainer.innerHTML = "";
|
||||
divContainer.appendChild(table);
|
||||
}
|
||||
|
||||
$("#tabel_cetak").btechco_excelexport({
|
||||
containerid: "tabel_cetak"
|
||||
, datatype: $datatype.Table
|
||||
|
||||
@@ -67,6 +67,8 @@
|
||||
<script src="{{asset('high/js/modernizr.min.js')}}"></script>
|
||||
|
||||
<!--Excell Export js-->
|
||||
<script src="{{ asset('plugins/excellexport/jquery.battatech.excelexport.js') }}"></script>
|
||||
|
||||
<script src="{{asset('plugins/footable/js/footable.all.min.js')}}"></script>
|
||||
|
||||
<!-- JQWidgets -->
|
||||
|
||||
@@ -67,6 +67,8 @@
|
||||
<script src="{{asset('high/js/modernizr.min.js')}}"></script>
|
||||
|
||||
<!--Excell Export js-->
|
||||
<script src="{{ asset('plugins/excellexport/jquery.battatech.excelexport.js') }}"></script>
|
||||
|
||||
<script src="{{asset('plugins/footable/js/footable.all.min.js')}}"></script>
|
||||
|
||||
<!-- JQWidgets -->
|
||||
|
||||
@@ -3736,66 +3736,76 @@
|
||||
var template_jenis = document.getElementById('template_jenis').value;
|
||||
var id_dokter = document.getElementById('dokter').value;
|
||||
var acc_number = document.getElementById('nofoto').value;
|
||||
const checkboxMap = {
|
||||
inlineCheckbox1: 'TBC SO',
|
||||
inlineCheckbox2: 'TBC RO',
|
||||
inlineCheckbox3: 'Anak',
|
||||
inlineCheckbox4: 'HIV',
|
||||
inlineCheckbox5: 'DM',
|
||||
inlineCheckbox6: 'Nanah Lendir',
|
||||
inlineCheckbox7: 'Bercak darah',
|
||||
inlineCheckbox8: 'Air liur',
|
||||
inlineCheckbox9: 'Nanah Lendir',
|
||||
inlineCheckbox10: 'Bercak darah',
|
||||
inlineCheckbox11: 'Air liur',
|
||||
};
|
||||
const checkboxValues = {};
|
||||
$.each(checkboxMap, function (id, label) {
|
||||
checkboxValues[id] = $(`#${id}`).is(':checked') ? label : '';
|
||||
});
|
||||
var formdata = new FormData($('#kt_form')[0]);
|
||||
formdata.set('periksa_id', periksa_id);
|
||||
formdata.set('acc_number', acc_number);
|
||||
formdata.set('val01', 'verifikasi');
|
||||
formdata.set('val10', template_jenis);
|
||||
formdata.set('keterangan', keterangan);
|
||||
formdata.set('lsg_pewarnaanlain', lsg_pewarnaanlain);
|
||||
formdata.set('viralload', viralload);
|
||||
formdata.set('_token', '{{ csrf_token() }}');
|
||||
$.each(checkboxValues, (key, val) => formdata.set(key, val));
|
||||
$.ajax({
|
||||
url : '{{ route("exexpertisepacs") }}',
|
||||
data : formdata,
|
||||
type : 'POST',
|
||||
contentType : false,
|
||||
processData : false,
|
||||
success: function (data) {
|
||||
$("#gridpemeriksaan").jqxGrid('updatebounddata','filter');
|
||||
$("#gridadendum").jqxGrid('updatebounddata','filter');
|
||||
var status = data.status;
|
||||
var message = data.message;
|
||||
var warna = data.warna;
|
||||
var icon = data.icon;
|
||||
$.toast({
|
||||
heading : status,
|
||||
text : message,
|
||||
position : 'top-right',
|
||||
loaderBg : warna,
|
||||
icon : icon,
|
||||
hideAfter : 5000,
|
||||
stack : 1
|
||||
});
|
||||
window.location.href = "{{ url('/reportppds') }}";
|
||||
return false;
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
swal({
|
||||
title : 'Stop',
|
||||
text : xhr.responseText,
|
||||
type : 'warning',
|
||||
})
|
||||
}
|
||||
});
|
||||
if (id_dokter == 'Pilih' || id_dokter == '' || id_dokter == '0' || id_dokter == null){
|
||||
swal({
|
||||
title : 'Stop',
|
||||
text : 'Please Select SPV',
|
||||
type : 'warning',
|
||||
})
|
||||
return false;
|
||||
} else {
|
||||
const checkboxMap = {
|
||||
inlineCheckbox1: 'TBC SO',
|
||||
inlineCheckbox2: 'TBC RO',
|
||||
inlineCheckbox3: 'Anak',
|
||||
inlineCheckbox4: 'HIV',
|
||||
inlineCheckbox5: 'DM',
|
||||
inlineCheckbox6: 'Nanah Lendir',
|
||||
inlineCheckbox7: 'Bercak darah',
|
||||
inlineCheckbox8: 'Air liur',
|
||||
inlineCheckbox9: 'Nanah Lendir',
|
||||
inlineCheckbox10: 'Bercak darah',
|
||||
inlineCheckbox11: 'Air liur',
|
||||
};
|
||||
const checkboxValues = {};
|
||||
$.each(checkboxMap, function (id, label) {
|
||||
checkboxValues[id] = $(`#${id}`).is(':checked') ? label : '';
|
||||
});
|
||||
var formdata = new FormData($('#kt_form')[0]);
|
||||
formdata.set('periksa_id', periksa_id);
|
||||
formdata.set('acc_number', acc_number);
|
||||
formdata.set('val01', 'verifikasi');
|
||||
formdata.set('val10', template_jenis);
|
||||
formdata.set('keterangan', keterangan);
|
||||
formdata.set('lsg_pewarnaanlain', lsg_pewarnaanlain);
|
||||
formdata.set('viralload', viralload);
|
||||
formdata.set('_token', '{{ csrf_token() }}');
|
||||
$.each(checkboxValues, (key, val) => formdata.set(key, val));
|
||||
$.ajax({
|
||||
url : '{{ route("exexpertisepacs") }}',
|
||||
data : formdata,
|
||||
type : 'POST',
|
||||
contentType : false,
|
||||
processData : false,
|
||||
success: function (data) {
|
||||
$("#gridpemeriksaan").jqxGrid('updatebounddata','filter');
|
||||
$("#gridadendum").jqxGrid('updatebounddata','filter');
|
||||
var status = data.status;
|
||||
var message = data.message;
|
||||
var warna = data.warna;
|
||||
var icon = data.icon;
|
||||
$.toast({
|
||||
heading : status,
|
||||
text : message,
|
||||
position : 'top-right',
|
||||
loaderBg : warna,
|
||||
icon : icon,
|
||||
hideAfter : 5000,
|
||||
stack : 1
|
||||
});
|
||||
window.location.href = "{{ url('/reportppds') }}";
|
||||
return false;
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
swal({
|
||||
title : 'Stop',
|
||||
text : xhr.responseText,
|
||||
type : 'warning',
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
$("#btnsavedraft").click(function(){
|
||||
var keterangan = CKEDITOR.instances['keterangan'].getData();
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user