Merge branch 'master' of ssh://fedesrv.ddns.net:666/fede/Final_Das

This commit is contained in:
fedpo
2024-11-29 03:04:43 +00:00
15 changed files with 1210 additions and 61 deletions

View File

@@ -2,7 +2,7 @@
namespace Entidades
{
public class Detalle <T> where T:Producto
public class Detalle <T> where T: Producto
{
public int Id { get; set; }

View File

@@ -3,8 +3,9 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace Entidades
{
public class DetalleFactura: Detalle<Producto>
public class DetalleFactura: Detalle<Producto>, ICloneable
{
public DetalleFactura() { }
public int IdFactura { get; set; }
public double Subtotal
@@ -22,5 +23,17 @@ namespace Entidades
return Producto.Nombre;
}
}
private DetalleFactura(DetalleFactura detalle)
{
Id = detalle.Id;
IdFactura = detalle.IdFactura;
Producto = detalle.Producto;
Cantidad = detalle.Cantidad;
}
public object Clone()
{
return new DetalleFactura(this);
}
}
}

View File

@@ -8,7 +8,8 @@ namespace Entidades
public int IdRemito { get; set; }
public DateTime Fecha { get; set; }
public bool Habilitado { get; set; }
public int CantRecibida { get; set; }
[NotMapped]
public string NombreProducto
{
@@ -31,6 +32,7 @@ namespace Entidades
IdRemito = lote.IdRemito;
Fecha = lote.Fecha;
Habilitado = lote.Habilitado;
CantRecibida = CantRecibida;
}
public object Clone()