summaryrefslogtreecommitdiff
path: root/Gestor.Model/Model.Domain.Seguros/SinistroAuto.cs
diff options
context:
space:
mode:
authorLucas Faria Mendes <lucas.fariamo08@gmail.com>2026-03-30 13:38:18 +0000
committerLucas Faria Mendes <lucas.fariamo08@gmail.com>2026-03-30 13:38:18 +0000
commit1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 (patch)
treee1c3b20ea08f0cf71122a1e73f0d395f8fd83874 /Gestor.Model/Model.Domain.Seguros/SinistroAuto.cs
parent674ca83ba9243a9e95a7568c797668dab6aee26a (diff)
downloadgestor-1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1.tar.gz
gestor-1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1.zip
chore: location
Diffstat (limited to 'Gestor.Model/Model.Domain.Seguros/SinistroAuto.cs')
-rw-r--r--Gestor.Model/Model.Domain.Seguros/SinistroAuto.cs284
1 files changed, 0 insertions, 284 deletions
diff --git a/Gestor.Model/Model.Domain.Seguros/SinistroAuto.cs b/Gestor.Model/Model.Domain.Seguros/SinistroAuto.cs
deleted file mode 100644
index 65cc4cd..0000000
--- a/Gestor.Model/Model.Domain.Seguros/SinistroAuto.cs
+++ /dev/null
@@ -1,284 +0,0 @@
-using Gestor.Model.Attributes;
-using Gestor.Model.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.ComponentModel;
-using System.Runtime.CompilerServices;
-
-namespace Gestor.Model.Domain.Seguros
-{
- public class SinistroAuto : DomainBase, IDomain
- {
- private string _numeroBo;
-
- private string _endereco;
-
- private string _envolvido;
-
- private string _motorista;
-
- private string _ddd;
-
- private string _telefone;
-
- private string _email;
-
- private string _cnh;
-
- [Log(true)]
- [Name(true)]
- public string Cnh
- {
- get
- {
- string str = this._cnh;
- if (str == null)
- {
- return null;
- }
- return str.ToUpper().Trim();
- }
- set
- {
- this._cnh = value;
- }
- }
-
- [Description("DECLARA-SE CULPADO")]
- [Log(true)]
- [Name(true)]
- public bool? Culpado
- {
- get;
- set;
- }
-
- [Description("PREFIXO")]
- [Log(true)]
- [Name(true)]
- public string Ddd
- {
- get
- {
- string str = this._ddd;
- if (str == null)
- {
- return null;
- }
- return str.ToUpper().Trim();
- }
- set
- {
- this._ddd = value;
- }
- }
-
- [Description("E-MAIL")]
- [Log(true)]
- [Name(true)]
- public string Email
- {
- get
- {
- string str = this._email;
- if (str == null)
- {
- return null;
- }
- return str.ToLower().Trim();
- }
- set
- {
- this._email = value;
- }
- }
-
- [Description("ENDEREÇO")]
- [Log(true)]
- [Name(true)]
- public string Endereco
- {
- get
- {
- string str = this._endereco;
- if (str != null)
- {
- return str.ToUpper();
- }
- return null;
- }
- set
- {
- this._endereco = value;
- }
- }
-
- [Log(true)]
- [Name(true)]
- public string Envolvido
- {
- get
- {
- string str = this._envolvido;
- if (str != null)
- {
- return str.ToUpper();
- }
- return null;
- }
- set
- {
- this._envolvido = value;
- }
- }
-
- [Log(true)]
- [Name(true)]
- public string Motorista
- {
- get
- {
- string str = this._motorista;
- if (str != null)
- {
- return str.ToUpper();
- }
- return null;
- }
- set
- {
- this._motorista = value;
- }
- }
-
- [Description("NUMERO B.O.")]
- [Log(true)]
- [Name(true)]
- public string NumeroBo
- {
- get
- {
- string str = this._numeroBo;
- if (str != null)
- {
- return str.ToUpper();
- }
- return null;
- }
- set
- {
- this._numeroBo = value;
- }
- }
-
- [Description("FUNILARIA")]
- [Log(true)]
- public Parceiro ParceiroFunilaria
- {
- get;
- set;
- }
-
- [Description("MECÂNICA")]
- [Log(true)]
- public Parceiro ParceiroMecanica
- {
- get;
- set;
- }
-
- public Gestor.Model.Domain.Seguros.Sinistro Sinistro
- {
- get;
- set;
- }
-
- [Description("TELEFONE")]
- [Log(true)]
- [Name(true)]
- public string Telefone
- {
- get
- {
- string str = this._telefone;
- if (str == null)
- {
- return null;
- }
- return str.ToUpper().Trim();
- }
- set
- {
- this._telefone = value;
- }
- }
-
- [Description("TIPO PERDA")]
- [Log(true)]
- [Name(true)]
- public Gestor.Model.Common.TipoPerda? TipoPerda
- {
- get;
- set;
- }
-
- [Description("DATA ÚLTIMO DOC. ENVIADO")]
- [Log(true)]
- [Name(true)]
- public DateTime? UltimoDocEnviado
- {
- get;
- set;
- }
-
- [JsonIgnore]
- public Func<List<KeyValuePair<string, string>>> ValidationEvent
- {
- get
- {
- SinistroAuto sinistroAuto = this;
- return new Func<List<KeyValuePair<string, string>>>(sinistroAuto.Validate);
- }
- }
-
- [Description("VALOR FINILARIA")]
- [Log(true)]
- [Name(true)]
- public decimal ValorFunilaria
- {
- get;
- set;
- }
-
- [Description("VALOR MECÂNICA")]
- [Log(true)]
- [Name(true)]
- public decimal ValorMecanica
- {
- get;
- set;
- }
-
- public SinistroAuto()
- {
- }
-
- public List<KeyValuePair<string, string>> Validate()
- {
- List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue();
- if (this.Sinistro != null)
- {
- keyValuePairs.AddRange(this.Sinistro.Validate());
- }
- if (this.UltimoDocEnviado.HasValue && (DateTime.Compare(this.UltimoDocEnviado.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.UltimoDocEnviado.Value, new DateTime(9999, 12, 31)) > 0))
- {
- keyValuePairs.AddValue<string, string>("UltimoDocEnviado", string.Format(Messages.DataInvalida, Array.Empty<object>()), true);
- }
- return keyValuePairs;
- }
- }
-} \ No newline at end of file