diff --git a/GPW.CORE.Api/Data/ApiDataService.cs b/GPW.CORE.Api/Data/ApiDataService.cs
index ad9d840..72659e5 100644
--- a/GPW.CORE.Api/Data/ApiDataService.cs
+++ b/GPW.CORE.Api/Data/ApiDataService.cs
@@ -8,7 +8,7 @@ using System.Diagnostics;
namespace GPW.CORE.Api.Data
{
- public class ApiDataService
+ public class ApiDataService : IDisposable
{
#region Public Fields
diff --git a/GPW.CORE.SMART/Components/Calendario.razor b/GPW.CORE.SMART/Components/Calendario.razor
index 0d7de82..bdcf854 100644
--- a/GPW.CORE.SMART/Components/Calendario.razor
+++ b/GPW.CORE.SMART/Components/Calendario.razor
@@ -9,7 +9,7 @@ else
{
-
+
@if (showDetail)
{
diff --git a/GPW.CORE.SMART/Components/Calendario.razor.cs b/GPW.CORE.SMART/Components/Calendario.razor.cs
index d384db8..dbcabe7 100644
--- a/GPW.CORE.SMART/Components/Calendario.razor.cs
+++ b/GPW.CORE.SMART/Components/Calendario.razor.cs
@@ -1,7 +1,9 @@
+using EgwCoreLib.Razor.Data;
using GPW.CORE.Data;
using GPW.CORE.Data.DbModels;
using GPW.CORE.Data.DTO;
using GPW.CORE.Smart.Data;
+using GPW.CORE.Smart.Pages;
using Microsoft.AspNetCore.Components;
namespace GPW.CORE.Smart.Components
@@ -29,6 +31,19 @@ namespace GPW.CORE.Smart.Components
}
}
+ [Parameter]
+ public List? ListFermateAzienda
+ {
+ get => listCFF;
+ set
+ {
+ if (listCFF != value)
+ {
+ listCFF = value;
+ }
+ }
+ }
+
[Parameter]
public List? ListRecordsRichieste
{
@@ -47,11 +62,14 @@ namespace GPW.CORE.Smart.Components
#endregion Public Properties
+ private Dictionary DateCFF = new Dictionary();
+
#region Public Methods
public void Dispose()
{
DateCheck = new Dictionary();
+ DateCFF = new Dictionary();
ListRecords = null;
listRecordsRichieste = null;
GC.Collect();
@@ -109,6 +127,7 @@ namespace GPW.CORE.Smart.Components
private DateTime dtCurr { get; set; } = DateTime.Today;
private List? listRecords { get; set; } = null;
+ private List? listCFF { get; set; } = null;
private List? listRecordsRichieste { get; set; } = null;
@@ -178,9 +197,31 @@ namespace GPW.CORE.Smart.Components
private void ReloadData()
{
DateCheck = new Dictionary();
+ DateCFF = new Dictionary();
string cssOkComm = "bg-success text-light rounded-circle p-2";
string cssOkLav = "bg-warning text-light rounded-circle p-2";
string cssToday = "bg-info text-dark rounded-circle p-2";
+ string cssFest = "bg-danger text-warning rounded-pill2 px-0 opacity-50";
+ string cssChius = "bg-warning text-dark rounded-pill2 px-0 opacity-50";
+
+ // recupero le fermate aziendali
+ if (ListFermateAzienda!=null && ListFermateAzienda.Count > 0)
+ {
+ string cssSpec = "";
+ foreach (var item in ListFermateAzienda)
+ {
+
+ cssSpec = item.codGiust == "FEST" ? cssFest : cssChius;
+ if (!DateCFF.ContainsKey(item.data))
+ {
+ if (item.data.DayOfWeek != DayOfWeek.Saturday && item.data.DayOfWeek != DayOfWeek.Sunday)
+ {
+ DateCFF.Add(item.data, cssSpec);
+ }
+ }
+ }
+ }
+
if (ListRecords != null)
{
string currCss = "";
diff --git a/GPW.CORE.SMART/Components/CompTimbra.razor b/GPW.CORE.SMART/Components/CompTimbra.razor
index ebd7e1a..351d437 100644
--- a/GPW.CORE.SMART/Components/CompTimbra.razor
+++ b/GPW.CORE.SMART/Components/CompTimbra.razor
@@ -21,7 +21,7 @@ else
}
diff --git a/GPW.CORE.SMART/Components/CompTimbra.razor.cs b/GPW.CORE.SMART/Components/CompTimbra.razor.cs
index ff7be13..6d150b4 100644
--- a/GPW.CORE.SMART/Components/CompTimbra.razor.cs
+++ b/GPW.CORE.SMART/Components/CompTimbra.razor.cs
@@ -23,6 +23,7 @@ namespace GPW.CORE.Smart.Components
MService.EA_CalModeChanged -= MService_EA_CalModeChanged;
listRecords = null;
listRecordsRichieste = null;
+ listCFF = null;
GC.Collect();
}
@@ -63,6 +64,7 @@ namespace GPW.CORE.Smart.Components
private List
? listRecords = null;
private List? listRecordsRichieste = null;
+ private List? listCFF { get; set; } = null;
#endregion Private Fields
@@ -145,6 +147,7 @@ namespace GPW.CORE.Smart.Components
DateTime MeseEnd = MeseStart.AddMonths(1);
listRecords = await CDService.DailyDetails(IdxDipCurr, MeseStart, MeseEnd);
listRecordsRichieste = await CDService.RegRichiesteGetByDip(IdxDipCurr, MeseStart, MeseEnd);
+ listCFF = await CDService.CalFestFeriePeriodo(MeseStart, MeseEnd);
// recupero dati che mi servono...
await updateNextTimb();
await Task.Delay(25);
diff --git a/GPW.CORE.SMART/GPW.CORE.SMART.csproj b/GPW.CORE.SMART/GPW.CORE.SMART.csproj
index 2bbc843..72edabd 100644
--- a/GPW.CORE.SMART/GPW.CORE.SMART.csproj
+++ b/GPW.CORE.SMART/GPW.CORE.SMART.csproj
@@ -3,7 +3,7 @@
net6.0
enable
- 3.0.2304.0309
+ 3.0.2304.2019
enable
www.egalware.com
GPW Smart UI
diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html
index 27d4812..5df1d0d 100644
--- a/Resources/ChangeLog.html
+++ b/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
GPW - Gestione Presenze Web
- Versione: 3.0.2304.1116
+ Versione: 3.0.2304.2019
Note di rilascio:
-
diff --git a/Resources/VersNum.txt b/Resources/VersNum.txt
index e8333be..ab5c457 100644
--- a/Resources/VersNum.txt
+++ b/Resources/VersNum.txt
@@ -1 +1 @@
-3.0.2304.1116
+3.0.2304.2019
diff --git a/Resources/manifest.xml b/Resources/manifest.xml
index 1eb384e..a4b659b 100644
--- a/Resources/manifest.xml
+++ b/Resources/manifest.xml
@@ -1,7 +1,7 @@
-
- 3.0.2304.1116
- http://nexus.steamware.net/repository/SWS/GPW/stable/GPW.UI.zip
+ 3.0.2304.2019
+ http://nexus.steamware.net/repository/SWS/GPW/stable/GPW.Smart.zip
http://nexus.steamware.net/repository/SWS/GPW/stable/ChangeLog.html
false