refactor: eliminadas lineas en blanco

This commit is contained in:
2024-03-16 12:56:11 -03:00
parent 6fe4bcd878
commit ebe118536d
16 changed files with 3 additions and 48 deletions

View File

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

View File

@@ -9,15 +9,9 @@ namespace Entidades
public class Cliente public class Cliente
{ {
public string Cuit { get; set; } public string Cuit { get; set; }
public string Nombre { get; set; } public string Nombre { get; set; }
public string Apellido { get; set; } public string Apellido { get; set; }
public string Direccion { get; set; } public string Direccion { get; set; }
public string Correo { get; set; } public string Correo { get; set; }
} }
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -9,13 +9,9 @@ namespace Entidades
public class Lote public class Lote
{ {
public int Id { get; set; } public int Id { get; set; }
public DateTime Fecha { get; set; } public DateTime Fecha { get; set; }
public Producto Producto { get; set; } public Producto Producto { get; set; }
public long CantidadDeProductos { get; set; } public long CantidadDeProductos { get; set; }
public bool Habilitado { get; set; } public bool Habilitado { get; set; }
} }
} }

View File

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

View File

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

View File

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

View File

@@ -9,15 +9,9 @@ namespace Entidades
public class Producto public class Producto
{ {
public int Id { get; set; } public int Id { get; set; }
public string Nombre { get; set; } public string Nombre { get; set; }
public double Precio { get; set; } public double Precio { get; set; }
public bool Habilitado { get; set; } public bool Habilitado { get; set; }
private List<Categoria> categorias = new List<Categoria>(); private List<Categoria> categorias = new List<Categoria>();
public void AñadirCategoria(Categoria cat) { public void AñadirCategoria(Categoria cat) {

View File

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

View File

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

View File

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

View File

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