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 Log() { return new List { new TupleList { Tuples = new ObservableCollection> { new Tuple("$TELA", Tela.GetDescription(), ""), new Tuple(" INCLUIR", Incluir ? "SIM" : "NÃO", ""), new Tuple(" EXCLUIR", Excluir ? "SIM" : "NÃO", "") } } }; } }