update
This commit is contained in:
@@ -42,7 +42,44 @@
|
|||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row">
|
<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="card-box ribbon-box">
|
||||||
<div class="ribbon ribbon-danger">Rekapitulasi Penerimaan Sample {{$tanggal}}</div>
|
<div class="ribbon ribbon-danger">Rekapitulasi Penerimaan Sample {{$tanggal}}</div>
|
||||||
<p></p>
|
<p></p>
|
||||||
@@ -63,42 +100,6 @@
|
|||||||
</select>
|
</select>
|
||||||
<button type="button" class="btn btn-success" id="btnprintselected"><i class="fa fa-print"></i> Cetak Terpilih</button>
|
<button type="button" class="btn btn-success" id="btnprintselected"><i class="fa fa-print"></i> Cetak Terpilih</button>
|
||||||
</div>
|
</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">
|
<div class="rekap-table-wrap">
|
||||||
<table class="table table-bordered table-striped" id="penerimaansamplereport">
|
<table class="table table-bordered table-striped" id="penerimaansamplereport">
|
||||||
<thead>
|
<thead>
|
||||||
@@ -135,7 +136,7 @@
|
|||||||
@endphp
|
@endphp
|
||||||
<tr data-id="{{ $r['id'] }}" data-status="{{ strtolower($statusValue) }}" data-order="{{ $loop->index }}" class="{{ $isPrinted ? 'printed-row' : '' }}">
|
<tr data-id="{{ $r['id'] }}" data-status="{{ strtolower($statusValue) }}" data-order="{{ $loop->index }}" class="{{ $isPrinted ? 'printed-row' : '' }}">
|
||||||
<td style="text-align:center;">
|
<td style="text-align:center;">
|
||||||
<input type="checkbox" class="row-check">
|
<input type="checkbox" class="row-check" {{ $isPrinted ? 'disabled' : '' }}>
|
||||||
</td>
|
</td>
|
||||||
<td class="print-status-cell">
|
<td class="print-status-cell">
|
||||||
@if($isPrinted)
|
@if($isPrinted)
|
||||||
|
|||||||
+5
-2
@@ -97,8 +97,11 @@ DEVICE_CONFIGS = [
|
|||||||
# 'protocol': 'serial', 'flag_column': 'flg_bd2'
|
# 'protocol': 'serial', 'flag_column': 'flg_bd2'
|
||||||
#},
|
#},
|
||||||
]
|
]
|
||||||
MYLA_HOST = '0.0.0.0'
|
MYLA_HOST = '10.10.120.89'
|
||||||
MYLA_PORT = 60090
|
MYLA_PORT = 8000
|
||||||
|
MYLA_POLL_INTERVAL_SECONDS = 5
|
||||||
|
MYLA_CONNECT_RETRY_SECONDS = 5
|
||||||
|
MYLA_ACK_TIMEOUT_SECONDS = 8
|
||||||
|
|
||||||
# Karakter kontrol standar
|
# Karakter kontrol standar
|
||||||
STX, ETX, ACK, NAK, EOT, ENQ = b'\x02', b'\x03', b'\x06', b'\x15', b'\x04', b'\x05'
|
STX, ETX, ACK, NAK, EOT, ENQ = b'\x02', b'\x03', b'\x06', b'\x15', b'\x04', b'\x05'
|
||||||
|
|||||||
Reference in New Issue
Block a user