Fix: ahora los remitos guardan bien
This commit is contained in:
@@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
public class Lote: Detalle<Producto>
|
||||
public class Lote : Detalle<Producto>, ICloneable
|
||||
{
|
||||
public int IdRemito { get; set; }
|
||||
public DateTime Fecha { get; set; }
|
||||
@@ -17,6 +17,26 @@ namespace Entidades
|
||||
return Producto.Nombre;
|
||||
}
|
||||
}
|
||||
|
||||
public Lote() { }
|
||||
|
||||
/// ICLONEABLE IMPLEMENTATION
|
||||
/// <summary>
|
||||
/// ICLONEABLE IMPLEMENTATION
|
||||
private Lote(Lote lote)
|
||||
{
|
||||
Id = lote.Id;
|
||||
Cantidad = lote.Cantidad;
|
||||
|
||||
IdRemito = lote.IdRemito;
|
||||
Fecha = lote.Fecha;
|
||||
Habilitado = lote.Habilitado;
|
||||
|
||||
}
|
||||
public object Clone()
|
||||
{
|
||||
return new Lote(this);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user