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() {