From de1ff1398869c2cd13ca6e08c40e45b5004e3bdc Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 4 Sep 2024 19:19:14 +0200 Subject: [PATCH] Cleanup vari - if false - nuget non utilizzati - warnings - riorganizzazione codice interno chiamate x WRKLOG (in code behind) --- GPW.CORE.Api/GPW.CORE.Api.csproj | 5 +---- GPW.CORE.Api/Program.cs | 2 -- GPW.CORE.WRKLOG.old/Components/TimbrEditor.razor.cs | 8 +------- GPW.CORE.WRKLOG.old/Data/MessageService.cs | 10 ---------- GPW.CORE.WRKLOG/Components/Compo/TimbrEditor.razor.cs | 6 ------ GPW.CORE.WRKLOG/Data/MessageService.cs | 10 ---------- 6 files changed, 2 insertions(+), 39 deletions(-) diff --git a/GPW.CORE.Api/GPW.CORE.Api.csproj b/GPW.CORE.Api/GPW.CORE.Api.csproj index 4569e5b..810da91 100644 --- a/GPW.CORE.Api/GPW.CORE.Api.csproj +++ b/GPW.CORE.Api/GPW.CORE.Api.csproj @@ -19,10 +19,7 @@ - - - - + diff --git a/GPW.CORE.Api/Program.cs b/GPW.CORE.Api/Program.cs index 87b27b6..4749021 100644 --- a/GPW.CORE.Api/Program.cs +++ b/GPW.CORE.Api/Program.cs @@ -5,8 +5,6 @@ using Microsoft.AspNetCore.Localization; using NLog; using NLog.Web; using StackExchange.Redis; -using StackExchange.Redis.Extensions.Core.Configuration; -using StackExchange.Redis.Extensions.Newtonsoft; using System.Globalization; using System.Text.Json.Serialization; diff --git a/GPW.CORE.WRKLOG.old/Components/TimbrEditor.razor.cs b/GPW.CORE.WRKLOG.old/Components/TimbrEditor.razor.cs index c4d8734..65f52ec 100644 --- a/GPW.CORE.WRKLOG.old/Components/TimbrEditor.razor.cs +++ b/GPW.CORE.WRKLOG.old/Components/TimbrEditor.razor.cs @@ -79,7 +79,7 @@ namespace GPW.CORE.WRKLOG.old.Components ListTimbRich = new List(); } - // verifico se si trattasse di timbratura uscita da attività del giorno precedente... + // verifico se si trattasse di timbratura uscita da attivit� del giorno precedente... if (IsUscita) { // se il giorno precedente NON fosse stato chiuso... @@ -268,17 +268,11 @@ namespace GPW.CORE.WRKLOG.old.Components var firstRec = ListTimb.FirstOrDefault(); if (firstRec != null) { -#if false - //DataRif = firstRec.DataOra.Date.AddHours(adesso.Hour).AddMinutes(Math.Ceiling((double)adesso.Minute / 5) * 5); -#endif DataRif = CORE.Data.Utils.DateRounded(firstRec.DataOra.Date.AddHours(adesso.Hour).AddMinutes(adesso.Minute), 5, false); } } else if (DataRif > adesso.Date.AddDays(1).AddMinutes(-1)) { -#if false - //DataRif = DateTime.Today.AddHours(adesso.Hour).AddMinutes(Math.Ceiling((double)adesso.Minute / 5) * 5); -#endif DataRif = CORE.Data.Utils.DateRounded(DateTime.Today.AddHours(adesso.Hour).AddMinutes(adesso.Minute), 5, false); } await Task.Delay(1); diff --git a/GPW.CORE.WRKLOG.old/Data/MessageService.cs b/GPW.CORE.WRKLOG.old/Data/MessageService.cs index feb17b1..ae7d9ec 100644 --- a/GPW.CORE.WRKLOG.old/Data/MessageService.cs +++ b/GPW.CORE.WRKLOG.old/Data/MessageService.cs @@ -189,16 +189,6 @@ namespace GPW.CORE.WRKLOG.old.Data } } -#if false - private void ReportSearch() - { - if (EA_SearchUpdated != null) - { - EA_SearchUpdated?.Invoke(); - } - } -#endif - #endregion Private Methods } } \ No newline at end of file diff --git a/GPW.CORE.WRKLOG/Components/Compo/TimbrEditor.razor.cs b/GPW.CORE.WRKLOG/Components/Compo/TimbrEditor.razor.cs index 3f3047f..66a8a45 100644 --- a/GPW.CORE.WRKLOG/Components/Compo/TimbrEditor.razor.cs +++ b/GPW.CORE.WRKLOG/Components/Compo/TimbrEditor.razor.cs @@ -268,17 +268,11 @@ namespace GPW.CORE.WRKLOG.Components.Compo var firstRec = ListTimb.FirstOrDefault(); if (firstRec != null) { -#if false - //DataRif = firstRec.DataOra.Date.AddHours(adesso.Hour).AddMinutes(Math.Ceiling((double)adesso.Minute / 5) * 5); -#endif DataRif = CORE.Data.Utils.DateRounded(firstRec.DataOra.Date.AddHours(adesso.Hour).AddMinutes(adesso.Minute), 5, false); } } else if (DataRif > adesso.Date.AddDays(1).AddMinutes(-1)) { -#if false - //DataRif = DateTime.Today.AddHours(adesso.Hour).AddMinutes(Math.Ceiling((double)adesso.Minute / 5) * 5); -#endif DataRif = CORE.Data.Utils.DateRounded(DateTime.Today.AddHours(adesso.Hour).AddMinutes(adesso.Minute), 5, false); } await Task.Delay(1); diff --git a/GPW.CORE.WRKLOG/Data/MessageService.cs b/GPW.CORE.WRKLOG/Data/MessageService.cs index c4b008a..adc1526 100644 --- a/GPW.CORE.WRKLOG/Data/MessageService.cs +++ b/GPW.CORE.WRKLOG/Data/MessageService.cs @@ -189,16 +189,6 @@ namespace GPW.CORE.WRKLOG.Data } } -#if false - private void ReportSearch() - { - if (EA_SearchUpdated != null) - { - EA_SearchUpdated?.Invoke(); - } - } -#endif - #endregion Private Methods } } \ No newline at end of file