using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GPW.CORE.Data.DTO { // // This is here so CodeMaid doesn't reorganize this document // 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 (Exception exc) { } } return valore; } } } }