update modello dati x prodItem child

This commit is contained in:
Samuele Locatelli
2025-11-19 18:58:31 +01:00
parent 9232d1db9c
commit 85e2dfe821
3 changed files with 24 additions and 7 deletions
@@ -20,7 +20,7 @@ namespace EgwCoreLib.Lux.Data.DbModel.Production
/// <summary>
/// Riga Ordine da cui scaturisce
/// </summary>
public int OrderRowID { get; set; }
public int OrderRowID { get; set; } = 0;
/// <summary>
/// CodArticolo (opzionale) numerico
@@ -33,9 +33,10 @@ namespace EgwCoreLib.Lux.Data.DbModel.Production
public string ExtItemCode { get; set; } = "";
/// <summary>
/// Batch di produzione cui è correlato
/// Batch di produzione cui è correlato (può essere nullo inizialmente e poi variato)
/// </summary>
public int ProductionBatchID { get; set; } = 0;
public int? ProductionBatchID { get; set; }
#if false
/// <summary>
/// Cod Fornitore (opzionale)
@@ -62,7 +63,13 @@ namespace EgwCoreLib.Lux.Data.DbModel.Production
/// </summary>
public string UM { get; set; } = "#";
#endif
/// <summary>
/// Etichetta dell'item
/// </summary>
public string ProdLabel
{
get => $"PT{ProdItemID:X8}";
}
/// <summary>
/// Navigazione OrderRow
@@ -74,7 +81,7 @@ namespace EgwCoreLib.Lux.Data.DbModel.Production
/// Navigazione Batch Produzione
/// </summary>
[ForeignKey("ProductionBatchID")]
public virtual ProductionBatchModel ProductionBatchNav { get; set; } = null!;
public virtual ProductionBatchModel? ProductionBatchNav { get; set; }
}
}