96 lines
2.7 KiB
C#
96 lines
2.7 KiB
C#
using EgwCoreLib.Lux.Data.DbModel.Sales;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace EgwCoreLib.Lux.Data.DbModel.Production
|
|
{
|
|
// <Auto-Generated>
|
|
// This is here so CodeMaid doesn't reorganize this document
|
|
// </Auto-Generated>
|
|
|
|
[Table("production_item")]
|
|
public class ProductionItemModel
|
|
{
|
|
/// <summary>
|
|
/// ID dell'articolo
|
|
/// </summary>
|
|
[Key]
|
|
public int ProdItemID { get; set; }
|
|
|
|
/// <summary>
|
|
/// Riga Ordine da cui scaturisce
|
|
/// </summary>
|
|
public int OrderRowID { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// CodArticolo (opzionale) numerico
|
|
/// </summary>
|
|
public int ItemCode { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// CodArticolo (opzionale) string
|
|
/// </summary>
|
|
public string ExtItemCode { get; set; } = "";
|
|
|
|
#if false
|
|
/// <summary>
|
|
/// Riferimento al record di ProductionAssign impiegato per effettuare le assegnazioni di produzione
|
|
/// </summary>
|
|
public int? ProdAssignID { get; set; }
|
|
#endif
|
|
|
|
/// <summary>
|
|
/// Riferimento al record di ProductionGrou impiegato per effettuare le assegnazioni di produzione
|
|
/// </summary>
|
|
public int? ProdGroupID { get; set; }
|
|
|
|
/// <summary>
|
|
/// Batch di produzione cui è correlato (può essere nullo inizialmente e poi variato)
|
|
/// </summary>
|
|
public int? ProductionBatchID { get; set; }
|
|
|
|
/// <summary>
|
|
/// Tempo produzione stimato
|
|
/// </summary>
|
|
public double EstimTime { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Etichetta dell'item
|
|
/// </summary>
|
|
public string ProdLabel { get; set; } = "";
|
|
#if false
|
|
public string ProdLabel
|
|
{
|
|
get => $"PT{ProdItemID:X8}";
|
|
}
|
|
|
|
#endif
|
|
/// <summary>
|
|
/// Navigazione OrderRow
|
|
/// </summary>
|
|
[ForeignKey("OrderRowID")]
|
|
public virtual OrderRowModel OrderRowNav { get; set; } = null!;
|
|
|
|
#if false
|
|
/// <summary>
|
|
/// Navigazione Batch Produzione
|
|
/// </summary>
|
|
[ForeignKey("ProdAssignID")]
|
|
public virtual ProductionAssignModel? ProductionAssignNav { get; set; }
|
|
#endif
|
|
|
|
/// <summary>
|
|
/// Navigazione ProdGroup
|
|
/// </summary>
|
|
[ForeignKey("ProdGroupID")]
|
|
public virtual ProductionGroupModel? ProductionGroupNav { get; set; }
|
|
|
|
/// <summary>
|
|
/// Navigazione Batch Produzione
|
|
/// </summary>
|
|
[ForeignKey("ProductionBatchID")]
|
|
public virtual ProductionBatchModel? ProductionBatchNav { get; set; }
|
|
|
|
}
|
|
}
|