Cleanup vari
- if false - nuget non utilizzati - warnings - riorganizzazione codice interno chiamate x WRKLOG (in code behind)
This commit is contained in:
@@ -19,10 +19,7 @@
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="NLog.Web.AspNetCore" Version="5.3.12" />
|
||||
<PackageReference Include="StackExchange.Redis" Version="2.8.12" />
|
||||
<PackageReference Include="StackExchange.Redis.Extensions.AspNetCore" Version="9.1.0" />
|
||||
<PackageReference Include="StackExchange.Redis.Extensions.Core" Version="9.1.0" />
|
||||
<PackageReference Include="StackExchange.Redis.Extensions.Newtonsoft" Version="9.1.0" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.7.3" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\GPW.CORE.Data\GPW.CORE.Data.csproj" />
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace GPW.CORE.WRKLOG.old.Components
|
||||
ListTimbRich = new List<TimbratureModel>();
|
||||
}
|
||||
|
||||
// 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);
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user