summaryrefslogtreecommitdiff
path: root/Codemerx/Gestor.Model/Model.Domain.Seguros/MetaVendedor.cs
blob: 6483feb7e16b1857e6d5c7bba8f189e96262669c (plain)
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
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 MetaVendedor : DomainBase
	{
		public long Ano
		{
			get;
			set;
		}

		public Gestor.Model.Common.Mes Mes
		{
			get;
			set;
		}

		public decimal Valor
		{
			get;
			set;
		}

		public Gestor.Model.Domain.Seguros.Vendedor Vendedor
		{
			get;
			set;
		}

		public MetaVendedor()
		{
		}

		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("c2"), ""));
			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;
		}
	}
}