entidades #28

Merged
fede merged 17 commits from entidades into master 2024-03-22 18:30:28 -03:00
16 changed files with 3 additions and 48 deletions
Showing only changes of commit ebe118536d - Show all commits

View File

@@ -9,7 +9,6 @@ namespace Entidades
public class Categoria
{
public int Id { get; set; }
public string Descripcion { get; set; }
}
}

View File

@@ -9,15 +9,9 @@ namespace Entidades
public 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

@@ -5,8 +5,6 @@
public int Id { get; set; }
public int Cantidad { get; set; }
public T Producto { get; set; }
}
}

View File

@@ -9,9 +9,7 @@ namespace Entidades
public class DetalleFactura: Detalle<Producto>
{
public int IdFactura { get; set; }
public double PrecioUnitario { get; set; }
public double Subtotal { get; set; }
}
}

View File

@@ -10,6 +10,5 @@ namespace Entidades
{
public int IdPresupuesto { get; set; }
public double CostoUnitario { get; set; }
}
}

View File

@@ -12,5 +12,4 @@ namespace Entidades
Enlatado,
Carton
}
}

View File

@@ -11,9 +11,7 @@ namespace Entidades
{
public double Total { get; set; }
public DateTime Fecha { get; set; }
public Cliente Cliente { get; set; }
private List<DetalleFactura> detalles = new List<DetalleFactura>();
public void AñadirDetalle(DetalleFactura detalle)
@@ -33,5 +31,4 @@ namespace Entidades
return detalles.AsReadOnly();
}
}
}

View File

@@ -9,13 +9,9 @@ namespace Entidades
public 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

@@ -10,11 +10,9 @@ namespace Entidades
public class OrdenDeCompra
{
public int Id { get; set; }
private List<DetalleOrdenDeCompra> productos = new List<DetalleOrdenDeCompra>();
public Proveedor Proveedor { get; set; }
public void AñadirDetalle(DetalleOrdenDeCompra detalle)
{
productos.Add(detalle);
@@ -31,6 +29,5 @@ namespace Entidades
{
return productos.AsReadOnly();
}
}
}

View File

@@ -10,9 +10,7 @@ namespace Entidades
public class PedidoDePresupuesto
{
public int Id { get; set; }
public DateTime Fecha { get; set; }
private List<DetallePedido> detallesPedidos = new List<DetallePedido>();
public Proveedor Proveedor { get; set; }

View File

@@ -10,16 +10,10 @@ namespace Entidades
public class Presupuesto
{
public int Id { get; set; }
public DateTime Fecha { get; set; }
public bool Habilitado { get; set; }
public bool Aceptado { get; set; }
public Proveedor Proveedor { get; set; }
private List<DetallePresupuesto> detalles = new List<DetallePresupuesto>();
public void AñadirDetalle(DetallePresupuesto det) {
@@ -31,7 +25,5 @@ namespace Entidades
if (dAEliminar == null) return false;
return detalles.Remove(dAEliminar);
}
}
}

View File

@@ -9,17 +9,11 @@ namespace Entidades
public 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 = new List<Categoria>();
public void AñadirCategoria(Categoria cat) {
categorias.Add(cat);
}

View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace Entidades
{
public class ProductoNoPercedero
public class ProductoNoPercedero: Producto
{
public EnvaseTipo TipoDeEnvase { get; set; }
}

View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace Entidades
{
public class ProductoPercedero
public class ProductoPercedero: Producto
{
public int MesesHastaConsumoPreferente { get; set; }
public int MesesHastaVencimiento { get; set; }

View File

@@ -9,11 +9,8 @@ namespace Entidades
public class Proveedor
{
public int Id { get; set; }
public string Nombre { get; set; }
public string RazonSocial { get; set; }
public bool Habilitado { get; set; }
}
}

View File

@@ -11,9 +11,7 @@ namespace Entidades
public class Remito
{
public int Id { get; set; }
private List<Lote> LotesDeProductosEntregados { get; set; }
public Proveedor Proveedor { get; set; }
public ReadOnlyCollection<Lote> MostrarLotes()
@@ -30,7 +28,6 @@ namespace Entidades
}
catch (Exception)
{
throw;
}
return ret;