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
|
using Gestor.Model.Common;
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 MetaSeguradora : DomainBase
{
public long Ano
{
get;
set;
}
public Gestor.Model.Common.Mes Mes
{
get;
set;
}
public bool Recorrente { get; set; } = true;
public Gestor.Model.Domain.Seguros.Seguradora Seguradora
{
get;
set;
}
public int TipoCalculo { get; set; } = 1;
public decimal Valor
{
get;
set;
}
public MetaSeguradora()
{
}
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>>();
decimal valor = this.Valor;
observableCollection.Add(new Tuple<string, string, string>("VALOR DA META", valor.ToString(), ""));
Gestor.Model.Common.Mes mes = this.Mes;
observableCollection.Add(new Tuple<string, string, string>("MÊS", mes.ToString(), ""));
long ano = this.Ano;
observableCollection.Add(new Tuple<string, string, string>("ANO", ano.ToString(), ""));
tupleList.Tuples = observableCollection;
tupleLists.Add(tupleList);
return tupleLists;
}
}
}
|