update modello dati x prodItem child
This commit is contained in:
@@ -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; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user