81 lines
1.9 KiB
C#
81 lines
1.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace EgtBEAMWALL.DataLayer.DatabaseModels
|
|
{
|
|
/// <summary>
|
|
/// Tabella di gestione dei PROTOTIPI dal file BTL (part + quantità)
|
|
/// </summary>
|
|
[Table("BTLPartList")]
|
|
public class BTLPartModel
|
|
{
|
|
/// <summary>
|
|
/// Chiave univoca
|
|
/// </summary>
|
|
[Key, Column("BTLPartDbId"), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int PartDbId { get; set; }
|
|
|
|
/// <summary>
|
|
/// PartId dal programma
|
|
/// </summary>
|
|
[Column("BTLPartId")]
|
|
public int PartId { get; set; }
|
|
|
|
[Column("BTLPart_PDN")]
|
|
public int PDN { get; set; } = 0;
|
|
|
|
[Column("BTLPart_DO")]
|
|
public bool DO { get; set; } = false;
|
|
|
|
[Column("BTLPart_NAM")]
|
|
public string NAM { get; set; } = "";
|
|
|
|
[Column("BTLPart_W")]
|
|
public double W { get; set; } = 0;
|
|
|
|
[Column("BTLPart_L")]
|
|
public double L { get; set; } = 0;
|
|
|
|
[Column("BTLPart_H")]
|
|
public double H { get; set; } = 0;
|
|
|
|
[Column("BTLPart_MAT")]
|
|
public string MAT { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Quantità richiesta
|
|
/// </summary>
|
|
[Column("BTLPart_CNT")]
|
|
public int CNT { get; set; } = 0;
|
|
|
|
[Column("BTLPart_TBP")]
|
|
public int TBP { get; set; } = 0;
|
|
|
|
[Column("BTLPart_DON")]
|
|
public int DON { get; set; } = 0;
|
|
|
|
[Column("BTLPart_ROT")]
|
|
public int ROT { get; set; } = 0;
|
|
|
|
[Column("BTLPart_GRP")]
|
|
public string GRP { get; set; } = "";
|
|
|
|
[Column("BTLPart_UNT")]
|
|
public int UNT { get; set; } = 0;
|
|
|
|
[Column("BTLPart_CalcState")]
|
|
public int CALC_State { get; set; } = -1;
|
|
|
|
[Column("ProjDbId")]
|
|
public int ProjDbId { get; set; }
|
|
|
|
[ForeignKey("ProjDbId")]
|
|
public ProjModel Project { get; set; }
|
|
|
|
}
|
|
}
|