From fce3d154fc92120fcfe3b0250e2b55fe68d011a5 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 25 Nov 2021 17:17:01 +0100 Subject: [PATCH] Fix close button x scanner QR --- GWMS.UI/Pages/GasStation.razor | 3 +-- GWMS.UI/Pages/GasStation.razor.cs | 14 +++++++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/GWMS.UI/Pages/GasStation.razor b/GWMS.UI/Pages/GasStation.razor index 35dc4c5..4894b4f 100644 --- a/GWMS.UI/Pages/GasStation.razor +++ b/GWMS.UI/Pages/GasStation.razor @@ -77,10 +77,9 @@ OnBarcodeReceived="LocalReceivedBarcodeText" />*@ /* ((e) => { BarCode = e; ShowScanBarcode = !ShowScanBarcode; }) */ - ScanDone { get; set; } protected void ScanDoneHandler(string value) { @@ -215,11 +215,10 @@ namespace GWMS.UI.Pages private bool ShowScanBarcode { get; set; } = false; - public string? BarCode { get; set; } private async Task ProcessBarcode(string Barcode) { - if (doProcess(Barcode)) + if (OrderCode != Barcode) { await InvokeAsync(() => { @@ -310,6 +309,11 @@ namespace GWMS.UI.Pages protected void ResetData() { } + protected void ResetScanner() + { + SelPlantId = 0; + forceReset(); + } protected void ToggleBCode() {