Implementato sdk honeywell e metodi per lo scanner barcode

This commit is contained in:
2026-02-24 17:49:25 +01:00
parent e8adb76256
commit 7fa96eeb09
27 changed files with 477 additions and 53 deletions

View File

@@ -8,11 +8,13 @@
@using SteUp.Shared.Core.Interface.LocalDb
@using SteUp.Shared.Core.Interface.System
@using SteUp.Shared.Core.Interface.System.Network
@using SteUp.Shared.Core.Messages.Scanner
@inject INetworkService NetworkService
@inject IDialogService Dialog
@inject IIntegryApiService IntegryApiService
@inject IAttachedService AttachedService
@inject IIspezioniService IspezioniService
@inject OnScannerService OnScannerService
<MudDialog Class="customDialog-form">
<DialogContent>
@@ -159,6 +161,9 @@
protected override void OnInitialized()
{
OnScannerService.OnNewScanSuccessful += OnNewScanSuccessful;
OnScannerService.OnErrorScan += OnErrorScan;
_originalScheda = Scheda.Clone();
Snackbar.Configuration.PositionClass = Defaults.Classes.Position.TopCenter;
@@ -351,7 +356,7 @@
AttachedList.Add(new AttachedDto { Name = a.Name, MimeType = a.MimeType, FileBytes = a.FileBytes });
await InvokeAsync(StateHasChanged);
RecalcDirty(true);
// Processa in background e aggiorna UI man mano (o a blocchi)
@@ -419,4 +424,19 @@
await InvokeAsync(StateHasChanged);
});
}
#region Scanner
public static void OnNewScanSuccessful(string? value)
{
//To be implemented
}
private static void OnErrorScan(string? value)
{
//To be implemented
}
#endregion
}