Files
lux/EgwCoreLib.Lux.Data/DbModel/Production/ProductionODLModel.cs
T

118 lines
3.2 KiB
C#

using EgwCoreLib.Lux.Data.DbModel.Cost;
using EgwCoreLib.Lux.Data.DbModel.Task;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// <Auto-Generated>
// This is here so CodeMaid doesn't reorganize this document
// </Auto-Generated>
namespace EgwCoreLib.Lux.Data.DbModel.Production
{
/// <summary>
/// Tabella delle fasi di lavorazione x ogni item da produrre
/// </summary>
[Table("production_odl")]
public class ProductionODLModel
{
/// <summary>
/// ID del record
/// </summary>
[Key]
public int ProdODLID { get; set; }
/// <summary>
/// Codice calcolato (16 char)
/// - tipo (ODL.)
/// - anno (yyyy)
/// - id annuale (00000000x8)
/// es: "ODL.20250012AF
/// </summary>
public string OdlTag { get; set; } = "";
/// <summary>
/// BatchID di appartenenza
/// </summary>
public int? ProdBatchID { get; set; }
/// <summary>
/// Indice della fase all'interno del Job x produrre item
/// </summary>
public int Index { get; set; } = 0;
/// <summary>
/// ID della fase realizzata
/// </summary>
public int? PhaseID { get; set; }
/// <summary>
/// ID della risorsa impiegata
/// </summary>
public int? ResourceID { get; set; }
/// <summary>
/// Codice Plant
/// </summary>
public string ProdPlantCod { get; set; } = "";
/// <summary>
/// Descrizione della fase del Job
/// </summary>
public string Description { get; set; } = "";
/// <summary>
/// Margine percentuale standard
/// </summary>
public double Qty { get; set; } = 1;
/// <summary>
/// DataOra inizio effettivo
/// </summary>
public DateTime? DateStart { get; set; } = null;
/// <summary>
/// DataOra fine
/// </summary>
public DateTime? DateEnd { get; set; } = null;
/// <summary>
/// Tempo di lavorazione Stimato
/// </summary>
public decimal EstimTime { get; set; } = 0;
/// <summary>
/// Tempo di lavorazione netto (non solo inizio fine ma al netto di pause/spento)
/// </summary>
public decimal WorkTime { get; set; } = 0;
#if false
/// <summary>
/// Navigazione sui Batch
/// </summary>
[ForeignKey("ProdBatchID")]
public virtual ProductionBatchModel? ProdBatchNav { get; set; }
/// <summary>
/// Navigazione Job/Cicli
/// </summary>
[ForeignKey("PhaseID")]
public virtual PhaseModel? PhaseNav { get; set; }
/// <summary>
/// Navigazione Job/Cicli
/// </summary>
[ForeignKey("ResourceID")]
public virtual ResourceModel? ResourceNav { get; set; }
#endif
/// <summary>
/// Navigazione verso tabella Item2Odl
/// </summary>
public ICollection<ProductionItem2ODLModel> Item2OdlNav { get; set; } = new List<ProductionItem2ODLModel>();
}
}