Aggiunto display ferie su smart
This commit is contained in:
@@ -203,9 +203,10 @@ namespace GPW.CORE.Smart.Components
|
||||
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";
|
||||
string cssFerie = "bg-success text-light px-0 opacity-50";
|
||||
|
||||
// recupero le fermate aziendali
|
||||
if (ListFermateAzienda!=null && ListFermateAzienda.Count > 0)
|
||||
if (ListFermateAzienda != null && ListFermateAzienda.Count > 0)
|
||||
{
|
||||
string cssSpec = "";
|
||||
foreach (var item in ListFermateAzienda)
|
||||
@@ -222,6 +223,30 @@ namespace GPW.CORE.Smart.Components
|
||||
}
|
||||
}
|
||||
|
||||
// aggiungo ferie dipendente
|
||||
if (ListRecordsRichieste != null && ListRecordsRichieste.Count > 0)
|
||||
{
|
||||
string cssSpec = "";
|
||||
foreach (var item in ListRecordsRichieste)
|
||||
{
|
||||
cssSpec = item.CodGiust == "FER" ? cssFerie : "";
|
||||
// creo il set di date
|
||||
int numDay = item.DtEnd.Subtract(item.DtStart).Days;
|
||||
for (int i = 0; i <= numDay; i++)
|
||||
{
|
||||
DateTime currDay = item.DtStart.AddDays(i);
|
||||
if (!DateCFF.ContainsKey(currDay))
|
||||
{
|
||||
if (currDay.DayOfWeek != DayOfWeek.Saturday && currDay.DayOfWeek != DayOfWeek.Sunday)
|
||||
{
|
||||
DateCFF.Add(currDay, cssSpec);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (ListRecords != null)
|
||||
{
|
||||
string currCss = "";
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<Version>3.0.2311.0709</Version>
|
||||
<Version>3.0.2312.0708</Version>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<PackageProjectUrl>www.egalware.com</PackageProjectUrl>
|
||||
<Description>GPW Smart UI</Description>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>GPW - Gestione Presenze Web</i>
|
||||
<h4>Versione: 3.0.2312.0618</h4>
|
||||
<h4>Versione: 3.0.2312.0708</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
3.0.2312.0618
|
||||
3.0.2312.0708
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>3.0.2312.0618</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/GPW/stable/GPW.UI.zip</url>
|
||||
<version>3.0.2312.0708</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/GPW/stable/GPW.Smart.zip</url>
|
||||
<changelog>http://nexus.steamware.net/repository/SWS/GPW/stable/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
</item>
|
||||
|
||||
Reference in New Issue
Block a user