From e83ae513a8e11b466e3ca37aacda5a30749cc626 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 14 Apr 2025 18:25:13 +0200 Subject: [PATCH] Update SPEC x modelli dati --- MP.SPEC/Components/ListDossiers.razor.cs | 2 +- MP.SPEC/Components/ListODL.razor.cs | 2 +- MP.SPEC/Components/ListPODL.razor.cs | 2 +- MP.SPEC/Components/SelFilterXDL.razor.cs | 2 +- MP.SPEC/Components/StatsOdl.razor.cs | 2 +- MP.SPEC/Data/MpDataService.cs | 16 ++++++++-------- MP.SPEC/Pages/Articoli.razor.cs | 2 +- MP.SPEC/Pages/ODL.razor.cs | 2 +- MP.SPEC/Pages/PODL.razor.cs | 2 +- MP.SPEC/Pages/Podl2Kit.razor.cs | 2 +- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/MP.SPEC/Components/ListDossiers.razor.cs b/MP.SPEC/Components/ListDossiers.razor.cs index 91065bbf..639db8b9 100644 --- a/MP.SPEC/Components/ListDossiers.razor.cs +++ b/MP.SPEC/Components/ListDossiers.razor.cs @@ -320,7 +320,7 @@ namespace MP.SPEC.Components private List? ListMacchine; private List? ListRecords; - private List? ListStati; + private List? ListStati; private List? SearchRecords; diff --git a/MP.SPEC/Components/ListODL.razor.cs b/MP.SPEC/Components/ListODL.razor.cs index 42040ed5..3cadc9a6 100644 --- a/MP.SPEC/Components/ListODL.razor.cs +++ b/MP.SPEC/Components/ListODL.razor.cs @@ -271,7 +271,7 @@ namespace MP.SPEC.Components private List? ListRecords; - private List? ListStati; + private List? ListStati; private List? SearchRecords; diff --git a/MP.SPEC/Components/ListPODL.razor.cs b/MP.SPEC/Components/ListPODL.razor.cs index 1bc9c190..ceb788d8 100644 --- a/MP.SPEC/Components/ListPODL.razor.cs +++ b/MP.SPEC/Components/ListPODL.razor.cs @@ -311,7 +311,7 @@ namespace MP.SPEC.Components private List? ListRecords; - private List? ListStati; + private List? ListStati; private bool MachineWithRecipe = false; diff --git a/MP.SPEC/Components/SelFilterXDL.razor.cs b/MP.SPEC/Components/SelFilterXDL.razor.cs index 3f3d8e51..9e34621b 100644 --- a/MP.SPEC/Components/SelFilterXDL.razor.cs +++ b/MP.SPEC/Components/SelFilterXDL.razor.cs @@ -22,7 +22,7 @@ namespace MP.SPEC.Components public List? ListMacchine { get; set; } = null; [Parameter] - public List? ListStati { get; set; } = null; + public List? ListStati { get; set; } = null; #endregion Public Properties diff --git a/MP.SPEC/Components/StatsOdl.razor.cs b/MP.SPEC/Components/StatsOdl.razor.cs index a1586fda..ed18400d 100644 --- a/MP.SPEC/Components/StatsOdl.razor.cs +++ b/MP.SPEC/Components/StatsOdl.razor.cs @@ -17,7 +17,7 @@ namespace MP.SPEC.Components } [Parameter] - public List? ListStati { get; set; } + public List? ListStati { get; set; } [Parameter] public ODLExpModel statRecord { get; set; } = null!; diff --git a/MP.SPEC/Data/MpDataService.cs b/MP.SPEC/Data/MpDataService.cs index 1107d75a..29dada56 100644 --- a/MP.SPEC/Data/MpDataService.cs +++ b/MP.SPEC/Data/MpDataService.cs @@ -189,16 +189,16 @@ namespace MP.SPEC.Data return result; } - public async Task> AnagStatiComm() + public async Task> AnagStatiComm() { Stopwatch stopWatch = new Stopwatch(); stopWatch.Start(); - List? result = new List(); + List? result = new List(); // cerco in redis... RedisValue rawData = await redisDb.StringGetAsync(Utils.redisStatoCom); if (!string.IsNullOrEmpty($"{rawData}")) { - result = JsonConvert.DeserializeObject>($"{rawData}"); + result = JsonConvert.DeserializeObject>($"{rawData}"); stopWatch.Stop(); TimeSpan ts = stopWatch.Elapsed; Log.Debug($"AnagStatiComm Read from REDIS: {ts.TotalMilliseconds}ms"); @@ -215,22 +215,22 @@ namespace MP.SPEC.Data } if (result == null) { - result = new List(); + result = new List(); } return result; } - public async Task> AnagTipoArtLV() + public async Task> AnagTipoArtLV() { Stopwatch stopWatch = new Stopwatch(); stopWatch.Start(); string source = "DB"; - List? result = new List(); + List? result = new List(); // cerco in redis... RedisValue rawData = await redisDb.StringGetAsync(Utils.redisTipoArt); if (!string.IsNullOrEmpty($"{rawData}")) { - result = JsonConvert.DeserializeObject>($"{rawData}"); + result = JsonConvert.DeserializeObject>($"{rawData}"); source = "REDIS"; } else @@ -245,7 +245,7 @@ namespace MP.SPEC.Data Log.Debug($"AnagTipoArtLV Read from {source}: {ts.TotalMilliseconds}ms"); if (result == null) { - result = new List(); + result = new List(); } return result; } diff --git a/MP.SPEC/Pages/Articoli.razor.cs b/MP.SPEC/Pages/Articoli.razor.cs index 8cf3d271..de9c7c91 100644 --- a/MP.SPEC/Pages/Articoli.razor.cs +++ b/MP.SPEC/Pages/Articoli.razor.cs @@ -239,7 +239,7 @@ namespace MP.SPEC.Pages private AnagArticoliModel? currRecord = null; private List? ListAziende; private List? ListRecords; - private List? ListTipoArt; + private List? ListTipoArt; private List? SearchRecords; #endregion Private Fields diff --git a/MP.SPEC/Pages/ODL.razor.cs b/MP.SPEC/Pages/ODL.razor.cs index 627c977b..9f39fbea 100644 --- a/MP.SPEC/Pages/ODL.razor.cs +++ b/MP.SPEC/Pages/ODL.razor.cs @@ -161,7 +161,7 @@ namespace MP.SPEC.Pages #region Private Fields private List? ListMacchine; - private List? ListStati; + private List? ListStati; #endregion Private Fields diff --git a/MP.SPEC/Pages/PODL.razor.cs b/MP.SPEC/Pages/PODL.razor.cs index 877c981f..0628c891 100644 --- a/MP.SPEC/Pages/PODL.razor.cs +++ b/MP.SPEC/Pages/PODL.razor.cs @@ -299,7 +299,7 @@ namespace MP.SPEC.Pages private List? ListAziende; private List? ListGruppiFase; private List? ListMacchine; - private List? ListStati; + private List? ListStati; private int nArtSearch = 5; #endregion Private Fields diff --git a/MP.SPEC/Pages/Podl2Kit.razor.cs b/MP.SPEC/Pages/Podl2Kit.razor.cs index 1fe4e55d..51d1cee7 100644 --- a/MP.SPEC/Pages/Podl2Kit.razor.cs +++ b/MP.SPEC/Pages/Podl2Kit.razor.cs @@ -250,7 +250,7 @@ namespace MP.SPEC.Pages private List? ListRecords; - private List? ListStati; + private List? ListStati; private int minChar = 2;