From ce5ca385b2d1ce9dba5febf05b769e15f2cd3013 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 19 Jul 2024 11:04:18 +0200 Subject: [PATCH] update comportamento selezione dettaglio confronto tabelle --- MP.Land/Components/CompareConfig.razor.cs | 3 ++ .../Components/CompareVocabolario.razor.cs | 3 ++ MP.Land/MP.Land.csproj | 2 +- MP.Land/Pages/ConfSync.razor | 40 +++++++++++-------- MP.Land/Pages/ConfSync.razor.cs | 5 +++ MP.Land/Resources/ChangeLog.html | 2 +- MP.Land/Resources/VersNum.txt | 2 +- MP.Land/Resources/manifest.xml | 2 +- 8 files changed, 38 insertions(+), 21 deletions(-) diff --git a/MP.Land/Components/CompareConfig.razor.cs b/MP.Land/Components/CompareConfig.razor.cs index 37c1d1fb..2efa8026 100644 --- a/MP.Land/Components/CompareConfig.razor.cs +++ b/MP.Land/Components/CompareConfig.razor.cs @@ -18,6 +18,9 @@ namespace MP.Land.Components [Parameter] public List ListConfigRem { get; set; } = new List(); + [Parameter] + public bool ShowDetail { get; set; } = false; + #endregion Public Properties #region Protected Properties diff --git a/MP.Land/Components/CompareVocabolario.razor.cs b/MP.Land/Components/CompareVocabolario.razor.cs index 770f380a..1b915830 100644 --- a/MP.Land/Components/CompareVocabolario.razor.cs +++ b/MP.Land/Components/CompareVocabolario.razor.cs @@ -18,6 +18,9 @@ namespace MP.Land.Components [Parameter] public List ListVocabolarioRem { get; set; } = new List(); + [Parameter] + public bool ShowDetail { get; set; } = false; + #endregion Public Properties #region Protected Properties diff --git a/MP.Land/MP.Land.csproj b/MP.Land/MP.Land.csproj index 7f5fb921..befc2a25 100644 --- a/MP.Land/MP.Land.csproj +++ b/MP.Land/MP.Land.csproj @@ -3,7 +3,7 @@ net6.0 MP.Land - 6.16.2407.1910 + 6.16.2407.1911 diff --git a/MP.Land/Pages/ConfSync.razor b/MP.Land/Pages/ConfSync.razor index 2ba7bf05..38e66b9f 100644 --- a/MP.Land/Pages/ConfSync.razor +++ b/MP.Land/Pages/ConfSync.razor @@ -26,6 +26,14 @@ }
+ @if(!string.IsNullOrEmpty(CompType)) + { +
+
+ +
+
+ } @if (isLoadingLoc) { @@ -34,29 +42,27 @@ { } - else if(!string.IsNullOrEmpty(CompType)) - { -
-
- @CompType -
-
- -
-
- } else {
-
- + @if (string.IsNullOrEmpty(CompType) || showDetail("AnagKeyVal")) + { +
+
-
- + } + @if (string.IsNullOrEmpty(CompType) || showDetail("Config")) + { +
+
-
- + } + @if (string.IsNullOrEmpty(CompType) || showDetail("Vocabolario")) + { +
+
+ }
}
diff --git a/MP.Land/Pages/ConfSync.razor.cs b/MP.Land/Pages/ConfSync.razor.cs index d65f508f..7ba82f3b 100644 --- a/MP.Land/Pages/ConfSync.razor.cs +++ b/MP.Land/Pages/ConfSync.razor.cs @@ -117,6 +117,11 @@ namespace MP.Land.Pages CompType = ""; } + protected bool showDetail(string valReq) + { + return !string.IsNullOrEmpty(CompType) && CompType.Equals(valReq); + } + protected async Task ReloadDataLoc() { isLoadingLoc = true; diff --git a/MP.Land/Resources/ChangeLog.html b/MP.Land/Resources/ChangeLog.html index 2118e342..caa45903 100644 --- a/MP.Land/Resources/ChangeLog.html +++ b/MP.Land/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo Tablet MAPO - DotNet6 -

Versione: 6.16.2407.1910

+

Versione: 6.16.2407.1911


Note di rilascio:
    diff --git a/MP.Land/Resources/VersNum.txt b/MP.Land/Resources/VersNum.txt index f09f1ad7..293a1d1e 100644 --- a/MP.Land/Resources/VersNum.txt +++ b/MP.Land/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2407.1910 +6.16.2407.1911 diff --git a/MP.Land/Resources/manifest.xml b/MP.Land/Resources/manifest.xml index f12955b0..71aa8631 100644 --- a/MP.Land/Resources/manifest.xml +++ b/MP.Land/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2407.1910 + 6.16.2407.1911 https://nexus.steamware.net/repository/SWS/MP-LAND/stable/LAST/MP.Land.zip https://nexus.steamware.net/repository/SWS/MP-LAND/stable/LAST/ChangeLog.html false