diff --git a/.vs/Final_OOP/DesignTimeBuild/.dtbcache.v2 b/.vs/Final_OOP/DesignTimeBuild/.dtbcache.v2 index 8826014..e3838ae 100644 Binary files a/.vs/Final_OOP/DesignTimeBuild/.dtbcache.v2 and b/.vs/Final_OOP/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/Final_OOP/FileContentIndex/2cc903ff-f53a-40b4-8387-f40f6fc01c8f.vsidx b/.vs/Final_OOP/FileContentIndex/2cc903ff-f53a-40b4-8387-f40f6fc01c8f.vsidx deleted file mode 100644 index d601366..0000000 Binary files a/.vs/Final_OOP/FileContentIndex/2cc903ff-f53a-40b4-8387-f40f6fc01c8f.vsidx and /dev/null differ diff --git a/.vs/Final_OOP/FileContentIndex/3122eb00-1c22-4593-b255-c42ef6c90d8f.vsidx b/.vs/Final_OOP/FileContentIndex/3122eb00-1c22-4593-b255-c42ef6c90d8f.vsidx new file mode 100644 index 0000000..08d2a2f Binary files /dev/null and b/.vs/Final_OOP/FileContentIndex/3122eb00-1c22-4593-b255-c42ef6c90d8f.vsidx differ diff --git a/.vs/Final_OOP/FileContentIndex/9bb8dfcc-54d5-4b4c-bad9-e24952b4cab8.vsidx b/.vs/Final_OOP/FileContentIndex/9bb8dfcc-54d5-4b4c-bad9-e24952b4cab8.vsidx new file mode 100644 index 0000000..db49efe Binary files /dev/null and b/.vs/Final_OOP/FileContentIndex/9bb8dfcc-54d5-4b4c-bad9-e24952b4cab8.vsidx differ diff --git a/.vs/Final_OOP/FileContentIndex/cf93aed2-ab2a-4c1a-97b6-138a4e5e0d31.vsidx b/.vs/Final_OOP/FileContentIndex/cf93aed2-ab2a-4c1a-97b6-138a4e5e0d31.vsidx new file mode 100644 index 0000000..6637d68 Binary files /dev/null and b/.vs/Final_OOP/FileContentIndex/cf93aed2-ab2a-4c1a-97b6-138a4e5e0d31.vsidx differ diff --git a/.vs/Final_OOP/v17/.suo b/.vs/Final_OOP/v17/.suo new file mode 100644 index 0000000..6fc6282 Binary files /dev/null and b/.vs/Final_OOP/v17/.suo differ diff --git a/Entidades/Categoria.cs b/Entidades/Categoria.cs new file mode 100644 index 0000000..e9b5d93 --- /dev/null +++ b/Entidades/Categoria.cs @@ -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; } + } +} diff --git a/Entidades/Cliente.cs b/Entidades/Cliente.cs new file mode 100644 index 0000000..3cf87df --- /dev/null +++ b/Entidades/Cliente.cs @@ -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; } + + } + +} \ No newline at end of file diff --git a/Entidades/Detalle.cs b/Entidades/Detalle.cs index 943469d..716c782 100644 --- a/Entidades/Detalle.cs +++ b/Entidades/Detalle.cs @@ -2,6 +2,9 @@ { public class Detalle where T:Producto { + public int Id { get; set; } + public int Cantidad { get; set; } + public T Producto { get; set; } } diff --git a/Entidades/DetalleFactura.cs b/Entidades/DetalleFactura.cs new file mode 100644 index 0000000..02c1bf2 --- /dev/null +++ b/Entidades/DetalleFactura.cs @@ -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; } + } +} diff --git a/Entidades/DetalleOrdenDeCompra.cs b/Entidades/DetalleOrdenDeCompra.cs new file mode 100644 index 0000000..65ef063 --- /dev/null +++ b/Entidades/DetalleOrdenDeCompra.cs @@ -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; } + } +} diff --git a/Entidades/Class2.cs b/Entidades/DetallePedido.cs similarity index 67% rename from Entidades/Class2.cs rename to Entidades/DetallePedido.cs index 0de06dc..1371dc0 100644 --- a/Entidades/Class2.cs +++ b/Entidades/DetallePedido.cs @@ -6,7 +6,8 @@ using System.Threading.Tasks; namespace Entidades { - internal class Class2 + internal class DetallePedido { + public int IdPedido { get; set; } } } diff --git a/Entidades/DetallePresupuesto.cs b/Entidades/DetallePresupuesto.cs new file mode 100644 index 0000000..f4ed281 --- /dev/null +++ b/Entidades/DetallePresupuesto.cs @@ -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; } + + } +} diff --git a/Entidades/EnvaseTipo.cs b/Entidades/EnvaseTipo.cs new file mode 100644 index 0000000..9cddb0d --- /dev/null +++ b/Entidades/EnvaseTipo.cs @@ -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 + } + +} diff --git a/Entidades/Factura.cs b/Entidades/Factura.cs new file mode 100644 index 0000000..740e501 --- /dev/null +++ b/Entidades/Factura.cs @@ -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 detalles { get; set; } + + + } + +} diff --git a/Entidades/Lote.cs b/Entidades/Lote.cs new file mode 100644 index 0000000..1495aed --- /dev/null +++ b/Entidades/Lote.cs @@ -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; } + } +} diff --git a/Entidades/OrdenDeCompra.cs b/Entidades/OrdenDeCompra.cs new file mode 100644 index 0000000..d817f19 --- /dev/null +++ b/Entidades/OrdenDeCompra.cs @@ -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 Productos { get; set; } + + public Proveedor Proveedor { get; set; } + + } +} diff --git a/Entidades/PedidoDePresupuesto.cs b/Entidades/PedidoDePresupuesto.cs new file mode 100644 index 0000000..39ea00c --- /dev/null +++ b/Entidades/PedidoDePresupuesto.cs @@ -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 detallesPedidos { get; set; } + + public Proveedor Proveedor { get; set; } + } +} diff --git a/Entidades/Presupuesto.cs b/Entidades/Presupuesto.cs new file mode 100644 index 0000000..e45f711 --- /dev/null +++ b/Entidades/Presupuesto.cs @@ -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 Detalles { get; set; } + + public Proveedor Proveedor { get; set; } + } +} diff --git a/Entidades/Producto.cs b/Entidades/Producto.cs new file mode 100644 index 0000000..d217345 --- /dev/null +++ b/Entidades/Producto.cs @@ -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 Categorias { get; set; } + + + } +} diff --git a/Entidades/ProductoNoPercedero.cs b/Entidades/ProductoNoPercedero.cs new file mode 100644 index 0000000..ccfdbbc --- /dev/null +++ b/Entidades/ProductoNoPercedero.cs @@ -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; } + } +} diff --git a/Entidades/ProductoPercedero.cs b/Entidades/ProductoPercedero.cs new file mode 100644 index 0000000..72ab087 --- /dev/null +++ b/Entidades/ProductoPercedero.cs @@ -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; } + } +} diff --git a/Entidades/Proveedor.cs b/Entidades/Proveedor.cs new file mode 100644 index 0000000..9ce49f7 --- /dev/null +++ b/Entidades/Proveedor.cs @@ -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; } + } +} diff --git a/Entidades/Remito.cs b/Entidades/Remito.cs new file mode 100644 index 0000000..b2c5c8d --- /dev/null +++ b/Entidades/Remito.cs @@ -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 LotesDeProductosEntregados { get; set; } + + public Proveedor Proveedor { get; set; } + } +}