From 08c8203dd44dbcf7d1cb0f5d6e60d2b36c822645 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Sat, 24 Apr 2021 12:12:25 +0200 Subject: [PATCH] Fix modulo gestione negoziazioni (card bootstrap4) --- SHERPA.BBM.UI/Pages/Negotiations.razor | 94 ++++++++++++++------------ 1 file changed, 52 insertions(+), 42 deletions(-) diff --git a/SHERPA.BBM.UI/Pages/Negotiations.razor b/SHERPA.BBM.UI/Pages/Negotiations.razor index 3c22db7..22dc5ac 100644 --- a/SHERPA.BBM.UI/Pages/Negotiations.razor +++ b/SHERPA.BBM.UI/Pages/Negotiations.razor @@ -3,58 +3,68 @@ @using SHERPA.BBM.UI.Components; @inject BBM_EFService BBMService -

Gestione Negoziazioni

-Ultime negoziazioni +
+
+

Gestione Negoziazioni

+
+
+ @if (currNegotiation != null) + { + + } + @if (negotiations == null) + { +

Loading...

+ } + else + { + + + + + + + + + + + + + + @foreach (var record in negotiations) + { + + + + + + + + + + } + +
DescriptData insCodPathCliRefer
@record.Descript@record.DataIns@record.CodNegotiation@record.BasePath@record.CodClient @record.Refer
+ } +
+ +
@code { + private int numRecord { get; set; } = 10; + private DatabaseModels.NegotiationsModel currNegotiation = null; private DatabaseModels.NegotiationsModel[] negotiations; protected override async Task OnInitializedAsync() { - negotiations = await BBMService.NegotiationsGetAsync(10); + negotiations = await BBMService.NegotiationsGetAsync(numRecord); } protected async Task ResetData()