116 lines
2.9 KiB
C#
116 lines
2.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
namespace StockManMVC.Models
|
|
{
|
|
public class MovTypeMetadata
|
|
{
|
|
[StringLength(250)]
|
|
[Display(Name = "Tipo Movimento")]
|
|
public string Descr;
|
|
}
|
|
public class LocTypeMetadata
|
|
{
|
|
[StringLength(250)]
|
|
[Display(Name = "Tipo Locazione")]
|
|
public string Descr;
|
|
|
|
|
|
[Display(Name = "Fornitore")]
|
|
public bool IsFor;
|
|
[Display(Name = "Cliente")]
|
|
public bool IsCli;
|
|
[Display(Name = "Magazzino")]
|
|
public bool IsStock;
|
|
}
|
|
|
|
public class ItemFluxesMetadata
|
|
{
|
|
[Display(Name = "Posizione")]
|
|
public string LocationID;
|
|
|
|
[Display(Name = "Riferimento")]
|
|
public string ExtLocationID;
|
|
|
|
[Display(Name = "Quantità")]
|
|
public string Qta;
|
|
|
|
[Display(Name = "Importo")]
|
|
[Range(0.1D, 99.9D)]
|
|
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;
|
|
}
|
|
|
|
//public class ItemsMetadata
|
|
//{
|
|
// [StringLength(250)]
|
|
// [Display(Name = "Descrizione Articolo")]
|
|
// public string Descr;
|
|
|
|
// [StringLength(50)]
|
|
// [Display(Name = "Famiglia Articolo")]
|
|
// public string Family;
|
|
|
|
// [StringLength(250)]
|
|
// [Display(Name = "Descrizione Articolo Ext")]
|
|
// public string DescrExt;
|
|
|
|
// [StringLength(250)]
|
|
// [Display(Name = "Cod Articolo Ext")]
|
|
// public string CodExt;
|
|
|
|
// [StringLength(50)]
|
|
// [Display(Name = "Cod Articolo Int")]
|
|
// public string CodInt;
|
|
|
|
//}
|
|
|
|
public class ItemStocksMetadata
|
|
{
|
|
[Display(Name = "Giacenza (conf)")]
|
|
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 = "Posizione")]
|
|
//public String Desc;
|
|
|
|
[Display(Name = "Valore Articoli")]
|
|
[DisplayFormat(DataFormatString = "{0:C2}", ApplyFormatInEditMode = true)]
|
|
public String TotVal;
|
|
|
|
[Display(Name = "Tot num Articoli")]
|
|
public String TotCurr;
|
|
|
|
[Display(Name = "Mov. aperti")]
|
|
public String TotPend;
|
|
}
|
|
}
|