using Gestor.Model.Domain.Generic; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.CompilerServices; namespace Gestor.Model.Domain.Seguros { public class Expedicao : DomainBase { public Gestor.Model.Domain.Seguros.Documento Apolice { get; set; } public DateTime? DataAlteracao { get; set; } public DateTime? DataCriacao { get; set; } public DateTime? DataEnvio { get; set; } public DateTime? DataRecebimento { get; set; } public string Destino { get; set; } public string Documento { get; set; } public string Responsavel { get; set; } public long? UsuarioAlteracao { get; set; } public long? UsuarioCriacao { get; set; } public Expedicao() { } public List Log() { List tupleLists = new List(); TupleList tupleList = new TupleList(); ObservableCollection> observableCollection = new ObservableCollection>() { new Tuple("DOCUMENTO", this.Documento, ""), new Tuple("DESTINO", this.Destino, "") }; DateTime? dataEnvio = this.DataEnvio; observableCollection.Add(new Tuple("DATA ENVIO", dataEnvio.ToString(), "")); dataEnvio = this.DataRecebimento; observableCollection.Add(new Tuple("DATA RECEBIMENTO", dataEnvio.ToString(), "")); observableCollection.Add(new Tuple("RESPONSÁVEL", this.Responsavel, "")); tupleList.Tuples = observableCollection; tupleLists.Add(tupleList); return tupleLists; } } }