From 0440c722a221b8068bbf388c1c0c51f0faff0451 Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 14:17:46 -0300 Subject: some dlls --- .../Gestor.Model.Domain.Seguros/SinistroVida.cs | 94 ++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 Gestor.Model/Gestor.Model.Domain.Seguros/SinistroVida.cs (limited to 'Gestor.Model/Gestor.Model.Domain.Seguros/SinistroVida.cs') diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/SinistroVida.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/SinistroVida.cs new file mode 100644 index 0000000..67070c9 --- /dev/null +++ b/Gestor.Model/Gestor.Model.Domain.Seguros/SinistroVida.cs @@ -0,0 +1,94 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using Gestor.Model.Attributes; +using Gestor.Model.Common; +using Gestor.Model.Domain.Generic; +using Gestor.Model.Helper; +using Newtonsoft.Json; + +namespace Gestor.Model.Domain.Seguros; + +public class SinistroVida : DomainBase, IDomain +{ + private string _certObito; + + private string _beneficiario; + + private string _observacao; + + public Sinistro Sinistro { get; set; } + + [Log(true)] + [Name(true)] + [Description("TIPO PERDA")] + public TipoPerda? TipoPerda { get; set; } + + [Log(true)] + [Name(true)] + [Description("AUXÍLIO FUNERAL")] + public bool? AuxFuneral { get; set; } + + [Log(true)] + [Name(true)] + [Description("ESTADO CÍVIL")] + public EstadoCivil? EstadoCivil { get; set; } + + [Log(true)] + [Name(true)] + [Description("CERT. ÓBITO")] + public string CertObito + { + get + { + return _certObito?.ToUpper(); + } + set + { + _certObito = value; + } + } + + [Log(true)] + [Name(true)] + [Description("BENEFICIÁRIO")] + public string Beneficiario + { + get + { + return _beneficiario?.ToUpper(); + } + set + { + _beneficiario = value; + } + } + + [Log(true)] + [Name(true)] + [Description("OBSERVAÇÃO")] + public string Observacao + { + get + { + return _observacao?.ToUpper(); + } + set + { + _observacao = value; + } + } + + [JsonIgnore] + public Func>> ValidationEvent => Validate; + + public List> Validate() + { + List> list = ValidationHelper.AddValue(); + if (Sinistro != null) + { + list.AddRange(Sinistro.Validate()); + } + return list; + } +} -- cgit v1.2.3