From 1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 10:38:18 -0300 Subject: chore: location --- Gestor.Model/Model.Domain.Seguros/MaisContato.cs | 340 ----------------------- 1 file changed, 340 deletions(-) delete mode 100644 Gestor.Model/Model.Domain.Seguros/MaisContato.cs (limited to 'Gestor.Model/Model.Domain.Seguros/MaisContato.cs') diff --git a/Gestor.Model/Model.Domain.Seguros/MaisContato.cs b/Gestor.Model/Model.Domain.Seguros/MaisContato.cs deleted file mode 100644 index 6266547..0000000 --- a/Gestor.Model/Model.Domain.Seguros/MaisContato.cs +++ /dev/null @@ -1,340 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class MaisContato : DomainBase, IDomain - { - private string _nome; - - private string _documento; - - private string _identidade; - - private string _prefixo; - - private string _telefone; - - private string _email; - - private string _habilitacao; - - private string _banco; - - private string _agencia; - - private string _conta; - - [Log(true)] - public string Agencia - { - get - { - string str = this._agencia; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._agencia = value; - } - } - - public string Banco - { - get - { - string str = this._banco; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._banco = value; - } - } - - public Gestor.Model.Domain.Seguros.Cliente Cliente - { - get; - set; - } - - [Log(true)] - public string Conta - { - get - { - string str = this._conta; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._conta = value; - } - } - - [Log(true)] - public string Documento - { - get - { - string str = this._documento; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._documento = value; - } - } - - [Log(true)] - public string Email - { - get - { - string str = this._email; - if (str == null) - { - return null; - } - return str.ToLower().Trim(); - } - set - { - this._email = value; - } - } - - public bool Excluido - { - get; - set; - } - - [Log(true)] - public DateTime? Expedicao - { - get; - set; - } - - [Log(true)] - public string Habilitacao - { - get - { - string str = this._habilitacao; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._habilitacao = value; - } - } - - [Log(true)] - public string Identidade - { - get - { - string str = this._identidade; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._identidade = value; - } - } - - [Log(true)] - public DateTime? Nascimento - { - get; - set; - } - - [Log(true)] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - [Log(true)] - public Gestor.Model.Common.Parentesco? Parentesco - { - get; - set; - } - - [Log(true)] - public string Prefixo - { - get - { - string str = this._prefixo; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._prefixo = value; - } - } - - [Log(true)] - public DateTime? PrimeiraHabilitacao - { - get; - set; - } - - [Log(true)] - public Gestor.Model.Domain.Common.Profissao Profissao - { - get; - set; - } - - [Log(true)] - public string Telefone - { - get - { - string str = this._telefone; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._telefone = value; - } - } - - public TipoTelefone? Tipo - { - get; - set; - } - - [JsonIgnore] - public Func>> ValidationEvent - { - get - { - MaisContato maisContato = this; - return new Func>>(maisContato.Validate); - } - } - - public MaisContato() - { - } - - public List> Validate() - { - List> keyValuePairs = ValidationHelper.AddValue(); - if (!string.IsNullOrWhiteSpace(this.Nome) && this.Nome.Length > 90) - { - keyValuePairs.AddValue("Nome", string.Format(Messages.MaiorQueLimite, 90), true); - } - if (this.PrimeiraHabilitacao.HasValue && (DateTime.Compare(this.PrimeiraHabilitacao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.PrimeiraHabilitacao.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue("PrimeiraHabilitacao|PRIMEIRA HABILITAÇÃO", string.Format(Messages.DataInvalida, Array.Empty()), true); - } - if (this.Expedicao.HasValue && (DateTime.Compare(this.Expedicao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Expedicao.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue("Expedicao|EXPEDIÇÃO", string.Format(Messages.DataInvalida, Array.Empty()), true); - } - if (this.Nascimento.HasValue && (DateTime.Compare(this.Nascimento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Nascimento.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue("Nascimento", string.Format(Messages.DataInvalida, Array.Empty()), true); - } - if (!string.IsNullOrWhiteSpace(this.Documento) && this.Documento.Length > 30) - { - keyValuePairs.AddValue("Documento", string.Format(Messages.MaiorQueLimite, 30), true); - } - if (!string.IsNullOrWhiteSpace(this.Identidade) && this.Identidade.Length > 40) - { - keyValuePairs.AddValue("Identidade", string.Format(Messages.MaiorQueLimite, 40), true); - } - if (!string.IsNullOrWhiteSpace(this.Prefixo) && this.Prefixo.Length > 6) - { - keyValuePairs.AddValue("Prefixo", string.Format(Messages.MaiorQueLimite, 6), true); - } - if (!string.IsNullOrWhiteSpace(this.Telefone) && this.Telefone.Length > 11) - { - keyValuePairs.AddValue("Telefone", string.Format(Messages.MaiorQueLimite, 11), true); - } - if (!string.IsNullOrWhiteSpace(this.Email) && this.Email.Length > 80) - { - keyValuePairs.AddValue("Email|E-MAIL", string.Format(Messages.MaiorQueLimite, 80), true); - } - if (!string.IsNullOrWhiteSpace(this.Habilitacao) && this.Habilitacao.Length > 40) - { - keyValuePairs.AddValue("Habilitacao|HABILITAÇÃO", string.Format(Messages.MaiorQueLimite, 40), true); - } - if (!string.IsNullOrWhiteSpace(this.Banco) && this.Banco.Length > 15) - { - keyValuePairs.AddValue("Banco", string.Format(Messages.MaiorQueLimite, 15), true); - } - if (!string.IsNullOrWhiteSpace(this.Agencia) && this.Agencia.Length > 15) - { - keyValuePairs.AddValue("Agencia|AGÊNCIA", string.Format(Messages.MaiorQueLimite, 15), true); - } - if (!string.IsNullOrWhiteSpace(this.Conta) && this.Conta.Length > 20) - { - keyValuePairs.AddValue("Conta", string.Format(Messages.MaiorQueLimite, 20), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file -- cgit v1.2.3