diff --git a/MP.SPEC/Components/Reparti/ListReparti.razor b/MP.SPEC/Components/Reparti/ListReparti.razor
index 05f03dfe..4189ceba 100644
--- a/MP.SPEC/Components/Reparti/ListReparti.razor
+++ b/MP.SPEC/Components/Reparti/ListReparti.razor
@@ -95,7 +95,7 @@
{
- @if(EditRec==null)
+ @if (EditRec == null)
{
}
diff --git a/MP.SPEC/Components/Reparti/ListReparti.razor.cs b/MP.SPEC/Components/Reparti/ListReparti.razor.cs
index f95b835b..0707f871 100644
--- a/MP.SPEC/Components/Reparti/ListReparti.razor.cs
+++ b/MP.SPEC/Components/Reparti/ListReparti.razor.cs
@@ -1,10 +1,9 @@
using Microsoft.AspNetCore.Components;
-using Microsoft.AspNetCore.DataProtection;
using Microsoft.JSInterop;
+using MP.AppAuth.Services;
using MP.Core.DTO;
using MP.Data.DbModels;
using MP.SPEC.Data;
-using MP.AppAuth.Services;
namespace MP.SPEC.Components.Reparti
{
@@ -157,7 +156,7 @@ namespace MP.SPEC.Components.Reparti
SelEnabled = selRec.SelEnabled,
TipoGruppo = selRec.TipoGruppo
};
- MDService.AnagGruppiDelete(rec2Del);
+ await MDService.AnagGruppiDeleteAsync(rec2Del);
EditRec = null;
await EC_RecordUpdated.InvokeAsync(true);
}
@@ -176,6 +175,7 @@ namespace MP.SPEC.Components.Reparti
private async Task DoSelect(RepartiDTO currRec)
{
// seleziona
+ EditRec = null;
SelRecord = currRec;
await EC_RecordSel.InvokeAsync(currRec.CodGruppo);
}
@@ -183,7 +183,7 @@ namespace MP.SPEC.Components.Reparti
private async Task DoUpdate(AnagGruppiModel UpdRec)
{
// salvo...
- MDService.AnagGruppiUpsert(UpdRec);
+ await MDService.AnagGruppiUpsertAsync(UpdRec);
EditRec = null;
await EC_RecordUpdated.InvokeAsync(true);
}
@@ -192,6 +192,7 @@ namespace MP.SPEC.Components.Reparti
{
SelRecord = null;
EditRec = null;
+ UpdateTable();
await EC_RecordSel.InvokeAsync("");
}
diff --git a/MP.SPEC/Data/MpDataService.cs b/MP.SPEC/Data/MpDataService.cs
index 340afee9..cb599b90 100644
--- a/MP.SPEC/Data/MpDataService.cs
+++ b/MP.SPEC/Data/MpDataService.cs
@@ -186,17 +186,16 @@ namespace MP.SPEC.Data
/// Delete record AnagraficaGruppi
///
///
- public bool AnagGruppiDelete(AnagGruppiModel updRec)
+ public async Task AnagGruppiDeleteAsync(AnagGruppiModel updRec)
{
- using var activity = ActivitySource.StartActivity("AnagGruppiDelete");
+ using var activity = ActivitySource.StartActivity("AnagGruppiDeleteAsync");
bool result = false;
result = dbController.AnagGruppiDelete(updRec);
// elimino cache redis...
- string pattern = $"{Utils.redisAnagGruppi}:*";
- bool answ = ExecFlushRedisPattern(pattern);
- activity?.SetTag("data.source", "DB+REDIS");
+ await FlushCacheByTagAsync(Utils.redisAnagGruppi);
+ activity?.SetTag("data.source", "DB");
activity?.Stop();
- LogTrace($"AnagGruppiDelete | CodGruppo {updRec.CodGruppo} | {activity?.Duration.TotalMilliseconds}ms");
+ LogTrace($"AnagGruppiDeleteAsync | CodGruppo {updRec.CodGruppo} | {activity?.Duration.TotalMilliseconds}ms");
return result;
}
@@ -205,17 +204,16 @@ namespace MP.SPEC.Data
///
///
///
- public bool AnagGruppiUpsert(AnagGruppiModel UpdRec)
+ public async Task AnagGruppiUpsertAsync(AnagGruppiModel UpdRec)
{
- using var activity = ActivitySource.StartActivity("AnagGruppiUpsert");
+ using var activity = ActivitySource.StartActivity("AnagGruppiUpsertAsync");
bool result = false;
result = dbController.AnagGruppiUpsert(UpdRec);
// elimino cache redis...
- string pattern = $"{Utils.redisAnagGruppi}:*";
- bool answ = ExecFlushRedisPattern(pattern);
- activity?.SetTag("data.source", "DB+REDIS");
+ await FlushCacheByTagAsync(Utils.redisAnagGruppi);
+ activity?.SetTag("data.source", "DB");
activity?.Stop();
- LogTrace($"AnagGruppiUpsert | CodGruppo {UpdRec.CodGruppo} | {activity?.Duration.TotalMilliseconds}ms");
+ LogTrace($"AnagGruppiUpsertAsync | CodGruppo {UpdRec.CodGruppo} | {activity?.Duration.TotalMilliseconds}ms");
return result;
}
diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj
index 4f385d7b..10ab6e68 100644
--- a/MP.SPEC/MP.SPEC.csproj
+++ b/MP.SPEC/MP.SPEC.csproj
@@ -5,7 +5,7 @@
enable
enable
MP.SPEC
- 8.16.2605.2912
+ 8.16.2605.3007
1800a78a-6ff1-40f9-b490-87fb8bfc1394
en
diff --git a/MP.SPEC/Pages/RepOper.razor.cs b/MP.SPEC/Pages/RepOper.razor.cs
index de1002c2..6cf08ced 100644
--- a/MP.SPEC/Pages/RepOper.razor.cs
+++ b/MP.SPEC/Pages/RepOper.razor.cs
@@ -62,15 +62,9 @@ namespace MP.SPEC.Pages
get => string.IsNullOrWhiteSpace(SearchVal) ? "btn-secondary" : "btn-primary";
}
- private string CssMain
- {
- get => ShowDetail ? "col-4" : "col-12";
- }
+ private string CssMain => ShowDetail ? "col-4" : "col-12";
- private bool ShowDetail
- {
- get => !string.IsNullOrEmpty(CodGruppo);
- }
+ private bool ShowDetail => !string.IsNullOrEmpty(CodGruppo);
#endregion Private Properties
@@ -134,10 +128,10 @@ namespace MP.SPEC.Pages
private async Task SetCodGruppo(string CodGruppoSel)
{
- isLoading = true;
+ //isLoading = true;
CodGruppo = CodGruppoSel;
await ReloadDetailAsync();
- isLoading = false;
+ //isLoading = false;
}
#endregion Private Methods
diff --git a/MP.SPEC/Resources/ChangeLog.html b/MP.SPEC/Resources/ChangeLog.html
index 26e66a60..2f246f77 100644
--- a/MP.SPEC/Resources/ChangeLog.html
+++ b/MP.SPEC/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
Modulo MAPOSPEC
- Versione: 8.16.2605.2912
+ Versione: 8.16.2605.3007
Note di rilascio:
-
diff --git a/MP.SPEC/Resources/VersNum.txt b/MP.SPEC/Resources/VersNum.txt
index a0cc7bd5..a025c228 100644
--- a/MP.SPEC/Resources/VersNum.txt
+++ b/MP.SPEC/Resources/VersNum.txt
@@ -1 +1 @@
-8.16.2605.2912
+8.16.2605.3007
diff --git a/MP.SPEC/Resources/manifest.xml b/MP.SPEC/Resources/manifest.xml
index c6942b53..f5b17fe1 100644
--- a/MP.SPEC/Resources/manifest.xml
+++ b/MP.SPEC/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 8.16.2605.2912
+ 8.16.2605.3007
https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/MP.SPEC.zip
https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/ChangeLog.html
false
|