68 lines
1.8 KiB
C#
68 lines
1.8 KiB
C#
namespace EgwCoreLib.Lux.Data.DbModel.Stock
|
|
{
|
|
// <Auto-Generated>
|
|
// This is here so CodeMaid doesn't reorganize this document
|
|
// </Auto-Generated>
|
|
/// <summary>
|
|
/// Tabelal delle giacenze di magazzino
|
|
/// </summary>
|
|
|
|
[Table("stock_status")]
|
|
public class StockStatusModel
|
|
{
|
|
/// <summary>
|
|
/// Primary Key AUTO
|
|
/// </summary>
|
|
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int StockStatusId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Riferimento articolo
|
|
/// </summary>
|
|
public int ItemID { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// ProductivityRate in giacenza
|
|
/// </summary>
|
|
public double QtyAvail { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Bool per cancellazione logica
|
|
/// </summary>
|
|
public bool IsDeleted { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// Indica scarto
|
|
/// </summary>
|
|
public bool IsRemn { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Posizione logica magazzino (es S.01.03.05)
|
|
/// </summary>
|
|
public string Location { get; set; } = "";
|
|
|
|
|
|
#if false
|
|
[NotMapped]
|
|
public string ItemDtmx
|
|
{
|
|
get
|
|
{
|
|
string answ = $"MT99999999W{WMm * 10:000000}H{HMm * 10:000000}L{LMm * 10:000000}";
|
|
if (MaterialNav != null)
|
|
{
|
|
answ = $"MT{MaterialNav.MatId:00000000}W{WMm * 10:000000}H{HMm * 10:000000}L{LMm * 10:000000}";
|
|
}
|
|
return answ;
|
|
}
|
|
}
|
|
#endif
|
|
|
|
/// <summary>
|
|
/// Navigation per Item
|
|
/// </summary>
|
|
[ForeignKey("ItemID")]
|
|
public virtual ItemModel ItemNav { get; set; } = null!;
|
|
}
|
|
}
|