summaryrefslogtreecommitdiff
path: root/Gestor.Model/Gestor.Model.Domain.Seguros/RestricaoUsuarioCamposRelatorios.cs
blob: e781e191c6188c56ee37c254fb116cf93228c1a9 (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
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Gestor.Model.Attributes;
using Gestor.Model.Common;
using Gestor.Model.Domain.Generic;

namespace Gestor.Model.Domain.Seguros;

public class RestricaoUsuarioCamposRelatorios : DomainBase
{
	[Log(true)]
	[ForceLog(true)]
	public string Campo { get; set; }

	public Usuario Usuario { get; set; }

	[Log(true)]
	[ForceLog(true)]
	public Relatorio Relatorio { get; set; }

	[Log(true)]
	public bool Restricao { get; set; }

	public List<TupleList> Log()
	{
		return new List<TupleList>
		{
			new TupleList
			{
				Tuples = new ObservableCollection<Tuple<string, string, string>>
				{
					new Tuple<string, string, string>("$TIPO DE RESTRIÇÃO", Campo, ""),
					new Tuple<string, string, string>("     RESTRIÇÃO ATIVA?", Restricao ? "SIM" : "NÃO", "")
				}
			}
		};
	}
}