@using SteUp.Shared.Components.Layout.Overlay @using SteUp.Shared.Core.Dto @using SteUp.Shared.Core.Interface.LocalDb @inject IIspezioniService IspezioniService
@PuntoVendita.CodMdep - @PuntoVendita.Descrizione
@if (!PuntoVendita.Indirizzo.IsNullOrEmpty()) {
@PuntoVendita.Indirizzo
@PuntoVendita.Citta @PuntoVendita.Cap @PuntoVendita.Provincia
}
@code { [Parameter] public PuntoVenditaDto PuntoVendita { get; set; } = null!; private bool VisibleOverlay { get; set; } private async Task StartInspection() { VisibleOverlay = true; StateHasChanged(); SteupDataService.InspectionPageState.Ispezione = await IspezioniService.GetOrCreateIspezioneAsync( PuntoVendita.CodMdep!, DateOnly.FromDateTime(DateTime.Today), UserSession.User.Username ); VisibleOverlay = false; StateHasChanged(); NavigationManager.NavigateTo("/ispezione"); } }