From 2bfd0242a9a6c4bd410001387ee8f582af0ce74b Mon Sep 17 00:00:00 2001 From: sindhu Date: Wed, 19 Mar 2025 10:11:46 +0700 Subject: [PATCH] step 36 : result.html desktop --- v1/js/result.js | 153 +++++++++++++++ v1/result.html | 506 +++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 658 insertions(+), 1 deletion(-) create mode 100644 v1/js/result.js diff --git a/v1/js/result.js b/v1/js/result.js new file mode 100644 index 0000000..fe46da1 --- /dev/null +++ b/v1/js/result.js @@ -0,0 +1,153 @@ +document.addEventListener('alpine:init', () => { + Alpine.data('result', () => ({ + // 0. Init dijalankan sebelum inisialisasi + init() { + + }, + // 1. Inisialisasi Start + dataSetting: [ + { + idSetting: 1, + idJenis: 1, + namaJenis: 'TCP Server', + info: 'Port 5001', + port: '5001', + idInterface: 1, + namaInterface: 'XN550', + idInstrument: 1, + namaInstrument: 'Hema 01', + server: '', + idSerial: -1, + namaSerial: '', + speed: '', + idParity: -1, + namaParity: '', + idDataBit: -1, + namaDataBit: '', + idStopBit: -1, + namaStopBit: '' + }, + { + idSetting: 2, + idJenis: 2, + namaJenis: 'TCP Client', + info: 'Server 192.168.0.1, Port 4000', + port: '4000', + idInterface: 2, + namaInterface: 'Axsym', + idInstrument: 2, + namaInstrument: 'Axsym', + server: '192.168.0.1', + idSerial: 1, + namaSerial: 'ttyS0', + speed: '', + idParity: -1, + namaParity: '', + idDataBit: -1, + namaDataBit: '', + idStopBit: -1, + namaStopBit: '' + }, + { + idSetting: 3, + idJenis: 3, + namaJenis: 'RS232', + info: 'ttyS01, 9600, N, 8, 1', + port: '', + idInterface: 3, + namaInterface: 'C311', + idInstrument: 3, + namaInstrument: 'Cobas C311', + server: '', + idSerial: 1, + namaSerial: 'ttyS0', + speed: '19200', + idParity: 1, + namaParity: 'None', + idDataBit: 2, + namaDataBit: '6', + idStopBit: 2, + namaStopBit: '1' + }, + ], + rawDataDesktop: false, + showDialogAdd: false, + showDialogEdit: false, + loadingVerifikasi: false, + isVerifikasiDone: false, + sampleID: '', + decimalFontEdit: '', + assayCodeEdit: '', + decimalFont: '', + assayCode: '', + formulaEdit: '', + formulaAdd: '', + dataResult: [ + { + idResult: 1, + idInstrument: 1, + namaInstrument: 'Hema 01', + sampleID: '20251209', + assayNo: 'WBC', + result: '100', + date: '2025-05-01 08:00:01' + }, + { + idResult: 2, + idInstrument: 2, + namaInstrument: 'Axsym', + sampleID: '20251209', + assayNo: 'IgG', + result: '20', + date: '2025-05-01 08:00:01' + }, + { + idResult: 3, + idInstrument: 3, + namaInstrument: 'Cobas C311', + sampleID: '20251209', + assayNo: 'TBIL', + result: '12', + date: '2025-05-01 08:00:01' + }, + ], + selectedInstrument: { + idInstrument: -1, + namaInstrument: 'Instrument' + }, + openInstrumentSearchMobile: false, + openInstrumentSearch: false, + dataInstrument: [ + { + idInstrument: 1, + namaInstrument: 'Hema 01', + }, + { + idInstrument: 2, + namaInstrument: 'Axsym', + }, + { + idInstrument: 3, + namaInstrument: 'Cobas C311', + }, + ], + // 1. Inisialisasi End + // 2. Fungsi Start + onChangeInstrumentSearch(item) { + this.openInstrumentSearch = false; + this.selectedInstrument = item; + }, + onChangeInstrumentMobile(item) { + this.openInstrumentSearchMobile = false; + // this.selectedInstrument = item; + this.selectedInstrument = { ...item }; + }, + openModalRawData(item){ + this.rawDataDesktop = true + }, + closeDialog(){ + this.rawDataDesktop = false + }, + // 2. Fungsi End + })) +}) \ No newline at end of file diff --git a/v1/result.html b/v1/result.html index b6ffdd5..55c6bd7 100644 --- a/v1/result.html +++ b/v1/result.html @@ -1 +1,505 @@ -ini result page \ No newline at end of file + + + + + + + Result XPORT + + + + + + + + + + +
+ + +
+ +

Port Server

+
+
+ + + + + +
+ + + +
+ +
+
+ + + +
+
+
+ + +
+ + + + +
+
+ +
+ +
+

raw data

+
+ +
+
+ Cobas C311 + 20251209 + TBIL + 12 + 2025-05-01 08:00:01 +
+
+

+ H|^&\\cobas6000^1|||||host|RUPL^REAL|P|1

+

P|1|||||||||||M||||||||||59^Y

+

O|1| + 250304063223|0^5016^2^^^s1^sc|^^^452^^^^418

+

C|1|SYAHRIL EFFENDI ^^^|G

+

C|1|SYAHRIL EFFENDI ^^^|G

+
+
+ +
+
+ +
+
+
+
+
+ + + +
+

Assay Format

+ + add + +
+ + +
+ +
+
+ + +
+
+

Instrument

+ +
+ +
+ +
+ + +
+
+
+ + + +
+ + +
+ +
+
+

+ + + +
+
+
+ + +
+ + +
+ +
+ +
+
+ +
+
+ +
+
+ +
+
+

PORT STATUS

+
+ + +
+
+

Port 0

+

TCP (192 168.0.1 : 2000)

+

Offline

+

XN5000

+
+ +
+
+

PORT STATUS

+
+ + +
+
+

Port 1

+

TCP (192 168.0.1 : 2000)

+

Offline

+

XN5000

+
+
+
+
+
+ +
+
+

PORT STATUS

+
+ + +
+
+

Port 0

+

TCP (192 168.0.1 : 2000)

+

Offline

+

XN5000

+
+ +
+
+

PORT STATUS

+
+ + +
+
+

Port 1

+

TCP (192 168.0.1 : 2000)

+

Offline

+

XN5000

+
+
+
+
+
+ + + + + \ No newline at end of file