Files
2022-04-21 18:07:59 +02:00

41 lines
1000 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GPW.CORE.Data.DTO
{
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
public class PeriodoDTO
{
public DateTime Inizio { get; set; }
public DateTime Fine { get; set; }
public TipoPeriodo Tipo { get; set; } = TipoPeriodo.ND;
public bool IsClosed { get; set; } = false;
public decimal? OreTot { get; set; }
public TimeSpan Durata
{
get
{
TimeSpan valore = TimeSpan.FromHours(0);
if (OreTot != null)
{
try
{
valore = TimeSpan.FromHours((double)OreTot);
}
catch
{ }
}
return valore;
}
}
}
}