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
|
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 PermissaoArquivoDigital : DomainBase
{
public Usuario Usuario { get; set; }
[Log(true)]
[ForceLog(true)]
public TipoArquivoDigital Tela { get; set; }
[Log(true)]
public bool Consultar { get; set; }
[Log(true)]
public bool Incluir { get; set; }
[Log(true)]
public bool Excluir { get; set; }
public List<TupleList> Log()
{
return new List<TupleList>
{
new TupleList
{
Tuples = new ObservableCollection<Tuple<string, string, string>>
{
new Tuple<string, string, string>("$TELA", Tela.GetDescription(), ""),
new Tuple<string, string, string>(" INCLUIR", Incluir ? "SIM" : "NÃO", ""),
new Tuple<string, string, string>(" EXCLUIR", Excluir ? "SIM" : "NÃO", "")
}
}
};
}
}
|