This commit is contained in:
Dwi Swandhana
2026-03-06 13:31:04 +07:00
parent ba793c03f2
commit 4ce48077e6
2 changed files with 44 additions and 40 deletions
@@ -42,7 +42,44 @@
<div class="wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-sm-12">
<div class="col-sm-4">
<div class="mb-2">
<h5>Riwayat Cetak</h5>
<div class="table-responsive" style="max-height: 220px; overflow:auto; border:1px solid #dee2e6;">
<table class="table table-sm table-bordered mb-0" id="printHistoryTable">
<thead>
<tr>
<th>No</th>
<th>Waktu Cetak</th>
<th>Petugas</th>
<th>Jumlah Row</th>
<th>Aksi</th>
</tr>
</thead>
<tbody id="printHistoryBody">
@forelse(($printHistories ?? []) as $idx => $history)
<tr data-history-id="{{ $history['id'] }}">
<td>{{ $idx + 1 }}</td>
<td>{{ $history['printed_at_label'] }}</td>
<td>{{ $history['printed_by_name'] }}</td>
<td>{{ $history['total_rows'] }}</td>
<td>
<button type="button" class="btn btn-xs btn-info btn-reprint-history" data-history-id="{{ $history['id'] }}">
Cetak Ulang
</button>
</td>
</tr>
@empty
<tr id="emptyHistoryRow">
<td colspan="5" class="text-center">Belum ada riwayat cetak.</td>
</tr>
@endforelse
</tbody>
</table>
</div>
</div>
</div>
<div class="col-sm-8">
<div class="card-box ribbon-box">
<div class="ribbon ribbon-danger">Rekapitulasi Penerimaan Sample {{$tanggal}}</div>
<p></p>
@@ -63,42 +100,6 @@
</select>
<button type="button" class="btn btn-success" id="btnprintselected"><i class="fa fa-print"></i> Cetak Terpilih</button>
</div>
<div class="mb-2">
<h5>Riwayat Cetak</h5>
<div class="table-responsive" style="max-height: 220px; overflow:auto; border:1px solid #dee2e6;">
<table class="table table-sm table-bordered mb-0" id="printHistoryTable">
<thead>
<tr>
<th>No</th>
<th>Waktu Cetak</th>
<th>Petugas</th>
<th>Jumlah Row</th>
<th>Aksi</th>
</tr>
</thead>
<tbody id="printHistoryBody">
@forelse(($printHistories ?? []) as $idx => $history)
<tr data-history-id="{{ $history['id'] }}">
<td>{{ $idx + 1 }}</td>
<td>{{ $history['printed_at_label'] }}</td>
<td>{{ $history['printed_by_name'] }}</td>
<td>{{ $history['total_rows'] }}</td>
<td>
<button type="button" class="btn btn-xs btn-info btn-reprint-history" data-history-id="{{ $history['id'] }}">
Cetak Ulang
</button>
</td>
</tr>
@empty
<tr id="emptyHistoryRow">
<td colspan="5" class="text-center">Belum ada riwayat cetak.</td>
</tr>
@endforelse
</tbody>
</table>
</div>
</div>
<div class="rekap-table-wrap">
<table class="table table-bordered table-striped" id="penerimaansamplereport">
<thead>
@@ -135,7 +136,7 @@
@endphp
<tr data-id="{{ $r['id'] }}" data-status="{{ strtolower($statusValue) }}" data-order="{{ $loop->index }}" class="{{ $isPrinted ? 'printed-row' : '' }}">
<td style="text-align:center;">
<input type="checkbox" class="row-check">
<input type="checkbox" class="row-check" {{ $isPrinted ? 'disabled' : '' }}>
</td>
<td class="print-status-cell">
@if($isPrinted)
+5 -2
View File
@@ -97,8 +97,11 @@ DEVICE_CONFIGS = [
# 'protocol': 'serial', 'flag_column': 'flg_bd2'
#},
]
MYLA_HOST = '0.0.0.0'
MYLA_PORT = 60090
MYLA_HOST = '10.10.120.89'
MYLA_PORT = 8000
MYLA_POLL_INTERVAL_SECONDS = 5
MYLA_CONNECT_RETRY_SECONDS = 5
MYLA_ACK_TIMEOUT_SECONDS = 8
# Karakter kontrol standar
STX, ETX, ACK, NAK, EOT, ENQ = b'\x02', b'\x03', b'\x06', b'\x15', b'\x04', b'\x05'