@if (ListRecords == null)
{
diff --git a/MP.SPEC/Components/ProdKit/KitPodlMan.razor.cs b/MP.SPEC/Components/ProdKit/KitPodlMan.razor.cs
index 59610526..69937ca2 100644
--- a/MP.SPEC/Components/ProdKit/KitPodlMan.razor.cs
+++ b/MP.SPEC/Components/ProdKit/KitPodlMan.razor.cs
@@ -94,7 +94,9 @@ namespace MP.SPEC.Components.ProdKit
protected override async Task OnInitializedAsync()
{
- string SPEC_PODL_gest = await MDService.ConfigTryGetAsync("SPEC_PODL_gest");
+#if false
+ string SPEC_PODL_gest = await MDService.ConfigTryGetAsync("SPEC_PODL_gest");
+#endif
DateTime oggi = DateTime.Today;
ActFilter = new SelectXdlParams()
{
diff --git a/MP.SPEC/Components/ProdKit/KitVerify.razor b/MP.SPEC/Components/ProdKit/KitVerify.razor
index 37dee0a1..0c44e5b7 100644
--- a/MP.SPEC/Components/ProdKit/KitVerify.razor
+++ b/MP.SPEC/Components/ProdKit/KitVerify.razor
@@ -16,60 +16,6 @@
{
@if (doShowDetail)
{
- @*
*@
}
diff --git a/MP.SPEC/Data/MpDataService.cs b/MP.SPEC/Data/MpDataService.cs
index e982fd60..e4725619 100644
--- a/MP.SPEC/Data/MpDataService.cs
+++ b/MP.SPEC/Data/MpDataService.cs
@@ -336,6 +336,44 @@ namespace MP.SPEC.Data
return fatto;
}
+ ///
+ /// Restitusice elenco articoli dato tipo (es KIT)
+ ///
+ ///
+ ///
+ ///
+ public List ArticoliGetByTipo(string tipo, string azienda = "*")
+ {
+ List? result = new List();
+ Stopwatch stopWatch = new Stopwatch();
+ stopWatch.Start();
+ string readType = "DB";
+ string sKey = string.IsNullOrEmpty(tipo) ? "ALL" : tipo;
+ string currKey = $"{Utils.redisArtList}:{azienda}:Tipo:{sKey}";
+ // cerco in redis dato valore sel idxMaccSel...
+ RedisValue rawData = redisDb.StringGet(currKey);
+ if (rawData.HasValue)
+ {
+ result = JsonConvert.DeserializeObject>($"{rawData}");
+ readType = "REDIS";
+ }
+ else
+ {
+ result = dbController.ArticoliGetByTipo(tipo);
+ // serializzo e salvo...
+ rawData = JsonConvert.SerializeObject(result);
+ redisDb.StringSet(currKey, rawData, getRandTOut(redisLongTimeCache));
+ }
+ if (result == null)
+ {
+ result = new List();
+ }
+ stopWatch.Stop();
+ TimeSpan ts = stopWatch.Elapsed;
+ Log.Debug($"ArticoliGetByTipo | Read from {readType}: {ts.TotalMilliseconds}ms");
+ return result;
+ }
+
///
/// Restitusice elenco articoli cercati
///
@@ -2107,7 +2145,6 @@ namespace MP.SPEC.Data
return result;
}
-
///
/// Elenco PODL per composizione KIT (Async) non avviati filtrati x articolo, KeyRich (che contiene stato)
///
diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj
index cac3d92b..5be0eaa3 100644
--- a/MP.SPEC/MP.SPEC.csproj
+++ b/MP.SPEC/MP.SPEC.csproj
@@ -5,7 +5,7 @@
enable
enable
MP.SPEC
- 6.16.2505.918
+ 6.16.2505.1017
1800a78a-6ff1-40f9-b490-87fb8bfc1394
en
diff --git a/MP.SPEC/Resources/ChangeLog.html b/MP.SPEC/Resources/ChangeLog.html
index 96001154..8fc5119a 100644
--- a/MP.SPEC/Resources/ChangeLog.html
+++ b/MP.SPEC/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
Modulo MAPOSPEC
- Versione: 6.16.2505.918
+ Versione: 6.16.2505.1017
Note di rilascio:
-
diff --git a/MP.SPEC/Resources/VersNum.txt b/MP.SPEC/Resources/VersNum.txt
index 8938f1aa..3f147e05 100644
--- a/MP.SPEC/Resources/VersNum.txt
+++ b/MP.SPEC/Resources/VersNum.txt
@@ -1 +1 @@
-6.16.2505.918
+6.16.2505.1017
diff --git a/MP.SPEC/Resources/manifest.xml b/MP.SPEC/Resources/manifest.xml
index 3980d0e4..eb30cd1f 100644
--- a/MP.SPEC/Resources/manifest.xml
+++ b/MP.SPEC/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 6.16.2505.918
+ 6.16.2505.1017
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