57 lines
1.6 KiB
C#
57 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace GPW.CORE.Data.DbModels
|
|
{
|
|
// <Auto-Generated>
|
|
// This is here so CodeMaid doesn't reorganize this document
|
|
// </Auto-Generated>
|
|
public partial class CalcOreProgettiModel
|
|
{
|
|
|
|
[Key]
|
|
public int IdxProgetto { get; set; }
|
|
public int IdxCliente { get; set; }
|
|
public string NomeProj { get; set; } = "";
|
|
public string DescrProj { get; set; } = "";
|
|
public int OldIdx { get; set; }
|
|
public bool? Attivo { get; set; }
|
|
/// <summary>
|
|
/// codice esterno
|
|
/// </summary>
|
|
public string CodExt { get; set; } = "";
|
|
public DateTime Avvio { get; set; }
|
|
public DateTime Chiusura { get; set; }
|
|
public string Gruppo { get; set; } = "";
|
|
|
|
public string RagSociale { get; set; } = "";
|
|
public decimal budgetTime { get; set; } = 0;
|
|
public decimal budgetMoney { get; set; } = 0;
|
|
public decimal totOre { get; set; } = 0;
|
|
public decimal totOrePrevMont { get; set; } = 0;
|
|
public decimal totOreLast30 { get; set; } = 0;
|
|
|
|
[NotMapped]
|
|
public decimal percUsed
|
|
{
|
|
get
|
|
{
|
|
decimal answ = 0;
|
|
decimal denom = budgetTime > 0 ? budgetTime : 1;
|
|
answ = totOre / denom;
|
|
return answ;
|
|
}
|
|
}
|
|
[NotMapped]
|
|
public decimal timeRem
|
|
{
|
|
get
|
|
{
|
|
return budgetTime - totOre;
|
|
}
|
|
}
|
|
}
|
|
}
|