From 8c3d64aea4af541468bf6a3b20957aab899195d1 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 29 Nov 2022 17:13:27 +0100 Subject: [PATCH] Fix display giacenze --- MP.SPEC/Components/ListGiacenze.razor.cs | 4 ++-- MP.SPEC/Pages/Giacenze.razor | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/MP.SPEC/Components/ListGiacenze.razor.cs b/MP.SPEC/Components/ListGiacenze.razor.cs index 1b5496b5..abfea245 100644 --- a/MP.SPEC/Components/ListGiacenze.razor.cs +++ b/MP.SPEC/Components/ListGiacenze.razor.cs @@ -32,12 +32,12 @@ namespace MP.SPEC.Components [Inject] ISessionStorageService sessionStorage { get; set; } = null!; - protected List? elencoGiacenze; + protected List? elencoGiacenze { get; set; } = null; [Parameter] public int IdxOdl { get; set; } - protected override async Task OnInitializedAsync() + protected override async Task OnParametersSetAsync() { elencoGiacenze = await MDService.ListGiacenze(IdxOdl); } diff --git a/MP.SPEC/Pages/Giacenze.razor b/MP.SPEC/Pages/Giacenze.razor index fc1fdae4..f79267ce 100644 --- a/MP.SPEC/Pages/Giacenze.razor +++ b/MP.SPEC/Pages/Giacenze.razor @@ -3,13 +3,24 @@

Giacenze

- @if (odlExp != null) + @if (odlExp == null) + { + + } + else { @odlExp.CodArticolo }
- + @if (IdxOdl == 0) + { + + } + else + { + + }