67 lines
1.7 KiB
C#
67 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Lux.Data.DbModel
|
|
{
|
|
[Table("AnagArticoli")]
|
|
public class ArticoloModel
|
|
{
|
|
/// <summary>
|
|
/// ID dell'articolo
|
|
/// </summary>
|
|
[Key]
|
|
public int ArtID { get; set; }
|
|
|
|
/// <summary>
|
|
/// Definisce l'articolo come servizio vs concreto=materiale
|
|
/// </summary>
|
|
public bool IsService { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// Articolo di produzione (vs da acquisto)
|
|
/// </summary>
|
|
public bool IsMake { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// CodArticolo (opzionale) numerico
|
|
/// </summary>
|
|
public int CodArt { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// CodArticolo (opzionale) string
|
|
/// </summary>
|
|
public string CodArtExt { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Cod Parlante (opzionale) Articolo
|
|
/// </summary>
|
|
public string CodParl { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Cod Fornitore (opzionale)
|
|
/// </summary>
|
|
public string CodFornitore { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Descrizione
|
|
/// </summary>
|
|
public string Description { get; set; } = "";
|
|
|
|
/// <summary>
|
|
/// Costo (standard / senza listini)
|
|
/// </summary>
|
|
public double Cost { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// Margine percentuale standard
|
|
/// </summary>
|
|
public double Margin { get; set; } = 0.1;
|
|
|
|
}
|
|
}
|