01-03-2025
This commit is contained in:
@@ -15,7 +15,9 @@
|
||||
<div class="ribbon ribbon-danger">Rekapitulasi Data Bulan {{$bulan}} Tahun {{$tahun}}</div>
|
||||
<p></p>
|
||||
<div class="table-responsive">
|
||||
<table id="datatable" class="table table-bordered display">
|
||||
<button type="button" class="btn btn-primary" id="btnexport"><i class="fa fa-print"></i> Export</button>
|
||||
|
||||
<table id="glassreport" class="table table-bordered display">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID Rumah Sakit</th>
|
||||
@@ -42,7 +44,7 @@
|
||||
<tbody>
|
||||
@forelse($orderbydate ?? [] as $data)
|
||||
<tr>
|
||||
<td></td>
|
||||
<td> </td>
|
||||
<td>{{ $data->nmpasien }}</td>
|
||||
<td>{{ $data->noregister }}</td>
|
||||
<td>{{ $data->jkpasien }}</td>
|
||||
@@ -51,9 +53,11 @@
|
||||
<td>{{ $data->asalpasien }}</td>
|
||||
<td>{{ $data->mulai }}</td>
|
||||
<td>{{ $data->daftar }}</td>
|
||||
<td> </td>
|
||||
<td>{{ $data->kd_spesimen }}</td>
|
||||
<td>{{ $data->nm_spesimen }}</td>
|
||||
<td>{{ $data->nm_spesimen }}</td>
|
||||
<td>{{ $data->updated_at }}</td>
|
||||
<td>{{ $data->id_esbl }}</td>
|
||||
<td>{{ $data->id_mrsa }}</td>
|
||||
@if(!empty($jsonantibiotik))
|
||||
@foreach($jsonantibiotik as $antibiotic)
|
||||
@php
|
||||
@@ -80,4 +84,21 @@
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="_token" id="token" value="{{ csrf_token() }}">
|
||||
@endsection
|
||||
@endsection
|
||||
@push('script')
|
||||
<!-- SIGNATURE PAD -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.17.0/xlsx.full.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
document.getElementById('btnexport').addEventListener('click', function() {
|
||||
var table = document.getElementById('glassreport');
|
||||
if (table) {
|
||||
var wb = XLSX.utils.table_to_book(table, { sheet: "Report" });
|
||||
XLSX.writeFile(wb, "GlassReport_{{$bulan}}_Tahun{{$tahun}}.xlsx");
|
||||
} else {
|
||||
console.error('Tabel dengan ID "tblkeaktifankelas" tidak ditemukan.');
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
@@ -8,7 +8,9 @@
|
||||
<div class="ribbon ribbon-danger">Rekapitulasi Data Bulan {{$bulan}} Tahun {{$tahun}}</div>
|
||||
<p></p>
|
||||
<div class="table-responsive">
|
||||
<table id="datatable" class="table table-bordered display">
|
||||
<button type="button" class="btn btn-primary" id="btnexport"><i class="fa fa-print"></i> Export</button>
|
||||
|
||||
<table id="rekapantibiotik" class="table table-bordered display">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>No</th>
|
||||
@@ -23,6 +25,18 @@
|
||||
<th>Code</th>
|
||||
<th>Spesimen</th>
|
||||
<th>Finish</th>
|
||||
<th>bhp_media</th>
|
||||
<th>bhp_potsputum</th>
|
||||
<th>bhp_poturine</th>
|
||||
<th>bhp_oshe</th>
|
||||
<th>bhp_obyekglass</th>
|
||||
<th>bhp_botolbd</th>
|
||||
<th>bhp_parafilm</th>
|
||||
<th>bhp_tips</th>
|
||||
<th>bhp_cottonswab</th>
|
||||
<th>bhp_antibiotiktambahan</th>
|
||||
<th>id_esbl</th>
|
||||
<th>id_mrsa</th>
|
||||
@if(isset($jsonantibiotik) && !empty($jsonantibiotik))
|
||||
@foreach($jsonantibiotik->first() as $antibiotic)
|
||||
<th>{{ $antibiotic->antibiotic }}</th>
|
||||
@@ -46,10 +60,24 @@
|
||||
<td>{{ $data->kd_spesimen }}</td>
|
||||
<td>{{ $data->nm_spesimen }}</td>
|
||||
<td>{{ $data->updated_at }}</td>
|
||||
<td>{{ $data->bhp_media}} </td>
|
||||
<td>{{ $data->bhp_potsputum}} </td>
|
||||
<td>{{ $data->bhp_poturine}} </td>
|
||||
<td>{{ $data->bhp_oshe}} </td>
|
||||
<td>{{ $data->bhp_obyekglass}} </td>
|
||||
<td>{{ $data->bhp_botolbd}} </td>
|
||||
<td>{{ $data->bhp_parafilm}} </td>
|
||||
<td>{{ $data->bhp_tips}} </td>
|
||||
<td>{{ $data->bhp_cottonswab}} </td>
|
||||
<td>{{ $data->bhp_antibiotiktambahan}} </td>
|
||||
<td>{{ $data->id_esbl}} </td>
|
||||
<td>{{ $data->id_mrsa}} </td>
|
||||
@if(isset($jsonantibiotik[$data->id]) && !empty($jsonantibiotik[$data->id]))
|
||||
@foreach($jsonantibiotik[$data->id] as $antibiotic)
|
||||
<td>{{ $antibiotic->interpretation }}</td>
|
||||
@endforeach
|
||||
@else
|
||||
<td> </td>
|
||||
@endif
|
||||
</tr>
|
||||
@endforeach
|
||||
@@ -65,4 +93,21 @@
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" name="_token" id="token" value="{{ csrf_token() }}">
|
||||
@endsection
|
||||
@endsection
|
||||
@push('script')
|
||||
<!-- SIGNATURE PAD -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.17.0/xlsx.full.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
document.getElementById('btnexport').addEventListener('click', function() {
|
||||
var table = document.getElementById('rekapantibiotik');
|
||||
if (table) {
|
||||
var wb = XLSX.utils.table_to_book(table, { sheet: "Report" });
|
||||
XLSX.writeFile(wb, "RekapanAntiBiotik_{{$bulan}}_Tahun{{$tahun}}.xlsx");
|
||||
} else {
|
||||
console.error('Tabel dengan ID "tblkeaktifankelas" tidak ditemukan.');
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
File diff suppressed because it is too large
Load Diff
@@ -34,7 +34,7 @@
|
||||
<select class="form-control" id="valjenis" name="valjenis">
|
||||
<option value="searchbydate">Pencarian Berdasarkan Tanggal</option>
|
||||
<option value="norm">No.RM</option>
|
||||
<option value="nofoto">No.Foto</option>
|
||||
<option value="nofoto">No.Lab</option>
|
||||
<option value="rekues">Request/Modality</option>
|
||||
<option value="keterangan">Expertise</option>
|
||||
<option value="kesimpulan">Expertise + Date</option>
|
||||
@@ -2270,9 +2270,9 @@
|
||||
}
|
||||
function openedpage( jQuery ){
|
||||
var jenis = document.getElementById('master_set01').value;
|
||||
var mulai = document.getElementById('mulai').value;
|
||||
var akhir = document.getElementById('akhir').value;
|
||||
var valcari = document.getElementById('valcari').value;
|
||||
var mulai = '';
|
||||
var akhir = '';
|
||||
var valcari = '';
|
||||
var master = document.getElementById('master_lokasi').value;
|
||||
var poli = document.getElementById('valpoli2').value;
|
||||
var set06 = document.getElementById('master_judul').value;
|
||||
@@ -2825,7 +2825,6 @@
|
||||
CKEDITOR.env.isCompatible = true;
|
||||
CKEDITOR.replace( 'keterangan');
|
||||
CKEDITOR.replace( 'kesimpulan');
|
||||
CKEDITOR.replace( 'read_adendum');
|
||||
CKEDITOR.replace( 'lsg_ditemukanmorfologi');
|
||||
CKEDITOR.replace( 'lsg_pewarnaanlain');
|
||||
CKEDITOR.replace( 'viralload');
|
||||
|
||||
Reference in New Issue
Block a user