using Gestor.Model.Attributes; using Gestor.Model.Common; using Gestor.Model.Domain.Generic; using Gestor.Model.Validation; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.CompilerServices; namespace Gestor.Model.Domain.Seguros { public class PermissaoArquivoDigital : DomainBase { [Log(true)] public bool Consultar { get; set; } [Log(true)] public bool Excluir { get; set; } [Log(true)] public bool Incluir { get; set; } [ForceLog(true)] [Log(true)] public TipoArquivoDigital Tela { get; set; } public Gestor.Model.Domain.Seguros.Usuario Usuario { get; set; } public PermissaoArquivoDigital() { } public List Log() { return new List() { new TupleList() { Tuples = new ObservableCollection>() { new Tuple("$TELA", this.Tela.GetDescription(), ""), new Tuple(" INCLUIR", (this.Incluir ? "SIM" : "NÃO"), ""), new Tuple(" EXCLUIR", (this.Excluir ? "SIM" : "NÃO"), "") } } }; } } }