37 lines
884 B
C#
37 lines
884 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Linq;
|
|
using System.Security.Cryptography.X509Certificates;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Entidades
|
|
{
|
|
public class Remito
|
|
{
|
|
public int Id { get; set; }
|
|
private List<Lote> LotesDeProductosEntregados { get; set; }
|
|
public Proveedor Proveedor { get; set; }
|
|
|
|
public ReadOnlyCollection<Lote> MostrarLotes()
|
|
{
|
|
return LotesDeProductosEntregados.AsReadOnly();
|
|
}
|
|
public bool AñadirLote(Lote lote)
|
|
{
|
|
bool ret = false;
|
|
try
|
|
{
|
|
LotesDeProductosEntregados.Add(lote);
|
|
ret= true;
|
|
}
|
|
catch (Exception)
|
|
{
|
|
throw;
|
|
}
|
|
return ret;
|
|
}
|
|
}
|
|
}
|