using static MagMan.Core.Enums;
namespace MagMan.Core.DTO
{
//
// This is here so CodeMaid doesn't reorganize this document
//
public class ProjectDTO
{
///
/// Key progetto (DB) / CLOUD
///
public int ProjCloudId { get; set; }
///
/// ID del DB EgtBW, univoco con KeyNum, (DB) / istanza locale
///
public int ProjLocalId { get; set; } = 0;
///
/// ID esterno (da EgtBW)
///
public int ProjExtId { get; set; } = 0;
///
/// Descrizione progetto (copiata da BTLFileName inizialmente)
///
public string ProjDescription { get; set; } = "";
///
/// Nome file BTL originale
///
public string BTLFileName { get; set; } = "";
///
/// Data Creazione progetto
///
public DateTime DtCreated { get; set; } = DateTime.Now;
///
/// Data ora ultima operazione registrata
///
public DateTime DtLastAction { get; set; } = DateTime.MinValue;
///
/// Data di schedulazione (prevista)
///
public DateTime DtSchedule { get; set; } = DateTime.MinValue;
///
/// Data Inizio Produzione
///
public DateTime DtStartProd { get; set; } = DateTime.MinValue;
///
/// Record attivo (se false == cancellazione logica)
///
public bool IsActive { get; set; } = true;
///
/// Stato Archiviato = NON visualizzabile normalmente, già prodotto/chiuso
///
public bool IsArchived { get; set; } = false;
///
/// Key di riferimento per il progetto
///
public int KeyNum { get; set; } = 0;
///
/// ListName del BTL
///
public string ListName { get; set; } = "";
///
/// Macchina (Costruttore/Modello)
///
public string Machine { get; set; } = "";
///
/// Id macchina (MagMan) DB / CLOUD
///
public int MachineCloudId { get; set; } = 0;
///
/// Tempo lavorazione previsto (stima) in minuti
///
public double ProcTimeEst { get; set; } = 0;
///
/// Tempo lavorazione reale in minuti (parziale o totale se chiuso/completato/archiviato)
///
public double ProcTimeReal { get; set; } = 0;
///
/// Tipologia del progetto (Travi, Pareti, ...)
///
public BWType PType { get; set; } = BWType.NULL;
}
}