From ff7ca06f16cb337fafb99c980e4e6977c18b3be2 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 9 Jan 2025 19:46:34 +0100 Subject: [PATCH 1/2] LiManUI: - Aggiunto comportamento refresh su azioni client - Modifiche minori visualizzazione --- LiMan.Api/Resources/ChangeLog.html | 2 +- LiMan.Api/Resources/VersNum.txt | 2 +- LiMan.Api/Resources/manifest.xml | 2 +- LiMan.UI/Components/EnrollList.razor | 11 +++++++---- LiMan.UI/Components/EnrollList.razor.cs | 5 ++++- LiMan.UI/Components/SearchEnroll.razor.cs | 1 + LiMan.UI/Data/LiManDataService.cs | 2 ++ LiMan.UI/LiMan.UI.csproj | 2 +- LiMan.UI/Resources/ChangeLog.html | 2 +- LiMan.UI/Resources/VersNum.txt | 2 +- LiMan.UI/Resources/manifest.xml | 2 +- 11 files changed, 21 insertions(+), 12 deletions(-) diff --git a/LiMan.Api/Resources/ChangeLog.html b/LiMan.Api/Resources/ChangeLog.html index ac91928..5707054 100644 --- a/LiMan.Api/Resources/ChangeLog.html +++ b/LiMan.Api/Resources/ChangeLog.html @@ -1,6 +1,6 @@ License Manager -

Versione: 2.1.2501.0710

+

Versione: 2.1.2501.0919


Note di rilascio: -
+
@if (ShowAddLic) {
- @*
-
- Prod - + + @if (ListLicenze != null) + { + foreach (var item in ListLicenze) { - foreach (var item in ListProd) + if (item.Attivazioni.Count < item.NumLicenze) { - + + } + else + { + } } - -
+ } + +
-
-
- Key - - -
-
*@
@@ -54,6 +52,6 @@
- +
diff --git a/LiMan.UI/Components/SearchEnroll.razor.cs b/LiMan.UI/Components/SearchEnroll.razor.cs index f86af53..6495e33 100644 --- a/LiMan.UI/Components/SearchEnroll.razor.cs +++ b/LiMan.UI/Components/SearchEnroll.razor.cs @@ -7,6 +7,7 @@ using System.Threading.Tasks; using System; using System.Linq; using LiMan.DB; +using LiMan.DB.DBModels; namespace LiMan.UI.Components { @@ -44,7 +45,7 @@ namespace LiMan.UI.Components { AppMessages.EA_SearchUpdated += AppMessages_EA_SearchUpdated; LMDService.EnrollMessPipe.EA_NewMessage += async (sender, e) => await EnrollMessPipe_EA_NewMessage(sender, e); - await Task.Delay(1); + await ReloadLicData(); } /// @@ -58,10 +59,23 @@ namespace LiMan.UI.Components LMDService.EnrollMessPipe.sendMessage("PurgedOld"); searchVal = ""; } + /// + /// Idx licenza selezionata + /// + private int SelIdxLic = 0; + private List ListLicenze; + private async Task ReloadLicData() + { + SelectNext currFilt = new SelectNext() + { + ApplicazioneSel = "UpdateManager" + }; + ListLicenze = await LMDService.LicenzeNextGetFilt(currFilt); + } #endregion Protected Methods - #region Private Fields + #region Private Fields private bool isLoading = false; diff --git a/LiMan.UI/Data/LiManDataService.cs b/LiMan.UI/Data/LiManDataService.cs index a6bf01b..975860e 100644 --- a/LiMan.UI/Data/LiManDataService.cs +++ b/LiMan.UI/Data/LiManDataService.cs @@ -737,8 +737,6 @@ namespace LiMan.UI.Data public async Task FlushEnrollCache() { bool fatto = await FlushRedisCachePattern("Enroll"); - // invio segnale rilettura... - return fatto; }