234 lines
5.4 KiB
C#
234 lines
5.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
namespace StockManMVC.Models
|
|
{
|
|
public class MovTypeMetadata
|
|
{
|
|
[Display(Name = "ID Univoco")]
|
|
[Required]
|
|
public string ID;
|
|
|
|
[StringLength(250)]
|
|
[Display(Name = "Tipo Movimento")]
|
|
[Required]
|
|
public string Descr;
|
|
|
|
[StringLength(50)]
|
|
[Display(Name = "Classe CSS")]
|
|
[Required]
|
|
public string CssClass;
|
|
}
|
|
public class LocTypeMetadata
|
|
{
|
|
[Display(Name = "ID Univoco")]
|
|
[Required]
|
|
public string ID;
|
|
|
|
[StringLength(250)]
|
|
[Display(Name = "Tipo Locazione")]
|
|
[Required]
|
|
public string Descr;
|
|
|
|
[Display(Name = "Fornitore")]
|
|
public bool IsFor;
|
|
[Display(Name = "Cliente")]
|
|
public bool IsCli;
|
|
[Display(Name = "Magazzino")]
|
|
public bool IsStock;
|
|
}
|
|
|
|
public class LocationMetadata
|
|
{
|
|
[Display(Name = "ID Univoco")]
|
|
[Required]
|
|
public string ID;
|
|
|
|
[StringLength(250)]
|
|
[Display(Name = "Descrizione")]
|
|
[Required]
|
|
public string Descr;
|
|
|
|
[Display(Name = "Tipo Locazione")]
|
|
[Required]
|
|
public string LocTypeID;
|
|
}
|
|
|
|
public class ItemFluxMetadata
|
|
{
|
|
[Display(Name = "ID Univoco")]
|
|
[Required]
|
|
public string ID;
|
|
|
|
[Display(Name = "Articolo")]
|
|
[Required]
|
|
public string ItemID;
|
|
|
|
[Display(Name = "Posizione")]
|
|
[Required]
|
|
public string LocationID;
|
|
|
|
[Display(Name = "Operazione")]
|
|
//[Required]
|
|
public string MovTypeID;
|
|
|
|
[Display(Name = "Riferimento")]
|
|
[Required]
|
|
public string ExtLocationID;
|
|
|
|
[Display(Name = "Quantità")]
|
|
[Required]
|
|
public string Qta;
|
|
|
|
[Display(Name = "Cod. Documento")]
|
|
public string CodDoc;
|
|
|
|
[Display(Name = "Importo")]
|
|
[Required]
|
|
[DataType(DataType.Currency)]
|
|
public string TotValue;
|
|
|
|
[Display(Name = "Data Documento")]
|
|
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
|
|
[DataType(DataType.Date)]
|
|
public DateTime dtMov;
|
|
|
|
[Display(Name = "Data Conferma")]
|
|
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
|
|
[DataType(DataType.Date)]
|
|
public Nullable<System.DateTime> dtExport;
|
|
|
|
|
|
[Display(Name = "Operatore")]
|
|
public string OperatorID;
|
|
}
|
|
|
|
public class ItemMetadata
|
|
{
|
|
[Display(Name = "ID Univoco")]
|
|
[Required]
|
|
public string ID;
|
|
|
|
[StringLength(250)]
|
|
[Display(Name = "Descr. Articolo")]
|
|
[Required]
|
|
public string Descr;
|
|
|
|
[StringLength(50)]
|
|
[Display(Name = "Cod. Articolo")]
|
|
[Required]
|
|
public string CodInt;
|
|
|
|
[StringLength(50)]
|
|
[Display(Name = "Fam. Articolo")]
|
|
[Required]
|
|
public string ItemFamilyID;
|
|
|
|
[StringLength(250)]
|
|
[Display(Name = "Cod. Fornitore")]
|
|
public string CodExt;
|
|
|
|
|
|
[StringLength(250)]
|
|
[Display(Name = "Descr. Fornitore")]
|
|
public string DescrExt;
|
|
|
|
|
|
[Display(Name = "Giacenza Minima")]
|
|
public string QtaMin;
|
|
|
|
[Display(Name = "Giacenza")]
|
|
public string QtaPend;
|
|
|
|
[Display(Name = "Lotto acquisto")]
|
|
public string QtaBatch;
|
|
|
|
[Display(Name = "Valore unit.")]
|
|
[DisplayFormat(DataFormatString = "{0:C2}", ApplyFormatInEditMode = false)]
|
|
public string CurrValue;
|
|
|
|
[Display(Name = "Unità di Misura")]
|
|
public string UM;
|
|
|
|
}
|
|
|
|
public class ItemFamilyMetadata
|
|
{
|
|
[Display(Name = "ID Univoco")]
|
|
[Required]
|
|
public string ID;
|
|
|
|
[StringLength(250)]
|
|
[Display(Name = "Categoria")]
|
|
[Required]
|
|
public string Descr;
|
|
|
|
[Display(Name = "# Articoli")]
|
|
public string NumItems;
|
|
}
|
|
|
|
public class ItemStockMetadata
|
|
{
|
|
[Display(Name = "ID Univoco")]
|
|
[Required]
|
|
public string ID;
|
|
|
|
[Display(Name = "Giacenza")]
|
|
[Required]
|
|
public string QtyConf;
|
|
|
|
[Display(Name = "Note")]
|
|
public string Note;
|
|
|
|
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
|
|
[DataType(DataType.Date)]
|
|
[Display(Name = "Data mod.")]
|
|
public Nullable<System.DateTime> dtLastUpd;
|
|
}
|
|
|
|
public class vLocationMetadata
|
|
{
|
|
[Display(Name = "Posizione")]
|
|
public String Desc;
|
|
}
|
|
|
|
public class vLocationValMetadata
|
|
{
|
|
[Display(Name = "Valore Articoli")]
|
|
[DisplayFormat(DataFormatString = "{0:C2}", ApplyFormatInEditMode = true)]
|
|
public String TotVal;
|
|
|
|
[Display(Name = "Articoli")]
|
|
public String NumArt;
|
|
|
|
[Display(Name = "Giacenza (qta tot)")]
|
|
public String TotCurr;
|
|
|
|
[Display(Name = "Mov. aperti")]
|
|
public String TotPend;
|
|
}
|
|
|
|
public class OperatorMetadata
|
|
{
|
|
[Display(Name = "ID Univoco")]
|
|
[Required]
|
|
public string ID;
|
|
|
|
[Display(Name = "ID esterno")]
|
|
[Required]
|
|
public String CodExt;
|
|
|
|
[Display(Name = "Cognome")]
|
|
[Required]
|
|
public String LastName;
|
|
|
|
[Display(Name = "Nome")]
|
|
[Required]
|
|
public String FirstName;
|
|
|
|
}
|
|
}
|