using System;
using System.ComponentModel.DataAnnotations;
using System.Collections.Generic;
using Siegfried.Base;
 
namespace Siegfried.Entities
{
    public partial class ComposicionProductos : BaseModel
    {

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "")]
        public Int32 Id { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "")]
        public Int32 ProductID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "")]
        public Int32 ComposicionID { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "")]
        public Decimal Cantidad { get; set; }


    }
	public partial class KitsDetails : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 KitId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ProductID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal Quantity { get; set; }


	}

	public partial class Brands : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 Id { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Name { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String WebPage { get; set; }


		/// <summary>
		/// Kits - BrandId
		/// </summary>
		public List<Kits> Kits()
		{
			using (var dap = new KitsDap(DbConnection, true))
			{
				return dap.GetByBrandId(Id);
			}
		}
	}

	public partial class Categories : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 Id { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "")]
        public Int32 DepartmentID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Name { get; set; }


		/// <summary>
		/// SubCategories - CategoryId
		/// </summary>
		public List<SubCategories> SubCategories()
		{
			using (var dap = new SubCategoriesDap(DbConnection, true))
			{
				return dap.GetByCategoryId(Id);
			}
		}
	}

	public partial class SubCategories : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 Id { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 CategoryId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Name { get; set; }


		/// <summary>
		/// Kits - SubCategoryId
		/// </summary>
		public List<Kits> Kits()
		{
			using (var dap = new KitsDap(DbConnection, true))
			{
				return dap.GetBySubCategoryId(Id);
			}
		}
		/// <summary>
		/// Categories - CategoryId
		/// </summary>
		public Categories Categories()
		{
			using (var dap = new CategoriesDap(DbConnection, true))
			{
				return dap.GetById(CategoryId);
			}
		}
	}

	public partial class PriceLevels : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 Id { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Name { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Boolean IsProtected { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String ProtectionWord { get; set; }


		/// <summary>
		/// KitsPrices - PriceLevelId
		/// </summary>
		public List<KitsPrices> KitsPrices()
		{
			using (var dap = new KitsPricesDap(DbConnection, true))
			{
				return dap.GetByPriceLevelId(Id);
			}
		}
		/// <summary>
		/// Prices - PriceLevelId
		/// </summary>
		public List<Prices> Prices()
		{
			using (var dap = new PricesDap(DbConnection, true))
			{
				return dap.GetByPriceLevelId(Id);
			}
		}
	}

	public partial class Prices : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 Id { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ProductId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal Price { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? PriceLevelId { get; set; }


		/// <summary>
		/// PriceLevels - PriceLevelId
		/// </summary>
		public PriceLevels PriceLevels()
		{
			using (var dap = new PriceLevelsDap(DbConnection, true))
			{
				if (PriceLevelId != null)
					return dap.GetById(PriceLevelId.Value);
				return null;
			}
		}
	}

	public partial class Inventory : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int64 ID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ProductID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 MovementType { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal LastQuantity { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "")]
        public Decimal Entrada { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "")]
        public Decimal Salida { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal MovementQuantity { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal NewQuantity { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public DateTime MovementDate { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? UserID { get; set; }


	}

	public partial class Folios : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Serie { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 FolioDiario { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 FolioGlobal { get; set; }


	}

	public partial class Sales : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 Id { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public DateTime SaleDate { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? ClientId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal SubTotalBeforeDiscount { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal IVABeforeDiscount { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal TotalBeforeDiscount { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Notes { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 SaleNumber { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 OperationDateId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 DiscountPercentage { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal DiscountTotal { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal SubTotalAfterDiscount { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal IVAAfterDiscount { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal TotalAfterDiscount { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Boolean Cancelled { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String CancellationReason { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String DiscountReason { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Feedback { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? VendedorID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? CajeroID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? DailyCounter { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String TerminalSerial { get; set; }


	}

	public partial class SaleDetails : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 Id { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 SaleId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Boolean? IsKit { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ProductId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal Price { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 PriceLevelId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal Quantity { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal IVA { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal SubTotal { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal Total { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Boolean HasTaxes { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? DiscountPercentage { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? DiscountTotal { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? SubTotalBeforeDiscount { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? IVABeforeDiscount { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? TotalBeforeDiscount { get; set; }


	}

	public partial class OperationDates : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 Id { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public DateTime OpeningDate { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? OpeningDay { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? OpeningMonth { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? OpeningYear { get; set; }


	}

	public partial class Departments : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Name { get; set; }


	}

	public partial class Colors : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Name { get; set; }


	}

	public partial class Sizes : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Name { get; set; }


	}

	public partial class Pagos : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 SaleID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String FormaPago { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal TotalPagado { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Referencia { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? Cambio { get; set; }


	}

	public partial class Providers : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 Id { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Name { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String PublicName { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String ContactName { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String EMail { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String WebPage { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Telephone { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Fax { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Address { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Notes { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Shortcut { get; set; }


	}

	public partial class Kits : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 Id { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Name { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Description { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Code { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String BarCode { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? BrandId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? DepartmentId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? SubCategoryId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? ColorId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? SizeId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Boolean HasTaxes { get; set; }


		/// <summary>
		/// Brands - BrandId
		/// </summary>
		public Brands Brands()
		{
			using (var dap = new BrandsDap(DbConnection, true))
			{
				if (BrandId != null)
					return dap.GetById(BrandId.Value);
				return null;
			}
		}
		/// <summary>
		/// SubCategories - SubCategoryId
		/// </summary>
		public SubCategories SubCategories()
		{
			using (var dap = new SubCategoriesDap(DbConnection, true))
			{
				if (SubCategoryId != null)
					return dap.GetById(SubCategoryId.Value);
				return null;
			}
		}
		/// <summary>
		/// KitsPrices - KitId
		/// </summary>
		public List<KitsPrices> KitsPrices()
		{
			using (var dap = new KitsPricesDap(DbConnection, true))
			{
				return dap.GetByKitId(Id);
			}
		}
	}

	public partial class KitsPrices : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 Id { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 KitId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal Price { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? PriceLevelId { get; set; }


		/// <summary>
		/// Kits - KitId
		/// </summary>
		public Kits Kits()
		{
			using (var dap = new KitsDap(DbConnection, true))
			{
				return dap.GetById(KitId);
			}
		}
		/// <summary>
		/// PriceLevels - PriceLevelId
		/// </summary>
		public PriceLevels PriceLevels()
		{
			using (var dap = new PriceLevelsDap(DbConnection, true))
			{
				if (PriceLevelId != null)
					return dap.GetById(PriceLevelId.Value);
				return null;
			}
		}
	}

	public partial class Rol : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Nombre { get; set; }


	}

	public partial class RolPermiso : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 RolID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 PermisoID { get; set; }


	}

	public partial class Usuario : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String NombreCorto { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String NombreCompleto { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 RolID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Contrasenia { get; set; }


	}

	public partial class Products : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 Id { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Name { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Description { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Code { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String BarCode { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String SupplierCode { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? BrandId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? DepartmentId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "")]
        public Int32? CategoryId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? SubCategoryId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? ColorId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? SizeId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Boolean HasTaxes { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Boolean? Inventoried { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? LastCost { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? AverageCost { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? MaxCost { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? MinCost { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? DisCost { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? SupplierDiscount { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? SuggestedPrice { get; set; }


        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "")]
        public String RutaImagen { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "")]
        public Boolean EsConsolidador { get; set; }
	}

	public partial class PurchaseOrders : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public DateTime PODate { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 VendorID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Notes { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Boolean Sent { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Boolean PartiallyReceived { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Boolean Received { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Boolean Paid { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? Total { get; set; }


	}

	public partial class Customers : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String RazonSocial { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String RFC { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Direccion { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Ciudad { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Estado { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String CP { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Telefono { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String EMail { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String NombreContacto { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public DateTime? Cumpleaños { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "")]
        public decimal LineaDeCredito { get; set; }
	}

	public partial class PODetails : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 POID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ItemID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal Quantity { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal UnitCost { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? DiscountedUnitCost { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? Total { get; set; }


	}

	public partial class CreditNotes : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 SellID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ClientID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public DateTime NoteDate { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? Amount { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String InvoiceNumber { get; set; }


	}

	public partial class Creditos : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ClienteID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 SaleID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public DateTime FechaAperturaCredito { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public DateTime FechaLimiteLiquidacion { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal TotalAdeudado { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public DateTime? FechaUltimoPago { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal MontoUltimoPago { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? SaldoActual { get; set; }


	}

	public partial class PagosDeCreditos : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 CreditoID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public DateTime FechaPago { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal MontoPagado { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal SaldoAdeudado { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 UsuarioRecibio { get; set; }


	}

	public partial class vwKitsDetails : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 Id { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 ProductID { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Name { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal Quantity { get; set; }


	}

	public partial class vwKitsPrices : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 Id { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? Price { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? PriceLevelId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Name { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Boolean? IsProtected { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String ProtectionWord { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int64? PriceLevelIndex { get; set; }


	}

	public partial class vwPrices : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 Id { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? Price { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? PriceLevelId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Name { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Boolean? IsProtected { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String ProtectionWord { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int64? PriceLevelIndex { get; set; }


	}

	public partial class vwProducts : BaseModel
	{

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32 Id { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Name { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String Code { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String BarCode { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? FirstPrice { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String BrandName { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String CategoryName { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public String SubCategoryName { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Decimal? Existencia { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? BrandId { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[Display(Name = "")]
		public Int32? SubCategoryId { get; set; }


	}

}
