From d29bc0bf5eb1adb17a8910e67cc030141defe2f4 Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Mon, 18 Dec 2023 16:53:37 +0100 Subject: [PATCH] aggiunti vari refresh (NON FIX DEFINITIVO) --- MP-TAB3/Components/FixOdl.razor.cs | 6 +++++- MP-TAB3/Components/OdlMan.razor | 2 +- MP-TAB3/Components/OdlMan.razor.cs | 9 +++++++++ MP-TAB3/MP-TAB3.csproj | 2 +- MP-TAB3/Resources/ChangeLog.html | 2 +- MP-TAB3/Resources/VersNum.txt | 2 +- MP-TAB3/Resources/manifest.xml | 2 +- 7 files changed, 19 insertions(+), 6 deletions(-) diff --git a/MP-TAB3/Components/FixOdl.razor.cs b/MP-TAB3/Components/FixOdl.razor.cs index 6cdc6bf3..c2c73da4 100644 --- a/MP-TAB3/Components/FixOdl.razor.cs +++ b/MP-TAB3/Components/FixOdl.razor.cs @@ -27,6 +27,9 @@ namespace MP_TAB3.Components protected List ListComplete { get; set; } = new List(); protected List ListPaged { get; set; } = new List(); + [Parameter] + public EventCallback E_RefreshData { get; set; } + [Inject] protected MessageService MServ { get; set; } = null!; @@ -100,10 +103,11 @@ namespace MP_TAB3.Components // registro ODL retroattivamente... await TabDServ.OdlSetupPostumo(IdxOdlSel, IdxMaccCurr); } + await E_RefreshData.InvokeAsync(true); } // redirect - NavMan.NavigateTo(NavMan.Uri, true); + //NavMan.NavigateTo(NavMan.Uri, true); } protected void toggleFixOdl() diff --git a/MP-TAB3/Components/OdlMan.razor b/MP-TAB3/Components/OdlMan.razor index 37d69700..aac711f2 100644 --- a/MP-TAB3/Components/OdlMan.razor +++ b/MP-TAB3/Components/OdlMan.razor @@ -56,7 +56,7 @@ @if (!odlOk) {
- +
} } diff --git a/MP-TAB3/Components/OdlMan.razor.cs b/MP-TAB3/Components/OdlMan.razor.cs index c886eb50..97313fc1 100644 --- a/MP-TAB3/Components/OdlMan.razor.cs +++ b/MP-TAB3/Components/OdlMan.razor.cs @@ -867,6 +867,15 @@ namespace MP_TAB3.Components await ReloadData(true); } + protected async Task refreshAfterFixOdl(bool has2Refr) + { + if (has2Refr) + { + await RefreshData(); + await InvokeAsync(StateHasChanged); + } + } + protected void SaveTCRich(decimal newTCRich) { tcRichAttr = newTCRich; diff --git a/MP-TAB3/MP-TAB3.csproj b/MP-TAB3/MP-TAB3.csproj index da4d34aa..e272814f 100644 --- a/MP-TAB3/MP-TAB3.csproj +++ b/MP-TAB3/MP-TAB3.csproj @@ -3,7 +3,7 @@ net6.0 enable - 6.16.2312.1812 + 6.16.2312.1816 enable MP_TAB3 diff --git a/MP-TAB3/Resources/ChangeLog.html b/MP-TAB3/Resources/ChangeLog.html index 266b92aa..8d2bc932 100644 --- a/MP-TAB3/Resources/ChangeLog.html +++ b/MP-TAB3/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2312.1812

+

Versione: 6.16.2312.1816


Note di rilascio:
  • diff --git a/MP-TAB3/Resources/VersNum.txt b/MP-TAB3/Resources/VersNum.txt index 22343106..f491114e 100644 --- a/MP-TAB3/Resources/VersNum.txt +++ b/MP-TAB3/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2312.1812 +6.16.2312.1816 diff --git a/MP-TAB3/Resources/manifest.xml b/MP-TAB3/Resources/manifest.xml index e762721c..783715f0 100644 --- a/MP-TAB3/Resources/manifest.xml +++ b/MP-TAB3/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2312.1812 + 6.16.2312.1816 https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/MP-TAB3.zip https://nexus.steamware.net/repository/SWS/MP-TAB3/stable/LAST/ChangeLog.html false