Entidades con sus propiedades sin funciones
This commit is contained in:
1 parent
46768f4f1b
commit
712813e8cb
25 files changed
+294
-1
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
internal class Categoria
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Descripcion { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
internal class Cliente
|
||||
{
|
||||
public string Cuit { get; set; }
|
||||
|
||||
public string Nombre { get; set; }
|
||||
|
||||
public string Apellido { get; set; }
|
||||
|
||||
public string Direccion { get; set; }
|
||||
|
||||
public string Correo { get; set; }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -2,6 +2,9 @@
|
||||
{
|
||||
public class Detalle <T> where T:Producto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int Cantidad { get; set; }
|
||||
public T Producto { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
internal class DetalleFactura
|
||||
{
|
||||
public int IdFactura { get; set; }
|
||||
|
||||
public double PrecioUnitario { get; set; }
|
||||
|
||||
public double Subtotal { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
internal class DetalleOrdenDeCompra
|
||||
{
|
||||
public int IdOrdenDeCompra { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,8 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
internal class Class2
|
||||
internal class DetallePedido
|
||||
{
|
||||
public int IdPedido { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
internal class DetallePresupuesto
|
||||
{
|
||||
public int IdPresupuesto { get; set; }
|
||||
public double CostoUnitario { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
public enum TipoEnvase
|
||||
{
|
||||
Plastico,
|
||||
Enlatado,
|
||||
Carton
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
internal class Factura
|
||||
{
|
||||
public double Total { get; set; }
|
||||
public DateTime Fecha { get; set; }
|
||||
|
||||
public Cliente Cliente { get; set; }
|
||||
|
||||
private List<DetalleFactura> detalles { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
internal class Lote
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public DateTime Fecha { get; set; }
|
||||
|
||||
public Producto Producto { get; set; }
|
||||
|
||||
public long CantidadDeProductos { get; set; }
|
||||
|
||||
public bool Habilitado { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
internal class OrdenDeCompra
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
private List<DetalleOrdenDeCompra> Productos { get; set; }
|
||||
|
||||
public Proveedor Proveedor { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
internal class PedidoDePresupuesto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public DateTime Fecha { get; set; }
|
||||
|
||||
private List<DetallePedido> detallesPedidos { get; set; }
|
||||
|
||||
public Proveedor Proveedor { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
internal class Presupuesto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public DateTime Fecha { get; set; }
|
||||
|
||||
public bool Habilitado { get; set; }
|
||||
|
||||
public bool Aceptado { get; set; }
|
||||
|
||||
private List<DetallePresupuesto> Detalles { get; set; }
|
||||
|
||||
public Proveedor Proveedor { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
internal class Producto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Nombre { get; set; }
|
||||
|
||||
public double Precio { get; set; }
|
||||
|
||||
|
||||
public bool Habilitado { get; set; }
|
||||
|
||||
|
||||
private List<Categoria> Categorias { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
internal class ProductoNoPercedero
|
||||
{
|
||||
public EnvaseTipo TipoDeEnvase { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
internal class ProductoPercedero
|
||||
{
|
||||
public int MesesHastaConsumoPreferente { get; set; }
|
||||
public int MesesHastaVencimiento { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
internal class Proveedor
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Nombre { get; set; }
|
||||
|
||||
public string RazonSocial { get; set; }
|
||||
|
||||
public bool Habilitado { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
internal class Remito
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
private List<Lote> LotesDeProductosEntregados { get; set; }
|
||||
|
||||
public Proveedor Proveedor { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user