Bozza pagina DDB
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
#nullable disable
|
||||
|
||||
@@ -16,6 +18,18 @@ namespace MP.Data.DatabaseModels
|
||||
public DateTime? DataTurnoFine { get; set; }
|
||||
public DateTime? DataTurnoInizio { get; set; }
|
||||
public string Descrizione { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
[DisplayFormat(DataFormatString = "{0:N2}", ApplyFormatInEditMode = true)]
|
||||
public long? DurataMin
|
||||
{
|
||||
get
|
||||
{
|
||||
long answ = (long)(DurataStato != null ? DurataStato : 0);
|
||||
return answ / 60000;
|
||||
}
|
||||
}
|
||||
|
||||
public long? DurataPeriodo { get; set; }
|
||||
public long? DurataStato { get; set; }
|
||||
public DateTime? FinePeriodo { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user