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

namespace Gestor.Model.Domain.Seguros;

public class RestricaoUsuario : DomainBase
{
	[Log(true)]
	[ForceLog(true)]
	public TipoRestricao Tipo { get; set; }

	public Usuario Usuario { get; set; }

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

	public string Ajuda { 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", Tipo.GetDescription(), ""),
					new Tuple<string, string, string>("     RESTRIÇÃO ATIVA?", Restricao ? "SIM" : "NÃO", "")
				}
			}
		};
	}
}