diff options
| author | Lucas Faria Mendes <lucas.fariamo08@gmail.com> | 2026-03-30 13:38:18 +0000 |
|---|---|---|
| committer | Lucas Faria Mendes <lucas.fariamo08@gmail.com> | 2026-03-30 13:38:18 +0000 |
| commit | 1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 (patch) | |
| tree | e1c3b20ea08f0cf71122a1e73f0d395f8fd83874 /Gestor.Model/Model.Domain.Seguros/VendedorParcela.cs | |
| parent | 674ca83ba9243a9e95a7568c797668dab6aee26a (diff) | |
| download | gestor-1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1.tar.gz gestor-1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1.zip | |
chore: location
Diffstat (limited to 'Gestor.Model/Model.Domain.Seguros/VendedorParcela.cs')
| -rw-r--r-- | Gestor.Model/Model.Domain.Seguros/VendedorParcela.cs | 235 |
1 files changed, 0 insertions, 235 deletions
diff --git a/Gestor.Model/Model.Domain.Seguros/VendedorParcela.cs b/Gestor.Model/Model.Domain.Seguros/VendedorParcela.cs deleted file mode 100644 index 8d40450..0000000 --- a/Gestor.Model/Model.Domain.Seguros/VendedorParcela.cs +++ /dev/null @@ -1,235 +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 VendedorParcela : DomainBase, IDomain
- {
- private string _vCondRep;
-
- public bool CoCorretagem
- {
- get;
- set;
- }
-
- public Gestor.Model.Domain.Seguros.CondicaoRepasse CondicaoRepasse
- {
- get;
- set;
- }
-
- [Description("DATA DO PAGAMENTO")]
- [Log(true)]
- public DateTime? DataPagamento
- {
- get;
- set;
- }
-
- [Description("DATA PREVISÃO DE PAGAMENTO")]
- [Log(true)]
- public DateTime? DataPrePagamento
- {
- get;
- set;
- }
-
- [Log(false)]
- public Gestor.Model.Domain.Seguros.Documento Documento
- {
- get;
- set;
- }
-
- [Log(false)]
- public Gestor.Model.Domain.Seguros.Parcela Parcela
- {
- get;
- set;
- }
-
- [Description("PORCENTAGEM REPASSE")]
- [Log(true)]
- public decimal? PorcentagemRepasse
- {
- get;
- set;
- }
-
- public decimal? PorcentagemRepasseB
- {
- get;
- set;
- }
-
- public string RecebidoPorCompleto
- {
- get;
- set;
- }
-
- public Gestor.Model.Domain.Seguros.Repasse Repasse
- {
- get;
- set;
- }
-
- public bool Selecionado
- {
- get;
- set;
- }
-
- public Gestor.Model.Domain.Seguros.TipoVendedor TipoVendedor
- {
- get;
- set;
- }
-
- [JsonIgnore]
- public Func<List<KeyValuePair<string, string>>> ValidationEvent
- {
- get
- {
- VendedorParcela vendedorParcela = this;
- return new Func<List<KeyValuePair<string, string>>>(vendedorParcela.Validate);
- }
- }
-
- [Description("VALOR REPASSE")]
- [Log(true)]
- public decimal? ValorRepasse
- {
- get;
- set;
- }
-
- public decimal? ValorRepasseB
- {
- get;
- set;
- }
-
- public decimal? ValorTotal
- {
- get;
- set;
- }
-
- public decimal? ValorTotalPago
- {
- get;
- set;
- }
-
- public string VCondRep
- {
- get
- {
- string str = this._vCondRep;
- if (str != null)
- {
- return str.ToUpper();
- }
- return null;
- }
- set
- {
- this._vCondRep = value;
- }
- }
-
- [Log(true)]
- public Gestor.Model.Domain.Seguros.Vendedor Vendedor
- {
- get;
- set;
- }
-
- public VendedorParcela()
- {
- }
-
- public List<KeyValuePair<string, string>> Validate()
- {
- decimal num;
- List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue();
- if (this.DataPagamento.HasValue && (DateTime.Compare(this.DataPagamento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.DataPagamento.Value, new DateTime(9999, 12, 31)) > 0))
- {
- keyValuePairs.AddValue<string, string>("DataPagamento", string.Format(Messages.DataInvalida, Array.Empty<object>()), true);
- }
- if (this.DataPrePagamento.HasValue && (DateTime.Compare(this.DataPrePagamento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.DataPrePagamento.Value, new DateTime(9999, 12, 31)) > 0))
- {
- keyValuePairs.AddValue<string, string>("DataPrePagamento", string.Format(Messages.DataInvalida, Array.Empty<object>()), true);
- }
- if (this.Vendedor == null)
- {
- keyValuePairs.AddValue<string, string>("Vendedor", Messages.Obrigatorio, true);
- }
- if (this.Documento == null)
- {
- keyValuePairs.AddValue<string, string>("Documento", Messages.Obrigatorio, true);
- }
- if (this.Documento != null && this.Documento.Id > (long)0 && this.Parcela == null)
- {
- keyValuePairs.AddValue<string, string>("Parcela", Messages.Obrigatorio, true);
- }
- if (this.Repasse == null)
- {
- keyValuePairs.AddValue<string, string>("Repasse", Messages.Obrigatorio, true);
- }
- if (this.TipoVendedor == null && !this.CoCorretagem)
- {
- keyValuePairs.AddValue<string, string>("TipoVendedor", Messages.Obrigatorio, true);
- }
- decimal? porcentagemRepasse = this.PorcentagemRepasse;
- if (!porcentagemRepasse.HasValue && !this.CoCorretagem)
- {
- keyValuePairs.AddValue<string, string>("PorcentagemRepasse", Messages.Obrigatorio, true);
- }
- porcentagemRepasse = this.ValorRepasse;
- if (!porcentagemRepasse.HasValue)
- {
- keyValuePairs.AddValue<string, string>("ValorRepasse", Messages.Obrigatorio, true);
- }
- if (this.Vendedor == null || this.Vendedor.Corretora)
- {
- return keyValuePairs;
- }
- porcentagemRepasse = this.PorcentagemRepasse;
- if (porcentagemRepasse.HasValue)
- {
- porcentagemRepasse = this.PorcentagemRepasse;
- num = new decimal();
- if ((porcentagemRepasse.GetValueOrDefault() <= num) & porcentagemRepasse.HasValue)
- {
- keyValuePairs.AddValue<string, string>("PorcentagemRepasse", Messages.Invalido, true);
- }
- }
- porcentagemRepasse = this.ValorRepasse;
- if (porcentagemRepasse.HasValue)
- {
- porcentagemRepasse = this.ValorRepasse;
- num = new decimal();
- if ((porcentagemRepasse.GetValueOrDefault() == num) & porcentagemRepasse.HasValue && !this.CoCorretagem)
- {
- keyValuePairs.AddValue<string, string>("ValorRepasse", Messages.Invalido, true);
- }
- }
- if (this.Repasse != null && this.Documento != null && this.Documento.TipoRecebimento.GetValueOrDefault() == TipoRecebimento.Parcela && this.Repasse.Base.GetValueOrDefault() == BaseRepasse.Transmissao && (!this.Documento.Remessa.HasValue || DateTime.Compare(this.Documento.Remessa.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Documento.Remessa.Value, new DateTime(9999, 12, 31)) > 0))
- {
- keyValuePairs.AddValue<string, string>("TRANSMISSÃO DA PROPOSTA", string.Format(Messages.DataInvalida, Array.Empty<object>()), true);
- }
- return keyValuePairs;
- }
- }
-}
\ No newline at end of file |