1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
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<TupleList> Log()
{
List<TupleList> tupleLists = new List<TupleList>();
TupleList tupleList = new TupleList();
ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>()
{
new Tuple<string, string, string>("DOCUMENTO", this.Documento, ""),
new Tuple<string, string, string>("DESTINO", this.Destino, "")
};
DateTime? dataEnvio = this.DataEnvio;
observableCollection.Add(new Tuple<string, string, string>("DATA ENVIO", dataEnvio.ToString(), ""));
dataEnvio = this.DataRecebimento;
observableCollection.Add(new Tuple<string, string, string>("DATA RECEBIMENTO", dataEnvio.ToString(), ""));
observableCollection.Add(new Tuple<string, string, string>("RESPONSÁVEL", this.Responsavel, ""));
tupleList.Tuples = observableCollection;
tupleLists.Add(tupleList);
return tupleLists;
}
}
}
|