HAY UN AVANCE

This commit is contained in:
fedpo
2024-08-27 04:36:00 +01:00
parent 670190c44b
commit 2428f615a6
76 changed files with 5786 additions and 496 deletions

View File

@@ -1,9 +1,12 @@

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Entidades
{
public class Categoria
{
public int Id { get; set; }
public Int32 Id { get; set; }
public string Descripcion { get; set; }
}
}

View File

@@ -9,7 +9,7 @@ namespace Entidades
public int Cantidad { get; set; }
public T Producto { get; set; }
public int IdProducto { get; set; }
}
}

View File

@@ -8,7 +8,6 @@ namespace Entidades
public int IdOrdenDeCompra { get; set; }
public double MontoCU { get; set; }
public int IdPresupuesto { get; set; }
public Presupuesto presupuesto { get; set; }
[NotMapped]
public string NombreProducto

View File

@@ -11,7 +11,8 @@ namespace Entidades
public long IdCliente { get; set; }
public Cliente Cliente { get; set; }
public List<DetalleFactura> detalles = new List<DetalleFactura>();
private List<DetalleFactura> detalles = new List<DetalleFactura>();
public ReadOnlyCollection<DetalleFactura> Detalles => detalles.AsReadOnly();
public void AñadirDetalle(DetalleFactura detalle)

View File

@@ -11,8 +11,8 @@ namespace Entidades
public long IdProveedor { get; set; }
public bool Entregado { get; set; }
public List<DetalleOrdenDeCompra> detalles = new List<DetalleOrdenDeCompra>();
private List<DetalleOrdenDeCompra> detalles = new List<DetalleOrdenDeCompra>();
public ReadOnlyCollection<DetalleOrdenDeCompra> Detalles => detalles.AsReadOnly();
public void AñadirDetalle(DetalleOrdenDeCompra detalle)
{
detalles.Add(detalle);

View File

@@ -22,7 +22,7 @@
}
public List<DetallePresupuesto> detalles = new List<DetallePresupuesto>();
public void AñadirDetalle(DetallePresupuesto det) {
detalles.Add(det);
}

View File

@@ -12,7 +12,7 @@ namespace Entidades
public bool Habilitado { get; set; }
public bool EsPerecedero { get; set; }
private List<Proveedor> proveedores = new List<Proveedor>();
public List<Proveedor> proveedores = new List<Proveedor>();
public void AñadirProveedor(Proveedor proveedor)
{
@@ -25,10 +25,6 @@ namespace Entidades
if (pAEliminar == null) return false;
return proveedores.Remove(pAEliminar);
}
public ReadOnlyCollection<Proveedor> ListarProveedores()
{
return proveedores.AsReadOnly();
}
public List<Categoria> categorias = new List<Categoria>();
@@ -42,8 +38,5 @@ namespace Entidades
return categorias.Remove(cAEliminar);
}
public ReadOnlyCollection<Categoria> MostrarCategorias(){
return categorias.AsReadOnly();
}
}
}

View File

@@ -6,10 +6,12 @@
public class Remito
{
public int Id { get; set; }
public List<Lote> lotesDeProductosEntregados = new List<Lote>();
public Proveedor Proveedor { get; set; }
public int IdProveedor { get; set; }
private List<Lote> lotesDeProductosEntregados = new List<Lote>();
public ReadOnlyCollection<Lote> Lotes => lotesDeProductosEntregados.AsReadOnly();
public ReadOnlyCollection<Lote> MostrarLotes()
{
return lotesDeProductosEntregados.AsReadOnly();