Merge branch 'master' of ssh://fedesrv.ddns.net:666/fede/Final_Das
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user