Merge remote-tracking branch 'refs/remotes/origin/entidadesSINFunciones'

This commit is contained in:
2024-02-24 16:43:48 -03:00
24 changed files with 294 additions and 1 deletions

BIN
.vs/Final_OOP/v17/.suo Normal file

Binary file not shown.

15
Entidades/Categoria.cs Normal file
View File

@@ -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; }
}
}

23
Entidades/Cliente.cs Normal file
View File

@@ -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; }
}
}

View File

@@ -2,6 +2,9 @@
{ {
public class Detalle <T> where T:Producto public class Detalle <T> where T:Producto
{ {
public int Id { get; set; }
public int Cantidad { get; set; }
public T Producto { get; set; }
} }

View File

@@ -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; }
}
}

View File

@@ -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; }
}
}

View File

@@ -6,7 +6,8 @@ using System.Threading.Tasks;
namespace Entidades namespace Entidades
{ {
internal class Class2 internal class DetallePedido
{ {
public int IdPedido { get; set; }
} }
} }

View File

@@ -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; }
}
}

16
Entidades/EnvaseTipo.cs Normal file
View File

@@ -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
}
}

21
Entidades/Factura.cs Normal file
View File

@@ -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; }
}
}

21
Entidades/Lote.cs Normal file
View File

@@ -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; }
}
}

View File

@@ -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; }
}
}

View File

@@ -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; }
}
}

23
Entidades/Presupuesto.cs Normal file
View File

@@ -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; }
}
}

25
Entidades/Producto.cs Normal file
View File

@@ -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; }
}
}

View File

@@ -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; }
}
}

View File

@@ -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; }
}
}

19
Entidades/Proveedor.cs Normal file
View File

@@ -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; }
}
}

17
Entidades/Remito.cs Normal file
View File

@@ -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; }
}
}