summaryrefslogtreecommitdiff
path: root/Gestor.Model
diff options
context:
space:
mode:
Diffstat (limited to 'Gestor.Model')
-rw-r--r--Gestor.Model/Gestor.Model.API/Access.cs25
-rw-r--r--Gestor.Model/Gestor.Model.API/AccessControl.cs16
-rw-r--r--Gestor.Model/Gestor.Model.API/AjudaTela.cs20
-rw-r--r--Gestor.Model/Gestor.Model.API/Attachment.cs10
-rw-r--r--Gestor.Model/Gestor.Model.API/AuthSso.cs8
-rw-r--r--Gestor.Model/Gestor.Model.API/ConnectionAddress.cs38
-rw-r--r--Gestor.Model/Gestor.Model.API/Customer.cs45
-rw-r--r--Gestor.Model/Gestor.Model.API/CustomerAttendance.cs14
-rw-r--r--Gestor.Model/Gestor.Model.API/CustomerData.cs14
-rw-r--r--Gestor.Model/Gestor.Model.API/HorarioAtendimento.cs18
-rw-r--r--Gestor.Model/Gestor.Model.API/LogError.cs44
-rw-r--r--Gestor.Model/Gestor.Model.API/Owner.cs18
-rw-r--r--Gestor.Model/Gestor.Model.API/Parameters.cs16
-rw-r--r--Gestor.Model/Gestor.Model.API/Payment.cs25
-rw-r--r--Gestor.Model/Gestor.Model.API/TipoErro.cs1012
-rw-r--r--Gestor.Model/Gestor.Model.API/TokenSso.cs12
-rw-r--r--Gestor.Model/Gestor.Model.API/UploadFile.cs26
-rw-r--r--Gestor.Model/Gestor.Model.API/UserSso.cs26
-rw-r--r--Gestor.Model/Gestor.Model.API/UsuarioCentralSegurado.cs42
-rw-r--r--Gestor.Model/Gestor.Model.API/Version.cs22
-rw-r--r--Gestor.Model/Gestor.Model.Attributes/EntityAttribute.cs28
-rw-r--r--Gestor.Model/Gestor.Model.Attributes/ForceLogAttribute.cs27
-rw-r--r--Gestor.Model/Gestor.Model.Attributes/HelpAttribute.cs28
-rw-r--r--Gestor.Model/Gestor.Model.Attributes/LogAttribute.cs28
-rw-r--r--Gestor.Model/Gestor.Model.Attributes/NameAttribute.cs28
-rw-r--r--Gestor.Model/Gestor.Model.Attributes/OldValue2Attribute.cs14
-rw-r--r--Gestor.Model/Gestor.Model.Attributes/OldValueAttribute.cs14
-rw-r--r--Gestor.Model/Gestor.Model.Attributes/TipoAttribute.cs28
-rw-r--r--Gestor.Model/Gestor.Model.Attributes/WidthAttribute.cs28
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Auto/CalculoAuto.cs20
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Auto/Caminhao.cs26
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Auto/CoberturaAuto.cs44
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Auto/ComissaoSeguradora.cs8
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Auto/CondutorPrincipal.cs87
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Auto/Fipe.cs28
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Auto/QuestionarioAuto.cs30
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Auto/Veiculo.cs117
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Condominio/CalculoCondominio.cs16
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Condominio/CoberturaCondominio.cs62
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Condominio/QuestionarioCondominio.cs32
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Empresa/CalculoEmpresa.cs14
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Empresa/CoberturaEmpresa.cs62
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Empresa/EnderecoEmpresa.cs20
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Empresa/QuestionarioEmpresa.cs41
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Residencia/CalculoResidencia.cs14
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Residencia/CoberturaResidencia.cs46
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Residencia/EnderecoResidencia.cs20
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Residencia/Imovel.cs14
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.Residencia/QuestionarioResidencia.cs22
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.VidaGlobal/CalculoVidaGlobal.cs16
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.VidaGlobal/CoberturaVidaGlobal.cs22
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.VidaGlobal/QuestionarioVidaGlobal.cs14
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.VidaIndividual/CalculoVidaIndividual.cs16
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.VidaIndividual/CoberturaVidaIndividual.cs36
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.VidaIndividual/Profissao.cs12
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb.VidaIndividual/QuestionarioVidaIndividual.cs24
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb/Calculo.cs30
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb/Resultados.cs6
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb/Segurado.cs105
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb/Seguro.cs40
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb/Telefone.cs10
-rw-r--r--Gestor.Model/Gestor.Model.CalculoWeb/Usuario.cs6
-rw-r--r--Gestor.Model/Gestor.Model.Common/AcessoApolice.cs15
-rw-r--r--Gestor.Model/Gestor.Model.Common/Agrupamento.cs21
-rw-r--r--Gestor.Model/Gestor.Model.Common/Antifurto.cs28
-rw-r--r--Gestor.Model/Gestor.Model.Common/AtividadeEmpresa.cs127
-rw-r--r--Gestor.Model/Gestor.Model.Common/BandeiraCartao.cs31
-rw-r--r--Gestor.Model/Gestor.Model.Common/BaseRepasse.cs25
-rw-r--r--Gestor.Model/Gestor.Model.Common/Categoria.cs49
-rw-r--r--Gestor.Model/Gestor.Model.Common/Combustivel.cs58
-rw-r--r--Gestor.Model/Gestor.Model.Common/Condicao.cs16
-rw-r--r--Gestor.Model/Gestor.Model.Common/Configuracao.cs177
-rw-r--r--Gestor.Model/Gestor.Model.Common/ConfiguracaoImpressao.cs13
-rw-r--r--Gestor.Model/Gestor.Model.Common/Cor.cs61
-rw-r--r--Gestor.Model/Gestor.Model.Common/Correcao.cs16
-rw-r--r--Gestor.Model/Gestor.Model.Common/DistanciaTrabalho.cs28
-rw-r--r--Gestor.Model/Gestor.Model.Common/EquipamentoIncendio.cs17
-rw-r--r--Gestor.Model/Gestor.Model.Common/EquipamentoSeguranca.cs17
-rw-r--r--Gestor.Model/Gestor.Model.Common/EstadoCivil.cs34
-rw-r--r--Gestor.Model/Gestor.Model.Common/FiltroArquivoDigital.cs12
-rw-r--r--Gestor.Model/Gestor.Model.Common/FiltroCritica.cs13
-rw-r--r--Gestor.Model/Gestor.Model.Common/FiltroLancamento.cs21
-rw-r--r--Gestor.Model/Gestor.Model.Common/FiltroLancamentoData.cs15
-rw-r--r--Gestor.Model/Gestor.Model.Common/FiltroStatusDocumento.cs19
-rw-r--r--Gestor.Model/Gestor.Model.Common/FormaPagamento.cs61
-rw-r--r--Gestor.Model/Gestor.Model.Common/FormaRepasse.cs19
-rw-r--r--Gestor.Model/Gestor.Model.Common/GaragemResidencia.cs25
-rw-r--r--Gestor.Model/Gestor.Model.Common/GaragemTrabalhoEstudo.cs28
-rw-r--r--Gestor.Model/Gestor.Model.Common/Isencao.cs22
-rw-r--r--Gestor.Model/Gestor.Model.Common/Localizacao.cs28
-rw-r--r--Gestor.Model/Gestor.Model.Common/ManutencaoItem.cs10
-rw-r--r--Gestor.Model/Gestor.Model.Common/Mes.cs46
-rw-r--r--Gestor.Model/Gestor.Model.Common/Negocio.cs16
-rw-r--r--Gestor.Model/Gestor.Model.Common/NegocioCorretora.cs16
-rw-r--r--Gestor.Model/Gestor.Model.Common/Ocupacao.cs28
-rw-r--r--Gestor.Model/Gestor.Model.Common/Operacao.cs11
-rw-r--r--Gestor.Model/Gestor.Model.Common/Operador.cs27
-rw-r--r--Gestor.Model/Gestor.Model.Common/Parentesco.cs97
-rw-r--r--Gestor.Model/Gestor.Model.Common/ParentescoVinculo.cs82
-rw-r--r--Gestor.Model/Gestor.Model.Common/PermissaoAggilizador.cs8
-rw-r--r--Gestor.Model/Gestor.Model.Common/Rastreador.cs64
-rw-r--r--Gestor.Model/Gestor.Model.Common/Relacao.cs40
-rw-r--r--Gestor.Model/Gestor.Model.Common/Relatorio.cs130
-rw-r--r--Gestor.Model/Gestor.Model.Common/Sexo.cs18
-rw-r--r--Gestor.Model/Gestor.Model.Common/Sinal.cs16
-rw-r--r--Gestor.Model/Gestor.Model.Common/SinteticoFinanceiroTipo.cs19
-rw-r--r--Gestor.Model/Gestor.Model.Common/SqlQueryCondition.cs11
-rw-r--r--Gestor.Model/Gestor.Model.Common/StatusAssinatura.cs19
-rw-r--r--Gestor.Model/Gestor.Model.Common/StatusCalculo.cs23
-rw-r--r--Gestor.Model/Gestor.Model.Common/StatusDocumentoAssinado.cs19
-rw-r--r--Gestor.Model/Gestor.Model.Common/StatusExtrato.cs21
-rw-r--r--Gestor.Model/Gestor.Model.Common/StatusItem.cs9
-rw-r--r--Gestor.Model/Gestor.Model.Common/StatusLancamento.cs15
-rw-r--r--Gestor.Model/Gestor.Model.Common/StatusPagamento.cs15
-rw-r--r--Gestor.Model/Gestor.Model.Common/StatusParcela.cs73
-rw-r--r--Gestor.Model/Gestor.Model.Common/StatusProspeccao.cs25
-rw-r--r--Gestor.Model/Gestor.Model.Common/StatusSinistro.cs25
-rw-r--r--Gestor.Model/Gestor.Model.Common/StatusTarefa.cs15
-rw-r--r--Gestor.Model/Gestor.Model.Common/SubTipo.cs28
-rw-r--r--Gestor.Model/Gestor.Model.Common/TabelaReferencia.cs16
-rw-r--r--Gestor.Model/Gestor.Model.Common/TempoHabilitacao.cs43
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoAcao.cs15
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoAeronautico.cs118
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoArquivoDigital.cs45
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoArquivoVinculo.cs7
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoCobertura.cs25
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoConstrucao.cs22
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoConta.cs15
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoContato.cs7
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoContatoSeguradora.cs15
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoDocumento.cs22
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoEmail.cs15
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoEndereco.cs31
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoEndosso.cs25
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoExtrato.cs15
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoFiltroBusca.cs13
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoFiltroCliente.cs15
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoFiltroFinanceiro.cs19
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoFiltroRelatorio.cs25
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoIncidencia.cs16
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoIncidenciaDesconto.cs13
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoManutencao.cs17
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoMoradia.cs13
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoPagamento.cs61
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoPavimentacao.cs19
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoPerda.cs25
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoPesquisa.cs47
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoProtocoloEtiqueta.cs13
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoRecebimento.cs16
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoRecibo.cs16
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoRepasse.cs22
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoResidencia.cs22
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoRestricao.cs526
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoSeguro.cs31
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoSinistro.cs16
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoTarefa.cs27
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoTela.cs214
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoTelaInicial.cs19
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoTelefone.cs54
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoTitular.cs19
-rw-r--r--Gestor.Model/Gestor.Model.Common/TipoTrilha.cs10
-rw-r--r--Gestor.Model/Gestor.Model.Common/TpoSituacaoSinistro.cs19
-rw-r--r--Gestor.Model/Gestor.Model.Common/UsoDependetes.cs25
-rw-r--r--Gestor.Model/Gestor.Model.Common/UsoVeiculo.cs22
-rw-r--r--Gestor.Model/Gestor.Model.Common/Utilizacao.cs16
-rw-r--r--Gestor.Model/Gestor.Model.Common/ValidationStates.cs8
-rw-r--r--Gestor.Model/Gestor.Model.Converter/EnumDescriptionTypeConverter.cs37
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Aggilizador/ArquivoVinculo.cs16
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Aggilizador/Calculo.cs17
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Aggilizador/LocalArquivo.cs12
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Aggilizador/ParcelaPendente.cs22
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Aggilizador/VinculoDocumento.cs12
-rw-r--r--Gestor.Model/Gestor.Model.Domain.BI/Analitico.cs106
-rw-r--r--Gestor.Model/Gestor.Model.Domain.BI/AtalhosApolice.cs54
-rw-r--r--Gestor.Model/Gestor.Model.Domain.BI/AtalhosCalculo.cs13
-rw-r--r--Gestor.Model/Gestor.Model.Domain.BI/AtalhosCliente.cs24
-rw-r--r--Gestor.Model/Gestor.Model.Domain.BI/AtalhosComissao.cs17
-rw-r--r--Gestor.Model/Gestor.Model.Domain.BI/AtalhosParcela.cs34
-rw-r--r--Gestor.Model/Gestor.Model.Domain.BI/AtalhosSinistro.cs13
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Card/Assistance.cs62
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Card/AssistenciaCia.cs38
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Card/Card.cs40
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Card/Logo.cs14
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Common/ArquivoDigital.cs89
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Common/Atividade.cs34
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Common/Banco.cs56
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Common/Contato.cs12
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Common/ControleArquivoDigital.cs10
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Common/Empresa.cs413
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Common/Fipe.cs98
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Common/FipeDetalhe.cs8
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Common/IndiceArquivoDigital.cs102
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Common/PesquisaAvancada.cs20
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Common/Profissao.cs48
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Common/RegistroAcao.cs31
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Common/RegistroLog.cs31
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Common/Socio.cs118
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Common/TrocaCliente.cs107
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Configuracoes/ConfiguracaoSistema.cs9
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/Agenda.cs110
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/AgendaEmail.cs36
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/AgendaTelefone.cs21
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/CategoriaTarefa.cs8
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/Credencial.cs198
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/Destinatario.cs24
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/Fase.cs18
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/Imposto.cs95
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/LogEmail.cs65
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/LogEnvio.cs12
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/ManutencaoPagamentos.cs298
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/NotaFiscal.cs112
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/OrigemCliente.cs16
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/Recibo.cs134
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/ResponsavelTarefa.cs33
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/StatusDeProspeccao.cs74
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/Tarefa.cs132
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/TipoDeTarefa.cs74
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Ferramentas/Trilha.cs85
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/DadosFechamento.cs46
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/DadosFechamentoAnalitico.cs82
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/FechamentoFinanceiro.cs10
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/FechamentoFinanceiroAnalitico.cs10
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/FiltroFinanceiro.cs21
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro/BancosContas.cs135
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro/Centro.cs68
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro/ControleFinanceiro.cs82
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro/ExtratoConta.cs57
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro/FiltroPersonalizado.cs35
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro/Fornecedor.cs238
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro/Lancamento.cs195
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro/Plano.cs42
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro/Planos.cs114
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro/RelatorioLancamentos.cs62
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro/Saldo.cs52
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro/SinteticoFinanceiro.cs20
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro/TipoConta.cs40
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Financeiro/Transferencia.cs47
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Generic/Diferenca.cs12
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Generic/DomainBase.cs307
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Generic/EmailBase.cs21
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Generic/EnderecoBase.cs107
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Generic/FieldInformation.cs10
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Generic/IDomain.cs11
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Generic/TelefoneBase.cs61
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Generic/ValorOriginal.cs10
-rw-r--r--Gestor.Model/Gestor.Model.Domain.MalaDireta/Copia.cs10
-rw-r--r--Gestor.Model/Gestor.Model.Domain.MalaDireta/MalaDireta.cs43
-rw-r--r--Gestor.Model/Gestor.Model.Domain.MalaDireta/ModeloMalaDireta.cs32
-rw-r--r--Gestor.Model/Gestor.Model.Domain.MalaDireta/VariaveisMalaDireta.cs85
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.ApolicePendente/ApolicePendente.cs110
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.ApolicePendente/ContainerApolicePendente.cs12
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Auditoria/Auditoria.cs103
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Classificacao/Classificacao.cs32
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Cliente/SinteticoClientes.cs13
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.ClientesAtivosInativos/ClientesAtivosInativos.cs222
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.ClientesAtivosInativos/SinteticoClientesAtivosInativos.cs21
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Comissao/Comissao.cs163
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Comissao/SinteticoComissao.cs33
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.CriticaApolice/ApoliceCritica.cs57
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Dashboard/Prospectar.cs63
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.EndossoCancelamento/Endosso.cs149
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/DetalhesExtrato.cs34
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/Extrato.cs54
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/ExtratoComissao.cs14
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/InformacoesExtrato.cs47
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/SinteticoExtrato.cs13
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.ExtratoBaixado/ExtratoBaixadoRelatorio.cs61
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.FaturaPendente/FaturaPendente.cs87
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Fechamento/Fechamento.cs152
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Fechamento/Fechamentos.cs12
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Fechamento/SinteticoFechamento.cs47
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Licenciamento/Licenciamento.cs89
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Log/LogAcaoRelatorio.cs91
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.LogsEnvio/LogsEnvio.cs145
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.MetaSeguradora/MetaSeguradoraRelatorio.cs24
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.MetaSeguradora/SinteticoMetaSeguradora.cs12
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.MetaVendedor/MetaVendedorRelatorio.cs24
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.MetaVendedor/SinteticoMetaVendedor.cs12
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.NotaFiscal/NotaFiscalRelatorio.cs46
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/AgrupamentoPagamentoSintetico.cs18
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/AgrupamentoVendedor.cs54
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/Pagamento.cs14
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/PagamentoSintetico.cs10
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/SinteticoPagamento.cs29
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Pendente/Pendente.cs142
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Pendente/SinteticoPendente.cs25
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Placa/Placas.cs86
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao/AgrupamentoSintetico.cs18
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao/PrevisaoPagamento.cs62
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao/PrevisaoPagamentoComissao.cs10
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao/PrevisaoPagamentoComissaoSintetico.cs10
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Producao/Producao.cs170
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Producao/SinteticoProducao.cs33
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Renovacao/Renovacao.cs134
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Renovacao/SinteticoRenovacao.cs37
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Sinistro/Sinistro.cs165
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Sinistro/SinteticoSinistro.cs33
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios.Tarefa/Tarefa.cs98
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/CartaoSegurado.cs20
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/DadosRelatorio.cs150
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/DadosVinculo.cs25
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/FiltroPersonalizado.cs24
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/FiltroRelatorio.cs35
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/FiltroTipoParcela.cs28
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/Filtros.cs52
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/Listagem.cs14
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/NegocioRelatorio.cs37
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/ParametrosRelatorio.cs46
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/ParametrosTotalizacao.cs18
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/PlanilhaCompleta.cs685
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/SinteticModel.cs10
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/SinteticModelList.cs10
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/Sintetico.cs253
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/SinteticoFinanceiro.cs18
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/StatusRelatorio.cs37
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/TipoRelatorio.cs12
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Relatorios/ValorSintetico.cs20
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Adiantamento.cs65
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Aeronautico.cs297
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/AggilizadorPermissao.cs10
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Auto.cs540
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Cliente.cs695
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/ClienteEmail.cs58
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/ClienteEndereco.cs123
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/ClienteTelefone.cs56
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/ClienteVinculo.cs31
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Cobertura.cs48
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/CoberturaGranizo.cs74
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/CoberturaPadrao.cs41
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/CondicaoRepasse.cs24
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/ConfigExtratoImport.cs26
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Consorcio.cs132
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Controle.cs83
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/ControleSinistro.cs84
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/CriticaApolice.cs70
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/DetalheExtrato.cs163
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Documento.cs835
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Estipulante.cs282
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Expedicao.cs47
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Extrato.cs97
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Fabricante.cs40
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Granizo.cs162
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Item.cs340
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/MaisContato.cs245
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/MetaSeguradora.cs40
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/MetaVendedor.cs34
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Parceiro.cs406
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Parcela.cs389
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Parcelas.cs68
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Patrimonial.cs451
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Perfil.cs147
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/PerfilEmpresa.cs59
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/PermissaoArquivoDigital.cs43
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/PermissaoUsuario.cs26
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Produto.cs92
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Prospeccao.cs210
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/ProspeccaoToPrint.cs81
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Qualificacao.cs95
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Ramo.cs120
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Repasse.cs112
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/ResponsavelAssinatura.cs56
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/RestricaoUsuario.cs38
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/RestricaoUsuarioCamposRelatorios.cs39
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/RiscosDiversos.cs84
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Seguradora.cs1317
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/SeguradoraContato.cs60
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/SeguradoraEndereco.cs81
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Sinistro.cs421
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/SinistroAuto.cs199
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/SinistroVida.cs94
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Status.cs64
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/TipoVendedor.cs102
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/TitularesVida.cs197
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/TupleList.cs9
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Usuario.cs625
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Vendedor.cs245
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/VendedorParcela.cs142
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/VendedorParcelas.cs52
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/VendedorTelefone.cs62
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/VendedorUsuario.cs30
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/Vida.cs129
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/VinculoRepasse.cs74
-rw-r--r--Gestor.Model/Gestor.Model.Domain.Seguros/VinculoVendedor.cs10
-rw-r--r--Gestor.Model/Gestor.Model.Helper/ValidationHelper.cs479
-rw-r--r--Gestor.Model/Gestor.Model.License/Instalacao.cs29
-rw-r--r--Gestor.Model/Gestor.Model.License/Licenca.cs16
-rw-r--r--Gestor.Model/Gestor.Model.License/Produto.cs39
-rw-r--r--Gestor.Model/Gestor.Model.License/StatusLicenca.cs17
-rw-r--r--Gestor.Model/Gestor.Model.Relatorios/Cliente.cs6
-rw-r--r--Gestor.Model/Gestor.Model.Relatorios/ClienteEmail.cs20
-rw-r--r--Gestor.Model/Gestor.Model.Relatorios/ClienteEndereco.cs108
-rw-r--r--Gestor.Model/Gestor.Model.Relatorios/ClienteTelefone.cs34
-rw-r--r--Gestor.Model/Gestor.Model.Relatorios/Controle.cs10
-rw-r--r--Gestor.Model/Gestor.Model.Relatorios/Documento.cs14
-rw-r--r--Gestor.Model/Gestor.Model.Relatorios/EstipulanteCliente.cs10
-rw-r--r--Gestor.Model/Gestor.Model.Relatorios/Ramo.cs20
-rw-r--r--Gestor.Model/Gestor.Model.Relatorios/Vendedor.cs20
-rw-r--r--Gestor.Model/Gestor.Model.Resources.Messages.resx42
-rw-r--r--Gestor.Model/Gestor.Model.Resources/Messages.cs72
-rw-r--r--Gestor.Model/Gestor.Model.Validation/ControleValidacao.cs14
-rw-r--r--Gestor.Model/Gestor.Model.Validation/Funcoes.cs107
-rw-r--r--Gestor.Model/Gestor.Model.csproj27
-rw-r--r--Gestor.Model/Gestor.Model.dll_Decompiler.com.sln24
-rw-r--r--Gestor.Model/Newtonsoft.Json.dllbin0 -> 701992 bytes
-rw-r--r--Gestor.Model/Properties/AssemblyInfo.cs17
-rw-r--r--Gestor.Model/bin/Debug/net48/Gestor.Model.dllbin0 -> 876544 bytes
-rw-r--r--Gestor.Model/bin/Debug/net48/Gestor.Model.pdbbin0 -> 269820 bytes
-rw-r--r--Gestor.Model/bin/Debug/net48/Newtonsoft.Json.dllbin0 -> 701992 bytes
-rw-r--r--Gestor.Model/obj/Debug/net48/.NETFramework,Version=v4.8.AssemblyAttributes.cs4
-rw-r--r--Gestor.Model/obj/Debug/net48/Gestor.M.30BD87A2.Up2Date0
-rw-r--r--Gestor.Model/obj/Debug/net48/Gestor.Model.GeneratedMSBuildEditorConfig.editorconfig8
-rw-r--r--Gestor.Model/obj/Debug/net48/Gestor.Model.Resources.Messages.resourcesbin0 -> 1147 bytes
-rw-r--r--Gestor.Model/obj/Debug/net48/Gestor.Model.assets.cachebin0 -> 154 bytes
-rw-r--r--Gestor.Model/obj/Debug/net48/Gestor.Model.csproj.AssemblyReference.cachebin0 -> 5907 bytes
-rw-r--r--Gestor.Model/obj/Debug/net48/Gestor.Model.csproj.CoreCompileInputs.cache1
-rw-r--r--Gestor.Model/obj/Debug/net48/Gestor.Model.csproj.FileListAbsolute.txt11
-rw-r--r--Gestor.Model/obj/Debug/net48/Gestor.Model.csproj.GenerateResource.cachebin0 -> 106 bytes
-rw-r--r--Gestor.Model/obj/Debug/net48/Gestor.Model.dllbin0 -> 876544 bytes
-rw-r--r--Gestor.Model/obj/Debug/net48/Gestor.Model.pdbbin0 -> 269820 bytes
-rw-r--r--Gestor.Model/obj/Gestor.Model.csproj.nuget.dgspec.json53
-rw-r--r--Gestor.Model/obj/Gestor.Model.csproj.nuget.g.props15
-rw-r--r--Gestor.Model/obj/Gestor.Model.csproj.nuget.g.targets2
-rw-r--r--Gestor.Model/obj/project.assets.json58
-rw-r--r--Gestor.Model/obj/project.nuget.cache8
424 files changed, 28837 insertions, 0 deletions
diff --git a/Gestor.Model/Gestor.Model.API/Access.cs b/Gestor.Model/Gestor.Model.API/Access.cs
new file mode 100644
index 0000000..ba905e5
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/Access.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+
+namespace Gestor.Model.API;
+
+public class Access
+{
+ public long Id { get; set; }
+
+ public long CustomerId { get; set; }
+
+ public long? ProductId { get; set; }
+
+ public long? AgreementId { get; set; }
+
+ public long? SchemeId { get; set; }
+
+ public decimal? Ammount { get; set; }
+
+ public string Status { get; set; }
+
+ public IList<AccessControl> Control { get; set; }
+
+ public DateTime CurrentDate { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.API/AccessControl.cs b/Gestor.Model/Gestor.Model.API/AccessControl.cs
new file mode 100644
index 0000000..174d9c3
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/AccessControl.cs
@@ -0,0 +1,16 @@
+using System;
+
+namespace Gestor.Model.API;
+
+public class AccessControl
+{
+ public long Id { get; set; }
+
+ public Access Access { get; set; }
+
+ public DateTime Maturity { get; set; }
+
+ public DateTime? Compensation { get; set; }
+
+ public DateTime Expiration { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.API/AjudaTela.cs b/Gestor.Model/Gestor.Model.API/AjudaTela.cs
new file mode 100644
index 0000000..10c42c8
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/AjudaTela.cs
@@ -0,0 +1,20 @@
+using Gestor.Model.Common;
+
+namespace Gestor.Model.API;
+
+public class AjudaTela
+{
+ public long Id { get; set; }
+
+ public TipoTela Tela { get; set; }
+
+ public string Titulo { get; set; }
+
+ public string Descricao { get; set; }
+
+ public string Link { get; set; }
+
+ public int Minuto { get; set; }
+
+ public int Segundo { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.API/Attachment.cs b/Gestor.Model/Gestor.Model.API/Attachment.cs
new file mode 100644
index 0000000..79389f2
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/Attachment.cs
@@ -0,0 +1,10 @@
+namespace Gestor.Model.API;
+
+public class Attachment
+{
+ public string Description { get; set; }
+
+ public string Extension { get; set; }
+
+ public byte[] File { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.API/AuthSso.cs b/Gestor.Model/Gestor.Model.API/AuthSso.cs
new file mode 100644
index 0000000..47d86f5
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/AuthSso.cs
@@ -0,0 +1,8 @@
+namespace Gestor.Model.API;
+
+public class AuthSso
+{
+ public TokenSso Data { get; set; }
+
+ public int Code { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.API/ConnectionAddress.cs b/Gestor.Model/Gestor.Model.API/ConnectionAddress.cs
new file mode 100644
index 0000000..5de0075
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/ConnectionAddress.cs
@@ -0,0 +1,38 @@
+namespace Gestor.Model.API;
+
+public class ConnectionAddress
+{
+ public long Id { get; set; }
+
+ public long CustomerId { get; set; }
+
+ public string Server { get; set; }
+
+ public string User { get; set; }
+
+ public string Catalog { get; set; }
+
+ public string Password { get; set; }
+
+ public int Type { get; set; }
+
+ public string Pool { get; set; }
+
+ public string Mobile { get; set; }
+
+ public string Aggilizador { get; set; }
+
+ public string EpicIos { get; set; }
+
+ public string EpicAndroid { get; set; }
+
+ public string AppleLogin { get; set; }
+
+ public string ApplePass { get; set; }
+
+ public bool UsaAzureStorage { get; set; }
+
+ public string AzureStorage { get; set; }
+
+ public string UrlCentralSegurado { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.API/Customer.cs b/Gestor.Model/Gestor.Model.API/Customer.cs
new file mode 100644
index 0000000..0676c8b
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/Customer.cs
@@ -0,0 +1,45 @@
+using System;
+using System.Collections.Generic;
+
+namespace Gestor.Model.API;
+
+public class Customer
+{
+ public long Id { get; set; }
+
+ public string Name { get; set; }
+
+ public string Document { get; set; }
+
+ public string AreaCode { get; set; }
+
+ public string SecondAreaCode { get; set; }
+
+ public string Phone { get; set; }
+
+ public string SecondPhone { get; set; }
+
+ public string Mail { get; set; }
+
+ public string Site { get; set; }
+
+ public string Street { get; set; }
+
+ public string City { get; set; }
+
+ public string District { get; set; }
+
+ public string PostCode { get; set; }
+
+ public string State { get; set; }
+
+ public string Number { get; set; }
+
+ public string Adjunct { get; set; }
+
+ public DateTime LastUpdate { get; set; }
+
+ public string Updated { get; set; }
+
+ public List<Owner> Owners { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.API/CustomerAttendance.cs b/Gestor.Model/Gestor.Model.API/CustomerAttendance.cs
new file mode 100644
index 0000000..bb20cd9
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/CustomerAttendance.cs
@@ -0,0 +1,14 @@
+using System.Collections.Generic;
+
+namespace Gestor.Model.API;
+
+public class CustomerAttendance
+{
+ public CustomerData CustomerData { get; set; }
+
+ public string Subject { get; set; }
+
+ public string Body { get; set; }
+
+ public List<Attachment> Attachments { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.API/CustomerData.cs b/Gestor.Model/Gestor.Model.API/CustomerData.cs
new file mode 100644
index 0000000..0ee208a
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/CustomerData.cs
@@ -0,0 +1,14 @@
+namespace Gestor.Model.API;
+
+public class CustomerData
+{
+ public string Corretora { get; set; }
+
+ public string Name { get; set; }
+
+ public string Email { get; set; }
+
+ public string AreaCode { get; set; }
+
+ public string Number { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.API/HorarioAtendimento.cs b/Gestor.Model/Gestor.Model.API/HorarioAtendimento.cs
new file mode 100644
index 0000000..384501e
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/HorarioAtendimento.cs
@@ -0,0 +1,18 @@
+using System;
+
+namespace Gestor.Model.API;
+
+public class HorarioAtendimento
+{
+ public int? InicioDia { get; set; }
+
+ public int? FimDia { get; set; }
+
+ public string InicioHora { get; set; }
+
+ public string FimHora { get; set; }
+
+ public bool Autorizado { get; set; }
+
+ public DateTime HoraServidor { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.API/LogError.cs b/Gestor.Model/Gestor.Model.API/LogError.cs
new file mode 100644
index 0000000..c300ba4
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/LogError.cs
@@ -0,0 +1,44 @@
+using System;
+
+namespace Gestor.Model.API;
+
+public class LogError
+{
+ public long Id { get; set; }
+
+ public long IdFornecedor { get; set; }
+
+ public string Fornecedor { get; set; }
+
+ public string UsuarioLogado { get; set; }
+
+ public long IdUsuarioLogado { get; set; }
+
+ public string Versao { get; set; }
+
+ public DateTime Data { get; set; }
+
+ public int IdErro { get; set; }
+
+ public string Erro { get; set; }
+
+ public int HResult { get; set; }
+
+ public string HelpLink { get; set; }
+
+ public string InnerException { get; set; }
+
+ public string Message { get; set; }
+
+ public string Source { get; set; }
+
+ public string StackTrace { get; set; }
+
+ public string Maquina { get; set; }
+
+ public string UsuarioMaquina { get; set; }
+
+ public string Linha { get; set; }
+
+ public string Objeto { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.API/Owner.cs b/Gestor.Model/Gestor.Model.API/Owner.cs
new file mode 100644
index 0000000..c0c0a55
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/Owner.cs
@@ -0,0 +1,18 @@
+namespace Gestor.Model.API;
+
+public class Owner
+{
+ public long Id { get; set; }
+
+ public Customer Customer { get; set; }
+
+ public long Type { get; set; }
+
+ public string Name { get; set; }
+
+ public string AreaCode { get; set; }
+
+ public string Phone { get; set; }
+
+ public string Mail { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.API/Parameters.cs b/Gestor.Model/Gestor.Model.API/Parameters.cs
new file mode 100644
index 0000000..40f5327
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/Parameters.cs
@@ -0,0 +1,16 @@
+namespace Gestor.Model.API;
+
+public class Parameters
+{
+ public bool Beta { get; set; }
+
+ public int Type { get; set; }
+
+ public string Application { get; set; }
+
+ public string Directory { get; set; }
+
+ public string Arguments { get; set; }
+
+ public bool Run { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.API/Payment.cs b/Gestor.Model/Gestor.Model.API/Payment.cs
new file mode 100644
index 0000000..ed8a108
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/Payment.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+
+namespace Gestor.Model.API;
+
+public class Payment
+{
+ public long Id { get; set; }
+
+ public DateTime Vencimento { get; set; }
+
+ public DateTime Compensation { get; set; }
+
+ public DateTime Processamento { get; set; }
+
+ public decimal Valor { get; set; }
+
+ public string Nota { get; set; }
+
+ public string Descricao { get; set; }
+
+ public List<string> Products { get; set; }
+
+ public string Codigo { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.API/TipoErro.cs b/Gestor.Model/Gestor.Model.API/TipoErro.cs
new file mode 100644
index 0000000..3325c18
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/TipoErro.cs
@@ -0,0 +1,1012 @@
+using System.ComponentModel;
+
+namespace Gestor.Model.API;
+
+public enum TipoErro
+{
+ [Description("ERRO AO SALVAR LOG")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O LOG DO PROCEDIMENTO EXECUTADO")]
+ SalvarLog = 0,
+ [Description("ERRO AO BUSCAR APÓLICES POR STATUS E FORNECEDOR")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR AS APÓLICES DO CLIENTE SELECIONADO")]
+ BuscarApolicesSatus = 1,
+ [Description("ERRO AO BUSCAR APÓLICES FORNECEDOR PARA CRÍTICA DE COMISSÃO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR AS APÓLICES DO CLIENTE SELECIONADO PARA CRÍTICA DE COMISSÃO")]
+ BuscarApolicesComissao = 2,
+ [Description("ERRO AO BUSCAR APÓLICES POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR UMA APÓLICE DO CLIENTE SELECIONADO")]
+ BuscarApoliceId = 3,
+ [Description("ERRO AO BUSCAR CONTROLE POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR A UM CONTROLE DO CLIENTE SELECIONADO")]
+ BuscarControleId = 4,
+ [Description("ERRO AO BUSCAR APÓLICES POR VIGENCIA E FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR AS APÓLICES DO CLIENTE SELECIONADO")]
+ BuscarApolicesVigenciaFiltro = 5,
+ [Description("ERRO AO BUSCAR APÓLICES POR VIGENCIA FINAL E FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR AS APÓLICES DO CLIENTE SELECIONADO")]
+ BuscarApolicesVigenciaFinalFiltro = 6,
+ [Description("ERRO AO BUSCAR APÓLICES POR PESQUISA E STATUS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR AS APÓLICES DO CLIENTE SELECIONADO")]
+ BuscarApolicesPesquisaStatus = 7,
+ [Description("ERRO AO BUSCAR FECHAMENTOS POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS FECHAMENTOS DO DOCUMENTO SELECIONADO")]
+ BuscarFechamentosFiltro = 8,
+ [Description("ERRO AO BUSCAR LOGS DE ENVIO POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS LOGS DE ENVIO")]
+ BuscarLogsEnvioFiltro = 9,
+ [Description("ERRO AO BUSCAR APÓLICES PENDENTES POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR AS APÓLICES PENDENTES DO CLIENTE SELECIONADO")]
+ BuscarApolicesPendentesFiltro = 10,
+ [Description("ERRO AO BUSCAR APÓLICES POR ESTIPULANTE")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR AS APÓLICES")]
+ BuscarApolicesEstipulante = 11,
+ [Description("ERRO AO BUSCAR APÓLICES POR STATUS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR AS APÓLICES")]
+ BuscarApolicesStatus = 12,
+ [Description("ERRO AO BUSCAR AUDITORIAS POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR AS AUDITORIAS")]
+ BuscarAuditoriasFiltro = 13,
+ [Description("ERRO AO BUSCAR COTAÇÕES POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR AS COTAÇÕES")]
+ BuscarCotacoesFiltro = 14,
+ [Description("ERRO AO BUSCAR ADIANTAMENTOS POR DATA")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS ADIANTAMENTOS")]
+ BuscarAdiantamentosData = 15,
+ [Description("ERRO AO BUSCAR ADIANTAMENTOS POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS ADIANTAMENTOS")]
+ BuscarAdiantamentosId = 16,
+ [Description("ERRO AO BUSCAR ULTIMO ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR O ULTIMO ID")]
+ BuscarUltimoId = 17,
+ [Description("ERRO AO SALVAR DOCUMENTO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O DOCUMENTO SELECIONADO")]
+ SalvarDocumento = 18,
+ [Description("ERRO AO ATUALIZAR DOCUMENTO")]
+ [Category("CONSTATAMOS UM ERRO AO ATUALIZAR O DOCUMENTO SELECIONADO")]
+ SalvarAtualizarControle = 19,
+ [Description("ERRO AO EXCLUIR DOCUMENTO")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O DOCUMENTO SELECIONADO")]
+ ExcluirDocumento = 20,
+ [Description("ERRO AO EXCLUIR PAGAMENTO DE VENDEDORES")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O PAGAMENTO DE VENDEDORES")]
+ ExcluirPagamentoVendedor = 21,
+ [Description("ERRO AO INCLUIR PAGAMENTO A VENDEDORES")]
+ [Category("CONSTATAMOS UM ERRO AO INCLUIR PAGAMENTO A VENDEDORES")]
+ IncluirPagamentoVendedor = 22,
+ [Description("ERRO AO ALTERAR O STATUS DO DOCUMENTO PARA PERDIDO")]
+ [Category("CONSTATAMOS UM ERRO AO ALTERAR O STATUS DO DOCUMENTO PARA PERDIDO")]
+ AlterarStatusPerdido = 23,
+ [Description("ERRO AO SALVAR PARCELA")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR A PARCELA SELECIONADA")]
+ SalvarParcela = 24,
+ [Description("ERRO AO EXCLUIR CRÍTICA DE IMPORTAÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR A CRITICA DE IMPORTAÇÃO DO DOCUMENTO SELECIONADO")]
+ ExcluirCritica = 25,
+ [Description("ERRO AO BAIXAR PARCELAS")]
+ [Category("CONSTATAMOS UM ERRO AO BAIXAR AS PARCELAS DO DOCUMENTO SELECIONADO")]
+ BaixarParcelas = 26,
+ [Description("ERRO AO BUSCAR CLIENTE POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR O CLIENTE")]
+ BuscarClienteId = 27,
+ [Description("ERRO AO BUSCAR CLIENTES POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS CLIENTES")]
+ BuscarClientesId = 28,
+ [Description("ERRO AO BUSCAR CLIENTES POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS CLIENTES")]
+ BuscarClientesFiltro = 29,
+ [Description("ERRO AO BUSCAR TELEFONES DO CLIENTE POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS TELEFONES DO CLIENTE")]
+ BuscarTelefonesClienteId = 30,
+ [Description("ERRO AO BUSCAR TELEFONES DO CLIENTE POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS TELEFONES DO CLIENTE")]
+ BuscarTelefonesClienteFiltro = 31,
+ [Description("ERRO AO BUSCAR EMAILS DO CLIENTE POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS EMAILS DO CLIENTE")]
+ BuscarEmailsClienteId = 32,
+ [Description("ERRO AO BUSCAR VINCULOS DO CLIENTE POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR VINCULOS DO CLIENTE")]
+ BuscarVinculosClienteId = 33,
+ [Description("ERRO AO BUSCAR ENDEREÇOS DO CLIENTE POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS ENDEREÇOS DO CLIENTE")]
+ BuscarEnderecosClienteId = 34,
+ [Description("ERRO AO BUSCAR CONTATOS DO CLIENTE POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS CONTATOS DO CLIENTE")]
+ BuscarContatosClienteId = 35,
+ [Description("ERRO AO BUSCAR TODOS OS CLIENTES")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR TODOS OS CLIENTES")]
+ BuscarTodosClienteId = 36,
+ [Description("ERRO AO BUSCAR EMAILS DOS CLIENTES POR IDS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS EMAILS DOS CLIENTES")]
+ BuscarEmailsClientesId = 37,
+ [Description("ERRO AO BUSCAR ENDEREÇOS DOS CLIENTES POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS ENDEREÇOS DOS CLIENTES")]
+ BuscarEnderecosClientesId = 38,
+ [Description("ERRO AO BUSCAR CLIENTES POR OBSERVAÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS CLIENTES")]
+ BuscarClientesObs = 39,
+ [Description("ERRO AO BUSCAR CLIENTES POR PASTA")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS CLIENTES")]
+ BuscarClientesPasta = 40,
+ [Description("ERRO AO BUSCAR CLIENTES POR ANIVERSÁRIO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS CLIENTES")]
+ BuscarClientesAniversario = 41,
+ [Description("ERRO AO BUSCAR CLIENTES POR VALIDADE DA CNH")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS CLIENTES")]
+ BuscarClientesCnh = 42,
+ [Description("ERRO AO BUSCAR CRÍTICAS POR ID E DATA")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR AS CRÍTICAS")]
+ BuscarCriticasIdData = 43,
+ [Description("ERRO AO BUSCAR CRÍTICAS POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR AS CRÍTICAS")]
+ BuscarCriticasId = 44,
+ [Description("ERRO AO BUSCAR IMPORTAÇÕES POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR AS IMPORTAÇÕES")]
+ BuscarImportacoesId = 45,
+ [Description("ERRO AO BUSCAR PERFIS POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS PERFIS")]
+ BuscarPerfisId = 46,
+ [Description("ERRO AO BUSCAR PERFIS POR IDS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS PERFIS")]
+ BuscarPerfisIds = 47,
+ [Description("ERRO AO BUSCAR CONTROLES SINISTRO POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS CONTROLES SINISTRO")]
+ BuscarControlesSinistroId = 48,
+ [Description("ERRO AO BUSCAR SINISTRO POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR O SINISTRO")]
+ BuscarSinistroId = 49,
+ [Description("ERRO AO BUSCAR AUTOMÓVEL POR CHASSI")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR O AUTOMÓVEL")]
+ BuscarAutoChassi = 50,
+ [Description("ERRO AO BUSCAR ITEM POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR O ITEM")]
+ BuscarItemId = 51,
+ [Description("ERRO AO BUSCAR ITENS POR IDS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS ITENS")]
+ BuscarItensIds = 52,
+ [Description("ERRO AO BUSCAR ITENS POR ID E POR STATUS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS ITENS")]
+ BuscarItensIdStatus = 53,
+ [Description("ERRO AO BUSCAR PRÓXIMO ITEM")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR O PRÓXIMO")]
+ BuscarProximoItem = 54,
+ [Description("ERRO AO BUSCAR AUTOMÓVEL POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR O AUTOMÓVEL")]
+ BuscarAutoId = 55,
+ [Description("ERRO AO BUSCAR GRANIZO POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR O AUTOMÓVEL")]
+ BuscarGranizoId = 56,
+ [Description("ERRO AO BUSCAR COBERTURAS POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR AS COBERTURAS")]
+ BuscarCoberturasId = 57,
+ [Description("ERRO AO BUSCAR COBERTURAS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR AS COBERTURAS")]
+ BuscarCoberturas = 58,
+ [Description("ERRO AO BUSCAR PATRIMONIAL POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR O PATRIMONIAL")]
+ BuscarPatrimonialId = 59,
+ [Description("ERRO AO BUSCAR VIDA POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR O VIDA")]
+ BuscarVidaId = 60,
+ [Description("ERRO AO BUSCAR TITULARES VIDA POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR TITULARES VIDA")]
+ BuscarTitularesVidaId = 61,
+ [Description("ERRO AO BUSCAR RISCOS DIVERSOS POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR O RISCOS DIVERSOS")]
+ BuscarRiscosDiversosId = 62,
+ [Description("ERRO AO BUSCAR AERONAUTICO POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR O AERONAUTICO")]
+ BuscarAeronauticoId = 63,
+ [Description("ERRO AO BUSCAR INDICE ARQUIVO DIGITAL POR TIPO E ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR O INDICE ARQUIVO DIGITAL")]
+ BuscarIndiceArquivoDigitalTipoId = 64,
+ [Description("ERRO AO BUSCAR ANEXO POR ID E BANCO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR ANEXO POR ID E BANCO")]
+ BuscarAnexoIdBanco = 65,
+ [Description("ERRO AO BUSCAR ANEXOS POR IDS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS ANEXOS")]
+ BuscarAnexosIds = 66,
+ [Description("ERRO AO BUSCAR REGISTROS LOG POR ID E TIPO TELA")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS REGISTROS LOG")]
+ BuscarRegistrosLogIdTipo = 67,
+ [Description("ERRO AO BUSCAR LOG EMAIL POR ID E TIPO TELA")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS LOG EMAIL")]
+ BuscarEmailLogIdTipo = 68,
+ [Description("ERRO AO BUSCAR LOG EMAIL POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS LOG EMAIL")]
+ BuscarEmailLogId = 69,
+ [Description("ERRO AO BUSCAR MODELOS MALA DIRETA")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR MODELOS MALA DIRETA")]
+ BuscarModelosMalaDireta = 70,
+ [Description("ERRO AO BUSCAR PARCEIRO POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PARCEIRO")]
+ BuscarParceiroId = 71,
+ [Description("ERRO AO BUSCAR PARCEIROS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PARCEIROS")]
+ BuscarParceiros = 72,
+ [Description("ERRO AO BUSCAR PARCELAS POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PARCELAS")]
+ BuscarParcelasId = 73,
+ [Description("ERRO AO BUSCAR PARCELA POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PARCELA")]
+ BuscarParcelaId = 74,
+ [Description("ERRO AO BUSCAR PARCELAS POR IDS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PARCELAS")]
+ BuscarParcelasIds = 75,
+ [Description("ERRO AO BUSCAR FATURAS POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR FATURAS")]
+ BuscarFaturasFiltro = 76,
+ [Description("ERRO AO BUSCAR PARCELAS RECEBIMENTO POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PARCELAS RECEBIMENTO")]
+ BuscarParcelasRecebimentoFiltro = 77,
+ [Description("ERRO AO BUSCAR PARCELAS PENDENTES POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PARCELAS PENDENTES")]
+ BuscarParcelasPendentesFiltro = 78,
+ [Description("ERRO AO BUSCAR PARCELAS POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PARCELAS")]
+ BuscarParcelasFiltro = 79,
+ [Description("ERRO AO BUSCAR PAGAMENTO VENDEDOR POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PAGAMENTO VENDEDOR")]
+ BuscarPagamentoVendedorFiltro = 80,
+ [Description("ERRO AO BUSCAR PAGAMENTO VENDEDOR POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PAGAMENTO VENDEDOR")]
+ BuscarPagamentoVendedor = 81,
+ [Description("ERRO AO VERIFICAR SE TEM PAGAMENTO POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO VERIFICAR SE TEM PAGAMENTO")]
+ TemPagamentoId = 82,
+ [Description("ERRO AO BUSCAR FATURAS PENDENTES POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR FATURAS PENDENTES")]
+ BuscarFaturasPendentesFiltro = 83,
+ [Description("ERRO AO BUSCAR PERMISSÕES POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PERMISSÕES")]
+ BuscarPermissoesId = 84,
+ [Description("ERRO AO BUSCAR PERMISSÃO POR ID E TIPO TELA")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PERMISSÃO")]
+ BuscarPermissaoIdTipoTela = 85,
+ [Description("ERRO AO BUSCAR PROSPEÇÕES POR ID, POR DATA E POR STATUS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PROSPEÇÕES")]
+ BuscarProspeccoesIdDataStatus = 86,
+ [Description("ERRO AO BUSCAR PROSPEÇÃO POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PROSPEÇÃO")]
+ BuscarProspeccaoId = 87,
+ [Description("ERRO AO BUSCAR PROSPEÇÕES POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PROSPEÇÕES")]
+ BuscarProspeccoesFiltro = 88,
+ [Description("ERRO AO BUSCAR RESTRIÇÃO POR ID E POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR RESTRIÇÃO")]
+ BuscarRestricaoIdFiltro = 89,
+ [Description("ERRO AO BUSCAR RESTRIÇÕES POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR RESTRIÇÕES")]
+ BuscarRestricoesId = 90,
+ [Description("ERRO AO BUSCAR DETALHES EXTRATO POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR DETALHES EXTRATO")]
+ BuscarDetalhesExtratoId = 91,
+ [Description("ERRO AO BUSCAR EXTRATOS POR ID, POR DATA E POR STATUS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR EXTRATOS")]
+ BuscarExtratosIdDataStatus = 92,
+ [Description("ERRO AO BUSCAR EXTRATOS POR ID, POR DATA E POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR EXTRATOS")]
+ BuscarExtratosIdDataFiltro = 93,
+ [Description("ERRO AO BUSCAR TAREFAS POR ID, ENTIDADE E CONCLUIDO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR TAREFAS")]
+ BuscarTarefasIdEntidadeConcluido = 94,
+ [Description("ERRO AO BUSCAR TAREFAS POR ID, DATA E CONCLUIDO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR TAREFAS")]
+ BuscarTarefasIdDataConcluido = 95,
+ [Description("ERRO AO BUSCAR TAREFAS POR CLIENTE")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR TAREFAS")]
+ BuscarTarefasCliente = 96,
+ [Description("ERRO AO BUSCAR TAREFAS POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR TAREFAS")]
+ BuscarTarefasFiltro = 97,
+ [Description("ERRO AO BUSCAR NOTAS POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR NOTAS")]
+ BuscarNotasId = 98,
+ [Description("ERRO AO BUSCAR NOTAS CONCLUÍDAS POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR NOTAS CONCLUÍDAS")]
+ BuscarNotasConcluidasId = 99,
+ [Description("ERRO AO ATUALIZAR NOTAS E TAREFAS")]
+ [Category("CONSTATAMOS UM ERRO AO ATUALIZAR NOTAS E TAREFAS")]
+ AtualizarNotasTarefas = 100,
+ [Description("ERRO AO BUSCAR TAREFAS POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR TAREFAS")]
+ BuscarTarefasId = 101,
+ [Description("ERRO AO BUSCAR FASES POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR FASES")]
+ BuscarFasesId = 102,
+ [Description("ERRO AO BUSCAR TRILHAS POR TITULO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR TRILHAS")]
+ BuscarTrilhasTitulo = 103,
+ [Description("ERRO AO BUSCAR TRILHAS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR TRILHAS")]
+ BuscarTrilhas = 104,
+ [Description("ERRO AO BUSCAR TAREFA POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR TAREFA")]
+ BuscarTarefaId = 105,
+ [Description("ERRO AO BUSCAR VENDEDOR USUÁRIO POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR VENDEDOR USUÁRIO")]
+ BuscarVendedorUsuarioId = 106,
+ [Description("ERRO AO BUSCAR AGENDA TELEFONE POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR AGENDA TELEFONE")]
+ BuscarAgendaTelefoneId = 107,
+ [Description("ERRO AO BUSCAR AGENDA EMAIL POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR AGENDA EMAIL")]
+ BuscarAgendaEmailId = 108,
+ [Description("ERRO AO BUSCAR CLIENTE EMAIL POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR CLIENTE EMAIL")]
+ BuscarClienteEmailFiltro = 109,
+ [Description("ERRO AO BUSCAR ESTIPULANTE POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR ESTIPULANTE")]
+ BuscarEstipulanteId = 110,
+ [Description("ERRO AO BUSCAR ESTIPULANTE POR NOME")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR ESTIPULANTE")]
+ BuscarEstipulanteNome = 111,
+ [Description("ERRO AO BUSCAR ESTIPULANTES")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR ESTIPULANTES")]
+ BuscarEstipulantes = 112,
+ [Description("ERRO AO BUSCAR EMPRESAS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR EMPRESAS")]
+ BuscarEmpresas = 113,
+ [Description("ERRO AO BUSCAR EMPRESA POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR EMPRESA")]
+ BuscarEmpresaId = 114,
+ [Description("ERRO AO BUSCAR SENHA EMPRESA")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR SENHA EMPRESA")]
+ BuscarSenhaEmpresa = 115,
+ [Description("ERRO AO BUSCAR PRODUTO POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PRODUTO")]
+ BuscarProdutoId = 116,
+ [Description("ERRO AO BUSCAR PRODUTO POR NOME")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PRODUTO")]
+ BuscarProdutoNome = 117,
+ [Description("ERRO AO BUSCAR PRODUTOS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PRODUTOS")]
+ BuscarProdutos = 118,
+ [Description("ERRO AO BUSCAR STATUS POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR STATUS")]
+ BuscarStatusId = 119,
+ [Description("ERRO AO BUSCAR STATUS POR NOME")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR STATUS")]
+ BuscarStatusNome = 120,
+ [Description("ERRO AO BUSCAR STATUS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR STATUS")]
+ BuscarStatus = 121,
+ [Description("ERRO AO BUSCAR SÓCIOS POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR SÓCIOS")]
+ BuscarSociosId = 122,
+ [Description("ERRO AO BUSCAR RECIBOS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR RECIBOS")]
+ BuscarRecibos = 123,
+ [Description("ERRO AO BUSCAR CONFIG EXTRATO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR CONFIG EXTRATO")]
+ BuscarConfigExtratoId = 124,
+ [Description("ERRO AO BUSCAR SEGURADORA CONTATO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR SEGURADORA CONTATO")]
+ BuscarContatoSeguradoraIdEmpresa = 125,
+ [Description("ERRO AO BUSCAR SEGURADORA ENDEREÇO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR SEGURADORA ENDEREÇO")]
+ BuscarEnderecoSeguradoraIdEmpresa = 126,
+ [Description("ERRO AO BUSCAR SEGURADORAS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR SEGURADORAS")]
+ BuscarSeguradoras = 127,
+ [Description("ERRO AO BUSCAR SEGURADORA POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR SEGURADORA")]
+ BuscarSeguradora = 128,
+ [Description("ERRO AO BUSCAR AGENDAS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR AGENDAS")]
+ BuscarAgendas = 129,
+ [Description("ERRO AO BUSCAR USUÁRIO POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR USUÁRIO")]
+ BuscarUsuarioId = 130,
+ [Description("ERRO AO BUSCAR USUÁRIOS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR USUÁRIOS")]
+ BuscarUsuarios = 131,
+ [Description("ERRO AO BUSCAR USUÁRIOS POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR USUÁRIOS")]
+ BuscarUsuariosFiltro = 132,
+ [Description("ERRO AO BUSCAR PERMISSÃO AGGILIZADOR")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PERMISSÃO AGGILIZADOR")]
+ BuscarPermissaoAggilizador = 133,
+ [Description("ERRO AO BUSCAR USUÁRIO POR LOGIN")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR USUÁRIO")]
+ BuscarUsuarioLogin = 134,
+ [Description("ERRO AO BUSCAR VENDEDORES ATIVOS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR VENDEDORES ATIVOS")]
+ BuscarVendedoresAtivos = 135,
+ [Description("ERRO AO BUSCAR REPASSES POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR REPASSES")]
+ BuscarRepassesId = 136,
+ [Description("ERRO AO BUSCAR REPASSES PARCELA POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR REPASSES PARCELA")]
+ BuscarRepassesParcelaId = 137,
+ [Description("ERRO AO BUSCAR VENDEDOR TELEFONE POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR VENDEDOR TELEFONE")]
+ BuscarVendedorTelefoneId = 138,
+ [Description("ERRO AO BUSCAR VENDEDOR POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR VENDEDOR")]
+ BuscarVendedorId = 139,
+ [Description("ERRO AO BUSCAR VENDEDORES")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR VENDEDORES")]
+ BuscarVendedores = 140,
+ [Description("ERRO AO BUSCAR TIPO VENDEDORES")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR TIPO VENDEDORES")]
+ BuscarTipoVendedores = 141,
+ [Description("ERRO AO BUSCAR REPASSES")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR REPASSES")]
+ BuscarRepasses = 142,
+ [Description("ERRO AO BUSCAR REPASSES POR ID VENDEDOR")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR REPASSES")]
+ BuscarRepassesIdVendedor = 143,
+ [Description("ERRO AO BUSCAR BANCOS POR DESCRIÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR BANCOS")]
+ BuscarBancosDescricao = 144,
+ [Description("ERRO AO BUSCAR BANCOS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR BANCOS")]
+ BuscarBancos = 145,
+ [Description("ERRO AO BUSCAR BANCOS CONTAS POR DESCRIÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR BANCOS CONTAS")]
+ BuscarBancosContasDescricao = 146,
+ [Description("ERRO AO BUSCAR SALDO POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR SALDO")]
+ BuscarSaldoId = 147,
+ [Description("ERRO AO BUSCAR SALDO POR IDS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR SALDOS")]
+ BuscarSaldosIds = 148,
+ [Description("ERRO AO FECHAR SALDO")]
+ [Category("CONSTATAMOS UM ERRO AO FECHAR SALDO")]
+ FecharSaldo = 149,
+ [Description("ERRO AO BUSCAR SALDOS POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR SALDOS")]
+ BuscarSaldosId = 150,
+ [Description("ERRO AO BUSCAR SALDO POR DATA E ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR SALDO")]
+ BuscarSaldoDataId = 151,
+ [Description("ERRO AO BUSCAR CENTROS POR DESCRICAO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR CENTROS")]
+ BuscarCentrosDescricao = 152,
+ [Description("ERRO AO BUSCAR CENTROS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR CENTROS")]
+ BuscarCentros = 153,
+ [Description("ERRO AO VERIFICAR SE TEM LANÇAMENTOS POR FORNECEDOR POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO VERIFICAR SE TEM LANÇAMENTOS POR FORNECEDOR")]
+ TemLancamentosFornecedorId = 154,
+ [Description("ERRO AO VERIFICAR SE TIPO VENDEDOR ESTÁ SENDO UTILIZADO")]
+ [Category("CONSTATAMOS UM ERRO AO VERIFICAR SE TIPO VENDEDOR ESTÁ SENDO UTILIZADO")]
+ TipoVendedorUtilizado = 155,
+ [Description("ERRO AO VERIFICAR SE O PARCEIRO ESTÁ SENDO UTILIZADO")]
+ [Category("CONSTATAMOS UM ERRO AO VERIFICAR SE O PARCEIRO ESTÁ SENDO UTILIZADO")]
+ ParceiroUtilizado = 156,
+ [Description("ERRO AO BUSCAR LANÇAMENTOS POR FORNECEDOR POR ID E STATUS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTOS POR FORNECEDOR")]
+ BuscarLancamentosFornecedorIdStatus = 157,
+ [Description("ERRO AO BUSCAR LANÇAMENTOS POR CONTROLE POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTOS POR CONTROLE")]
+ BuscarLancamentosControleId = 158,
+ [Description("ERRO AO BUSCAR FORNECEDORES POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR FORNECEDORES")]
+ BuscarFornecedoresFiltro = 159,
+ [Description("ERRO AO BUSCAR LANÇAMENTOS POR FORNECEDOR POR VENCIMENTO E STATUS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTOS POR FORNECEDOR")]
+ BuscarLancamentosVencimentoStatus = 160,
+ [Description("ERRO AO BUSCAR LANÇAMENTOS POR BAIXA")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTOS")]
+ BuscarLancamentosBaixa = 161,
+ [Description("ERRO AO BUSCAR LANÇAMENTOS POR PAGAMENTO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTOS")]
+ BuscarLancamentosPagamento = 162,
+ [Description("ERRO AO BUSCAR LANÇAMENTO POR ID E PARCELA")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTO")]
+ BuscarLancamentoIdParcela = 163,
+ [Description("ERRO AO BUSCAR LANÇAMENTO POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTO")]
+ BuscarLancamentoId = 164,
+ [Description("ERRO AO BUSCAR LANÇAMENTO POR CONTA")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTO")]
+ BuscarLancamentosConta = 165,
+ [Description("ERRO AO BUSCAR FORNECEDORES")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR FORNECEDORES")]
+ BuscarFornecedores = 166,
+ [Description("ERRO AO BUSCAR PLANO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PLANO")]
+ BuscarPlano = 167,
+ [Description("ERRO AO BUSCAR PLANOS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PLANOS")]
+ BuscarPlanos = 168,
+ [Description("ERRO AO BUSCAR RAMOS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR RAMOS")]
+ BuscarRamos = 169,
+ [Description("ERRO AO BUSCAR QUALIFICACAO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR QUALIFICACAO")]
+ BuscarQualificacao = 170,
+ [Description("ERRO AO SALVAR CLIENTE")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O CLIENTE SELECIONADO")]
+ SalvarCliente = 171,
+ [Description("ERRO AO EXCLUIR CLIENTE")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O CLIENTE SELECIONADO")]
+ ExcluirCliente = 172,
+ [Description("ERRO AO CONCLUIR CRÍTICA DE IMPORTAÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO CONCLUIR A CRÍTICA DE IMPORTAÇÃO SELECIONADA")]
+ SalvarCritica = 173,
+ [Description("ERRO AO EXCLUIR SINISTRO")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O SINISTRO SELECIONADO")]
+ ExcluirSinistro = 174,
+ [Description("ERRO AO SALVAR SINISTRO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O SINISTRO SELECIONADO")]
+ SalvarSinistro = 175,
+ [Description("ERRO AO BUSCAR SINISTROS POR FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR SINISTROS")]
+ BuscarSinistrosFiltro = 176,
+ [Description("ERRO AO BUSCAR SINISTROS POR NÚMERO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR SINISTROS")]
+ BuscarSinistrosPorNumero = 177,
+ [Description("ERRO AO BUSCAR SINISTROS POR CONTROLE")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR SINISTROS")]
+ BuscarSinistrosPorControle = 178,
+ [Description("ERRO AO SALVAR CONTROLE")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR CONTROLE")]
+ SlavarControle = 179,
+ [Description("ERRO AO BUSCAR PROFISSÃO POR DESCRIÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PROFISSÃO")]
+ BuscarProfissaoDescricao = 180,
+ [Description("ERRO AO BUSCAR ATIVIDADE POR DESCRIÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR ATIVIDADE")]
+ BuscarAtividadeDescricao = 181,
+ [Description("ERRO AO BUSCAR FABRICANTE POR DESCRIÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR FABRICANTE")]
+ BuscarFabricanteDescricao = 182,
+ [Description("ERRO AO BUSCAR META VENDEDOR POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR META VENDEDOR")]
+ BuscarMetaVendedorId = 183,
+ [Description("ERRO AO BUSCAR META SEGURADORA POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR META SEGURADORA")]
+ BuscarMetaSeguradoraId = 184,
+ [Description("ERRO AO BUSCAR ADIANTAMENTO POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR ADIANTAMENTO VENDEDOR")]
+ BuscarAdiantamentoId = 185,
+ [Description("ERRO AO CARREGAR PARAMETROS INICIAIS")]
+ [Category("CONSTATAMOS UM ERRO AO CARREGAR PARAMETROS INICIAIS")]
+ CarregarParametrosIniciais = 186,
+ [Description("ERRO AO BUSCAR CREDENCIAIS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR CREDENCIAIS")]
+ BuscarCredenciais = 187,
+ [Description("ERRO AO BUSCAR ARQUIVO DIGITAL")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR ARQUIVO DIGITAL")]
+ BuscarArquivoDigital = 188,
+ [Description("ERRO AO SALVAR PAGAMENTO PARA O VENDEDOR")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O PAGAMENTO (REPASSE) DO VENDEDOR")]
+ SalvarPagamentoVendedor = 189,
+ [Description("ERRO AO EXCLUIR PARCELA")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR PARCELA")]
+ ExcluirParcela = 190,
+ [Description("ERRO AO EXCLUIR A BAIXA DA PARCELA")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR A BAIXA DA PARCELA")]
+ ExcluirBaixaParcela = 191,
+ [Description("ERRO AO ATUALIZAR EXTRATO DE COMISSÃO")]
+ [Category("CONSTATAMOS UM ERRO AO ATUALIZAR EXTRATO DE COMISSÃO")]
+ AtualizarExtrato = 192,
+ [Description("ERRO AO GERAR PAGAMENTOS PARA OS VENDEDORES")]
+ [Category("CONSTATAMOS UM ERRO AO GERAR PAGAMENTOS PARA OS VENDEDORES SELECIONADOS")]
+ GerarPagamentos = 193,
+ [Description("ERRO AO GERAR PAGAMENTO PARA OS ATENDIMENTOS")]
+ [Category("CONSTATAMOS UM ERRO AO GERAR PAGAMENTO PARA OS ATENDIMENTOS")]
+ GerarPagamentoAtendimentos = 194,
+ [Description("ERRO AO SALVAR ITEM")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O ITEM SELECIONADO")]
+ SalvarItem = 195,
+ [Description("ERRO AO SALVAR PATRIMONIAL")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O ITEM SELECIONADO")]
+ SalvarPatrimonial = 196,
+ [Description("ERRO AO EXCLUIR PATRIMONIAL")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O ITEM SELECIONADO")]
+ ExcluirPatrimonial = 197,
+ [Description("ERRO AO SALVAR RISCOS DIVERSOS")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O ITEM SELECIONADO")]
+ SalvarRiscosDiversos = 198,
+ [Description("ERRO AO EXCLUIR RISCOS DIVERSOS")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O ITEM SELECIONADO")]
+ ExcluirRiscosDiversos = 199,
+ [Description("ERRO AO SALVAR VIDA")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O ITEM SELECIONADO")]
+ SalvarVida = 200,
+ [Description("ERRO AO EXCLUIR VIDA")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O ITEM SELECIONADO")]
+ ExcluirVida = 201,
+ [Description("ERRO AO SALVAR AERONÁUTICO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O ITEM SELECIONADO")]
+ SalvarAeronautico = 202,
+ [Description("ERRO AO EXCLUIR AERONÁUTICO")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O ITEM SELECIONADO")]
+ ExcluirAeronautico = 203,
+ [Description("ERRO AO SALVAR AUTOMOVEL")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O ITEM SELECIONADO")]
+ SalvarAuto = 204,
+ [Description("ERRO AO EXCLUIR AUTOMOVEL")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O ITEM SELECIONADO")]
+ ExcluirAuto = 205,
+ [Description("ERRO AO SALVAR GRANIZO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O ITEM SELECIONADO")]
+ SalvarGranizo = 206,
+ [Description("ERRO AO EXCLUIR GRANIZO")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O ITEM SELECIONADO")]
+ ExcluirGranizo = 207,
+ [Description("ERRO AO SALVAR COBERTURAS")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR AS COBERTURAS")]
+ SalvarCoberturas = 208,
+ [Description("ERRO AO SALVAR ADIANTAMENTO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O ADIANTAMENTO SELECIONADO")]
+ SalvarAdiantamento = 209,
+ [Description("ERRO AO EXCLUIR ADIANTAMENTO")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O ADIANTAMENTO SELECIONADO")]
+ ExcluirAdiantamento = 210,
+ [Description("ERRO AO SALVAR ATIVIDADE")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR A ATIVIDADE SELECIONADA")]
+ SalvarAtividade = 211,
+ [Description("ERRO AO SALVAR PERFIL")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O PERFIL SELECIONADO")]
+ SalvarPerfil = 212,
+ [Description("ERRO AO EXCLUIR PERFIL")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O PERFIL SELECIONADO")]
+ ExcluirPerfil = 213,
+ [Description("ERRO AO SALVAR PROFISSÃO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR A PROFISSÃO SELECIONADA")]
+ SalvarProfissao = 214,
+ [Description("ERRO AO SALVAR AGENDA")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR A AGENDA SELECIONADA")]
+ SalvarAgenda = 215,
+ [Description("ERRO AO EXCLUIR AGENDA")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR A AGENDA SELECIONADA")]
+ ExcluirAgenda = 216,
+ [Description("ERRO AO SALVAR EMAIL")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O EMAIL SELECIONADO")]
+ SalvarEmail = 217,
+ [Description("ERRO AO EXCLUIR EMAIL")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O EMAIL SELECIONADO")]
+ ExcluirEmail = 218,
+ [Description("ERRO AO SALVAR ESTIPULANTE")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O ESTIPULANTE SELECIONADO")]
+ SalvarEstipulante = 219,
+ [Description("ERRO AO EXCLUIR ESTIPULANTE")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O ESTIPULANTE SELECIONADO")]
+ ExcluirEstipulante = 220,
+ [Description("ERRO AO EXCLUIR STATUS")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O STATUS SELECIONADO")]
+ ExcluirStatus = 221,
+ [Description("ERRO AO SALVAR META DA SEGURADORA")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR META DA SEGURADORA SELECIONADA")]
+ SalvarMetaSeguradora = 222,
+ [Description("ERRO AO EXCLUIR META DA SEGURADORA")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR META DA SEGURADORA SELECIONADA")]
+ ExcluirMetaSeguradora = 223,
+ [Description("ERRO AO SALVAR META DO VENDEDOR")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR A META DO VENDEDOR SELECIONADO")]
+ SalvarMetaVendedor = 224,
+ [Description("ERRO AO EXCLUIR META DO VENDEDOR")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR META DO VENDEDOR SELECIONADO")]
+ ExcluirMetaVendedor = 225,
+ [Description("ERRO AO SALVAR PRODUTO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O PRODUTO SELECIONADO")]
+ SalvarProduto = 226,
+ [Description("ERRO AO SALVAR STATUS")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O STATUS SELECIONADO")]
+ SalvarStatus = 227,
+ [Description("ERRO AO SALVAR RAMO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O RAMO SELECIONADO")]
+ SalvarRamo = 228,
+ [Description("ERRO AO SALVAR QUALIFICACAO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O QUALIFICACAO")]
+ SalvarQualificacao = 229,
+ [Description("ERRO AO INSERIR RAMO")]
+ [Category("CONSTATAMOS UM ERRO AO INSERIR O RAMO SELECIONADO")]
+ InserirRamo = 230,
+ [Description("ERRO AO SALVAR RECIBO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O RECIBO SELECIONADO")]
+ SalvarRecibo = 231,
+ [Description("ERRO AO EXCLUIR RECIBO")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O RECIBO SELECIONADO")]
+ ExcluirRecibo = 232,
+ [Description("ERRO AO SALVAR SEGURADORA")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR A SEGURADORA SELECIONADA")]
+ SalvarSeguradora = 233,
+ [Description("ERRO AO INSERIR SEGURADORA")]
+ [Category("CONSTATAMOS UM ERRO AO INSERIR A SEGURADORA SELECIONADA")]
+ InserirSeguradora = 234,
+ [Description("ERRO AO SALVAR SÓCIO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O SÓCIO SELECIONADO")]
+ SalvarSocio = 235,
+ [Description("ERRO AO EXCLUIR SÓCIO")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O SÓCIO SELECIONADO")]
+ ExcluirSocio = 236,
+ [Description("ERRO AO SALVAR TIPO VENDEDOR")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O TIPO VENDEDOR SELECIONADO")]
+ SalvarTipoVendedor = 237,
+ [Description("ERRO AO EXCLUIR TIPO VENDEDOR")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O TIPO VENDEDOR SELECIONADO")]
+ ExcluirTipoVendedor = 238,
+ [Description("ERRO AO SALVAR USUÁRIO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O USUÁRIO SELECIONADO")]
+ SalvarUsuario = 239,
+ [Description("ERRO AO EXCLUIR USUÁRIO")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O USUÁRIO SELECIONADO")]
+ ExcluirUsuario = 240,
+ [Description("ERRO AO SALVAR VENDEDOR")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O VENDEDOR SELECIONADO")]
+ SalvarVendedor = 241,
+ [Description("ERRO AO EXCLUIR VENDEDOR")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O VENDEDOR SELECIONADO")]
+ ExcluirVendedor = 242,
+ [Description("ERRO AO SALVAR FORNECEDOR")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O FORNECEDOR SELECIONADO")]
+ SalvarFornecedor = 243,
+ [Description("ERRO AO EXCLUIR FORNECEDOR")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O FORNECEDOR SELECIONADO")]
+ ExcluirFornecedor = 244,
+ [Description("ERRO AO SALVAR BANCO E CONTA")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O BANCO E CONTA SELECIONADO")]
+ SalvarBancoConta = 245,
+ [Description("ERRO AO EXCLUIR BANCO E CONTA")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O BANCO E CONTA SELECIONADO")]
+ ExcluirBancoConta = 246,
+ [Description("ERRO AO SALVAR SALDO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O SALDO SELECIONADO")]
+ SalvarSaldo = 247,
+ [Description("ERRO AO EXCLUIR SALDO")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O SALDO SELECIONADO")]
+ ExcluirSaldo = 248,
+ [Description("ERRO AO SALVAR CENTRO DE CUSTO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O CENTRO DE CUSTO SELECIONADO")]
+ SalvarCentro = 249,
+ [Description("ERRO AO SALVAR PLANO DE SERVIÇO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O PLANO DE SERVIÇO SELECIONADO")]
+ SalvarPlano = 250,
+ [Description("ERRO AO SALVAR PLANOS DE SERVIÇO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O PLANOS DE SERVIÇO SELECIONADO")]
+ SalvarPlanos = 251,
+ [Description("ERRO AO SALVAR ARQUIVO DIGITAL")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O ARQUIVO DIGITAL SELECIONADO")]
+ SalvarAd = 252,
+ [Description("ERRO AO EXCLUIR ARQUIVO DIGITAL")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O ARQUIVO DIGITAL SELECIONADO")]
+ ExcluirAd = 253,
+ [Description("ERRO AO SALVAR MALA DIRETA")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR A MALA DIRETA SELECIONADA")]
+ SalvarMalaDireta = 254,
+ [Description("ERRO AO EXCLUIR MALA DIRETA")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR A MALA DIRETA SELECIONADA")]
+ ExcluirMalaDireta = 255,
+ [Description("ERRO AO SALVAR PARCEIRO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O PARCEIRO SELECIONADO")]
+ SalvarParceiro = 256,
+ [Description("ERRO AO EXCLUIR PARCEIRO")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O PARCEIRO SELECIONADO")]
+ ExcluirParceiro = 257,
+ [Description("ERRO AO SALVAR PERMISSÕES DO USUÁRIO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR AS PERMISSÕES DO USUÁRIO SELECIONADO")]
+ SalvarPermissao = 258,
+ [Description("ERRO AO SALVAR PROSPECÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR A PROSPECÇÃO SELECIONADA")]
+ SalvarProspeccao = 259,
+ [Description("ERRO AO EXCLUIR PROSPECÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR A PROSPECÇÃO SELECIONADA")]
+ ExcluirProspeccao = 260,
+ [Description("ERRO AO SALVAR RESTRIÇÕES DO USUÁRIO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR AS RESTRIÇÕES DO USUÁRIO SELECIONADO")]
+ SalvarRestricao = 261,
+ [Description("ERRO AO SALVAR OS DETALHES DO EXTRATO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR OS DETALHES DO EXTRATO SELECIONADO")]
+ SalvarDetalheExtrato = 262,
+ [Description("ERRO AO SALVAR EXTRATO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O EXTRATO SELECIONADO")]
+ SalvarExtrato = 263,
+ [Description("ERRO AO EXCLUIR EXTRATO")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O EXTRATO SELECIONADO")]
+ ExcluirExtrato = 264,
+ [Description("ERRO AO SALVAR TAREFA")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR A TAREFA SELECIONADA")]
+ SalvarTarefa = 265,
+ [Description("ERRO AO VALIDAR ANALITICO POR ID E TRILHAID")]
+ [Category("CONSTATAMOS UM ERRO AO VALIDAR ANALITICO POR ID E TRILHAID")]
+ ValidarAnaliticoIdTrilhaId = 266,
+ [Description("ERRO AO SALVAR TRILHA")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR A TRILHA SELECIONADA")]
+ SalvarTrilha = 267,
+ [Description("ERRO AO EXCLUIR TAREFA")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR A TAREFA SELECIONADA")]
+ ExcluirTarefa = 268,
+ [Description("ERRO AO SALVAR FASE")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR A FASE SELECIONADA")]
+ SalvarFase = 269,
+ [Description("ERRO AO EXCLUIR FASE")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR A FASE SELECIONADA")]
+ ExcluirFase = 270,
+ [Description("ERRO AO SALVAR VÍNCULO DE VENDEDOR COM USUÁRIO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O VÍNCULO DE VENDEDOR COM O USUÁRIO SELECIONADO")]
+ SalvarVendedorUsuario = 271,
+ [Description("ERRO AO EXCLUIR VÍNCULO DE VENDEDOR COM USUÁRIO")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O VÍNCULO DE VENDEDOR COM O USUÁRIO SELECIONADO")]
+ ExcluirVendedorUsuario = 272,
+ [Description("ERRO AO EXCLUIR INSTALAÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR A INSTALAÇÃO SELECIONADA")]
+ ExcluirInstalacao = 273,
+ [Description("ERRO AO EXCLUIR ITEM")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR ITEM")]
+ ExcluirItem = 274,
+ [Description("ERRO AO EXCLUIR ITENS")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR ITENS")]
+ ExcluirItens = 275,
+ [Description("ERRO AO SALVAR ITENS")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR ITENS")]
+ SalvarItens = 276,
+ [Description("ERRO AO SALVAR EMPRESA")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR A EMPRESA SELECIONADA")]
+ SalvarEmpresa = 277,
+ [Description("ERRO AO SALVAR ARQUIVO ASSINTATURA DIGITAL")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O ARQUIVO ENVIADO PARA ASSINATURA DIGITAL")]
+ SalvarArquivoAssinado = 278,
+ [Description("ERRO AO SALVAR LANÇAMENTO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O LANÇAMENTO SELECIONADO")]
+ SalvarLancamento = 279,
+ [Description("ERRO AO ATUALIZAR LANÇAMENTO")]
+ [Category("CONSTATAMOS UM ERRO AO ATUALIZAR O LANÇAMENTO SELECIONADO")]
+ AtualizarLancamento = 280,
+ [Description("ERRO AO INCLUIR LANÇAMENTO")]
+ [Category("CONSTATAMOS UM ERRO AO INCLUIR O LANÇAMENTO SELECIONADO")]
+ IncluirLancamento = 281,
+ [Description("ERRO AO EXCLUIR LANÇAMENTO")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O LANÇAMENTO SELECIONADO")]
+ ExcluirLancamento = 282,
+ [Description("ERRO AO TRANSFERIR")]
+ [Category("CONSTATAMOS UM ERRO NA TRANSFERÊNCIA SELECIONADA")]
+ Transferir = 283,
+ [Description("ERRO AO BUSCAR METAS DE SEGURADORAS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR METAS DE SEGURADORAS")]
+ BuscarMetasSeguradora = 284,
+ [Description("ERRO AO BUSCAR METAS DE VENDEDORES")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR METAS DE VENDEDORES")]
+ BuscarMetasVendedor = 285,
+ [Description("ERRO AO BUSCAR CLIENTES ATIVOS/INATIVOS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR CLIENTES ATIVOS/INATIVOS")]
+ BuscarClienteAtivosInativos = 286,
+ [Description("ERRO AO VERIFICAR VERSÃO")]
+ [Category("ERRO AO VERIFICAR VERSÃO")]
+ VerificarVersao = 287,
+ [Description("CONFIGURAR ARQUIVO DIGITAL")]
+ [Category("CONFIGURAR ARQUIVO DIGITAL")]
+ CriarBancoAd = 288,
+ [Description("ERRO AO BUSCAR EXPEDIÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR EXPEDIÇÃO")]
+ BuscarExpedicao = 289,
+ [Description("ERRO AO SALVAR EXPEDIÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR A EXPEDIÇÃO SELECIONADA")]
+ SalvarExpedicao = 290,
+ [Description("ERRO AO EXCLUIR EXPEDIÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR A EXPEDIÇÃO SELECIONADA")]
+ ExcluirExpedicao = 291,
+ [Description("ERRO AO DESFAZER PARCELA")]
+ [Category("CONSTATAMOS UM ERRO AO DESFAZER PARCELA")]
+ DesfazerParcela = 292,
+ [Description("ERRO AO SINCRONIZAR APOLICES PENDENTES")]
+ [Category("CONSTATAMOS UM ERRO AO SINCRONIZAR APOLICES PENDENTES")]
+ SincronizarApolicePendente = 293,
+ [Description("ERRO AO GERAR FECHAMENTO FINANCEIRO")]
+ [Category("CONSTATAMOS UM ERRO AO GERAR FECHAMENTO FINANCEIRO")]
+ BuscarFechamentoFinanceiro = 294,
+ [Description("ERRO AO BUSCAR LICENCIAMENTOS POR PERIODO E FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR LICENCIAMENTOS POR PERIODO E FILTRO")]
+ BuscarLicenciamentos = 295,
+ [Description("ERRO AO BUSCAR PLANILHA COMPLETA POR ID DO DOCUMENTO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR A PLANILHA COMPLETA")]
+ BuscarPlanilhaCompletaId = 296,
+ [Description("ERRO AO BUSCAR CONFIGURAÇÕES")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR CONFIGURAÇÕES")]
+ BuscarConfiguracoes = 297,
+ [Description("ERRO AO INCLUR CONFIGURACAO")]
+ [Category("CONSTATAMOS UM ERRO AO INCLUR CONFIGURACAO")]
+ IncluirConfuguracao = 298,
+ [Description("ERRO AO BUSCAR PARCELA PENDENTE DE PAGAMENTO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PARCELA PENDENTE DE PAGAMENTO")]
+ BuscarParcelaPendente = 299,
+ [Description("ERRO AO SINCRONIZAR PARCELA PENDENTE")]
+ [Category("CONSTATAMOS UM ERRO AO SINCRONIZAR PARCELA PENDENTE")]
+ SincronizarParcelaPendente = 300,
+ [Description("ERRO AO BUSCAR PARAMETROS DO RELATORIO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PARAMETROS DO RELATORIO SELECIONADO")]
+ BuscarParametrosRelatorio = 301,
+ [Description("ERRO AO BUSCAR PARAMETROS DE TOTALIZAÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PARAMETROS DE TOTALIZAÇÃO SELECIONADO")]
+ BuscarParametrosTotalizacao = 302,
+ [Description("ERRO AO SALVAR PARAMETROS DO RELATORIO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR PARAMETROS DO RELATORIO SELECIONADO")]
+ SalvarParametrosRelatorio = 303,
+ [Description("ERRO AO SALVAR PARAMETROS DE TOTALIZAÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR PARAMETROS DE TOTALIZAÇÃO SELECIONADO")]
+ SalvarParametrosTotalizacao = 304,
+ [Description("ERRO AO BUSCAR ITENS POR IDDOCUMENTO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS ITENS")]
+ BuscarItensIdDocumento = 305,
+ [Description("ERRO AO SALVAR TIPO DE TAREFA")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O TIPO DE TAREFA SELECIONADO")]
+ SalvarTipoTarefa = 306,
+ [Description("ERRO AO SALVAR STATUS DE PROSPECÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O STATUS DE PROSPECÇÃO")]
+ SalvarStatusProspeccao = 307,
+ [Description("ERRO AO BUSCAR TIPOS DE TAREFA")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR TIPOS DE TAREFA")]
+ BuscarTiposTarefa = 308,
+ [Description("ERRO AO BUSCAR TAREFAS POR TIPO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR TAREFAS POR TIPO")]
+ BuscarTarefasPorTipo = 309,
+ [Description("ERRO AO BUSCAR PROSPECÇÕES POR STATUS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PROSPECÇÕES POR STATUS")]
+ BuscarProspeccoesPorStatus = 310,
+ [Description("ERRO AO SALVAR VINCULO DE REPASSES")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR VINCULO DE REPASSES")]
+ SalvarVinculoRepasse = 311,
+ [Description("ERRO AO BUSCAR NOTAS FISCAIS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR NOTAS FISCAIS")]
+ BuscarNotasFiscais = 312,
+ [Description("ERRO AO SALVAR NOTA FISCAL")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR A NOTA FISCAL SELECIONADA")]
+ SalvarNotaFiscal = 313,
+ [Description("ERRO AO EXCLUIR NOTA FISCAL")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR A NOTA FISCAL SELECIONADO")]
+ ExcluirNotaFiscal = 314,
+ [Description("ERRO AO BUSCAR NOTAS FISCAIS NO RELATÓRIO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR NOTAS FISCAIS NO RELATÓRIO")]
+ BuscarNotasFiscaisRelatorio = 315,
+ [Description("ERRO AO BUSCAR PREVISÃO DE PAGAMENTO DE COMISSÃO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PREVISÃO DE PAGAMENTO DE COMISSÃO")]
+ BuscarPrevisaoPagamentoComissao = 316,
+ [Description("ERRO AO BUSCAR PARAMETROS DE IMPOSTO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS PARAMETROS DE IMPOSTO")]
+ BuscarImpostos = 317,
+ [Description("ERRO AO SALVAR PARAMETROS DE IMPOSTO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O PARAMETRO DE IMPOSTO")]
+ SalvarImposto = 318,
+ [Description("ERRO AO BUSCAR LOG SISTEMA ANTIGO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR LOG DO SISTEMA ANTIGO")]
+ BuscarLogAntigo = 319,
+ [Description("ERRO AO SALVAR LOG DE AÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O LOG DO PROCEDIMENTO EXECUTADO")]
+ SalvarAction = 320,
+ [Description("ERRO AO BUSCAR LOG DE UTILIZAÇÃO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR LOG DE UTILIZAÇÃO")]
+ BuscarAction = 321,
+ [Description("ERRO AO BUSCAR FATURAS POR NÚMERO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR FATURAS")]
+ BuscarFaturaPorNumero = 322,
+ [Description("ERRO AO BUSCAR LANÇAMENTO PELO CÓDIGO BANCÁRIO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTO PELO CÓDIGO BANCÁRIO")]
+ BuscarLancamentoCodigoBanco = 323,
+ [Description("ERRO AO BUSCAR CLIENTES PARA PROSPECTAR")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR OS CLIENTES PARA PROSPECTAR NOVAS VENDAS")]
+ Prospectar = 324,
+ [Description("ERRO AO TROCAR CLIENTE")]
+ [Category("CONSTATAMOS UM ERRO AO TROCAR APÓLICE DE UM CLIENTE PARA OUTRO")]
+ TrocarCliente = 325,
+ [Description("ERRO AO BUSCAR ORIGENS DO CLIENTE")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR ORIGENS DO CLIENTE")]
+ BuscarOrigensClienteId = 326,
+ [Description("ERRO AO BUSCAR PLACAS POR PERIODO E FILTRO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR PLACAS POR PERIODO E FILTRO")]
+ BuscarPlacas = 327,
+ [Description("ERRO AO BUSCAR DATA DE NASCIMENTO")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR DATA DE NASCIMENTO")]
+ BuscarNascimento = 328,
+ [Description("ERRO AO BUSCAR LANÇAMENTOS POR DATA LANÇAMENTO E STATUS")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTOS POR DATA LANÇAMENTO")]
+ BuscarLancamentosPorDataLancamento = 329,
+ [Description("ERRO AO BUSCAR CONSORCIO POR ID")]
+ [Category("CONSTATAMOS UM ERRO AO BUSCAR O RISCOS DIVERSOS")]
+ BuscarConsorcioId = 330,
+ [Description("ERRO AO SALVAR CONSORCIO")]
+ [Category("CONSTATAMOS UM ERRO AO SALVAR O ITEM SELECIONADO")]
+ SalvarConsorcio = 331,
+ [Description("ERRO AO EXCLUIR CONSORCIO")]
+ [Category("CONSTATAMOS UM ERRO AO EXCLUIR O CONSORCIO SELECIONADO")]
+ ExcluirConsorcio = 332,
+ [Description("ERRO INESPERADO")]
+ [Category("CONSTATAMOS UM ERRO INESPERADO")]
+ Inesperado = 1000,
+ [Description("ERRO AO ATUALIZAR")]
+ [Category("CONSTATAMOS QUE NÃO HÁ ESPAÇO LIVRE EM DISCO SUFICENTE PARA A ATUALIZAÇÃO DO SISTEMA.")]
+ EspacoLivre = 1001
+}
diff --git a/Gestor.Model/Gestor.Model.API/TokenSso.cs b/Gestor.Model/Gestor.Model.API/TokenSso.cs
new file mode 100644
index 0000000..ce0531f
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/TokenSso.cs
@@ -0,0 +1,12 @@
+namespace Gestor.Model.API;
+
+public class TokenSso
+{
+ public UserSso User { get; set; }
+
+ public double Expires { get; set; }
+
+ public string Token { get; set; }
+
+ public string Type { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.API/UploadFile.cs b/Gestor.Model/Gestor.Model.API/UploadFile.cs
new file mode 100644
index 0000000..1398dc6
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/UploadFile.cs
@@ -0,0 +1,26 @@
+using System;
+
+namespace Gestor.Model.API;
+
+public class UploadFile
+{
+ private string _extensao;
+
+ public Guid Id { get; set; }
+
+ public string Extensao
+ {
+ get
+ {
+ return _extensao;
+ }
+ set
+ {
+ _extensao = value?.Trim()?.ToLower();
+ }
+ }
+
+ public int Ano { get; set; }
+
+ public byte[] Arquivo { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.API/UserSso.cs b/Gestor.Model/Gestor.Model.API/UserSso.cs
new file mode 100644
index 0000000..51b17ad
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/UserSso.cs
@@ -0,0 +1,26 @@
+namespace Gestor.Model.API;
+
+public class UserSso
+{
+ public string Id { get; set; }
+
+ public string Name { get; set; }
+
+ public string Username { get; set; }
+
+ public string Password { get; set; }
+
+ public string Serial { get; set; }
+
+ public string CustomerDocument { get; set; }
+
+ public long IdEmpresa { get; set; }
+
+ public string Document { get; set; }
+
+ public string Email { get; set; }
+
+ public bool IsDeleted { get; set; }
+
+ public string Phone { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.API/UsuarioCentralSegurado.cs b/Gestor.Model/Gestor.Model.API/UsuarioCentralSegurado.cs
new file mode 100644
index 0000000..4bf1a8b
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/UsuarioCentralSegurado.cs
@@ -0,0 +1,42 @@
+namespace Gestor.Model.API;
+
+public class UsuarioCentralSegurado
+{
+ public string Id { get; set; } = string.Empty;
+
+
+ public string Serial { get; set; }
+
+ public long FornecedorId { get; set; }
+
+ public bool Admin { get; set; }
+
+ public long IdEmpresa { get; set; } = 1L;
+
+
+ public string Nome { get; set; }
+
+ public string Email { get; set; }
+
+ public string Documento { get; set; }
+
+ public string Telefone { get; set; }
+
+ public string Cep { get; set; }
+
+ public string Rua { get; set; }
+
+ public string Numero { get; set; }
+
+ public string Bairro { get; set; }
+
+ public string Cidade { get; set; }
+
+ public string Estado { get; set; }
+
+ public string Senha { get; set; }
+
+ public string Corretora { get; set; }
+
+ public string UriCorretora { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.API/Version.cs b/Gestor.Model/Gestor.Model.API/Version.cs
new file mode 100644
index 0000000..ce08dc9
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.API/Version.cs
@@ -0,0 +1,22 @@
+using System;
+
+namespace Gestor.Model.API;
+
+public class Version
+{
+ public string Name { get; set; }
+
+ public string Uri { get; set; }
+
+ public DateTime Data { get; set; }
+
+ public string Beta { get; set; }
+
+ public string Status { get; set; }
+
+ public bool Obrigatorio { get; set; }
+
+ public bool Erro { get; set; }
+
+ public string VersaoAplicacao { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Attributes/EntityAttribute.cs b/Gestor.Model/Gestor.Model.Attributes/EntityAttribute.cs
new file mode 100644
index 0000000..c8f00f3
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Attributes/EntityAttribute.cs
@@ -0,0 +1,28 @@
+using System;
+
+namespace Gestor.Model.Attributes;
+
+[AttributeUsage(AttributeTargets.All)]
+public class EntityAttribute : Attribute
+{
+ public string Tipo { get; set; }
+
+ public virtual string Description => DescriptionValue;
+
+ protected string DescriptionValue
+ {
+ get
+ {
+ return Tipo;
+ }
+ set
+ {
+ Tipo = value;
+ }
+ }
+
+ public EntityAttribute(string tipo)
+ {
+ Tipo = tipo;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Attributes/ForceLogAttribute.cs b/Gestor.Model/Gestor.Model.Attributes/ForceLogAttribute.cs
new file mode 100644
index 0000000..673d14f
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Attributes/ForceLogAttribute.cs
@@ -0,0 +1,27 @@
+using System;
+
+namespace Gestor.Model.Attributes;
+
+public class ForceLogAttribute : Attribute
+{
+ public bool Log { get; set; }
+
+ public virtual bool Description => DescriptionValue;
+
+ protected bool DescriptionValue
+ {
+ get
+ {
+ return Log;
+ }
+ set
+ {
+ Log = value;
+ }
+ }
+
+ public ForceLogAttribute(bool log = true)
+ {
+ Log = log;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Attributes/HelpAttribute.cs b/Gestor.Model/Gestor.Model.Attributes/HelpAttribute.cs
new file mode 100644
index 0000000..552fcc1
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Attributes/HelpAttribute.cs
@@ -0,0 +1,28 @@
+using System;
+
+namespace Gestor.Model.Attributes;
+
+[AttributeUsage(AttributeTargets.All)]
+public class HelpAttribute : Attribute
+{
+ public string Tipo { get; set; }
+
+ public virtual string Description => DescriptionValue;
+
+ protected string DescriptionValue
+ {
+ get
+ {
+ return Tipo;
+ }
+ set
+ {
+ Tipo = value;
+ }
+ }
+
+ public HelpAttribute(string tipo)
+ {
+ Tipo = tipo;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Attributes/LogAttribute.cs b/Gestor.Model/Gestor.Model.Attributes/LogAttribute.cs
new file mode 100644
index 0000000..02c0950
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Attributes/LogAttribute.cs
@@ -0,0 +1,28 @@
+using System;
+
+namespace Gestor.Model.Attributes;
+
+[AttributeUsage(AttributeTargets.All)]
+public class LogAttribute : Attribute
+{
+ public bool Log { get; set; }
+
+ public virtual bool Description => DescriptionValue;
+
+ protected bool DescriptionValue
+ {
+ get
+ {
+ return Log;
+ }
+ set
+ {
+ Log = value;
+ }
+ }
+
+ public LogAttribute(bool log = true)
+ {
+ Log = log;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Attributes/NameAttribute.cs b/Gestor.Model/Gestor.Model.Attributes/NameAttribute.cs
new file mode 100644
index 0000000..b97c29a
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Attributes/NameAttribute.cs
@@ -0,0 +1,28 @@
+using System;
+
+namespace Gestor.Model.Attributes;
+
+[AttributeUsage(AttributeTargets.All)]
+public class NameAttribute : Attribute
+{
+ public bool Log { get; set; }
+
+ public virtual bool Description => DescriptionValue;
+
+ protected bool DescriptionValue
+ {
+ get
+ {
+ return Log;
+ }
+ set
+ {
+ Log = value;
+ }
+ }
+
+ public NameAttribute(bool log = true)
+ {
+ Log = log;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Attributes/OldValue2Attribute.cs b/Gestor.Model/Gestor.Model.Attributes/OldValue2Attribute.cs
new file mode 100644
index 0000000..22cc848
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Attributes/OldValue2Attribute.cs
@@ -0,0 +1,14 @@
+using System;
+
+namespace Gestor.Model.Attributes;
+
+[AttributeUsage(AttributeTargets.Field)]
+public class OldValue2Attribute : Attribute
+{
+ public string OldValue2 { get; private set; }
+
+ public OldValue2Attribute(string oldValue)
+ {
+ OldValue2 = oldValue;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Attributes/OldValueAttribute.cs b/Gestor.Model/Gestor.Model.Attributes/OldValueAttribute.cs
new file mode 100644
index 0000000..aa3b71d
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Attributes/OldValueAttribute.cs
@@ -0,0 +1,14 @@
+using System;
+
+namespace Gestor.Model.Attributes;
+
+[AttributeUsage(AttributeTargets.Field)]
+public class OldValueAttribute : Attribute
+{
+ public string OldValue { get; private set; }
+
+ public OldValueAttribute(string oldValue)
+ {
+ OldValue = oldValue;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Attributes/TipoAttribute.cs b/Gestor.Model/Gestor.Model.Attributes/TipoAttribute.cs
new file mode 100644
index 0000000..8bcb053
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Attributes/TipoAttribute.cs
@@ -0,0 +1,28 @@
+using System;
+
+namespace Gestor.Model.Attributes;
+
+[AttributeUsage(AttributeTargets.All)]
+public class TipoAttribute : Attribute
+{
+ public string Tipo { get; set; }
+
+ public virtual string Description => DescriptionValue;
+
+ protected string DescriptionValue
+ {
+ get
+ {
+ return Tipo;
+ }
+ set
+ {
+ Tipo = value;
+ }
+ }
+
+ public TipoAttribute(string tipo)
+ {
+ Tipo = tipo;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Attributes/WidthAttribute.cs b/Gestor.Model/Gestor.Model.Attributes/WidthAttribute.cs
new file mode 100644
index 0000000..77498fd
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Attributes/WidthAttribute.cs
@@ -0,0 +1,28 @@
+using System;
+
+namespace Gestor.Model.Attributes;
+
+[AttributeUsage(AttributeTargets.All)]
+public class WidthAttribute : Attribute
+{
+ public string Tipo { get; set; }
+
+ public virtual string Description => DescriptionValue;
+
+ protected string DescriptionValue
+ {
+ get
+ {
+ return Tipo;
+ }
+ set
+ {
+ Tipo = value;
+ }
+ }
+
+ public WidthAttribute(string tipo)
+ {
+ Tipo = tipo;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Auto/CalculoAuto.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Auto/CalculoAuto.cs
new file mode 100644
index 0000000..e5b426a
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Auto/CalculoAuto.cs
@@ -0,0 +1,20 @@
+namespace Gestor.Model.CalculoWeb.Auto;
+
+public class CalculoAuto
+{
+ public Segurado Segurado { get; set; }
+
+ public CondutorPrincipal CondutorPrincipal { get; set; }
+
+ public Veiculo Veiculo { get; set; }
+
+ public QuestionarioAuto Questionario { get; set; }
+
+ public Caminhao Caminhao { get; set; }
+
+ public CoberturaAuto Cobertura { get; set; }
+
+ public Seguro Seguro { get; set; }
+
+ public int TipoVeiculo { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Auto/Caminhao.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Auto/Caminhao.cs
new file mode 100644
index 0000000..ade84e5
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Auto/Caminhao.cs
@@ -0,0 +1,26 @@
+namespace Gestor.Model.CalculoWeb.Auto;
+
+public class Caminhao
+{
+ public string Carga { get; set; }
+
+ public string Carroceria { get; set; }
+
+ public string Equipamento { get; set; }
+
+ public string GerenciamentoRisco { get; set; }
+
+ public string Uso { get; set; }
+
+ public string RegiaoCirculacao { get; set; }
+
+ public string SeguroCarga { get; set; }
+
+ public string Garagem { get; set; }
+
+ public string ProprioEstado { get; set; }
+
+ public string Periodo { get; set; }
+
+ public int Id { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Auto/CoberturaAuto.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Auto/CoberturaAuto.cs
new file mode 100644
index 0000000..660b1a8
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Auto/CoberturaAuto.cs
@@ -0,0 +1,44 @@
+namespace Gestor.Model.CalculoWeb.Auto;
+
+public class CoberturaAuto
+{
+ public string DanosMorais { get; set; }
+
+ public string DanosMateriais { get; set; }
+
+ public string DanosCorporais { get; set; }
+
+ public string MorteInvalidez { get; set; }
+
+ public decimal FatorAjuste { get; set; }
+
+ public string TipoCobertura { get; set; }
+
+ public string TipoFranquia { get; set; }
+
+ public string Assistencia { get; set; }
+
+ public string CarroReserva { get; set; }
+
+ public string Vidros { get; set; }
+
+ public string DespesasExtras { get; set; }
+
+ public decimal KitGas { get; set; }
+
+ public decimal Carroceria { get; set; }
+
+ public decimal Equipamento { get; set; }
+
+ public decimal Blindagem { get; set; }
+
+ public string ArCondicionado { get; set; }
+
+ public string GarantiaZero { get; set; }
+
+ public string ReparoRapido { get; set; }
+
+ public string ProtecaoBuracos { get; set; }
+
+ public int Id { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Auto/ComissaoSeguradora.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Auto/ComissaoSeguradora.cs
new file mode 100644
index 0000000..addf23e
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Auto/ComissaoSeguradora.cs
@@ -0,0 +1,8 @@
+namespace Gestor.Model.CalculoWeb.Auto;
+
+public class ComissaoSeguradora
+{
+ public long Seguradora { get; set; }
+
+ public decimal Valor { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Auto/CondutorPrincipal.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Auto/CondutorPrincipal.cs
new file mode 100644
index 0000000..eb31353
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Auto/CondutorPrincipal.cs
@@ -0,0 +1,87 @@
+using System;
+
+namespace Gestor.Model.CalculoWeb.Auto;
+
+public class CondutorPrincipal
+{
+ private string _sexo;
+
+ private string _estadoCivil;
+
+ public string NomeCompleto { get; set; }
+
+ public string CpfCnpj { get; set; }
+
+ public DateTime? DataNascimento { get; set; }
+
+ public string Sexo
+ {
+ get
+ {
+ return _sexo;
+ }
+ set
+ {
+ _sexo = value;
+ ConvertSexoCalculo(_sexo);
+ }
+ }
+
+ public DateTime? DataHabilitacao { get; set; }
+
+ public string TempoHabilitacao { get; set; }
+
+ public string EstadoCivil
+ {
+ get
+ {
+ return _estadoCivil;
+ }
+ set
+ {
+ _estadoCivil = value;
+ value = ConvertEstCivCalculo(_estadoCivil);
+ }
+ }
+
+ public string NumeroHabilitacao { get; set; }
+
+ public long Id { get; set; }
+
+ private string ConvertSexoCalculo(string sexo)
+ {
+ if (!(sexo == "0"))
+ {
+ return "2";
+ }
+ return "1";
+ }
+
+ private string ConvertEstCivCalculo(string estadoCivil)
+ {
+ if (estadoCivil != null)
+ {
+ int length = estadoCivil.Length;
+ if (length == 1)
+ {
+ switch (estadoCivil[0])
+ {
+ case '0':
+ return "1";
+ case '1':
+ return "2";
+ case '2':
+ return "3";
+ case '3':
+ case '5':
+ case '6':
+ case '7':
+ return "4";
+ case '4':
+ return "5";
+ }
+ }
+ }
+ return string.Empty;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Auto/Fipe.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Auto/Fipe.cs
new file mode 100644
index 0000000..3fbd849
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Auto/Fipe.cs
@@ -0,0 +1,28 @@
+namespace Gestor.Model.CalculoWeb.Auto;
+
+public class Fipe
+{
+ public string Codigo { get; set; }
+
+ public string Modelo { get; set; }
+
+ public string Marca { get; set; }
+
+ public string AnoMaximo { get; set; }
+
+ public string AnoMinimo { get; set; }
+
+ public string Combustivel { get; set; }
+
+ public decimal Valor { get; set; }
+
+ public decimal ValorAntigo { get; set; }
+
+ public string AnoModelo { get; set; }
+
+ public int TipoVeiculo { get; set; }
+
+ public bool ZeroKm { get; set; }
+
+ public int Id { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Auto/QuestionarioAuto.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Auto/QuestionarioAuto.cs
new file mode 100644
index 0000000..4469fe4
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Auto/QuestionarioAuto.cs
@@ -0,0 +1,30 @@
+namespace Gestor.Model.CalculoWeb.Auto;
+
+public class QuestionarioAuto
+{
+ public string QuilometragemMensal { get; set; }
+
+ public string UsoVeiculo { get; set; }
+
+ public string GaragemTrabalho { get; set; }
+
+ public string GaragemEstudo { get; set; }
+
+ public string GaragemResidencia { get; set; }
+
+ public string TipoResidencia { get; set; }
+
+ public string UsoDependentes { get; set; }
+
+ public string FaixaEtariaDependentes { get; set; }
+
+ public string IsencaoFiscal { get; set; }
+
+ public string Pcd { get; set; }
+
+ public string PeriodoUso { get; set; }
+
+ public string Associado { get; set; }
+
+ public long Id { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Auto/Veiculo.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Auto/Veiculo.cs
new file mode 100644
index 0000000..780cf09
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Auto/Veiculo.cs
@@ -0,0 +1,117 @@
+namespace Gestor.Model.CalculoWeb.Auto;
+
+public class Veiculo
+{
+ private string _combustivel;
+
+ public string NumeroChassi { get; set; }
+
+ public string Placa { get; set; }
+
+ public string Uf { get; set; }
+
+ public string Modelo { get; set; }
+
+ public string Fabricante { get; set; }
+
+ public string AnoFabricacao { get; set; }
+
+ public string AnoModelo { get; set; }
+
+ public string CodigoFipe { get; set; }
+
+ public string Rastreador { get; set; }
+
+ public string Antifurto { get; set; }
+
+ public string KitGas { get; set; }
+
+ public string ZeroKm { get; set; }
+
+ public string Alienado { get; set; }
+
+ public string Combustivel
+ {
+ get
+ {
+ return _combustivel;
+ }
+ set
+ {
+ _combustivel = value;
+ ConvertCombustivelCalculo(_combustivel);
+ }
+ }
+
+ public string CepPernoite { get; set; }
+
+ public Fipe Fipe { get; set; }
+
+ public string Blindado { get; set; }
+
+ public long Id { get; set; }
+
+ private static string ConvertCombustivelCalculo(string combustivel)
+ {
+ if (combustivel != null)
+ {
+ int length = combustivel.Length;
+ if (length == 1)
+ {
+ switch (combustivel[0])
+ {
+ case '4':
+ return "1";
+ case '2':
+ return "2";
+ case '1':
+ return "3";
+ case '3':
+ return "4";
+ case '9':
+ break;
+ case '5':
+ case '7':
+ case '8':
+ return "6";
+ default:
+ goto IL_00c7;
+ }
+ goto IL_00b5;
+ }
+ if (length == 2)
+ {
+ switch (combustivel[1])
+ {
+ case '0':
+ break;
+ case '2':
+ goto IL_007f;
+ case '1':
+ if (!(combustivel == "11"))
+ {
+ goto IL_00c7;
+ }
+ return "7";
+ default:
+ goto IL_00c7;
+ }
+ if (combustivel == "10")
+ {
+ goto IL_00b5;
+ }
+ }
+ }
+ goto IL_00c7;
+ IL_00c7:
+ return string.Empty;
+ IL_00b5:
+ return "5";
+ IL_007f:
+ if (combustivel == "12")
+ {
+ goto IL_00b5;
+ }
+ goto IL_00c7;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Condominio/CalculoCondominio.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Condominio/CalculoCondominio.cs
new file mode 100644
index 0000000..f5a2547
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Condominio/CalculoCondominio.cs
@@ -0,0 +1,16 @@
+using Gestor.Model.CalculoWeb.Empresa;
+
+namespace Gestor.Model.CalculoWeb.Condominio;
+
+public class CalculoCondominio
+{
+ public Segurado Segurado { get; set; }
+
+ public EnderecoEmpresa Endereco { get; set; }
+
+ public Seguro Seguro { get; set; }
+
+ public CoberturaCondominio Cobertura { get; set; }
+
+ public QuestionarioCondominio Questionario { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Condominio/CoberturaCondominio.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Condominio/CoberturaCondominio.cs
new file mode 100644
index 0000000..c5f49f0
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Condominio/CoberturaCondominio.cs
@@ -0,0 +1,62 @@
+namespace Gestor.Model.CalculoWeb.Condominio;
+
+public class CoberturaCondominio
+{
+ public int? Id { get; set; }
+
+ public decimal? Basica { get; set; }
+
+ public decimal? DanosEletricos { get; set; }
+
+ public decimal? DanosMorais { get; set; }
+
+ public decimal? TumultoGreve { get; set; }
+
+ public decimal? RouboBens { get; set; }
+
+ public decimal? Vidros { get; set; }
+
+ public decimal? Anuncios { get; set; }
+
+ public decimal? Portoes { get; set; }
+
+ public decimal? Alagamento { get; set; }
+
+ public decimal? Desmoronamento { get; set; }
+
+ public decimal? ImpactoVeiculo { get; set; }
+
+ public decimal? DespesasFixas { get; set; }
+
+ public decimal? Sindico { get; set; }
+
+ public decimal? Condominio { get; set; }
+
+ public decimal? Garagista { get; set; }
+
+ public decimal? GaragistaExclusiva { get; set; }
+
+ public decimal? Vendaval { get; set; }
+
+ public decimal? Vazamento { get; set; }
+
+ public decimal? IncendioBens { get; set; }
+
+ public decimal? RouboCondominio { get; set; }
+
+ public decimal? VidaFuncionario { get; set; }
+
+ public decimal? Aluguel { get; set; }
+
+ public decimal? Chuveiro { get; set; }
+
+ public decimal? Empregador { get; set; }
+
+ public decimal? Equipamento { get; set; }
+
+ public string Assistencia { get; set; }
+
+ public string ValorNovo { get; set; }
+
+ public decimal? PlacasSolares { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Condominio/QuestionarioCondominio.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Condominio/QuestionarioCondominio.cs
new file mode 100644
index 0000000..b2c4e74
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Condominio/QuestionarioCondominio.cs
@@ -0,0 +1,32 @@
+namespace Gestor.Model.CalculoWeb.Condominio;
+
+public class QuestionarioCondominio
+{
+ public string Ocupacao { get; set; }
+
+ public string Estrutura { get; set; }
+
+ public string AreaComercial { get; set; }
+
+ public string ImovelTombado { get; set; }
+
+ public string AreaConstruida { get; set; }
+
+ public string AnoConstrucao { get; set; }
+
+ public string Funcionarios { get; set; }
+
+ public string Blocos { get; set; }
+
+ public string Elevadores { get; set; }
+
+ public string Pavimentos { get; set; }
+
+ public string EquipamentoSeguranca { get; set; }
+
+ public string EquipamentoIncendio { get; set; }
+
+ public string Desmoronamento { get; set; }
+
+ public int Id { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Empresa/CalculoEmpresa.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Empresa/CalculoEmpresa.cs
new file mode 100644
index 0000000..fa7a1d8
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Empresa/CalculoEmpresa.cs
@@ -0,0 +1,14 @@
+namespace Gestor.Model.CalculoWeb.Empresa;
+
+public class CalculoEmpresa
+{
+ public Segurado Segurado { get; set; }
+
+ public EnderecoEmpresa Endereco { get; set; }
+
+ public Seguro Seguro { get; set; }
+
+ public QuestionarioEmpresa Questionario { get; set; }
+
+ public CoberturaEmpresa Cobertura { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Empresa/CoberturaEmpresa.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Empresa/CoberturaEmpresa.cs
new file mode 100644
index 0000000..5b38df7
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Empresa/CoberturaEmpresa.cs
@@ -0,0 +1,62 @@
+namespace Gestor.Model.CalculoWeb.Empresa;
+
+public class CoberturaEmpresa
+{
+ public decimal? Basica { get; set; }
+
+ public decimal? DanoEletrico { get; set; }
+
+ public decimal? Vidro { get; set; }
+
+ public decimal? RouboFurto { get; set; }
+
+ public decimal? RouboValor { get; set; }
+
+ public decimal? Equipamento { get; set; }
+
+ public decimal? Vendaval { get; set; }
+
+ public decimal? ImpactoVeiculo { get; set; }
+
+ public decimal? Desmoronamento { get; set; }
+
+ public decimal? Anuncio { get; set; }
+
+ public decimal? Aluguel { get; set; }
+
+ public decimal? TumultoGreve { get; set; }
+
+ public decimal? RecomposicaoDocumento { get; set; }
+
+ public decimal? ResponsabilidadeCivil { get; set; }
+
+ public decimal? DanoMoral { get; set; }
+
+ public decimal? DespesaFixa { get; set; }
+
+ public decimal? LucroCessante { get; set; }
+
+ public decimal? Empregador { get; set; }
+
+ public decimal? Vazamento { get; set; }
+
+ public decimal? Sprinkler { get; set; }
+
+ public decimal? Fidelidade { get; set; }
+
+ public string Assistencia { get; set; }
+
+ public string Verba { get; set; }
+
+ public string ValorNovo { get; set; }
+
+ public decimal? Alagamento { get; set; }
+
+ public decimal? PlacasSolares { get; set; }
+
+ public decimal? ResponsabilidadeCivilGaragista { get; set; }
+
+ public decimal? ContaminacaoDeterioracao { get; set; }
+
+ public int? Id { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Empresa/EnderecoEmpresa.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Empresa/EnderecoEmpresa.cs
new file mode 100644
index 0000000..bb1731d
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Empresa/EnderecoEmpresa.cs
@@ -0,0 +1,20 @@
+namespace Gestor.Model.CalculoWeb.Empresa;
+
+public class EnderecoEmpresa
+{
+ public string Cep { get; set; }
+
+ public string Cidade { get; set; }
+
+ public string Estado { get; set; }
+
+ public string Numero { get; set; }
+
+ public string Logradouro { get; set; }
+
+ public string Complemento { get; set; }
+
+ public string Bairro { get; set; }
+
+ public int Id { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Empresa/QuestionarioEmpresa.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Empresa/QuestionarioEmpresa.cs
new file mode 100644
index 0000000..a685fca
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Empresa/QuestionarioEmpresa.cs
@@ -0,0 +1,41 @@
+using System;
+using System.Collections.Generic;
+
+namespace Gestor.Model.CalculoWeb.Empresa;
+
+public class QuestionarioEmpresa
+{
+ public List<object> Atividades { get; set; }
+
+ public string Cnae { get; set; }
+
+ public string Atividade { get; set; }
+
+ public string TipoConstrucao { get; set; }
+
+ public string Localizacao { get; set; }
+
+ public string EquipamentoSeguranca { get; set; }
+
+ public string EquipamentoIncendio { get; set; }
+
+ public string Pavimento { get; set; }
+
+ public DateTime AnoConstrucao { get; set; }
+
+ public string Isopainel { get; set; }
+
+ public string EstruturaMetal { get; set; }
+
+ public string TerrenoBaldio { get; set; }
+
+ public string ImovelTombado { get; set; }
+
+ public string Deposito { get; set; }
+
+ public string CaixaEletronico { get; set; }
+
+ public string Construcao { get; set; }
+
+ public int Id { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Residencia/CalculoResidencia.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Residencia/CalculoResidencia.cs
new file mode 100644
index 0000000..ea52784
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Residencia/CalculoResidencia.cs
@@ -0,0 +1,14 @@
+namespace Gestor.Model.CalculoWeb.Residencia;
+
+public class CalculoResidencia
+{
+ public Segurado Segurado { get; set; }
+
+ public Imovel Imovel { get; set; }
+
+ public Seguro Seguro { get; set; }
+
+ public QuestionarioResidencia Questionario { get; set; }
+
+ public CoberturaResidencia Cobertura { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Residencia/CoberturaResidencia.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Residencia/CoberturaResidencia.cs
new file mode 100644
index 0000000..6027ff9
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Residencia/CoberturaResidencia.cs
@@ -0,0 +1,46 @@
+namespace Gestor.Model.CalculoWeb.Residencia;
+
+public class CoberturaResidencia
+{
+ public decimal Basica { get; set; }
+
+ public decimal DanosMorais { get; set; }
+
+ public decimal ResponsabilidadeCivilFamiliar { get; set; }
+
+ public decimal DanosEletricos { get; set; }
+
+ public decimal Equipamentos { get; set; }
+
+ public decimal ImpactoVeiculos { get; set; }
+
+ public decimal Aluguel { get; set; }
+
+ public decimal Vidros { get; set; }
+
+ public decimal RouboFurto { get; set; }
+
+ public decimal Vazamentos { get; set; }
+
+ public decimal Vendaval { get; set; }
+
+ public decimal Desmoronamento { get; set; }
+
+ public decimal TumultoGreve { get; set; }
+
+ public decimal RecomposicaoDocumento { get; set; }
+
+ public decimal Bike { get; set; }
+
+ public string Assistencia { get; set; }
+
+ public string Verba { get; set; }
+
+ public string ValorNovo { get; set; }
+
+ public decimal Alagamento { get; set; }
+
+ public decimal PlacasSolares { get; set; }
+
+ public int Id { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Residencia/EnderecoResidencia.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Residencia/EnderecoResidencia.cs
new file mode 100644
index 0000000..0805aa2
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Residencia/EnderecoResidencia.cs
@@ -0,0 +1,20 @@
+namespace Gestor.Model.CalculoWeb.Residencia;
+
+public class EnderecoResidencia
+{
+ public string Cep { get; set; }
+
+ public string Cidade { get; set; }
+
+ public string Estado { get; set; }
+
+ public string Numero { get; set; }
+
+ public string Logradouro { get; set; }
+
+ public string Complemento { get; set; }
+
+ public string Bairro { get; set; }
+
+ public int Id { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Residencia/Imovel.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Residencia/Imovel.cs
new file mode 100644
index 0000000..bbb276b
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Residencia/Imovel.cs
@@ -0,0 +1,14 @@
+namespace Gestor.Model.CalculoWeb.Residencia;
+
+public class Imovel
+{
+ public EnderecoResidencia Endereco { get; set; }
+
+ public string TipoOcupacao { get; set; }
+
+ public string TipoMoradia { get; set; }
+
+ public string TipoConstrucao { get; set; }
+
+ public int Id { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.Residencia/QuestionarioResidencia.cs b/Gestor.Model/Gestor.Model.CalculoWeb.Residencia/QuestionarioResidencia.cs
new file mode 100644
index 0000000..b457c0d
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.Residencia/QuestionarioResidencia.cs
@@ -0,0 +1,22 @@
+namespace Gestor.Model.CalculoWeb.Residencia;
+
+public class QuestionarioResidencia
+{
+ public string ImovelDesocupado { get; set; }
+
+ public string AreaRisco { get; set; }
+
+ public string ZonaRural { get; set; }
+
+ public string CondominioFechado { get; set; }
+
+ public string SeguradoProprietario { get; set; }
+
+ public string ImovelTombado { get; set; }
+
+ public string AtividadeProfissional { get; set; }
+
+ public string EquipamentoSeguranca { get; set; }
+
+ public int Id { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.VidaGlobal/CalculoVidaGlobal.cs b/Gestor.Model/Gestor.Model.CalculoWeb.VidaGlobal/CalculoVidaGlobal.cs
new file mode 100644
index 0000000..7a90c03
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.VidaGlobal/CalculoVidaGlobal.cs
@@ -0,0 +1,16 @@
+using Gestor.Model.CalculoWeb.Empresa;
+
+namespace Gestor.Model.CalculoWeb.VidaGlobal;
+
+public class CalculoVidaGlobal
+{
+ public Segurado Segurado { get; set; }
+
+ public EnderecoEmpresa Endereco { get; set; }
+
+ public Seguro Seguro { get; set; }
+
+ public QuestionarioVidaGlobal Questionario { get; set; }
+
+ public CalculoVidaGlobal Cobertura { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.VidaGlobal/CoberturaVidaGlobal.cs b/Gestor.Model/Gestor.Model.CalculoWeb.VidaGlobal/CoberturaVidaGlobal.cs
new file mode 100644
index 0000000..734bc5e
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.VidaGlobal/CoberturaVidaGlobal.cs
@@ -0,0 +1,22 @@
+namespace Gestor.Model.CalculoWeb.VidaGlobal;
+
+public class CoberturaVidaGlobal
+{
+ public int Id { get; set; }
+
+ public int Funcionario { get; set; }
+
+ public decimal? CapitalFuncionario { get; set; }
+
+ public int Socio { get; set; }
+
+ public decimal? CapitalSocio { get; set; }
+
+ public string MorteAcidental { get; set; }
+
+ public string Ifpd { get; set; }
+
+ public string Ipa { get; set; }
+
+ public string AssistenciaFuneral { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.VidaGlobal/QuestionarioVidaGlobal.cs b/Gestor.Model/Gestor.Model.CalculoWeb.VidaGlobal/QuestionarioVidaGlobal.cs
new file mode 100644
index 0000000..640e869
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.VidaGlobal/QuestionarioVidaGlobal.cs
@@ -0,0 +1,14 @@
+using System.Collections.Generic;
+
+namespace Gestor.Model.CalculoWeb.VidaGlobal;
+
+public class QuestionarioVidaGlobal
+{
+ public int Id { get; set; }
+
+ public List<string> Atividades { get; set; }
+
+ public string Cnae { get; set; }
+
+ public int Funcionario { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.VidaIndividual/CalculoVidaIndividual.cs b/Gestor.Model/Gestor.Model.CalculoWeb.VidaIndividual/CalculoVidaIndividual.cs
new file mode 100644
index 0000000..6b0c52e
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.VidaIndividual/CalculoVidaIndividual.cs
@@ -0,0 +1,16 @@
+using Gestor.Model.CalculoWeb.Empresa;
+
+namespace Gestor.Model.CalculoWeb.VidaIndividual;
+
+public class CalculoVidaIndividual
+{
+ public Segurado Segurado { get; set; }
+
+ public EnderecoEmpresa Endereco { get; set; }
+
+ public Seguro Seguro { get; set; }
+
+ public CoberturaVidaIndividual Cobertura { get; set; }
+
+ public QuestionarioVidaIndividual Questionario { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.VidaIndividual/CoberturaVidaIndividual.cs b/Gestor.Model/Gestor.Model.CalculoWeb.VidaIndividual/CoberturaVidaIndividual.cs
new file mode 100644
index 0000000..97e073e
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.VidaIndividual/CoberturaVidaIndividual.cs
@@ -0,0 +1,36 @@
+namespace Gestor.Model.CalculoWeb.VidaIndividual;
+
+public class CoberturaVidaIndividual
+{
+ public int? Id { get; set; }
+
+ public decimal? Capital { get; set; }
+
+ public decimal? CapitalDoenca { get; set; }
+
+ public decimal? CapitalDit { get; set; }
+
+ public decimal CapitalDih { get; set; }
+
+ public string Morte { get; set; }
+
+ public string MorteAcidental { get; set; }
+
+ public string Ipa { get; set; }
+
+ public string Ifpd { get; set; }
+
+ public string AssistenciaFuneral { get; set; }
+
+ public decimal? CapitalIpa { get; set; }
+
+ public decimal? CapitalIfpd { get; set; }
+
+ public decimal? CapitalMorteAcidental { get; set; }
+
+ public string DoencaGrave { get; set; }
+
+ public string Dit { get; set; }
+
+ public string Dih { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.VidaIndividual/Profissao.cs b/Gestor.Model/Gestor.Model.CalculoWeb.VidaIndividual/Profissao.cs
new file mode 100644
index 0000000..83573bc
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.VidaIndividual/Profissao.cs
@@ -0,0 +1,12 @@
+namespace Gestor.Model.CalculoWeb.VidaIndividual;
+
+public class Profissao
+{
+ public int Id { get; set; }
+
+ public int Seguradora { get; set; }
+
+ public string Chave { get; set; }
+
+ public string Valor { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb.VidaIndividual/QuestionarioVidaIndividual.cs b/Gestor.Model/Gestor.Model.CalculoWeb.VidaIndividual/QuestionarioVidaIndividual.cs
new file mode 100644
index 0000000..da7bd44
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb.VidaIndividual/QuestionarioVidaIndividual.cs
@@ -0,0 +1,24 @@
+using System.Collections.Generic;
+
+namespace Gestor.Model.CalculoWeb.VidaIndividual;
+
+public class QuestionarioVidaIndividual
+{
+ public int? Id { get; set; }
+
+ public int? Peso { get; set; }
+
+ public float Altura { get; set; }
+
+ public decimal? RendaMensal { get; set; }
+
+ public string Fumante { get; set; }
+
+ public string Esporte { get; set; }
+
+ public string Aposentado { get; set; }
+
+ public List<Profissao> Profissoes { get; set; }
+
+ public string Profissao { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb/Calculo.cs b/Gestor.Model/Gestor.Model.CalculoWeb/Calculo.cs
new file mode 100644
index 0000000..01165b1
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb/Calculo.cs
@@ -0,0 +1,30 @@
+using System.Collections.Generic;
+using Gestor.Model.CalculoWeb.Auto;
+using Gestor.Model.CalculoWeb.Condominio;
+using Gestor.Model.CalculoWeb.Empresa;
+using Gestor.Model.CalculoWeb.Residencia;
+using Gestor.Model.CalculoWeb.VidaGlobal;
+using Gestor.Model.CalculoWeb.VidaIndividual;
+
+namespace Gestor.Model.CalculoWeb;
+
+public class Calculo
+{
+ public string SerialNumber { get; set; }
+
+ public List<Resultados> Resultados { get; set; }
+
+ public Usuario Usuario { get; set; }
+
+ public CalculoAuto Auto { get; set; }
+
+ public CalculoResidencia Residencia { get; set; }
+
+ public CalculoEmpresa Empresa { get; set; }
+
+ public CalculoCondominio Condominio { get; set; }
+
+ public CalculoVidaIndividual Vida { get; set; }
+
+ public CalculoVidaGlobal VidaGlobal { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb/Resultados.cs b/Gestor.Model/Gestor.Model.CalculoWeb/Resultados.cs
new file mode 100644
index 0000000..ff67bd0
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb/Resultados.cs
@@ -0,0 +1,6 @@
+namespace Gestor.Model.CalculoWeb;
+
+public class Resultados
+{
+ public string Erros { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb/Segurado.cs b/Gestor.Model/Gestor.Model.CalculoWeb/Segurado.cs
new file mode 100644
index 0000000..518f588
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb/Segurado.cs
@@ -0,0 +1,105 @@
+using System;
+
+namespace Gestor.Model.CalculoWeb;
+
+public class Segurado
+{
+ private string _estadoCivil;
+
+ private string _sexo;
+
+ public string Email { get; set; }
+
+ public Telefone TelefoneResidencial { get; set; }
+
+ public Telefone TelefoneCelular { get; set; }
+
+ public string Cep { get; set; } = string.Empty;
+
+
+ public string RelacaoSeguradoCondutor { get; set; }
+
+ public bool Perfil { get; set; }
+
+ public string Uf { get; set; }
+
+ public string NomeCompleto { get; set; }
+
+ public string CpfCnpj { get; set; }
+
+ public DateTime? DataNascimento { get; set; } = DateTime.MinValue;
+
+
+ public string Sexo
+ {
+ get
+ {
+ return _sexo;
+ }
+ set
+ {
+ _sexo = value;
+ _sexo = ConvertSexoCalculo(_sexo);
+ value = _sexo;
+ }
+ }
+
+ public DateTime? DataHabilitacao { get; set; } = DateTime.MinValue;
+
+
+ public string TempoHabilitacao { get; set; }
+
+ public string EstadoCivil
+ {
+ get
+ {
+ return _estadoCivil;
+ }
+ set
+ {
+ _estadoCivil = value;
+ _estadoCivil = ConvertEstCivCalculo(value);
+ }
+ }
+
+ public string NumeroHabilitacao { get; set; }
+
+ public long Id { get; set; }
+
+ private string ConvertSexoCalculo(string sexo)
+ {
+ if (!(sexo == "0"))
+ {
+ return "2";
+ }
+ return "1";
+ }
+
+ private string ConvertEstCivCalculo(string estadoCivil)
+ {
+ if (estadoCivil != null)
+ {
+ int length = estadoCivil.Length;
+ if (length == 1)
+ {
+ switch (estadoCivil[0])
+ {
+ case '0':
+ return "1";
+ case '1':
+ return "2";
+ case '2':
+ return "3";
+ case '3':
+ case '5':
+ case '6':
+ case '7':
+ return "4";
+ case '4':
+ return "5";
+ }
+ }
+ }
+ return string.Empty;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb/Seguro.cs b/Gestor.Model/Gestor.Model.CalculoWeb/Seguro.cs
new file mode 100644
index 0000000..fe3e784
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb/Seguro.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.CalculoWeb.Auto;
+
+namespace Gestor.Model.CalculoWeb;
+
+public class Seguro
+{
+ public decimal Comissao { get; set; }
+
+ public decimal Agenciamento { get; set; }
+
+ public List<ComissaoSeguradora> ComissaoSeguradora { get; set; }
+
+ public DateTime VigenciaInicial { get; set; }
+
+ public DateTime VigenciaFinal { get; set; }
+
+ public DateTime VigenciaFinalAnterior { get; set; }
+
+ public string TipoSeguro { get; set; }
+
+ public string Banco { get; set; }
+
+ public string Bonus { get; set; }
+
+ public string SeguradoraAnterior { get; set; }
+
+ public string CodigoIdentificacao { get; set; }
+
+ public string NumeroApoliceAnterior { get; set; }
+
+ public string Sinistros { get; set; }
+
+ public bool RenovacaoGarantida { get; set; }
+
+ public string Observacoes { get; set; }
+
+ public long Id { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb/Telefone.cs b/Gestor.Model/Gestor.Model.CalculoWeb/Telefone.cs
new file mode 100644
index 0000000..e9053a9
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb/Telefone.cs
@@ -0,0 +1,10 @@
+namespace Gestor.Model.CalculoWeb;
+
+public class Telefone
+{
+ public string Ddd { get; set; }
+
+ public string Numero { get; set; }
+
+ public long Id { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.CalculoWeb/Usuario.cs b/Gestor.Model/Gestor.Model.CalculoWeb/Usuario.cs
new file mode 100644
index 0000000..4f7c04c
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.CalculoWeb/Usuario.cs
@@ -0,0 +1,6 @@
+namespace Gestor.Model.CalculoWeb;
+
+public class Usuario
+{
+ public string Email { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Common/AcessoApolice.cs b/Gestor.Model/Gestor.Model.Common/AcessoApolice.cs
new file mode 100644
index 0000000..8b00e3f
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/AcessoApolice.cs
@@ -0,0 +1,15 @@
+using System.ComponentModel;
+
+namespace Gestor.Model.Common;
+
+public enum AcessoApolice
+{
+ [Description("NORMAL")]
+ Normal,
+ [Description("PARCELA")]
+ Parcela,
+ [Description("ENDOSSO")]
+ Endosso,
+ [Description("RENOVAÇÃO")]
+ Renovacao
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Agrupamento.cs b/Gestor.Model/Gestor.Model.Common/Agrupamento.cs
new file mode 100644
index 0000000..8035805
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Agrupamento.cs
@@ -0,0 +1,21 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Agrupamento
+{
+ [Description("SEM DIVISÃO")]
+ SemDivisoes,
+ [Description("SEGURADORA")]
+ Seguradora,
+ [Description("RAMO")]
+ Ramo,
+ [Description("VENDEDOR")]
+ Vendedor,
+ [Description("ESTIPULANTE")]
+ Estipulante,
+ [Description("SITUAÇÃO")]
+ Situacao
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Antifurto.cs b/Gestor.Model/Gestor.Model.Common/Antifurto.cs
new file mode 100644
index 0000000..891e8eb
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Antifurto.cs
@@ -0,0 +1,28 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Antifurto
+{
+ [OldValue("0")]
+ [Description("NÃO POSSUI")]
+ NaoSeAplica,
+ [OldValue("1")]
+ [Description("ALARME")]
+ Alarme,
+ [OldValue("2")]
+ [Description("BLOQUEADOR DE IGNIÇÃO")]
+ Bloqueador,
+ [OldValue("3")]
+ [Description("TRAVA CARNEIRO")]
+ TravaCarneiro,
+ [OldValue("4")]
+ [Description("TRAVA MUL-T-LOCK")]
+ TravaMulTLock,
+ [OldValue("5")]
+ [Description("OUTROS")]
+ Outros
+}
diff --git a/Gestor.Model/Gestor.Model.Common/AtividadeEmpresa.cs b/Gestor.Model/Gestor.Model.Common/AtividadeEmpresa.cs
new file mode 100644
index 0000000..93bf894
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/AtividadeEmpresa.cs
@@ -0,0 +1,127 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum AtividadeEmpresa
+{
+ [OldValue("1")]
+ [Description("OUTROS")]
+ Outro,
+ [OldValue("2")]
+ [Description("ACADEMIA")]
+ Academia,
+ [OldValue("3")]
+ [Description("BAR")]
+ Bar,
+ [OldValue("4")]
+ [Description("BELEZA E ESTÉTICA")]
+ BelezaEstetica,
+ [OldValue("5")]
+ [Description("CLÍNICA VETERINÁRIA")]
+ ClinicaVeterinaria,
+ [OldValue("6")]
+ [Description("CONCESSIONÁRIA")]
+ Concessionaria,
+ [OldValue("7")]
+ [Description("CONSULTÓRIO MÉDICO")]
+ ConsultorioMedico,
+ [OldValue("8")]
+ [Description("CONSULTÓRIO ODONTOLÓGICO")]
+ ConsultorioOdontologico,
+ [OldValue("9")]
+ [Description("ESCOLA DE INFORMÁTICA")]
+ EscolaInformatica,
+ [OldValue("10")]
+ [Description("ESCOLA DE IDIOMAS")]
+ EscolaIdiomas,
+ [OldValue("11")]
+ [Description("ESCOLA TÉCNICA")]
+ EscolaTecnica,
+ [OldValue("12")]
+ [Description("ESCOLA OU COLÉGIO")]
+ EscolaDemais,
+ [OldValue("13")]
+ [Description("ESCRITÓRIO")]
+ Escritorio,
+ [OldValue("14")]
+ [Description("FARMÁCIA")]
+ Farmacia,
+ [OldValue("15")]
+ [Description("FLORICULTURA")]
+ Floricultura,
+ [OldValue("16")]
+ [Description("HOTEL")]
+ Hotel,
+ [OldValue("17")]
+ [Description("IGREJA")]
+ Igreja,
+ [OldValue("18")]
+ [Description("LAVANDERIA")]
+ Lavanderia,
+ [OldValue("19")]
+ [Description("LIVRARIA")]
+ Livraria,
+ [OldValue("20")]
+ [Description("LOJA DE CALÇADOS")]
+ LojaCalcado,
+ [OldValue("21")]
+ [Description("LOJA DE ROUPAS")]
+ LojaRoupa,
+ [OldValue("22")]
+ [Description("SUPERMERCADO")]
+ Mercado,
+ [OldValue("23")]
+ [Description("MOTEL")]
+ Motel,
+ [OldValue("24")]
+ [Description("ÓTICA")]
+ Otica,
+ [OldValue("25")]
+ [Description("PADARIA")]
+ Padaria,
+ [OldValue("26")]
+ [Description("PAPELARIA")]
+ Papelaria,
+ [OldValue("27")]
+ [Description("PERFUMARIA")]
+ Perfumaria,
+ [OldValue("28")]
+ [Description("PET SHOP")]
+ PetShop,
+ [OldValue("29")]
+ [Description("POSTO DE COMBUSTÍVEL")]
+ PostoCombustivel,
+ [OldValue("30")]
+ [Description("POUSADA")]
+ Pousada,
+ [OldValue("31")]
+ [Description("RESTAURANTE")]
+ Restaurante,
+ [OldValue("32")]
+ [Description("LOJA DE MÓVEIS")]
+ LojaMoveis,
+ [OldValue("33")]
+ [Description("LOJA DE MATERIAL DE CONSTRUÇÃO")]
+ LojaMaterialConstrucao,
+ [OldValue("34")]
+ [Description("LOJA DE ELETRODOMÉSTICOS")]
+ LojaEletrodomesticos,
+ [OldValue("35")]
+ [Description("LOJA DE COLCHÕES")]
+ LojaColchoes,
+ [OldValue("36")]
+ [Description("BUFFET")]
+ Buffet,
+ [OldValue("37")]
+ [Description("AÇOUGUE")]
+ Acougue,
+ [OldValue("38")]
+ [Description("TRANSPORTADORA")]
+ Transportadora,
+ [OldValue("39")]
+ [Description("COPIADORA")]
+ Copiadora
+}
diff --git a/Gestor.Model/Gestor.Model.Common/BandeiraCartao.cs b/Gestor.Model/Gestor.Model.Common/BandeiraCartao.cs
new file mode 100644
index 0000000..0c51e75
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/BandeiraCartao.cs
@@ -0,0 +1,31 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum BandeiraCartao
+{
+ [OldValue("1")]
+ [Description("VISA")]
+ Visa = 1,
+ [OldValue("2")]
+ [Description("MASTERCARD")]
+ Master,
+ [OldValue("3")]
+ [Description("ELO")]
+ Elo,
+ [OldValue("4")]
+ [Description("AMERICAN EXPRESS")]
+ AmericanExpress,
+ [OldValue("5")]
+ [Description("HIPERCARD")]
+ Hipercard,
+ [OldValue("6")]
+ [Description("DINERS CLUB")]
+ Diners,
+ [OldValue("7")]
+ [Description("SOROCRED")]
+ Sorocred
+}
diff --git a/Gestor.Model/Gestor.Model.Common/BaseRepasse.cs b/Gestor.Model/Gestor.Model.Common/BaseRepasse.cs
new file mode 100644
index 0000000..d0ec8be
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/BaseRepasse.cs
@@ -0,0 +1,25 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum BaseRepasse
+{
+ [OldValue("1")]
+ [Description("VIGÊNCIA DO DOCUMENTO")]
+ Vigencia = 1,
+ [OldValue("2")]
+ [Description("CADASTRO DO DOCUMENTO")]
+ Cadastro,
+ [OldValue("3")]
+ [Description("VENCIMENTO DA PARCELA")]
+ Vencimento,
+ [OldValue("4")]
+ [Description("EMISSÃO DA APÓLICE")]
+ Emissao,
+ [OldValue("5")]
+ [Description("TRANSMISSÃO DA PROPOSTA")]
+ Transmissao
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Categoria.cs b/Gestor.Model/Gestor.Model.Common/Categoria.cs
new file mode 100644
index 0000000..cf7da88
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Categoria.cs
@@ -0,0 +1,49 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Categoria
+{
+ [OldValue("1")]
+ [Description("PICKUP")]
+ Pickup = 1,
+ [OldValue("2")]
+ [Description("OUTROS")]
+ Outros,
+ [OldValue("3")]
+ [Description("PASSEIO")]
+ Passeio,
+ [OldValue("4")]
+ [Description("CAMINHÃO")]
+ Caminhao,
+ [OldValue("5")]
+ [Description("CAMINHONETE")]
+ Caminhonete,
+ [OldValue("6")]
+ [Description("ÔNIBUS")]
+ Onibus,
+ [OldValue("7")]
+ [Description("UTILITÁRIO")]
+ Utilitario,
+ [OldValue("8")]
+ [Description("CARGA")]
+ Carga,
+ [OldValue("9")]
+ [Description("MOTOCICLETA")]
+ Motocicleta,
+ [OldValue("10")]
+ [Description("TAXI")]
+ Taxi,
+ [OldValue("11")]
+ [Description("UBER")]
+ Uber,
+ [OldValue("12")]
+ [Description("REBOCADOR")]
+ Rebocador,
+ [OldValue("13")]
+ [Description("REBOQUE/SEMI REBOQUE")]
+ Reboque
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Combustivel.cs b/Gestor.Model/Gestor.Model.Common/Combustivel.cs
new file mode 100644
index 0000000..d4c7974
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Combustivel.cs
@@ -0,0 +1,58 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Combustivel
+{
+ [Category("1")]
+ [OldValue("1")]
+ [Description("ÁLCOOL")]
+ Alcool = 1,
+ [Category("1")]
+ [OldValue("2")]
+ [Description("GASOLINA")]
+ Gasolina,
+ [Category("1")]
+ [OldValue("3")]
+ [Description("DIESEL")]
+ Diesel,
+ [Category("0")]
+ [OldValue("4")]
+ [Description("FLEX (GASOLINA/ÁLCOOL)")]
+ Flex,
+ [Category("2")]
+ [OldValue("5")]
+ [Description("GNV")]
+ Gnv,
+ [Category("4")]
+ [OldValue("6")]
+ [Description("OUTROS")]
+ Outros,
+ [Category("2")]
+ [OldValue("7")]
+ [Description("GASOLINA/GNV")]
+ GasolinaGnv,
+ [Category("2")]
+ [OldValue("8")]
+ [Description("GASOLINA/ÁLCOOL/GNV")]
+ GasolinaAlcoolGnv,
+ [Category("3")]
+ [OldValue("9")]
+ [Description("GASOLINA/ELÉTRICO")]
+ GasolinaEletrico,
+ [Category("3")]
+ [OldValue("10")]
+ [Description("HÍBRIDO")]
+ Hibrido,
+ [Category("3")]
+ [OldValue("11")]
+ [Description("ELÉTRICO")]
+ Eletrico,
+ [Category("3")]
+ [OldValue("12")]
+ [Description("GASOLINA/ÁLCOOL/ELÉTRICO")]
+ GasolinaAlcoolEletrico
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Condicao.cs b/Gestor.Model/Gestor.Model.Common/Condicao.cs
new file mode 100644
index 0000000..e9d8c72
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Condicao.cs
@@ -0,0 +1,16 @@
+using System.Collections.Generic;
+
+namespace Gestor.Model.Common;
+
+public class Condicao
+{
+ public string Campo { get; set; }
+
+ public List<dynamic> Valores { get; set; }
+
+ public Operador Operador { get; set; }
+
+ public Operacao Operacao { get; set; }
+
+ public int Grupo { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Configuracao.cs b/Gestor.Model/Gestor.Model.Common/Configuracao.cs
new file mode 100644
index 0000000..c694ab0
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Configuracao.cs
@@ -0,0 +1,177 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Configuracao
+{
+ [Description("IMPORTADOR PDF - ATUALIZAR DADOS CLIENTE AUTOMATICAMENTE")]
+ [Category("SEMPRE ATUALIZAR DADOS DO CLIENTE AO IMPORTAR UM NOVO PDF")]
+ AtualizarDados = 0,
+ [Description("IMPORTADOR PDF - ATUALIZAR ENDEREÇO CLIENTE AUTOMATICAMENTE")]
+ [Category("SEMPRE ATUALIZAR ENDEREÇO CLIENTE AO IMPORTAR UM NOVO PDF")]
+ AtualizarEndereco = 1,
+ [Description("IMPORTADOR PDF - MANTER PDF")]
+ [Category("NÃO EXCLUIR O ARQUIVO PDF DA PASTA DE ORIGEM AO IMPORTA-LO")]
+ ManterPdf = 2,
+ [Description("CRÍTICA DE DOCUMENTOS - OBRIGAR STATUS DOCUMENTO")]
+ [Category("OBRIGAR USUARIO A PREENCHER O CAMPO STATUS DO DOCUMENTO MANUALMENTE DURANTE A CRÍTICA")]
+ StatusDocumento = 3,
+ [Description("AGGER EPIC - RESTRINGIR ACESSO ÁS PARCELAS")]
+ [Category("RESTRINGIR A VISUALIZAÇÃO DAS PARCELAS DO DOCUMENTO NO ACESSO AO APLICATIVO MOBILE EPIC")]
+ AcessoParcelasEpic = 4,
+ [Description("BAIXA DE COMISSÃO - HABILITAR IMPOSTOS RECEBIMENTO DE COMISSÃO")]
+ [Category("HABILITAR CAMPOS DE IMPOSTOS E REALIZA A DEDUÇÃO AUTOMATICAMENTE DO PERCENTUAL DE IMPOSTOS PARAMETRIZADOS")]
+ ImpostoComissao = 5,
+ [Description("CADASTRO DE SEGURADORAS - HABILITAR APELIDO SEGURADORA")]
+ [Category("HABILITAR APELIDO SEGURADORA")]
+ ApelidoSeguradora = 6,
+ [Description("CADASTRO DE VENDEDORES - PERMITIR DUPLICIDADE NO DOCUMENTO DE VENDEDORES")]
+ [Category("PERMITIR DUPLICIDADE NO DOCUMENTO DE VENDEDORES")]
+ DuplicidadeVendedores = 7,
+ [Description("RELATÓRIO PAGAMENTO DE VENDEDORES - ORDEM RELATÓRIO")]
+ [Category("DISPONIBILIZA OPÇÃO DE ORDENAR O RELATORIO DE PAGAMENTO DE VENDEDORES.")]
+ OrdernarPagamentos = 8,
+ [Description("CADASTRO DE PARCELAS - PERMITIR VENCIMENTO MENOR QUE VIGÊNCIA INICIAL")]
+ [Category("PERMITE QUE O VENCIMENTO DA PARCELA SEJA MENOR QUE A VIGÊNCIA INICIAL DO DOCUMENTO")]
+ VencimentoParcelaVigenciaInicial = 9,
+ [Description("RELATÓRIOS - ESCONDER COMISSÃO ZERADA NO RELATÓRIO")]
+ [Category("NÃO MOSTRAR PAGAMENTO DE VENDEDOR OU RECEBIMENTO DE COMISSÃO COM VALOR LÍQUIDO ZERADO NO RELATÓRIO")]
+ EsconderComissaoZerada = 10,
+ [Description("CADASTRO DE PARCELAS - PERMITIR VENCIMENTO PARCELA MAIOR QUE VIGÊNCIA FINAL")]
+ [Category("PERMITE QUE O VENCIMENTO DA PARCELA SEJA MAIOR QUE A VIGÊNCIA FINAL DO DOCUMENTO")]
+ VencimentoParcelaVigenciaFinal = 11,
+ [Description("BAIXA DE COMISSÃO AUTOMÁTICA - PERMITIR BAIXA DE PARCELA ESPECIAL EM PARCELA NORMAL")]
+ [Category("PERMITE QUE A PARCELA ESPECIAL IMPORTADA NO EXTRATO SEJA BAIXADA NA PARCELA NORMAL DO SEGURO")]
+ BaixaParcelaEspecialNormal = 12,
+ [Description("CADASTRO DE APÓLICES - PERMITIR ENDOSSO SEM VERIFICAÇÃO DA APÓLICE")]
+ [Category("PERMITE ENDOSSAR UM DOCUMENTO SEM VALIDAR AS INFORMAÇÕES DA APÓLICE, TAIS COMO NÚMERO DA APÓLICE, DATA DE EMISSÃO E TRANSMISSÃO DA PROPOSTA.\nNÃO RECOMENDAMOS HABILITAR ESSA OPÇÃO")]
+ EndossoSemVerificacao = 13,
+ [Description("RELATÓRIOS - EXIBIR MAIOR FONTE NOS RELATÓRIO")]
+ [Category("IMPRESSÃO DOS RELATÓRIOS TERÃO FONTES MAIORES QUE O PADRÃO")]
+ FontesGrandesRelatorio = 14,
+ [Description("BAIXA DE COMISSÃO - PERMITIR REPASSE MAIOR QUE A COMISSÃO RECEBIDA")]
+ [Category("PERMITE REPASSAR MAIS QUE A COMISSÃO RECEBIDA NO SEGURO.\nNÃO RECOMENDAMOS HABILITAR ESSA OPÇÃO")]
+ RepasseSuperiorComissao = 15,
+ [Description("CADASTRO DE FATURAS - PERMITIR PERCENTUAL DE COMISSÃO MAIOR QUE 100%")]
+ [Category("PERMITE QUE CADASTRE FATURAS COM COMISSÃO MAIOR QUE 100% DO PRÊMIO PARA FATURAS")]
+ ComissaoSuperiorTotal = 16,
+ [Description("CADASTRO DE ITENS - PERMITIR CHASSIS INVÁLIDOS")]
+ [Category("PERMITE CADASTRAR ITENS DE AUTOMÓVEL COM CHASSI INVÁLIDO")]
+ ChassiInvalido = 18,
+ [Description("CADASTRO DE APÓLICES - BLOQUEAR RECUSA DE APÓLICE")]
+ [Category("BLOQUEIA A RECUSA DE APÓLICE QUANDO TIVER NÚMERO DE APÓLICE E DATA DE EMISSÃO")]
+ Recusa = 19,
+ [Description("REPASSES - PERMITIR CADASTRO DE REPASSE POR RAMO")]
+ [Category("PERMITIR O CADASTRO DE REPASSE POR RAMO ESPECÍFICO")]
+ RepasseRamo = 20,
+ [Description("CADASTRO DE APÓLICES - FORMA DE PAGAMENTO AO SALVAR")]
+ [Category("ALTERAR FORMA DE PAGAMENTO 'NENHUM' AO SALVAR DOCUMENTO, QUANDO O CAMPO ESTIVER EM BRANCO")]
+ FormaPagamento = 21,
+ [Description("LOG - HABILITAR LOG DE UTILIZAÇÃO SISTEMA ANTIGO")]
+ [Category("HABILITA RELATORIO DE LOG DE UTILIZAÇÃO SISTEMA ANTIGO")]
+ LoagAcaoAntigo = 22,
+ [Description("CADASTRO DE APÓLICES - HABILITAR CRIAÇÃO DE ESTORNO AO RECUSAR DOCUMENTO")]
+ [Category("HABILITA A OPÇÃO DA CRIAÇÃO AUTOMÁTICA DE ESTORNO DE PAGAMENTO AOS VENDEDORES DURANTE A RECUSA DE DOCUMENTOS")]
+ EstornoRecusa = 23,
+ [Description("REPASSES - PERMITIR ESTORNO DE VALOR FIXO")]
+ [Category("AO ADICIONAR UM REPASSE DE VALOR FIXO NUMA PARCELA NEGATIVA, O SISTEMA GERARÁ O ESTORNO, COLOCANDO O VALOR DE REPASSE COM O VALOR NEGATIVO")]
+ EstornoValorFixo = 24,
+ [Description("REPASSES - HABILITAR REPASSE FIXO PROPORCIONAL AO PERCENTUAL DE COMISSÃO")]
+ [Category("HABILITA O CÁCULO PROPORCIONAL DO VALOR FIXO DE REPASSE EM RELAÇÃO AO PERCENTUAL DE COMISSÃO RECEBIDA")]
+ ValorFixoProporcional = 25,
+ [Description("CADASTRO DE ITENS - PERMITIR DUPLICIDADE DE CHASSI")]
+ [Category("PERMITE O CADASTRO DE CHASSI EM DUPLICIDADE")]
+ ChassiDuplicado = 26,
+ [Description("CADASTRO DE ITENS - PERMITIR FABRICANTE EM BRANCO")]
+ [Category("PERMITE O CADASTRO FABRICANTE EM BRANCO")]
+ FabricanteBranco = 27,
+ [Description("BAIXA DE COMISSÃO AUTOMÁTICA - PERMITIR DESFAZER BAIXA DE FATURA TELA DE COMISSÃO AUTOMÁTICA")]
+ [Category("IGNORA A REGRA ONDE NÃO PERMITE DESFAZER BAIXA DE FATURAS QUANDO HÁ FATURAS ACIMA BAIXADAS.")]
+ DesfazerFatura = 28,
+ [Description("CADASTRO DE CLIENTES - PERMITIR INCLUIR CLIENTE SEM E-MAIL")]
+ [Category("IGNORA A REGRA ONDE OBRIGA A INCLUSÃO DE E-MAIL PARA O CLIENTE.")]
+ ClienteSemEmail = 29,
+ [Description("CARTÃO VISITA - UTILIZAR DADOS DE CONTATO DO USUÁRIO NA GERAÇÃO DO CARTÃO")]
+ [Category("UTILIZA OS DADOS DE CONTATO DO USUÁRIO NA GERAÇÃO DO CARTÃO DE VISITA, COMO PADRÃO É UTILIZADO OS TELEFONES E E-MAILS CADASTRADOS NA TELA DE EMPRESAS/FILIAIS")]
+ DadosUsuarioVisita = 30,
+ [Description("RELATÓRIO DE RENOVAÇÕES - SOMAR PRÊMIOS")]
+ [Category("SOMA OS PRÊMIOS DOS ENDOSSOS DA APÓLICE PARA APRESENTAR NA LISTAGEM DO RELATÓRIO E EM SEUS SINTÉTICOS. O PROCESSO ACARRETA UM PROCESSO A MAIS NA GERAÇÃO DO RELATÓRIO E POR CONSEQUÊNCIA O TEMPO PARA EXIBIÇÃO IRÁ AUMENTAR.")]
+ SomarPremioRelatorioRenovacoes = 31,
+ [Description("BAIXA DE COMISSÃO - CONSIDERAR ACERTO DE COMISSÃO COMO COMISSÃO DA APÓLICE")]
+ [Category("CONSIDERA A PARCELA ESPECIAL DO TIPO ACERTO DE COMISSÃO NA SOMA DE COMISSÃO RECEBIDA DA APÓLICE PARA DEMONSTRAÇÃO DE COMISSÃO PENDENTE NAS TELAS DE CONSULTA E CADASTRO DE APÓLICES.")]
+ ConsiderarAcertoComissao = 32,
+ [Description("CADASTRO DE APÓLICES - DATA DE CONTROLE APENAS ADM")]
+ [Category("PERMITE A VISUALIZAÇÃO DA DATA DE CONTROLE APENAS QUANDO O USUÁRIO FOR ADMINISTRADOR.")]
+ DataControleAdm = 33,
+ [Description("RELATÓRIO PAGAMENTO DE VENDEDORES - BASE DE PAGAMENTO DATA DE CONTROLE")]
+ [Category("ALTERA A BASE DE PAGAMENTO DE VENDEDORES DE TODOS OS REPASSES PARA A DATA DE CONTROLE DA APÓLICE/ENDOSSO.\nNÃO RECOMENDAMOS HABILITAR ESSA OPÇÃO.")]
+ RepasseDataControle = 34,
+ [Description("IMPORTADOR PDF - IMPORTAR LOCATÁRIO COMO SEGURADO")]
+ [Category("AO IMPORTAR FIANÇA LOCATÍCIA O SISTEMA INCLUI O LOCATÁRIO COMO SEGURADO, NORMALMENTE O SEGURADO É A IMOBILIÁRIA.")]
+ LocatarioCliente = 35,
+ [Description("CADASTRO DE TAREFAS - TAREFAS ENTRE FILIAIS")]
+ [Category("PERMITE CADASTRAR TAREFAS PARA USUARIOS DE OUTRAS FILIAIS.")]
+ TarefasFiliais = 36,
+ [Description("RELATÓRIO DE PRODUÇÃO - SELECIONAR % REPASSE VENDEDOR PRINCIPAL")]
+ [Category("SELECIONA O % DE REPASSE DO VENDEDOR PRINCIPAL DA APOLICE E EXIBE NO RELATÓRIO DE PRODUÇÃO.")]
+ RepasseProducao = 37,
+ [Description("CRÍTICA DE DOCUMENTOS - APLICAR VINCULO DE VENDEDORES")]
+ [Category("NA TELA DE CRÍTICA DE DOCUMENTOS, POR PADRÃO, NÃO É APLICADO OS VINCULOS DE VENDEDORES DOS USUÁRIOS, ADICIONANDO ESSA CONFIGURAÇÃO ESSE VINCULO SERÁ APLICADO.")]
+ VinculoVendedorCritica = 38,
+ [Description("CADASTRO DE APÓLICES - PERMITIR EDIÇÃO DO CAMPO OBSERVAÇÃO")]
+ [Category("PERMITE QUE O CAMPO DE OBSERVAÇÕES POSSA SER EDITADO SOMENTE NA TELA DE CADASTRO DE APÓLICES.")]
+ EditarObservacoes = 39,
+ [Description("PLANILHA COMPLETA - SOMAR FRANQUIAS NA PLANILHA")]
+ [Category("NA PLANILHA COMPLETA, POR PADRÃO, É COLOCADO A PRIMEIRA FRANQUIA ENCONTRADA, ADICIONANDO ESSA CONFIGURAÇÃO O SISTEMA SOMA TODAS AS FRANQUIAS DO DOCUMENTO")]
+ SomarFranquiaPlanilhaCompleta = 40,
+ [Description("EXCEL - SALVAR EXCEL")]
+ [Category("ABRE UMA OPÇÃO PARA ESCOLHER UMA PASTA PARA SALVAR O EXCEL")]
+ SalvarExcel = 41,
+ [Description("EXTRATO - NUMERO DO ENDOSSO EM APÓLICES")]
+ [Category("NO EXTRATO CASO UMA APOLICE POSSUA UM ENDOSSO CADASTRADO IRA REGISTRAR O NUMERO DO ENDOSSO NO CAMPO ADITAMENTO")]
+ NumEndossoExtrato = 42,
+ [Description("VINCULO DE VENDEDORES")]
+ [Category("PERMITE QUE USUÁRIOS COM VINCULO DE VENDEDORES POSSAM VER APÓLICES SEM VENDEDOR CADASTRADO NAS TELAS DE CRITICA DE APÓLICE, CONSULTA DE DOCUMENTOS, CADASTRO DE APÓLICES E PESQUISA AVANÇADA.")]
+ VinculoVendedorEmBranco = 43,
+ [Description("RELATÓRIOS - NOME COMPLETO SEGURADORA")]
+ [Category("MOSTRA O NOME COMPLETO DA SEGURADORA EM TODOS OS RELATÓRIOS. ATENÇÃO: ESSA CONFIGURAÇÃO SOBREPÕE A CONFIGURAÇÃO DE APELIDO DA SEGURADORA.")]
+ NomeCompletoSeguradora = 44,
+ [Description("CADASTRO DE TAREFAS - PERMITIR DATA DE AGENDAMENTO RETROATIVA")]
+ [Category("PERMITE AGENDAR UMA TAREFA COM DATA RETROATIVA.")]
+ AgendamentoTarefaRetroativo = 45,
+ [Description("CADASTRO DE FATURAS - CALCULAR IOF")]
+ [Category("CALCULA IOF PARA O CADASTRO DE FATURAS.")]
+ IofFaturas = 46,
+ [Description("ANEXO DIGITAL - NÃO ALTERAR O NOME DO ARQUIVO")]
+ [Category("DESABILITA A OPÇÃO DE ALTERAR O NOME DO ARQUIVO AO ANEXAR.")]
+ AlterarNomeArquivo = 47,
+ [Description("IMPORTADOR PDF - PERMITIR IMPORTAÇÃO DE EXTRATOS")]
+ [Category("PERMITE A IMPORTAÇÃO DE EXTRATOS PELA FILIAL. ATENÇÃO: ESSA CONFIGURAÇÃO FUNCIONA SOMENTE PARA IMPORTAÇÃO E NÃO PARA A TELA DE COMISSÃO.")]
+ FilialImportarExtrato = 48,
+ [Description("CADASTRO DE SINISTROS - PERMITIR EDIÇÃO DO CAMPO HISTÓRICO")]
+ [Category("PERMITE QUE O CAMPO DE HISTÓRICO POSSA SER EDITADO.")]
+ EditarHistorico = 49,
+ [Description("RELATÓRIO PAGAMENTO DE VENDEDORES - OPÇÃO DE DESCONSIDERAR VALORES NEGATIVOS")]
+ [Category("VALORES NEGATIVOS (TANTO ESTORNOS QUANTO ADIANTAMENTOS) SERÃO DESCONSIDERADOS AO EMITIR O RELATORIO DE PAGAMENTO DE VENDEDORES.\nNÃO RECOMENDAMOS HABILITAR ESSA OPÇÃO.")]
+ DesconsiderarNegativos = 50,
+ [Description("COMISSÃO AUTOMÁTICA - DESATIVA A BUSCA POR APROXIMAÇÃO")]
+ [Category("DESABILITA A BUSCA DE APÓLICES POR APROXIMAÇÃO.")]
+ DesabilitaBuscaAproximada = 51,
+ [Description("CARTÃO VISITA - NÃO UTILIZA O ENDEREÇO DA CORRETORA NA GERAÇÃO DO CARTÃO")]
+ [Category("NÃO UTILIZA O ENDEREÇO DA CORRETORA NA GERAÇÃO DO CARTÃO DE VISITA, COMO PADRÃO É UTILIZADO O ENDEREÇO CADASTRADO NA TELA DE EMPRESAS/FILIAIS")]
+ SemEnderecoCorretoraVisita = 52,
+ [Description("IMPORTADOR PDF - DESABILITAR CRÍTICA PDF NA IMPORTAÇÃO")]
+ [Category("DESABILITA AS VERIFICAÇÕES DE CRÍTICA PDF DENTRO DA IMPORTAÇÃO. \nNÃO RECOMENDAMOS HABILITAR ESSA OPÇÃO.")]
+ DesabilitaCriticaImport = 53,
+ [Description("BAIXA COMISSÃO/REPASSE - SOLICITA CONFIRMAÇÃO BAIXA POR ESGOTAMENTO")]
+ [Category("VALORES MENORES QUE A TOLERÂNCIA SERÃO SOLICITADOS CONFIRMAÇÃO PARA QUE NÃO SEJAM BAIXADOS POR ESGOTAMENTO, PORTANTO ZERADOS. \nNÃO RECOMENDAMOS HABILITAR ESSA OPÇÃO.")]
+ SolicitaConfirmacaoBaixaEsgotamento = 54,
+ [Description("LOG - HABILITAR VISUALIZAÇÃO DA AUDITORIA (DETALHES)")]
+ [Category("HABILITA VISUALIZAÇÃO DA AUDITORIA DO SISTEMA (DETALHES DO LOG)")]
+ LogDetalhesVisivel = 55,
+ [Description("REPASSE - HABILITAR USO DE CO-CORRETAGEM.")]
+ [Category("HABILITA O CADASTRO DE VENDEDOR E REPASSE COM CO-CORRETAGEM, TAMBÉM HABILITA O USO DE CO-CORRETAGEM NO DOCUMENTO.")]
+ CoCorretagem = 56
+}
diff --git a/Gestor.Model/Gestor.Model.Common/ConfiguracaoImpressao.cs b/Gestor.Model/Gestor.Model.Common/ConfiguracaoImpressao.cs
new file mode 100644
index 0000000..b7bdf24
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/ConfiguracaoImpressao.cs
@@ -0,0 +1,13 @@
+using System.Collections.Generic;
+using Gestor.Model.Domain.Relatorios;
+
+namespace Gestor.Model.Common;
+
+public class ConfiguracaoImpressao
+{
+ public int TamanhoFonte { get; set; }
+
+ public List<ParametrosRelatorio> Campos { get; set; }
+
+ public bool? OrientacaoImpressao { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Cor.cs b/Gestor.Model/Gestor.Model.Common/Cor.cs
new file mode 100644
index 0000000..8348225
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Cor.cs
@@ -0,0 +1,61 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Cor
+{
+ [OldValue("0")]
+ [Description("SEM INFORMAÇÃO")]
+ OutrosNull,
+ [OldValue("1")]
+ [Description("PRETO")]
+ Preto,
+ [OldValue("2")]
+ [Description("BRANCO")]
+ Branco,
+ [OldValue("3")]
+ [Description("CINZA")]
+ Cinza,
+ [OldValue("4")]
+ [Description("PRATA")]
+ Prata,
+ [OldValue("5")]
+ [Description("VERMELHO")]
+ Vermelho,
+ [OldValue("6")]
+ [Description("AMARELO")]
+ Amarelo,
+ [OldValue("7")]
+ [Description("OURO")]
+ Ouro,
+ [OldValue("8")]
+ [Description("LARANJA")]
+ Laranja,
+ [OldValue("9")]
+ [Description("ROSA")]
+ Rosa,
+ [OldValue("10")]
+ [Description("VERDE")]
+ Verde,
+ [OldValue("11")]
+ [Description("AZUL")]
+ Azul,
+ [OldValue("12")]
+ [Description("VINHO")]
+ Vinho,
+ [OldValue("13")]
+ [Description("MARROM")]
+ Marrom,
+ [OldValue("14")]
+ [Description("BEGE")]
+ Bege,
+ [OldValue("15")]
+ [Description("DOURADO")]
+ Dourado,
+ [OldValue("16")]
+ [Description("OUTROS")]
+ Outros
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Correcao.cs b/Gestor.Model/Gestor.Model.Common/Correcao.cs
new file mode 100644
index 0000000..16adf68
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Correcao.cs
@@ -0,0 +1,16 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Correcao
+{
+ [OldValue("0")]
+ [Description("VALOR DE MERCADO")]
+ Mercado,
+ [OldValue("1")]
+ [Description("VALOR DETERMINADO")]
+ Determinado
+}
diff --git a/Gestor.Model/Gestor.Model.Common/DistanciaTrabalho.cs b/Gestor.Model/Gestor.Model.Common/DistanciaTrabalho.cs
new file mode 100644
index 0000000..450bc2a
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/DistanciaTrabalho.cs
@@ -0,0 +1,28 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum DistanciaTrabalho
+{
+ [OldValue("0")]
+ [Description("NÃO SE APLICA")]
+ NaoSeAplica,
+ [OldValue("1")]
+ [Description("ATÉ 10 KM")]
+ Ate10Km,
+ [OldValue("2")]
+ [Description("ATÉ 20 KM")]
+ Ate20Km,
+ [OldValue("3")]
+ [Description("ATÉ 30 KM")]
+ Ate30Km,
+ [OldValue("4")]
+ [Description("ATÉ 40 KM")]
+ Ate40Km,
+ [OldValue("5")]
+ [Description("ACIMA DE 40 KM")]
+ AcimaDe40Km
+}
diff --git a/Gestor.Model/Gestor.Model.Common/EquipamentoIncendio.cs b/Gestor.Model/Gestor.Model.Common/EquipamentoIncendio.cs
new file mode 100644
index 0000000..f5251ae
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/EquipamentoIncendio.cs
@@ -0,0 +1,17 @@
+using System.ComponentModel;
+
+namespace Gestor.Model.Common;
+
+public enum EquipamentoIncendio
+{
+ [Description("Extintor")]
+ Extintor = 1,
+ [Description("Hidrante")]
+ Hidrante,
+ [Description("Sprinkler")]
+ Sprinkler,
+ [Description("Detector de Fumaça")]
+ DetectorFumaca,
+ [Description("Brigada de Incêndio")]
+ BrigadaIncendio
+}
diff --git a/Gestor.Model/Gestor.Model.Common/EquipamentoSeguranca.cs b/Gestor.Model/Gestor.Model.Common/EquipamentoSeguranca.cs
new file mode 100644
index 0000000..17d885b
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/EquipamentoSeguranca.cs
@@ -0,0 +1,17 @@
+using System.ComponentModel;
+
+namespace Gestor.Model.Common;
+
+public enum EquipamentoSeguranca
+{
+ [Description("Alarme")]
+ Alarme = 1,
+ [Description("Cerca Elétrica")]
+ CercaEletrica,
+ [Description("Circuito Fechado de CFTV")]
+ CircuitoFechado,
+ [Description("Porteiro Eletrônico")]
+ PorteiroEletronico,
+ [Description("Catraca Eletrônica")]
+ CatracaEletronica
+}
diff --git a/Gestor.Model/Gestor.Model.Common/EstadoCivil.cs b/Gestor.Model/Gestor.Model.Common/EstadoCivil.cs
new file mode 100644
index 0000000..7a90342
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/EstadoCivil.cs
@@ -0,0 +1,34 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum EstadoCivil
+{
+ [OldValue("C")]
+ [Description("CASADO(A)")]
+ Casado,
+ [OldValue("D")]
+ [Description("DIVORCIADO(A)")]
+ Divorciado,
+ [OldValue("X")]
+ [Description("SEPARADO(A)")]
+ Separado,
+ [OldValue("S")]
+ [Description("SOLTEIRO(A)")]
+ Solteiro,
+ [OldValue("V")]
+ [Description("VIÚVO(A)")]
+ Viuvo,
+ [OldValue("A")]
+ [Description("AMASIADO(A)")]
+ Amasiado,
+ [OldValue("U")]
+ [Description("UNIÃO ESTÁVEL")]
+ UniaoEstavel,
+ [OldValue("O")]
+ [Description("OUTRO")]
+ Outros
+}
diff --git a/Gestor.Model/Gestor.Model.Common/FiltroArquivoDigital.cs b/Gestor.Model/Gestor.Model.Common/FiltroArquivoDigital.cs
new file mode 100644
index 0000000..aebb469
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/FiltroArquivoDigital.cs
@@ -0,0 +1,12 @@
+namespace Gestor.Model.Common;
+
+public class FiltroArquivoDigital
+{
+ public long Id { get; set; }
+
+ public long IdApolice { get; set; }
+
+ public TipoArquivoDigital Tipo { get; set; }
+
+ public object Parente { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Common/FiltroCritica.cs b/Gestor.Model/Gestor.Model.Common/FiltroCritica.cs
new file mode 100644
index 0000000..48c4e11
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/FiltroCritica.cs
@@ -0,0 +1,13 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum FiltroCritica
+{
+ [Description("CLIENTE")]
+ Cliente,
+ [Description("USUÁRIO")]
+ Usuario
+}
diff --git a/Gestor.Model/Gestor.Model.Common/FiltroLancamento.cs b/Gestor.Model/Gestor.Model.Common/FiltroLancamento.cs
new file mode 100644
index 0000000..e96018b
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/FiltroLancamento.cs
@@ -0,0 +1,21 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum FiltroLancamento
+{
+ [Description("VENCIMENTO")]
+ Vencimento,
+ [Description("BAIXA")]
+ Baixa,
+ [Description("PAGAMENTO")]
+ Pagamento,
+ [Description("FORNECEDOR")]
+ Fornecedor,
+ [Description("LANÇAMENTO")]
+ Lancamento,
+ [Description("PERSONALIZADO")]
+ Personalizado
+}
diff --git a/Gestor.Model/Gestor.Model.Common/FiltroLancamentoData.cs b/Gestor.Model/Gestor.Model.Common/FiltroLancamentoData.cs
new file mode 100644
index 0000000..e0eb0e7
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/FiltroLancamentoData.cs
@@ -0,0 +1,15 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum FiltroLancamentoData
+{
+ [Description("VENCIMENTO")]
+ Vencimento,
+ [Description("DATA DE BAIXA")]
+ Baixa,
+ [Description("DATA PAGAMENTO")]
+ Pagamento
+}
diff --git a/Gestor.Model/Gestor.Model.Common/FiltroStatusDocumento.cs b/Gestor.Model/Gestor.Model.Common/FiltroStatusDocumento.cs
new file mode 100644
index 0000000..9cf69ed
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/FiltroStatusDocumento.cs
@@ -0,0 +1,19 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum FiltroStatusDocumento
+{
+ [Description("DOCUMENTOS VIGENTES")]
+ Ativos,
+ [Description("DOCUMENTOS VENCIDOS")]
+ Vencidos,
+ [Description("DOCUMENTOS CANCELADOS")]
+ Cancelados,
+ [Description("DOCUMENTOS RECUSADOS")]
+ Recusados,
+ [Description("TODOS DOCUMENTOS")]
+ Todos
+}
diff --git a/Gestor.Model/Gestor.Model.Common/FormaPagamento.cs b/Gestor.Model/Gestor.Model.Common/FormaPagamento.cs
new file mode 100644
index 0000000..f234337
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/FormaPagamento.cs
@@ -0,0 +1,61 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum FormaPagamento
+{
+ [OldValue("0")]
+ [Description("TODAS EM DÉBITO")]
+ Debito,
+ [OldValue("1")]
+ [Description("TODAS EM CARTÃO")]
+ Cartao,
+ [OldValue("2")]
+ [Description("TODAS EM BOLETO")]
+ Boleto,
+ [OldValue("3")]
+ [Description("1ª BOLETO E DEMAIS DÉBITO")]
+ PrimeiraBoleto,
+ [OldValue("4")]
+ [Description("NENHUM")]
+ Nenhum,
+ [OldValue("5")]
+ [Description("FATURA")]
+ Fatura,
+ [OldValue("6")]
+ [Description("1ª DÉBITO E DEMAIS BOLETO")]
+ PrimeiraDebito,
+ [OldValue("7")]
+ [Description("CRÉDITO EM CONTA")]
+ Credito,
+ [OldValue("8")]
+ [Description("CARNÊ")]
+ Carne,
+ [OldValue("9")]
+ [Description("1º BOLETO E DEMAIS NO CARNÊ")]
+ PrimeiraBoletoDemaisCarne,
+ [OldValue("10")]
+ [Description("FICHA + CARNÊ")]
+ FichaMaisCarne,
+ [OldValue("11")]
+ [Description("DÓLAR")]
+ Dolar,
+ [OldValue("12")]
+ [Description("À VISTA")]
+ AVista,
+ [OldValue("13")]
+ [Description("1ª BOLETO E DEMAIS C. CRÉDITO")]
+ PrimeiraBoletoDemaisCredito,
+ [OldValue("14")]
+ [Description("1ª CARTÃO E DEMAIS BOLETO")]
+ PrimeiraCartaoDemaisBoleto,
+ [OldValue("15")]
+ [Description("PIX")]
+ Pix,
+ [OldValue("16")]
+ [Description("TODAS EM CARTÃO SEGURADORA")]
+ CartaoSeguradora
+}
diff --git a/Gestor.Model/Gestor.Model.Common/FormaRepasse.cs b/Gestor.Model/Gestor.Model.Common/FormaRepasse.cs
new file mode 100644
index 0000000..17a59fb
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/FormaRepasse.cs
@@ -0,0 +1,19 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum FormaRepasse
+{
+ [OldValue("1")]
+ [Description("CONFORME O RECEBIMENTO")]
+ Recebimento = 1,
+ [OldValue("2")]
+ [Description("SEMPRE À VISTA")]
+ Vista,
+ [OldValue("3")]
+ [Description("SEMPRE À PRAZO")]
+ Prazo
+}
diff --git a/Gestor.Model/Gestor.Model.Common/GaragemResidencia.cs b/Gestor.Model/Gestor.Model.Common/GaragemResidencia.cs
new file mode 100644
index 0000000..3f427fd
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/GaragemResidencia.cs
@@ -0,0 +1,25 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum GaragemResidencia
+{
+ [OldValue("1")]
+ [Description("COM PORTÃO ELETRONICO")]
+ ComPortaoEletronico,
+ [OldValue("2")]
+ [Description("COM PORTÃO MANUAL")]
+ Fechada,
+ [OldValue("3")]
+ [Description("NÃO POSSUI GARAGEM")]
+ NaoPossuiGaragem,
+ [OldValue("4")]
+ [Description("NÃO UTILIZA PARA ESTE FIM")]
+ NaoUtilizaParaEsteFim,
+ [OldValue("5")]
+ [Description("NÃO INFORMADO")]
+ NaoInformado
+}
diff --git a/Gestor.Model/Gestor.Model.Common/GaragemTrabalhoEstudo.cs b/Gestor.Model/Gestor.Model.Common/GaragemTrabalhoEstudo.cs
new file mode 100644
index 0000000..441030f
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/GaragemTrabalhoEstudo.cs
@@ -0,0 +1,28 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum GaragemTrabalhoEstudo
+{
+ [OldValue("0")]
+ [Description("NÃO UTILIZA PARA ESTE FIM")]
+ NaoUtiliza,
+ [OldValue("1")]
+ [Description("NÃO")]
+ Nao,
+ [OldValue("2")]
+ [Description("SIM")]
+ Sim,
+ [OldValue("3")]
+ [Description("NÃO INFORMADO")]
+ NaoInformado,
+ [OldValue("4")]
+ [Description("NÃO ESTUDA")]
+ NaoEstuda,
+ [OldValue("5")]
+ [Description("NÃO TRABALHA")]
+ NaoTrabalha
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Isencao.cs b/Gestor.Model/Gestor.Model.Common/Isencao.cs
new file mode 100644
index 0000000..b254cbf
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Isencao.cs
@@ -0,0 +1,22 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Isencao
+{
+ [OldValue("0")]
+ [Description("SEM ISENÇÃO")]
+ SemIsencao,
+ [OldValue("1")]
+ [Description("ICMS")]
+ Icms,
+ [OldValue("2")]
+ [Description("IPI")]
+ Ipi,
+ [OldValue("3")]
+ [Description("IPI E ICMS")]
+ IpiIcms
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Localizacao.cs b/Gestor.Model/Gestor.Model.Common/Localizacao.cs
new file mode 100644
index 0000000..3002086
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Localizacao.cs
@@ -0,0 +1,28 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Localizacao
+{
+ [OldValue("1")]
+ [Description("OUTROS")]
+ Outros,
+ [OldValue("2")]
+ [Description("AEROPORTO")]
+ Aeroporto,
+ [OldValue("3")]
+ [Description("CEASA/MERCADO")]
+ Ceasa,
+ [OldValue("4")]
+ [Description("CONDOMÍNIO COMERCIAL")]
+ CondominioComercial,
+ [OldValue("5")]
+ [Description("SHOPPING")]
+ Shopping,
+ [OldValue("6")]
+ [Description("SUPERMERCADO")]
+ Supermercado
+}
diff --git a/Gestor.Model/Gestor.Model.Common/ManutencaoItem.cs b/Gestor.Model/Gestor.Model.Common/ManutencaoItem.cs
new file mode 100644
index 0000000..bbab10a
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/ManutencaoItem.cs
@@ -0,0 +1,10 @@
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Common;
+
+public class ManutencaoItem
+{
+ public Documento Documento { get; set; }
+
+ public TipoManutencao Tipo { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Mes.cs b/Gestor.Model/Gestor.Model.Common/Mes.cs
new file mode 100644
index 0000000..f136d83
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Mes.cs
@@ -0,0 +1,46 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Mes
+{
+ [OldValue("1")]
+ [Description("JANEIRO")]
+ Janeiro = 1,
+ [OldValue("2")]
+ [Description("FEVEREIRO")]
+ Fevereiro,
+ [OldValue("3")]
+ [Description("MARÇO")]
+ Marco,
+ [OldValue("4")]
+ [Description("ABRIL")]
+ Abril,
+ [OldValue("5")]
+ [Description("MAIO")]
+ Maio,
+ [OldValue("6")]
+ [Description("JUNHO")]
+ Junho,
+ [OldValue("7")]
+ [Description("JULHO")]
+ Julho,
+ [OldValue("8")]
+ [Description("AGOSTO")]
+ Agosto,
+ [OldValue("9")]
+ [Description("SETEMBRO")]
+ Setembro,
+ [OldValue("10")]
+ [Description("OUTUBRO")]
+ Outubro,
+ [OldValue("11")]
+ [Description("NOVEMBRO")]
+ Novembro,
+ [OldValue("12")]
+ [Description("DEZEMBRO")]
+ Dezembro
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Negocio.cs b/Gestor.Model/Gestor.Model.Common/Negocio.cs
new file mode 100644
index 0000000..122cfcd
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Negocio.cs
@@ -0,0 +1,16 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Negocio
+{
+ [OldValue("1")]
+ [Description("PRÓPRIA")]
+ Proprio = 1,
+ [OldValue("2")]
+ [Description("OUTRA CORRETORA")]
+ Outro
+}
diff --git a/Gestor.Model/Gestor.Model.Common/NegocioCorretora.cs b/Gestor.Model/Gestor.Model.Common/NegocioCorretora.cs
new file mode 100644
index 0000000..316b499
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/NegocioCorretora.cs
@@ -0,0 +1,16 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum NegocioCorretora
+{
+ [OldValue("0")]
+ [Description("NOVO NEGÓCIO")]
+ Novo,
+ [OldValue("1")]
+ [Description("NEGÓCIO PRÓPRIO")]
+ Proprio
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Ocupacao.cs b/Gestor.Model/Gestor.Model.Common/Ocupacao.cs
new file mode 100644
index 0000000..124c0a5
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Ocupacao.cs
@@ -0,0 +1,28 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Ocupacao
+{
+ [OldValue("0")]
+ [Description("NÃO POSSUI OCUPAÇÃO")]
+ NaoPossuiOcupacao,
+ [OldValue("1")]
+ [Description("ASSALARIADO(A)")]
+ Assalariado,
+ [OldValue("2")]
+ [Description("ESTUDANTE")]
+ Estudante,
+ [OldValue("3")]
+ [Description("ASSALARIADO(A) E ESTUDANTE")]
+ AsssalariadoEstudante,
+ [OldValue("4")]
+ [Description("APOSENTADO(A)")]
+ Aposentado,
+ [OldValue("5")]
+ [Description("OUTROS")]
+ Outros
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Operacao.cs b/Gestor.Model/Gestor.Model.Common/Operacao.cs
new file mode 100644
index 0000000..2cb669c
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Operacao.cs
@@ -0,0 +1,11 @@
+using System.ComponentModel;
+
+namespace Gestor.Model.Common;
+
+public enum Operacao
+{
+ [Description(" AND ")]
+ And,
+ [Description(" OR ")]
+ Or
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Operador.cs b/Gestor.Model/Gestor.Model.Common/Operador.cs
new file mode 100644
index 0000000..ef8d0d9
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Operador.cs
@@ -0,0 +1,27 @@
+using System.ComponentModel;
+
+namespace Gestor.Model.Common;
+
+public enum Operador
+{
+ [Description("=")]
+ Igual,
+ [Description("!=")]
+ Diferente,
+ [Description(">=")]
+ MaiorEIgual,
+ [Description(">")]
+ Maior,
+ [Description("LIKE")]
+ Like,
+ [Description("NOT LIKE")]
+ NotLike,
+ [Description("<")]
+ Menor,
+ [Description("<=")]
+ MenorEIgual,
+ [Description("LIKE")]
+ ComecaCom,
+ [Description("LIKE")]
+ TerminaCom
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Parentesco.cs b/Gestor.Model/Gestor.Model.Common/Parentesco.cs
new file mode 100644
index 0000000..cf2cb09
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Parentesco.cs
@@ -0,0 +1,97 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Parentesco
+{
+ [OldValue("0")]
+ [Description("PAI")]
+ Pai,
+ [OldValue("1")]
+ [Description("FILHO")]
+ Filho,
+ [OldValue("2")]
+ [Description("MÃE")]
+ Mae,
+ [OldValue("3")]
+ [Description("IRMÃOS")]
+ Irmaos,
+ [OldValue("4")]
+ [Description("AVÓS")]
+ Avos,
+ [OldValue("5")]
+ [Description("TIOS")]
+ Tios,
+ [OldValue("6")]
+ [Description("SOBRINHOS")]
+ Sobrinhos,
+ [OldValue("7")]
+ [Description("BISAVÓS")]
+ Bisavos,
+ [OldValue("8")]
+ [Description("PRIMOS")]
+ Primos,
+ [OldValue("9")]
+ [Description("SOGRA")]
+ Sogra,
+ [OldValue("10")]
+ [Description("SOGRO")]
+ Sogro,
+ [OldValue("11")]
+ [Description("GENRO")]
+ Genro,
+ [OldValue("12")]
+ [Description("NORA")]
+ Nora,
+ [OldValue("13")]
+ [Description("CUNHADO")]
+ Cunhado,
+ [OldValue("14")]
+ [Description("CUNHADA")]
+ Cunhada,
+ [OldValue("15")]
+ [Description("CONCUNHADO")]
+ Concunhado,
+ [OldValue("16")]
+ [Description("CONCUNHADA")]
+ Concunhada,
+ [OldValue("17")]
+ [Description("PADRASTO")]
+ Padrasto,
+ [OldValue("18")]
+ [Description("MADRASTA")]
+ Madrasta,
+ [OldValue("19")]
+ [Description("ENTEADO")]
+ Enteado,
+ [OldValue("20")]
+ [Description("ENTEADA")]
+ Enteada,
+ [OldValue("21")]
+ [Description("CÔNJUGE")]
+ Conjuge,
+ [OldValue("22")]
+ [Description("SÓCIO")]
+ Socio,
+ [OldValue("23")]
+ [Description("FUNCIONÁRIO")]
+ Funcionário,
+ [OldValue("24")]
+ [Description("EX-CÔNJUGE")]
+ Exconjuge,
+ [OldValue("25")]
+ [Description("AMIGO(A)")]
+ Amigo,
+ [OldValue("26")]
+ [Description("NETO")]
+ Neto,
+ [OldValue("27")]
+ [Description("PROPRIETÁRIO DA EMPRESA")]
+ Proprietario,
+ [OldValue("28")]
+ [Description("SÍNDICO")]
+ Sindico
+}
diff --git a/Gestor.Model/Gestor.Model.Common/ParentescoVinculo.cs b/Gestor.Model/Gestor.Model.Common/ParentescoVinculo.cs
new file mode 100644
index 0000000..424e435
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/ParentescoVinculo.cs
@@ -0,0 +1,82 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum ParentescoVinculo
+{
+ [OldValue("0")]
+ [Description("MÃE/PAI")]
+ MaePai,
+ [OldValue("1")]
+ [Description("FILHO(A)")]
+ Filho,
+ [OldValue("2")]
+ [Description("IRMÃO(A)")]
+ Irmao,
+ [OldValue("3")]
+ [Description("AVÔ(Ó)")]
+ Avo,
+ [OldValue("4")]
+ [Description("NETO(A)")]
+ Neto,
+ [OldValue("5")]
+ [Description("TIO(A)")]
+ Tio,
+ [OldValue("6")]
+ [Description("SOBRINHO(A)")]
+ Sobrinho,
+ [OldValue("7")]
+ [Description("BISAVÔ(Ó)")]
+ Bisavo,
+ [OldValue("8")]
+ [Description("BISNETO(A)")]
+ Bisneto,
+ [OldValue("9")]
+ [Description("PRIMO(A)")]
+ Primo,
+ [OldValue("10")]
+ [Description("SOGRO(A)")]
+ Sogro,
+ [OldValue("11")]
+ [Description("GENRO/NORA")]
+ Genro,
+ [OldValue("12")]
+ [Description("CUNHADO(A)")]
+ Cunhado,
+ [OldValue("13")]
+ [Description("MADRASTA/PADRASTO")]
+ MadrastaPadrasto,
+ [OldValue("14")]
+ [Description("ENTEADO(A)")]
+ Enteado,
+ [OldValue("15")]
+ [Description("CÔNJUGE")]
+ Conjuge,
+ [OldValue("16")]
+ [Description("EX-CÔNJUGE")]
+ Exconjuge,
+ [OldValue("17")]
+ [Description("SÓCIO(A)")]
+ Socio,
+ [OldValue("18")]
+ [Description("AMIGO(A)")]
+ Amigo,
+ [OldValue("19")]
+ [Description("PROPRIETÁRIO(A)")]
+ Proprietario,
+ [OldValue("20")]
+ [Description("PROPRIEDADE")]
+ Propriedade,
+ [OldValue("21")]
+ [Description("CONTRATANTE")]
+ Contratante,
+ [OldValue("22")]
+ [Description("FUNCIONÁRIO(A)")]
+ Funcionario,
+ [OldValue("23")]
+ [Description("OUTROS")]
+ Outros
+}
diff --git a/Gestor.Model/Gestor.Model.Common/PermissaoAggilizador.cs b/Gestor.Model/Gestor.Model.Common/PermissaoAggilizador.cs
new file mode 100644
index 0000000..288dac3
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/PermissaoAggilizador.cs
@@ -0,0 +1,8 @@
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Common;
+
+public class PermissaoAggilizador : DomainBase
+{
+ public string Descricao { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Rastreador.cs b/Gestor.Model/Gestor.Model.Common/Rastreador.cs
new file mode 100644
index 0000000..73a853e
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Rastreador.cs
@@ -0,0 +1,64 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Rastreador
+{
+ [OldValue("0")]
+ [Description("NÃO POSSUI")]
+ NaoPossui,
+ [OldValue("1")]
+ [Description("AUTO TRAC")]
+ AutoTrac,
+ [OldValue("2")]
+ [Description("CAR SYSTEM")]
+ CarSystem,
+ [OldValue("3")]
+ [Description("CELTEC")]
+ Celtec,
+ [OldValue("4")]
+ [Description("CIELO")]
+ Cielo,
+ [OldValue("5")]
+ [Description("GRABER")]
+ Graber,
+ [OldValue("6")]
+ [Description("ITURAN")]
+ Ituran,
+ [OldValue("7")]
+ [Description("TRACKER")]
+ Tracker,
+ [OldValue("8")]
+ [Description("OMNILINK")]
+ Omnilink,
+ [OldValue("9")]
+ [Description("POSITRON")]
+ Positron,
+ [OldValue("10")]
+ [Description("SASCAR")]
+ Sascar,
+ [OldValue("11")]
+ [Description("DAF-V")]
+ Dafv,
+ [OldValue("12")]
+ [Description("CEABS")]
+ CEABS,
+ [OldValue("13")]
+ [Description("ONSTAR")]
+ OnStar,
+ [OldValue("14")]
+ [Description("LO JACK")]
+ LoJack,
+ [OldValue("15")]
+ [Description("ORIGINAL DE FÁBRICA")]
+ OriginalDeFabrica,
+ [OldValue("16")]
+ [Description("SEGSAT")]
+ Segsat,
+ [OldValue("17")]
+ [Description("SAT COMPANY")]
+ SatCompany
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Relacao.cs b/Gestor.Model/Gestor.Model.Common/Relacao.cs
new file mode 100644
index 0000000..1e30e32
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Relacao.cs
@@ -0,0 +1,40 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Relacao
+{
+ [OldValue("0")]
+ [Description("PRÓPRIO")]
+ Proprio,
+ [OldValue("1")]
+ [Description("PROPRIETÁRIO(A)")]
+ Proprietario,
+ [OldValue("2")]
+ [Description("CÔNJUGE")]
+ Conjuge,
+ [OldValue("3")]
+ [Description("EMPREGADO(A)")]
+ Empregado,
+ [OldValue("4")]
+ [Description("IRMÃO(Ã)")]
+ Irmao,
+ [OldValue("5")]
+ [Description("FILHO(A)")]
+ Filho,
+ [OldValue("6")]
+ [Description("MÃE")]
+ Mae,
+ [OldValue("7")]
+ [Description("PAI")]
+ Pai,
+ [OldValue("8")]
+ [Description("OUTROS")]
+ Outros,
+ [OldValue("9")]
+ [Description("INDETERMINADO")]
+ Indeterminado
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Relatorio.cs b/Gestor.Model/Gestor.Model.Common/Relatorio.cs
new file mode 100644
index 0000000..00784d6
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Relatorio.cs
@@ -0,0 +1,130 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Relatorio
+{
+ [Tipo("CLIENTE")]
+ [Description("RELATÓRIO DE CLIENTE")]
+ [OldValue("1000")]
+ Cliente,
+ [Tipo("CLIENTE")]
+ [Description("RELATÓRIO DE ANIVERSARIANTE")]
+ [OldValue("1001")]
+ Aniversariante,
+ [Tipo("DOCUMENTO")]
+ [Description("RELATÓRIO DE PRODUÇÃO")]
+ [OldValue("1002")]
+ Producao,
+ [Tipo("DOCUMENTO")]
+ [Description("RELATÓRIO DE APÓLICES PENDENTES")]
+ [OldValue("1003")]
+ ApolicePendente,
+ [Tipo("DOCUMENTO")]
+ [Description("RELATÓRIO DE RENOVAÇÕES")]
+ [OldValue("1004")]
+ Renovacao,
+ [Tipo("PARCELA")]
+ [Description("RELATÓRIO DE RECEBIMENTO DE COMISSÃO")]
+ [OldValue("1005")]
+ Comissao,
+ [Tipo("PARCELA")]
+ [Description("RELATÓRIO DE COMISSÃO A RECEBER")]
+ [OldValue("1006")]
+ Pendente,
+ [Tipo("PARCELA")]
+ [Description("RELATÓRIO DE PAGAMENTO DE VENDEDOR")]
+ [OldValue("1007")]
+ Pagamento,
+ [Tipo("FECHAMENTO")]
+ [Description("RELATÓRIO DE AUDITORIA DE COMISSÃO")]
+ [OldValue("1008")]
+ Auditoria,
+ [Tipo("SINISTRO")]
+ [Description("RELATÓRIO DE SINISTRO PENDENTE")]
+ [OldValue("1009")]
+ SinistroPendente,
+ [Tipo("SINISTRO")]
+ [Description("RELATÓRIO DE SINISTRO")]
+ [OldValue("1010")]
+ Sinistro,
+ [Tipo("FECHAMENTO")]
+ [Description("RELATÓRIO DE FECHAMENTO")]
+ [OldValue("1011")]
+ Fechamento,
+ [Tipo("PARCELA")]
+ [Description("RELATÓRIO DE FATURAS PENDENTES")]
+ [OldValue("1012")]
+ FaturaPendente,
+ [Tipo("EXTRATO")]
+ [Description("RELATÓRIO DE EXTRATOS BAIXADOS NO PERIODO")]
+ [OldValue("1013")]
+ ExtratosBaixados,
+ [Tipo("DOCUMENTO")]
+ [Description("RELATÓRIO DE METAS DE SEGURADORAS")]
+ [OldValue("1014")]
+ MetaSeguradora,
+ [Tipo("DOCUMENTO")]
+ [Description("RELATÓRIO DE METAS DE VENDEDORES")]
+ [OldValue("1015")]
+ MetaVendedor,
+ [Tipo("PARCELA")]
+ [Description("RELATÓRIO DE VENCIMENTO DE PARCELAS")]
+ [OldValue("1016")]
+ ParcelasVencendo,
+ [Tipo("CLIENTE")]
+ [Description("RELATÓRIO DE LICENCIAMENTO")]
+ [OldValue("1017")]
+ Licenciamento,
+ [Tipo("TAREFA")]
+ [Description("RELATÓRIO DE TAREFAS")]
+ [OldValue("1018")]
+ Tarefa,
+ [Tipo("NOTA FISCAL")]
+ [Description("RELATÓRIO DE NOTAS FISCAIS")]
+ [OldValue("1019")]
+ NotaFiscal,
+ [Tipo("PARCELA")]
+ [Description("RELATÓRIO DE PREVISÃO DE PAGAMENTO DE COMISSÃO")]
+ [OldValue("1020")]
+ PrevisaoPagamentoComissao,
+ [Tipo("DOCUMENTO")]
+ [Description("RELATÓRIO DE ASSINATURAS ENVIADAS")]
+ [OldValue("1021")]
+ AssinaturasEnviadas,
+ [Tipo("DOCUMENTO")]
+ [Description("PRODUÇÃO")]
+ [OldValue("1022")]
+ Apolice,
+ [Tipo("LOGS")]
+ [Description("RELATÓRIO DE LOGS DE ENVIO DE E-MAIL")]
+ [OldValue("1023")]
+ LogsEnvio,
+ [Tipo("LOGS")]
+ [Description("RELATÓRIO DE LOGS UTILIZAÇÃO")]
+ [OldValue("1024")]
+ LogsUtilizacao,
+ [Tipo("LOGS")]
+ [Description("RELATÓRIO DE LOGS UTILIZAÇÃO SISTEMA ANTIGO")]
+ [OldValue("1025")]
+ LogsUtilizacaoAntigo,
+ [Tipo("DOCUMENTO")]
+ [Description("RELATÓRIO DE IMPORTAÇÃO")]
+ [OldValue("1026")]
+ Importacao,
+ [Tipo("DOCUMENTO")]
+ [Description("RELATÓRIO DE PLACAS")]
+ [OldValue("1027")]
+ Placa,
+ [Tipo("DOCUMENTO")]
+ [Description("RELATÓRIO DE ENDOSSO")]
+ [OldValue("1028")]
+ Endosso,
+ [Tipo("CLIENTE")]
+ [Description("RELATÓRIO DE CLASSIFICAÇÃO")]
+ [OldValue("1029")]
+ Classificacao
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Sexo.cs b/Gestor.Model/Gestor.Model.Common/Sexo.cs
new file mode 100644
index 0000000..074e646
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Sexo.cs
@@ -0,0 +1,18 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Sexo
+{
+ [OldValue("0")]
+ [OldValue2("1")]
+ [Description("MASCULINO")]
+ Masculino,
+ [OldValue("1")]
+ [OldValue2("2")]
+ [Description("FEMININO")]
+ Feminino
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Sinal.cs b/Gestor.Model/Gestor.Model.Common/Sinal.cs
new file mode 100644
index 0000000..b9f7307
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Sinal.cs
@@ -0,0 +1,16 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Sinal
+{
+ [OldValue("0")]
+ [Description("CRÉDITO")]
+ Credito,
+ [OldValue("1")]
+ [Description("DÉBITO")]
+ Debito
+}
diff --git a/Gestor.Model/Gestor.Model.Common/SinteticoFinanceiroTipo.cs b/Gestor.Model/Gestor.Model.Common/SinteticoFinanceiroTipo.cs
new file mode 100644
index 0000000..1a4a8a9
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/SinteticoFinanceiroTipo.cs
@@ -0,0 +1,19 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum SinteticoFinanceiroTipo
+{
+ [Description("PLANO DE CONTAS")]
+ Plano,
+ [Description("CENTRO DE CUSTO")]
+ Centro,
+ [Description("FORNECEDOR")]
+ Fornecedor,
+ [Description("CONTA CORRENTE")]
+ Conta,
+ [Description("PLANO")]
+ PlanoRaiz
+}
diff --git a/Gestor.Model/Gestor.Model.Common/SqlQueryCondition.cs b/Gestor.Model/Gestor.Model.Common/SqlQueryCondition.cs
new file mode 100644
index 0000000..9302daf
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/SqlQueryCondition.cs
@@ -0,0 +1,11 @@
+using System.Collections.Generic;
+using System.Data.SqlClient;
+
+namespace Gestor.Model.Common;
+
+public class SqlQueryCondition
+{
+ public string Condicao { get; set; }
+
+ public List<SqlParameter> Parametros { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Common/StatusAssinatura.cs b/Gestor.Model/Gestor.Model.Common/StatusAssinatura.cs
new file mode 100644
index 0000000..0777ced
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/StatusAssinatura.cs
@@ -0,0 +1,19 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum StatusAssinatura
+{
+ [Description("ASSINATURA PENDENTE")]
+ Pendente,
+ [Description("DOCUMENTO ASSINADO")]
+ Assinado,
+ [Description("ASSINATURA REJEITADA")]
+ Rejeitado,
+ [Description("NÃO ENVIADO")]
+ NaoEnviado,
+ [Description("ASSINADO MANUALMENTE")]
+ AssinadoManualmente
+}
diff --git a/Gestor.Model/Gestor.Model.Common/StatusCalculo.cs b/Gestor.Model/Gestor.Model.Common/StatusCalculo.cs
new file mode 100644
index 0000000..40d5df1
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/StatusCalculo.cs
@@ -0,0 +1,23 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum StatusCalculo
+{
+ [Description("Não Calculado")]
+ NaoCalculado,
+ [Description("Em Andamento")]
+ EmAndamento,
+ [Description("Ganho")]
+ Ganho,
+ [Description("Perdido")]
+ Perdido,
+ [Description("Enviado")]
+ Enviado,
+ [Description("Calculando")]
+ Calculando,
+ [Description("Salvando")]
+ Salvando
+}
diff --git a/Gestor.Model/Gestor.Model.Common/StatusDocumentoAssinado.cs b/Gestor.Model/Gestor.Model.Common/StatusDocumentoAssinado.cs
new file mode 100644
index 0000000..42a25cb
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/StatusDocumentoAssinado.cs
@@ -0,0 +1,19 @@
+using System;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Common;
+
+public class StatusDocumentoAssinado
+{
+ public bool Selecionado { get; set; }
+
+ public long Id { get; set; }
+
+ public string Documento { get; set; }
+
+ public StatusAssinatura Status { get; set; }
+
+ public DateTime? Envio { get; set; }
+
+ public Usuario Usuario { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Common/StatusExtrato.cs b/Gestor.Model/Gestor.Model.Common/StatusExtrato.cs
new file mode 100644
index 0000000..07fd275
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/StatusExtrato.cs
@@ -0,0 +1,21 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum StatusExtrato
+{
+ [OldValue("1")]
+ [Description("PENDENTE")]
+ Pendente = 1,
+ [OldValue("2")]
+ [Description("INCOMPLETO")]
+ IncompletoFinalizado,
+ [OldValue("3")]
+ [Description("BAIXADO")]
+ Baixado,
+ [Description("TODOS")]
+ Todos
+}
diff --git a/Gestor.Model/Gestor.Model.Common/StatusItem.cs b/Gestor.Model/Gestor.Model.Common/StatusItem.cs
new file mode 100644
index 0000000..2e956f9
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/StatusItem.cs
@@ -0,0 +1,9 @@
+namespace Gestor.Model.Common;
+
+public enum StatusItem
+{
+ Ativos,
+ Inativos,
+ Documento,
+ Controle
+}
diff --git a/Gestor.Model/Gestor.Model.Common/StatusLancamento.cs b/Gestor.Model/Gestor.Model.Common/StatusLancamento.cs
new file mode 100644
index 0000000..4ce55ee
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/StatusLancamento.cs
@@ -0,0 +1,15 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum StatusLancamento
+{
+ [Description("PENDENTES")]
+ Pendentes,
+ [Description("BAIXADOS")]
+ Baixados,
+ [Description("TODOS")]
+ Todos
+}
diff --git a/Gestor.Model/Gestor.Model.Common/StatusPagamento.cs b/Gestor.Model/Gestor.Model.Common/StatusPagamento.cs
new file mode 100644
index 0000000..3088563
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/StatusPagamento.cs
@@ -0,0 +1,15 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum StatusPagamento
+{
+ [Description("SEM PENDÊNCIA")]
+ All,
+ [Description("PAGAMENTO PENDENTE")]
+ Pending,
+ [Description("PENDÊNCIA NOTIFICADA")]
+ Notified
+}
diff --git a/Gestor.Model/Gestor.Model.Common/StatusParcela.cs b/Gestor.Model/Gestor.Model.Common/StatusParcela.cs
new file mode 100644
index 0000000..097c8df
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/StatusParcela.cs
@@ -0,0 +1,73 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum StatusParcela
+{
+ [OldValue("1")]
+ [Description("BAIXADA NORMALMENTE")]
+ Baixada = 1,
+ [OldValue("2")]
+ [Description("DOCUMENTO NÃO ENCONTRADO")]
+ DocumentoNaoEncontrado,
+ [OldValue("3")]
+ [Description("PARCELA NÃO ENCONTRADA")]
+ ParcelaNaoEncontrada,
+ [OldValue("4")]
+ [Description("DIFERENÇA DE COMISSÃO")]
+ DiferencaPercentual,
+ [OldValue("5")]
+ [Description("BAIXADA ANTERIORMENTE")]
+ BaixadaAnteriormente,
+ [OldValue("6")]
+ [Description("DESCONSIDERADA PELO USUÁRIO")]
+ DesconsideradaUsuario,
+ [OldValue("7")]
+ [Description("ANTERIOR NÃO BAIXADA")]
+ ParcelaAnteriorNaoBaixada,
+ [OldValue("8")]
+ [Description("DESCONSIDERADA PELO SISTEMA")]
+ DesconsideradaSistema,
+ [OldValue("9")]
+ [Description("A SER BAIXADA")]
+ ASerBaixada,
+ [OldValue("10")]
+ [Description("BAIXADA COM DIFERENÇA DE COMISSÃO")]
+ BaixadaDiferencaPercentual,
+ [OldValue("11")]
+ [Description("APÓLICE DUPLICADA")]
+ ApoliceDuplicada,
+ [OldValue("12")]
+ [Description("BAIXADA MANUALMENTE")]
+ BaixadaManualmente,
+ [OldValue("13")]
+ [Description("BAIXADA PELA CRÍTICA")]
+ BaixadaCritica,
+ [OldValue("14")]
+ [Description("A SER BAIXADA, CRÍTICA MANUAL")]
+ Criticada,
+ [OldValue("15")]
+ [Description("FATURA NÃO ENCONTRADA")]
+ FaturaNaoEncontrada,
+ [OldValue("16")]
+ [Description("A SER BAIXADO, ENCONTRADO POR APROXIMAÇÃO")]
+ ASerBaixadoPorAproximacao,
+ [OldValue("17")]
+ [Description("PARCELA ESPECIAL A SER CRIADA")]
+ ParcelaEspecialASerCriada,
+ [OldValue("18")]
+ [Description("A SER BAIXADO, ENCONTRADO POR APROXIMAÇÃO COM DIFERENÇA DE COMISSÃO")]
+ ASerBaixadoPorAproximacaoDiferencaPercentual,
+ [OldValue("18")]
+ [Description("DOCUMENTO ENCONTRADO SEM % DE COMISSÃO")]
+ SemComissao,
+ [OldValue("19")]
+ [Description("FATURA ENCONTRADA SEM % DE COMISSÃO")]
+ FaturaSemComissao,
+ [OldValue("20")]
+ [Description("PARCELA ESPECIAL BAIXADA ANTERIORMENTE")]
+ ParcelaEspecialBaixadaAnteriormente
+}
diff --git a/Gestor.Model/Gestor.Model.Common/StatusProspeccao.cs b/Gestor.Model/Gestor.Model.Common/StatusProspeccao.cs
new file mode 100644
index 0000000..daebe7d
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/StatusProspeccao.cs
@@ -0,0 +1,25 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum StatusProspeccao
+{
+ [OldValue("1")]
+ [Description("AGENDADO")]
+ Agendado = 1,
+ [OldValue("2")]
+ [Description("GANHO")]
+ Ganho,
+ [OldValue("3")]
+ [Description("PERDIDO")]
+ Perdido,
+ [OldValue("4")]
+ [Description("NÃO TRABALHADO")]
+ NaoTrabalhado,
+ [OldValue("5")]
+ [Description("EM ANDAMENTO")]
+ EmAndamento
+}
diff --git a/Gestor.Model/Gestor.Model.Common/StatusSinistro.cs b/Gestor.Model/Gestor.Model.Common/StatusSinistro.cs
new file mode 100644
index 0000000..1fe8e6a
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/StatusSinistro.cs
@@ -0,0 +1,25 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum StatusSinistro
+{
+ [OldValue("1")]
+ [Description("EM ANDAMENTO")]
+ EmAndamento = 1,
+ [OldValue("2")]
+ [Description("LIQUIDADO")]
+ Liquidado,
+ [OldValue("3")]
+ [Description("LIQUIDADO SEM INDENIZAÇÃO")]
+ SemIndenizacao,
+ [OldValue("4")]
+ [Description("NEGADO")]
+ Negado,
+ [OldValue("5")]
+ [Description("ATENDIDO COMO TERCEIRO")]
+ Terceiro
+}
diff --git a/Gestor.Model/Gestor.Model.Common/StatusTarefa.cs b/Gestor.Model/Gestor.Model.Common/StatusTarefa.cs
new file mode 100644
index 0000000..9327f1d
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/StatusTarefa.cs
@@ -0,0 +1,15 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum StatusTarefa
+{
+ [Description("PENDENTE")]
+ Pendente,
+ [Description("REAGENDADO")]
+ Reagendado,
+ [Description("REALIZADO")]
+ Realizado
+}
diff --git a/Gestor.Model/Gestor.Model.Common/SubTipo.cs b/Gestor.Model/Gestor.Model.Common/SubTipo.cs
new file mode 100644
index 0000000..9b3f864
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/SubTipo.cs
@@ -0,0 +1,28 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum SubTipo
+{
+ [OldValue("1")]
+ [Description("PARCELA NORMAL")]
+ ParcelaNormal = 1,
+ [OldValue("2")]
+ [Description("RESTITUIÇÃO")]
+ Restituicao,
+ [OldValue("3")]
+ [Description("CRÉDITO")]
+ Credito,
+ [OldValue("4")]
+ [Description("CUSTO DE APÓLICE")]
+ Custo,
+ [OldValue("5")]
+ [Description("CARTÃO DE CRÉDITO")]
+ Cartao,
+ [OldValue("6")]
+ [Description("ACERTO DE COMISSÃO")]
+ Acerto
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TabelaReferencia.cs b/Gestor.Model/Gestor.Model.Common/TabelaReferencia.cs
new file mode 100644
index 0000000..025b6aa
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TabelaReferencia.cs
@@ -0,0 +1,16 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TabelaReferencia
+{
+ [OldValue("0")]
+ [Description("MOLICAR")]
+ Molicar,
+ [OldValue("1")]
+ [Description("FIPE")]
+ Fipe
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TempoHabilitacao.cs b/Gestor.Model/Gestor.Model.Common/TempoHabilitacao.cs
new file mode 100644
index 0000000..3ca9929
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TempoHabilitacao.cs
@@ -0,0 +1,43 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TempoHabilitacao
+{
+ [OldValue("1")]
+ [Description("UM ANO")]
+ UmAno,
+ [OldValue("2")]
+ [Description("DOIS ANOS")]
+ DoisAnos,
+ [OldValue("3")]
+ [Description("TRÊS ANOS")]
+ TresAnos,
+ [OldValue("4")]
+ [Description("QUATRO ANOS")]
+ QutroAnos,
+ [OldValue("5")]
+ [Description("CINCO ANOS")]
+ CincoAnos,
+ [OldValue("6")]
+ [Description("SEIS ANOS")]
+ SeisAnos,
+ [OldValue("7")]
+ [Description("SETE ANOS")]
+ SeteAnos,
+ [OldValue("8")]
+ [Description("OITO ANOS")]
+ OitoAnos,
+ [OldValue("9")]
+ [Description("NOVE ANOS")]
+ NoveAnos,
+ [OldValue("10")]
+ [Description("DEZ ANOS")]
+ DezAnos,
+ [OldValue("11")]
+ [Description("MAIS DE DEZ ANOS")]
+ MaisDeDezAnos
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoAcao.cs b/Gestor.Model/Gestor.Model.Common/TipoAcao.cs
new file mode 100644
index 0000000..5b0d154
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoAcao.cs
@@ -0,0 +1,15 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoAcao
+{
+ [Description("INSERÇÃO")]
+ Insert,
+ [Description("ATUALIZAÇÃO")]
+ Update,
+ [Description("EXCLUSÃO")]
+ Delete
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoAeronautico.cs b/Gestor.Model/Gestor.Model.Common/TipoAeronautico.cs
new file mode 100644
index 0000000..9d9ac6f
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoAeronautico.cs
@@ -0,0 +1,118 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoAeronautico
+{
+ [OldValue("1")]
+ [Category("Aero")]
+ [Description("AERONAVE")]
+ Aeronave = 1,
+ [OldValue("2")]
+ [Category("Aero")]
+ [Description("BALÃO")]
+ Balao,
+ [OldValue("3")]
+ [Category("Aero")]
+ [Description("PLANADOR")]
+ Planador,
+ [OldValue("4")]
+ [Category("Aero")]
+ [Description("ULTRALEVE")]
+ Ultraleve,
+ [OldValue("5")]
+ [Category("Aero")]
+ [Description("HELICÓPTERO")]
+ Helicoptero,
+ [OldValue("6")]
+ [Category("Aero")]
+ [Description("HIDROAVIÃO")]
+ Hidroaviao,
+ [OldValue("7")]
+ [Category("Aero")]
+ [Description("ECRANOPLANO")]
+ Ecranoplano,
+ [OldValue("8")]
+ [Category("Aero")]
+ [Description("AVIÃO ANFÍBIO")]
+ AviãoAnfibio,
+ [OldValue("9")]
+ [Category("Aero")]
+ [Description("GIROCÓPTERO")]
+ Girocoptero,
+ [OldValue("10")]
+ [Category("Nautico")]
+ [Description("LANCHA")]
+ Lancha,
+ [OldValue("11")]
+ [Category("Nautico")]
+ [Description("VELEIRO")]
+ Veleiro,
+ [OldValue("12")]
+ [Category("Nautico")]
+ [Description("ESCUNA")]
+ Escuna,
+ [OldValue("13")]
+ [Category("Nautico")]
+ [Description("TRANEIRA/PESQUEIRO")]
+ TraneiraPesqueiro,
+ [OldValue("14")]
+ [Category("Nautico")]
+ [Description("TRAWLER")]
+ Trawler,
+ [OldValue("15")]
+ [Category("Nautico")]
+ [Description("BARCO ALUMÍNEO")]
+ BarcoAlumineo,
+ [OldValue("16")]
+ [Category("Nautico")]
+ [Description("BOTE INFLÁVEL")]
+ BoteInflavel,
+ [OldValue("17")]
+ [Category("Nautico")]
+ [Description("JET-SKI")]
+ JetSki,
+ [OldValue("18")]
+ [Category("Nautico")]
+ [Description("JET BOAT")]
+ JetBoat,
+ [OldValue("19")]
+ [Category("Nautico")]
+ [Description("CAIAQUE")]
+ Caiaque,
+ [OldValue("20")]
+ [Category("Nautico")]
+ [Description("CANOA")]
+ Canoa,
+ [OldValue("21")]
+ [Category("Nautico")]
+ [Description("ALVARENGA")]
+ Alvarenga,
+ [OldValue("22")]
+ [Category("Nautico")]
+ [Description("BARCAÇA")]
+ Barcaca,
+ [OldValue("23")]
+ [Category("Nautico")]
+ [Description("CARGUEIRO")]
+ Cargueiro,
+ [OldValue("24")]
+ [Category("Nautico")]
+ [Description("DRAGA")]
+ Draga,
+ [OldValue("25")]
+ [Category("Nautico")]
+ [Description("IATE")]
+ Iate,
+ [OldValue("26")]
+ [Category("Nautico")]
+ [Description("REBOCADOR")]
+ Rebocador,
+ [OldValue("27")]
+ [Category("Aero")]
+ [Description("DRONE")]
+ Drone
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoArquivoDigital.cs b/Gestor.Model/Gestor.Model.Common/TipoArquivoDigital.cs
new file mode 100644
index 0000000..3e8dca9
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoArquivoDigital.cs
@@ -0,0 +1,45 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoArquivoDigital
+{
+ [Description("TODOS")]
+ Todos,
+ [Description("CLIENTE")]
+ Cliente,
+ [Description("APÓLICE")]
+ Apolice,
+ [Description("PARCELA")]
+ Parcela,
+ [Description("ITEM")]
+ Item,
+ [Description("SINISTRO")]
+ Sinistro,
+ [Description("VENDEDOR")]
+ Vendedor,
+ [Description("EXTRATO")]
+ Extrato,
+ [Description("SEGURADORA")]
+ Seguradora,
+ [Description("LANÇAMENTO")]
+ Lancamento,
+ [Description("FORNECEDOR")]
+ Fornecedor,
+ [Description("PROSPECÇÃO")]
+ Prospeccao,
+ [Description("USUÁRIO")]
+ Usuario,
+ [Description("EMPRESA")]
+ Empresa,
+ [Description("SÓCIO")]
+ Socio,
+ [Description("TAREFA")]
+ Tarefa,
+ [Description("NOTA FISCAL")]
+ NotaFiscal,
+ [Description("ESTIPULANTE")]
+ Estipulante
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoArquivoVinculo.cs b/Gestor.Model/Gestor.Model.Common/TipoArquivoVinculo.cs
new file mode 100644
index 0000000..b924fc7
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoArquivoVinculo.cs
@@ -0,0 +1,7 @@
+namespace Gestor.Model.Common;
+
+public enum TipoArquivoVinculo
+{
+ Proposta,
+ Apolice
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoCobertura.cs b/Gestor.Model/Gestor.Model.Common/TipoCobertura.cs
new file mode 100644
index 0000000..c3549ae
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoCobertura.cs
@@ -0,0 +1,25 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoCobertura
+{
+ [OldValue("1")]
+ [Description("COMPREENSIVA")]
+ Compreensiva = 1,
+ [OldValue("2")]
+ [Description("INCÊNDIO E ROUBO/FURTO")]
+ IncendioRouboFurto,
+ [OldValue("3")]
+ [Description("DANOS A TERCEIROS")]
+ DanosTerceiros,
+ [OldValue("4")]
+ [Description("PASSAGEIROS")]
+ Passageiros,
+ [OldValue("5")]
+ [Description("ROUBO/FURTO")]
+ RouboFurto
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoConstrucao.cs b/Gestor.Model/Gestor.Model.Common/TipoConstrucao.cs
new file mode 100644
index 0000000..74dc4b5
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoConstrucao.cs
@@ -0,0 +1,22 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoConstrucao
+{
+ [OldValue("1")]
+ [Description("SUPERIOR")]
+ SUPERIOR,
+ [OldValue("2")]
+ [Description("SÓLIDA")]
+ SOLIDA,
+ [OldValue("3")]
+ [Description("MISTA")]
+ MISTA,
+ [OldValue("4")]
+ [Description("INFERIOR")]
+ INFERIOR
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoConta.cs b/Gestor.Model/Gestor.Model.Common/TipoConta.cs
new file mode 100644
index 0000000..c4be446
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoConta.cs
@@ -0,0 +1,15 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoConta
+{
+ [Description("NENHUM")]
+ Nenhum,
+ [Description("POUPANÇA")]
+ Poupanca,
+ [Description("CORRENTE")]
+ Corrente
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoContato.cs b/Gestor.Model/Gestor.Model.Common/TipoContato.cs
new file mode 100644
index 0000000..8ad49c2
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoContato.cs
@@ -0,0 +1,7 @@
+namespace Gestor.Model.Common;
+
+public enum TipoContato
+{
+ Telefone,
+ Email
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoContatoSeguradora.cs b/Gestor.Model/Gestor.Model.Common/TipoContatoSeguradora.cs
new file mode 100644
index 0000000..40e8500
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoContatoSeguradora.cs
@@ -0,0 +1,15 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoContatoSeguradora
+{
+ [Description("CONTATO")]
+ Contato,
+ [Description("ASSISTÊNCIA 24HS")]
+ Assistencia,
+ [Description("EMAIL")]
+ Email
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoDocumento.cs b/Gestor.Model/Gestor.Model.Common/TipoDocumento.cs
new file mode 100644
index 0000000..6374867
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoDocumento.cs
@@ -0,0 +1,22 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoDocumento
+{
+ [OldValue("0")]
+ [Description("CPF/CNPJ")]
+ Cpf,
+ [OldValue("1")]
+ [Description("RNE")]
+ Rne,
+ [OldValue("2")]
+ [Description("CEI")]
+ Cei,
+ [OldValue("3")]
+ [Description("CAEPF")]
+ Caepf
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoEmail.cs b/Gestor.Model/Gestor.Model.Common/TipoEmail.cs
new file mode 100644
index 0000000..aebe7df
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoEmail.cs
@@ -0,0 +1,15 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoEmail
+{
+ [Description("OUTROS")]
+ Outros,
+ [Description("GOOGLE")]
+ Google,
+ [Description("MS OFFICE 365")]
+ Office365
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoEndereco.cs b/Gestor.Model/Gestor.Model.Common/TipoEndereco.cs
new file mode 100644
index 0000000..562f798
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoEndereco.cs
@@ -0,0 +1,31 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoEndereco
+{
+ [OldValue("1")]
+ [Description("OUTROS")]
+ Outros = 1,
+ [OldValue("2")]
+ [Description("CORRESPONDÊNCIA")]
+ Correspondencia,
+ [OldValue("3")]
+ [Description("RESIDENCIAL")]
+ Residencial,
+ [OldValue("4")]
+ [Description("COMERCIAL")]
+ Comercial,
+ [OldValue("5")]
+ [Description("RECADO")]
+ Recado,
+ [OldValue("6")]
+ [Description("COBRANÇA")]
+ Cobranca,
+ [OldValue("7")]
+ [Description("FINANCEIRO")]
+ Financeiro
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoEndosso.cs b/Gestor.Model/Gestor.Model.Common/TipoEndosso.cs
new file mode 100644
index 0000000..385a35a
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoEndosso.cs
@@ -0,0 +1,25 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoEndosso
+{
+ [OldValue("0")]
+ [Description("COM MOVIMENTO DE PRÊMIO")]
+ ComMovimento,
+ [OldValue("1")]
+ [Description("SEM MOVIMENTO DE PRÊMIO")]
+ SemMovimento,
+ [OldValue("2")]
+ [Description("CANCELAMENTO DA APÓLICE")]
+ Cancelamento,
+ [OldValue("3")]
+ [Description("REABILITAÇÃO DA APÓLICE")]
+ Reabilitacao,
+ [OldValue("4")]
+ [Description("PRORROGAÇÃO DE VIGÊNCIA")]
+ Prorrogacao
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoExtrato.cs b/Gestor.Model/Gestor.Model.Common/TipoExtrato.cs
new file mode 100644
index 0000000..753449b
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoExtrato.cs
@@ -0,0 +1,15 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoExtrato
+{
+ [Description("SOMENTE CLIENTE")]
+ Cliente,
+ [Description("APÓLICE SELECIONADA")]
+ ApoliceSelecionada,
+ [Description("RELAÇÃO DE APÓLICES")]
+ RelacaoApolices
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoFiltroBusca.cs b/Gestor.Model/Gestor.Model.Common/TipoFiltroBusca.cs
new file mode 100644
index 0000000..32e68d3
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoFiltroBusca.cs
@@ -0,0 +1,13 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoFiltroBusca
+{
+ [Description("APROXIMADO")]
+ Aproximado,
+ [Description("IGUAL")]
+ Igual
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoFiltroCliente.cs b/Gestor.Model/Gestor.Model.Common/TipoFiltroCliente.cs
new file mode 100644
index 0000000..e5de8db
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoFiltroCliente.cs
@@ -0,0 +1,15 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoFiltroCliente
+{
+ [Description("NOME OU SOBRENOME")]
+ NomeSobrenome,
+ [Description("NOME APENAS")]
+ Nome,
+ [Description("NOME E DOCS")]
+ NomeDocumentos
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoFiltroFinanceiro.cs b/Gestor.Model/Gestor.Model.Common/TipoFiltroFinanceiro.cs
new file mode 100644
index 0000000..dc4f012
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoFiltroFinanceiro.cs
@@ -0,0 +1,19 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoFiltroFinanceiro
+{
+ [Description("FORNECEDOR")]
+ Fornecedor,
+ [Description("PLANO DE CONTAS")]
+ Plano,
+ [Description("CENTRO DE CUSTO")]
+ Centro,
+ [Description("CONTA")]
+ Conta,
+ [Description("SINAL")]
+ Sinal
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoFiltroRelatorio.cs b/Gestor.Model/Gestor.Model.Common/TipoFiltroRelatorio.cs
new file mode 100644
index 0000000..dff6801
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoFiltroRelatorio.cs
@@ -0,0 +1,25 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoFiltroRelatorio
+{
+ [Description("SEGURADORA")]
+ Seguradora,
+ [Description("RAMO")]
+ Ramo,
+ [Description("VENDEDOR")]
+ Vendedor,
+ [Description("ESTIPULANTE")]
+ Estipulante,
+ [Description("PRODUTO")]
+ Produto,
+ [Description("STATUS")]
+ Status,
+ [Description("TIPO VENDEDOR")]
+ TipoVendedor,
+ [Description("NEGÓCIO CORRETORA")]
+ Negocio
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoIncidencia.cs b/Gestor.Model/Gestor.Model.Common/TipoIncidencia.cs
new file mode 100644
index 0000000..0b775d2
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoIncidencia.cs
@@ -0,0 +1,16 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoIncidencia
+{
+ [OldValue("1")]
+ [Description("SOBRE A COMISSÃO")]
+ SobreComissao = 1,
+ [OldValue("2")]
+ [Description("SOBRE O PRÊMIO LÍQUIDO")]
+ SobrePremioLiquido
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoIncidenciaDesconto.cs b/Gestor.Model/Gestor.Model.Common/TipoIncidenciaDesconto.cs
new file mode 100644
index 0000000..02b26c1
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoIncidenciaDesconto.cs
@@ -0,0 +1,13 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoIncidenciaDesconto
+{
+ [Description("AMBOS")]
+ Ambos,
+ [Description("SOMENTE POSITIVOS")]
+ Positivos
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoManutencao.cs b/Gestor.Model/Gestor.Model.Common/TipoManutencao.cs
new file mode 100644
index 0000000..1afeeaf
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoManutencao.cs
@@ -0,0 +1,17 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoManutencao
+{
+ [Description("RENOVAÇÃO")]
+ Renovacao,
+ [Description("ENDOSSO")]
+ Endosso,
+ [Description("REATIVAR")]
+ Reativar,
+ [Description("CANCELAR")]
+ Cancelar
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoMoradia.cs b/Gestor.Model/Gestor.Model.Common/TipoMoradia.cs
new file mode 100644
index 0000000..dd31eae
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoMoradia.cs
@@ -0,0 +1,13 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoMoradia
+{
+ [Description("APARTAMENTO")]
+ Apartamento = 1,
+ [Description("CASA")]
+ Casa
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoPagamento.cs b/Gestor.Model/Gestor.Model.Common/TipoPagamento.cs
new file mode 100644
index 0000000..47480d1
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoPagamento.cs
@@ -0,0 +1,61 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoPagamento
+{
+ [OldValue("0")]
+ [Description("NENHUM")]
+ Nenhum = 0,
+ [OldValue("15")]
+ [Description("BOLETO BANCÁRIO")]
+ Boleto = 15,
+ [OldValue("2")]
+ [Description("CAIXA")]
+ Caixa = 2,
+ [OldValue("14")]
+ [Description("CARNÊ")]
+ Carne = 14,
+ [OldValue("3")]
+ [Description("CARTÃO DE CRÉDITO")]
+ Cartao = 3,
+ [OldValue("4")]
+ [Description("CHEQUE")]
+ Cheque = 4,
+ [OldValue("5")]
+ [Description("CRÉDITO EM CONTA")]
+ Credito = 5,
+ [OldValue("6")]
+ [Description("DÉBITO AUTOMÁTICO")]
+ DebitoAuto = 6,
+ [OldValue("7")]
+ [Description("DÉBITO EM CONTA")]
+ DebitoConta = 7,
+ [OldValue("8")]
+ [Description("DEPÓSITO")]
+ Deposito = 8,
+ [OldValue("9")]
+ [Description("DINHEIRO")]
+ Dinheiro = 9,
+ [OldValue("13")]
+ [Description("REEMBOLSO")]
+ Reembolso = 13,
+ [OldValue("10")]
+ [Description("SAQUE")]
+ Saque = 10,
+ [OldValue("11")]
+ [Description("TRANSFERÊNCIA")]
+ Transferencia = 11,
+ [OldValue("12")]
+ [Description("OUTROS")]
+ Outros = 12,
+ [OldValue("18")]
+ [Description("PIX")]
+ Pix = 18,
+ [OldValue("19")]
+ [Description("VOUCHER")]
+ Voucher = 19
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoPavimentacao.cs b/Gestor.Model/Gestor.Model.Common/TipoPavimentacao.cs
new file mode 100644
index 0000000..6958c78
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoPavimentacao.cs
@@ -0,0 +1,19 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoPavimentacao
+{
+ [OldValue("1")]
+ [Description("TÉRREO")]
+ Terreo,
+ [OldValue("2")]
+ [Description("PRIMEIRO")]
+ Primeiro,
+ [OldValue("3")]
+ [Description("SEGUNDO EM DIANTE")]
+ SegundoEmDiante
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoPerda.cs b/Gestor.Model/Gestor.Model.Common/TipoPerda.cs
new file mode 100644
index 0000000..ac4f734
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoPerda.cs
@@ -0,0 +1,25 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoPerda
+{
+ [Description("CONSTATAÇÃO")]
+ Constatacao = 1,
+ [Description("PARCIAL")]
+ Parcial,
+ [Description("TOTAL")]
+ Total,
+ [Description("ROUBO/FURTO")]
+ RouboFurto,
+ [Description("MORTE")]
+ Morte,
+ [Description("INVALIDEZ")]
+ Invalidez,
+ [Description("PERDA DE RENDA")]
+ PerdaRenda,
+ [Description("OUTROS")]
+ Outros
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoPesquisa.cs b/Gestor.Model/Gestor.Model.Common/TipoPesquisa.cs
new file mode 100644
index 0000000..8caa684
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoPesquisa.cs
@@ -0,0 +1,47 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoPesquisa
+{
+ [Description("CHASSI")]
+ Chassi,
+ [Description("CÓDIGO DOCUMENTO")]
+ CodDocumento,
+ [Description("CÓDIGO SINISTRO")]
+ CodSinistro,
+ [Description("E-MAIL")]
+ Email,
+ [Description("ESTIPULANTE")]
+ Estipulante,
+ [Description("IMOBILIÁRIA")]
+ Imobiliaria,
+ [Description("ITEM")]
+ Item,
+ [Description("LOCATÁRIO/TOMADOR")]
+ Locatario,
+ [Description("Nº DA APÓLICE")]
+ Apolice,
+ [Description("Nº DO SINISTRO")]
+ Sinistro,
+ [Description("Nº DA PROPOSTA")]
+ Proposta,
+ [Description("NÚMERO ENDOSSO")]
+ NumeroEndosso,
+ [Description("OBSERVAÇÕES DO CLIENTE")]
+ ObsCliente,
+ [Description("PASTA")]
+ Pasta,
+ [Description("PLACA")]
+ Placa,
+ [Description("PROPOSTA ENDOSSO")]
+ PedidoEndosso,
+ [Description("TELEFONE")]
+ Telefone,
+ [Description("Nº DA FATURA")]
+ Fatura,
+ [Description("OBSERVAÇÕES DO ITEM")]
+ ObsItem
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoProtocoloEtiqueta.cs b/Gestor.Model/Gestor.Model.Common/TipoProtocoloEtiqueta.cs
new file mode 100644
index 0000000..d7d940a
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoProtocoloEtiqueta.cs
@@ -0,0 +1,13 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoProtocoloEtiqueta
+{
+ [Description("PROTOCOLO")]
+ Protocolo,
+ [Description("ETIQUETA")]
+ Etiqueta
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoRecebimento.cs b/Gestor.Model/Gestor.Model.Common/TipoRecebimento.cs
new file mode 100644
index 0000000..17a6cbe
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoRecebimento.cs
@@ -0,0 +1,16 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoRecebimento
+{
+ [OldValue("1")]
+ [Description("PARCELA")]
+ Parcela = 1,
+ [OldValue("2")]
+ [Description("FATURA")]
+ Fatura
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoRecibo.cs b/Gestor.Model/Gestor.Model.Common/TipoRecibo.cs
new file mode 100644
index 0000000..f4e54d7
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoRecibo.cs
@@ -0,0 +1,16 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoRecibo
+{
+ [OldValue("0")]
+ [Description("PAGAMENTO")]
+ Pagamento,
+ [OldValue("1")]
+ [Description("RECEBIMENTO")]
+ Recebimento
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoRepasse.cs b/Gestor.Model/Gestor.Model.Common/TipoRepasse.cs
new file mode 100644
index 0000000..c13c896
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoRepasse.cs
@@ -0,0 +1,22 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoRepasse
+{
+ [OldValue("1")]
+ [Tipo("0")]
+ [Description("VALOR FIXO")]
+ ValorFixo = 1,
+ [OldValue("2")]
+ [Tipo("0")]
+ [Description("PERCENTUAL")]
+ Percentual,
+ [OldValue("3")]
+ [Tipo("1")]
+ [Description("CO-CORRETAGEM")]
+ CoCorretagem
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoResidencia.cs b/Gestor.Model/Gestor.Model.Common/TipoResidencia.cs
new file mode 100644
index 0000000..c2862e2
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoResidencia.cs
@@ -0,0 +1,22 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoResidencia
+{
+ [OldValue("1")]
+ [Description("CASA")]
+ Casa,
+ [OldValue("2")]
+ [Description("APARTAMENTO")]
+ Apartamento,
+ [OldValue("3")]
+ [Description("CONDOMÍNIO")]
+ Condominio,
+ [OldValue("4")]
+ [Description("OUTROS")]
+ Outros
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoRestricao.cs b/Gestor.Model/Gestor.Model.Common/TipoRestricao.cs
new file mode 100644
index 0000000..319d958
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoRestricao.cs
@@ -0,0 +1,526 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoRestricao
+{
+ [Description("SEGUROS VENCENDO")]
+ SegurosVencendo,
+ [Description("SEGUROS VENCIDOS")]
+ SegurosVencidos,
+ [Description("PRODUÇÃO")]
+ Producao,
+ [Description("APÓLICES PENDENTES")]
+ ApolicesPendentes,
+ [Description("NOVOS NEGÓCIOS")]
+ NovosNegocios,
+ [Description("RENOVADOS")]
+ Renovados,
+ [Description("COMISSÃO GERADA")]
+ ComissaoGerada,
+ [Description("CANCELADOS")]
+ Cancelados,
+ [Description("PERDIDOS")]
+ Perdidos,
+ [Description("PARCELAS PAGAS")]
+ ParcelasPagas,
+ [Description("COMISSÃO RECEBIDA")]
+ ComissaoRecebida,
+ [Description("PARCELAS PENDENTES")]
+ ParcelasPendentes,
+ [Description("PARCELAS A VENCER")]
+ ParcelasVencer,
+ [Category("Seguros")]
+ [Help("IMPEDE USUÁRIO DE ACESSAR EXTRATO DE CLIENTE.")]
+ [Description("RESTRINGIR ACESSO AO EXTRATO DO CLIENTE")]
+ ExtratoCliente,
+ [Category("Seguros")]
+ [Help("OCULTA TUDO RELACIONADO A COMISSÃO.")]
+ [Description("OCULTAR COMISSÃO")]
+ Comissao,
+ [Category("Seguros")]
+ [Help("IMPEDE USUÁRIO DE REALIZAR BAIXA DE COMISSÃO MANUALMENTE.")]
+ [Description("RESTRINGIR ACESSO À BAIXA DE COMISSÃO MANUAL")]
+ BaixaManual,
+ [Category("Seguros")]
+ [Help("IMPEDE USUÁRIO DE ACESSAR A PLATAFORMA DE IMPORTAÇÃO DE PDF DO GESTOR AGGER.")]
+ [Description("RESTRINGIR ACESSO AO IMPORTADOR PDF")]
+ Importacao,
+ [Category("Seguros")]
+ [Help("IMPEDE USUÁRIO DE RENOVAR UM DOCUMENTO.")]
+ [Description("RESTRINGIR ACESSO À RENOVAR")]
+ Renovar,
+ [Category("Seguros")]
+ [Help("IMPEDE USUÁRIO DE RECUSAR UM DOCUMENTO.")]
+ [Description("RESTRINGIR ACESSO À RECUSAR")]
+ Recusar,
+ Tarefas,
+ [Category("Seguros")]
+ [Help("IMPEDE USUÁRIO DE ENVIAR E-MAIL.")]
+ [Description("RESTRINGIR ACESSO AO ENVIO DE E-MAIL")]
+ EnvioEmail,
+ [Category("Seguros")]
+ [Help("IMPEDE USUÁRIO DE TROCAR UM CLIENTE POR OUTRO MANTENDO AS MESMAS INFORMAÇÕES DO DOCUMENTO.")]
+ [Description("RESTRINGIR ACESSO À TROCAR CLIENTE")]
+ TrocarCliente,
+ [Category("Seguros")]
+ [Help("IMPEDE USUÁRIO DE REALIZAR MANUTENÇÃO DE ITENS.")]
+ [Description("RESTRINGIR ACESSO À MANUTENÇÃO DOS ITENS")]
+ ManutencaoItens,
+ [OldValue("0")]
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE PRODUÇÃO.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE PRODUÇÃO")]
+ RelatorioProducao,
+ [OldValue("1")]
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE RENOVAÇÕES.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE RENOVAÇÕES")]
+ RelatorioRenovacao,
+ [OldValue("2")]
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE SINISTRO PENDENTE.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE SINISTRO PENDENTE")]
+ RelatorioSinistroPendente,
+ [OldValue("3")]
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE SINISTRO.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE SINISTRO")]
+ RelatorioSinistro,
+ [OldValue("4")]
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE RECEBIMENTO DE COMISSÃO.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE RECEBIMENTO DE COMISSÃO")]
+ RelatorioRecebimentoComissao,
+ [OldValue("5")]
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE PAGAMENTO DE COMISSÃO")]
+ RelatorioPagamentoComissao,
+ [OldValue("6")]
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE COMISSÃO A RECEBER.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE COMISSÃO A RECEBER")]
+ RelatorioParcelaPendente,
+ [OldValue("7")]
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE CLIENTE.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE CLIENTE")]
+ RelatorioCliente,
+ [OldValue("8")]
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE TAREFAS.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE TAREFAS")]
+ RelatorioTarefa,
+ [Category("Seguros")]
+ [Help("IMPEDE USUÁRIO DE ACESSAR O WHATSAOO DO CLIENTE PARA ENVIO DE DOCUMENTAÇÃO.")]
+ [Description("RESTRINGIR ACESSO AO WHATSAPP DO CLIENTE")]
+ Whatsapp,
+ [Category("Seguros")]
+ [Help("IMPEDE USUÁRIO DE TER ACESSO PARA REALIZAR UM ENDOSSO.")]
+ [Description("RESTRINGIR ACESSO A OPÇÃO DE ENDOSSAR")]
+ Endossar,
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE APÓLICES PENDENTES.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE APÓLICES PENDENTES")]
+ RelatorioApolicePendente,
+ [Category("Financeiro")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O FINANCEIRO.")]
+ [Description("RESTRINGIR ACESSO AO FINANCEIRO")]
+ Financeiro,
+ [Category("Aggilizador")]
+ [Description("RESTRINGIR ACESSO À CÁLCULO")]
+ Calculo,
+ [Category("Aggilizador")]
+ [Description("RESTRINGIR ACESSO ÀS PROPOSTAS/APÓLICES")]
+ PropApol,
+ [Category("Aggilizador")]
+ [Description("RESTRINGIR ACESSO AO EXTRATO DE COMISSÃO")]
+ ExtratoComissao,
+ [Category("Aggilizador")]
+ [Description("RESTRINGIR ACESSO ÀS PARCELAS PENDENTES")]
+ ParcelaPendente,
+ [Category("Aggilizador")]
+ [Description("RESTRINGIR ACESSO ÀS RENOVAÇÕES")]
+ Renovacao,
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE FECHAMENTO.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE FECHAMENTO")]
+ RelatorioFechamento,
+ [Category("Seguros")]
+ [Help("IMPEDE USUÁRIO DE ACESSAR A TELA DE CRÍTICA PDF.")]
+ [Description("RESTRINGIR ACESSO À CRÍTICA PDF")]
+ CriticaApolice,
+ [Category("Seguros")]
+ [Help("IMPEDE USUÁRIO DE ACESSAR A TELA DE COMISSÃO AUTOMÁTICA.")]
+ [Description("RESTRINGIR ACESSO À COMISSÃO AUTOMÁTICA")]
+ BaixaAutomatica,
+ [Category("B.I.")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR A TELA DE PROSPECÇÃO")]
+ [Description("RESTRINGIR ACESSO À PROSPECÇÃO")]
+ Prospeccao,
+ [Description("RESTRINGIR ACESSO À TRILHA")]
+ Trilha,
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE AUDITORIA.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE AUDITORIA")]
+ RelatorioAuditoria,
+ [Category("B.I.")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR A TELA DO PAINEL B.I.")]
+ [Description("RESTRINGIR ACESSO AO PAINEL B.I.")]
+ Bi,
+ [Category("Ferramentas")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR ÀS ETIQUETAS.")]
+ [Description("RESTRINGIR ACESSO ÀS ETIQUETAS")]
+ Etiquetas,
+ [OldValue("8")]
+ [Tipo("RELATORIOS")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE ANIVERSARIANTES")]
+ [Category("Relatorios")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE ANIVERSARIANTES")]
+ RelatorioAniversariante,
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE EXTRATOS BAIXADOS.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE EXTRATOS BAIXADOS")]
+ RelatorioExtratosBaixados,
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE FATURAS PENDENTES.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE FATURAS PENDENTES")]
+ RelatorioFaturaPendente,
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE METAS DE SEGURADORAS.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE METAS DE SEGURADORAS")]
+ RelatorioMetaSeguradora,
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE METAS DE VENDEDORES.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE METAS DE VENDEDORES")]
+ RelatorioMetaVendedor,
+ [Help("IMPEDE O USUÁRIO DE ACESSAR OS ATENDIMENTOS DO GESTOR")]
+ [Category("Ajuda")]
+ [Description("RESTRINGIR ACESSO AOS ATENDIMENTOS")]
+ Atendimentos,
+ [Help("IMPEDE O USUÁRIO DE ACESSAR OS BOLETOS E NOTAS DO GESTOR")]
+ [Category("Ajuda")]
+ [Description("RESTRINGIR ACESSO AOS BOLETOS E NOTAS")]
+ BoletosNotas,
+ [Help("IMPEDE O USUÁRIO DE ACESSAR OS CONTRATOS DO GESTOR")]
+ [Category("Ajuda")]
+ [Description("RESTRINGIR ACESSO AOS CONTRATOS")]
+ Contratos,
+ [Help("IMPEDE O USUÁRIO DE ACESSAR INSTALAÇÕES DO GESTOR")]
+ [Category("Ajuda")]
+ [Description("RESTRINGIR ACESSO À INSTALAÇÕES")]
+ Instalacoes,
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O ACESSO REMOTO DO GESTOR")]
+ [Category("Ajuda")]
+ [Description("RESTRINGIR ACESSO AO ACESSO REMOTO")]
+ AcessoRemoto,
+ [Category("Seguros")]
+ [Help("IMPEDE USUÁRIO DE ACESSAR A PLATAFORMA AGGER EPIC.")]
+ [Description("RESTRINGIR ACESSO À AGGER EPIC")]
+ Epic,
+ [Category("Seguros")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR A PLATAFORMA AGGER SIGGNER E TER ACESSO A ASSINATURA ELETRÔNICA QUE SE ENCONTRA NOS ARQUIVOS DIGITAIS.")]
+ [Description("RESTRINGIR ACESSO AO AGGER SIGGNER")]
+ AssinaturaEletronica,
+ [Help("IMPEDE O USUÁRIO DE ACESSAR OS VÍDEOS DE AJUDA DO GESTOR")]
+ [Category("Ajuda")]
+ [Description("OCULTAR VIDEOS DE AJUDA")]
+ Videos,
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE VENCIMENTO DE PARCELAS.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE VENCIMENTO DE PARCELAS")]
+ RelatorioParcelasVencendo,
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE LICENCIAMENTO.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO LICENCIAMENTO")]
+ RelatorioLicenciamento,
+ [Category("Ferramentas")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR AS CONFIGURAÇÕES DO SISTEMA.")]
+ [Description("RESTRINGIR ACESSO AS CONFIGURAÇÕES DO SISTEMA")]
+ Configuracoes,
+ [OldValue("9")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE PRÊMIO TOTAL DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE PRÊMIO TOTAL")]
+ RelatorioTotalizacaoPremioTotal,
+ [OldValue("10")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE TOTAIS DE CLIENTES DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE TOTAIS DE CLIENTES")]
+ RelatorioTotalizacaoTotalCliente,
+ [OldValue("11")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE PRÊMIO LÍQUIDO DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE PRÊMIO LÍQUIDO")]
+ RelatorioTotalizacaoPremioLiquido,
+ [OldValue("12")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE MÉDIAS DE COMISSÕES DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE MÉDIAS DE COMISSÕES")]
+ RelatorioTotalizacaoMediaComissao,
+ [OldValue("13")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE QUANTIDADE DE NOVOS NEGÓCIOS DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE QUANTIDADE DE NOVOS NEGÓCIOS")]
+ RelatorioTotalizacaoQuantidadeNovoNegocio,
+ [OldValue("14")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE QUANTIDADE DE RENOVAÇÕES DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE QUANTIDADE DE RENOVAÇÕES")]
+ RelatorioTotalizacaoQuantidadeRenovacoes,
+ [OldValue("15")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE QUANTIDADE DE CANCELAMENTOS DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE QUANTIDADE DE CANCELAMENTOS")]
+ RelatorioTotalizacaoQuantidadeCancelamentos,
+ [OldValue("16")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE QUANTIDADE DE AÓLICES DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE QUANTIDADE DE APÓLICES")]
+ RelatorioTotalizacaoQuantidadeApolices,
+ [OldValue("17")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE QUANTIDADE DE ENDOSSOS DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE QUANTIDADE DE ENDOSSOS")]
+ RelatorioTotalizacaoQuantidadeEndossos,
+ [OldValue("18")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE QUANTIDADE DE FATURAS DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE QUANTIDADE DE FATURAS")]
+ RelatorioTotalizacaoQuantidadeFaturas,
+ [OldValue("19")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE TOTAL GERAL DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE TOTAL GERAL")]
+ RelatorioTotalizacaoTotalGeral,
+ [OldValue("20")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE TOTAL DE LÍQUIDO DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE TOTAL DE LÍQUIDO")]
+ RelatorioTotalizacaoTotalLiquido,
+ [OldValue("21")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE QUANTIDADE DE PROSPECÇÕES DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE QUANTIDADE DE PROSPECÇÕES")]
+ RelatorioTotalizacaoQuantidadeProspeccoes,
+ [OldValue("22")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE TOTAL DE COMISSÃO GERADA DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE TOTAL DE COMISSÃO GERADA")]
+ RelatorioTotalizacaoTotalComissaoGerada,
+ [OldValue("23")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE COMISSÃO RECEBIDA BRUTA DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE COMISSÃO RECEBIDA BRUTA")]
+ RelatorioTotalizacaoComissaoRecebidaBruta,
+ [OldValue("24")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE COMISSÃO PREVISTA DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE COMISSÃO PREVISTA")]
+ RelatorioTotalizacaoComissaoPrevisata,
+ [OldValue("25")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE REPASSE DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE REPASSE")]
+ RelatorioTotalizacaoRepasse,
+ [OldValue("26")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE TOTAL PREVISTO DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE TOTAL PREVISTO")]
+ RelatorioTotalizacaoTotalPrevisto,
+ [OldValue("27")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE TOTAL DE TERCEIROS DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE TOTAL DE TERCEIROS")]
+ RelatorioTotalizacaoTotalTerceiros,
+ [OldValue("28")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE QUANTIDADE DE LIQUIDADOS DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE QUANTIDADE LIQUIDADO")]
+ RelatorioTotalizacaoQuantidadeLiquidado,
+ [OldValue("29")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE QUANTIDADE DE PENDENTES DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE QUANTIDADE PENDENTE")]
+ RelatorioTotalizacaoQuantidadePendente,
+ [OldValue("30")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE VALOR LIQUIDADO DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE VALOR LIQUIDADO")]
+ RelatorioTotalizacaoValorLiquidado,
+ [OldValue("31")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE COMISSÃO PENDENTE DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE COMISSÃO PENDENTE")]
+ RelatorioTotalizacaoComissaoPendente,
+ [OldValue("32")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE META A ATINGIR DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE META ATINGIR")]
+ RelatorioTotalizacaoMetaAtingir,
+ [OldValue("33")]
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE META CUMPRIDA DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE META CUMPRIDA")]
+ RelatorioTotalizacaoMetaCumprida,
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE NOTAS FISCAIS.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE NOTAS FISCAIS")]
+ RelatorioNotaFiscal,
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE PREVISÃO DE PAGAMENTO DE COMISSÃO.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE PREVISÃO DE PAGAMENTO DE COMISSÃO")]
+ RelatorioPrevisaoPagamentoComissao,
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE COMISSÃO RECEBIDA LÍQUIDA DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE COMISSÃO RECEBIDA LÍQUIDA")]
+ RelatorioTotalizacaoComissaoRecebidaLiquida,
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE IMPOSTOS DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE IMPOSTOS")]
+ RelatorioTotalizacaoImpostos,
+ [Category("Ferramentas")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR OS HORÁRIOS DE ACESSO AO GESTOR.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DO HORÁRIO DE ACESSO DO USUÁRIO")]
+ HorarioAcesso,
+ [Category("Seguros")]
+ [Help("OCULTA OS VALORES RELACIONADOS A COMISSÃO MAS A PORCENTAGEM DE COMISSÃO FICA VISÍVEL.")]
+ [Description("OCULTAR COMISSÃO (MENOS PORCENTAGEM)")]
+ ComissaoPorcentagem,
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE LOGS DE ENVIO DE E-MAIL.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE LOGS DE ENVIO DE E-MAIL")]
+ RelatorioLogsEnvio,
+ [Category("Seguros")]
+ [Help("RESTRINGIR AS INFORMAÇÕES DE VALORES NA CONSULTA")]
+ [Description("RESTRINGIR INFORMAÇÕES VALORES")]
+ MaisValores,
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE LOGS DE UTILIZAÇÃO DO SISTEMA.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE LOGS DE UTILIZAÇÃO DO SISTEMA")]
+ RelatorioLogsAcao,
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O PLANILHA COMPLETA NOS RELATÓRIOS DE PRODUÇÃO E FECHAMENTO.")]
+ [Description("RESTRINGIR ACESSO AO PLANILHA COMPLETA")]
+ RelatorioPlanilhaCompleta,
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE VALOR DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE VALOR")]
+ RelatorioTotalizacaoValor,
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE VALOR ORÇADO DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE VALOR ORÇADO")]
+ RelatorioTotalizacaoValorOrcado,
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE VALOR DAS PARCELAS RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE VALOR DAS PARCELAS")]
+ RelatorioTotalizacaoValorParcelas,
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE VALOR LIBERADO DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE VALOR LIBERADO")]
+ RelatorioTotalizacaoValorLiberado,
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE VALOR PAGO DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE VALOR PAGO")]
+ RelatorioTotalizacaoValorPago,
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE VALOR SALVADO DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE VALOR SALVADO")]
+ RelatorioTotalizacaoValorSalvado,
+ [Tipo("RELATORIOS")]
+ [Category("TotalizacoesRelatorios")]
+ [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE VALOR FRANQUIA DO RELATÓRIO.")]
+ [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE VALOR FRANQUIA")]
+ RelatorioTotalizacaoValorFranquia,
+ [OldValue("0")]
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE IMPORTAÇÃO.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE IMPORTAÇÃO")]
+ RelatorioImportacao,
+ [Category("B.I.")]
+ [Help("IMPEDE QUE O USUÁRIO ACESSE SUA DASHBOARD.")]
+ [Description("RESTRINGIR ACESSO À DASHBOARD DO USUÁRIO")]
+ Dashboard,
+ [Category("Seguros")]
+ [Help("IMPEDE USUÁRIO DE ACESSAR OS LOGS.")]
+ [Description("RESTRINGIR ACESSO AOS LOGS")]
+ Ocultarlogs,
+ [Category("Seguros")]
+ [Help("IMPEDE QUE O USUÁRIO REALIZE ENVIOS E E-MAIL UTILIZANDO REMETENTES NÃO CADASTRADOS POR ELE.")]
+ [Description("RESTRINGIR ALTERAÇÃO DE REMETENTE (MALA DIRETA)")]
+ RestringirRemetente,
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE PLACAS.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE PLACA")]
+ RelatorioPlaca,
+ [Tipo("RELATORIOS")]
+ [Category("Relatorios")]
+ [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE ENDOSSOS.")]
+ [Description("RESTRINGIR ACESSO AO RELATÓRIO DE ENDOSSOS")]
+ RelatorioEndosso,
+ [Category("Seguros")]
+ [Help("IMPEDE O USUÁRIO DE CONTRATAR MAIS LICENÇAS DE ASSINATURA DIGITAL NA PLATAFORMA AGGER SIGGNER.")]
+ [Description("RESTRINGIR ACESSO À CONTRATAÇÃO DE LICENÇAS AGGER SIGGNER")]
+ AdquirirLicencasSiggner
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoSeguro.cs b/Gestor.Model/Gestor.Model.Common/TipoSeguro.cs
new file mode 100644
index 0000000..b35ebb6
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoSeguro.cs
@@ -0,0 +1,31 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoSeguro
+{
+ [OldValue("1")]
+ [Description("SEGURO NOVO")]
+ Novo = 1,
+ [OldValue("2")]
+ [Description("RENOVAÇÃO")]
+ Renovacao,
+ [OldValue("3")]
+ [Description("CANCELADO")]
+ Cancelado,
+ [OldValue("4")]
+ [Description("REABILITADO")]
+ Reabilitado,
+ [OldValue("5")]
+ [Description("RENOVADO")]
+ Renovado,
+ [OldValue("6")]
+ [Description("PERDIDO")]
+ Perdido,
+ [OldValue("7")]
+ [Description("RECUSADO")]
+ Recusado
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoSinistro.cs b/Gestor.Model/Gestor.Model.Common/TipoSinistro.cs
new file mode 100644
index 0000000..2eddcd9
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoSinistro.cs
@@ -0,0 +1,16 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoSinistro
+{
+ [OldValue("0")]
+ [Description("CLIENTE")]
+ Cliente,
+ [OldValue("1")]
+ [Description("TERCEIRO")]
+ Terceiro
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoTarefa.cs b/Gestor.Model/Gestor.Model.Common/TipoTarefa.cs
new file mode 100644
index 0000000..c123590
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoTarefa.cs
@@ -0,0 +1,27 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoTarefa
+{
+ [Description("APÓLICE")]
+ Apolice,
+ [Description("NOTAS")]
+ Notas,
+ [Description("CLIENTE")]
+ Cliente,
+ [Description("PARCELA")]
+ Parcela,
+ [Description("SINISTRO")]
+ Sinistro,
+ [Description("PROSPECÇÃO")]
+ Prospeccao,
+ [Description("META")]
+ Vendedor,
+ [Description("SEGURADORA")]
+ Seguradora,
+ [Description("AGENDA")]
+ Agenda
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoTela.cs b/Gestor.Model/Gestor.Model.Common/TipoTela.cs
new file mode 100644
index 0000000..114c7e4
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoTela.cs
@@ -0,0 +1,214 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoTela
+{
+ [Description("Todas")]
+ Todas,
+ [Category("Seguros")]
+ [Description("CADASTRO DE CLIENTE")]
+ [Entity("ClienteView")]
+ Cliente,
+ [Category("Seguros")]
+ [Description("CADASTRO DE APÓLICE")]
+ [Entity("ApoliceView")]
+ Apolice,
+ [Category("Seguros")]
+ [Description("CADASTRO DE ITEM")]
+ [Entity("MenuItensView")]
+ Item,
+ [Description("TRILHA")]
+ Trilha,
+ [Category("Seguros")]
+ [Description("CADASTRO DE PARCELAS")]
+ [Entity("ApoliceView")]
+ Parcela,
+ [Description("CADASTRO DE ARQUIVO DIGITAL")]
+ Arquivo,
+ [Category("Seguros")]
+ [Description("SINISTRO")]
+ [Entity("SinistroView")]
+ Sinistro,
+ [Description("CONFIGURAÇÃO DE IMPORTAÇÃO")]
+ ConfigExtratoImport,
+ [Category("Ferramentas")]
+ [Description("CADASTRO DE ESTIPULANTE")]
+ [Entity("EstipulanteView")]
+ Estipulante,
+ [Category("Ferramentas")]
+ [Description("CADASTRO DE PRODUTO")]
+ [Entity("ProdutoView")]
+ Produto,
+ [Category("Ferramentas")]
+ [Description("CADASTRO DE STATUS")]
+ [Entity("StatusView")]
+ Status,
+ [Category("Ferramentas")]
+ [Description("MANUTENÇÃO DE RAMOS")]
+ [Entity("RamoView")]
+ Ramo,
+ [Category("Ferramentas")]
+ [Description("CADASTRO DE SEGURADORA")]
+ [Entity("SeguradoraView")]
+ Seguradora,
+ [Category("Ferramentas")]
+ [Description("CADASTRO DE TIPO DE VENDEDOR")]
+ [Entity("TipoVendedorView")]
+ TipoVendedor,
+ [Category("Ferramentas")]
+ [Description("CADASTRO DE VENDEDOR")]
+ [Entity("VendedorView")]
+ Vendedor,
+ [Category("Ferramentas")]
+ [Description("CADASTRO DE USUARIOS")]
+ [Entity("UsuarioView")]
+ Usuario,
+ [Category("Ferramentas")]
+ [Description("CADASTRO DE E-MAIL")]
+ [Entity("CadastroEmailView")]
+ Email,
+ [Category("Ferramentas")]
+ [Description("CADASTRO DE EMPRESA E FILIAIS")]
+ [Entity("EmpresaView")]
+ Empresa,
+ [Category("Ferramentas")]
+ [Description("CADASTRO DE SÓCIO")]
+ [Entity("SocioView")]
+ Socio,
+ [Description("CRÍTICA DE IMPORTACAO")]
+ [Entity("CriticaApoliceView")]
+ CriticaApolice,
+ [Category("Seguros")]
+ [Description("CONSULTA GERAL DE SEGUROS")]
+ [Entity("ConsultaOriginalView")]
+ Consulta,
+ [Category("Ferramentas")]
+ [Description("PARCEIRO")]
+ [Entity("CadastroParceiroView")]
+ Parceiro,
+ [Description("EXTRATO")]
+ Extrato,
+ [Category("Financeiro")]
+ [Description("FORNECEDOR")]
+ [Entity("FornecedorView")]
+ Fornecedor,
+ [Category("Financeiro")]
+ [Description("LANCAMENTO")]
+ [Entity("FinanceiroView")]
+ Lancamento,
+ [Category("Financeiro")]
+ [Description("BANCOS E CONTAS")]
+ [Entity("BancosContasView")]
+ Conta,
+ [Category("Financeiro")]
+ [Description("PLANO")]
+ Plano,
+ [Category("Financeiro")]
+ [Description("PLANOS")]
+ [Entity("PlanosView")]
+ Planos,
+ [Category("Financeiro")]
+ [Description("CENTRO")]
+ [Entity("CentroDeCustoView")]
+ Centro,
+ [Category("Ferramentas")]
+ [Description("META VENDEDOR")]
+ MetaVendedor,
+ [Category("Ferramentas")]
+ [Description("META SEGURADORA")]
+ MetaSeguradora,
+ [Category("Seguros")]
+ [Description("CADASTRO DE PERFIL")]
+ Perfil,
+ [Category("Prospeccao")]
+ [Description("PROSPECÇÃO")]
+ [Entity("ProspeccaoView")]
+ Prospeccao,
+ [Category("Seguros")]
+ [Description("AGENDA")]
+ Agenda,
+ [Description("BAIXA DE COMISSÃO AUTOMÁTICA")]
+ [Entity("ComissaoView")]
+ ComissaoAutomatica,
+ [Description("ADIANTAMENTO")]
+ Adiantamento,
+ [Description("PAGAMENTO VENDEDOR")]
+ PagamentoVendedor,
+ [Category("Ferramentas")]
+ [Description("TAREFA")]
+ [Entity("TarefaView")]
+ Tarefa,
+ [Description("MALA DIRETA")]
+ [Entity("MalaDiretaView")]
+ MalaDireta,
+ [Description("ATENDIMENTO")]
+ [Entity("AtendimentosView")]
+ Atendimento,
+ [Description("TROCA DE CLIENTE")]
+ TrocaCliente,
+ [Category("Ferramentas")]
+ [Description("CADASTRO DE RECIBOS")]
+ [Entity("ReciboView")]
+ Recibo,
+ [Category("Ferramentas")]
+ [Description("PERMISSÕES/RESTRIÇÕES")]
+ PermissaoRestricao,
+ [Category("Assinatura")]
+ [Description("ASSINATURA ELETRONICA")]
+ Assinatura,
+ [Description("VINCULO VENDEDOR")]
+ VinculoVendedor,
+ [Category("Seguros")]
+ [Description("INFORMAÇÔES DE EXPEDIÇÃO")]
+ Expedicao,
+ Restricao,
+ [Category("Ferramentas")]
+ [Description("CADASTRO DE QUALIFICACAO")]
+ [Entity("QualificacaoView")]
+ Qualificacao,
+ [Description("LOGIN")]
+ Login,
+ [Description("CONFIGURAÇÕES DO SISTEMA")]
+ Configuracoes,
+ [Description("PAINEL BI")]
+ [Entity("PainelBiView")]
+ PainelBi,
+ [Category("Ferramentas")]
+ [Description("TIPO DE TAREFA")]
+ [Entity("TipoTarefaView")]
+ TipoTarefa,
+ [Category("Ferramentas")]
+ [Description("VINCULO REPASSES")]
+ VinculoRepasses,
+ [Description("CADASTRO DE REPASSE")]
+ [Entity("VendedorView")]
+ Repasse,
+ [Category("Ferramentas")]
+ [Description("CADASTRO DE NOTA FISCAL")]
+ [Entity("NotaFiscalView")]
+ NotaFiscal,
+ [Category("Ferramentas")]
+ [Description("CADASTRO DE PERCENTUAIS DE IMPOSTOS")]
+ [Entity("ImpostoDrawer")]
+ Impostos,
+ [Category("Ferramentas")]
+ [Description("STATUS DE PROSPECÇÃO")]
+ [Entity("StatusProspeccaoView")]
+ StatusProspeccao,
+ [Category("Ferramentas")]
+ [Description("MANUTENÇÃO DE PAGAMENTOS")]
+ [Entity("ManutencaoPagamentosView")]
+ ManutencaoPagamentos,
+ [Category("Ferramentas")]
+ [Description("PROTOCOLOS E ETIQUETAS")]
+ [Entity("ProdutoView")]
+ ProtocolosEtiquetas,
+ [Category("Ferramentas")]
+ [Description("PROSPECÇÃO")]
+ [Entity("ProspeccaoView")]
+ ProspeccaoPermissao
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoTelaInicial.cs b/Gestor.Model/Gestor.Model.Common/TipoTelaInicial.cs
new file mode 100644
index 0000000..4f5d04b
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoTelaInicial.cs
@@ -0,0 +1,19 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoTelaInicial
+{
+ [OldValue("0")]
+ [Description("CONSULTA GERAL")]
+ Consulta,
+ [OldValue("1")]
+ [Description("PAINEL B.I.")]
+ PainelBi,
+ [OldValue("2")]
+ [Description("FINANCEIRO")]
+ Financeiro
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoTelefone.cs b/Gestor.Model/Gestor.Model.Common/TipoTelefone.cs
new file mode 100644
index 0000000..284d4cc
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoTelefone.cs
@@ -0,0 +1,54 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoTelefone
+{
+ [Tipo("1")]
+ [OldValue("1")]
+ [Description("RESIDENCIAL")]
+ Residencial = 1,
+ [Tipo("1")]
+ [OldValue("2")]
+ [Description("COMERCIAL")]
+ Comercial,
+ [Tipo("1")]
+ [OldValue("3")]
+ [Description("CELULAR")]
+ Celular,
+ [Tipo("1")]
+ [OldValue("4")]
+ [Description("RADIO")]
+ Radio,
+ [Tipo("1")]
+ [OldValue("5")]
+ [Description("RECADO")]
+ Recado,
+ [Tipo("1")]
+ [OldValue("6")]
+ [Description("FAX")]
+ Fax,
+ [Tipo("1")]
+ [OldValue("7")]
+ [Description("OUTROS")]
+ Outros,
+ [Tipo("0")]
+ [OldValue("8")]
+ [Description("INTERNACIONAL")]
+ Internacional,
+ [Tipo("2")]
+ [OldValue("9")]
+ [Description("WHATSAPP")]
+ Whatsapp,
+ [Tipo("0")]
+ [OldValue("10")]
+ [Description("0800")]
+ Gratuita,
+ [Tipo("0")]
+ [OldValue("11")]
+ [Description("0300")]
+ TarifaUnica
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoTitular.cs b/Gestor.Model/Gestor.Model.Common/TipoTitular.cs
new file mode 100644
index 0000000..1fa0b99
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoTitular.cs
@@ -0,0 +1,19 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoTitular
+{
+ [OldValue("0")]
+ [Description("SÓCIO")]
+ Socio,
+ [OldValue("1")]
+ [Description("FUNCIONÁRIO")]
+ Funcionario,
+ [OldValue("2")]
+ [Description("DEPENDENTE")]
+ Dependente
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TipoTrilha.cs b/Gestor.Model/Gestor.Model.Common/TipoTrilha.cs
new file mode 100644
index 0000000..e01e8fc
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TipoTrilha.cs
@@ -0,0 +1,10 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TipoTrilha
+{
+ Acompanhamento
+}
diff --git a/Gestor.Model/Gestor.Model.Common/TpoSituacaoSinistro.cs b/Gestor.Model/Gestor.Model.Common/TpoSituacaoSinistro.cs
new file mode 100644
index 0000000..eb65723
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/TpoSituacaoSinistro.cs
@@ -0,0 +1,19 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum TpoSituacaoSinistro
+{
+ [Description("EM ANDAMENTO")]
+ Andamento = 1,
+ [Description("LIQUIDADO")]
+ Liquidado,
+ [Description("LIQUIDADO SEM INDENIZAÇÃO")]
+ LiquidadoSemIndenizacao,
+ [Description("NEGADO")]
+ Negado,
+ [Description("ATENDIDO COMO TERCEIRO")]
+ Terceiro
+}
diff --git a/Gestor.Model/Gestor.Model.Common/UsoDependetes.cs b/Gestor.Model/Gestor.Model.Common/UsoDependetes.cs
new file mode 100644
index 0000000..8cfc870
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/UsoDependetes.cs
@@ -0,0 +1,25 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum UsoDependetes
+{
+ [OldValue("0")]
+ [Description("NÃO POSSUI")]
+ NaoPossui,
+ [OldValue("1")]
+ [Description("SIM, DO SEXO MASCULINO")]
+ SimMasculino,
+ [OldValue("2")]
+ [Description("SIM, DO SEXO FEMININO")]
+ SimFeminino,
+ [OldValue("3")]
+ [Description("SIM, DE AMBOS OS SEXOS")]
+ SimAmbos,
+ [OldValue("4")]
+ [Description("NÃO UTILIZAM")]
+ NaoUtilizam
+}
diff --git a/Gestor.Model/Gestor.Model.Common/UsoVeiculo.cs b/Gestor.Model/Gestor.Model.Common/UsoVeiculo.cs
new file mode 100644
index 0000000..1f2347d
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/UsoVeiculo.cs
@@ -0,0 +1,22 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum UsoVeiculo
+{
+ [OldValue("0")]
+ [Description("PARTICULAR")]
+ Particular,
+ [OldValue("1")]
+ [Description("PROFISSIONAL")]
+ Profissional,
+ [OldValue("2")]
+ [Description("TAXI")]
+ Taxi,
+ [OldValue("3")]
+ [Description("MOTORISTA DE APP")]
+ Aplicativo
+}
diff --git a/Gestor.Model/Gestor.Model.Common/Utilizacao.cs b/Gestor.Model/Gestor.Model.Common/Utilizacao.cs
new file mode 100644
index 0000000..d2be29c
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/Utilizacao.cs
@@ -0,0 +1,16 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Common;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Utilizacao
+{
+ [OldValue("1")]
+ [Description("RESIDENCIAL")]
+ Residencial = 1,
+ [OldValue("2")]
+ [Description("COMERCIAL")]
+ Comercial
+}
diff --git a/Gestor.Model/Gestor.Model.Common/ValidationStates.cs b/Gestor.Model/Gestor.Model.Common/ValidationStates.cs
new file mode 100644
index 0000000..b3647c8
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Common/ValidationStates.cs
@@ -0,0 +1,8 @@
+namespace Gestor.Model.Common;
+
+public enum ValidationStates
+{
+ Ok,
+ Error,
+ Warning
+}
diff --git a/Gestor.Model/Gestor.Model.Converter/EnumDescriptionTypeConverter.cs b/Gestor.Model/Gestor.Model.Converter/EnumDescriptionTypeConverter.cs
new file mode 100644
index 0000000..f114fcc
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Converter/EnumDescriptionTypeConverter.cs
@@ -0,0 +1,37 @@
+using System;
+using System.ComponentModel;
+using System.Globalization;
+using System.Reflection;
+
+namespace Gestor.Model.Converter;
+
+public class EnumDescriptionTypeConverter : EnumConverter
+{
+ public EnumDescriptionTypeConverter(Type type)
+ : base(type)
+ {
+ }
+
+ public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
+ {
+ if (destinationType != typeof(string))
+ {
+ return base.ConvertTo(context, culture, value, destinationType);
+ }
+ if (value == null)
+ {
+ return string.Empty;
+ }
+ FieldInfo field = value.GetType().GetField(value.ToString());
+ if (field == null)
+ {
+ return string.Empty;
+ }
+ DescriptionAttribute[] array = (DescriptionAttribute[])field.GetCustomAttributes(typeof(DescriptionAttribute), inherit: false);
+ if (array.Length == 0 || string.IsNullOrEmpty(array[0].Description))
+ {
+ return value.ToString();
+ }
+ return array[0].Description;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Aggilizador/ArquivoVinculo.cs b/Gestor.Model/Gestor.Model.Domain.Aggilizador/ArquivoVinculo.cs
new file mode 100644
index 0000000..0eb5552
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Aggilizador/ArquivoVinculo.cs
@@ -0,0 +1,16 @@
+namespace Gestor.Model.Domain.Aggilizador;
+
+public class ArquivoVinculo
+{
+ public long Id { get; set; }
+
+ public long IdVinculo { get; set; }
+
+ public byte[] Arquivo { get; set; }
+
+ public string Chave { get; set; }
+
+ public int Ano { get; set; }
+
+ public string Storage { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Aggilizador/Calculo.cs b/Gestor.Model/Gestor.Model.Domain.Aggilizador/Calculo.cs
new file mode 100644
index 0000000..c8cc2e8
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Aggilizador/Calculo.cs
@@ -0,0 +1,17 @@
+using System;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Aggilizador;
+
+public class Calculo : DomainBase
+{
+ public long DocumentId { get; set; }
+
+ public Usuario Usuario { get; set; }
+
+ public DateTime DataAtualizacao { get; set; }
+
+ public StatusCalculo Status { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Aggilizador/LocalArquivo.cs b/Gestor.Model/Gestor.Model.Domain.Aggilizador/LocalArquivo.cs
new file mode 100644
index 0000000..c016612
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Aggilizador/LocalArquivo.cs
@@ -0,0 +1,12 @@
+namespace Gestor.Model.Domain.Aggilizador;
+
+public class LocalArquivo
+{
+ public long IdPropostaDigital { get; set; }
+
+ public long IdApoliceDigital { get; set; }
+
+ public long IdExtratoDigital { get; set; }
+
+ public string Arquivo { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Aggilizador/ParcelaPendente.cs b/Gestor.Model/Gestor.Model.Domain.Aggilizador/ParcelaPendente.cs
new file mode 100644
index 0000000..60a2b07
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Aggilizador/ParcelaPendente.cs
@@ -0,0 +1,22 @@
+using System;
+
+namespace Gestor.Model.Domain.Aggilizador;
+
+public class ParcelaPendente
+{
+ public long Id { get; set; }
+
+ public long IdParcela { get; set; }
+
+ public string Seguradora { get; set; }
+
+ public string Cliente { get; set; }
+
+ public string Apolice { get; set; }
+
+ public int Parcela { get; set; }
+
+ public decimal Valor { get; set; }
+
+ public DateTime Vencimento { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Aggilizador/VinculoDocumento.cs b/Gestor.Model/Gestor.Model.Domain.Aggilizador/VinculoDocumento.cs
new file mode 100644
index 0000000..9a768f1
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Aggilizador/VinculoDocumento.cs
@@ -0,0 +1,12 @@
+namespace Gestor.Model.Domain.Aggilizador;
+
+public class VinculoDocumento
+{
+ public long Id { get; set; }
+
+ public long IdDocumento { get; set; }
+
+ public long IdPropostaDigital { get; set; }
+
+ public long IdApoliceDigital { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.BI/Analitico.cs b/Gestor.Model/Gestor.Model.Domain.BI/Analitico.cs
new file mode 100644
index 0000000..c993997
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.BI/Analitico.cs
@@ -0,0 +1,106 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Relatorios.ClientesAtivosInativos;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.BI;
+
+public class Analitico
+{
+ public bool Selecionado { get; set; }
+
+ public Documento Documento { get; set; }
+
+ public Parcela Parcela { get; set; }
+
+ public ClientesAtivosInativos Cliente { get; set; }
+
+ [Description("NOME")]
+ public string Nome { get; set; }
+
+ [Description("TIPO DE PESSOA")]
+ public string TipoPessoa { get; set; }
+
+ [Description("APÓLICE")]
+ public string Apolice { get; set; }
+
+ [Description("ENDOSSO")]
+ public string Endosso { get; set; }
+
+ [Description("STATUS")]
+ public string Status { get; set; }
+
+ [Description("NEGÓCIO CORRETORA")]
+ public string Negocio { get; set; }
+
+ [Tipo("DATA")]
+ [Description("VIGÊNCIA INICIAL")]
+ public DateTime VigenciaInicial { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("VIGÊNCIA FINAL")]
+ public DateTime? VigenciaFinal { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("COMISSÃO")]
+ public decimal Comissao { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO LÍQUIDO")]
+ public decimal PremioLiquido { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO TOTAL")]
+ public decimal PremioTotal { get; set; }
+
+ [Description("SEGURADORA")]
+ public string Seguradora { get; set; }
+
+ [Description("RAMO")]
+ public string Ramo { get; set; }
+
+ [Description("PARCELA")]
+ public int NumeroParcela { get; set; }
+
+ [Tipo("DATA")]
+ [Description("VENCIMENTO")]
+ public DateTime Vencimento { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR")]
+ public decimal Valor { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("RECEBIMENTO")]
+ public DateTime? Recebimento { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR COMISSÃO")]
+ public decimal ValorComissao { get; set; }
+
+ [Description("DOCUMENTO")]
+ public string DocumentoCliente { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("NASCIMENTO")]
+ public DateTime? Nascimento { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("VENCIMENTO CNH")]
+ public DateTime? VencimentoHabilitacao { get; set; }
+
+ public string DiaMes { get; set; }
+
+ public string Cidade { get; set; }
+
+ public string Uf { get; set; }
+
+ public string Cep { get; set; }
+
+ public string Telefone { get; set; }
+
+ public string Email { get; set; }
+
+ public string Profissao { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.BI/AtalhosApolice.cs b/Gestor.Model/Gestor.Model.Domain.BI/AtalhosApolice.cs
new file mode 100644
index 0000000..8f37044
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.BI/AtalhosApolice.cs
@@ -0,0 +1,54 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.BI;
+
+public class AtalhosApolice
+{
+ public long Id { get; set; }
+
+ public string Agrupamento { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("SEGUROS VENCENDO")]
+ public Tuple<decimal, int, List<Documento>> Vencimento { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("SEGUROS VENCIDOS")]
+ public Tuple<decimal, int, List<Documento>> Vencidos { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRODUÇÃO")]
+ public Tuple<decimal, int, List<Documento>> Producao { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("APÓLICES PENDENTES")]
+ public Tuple<decimal, int, List<Documento>> Pendencia { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("NOVOS NEGÓCIOS")]
+ public Tuple<decimal, int, List<Documento>> NovosNegocios { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("RENOVADOS")]
+ public Tuple<decimal, int, List<Documento>> Renovados { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("CANCELADOS")]
+ public Tuple<decimal, int, List<Documento>> Cancelados { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PERDIDOS")]
+ public Tuple<decimal, int, List<Documento>> Perdidos { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO GERADA")]
+ public Tuple<decimal, int, List<Documento>> Gerada { get; set; }
+
+ public DateTime Inicio { get; set; }
+
+ public DateTime Fim { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.BI/AtalhosCalculo.cs b/Gestor.Model/Gestor.Model.Domain.BI/AtalhosCalculo.cs
new file mode 100644
index 0000000..f12f5be
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.BI/AtalhosCalculo.cs
@@ -0,0 +1,13 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.BI;
+
+public class AtalhosCalculo
+{
+ public string Agrupamento { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("COTAÇÕES")]
+ public int Cotacoes { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.BI/AtalhosCliente.cs b/Gestor.Model/Gestor.Model.Domain.BI/AtalhosCliente.cs
new file mode 100644
index 0000000..67c3fdb
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.BI/AtalhosCliente.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.BI;
+
+public class AtalhosCliente
+{
+ public List<Cliente> Clientes { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("ANIVERSARIANTES")]
+ public int Aniversariantes { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("VENCIMENTO CNH")]
+ public int VencimentoCnh { get; set; }
+
+ public DateTime Inicio { get; set; }
+
+ public DateTime Fim { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.BI/AtalhosComissao.cs b/Gestor.Model/Gestor.Model.Domain.BI/AtalhosComissao.cs
new file mode 100644
index 0000000..24ac385
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.BI/AtalhosComissao.cs
@@ -0,0 +1,17 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.BI;
+
+public class AtalhosComissao
+{
+ public string Agrupamento { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO RECEBIDA")]
+ public decimal Recebida { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("AUDITORIA DE COMISSÃO")]
+ public decimal Auditoria { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.BI/AtalhosParcela.cs b/Gestor.Model/Gestor.Model.Domain.BI/AtalhosParcela.cs
new file mode 100644
index 0000000..cfba872
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.BI/AtalhosParcela.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.BI;
+
+public class AtalhosParcela
+{
+ public long Id { get; set; }
+
+ public string Agrupamento { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("PARCELAS PENDENTES")]
+ public Tuple<decimal, int, List<Parcela>> Pendente { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("PARCELAS À VENCER")]
+ public Tuple<decimal, int, List<Parcela>> Vencimento { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("PARCELAS PAGAS")]
+ public Tuple<decimal, int, List<Parcela>> Pagas { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO RECEBIDA")]
+ public Tuple<decimal, int, List<Parcela>> Recebida { get; set; }
+
+ public DateTime Inicio { get; set; }
+
+ public DateTime Fim { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.BI/AtalhosSinistro.cs b/Gestor.Model/Gestor.Model.Domain.BI/AtalhosSinistro.cs
new file mode 100644
index 0000000..a40856c
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.BI/AtalhosSinistro.cs
@@ -0,0 +1,13 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.BI;
+
+public class AtalhosSinistro
+{
+ public string Agrupamento { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("SINISTROS")]
+ public int Sinistros { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Card/Assistance.cs b/Gestor.Model/Gestor.Model.Domain.Card/Assistance.cs
new file mode 100644
index 0000000..539612a
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Card/Assistance.cs
@@ -0,0 +1,62 @@
+using System;
+
+namespace Gestor.Model.Domain.Card;
+
+public class Assistance
+{
+ public string CustomId { get; set; }
+
+ public string Nome { get; set; }
+
+ public string Apolice { get; set; }
+
+ public DateTime VigenciaInicial { get; set; }
+
+ public DateTime VigenciaFinal { get; set; }
+
+ public string Item { get; set; }
+
+ public decimal Premio { get; set; }
+
+ public long IdSeguradora { get; set; }
+
+ public long IdRamo { get; set; }
+
+ public string Seguradora { get; set; }
+
+ public int Assistencia1Tipo { get; set; }
+
+ public string Assistencia1 { get; set; }
+
+ public string Assistencia1Obs { get; set; }
+
+ public int Assistencia2Tipo { get; set; }
+
+ public string Assistencia2 { get; set; }
+
+ public string Assistencia2Obs { get; set; }
+
+ public int Assistencia3Tipo { get; set; }
+
+ public string Assistencia3 { get; set; }
+
+ public string Assistencia3Obs { get; set; }
+
+ public int Assistencia4Tipo { get; set; }
+
+ public string Assistencia4 { get; set; }
+
+ public string Assistencia4Obs { get; set; }
+
+ public string Corretora { get; set; }
+
+ public string WhatsappSinistro { get; set; }
+
+ public byte[] Logo { get; set; }
+
+ public string LinkAppAndroid { get; set; }
+
+ public string LinkAppIos { get; set; }
+
+ public string Obs { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Card/AssistenciaCia.cs b/Gestor.Model/Gestor.Model.Domain.Card/AssistenciaCia.cs
new file mode 100644
index 0000000..fa6a61b
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Card/AssistenciaCia.cs
@@ -0,0 +1,38 @@
+namespace Gestor.Model.Domain.Card;
+
+public class AssistenciaCia
+{
+ public string CustomId { get; set; }
+
+ public long IdSeguradora { get; set; }
+
+ public string Seguradora { get; set; }
+
+ public int Assistencia1Tipo { get; set; }
+
+ public string Assistencia1 { get; set; }
+
+ public string Assistencia1Obs { get; set; }
+
+ public int Assistencia2Tipo { get; set; }
+
+ public string Assistencia2 { get; set; }
+
+ public string Assistencia2Obs { get; set; }
+
+ public int Assistencia3Tipo { get; set; }
+
+ public string Assistencia3 { get; set; }
+
+ public string Assistencia3Obs { get; set; }
+
+ public int Assistencia4Tipo { get; set; }
+
+ public string Assistencia4 { get; set; }
+
+ public string Assistencia4Obs { get; set; }
+
+ public string LinkAppAndroid { get; set; }
+
+ public string LinkAppIos { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Card/Card.cs b/Gestor.Model/Gestor.Model.Domain.Card/Card.cs
new file mode 100644
index 0000000..4be1338
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Card/Card.cs
@@ -0,0 +1,40 @@
+namespace Gestor.Model.Domain.Card;
+
+public class Card
+{
+ public string Corretora { get; set; }
+
+ public string Nome { get; set; }
+
+ public string Cargo { get; set; }
+
+ public string Endereco { get; set; }
+
+ public string Localizacao { get; set; }
+
+ public string Telefone1 { get; set; }
+
+ public string Telefone2 { get; set; }
+
+ public string Email { get; set; }
+
+ public string LinkAggilizador { get; set; }
+
+ public string Obs { get; set; }
+
+ public string Facebook { get; set; }
+
+ public string Instagram { get; set; }
+
+ public string Linkdin { get; set; }
+
+ public string Site { get; set; }
+
+ public string Whatsapp { get; set; }
+
+ public string Twitter { get; set; }
+
+ public byte[] Logo { get; set; }
+
+ public string CustomId { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Card/Logo.cs b/Gestor.Model/Gestor.Model.Domain.Card/Logo.cs
new file mode 100644
index 0000000..cb231e8
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Card/Logo.cs
@@ -0,0 +1,14 @@
+namespace Gestor.Model.Domain.Card;
+
+public class Logo
+{
+ public string CustomId { get; set; }
+
+ public byte[] Data { get; set; }
+
+ public string Corretora { get; set; }
+
+ public string Whatsapp { get; set; }
+
+ public string WhatsappSinistro { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Common/ArquivoDigital.cs b/Gestor.Model/Gestor.Model.Domain.Common/ArquivoDigital.cs
new file mode 100644
index 0000000..e6f71ed
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Common/ArquivoDigital.cs
@@ -0,0 +1,89 @@
+using System;
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Domain.Common;
+
+public class ArquivoDigital : DomainBase
+{
+ private string _descricao;
+
+ private string _extensao;
+
+ public string Descricao
+ {
+ get
+ {
+ return _descricao?.ToUpper();
+ }
+ set
+ {
+ _descricao = value;
+ }
+ }
+
+ public string Extensao
+ {
+ get
+ {
+ return _extensao?.ToUpper().Trim();
+ }
+ set
+ {
+ _extensao = value;
+ }
+ }
+
+ public byte[] Arquivo { get; set; }
+
+ public long IdCliente { get; set; }
+
+ public long IdDocumento { get; set; }
+
+ public long IdItem { get; set; }
+
+ public long IdParcela { get; set; }
+
+ public long IdSinistro { get; set; }
+
+ public long IdSeguradora { get; set; }
+
+ public long IdVendedor { get; set; }
+
+ public long IdUsuario { get; set; }
+
+ public long IdExtrato { get; set; }
+
+ public long IdEmpresa { get; set; }
+
+ public long IdLancamento { get; set; }
+
+ public long IdFornecedor { get; set; }
+
+ public long IdProspeccao { get; set; }
+
+ public long IdSocio { get; set; }
+
+ public long IdTarefa { get; set; }
+
+ public long IdNotaFiscal { get; set; }
+
+ public long IdEstipulante { get; set; }
+
+ public bool Excluido { get; set; }
+
+ public long UsuarioCriacao { get; set; }
+
+ public long UsuarioAtualizacao { get; set; }
+
+ public DateTime? DataCriacao { get; set; }
+
+ public DateTime? DataAtualizacao { get; set; }
+
+ public DateTime? UltimoAcesso { get; set; }
+
+ public int QuantidadeAcesso { get; set; }
+
+ public Guid? AzureGuid { get; set; }
+
+ public string AzureStorage { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Common/Atividade.cs b/Gestor.Model/Gestor.Model.Domain.Common/Atividade.cs
new file mode 100644
index 0000000..464a0b4
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Common/Atividade.cs
@@ -0,0 +1,34 @@
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Domain.Common;
+
+public class Atividade : DomainBase
+{
+ private string _cnac;
+
+ private string _nome;
+
+ public string Cnac
+ {
+ get
+ {
+ return _cnac?.ToUpper().Trim();
+ }
+ set
+ {
+ _cnac = value;
+ }
+ }
+
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Common/Banco.cs b/Gestor.Model/Gestor.Model.Domain.Common/Banco.cs
new file mode 100644
index 0000000..b5cf70c
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Common/Banco.cs
@@ -0,0 +1,56 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Common;
+
+public class Banco : IDomain
+{
+ private string _nome;
+
+ private string _site;
+
+ public int Id { get; set; }
+
+ [Log(true)]
+ public int Codigo { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("BANCO")]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ [Log(true)]
+ public string Site
+ {
+ get
+ {
+ return _site?.ToUpper().Trim();
+ }
+ set
+ {
+ _site = value;
+ }
+ }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ return new List<KeyValuePair<string, string>>();
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Common/Contato.cs b/Gestor.Model/Gestor.Model.Domain.Common/Contato.cs
new file mode 100644
index 0000000..7c32d53
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Common/Contato.cs
@@ -0,0 +1,12 @@
+using Gestor.Model.Common;
+
+namespace Gestor.Model.Domain.Common;
+
+public class Contato
+{
+ public TipoContato Tipo { get; set; }
+
+ public TipoTelefone? TipoTelefone { get; set; }
+
+ public string Numero { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Common/ControleArquivoDigital.cs b/Gestor.Model/Gestor.Model.Domain.Common/ControleArquivoDigital.cs
new file mode 100644
index 0000000..831f1d1
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Common/ControleArquivoDigital.cs
@@ -0,0 +1,10 @@
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Domain.Common;
+
+public class ControleArquivoDigital : DomainBase
+{
+ public string Catalogo { get; set; }
+
+ public string Tabela { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Common/Empresa.cs b/Gestor.Model/Gestor.Model.Domain.Common/Empresa.cs
new file mode 100644
index 0000000..2f228e1
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Common/Empresa.cs
@@ -0,0 +1,413 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Common;
+
+public class Empresa : EnderecoBase, IDomain
+{
+ private string _nome;
+
+ private string _documento;
+
+ private string _serial;
+
+ private string _site;
+
+ private string _email;
+
+ private string _primeiroPrefixo;
+
+ private string _primeiroTelefone;
+
+ private string _segundoPrefixo;
+
+ private string _segundoTelefone;
+
+ private string _quantidadeFiliais;
+
+ private string _responsavel;
+
+ private string _emailResponsavel;
+
+ private TipoTelefone? _tipo1;
+
+ private TipoTelefone? _tipo2;
+
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ public string NomeSocial { get; set; }
+
+ public string Documento
+ {
+ get
+ {
+ return _documento?.ToUpper().Trim();
+ }
+ set
+ {
+ _documento = value;
+ }
+ }
+
+ public string Serial
+ {
+ get
+ {
+ return _serial?.ToUpper().Trim();
+ }
+ set
+ {
+ _serial = value;
+ }
+ }
+
+ public TipoTelefone TipoTelefone1
+ {
+ get
+ {
+ if (!_tipo1.HasValue || _tipo1 == (TipoTelefone)0)
+ {
+ return TipoTelefone.Comercial;
+ }
+ return _tipo1.Value;
+ }
+ set
+ {
+ _tipo1 = value;
+ }
+ }
+
+ public TipoTelefone TipoTelefone2
+ {
+ get
+ {
+ if (!_tipo2.HasValue || _tipo2 == (TipoTelefone)0)
+ {
+ return TipoTelefone.Comercial;
+ }
+ return _tipo2.Value;
+ }
+ set
+ {
+ _tipo2 = value;
+ }
+ }
+
+ public string Site
+ {
+ get
+ {
+ return _site?.Trim();
+ }
+ set
+ {
+ _site = value;
+ }
+ }
+
+ public string Email
+ {
+ get
+ {
+ return _email?.ToLower().Trim();
+ }
+ set
+ {
+ _email = value;
+ }
+ }
+
+ public string PrimeiroPrefixo
+ {
+ get
+ {
+ return _primeiroPrefixo?.ToUpper().Trim();
+ }
+ set
+ {
+ _primeiroPrefixo = value;
+ }
+ }
+
+ public string PrimeiroTelefone
+ {
+ get
+ {
+ return _primeiroTelefone?.ToUpper().Trim();
+ }
+ set
+ {
+ _primeiroTelefone = value;
+ }
+ }
+
+ public string SegundoPrefixo
+ {
+ get
+ {
+ return _segundoPrefixo?.ToUpper().Trim();
+ }
+ set
+ {
+ _segundoPrefixo = value;
+ }
+ }
+
+ public string SegundoTelefone
+ {
+ get
+ {
+ return _segundoTelefone?.ToUpper().Trim();
+ }
+ set
+ {
+ _segundoTelefone = value;
+ }
+ }
+
+ public long QuantidadeFuncionarios { get; set; }
+
+ public string QuantidadeFiliais
+ {
+ get
+ {
+ return _quantidadeFiliais?.ToUpper().Trim();
+ }
+ set
+ {
+ _quantidadeFiliais = value;
+ }
+ }
+
+ public string Responsavel
+ {
+ get
+ {
+ return _responsavel?.ToUpper();
+ }
+ set
+ {
+ _responsavel = value;
+ }
+ }
+
+ public string EmailResponsavel
+ {
+ get
+ {
+ return _emailResponsavel?.ToLower().Trim();
+ }
+ set
+ {
+ _emailResponsavel = value;
+ }
+ }
+
+ public string SenhaAdmin { get; set; }
+
+ public string Facebook { get; set; }
+
+ public string Instagram { get; set; }
+
+ public string Linkdin { get; set; }
+
+ public string Whatsapp { get; set; }
+
+ public string WhatsappSinistro { get; set; }
+
+ public string Twitter { get; set; }
+
+ public string Localizacao { get; set; }
+
+ public byte[] Logo { get; set; }
+
+ public string LogoId { get; set; }
+
+ public int MaxFileSize { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Documento))
+ {
+ list.AddValue("Documento", Messages.Obrigatorio);
+ }
+ else if (!Documento.ValidacaoDocumento())
+ {
+ list.AddValue("Documento", Messages.Invalido);
+ }
+ if (string.IsNullOrWhiteSpace(Serial))
+ {
+ list.AddValue("Serial", Messages.Obrigatorio);
+ }
+ else if (Serial.Length > 18)
+ {
+ list.AddValue("Serial", string.Format(Messages.MaiorQueLimite, 18));
+ }
+ if (!string.IsNullOrWhiteSpace(Site) && Site.Length > 80)
+ {
+ list.AddValue("Site", string.Format(Messages.MaiorQueLimite, 80));
+ }
+ if (!string.IsNullOrWhiteSpace(SenhaAdmin) && SenhaAdmin.Length > 90)
+ {
+ list.AddValue("SenhaAdmin", string.Format(Messages.MaiorQueLimite, 90));
+ }
+ if (string.IsNullOrWhiteSpace(Nome))
+ {
+ list.AddValue("Nome", Messages.Obrigatorio);
+ }
+ else if (Nome.Length > 60)
+ {
+ list.AddValue("Nome", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (string.IsNullOrWhiteSpace(base.Cep))
+ {
+ list.AddValue("Cep", Messages.Obrigatorio);
+ }
+ else if (!base.Cep.ValidacaoCep())
+ {
+ list.AddValue("Cep", Messages.Invalido);
+ }
+ if (string.IsNullOrWhiteSpace(base.Endereco))
+ {
+ list.AddValue("Endereco", Messages.Obrigatorio);
+ }
+ else if (base.Endereco.Length > 60)
+ {
+ list.AddValue("Endereco", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (string.IsNullOrWhiteSpace(base.Numero))
+ {
+ list.AddValue("Numero", Messages.Obrigatorio);
+ }
+ else if (base.Numero.Length > 10)
+ {
+ list.AddValue("Numero", string.Format(Messages.MaiorQueLimite, 10));
+ }
+ if (!string.IsNullOrWhiteSpace(base.Complemento) && base.Complemento.Length > 100)
+ {
+ list.AddValue("Complemento", string.Format(Messages.MaiorQueLimite, 100));
+ }
+ if (string.IsNullOrWhiteSpace(base.Bairro))
+ {
+ list.AddValue("Bairro", Messages.Obrigatorio);
+ }
+ else if (base.Bairro.Length > 150)
+ {
+ list.AddValue("Bairro", string.Format(Messages.MaiorQueLimite, 150));
+ }
+ if (string.IsNullOrWhiteSpace(base.Cidade))
+ {
+ list.AddValue("Cidade", Messages.Obrigatorio);
+ }
+ else if (base.Cidade.Length > 30)
+ {
+ list.AddValue("Cidade", string.Format(Messages.MaiorQueLimite, 30));
+ }
+ if (string.IsNullOrWhiteSpace(base.Estado))
+ {
+ list.AddValue("Estado", Messages.Obrigatorio);
+ }
+ else if (!base.Estado.ValidacaoEstado())
+ {
+ list.AddValue("Estado", Messages.Invalido);
+ }
+ if (string.IsNullOrWhiteSpace(Email))
+ {
+ list.AddValue("Email", Messages.Obrigatorio);
+ }
+ else if (!Email.ValidacaoEmail())
+ {
+ list.AddValue("Email", Messages.Invalido);
+ }
+ else if (Email.Length > 50)
+ {
+ list.AddValue("Email", string.Format(Messages.MaiorQueLimite, 50));
+ }
+ if (string.IsNullOrWhiteSpace(EmailResponsavel))
+ {
+ list.AddValue("EmailResponsavel", Messages.Obrigatorio);
+ }
+ else if (!EmailResponsavel.ValidacaoEmail())
+ {
+ list.AddValue("EmailResponsavel", Messages.Invalido);
+ }
+ else if (EmailResponsavel.Length > 50)
+ {
+ list.AddValue("EmailResponsavel", string.Format(Messages.MaiorQueLimite, 50));
+ }
+ if (!string.IsNullOrEmpty(Facebook) && !Facebook.Contains("http"))
+ {
+ Facebook = "https://" + Facebook.Trim();
+ }
+ if (!string.IsNullOrEmpty(Instagram) && !Instagram.Contains("http"))
+ {
+ Instagram = "https://" + Instagram.Trim();
+ }
+ if (!string.IsNullOrEmpty(Linkdin) && !Linkdin.Contains("http"))
+ {
+ Linkdin = "https://" + Linkdin.Trim();
+ }
+ if (!string.IsNullOrEmpty(Twitter) && !Twitter.Contains("http"))
+ {
+ Twitter = "https://" + Twitter.Trim();
+ }
+ if (!string.IsNullOrEmpty(Site) && !Site.Contains("http"))
+ {
+ Site = "http://" + Site.Trim();
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("DOCUMENTO (CPF/CNPJ)", string.IsNullOrWhiteSpace(Documento) ? "" : Documento, ""),
+ new Tuple<string, string, string>("NÚMERO DE SÉRIE", string.IsNullOrWhiteSpace(Serial) ? "" : Serial, ""),
+ new Tuple<string, string, string>("NOME", string.IsNullOrWhiteSpace(Nome) ? "" : Nome, ""),
+ new Tuple<string, string, string>("CEP", string.IsNullOrWhiteSpace(base.Cep) ? "" : base.Cep, ""),
+ new Tuple<string, string, string>("ENDEREÇO", string.IsNullOrWhiteSpace(base.Endereco) ? "" : base.Endereco, ""),
+ new Tuple<string, string, string>("NÚMERO", string.IsNullOrWhiteSpace(base.Numero) ? "" : base.Numero, ""),
+ new Tuple<string, string, string>("BAIRRO", string.IsNullOrWhiteSpace(base.Bairro) ? "" : base.Bairro, ""),
+ new Tuple<string, string, string>("CIDADE", string.IsNullOrWhiteSpace(base.Cidade) ? "" : base.Cidade, ""),
+ new Tuple<string, string, string>("ESTADO", string.IsNullOrWhiteSpace(base.Estado) ? "" : base.Estado, ""),
+ new Tuple<string, string, string>("SITE", string.IsNullOrWhiteSpace(Site) ? "" : Site, ""),
+ new Tuple<string, string, string>("E-MAIL", string.IsNullOrWhiteSpace(Email) ? "" : Email, ""),
+ new Tuple<string, string, string>("PRIMEIRO PREFIXO", string.IsNullOrWhiteSpace(PrimeiroPrefixo) ? "" : PrimeiroPrefixo, ""),
+ new Tuple<string, string, string>("PRIMEIRO TELEFONE", string.IsNullOrWhiteSpace(PrimeiroTelefone) ? "" : PrimeiroTelefone, ""),
+ new Tuple<string, string, string>("SEGUNDO PREFIXO", string.IsNullOrWhiteSpace(SegundoPrefixo) ? "" : SegundoPrefixo, ""),
+ new Tuple<string, string, string>("SEGUNDO TELEFONE", string.IsNullOrWhiteSpace(SegundoTelefone) ? "" : SegundoTelefone, ""),
+ new Tuple<string, string, string>("E-MAIL", string.IsNullOrWhiteSpace(Email) ? "" : Email, ""),
+ new Tuple<string, string, string>("NÚMERO DE FUNCIONÁRIOS", QuantidadeFuncionarios.ToString(), ""),
+ new Tuple<string, string, string>("RESPONSÁVEL FINANCEIRO", string.IsNullOrWhiteSpace(Responsavel) ? "" : Responsavel, ""),
+ new Tuple<string, string, string>("E-MAIL DO RESPONSÁVEL", string.IsNullOrWhiteSpace(EmailResponsavel) ? "" : EmailResponsavel, "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Common/Fipe.cs b/Gestor.Model/Gestor.Model.Domain.Common/Fipe.cs
new file mode 100644
index 0000000..6246258
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Common/Fipe.cs
@@ -0,0 +1,98 @@
+using System.Collections.Generic;
+using System.Linq;
+using Gestor.Model.Helper;
+
+namespace Gestor.Model.Domain.Common;
+
+public class Fipe
+{
+ private string _codigo;
+
+ private string _marca;
+
+ private string _modelo;
+
+ private int _anoMaximo;
+
+ private int _anoMinimo;
+
+ public int AnoMaximo
+ {
+ get
+ {
+ if (Detalhes == null || Detalhes.Count == 0)
+ {
+ return _anoMaximo;
+ }
+ return Detalhes.OrderByDescending((FipeDetalhe d) => d.AnoModelo).First().AnoModelo.ToInt();
+ }
+ set
+ {
+ if (Detalhes == null || Detalhes.Count == 0)
+ {
+ _anoMaximo = value;
+ }
+ }
+ }
+
+ public int AnoMinimo
+ {
+ get
+ {
+ if (Detalhes == null || Detalhes.Count == 0)
+ {
+ return _anoMinimo;
+ }
+ return Detalhes.OrderBy((FipeDetalhe d) => d.AnoModelo).First().AnoModelo.ToInt();
+ }
+ set
+ {
+ if (Detalhes == null || Detalhes.Count == 0)
+ {
+ _anoMinimo = value;
+ }
+ }
+ }
+
+ public string Codigo
+ {
+ get
+ {
+ return _codigo?.ToUpper().Trim();
+ }
+ set
+ {
+ _codigo = value;
+ }
+ }
+
+ public string Marca
+ {
+ get
+ {
+ return _marca?.ToUpper();
+ }
+ set
+ {
+ _marca = value;
+ }
+ }
+
+ public int? IdFabricante { get; set; }
+
+ public string Modelo
+ {
+ get
+ {
+ return _modelo?.ToUpper();
+ }
+ set
+ {
+ _modelo = value;
+ }
+ }
+
+ public int TipoVeiculo { get; set; }
+
+ public List<FipeDetalhe> Detalhes { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Common/FipeDetalhe.cs b/Gestor.Model/Gestor.Model.Domain.Common/FipeDetalhe.cs
new file mode 100644
index 0000000..1dfd1a8
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Common/FipeDetalhe.cs
@@ -0,0 +1,8 @@
+namespace Gestor.Model.Domain.Common;
+
+public class FipeDetalhe
+{
+ public string AnoModelo { get; set; }
+
+ public decimal Valor { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Common/IndiceArquivoDigital.cs b/Gestor.Model/Gestor.Model.Domain.Common/IndiceArquivoDigital.cs
new file mode 100644
index 0000000..a34d759
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Common/IndiceArquivoDigital.cs
@@ -0,0 +1,102 @@
+using System;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Domain.Common;
+
+public class IndiceArquivoDigital : DomainBase
+{
+ private string _descricao;
+
+ private string _extensao;
+
+ public bool Assinar { get; set; }
+
+ public bool Selecionado { get; set; }
+
+ public long IdArquivoDigital { get; set; }
+
+ public string Bd { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ public string Descricao
+ {
+ get
+ {
+ return _descricao?.ToUpper();
+ }
+ set
+ {
+ _descricao = value;
+ }
+ }
+
+ public string Extensao
+ {
+ get
+ {
+ return _extensao?.ToUpper().Trim();
+ }
+ set
+ {
+ _extensao = value;
+ }
+ }
+
+ public long IdCliente { get; set; }
+
+ public long IdDocumento { get; set; }
+
+ public long IdItem { get; set; }
+
+ public long IdParcela { get; set; }
+
+ public long IdSinistro { get; set; }
+
+ public long IdSeguradora { get; set; }
+
+ public long IdVendedor { get; set; }
+
+ public long IdUsuario { get; set; }
+
+ public long IdExtrato { get; set; }
+
+ public long IdEmpresa { get; set; }
+
+ public long IdLancamento { get; set; }
+
+ public long IdFornecedor { get; set; }
+
+ public long IdProspeccao { get; set; }
+
+ public long IdSocio { get; set; }
+
+ public long IdTarefa { get; set; }
+
+ public long IdNotaFiscal { get; set; }
+
+ public long IdEstipulante { get; set; }
+
+ public bool Excluido { get; set; }
+
+ public long UsuarioCriacao { get; set; }
+
+ public long UsuarioAtualizacao { get; set; }
+
+ public DateTime? DataCriacao { get; set; }
+
+ public DateTime? DataAtualizacao { get; set; }
+
+ public bool Assinado { get; set; }
+
+ public bool EnviadoAssinatura { get; set; }
+
+ public string UrlAssinatura { get; set; }
+
+ public Guid? AzureGuid { get; set; }
+
+ public string AzureStorage { get; set; }
+
+ public bool NaoExcluir { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Common/PesquisaAvancada.cs b/Gestor.Model/Gestor.Model.Domain.Common/PesquisaAvancada.cs
new file mode 100644
index 0000000..026b8c7
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Common/PesquisaAvancada.cs
@@ -0,0 +1,20 @@
+using Gestor.Model.Common;
+
+namespace Gestor.Model.Domain.Common;
+
+public class PesquisaAvancada
+{
+ public FiltroStatusDocumento Status { get; set; }
+
+ public long IdCliente { get; set; }
+
+ public long IdDocumento { get; set; }
+
+ public long IdItem { get; set; }
+
+ public long IdSinistro { get; set; }
+
+ public string Nome { get; set; }
+
+ public string Pesquisa { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Common/Profissao.cs b/Gestor.Model/Gestor.Model.Domain.Common/Profissao.cs
new file mode 100644
index 0000000..72abec0
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Common/Profissao.cs
@@ -0,0 +1,48 @@
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Domain.Common;
+
+public class Profissao : DomainBase
+{
+ private string _codigo;
+
+ private string _nome;
+
+ private string _aniversario;
+
+ public string Codigo
+ {
+ get
+ {
+ return _codigo?.ToUpper().Trim();
+ }
+ set
+ {
+ _codigo = value;
+ }
+ }
+
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ public string Aniversario
+ {
+ get
+ {
+ return _aniversario?.ToUpper().Trim();
+ }
+ set
+ {
+ _aniversario = value;
+ }
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Common/RegistroAcao.cs b/Gestor.Model/Gestor.Model.Domain.Common/RegistroAcao.cs
new file mode 100644
index 0000000..4734c6c
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Common/RegistroAcao.cs
@@ -0,0 +1,31 @@
+using System;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Common;
+
+public class RegistroAcao : DomainBase
+{
+ public long EntidadeId { get; set; }
+
+ public TipoTela? Tela { get; set; }
+
+ public Relatorio? Relatorio { get; set; }
+
+ public Usuario Usuario { get; set; }
+
+ public DateTime DataHora { get; set; }
+
+ public string Descricao { get; set; }
+
+ public string Observacao { get; set; }
+
+ public string NomeMaquina { get; set; }
+
+ public string UsuarioMaquina { get; set; }
+
+ public string Ip { get; set; }
+
+ public string Versao { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Common/RegistroLog.cs b/Gestor.Model/Gestor.Model.Domain.Common/RegistroLog.cs
new file mode 100644
index 0000000..69dfef4
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Common/RegistroLog.cs
@@ -0,0 +1,31 @@
+using System;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Common;
+
+public class RegistroLog : DomainBase
+{
+ public long EntidadeId { get; set; }
+
+ public TipoAcao Acao { get; set; }
+
+ public TipoTela Tela { get; set; }
+
+ public DateTime DataHora { get; set; }
+
+ public string Descricao { get; set; }
+
+ public string Versao { get; set; }
+
+ public Usuario Usuario { get; set; }
+
+ public string NomeMaquina { get; set; }
+
+ public string UsuarioMaquina { get; set; }
+
+ public string Ip { get; set; }
+
+ public bool ModeloNovo { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Common/Socio.cs b/Gestor.Model/Gestor.Model.Domain.Common/Socio.cs
new file mode 100644
index 0000000..4711695
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Common/Socio.cs
@@ -0,0 +1,118 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Common;
+
+public class Socio : EnderecoBase, IDomain
+{
+ private string _nome;
+
+ private string _email;
+
+ private string _prefixo;
+
+ private string _telefone;
+
+ public long IdEmpresa { get; set; }
+
+ public bool Excluido { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("E-MAIL")]
+ public string Email
+ {
+ get
+ {
+ return _email?.ToLower().Trim();
+ }
+ set
+ {
+ _email = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("PREFIXO")]
+ public string Prefixo
+ {
+ get
+ {
+ return _prefixo?.ToUpper().Trim();
+ }
+ set
+ {
+ _prefixo = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("TELEFONE")]
+ public string Telefone
+ {
+ get
+ {
+ return _telefone?.ToUpper().Trim();
+ }
+ set
+ {
+ _telefone = value;
+ }
+ }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Nome))
+ {
+ list.AddValue("Nome", Messages.Obrigatorio);
+ }
+ else if (Nome.Length > 60)
+ {
+ list.AddValue("Nome", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("NOME", string.IsNullOrWhiteSpace(Nome) ? "" : Nome, ""),
+ new Tuple<string, string, string>("E-MAIL", string.IsNullOrWhiteSpace(Email) ? "" : Email, ""),
+ new Tuple<string, string, string>("PREFIXO", string.IsNullOrWhiteSpace(Prefixo) ? "" : Prefixo, ""),
+ new Tuple<string, string, string>("TELEFONE", string.IsNullOrWhiteSpace(Telefone) ? "" : Telefone, ""),
+ new Tuple<string, string, string>("E-MAIL", string.IsNullOrWhiteSpace(Email) ? "" : Email, "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Common/TrocaCliente.cs b/Gestor.Model/Gestor.Model.Domain.Common/TrocaCliente.cs
new file mode 100644
index 0000000..d97e14b
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Common/TrocaCliente.cs
@@ -0,0 +1,107 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Common;
+
+public class TrocaCliente
+{
+ private string _descricao;
+
+ private long _idClienteTrocado;
+
+ private string _nomeClienteTrocado;
+
+ private long _idclienteNovo;
+
+ private string _nomeClienteNovo;
+
+ private Documento _documento;
+
+ public string Descricao
+ {
+ get
+ {
+ return _descricao?.ToUpper();
+ }
+ set
+ {
+ _descricao = value;
+ }
+ }
+
+ public long IdClienteTrocado
+ {
+ get
+ {
+ return _idClienteTrocado;
+ }
+ set
+ {
+ _idClienteTrocado = value;
+ }
+ }
+
+ public string NomeClienteTrocado
+ {
+ get
+ {
+ return _nomeClienteTrocado;
+ }
+ set
+ {
+ _nomeClienteTrocado = value;
+ }
+ }
+
+ public long IdClienteNovo
+ {
+ get
+ {
+ return _idclienteNovo;
+ }
+ set
+ {
+ _idclienteNovo = value;
+ }
+ }
+
+ public string NomeClienteNovo
+ {
+ get
+ {
+ return _nomeClienteNovo;
+ }
+ set
+ {
+ _nomeClienteNovo = value;
+ }
+ }
+
+ public Documento Documento
+ {
+ get
+ {
+ return _documento;
+ }
+ set
+ {
+ _documento = value;
+ }
+ }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("DESCRICAO", string.IsNullOrWhiteSpace(Descricao) ? "" : Descricao, "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Configuracoes/ConfiguracaoSistema.cs b/Gestor.Model/Gestor.Model.Domain.Configuracoes/ConfiguracaoSistema.cs
new file mode 100644
index 0000000..6af3cf2
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Configuracoes/ConfiguracaoSistema.cs
@@ -0,0 +1,9 @@
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Domain.Configuracoes;
+
+public class ConfiguracaoSistema : DomainBase
+{
+ public Configuracao Configuracao { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/Agenda.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/Agenda.cs
new file mode 100644
index 0000000..9d71ebe
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/Agenda.cs
@@ -0,0 +1,110 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class Agenda : DomainBase, IDomain
+{
+ public string Nome { get; set; }
+
+ public string Endereco { get; set; }
+
+ public string Cep { get; set; }
+
+ public string Numero { get; set; }
+
+ public string Complemento { get; set; }
+
+ public string Bairro { get; set; }
+
+ public string Cidade { get; set; }
+
+ public string Estado { get; set; }
+
+ public string Observacao { get; set; }
+
+ public ObservableCollection<AgendaTelefone> Telefones { get; set; }
+
+ public ObservableCollection<AgendaEmail> Emails { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Nome))
+ {
+ list.AddValue("Nome", Messages.Obrigatorio);
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ List<TupleList> list = new List<TupleList>();
+ list.Add(new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("NOME", string.IsNullOrWhiteSpace(Nome) ? "" : Nome, ""),
+ new Tuple<string, string, string>("CEP", string.IsNullOrWhiteSpace(Cep) ? "" : Cep, ""),
+ new Tuple<string, string, string>("ENDEREÇO", string.IsNullOrWhiteSpace(Endereco) ? "" : Endereco, ""),
+ new Tuple<string, string, string>("NÚMERO", string.IsNullOrWhiteSpace(Numero) ? "" : Numero, ""),
+ new Tuple<string, string, string>("COMPLEMENTO", string.IsNullOrWhiteSpace(Complemento) ? "" : Complemento, ""),
+ new Tuple<string, string, string>("BAIRRO", string.IsNullOrWhiteSpace(Bairro) ? "" : Bairro, ""),
+ new Tuple<string, string, string>("CIDADE", string.IsNullOrWhiteSpace(Cidade) ? "" : Cidade, ""),
+ new Tuple<string, string, string>("ESTADO", string.IsNullOrWhiteSpace(Estado) ? "" : Estado, ""),
+ new Tuple<string, string, string>("OBSERVAÇÕES", string.IsNullOrWhiteSpace(Observacao) ? "" : Observacao, "")
+ }
+ });
+ ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("TELEFONES$", "", "")
+ };
+ foreach (AgendaTelefone telefone in Telefones)
+ {
+ observableCollection.Add(new Tuple<string, string, string>($" TELEFONE {Telefones.IndexOf(telefone) + 1}$", "", ""));
+ object item;
+ if (telefone.Tipo.HasValue)
+ {
+ TipoTelefone? tipo = telefone.Tipo;
+ item = (tipo.HasValue ? tipo.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item = "";
+ }
+ observableCollection.Add(new Tuple<string, string, string>(" TIPO", (string)item, ""));
+ observableCollection.Add(new Tuple<string, string, string>(" PREFIXO", string.IsNullOrWhiteSpace(telefone.Prefixo) ? "" : telefone.Prefixo.ToUpper(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" NÚMERO", string.IsNullOrWhiteSpace(telefone.Numero) ? "" : telefone.Numero, ""));
+ observableCollection.Add(new Tuple<string, string, string>(" DESCRIÇÃO", string.IsNullOrWhiteSpace(telefone.Observacao) ? "" : telefone.Observacao, ""));
+ }
+ list.Add(new TupleList
+ {
+ Tuples = observableCollection
+ });
+ ObservableCollection<Tuple<string, string, string>> observableCollection2 = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("EMAILS$", "", "")
+ };
+ foreach (AgendaEmail email in Emails)
+ {
+ observableCollection2.Add(new Tuple<string, string, string>($" EMAIL {Emails.IndexOf(email) + 1}$", "", ""));
+ observableCollection2.Add(new Tuple<string, string, string>(" ENDEREÇO DE EMAIL", string.IsNullOrWhiteSpace(email.Email) ? "" : email.Email, ""));
+ }
+ list.Add(new TupleList
+ {
+ Tuples = observableCollection2
+ });
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/AgendaEmail.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/AgendaEmail.cs
new file mode 100644
index 0000000..021bd75
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/AgendaEmail.cs
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class AgendaEmail : EmailBase, IDomain
+{
+ public bool Selecionado { get; set; }
+
+ public Agenda Agenda { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(base.Email))
+ {
+ list.AddValue("Email", Messages.Obrigatorio);
+ }
+ else if (base.Email.Length > 80)
+ {
+ list.AddValue("Email", string.Format(Messages.MaiorQueLimite, 80));
+ }
+ else if (!base.Email.ValidacaoEmail())
+ {
+ list.AddValue("Email", Messages.Invalido);
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/AgendaTelefone.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/AgendaTelefone.cs
new file mode 100644
index 0000000..59eb595
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/AgendaTelefone.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Domain.Generic;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class AgendaTelefone : TelefoneBase, IDomain
+{
+ public Agenda Agenda { get; set; }
+
+ public string Observacao { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ return ValidateBase();
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/CategoriaTarefa.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/CategoriaTarefa.cs
new file mode 100644
index 0000000..8200627
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/CategoriaTarefa.cs
@@ -0,0 +1,8 @@
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class CategoriaTarefa : DomainBase
+{
+ public string Descricao { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/Credencial.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/Credencial.cs
new file mode 100644
index 0000000..b6ef66d
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/Credencial.cs
@@ -0,0 +1,198 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Text.RegularExpressions;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class Credencial : DomainBase, IDomain
+{
+ private string _descricao;
+
+ private string _assinatura;
+
+ private string _header;
+
+ private string _cabecalho;
+
+ public long IdEmpresa { get; set; }
+
+ public long IdUsuario { get; set; }
+
+ [Log(true)]
+ public string Header
+ {
+ get
+ {
+ return _header;
+ }
+ set
+ {
+ _header = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("DESCRIÇÃO")]
+ public string Descricao
+ {
+ get
+ {
+ return _descricao?.ToUpper();
+ }
+ set
+ {
+ _descricao = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("PORTA")]
+ public int? Porta { get; set; }
+
+ [Log(true)]
+ [Description("E-MAIL")]
+ public string Email { get; set; }
+
+ [Log(true)]
+ [Description("DOMÍNIO")]
+ public string Dominio { get; set; }
+
+ [Log(true)]
+ [Description("SEGURO")]
+ public bool Seguro { get; set; }
+
+ [Log(true)]
+ [Description("USUÁRIO")]
+ public string Usuario { get; set; }
+
+ [Log(true)]
+ [Description("SENHA")]
+ public string Senha { get; set; }
+
+ [Log(true)]
+ public TipoEmail Tipo { get; set; }
+
+ public string Cabecalho
+ {
+ get
+ {
+ return _cabecalho;
+ }
+ set
+ {
+ _cabecalho = value ?? "";
+ }
+ }
+
+ [Log(true)]
+ [Description("ASSINATURA")]
+ public string Assinatura
+ {
+ get
+ {
+ return _assinatura;
+ }
+ set
+ {
+ _assinatura = value ?? "";
+ }
+ }
+
+ public string Replyto { get; set; }
+
+ public bool Excluido { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrEmpty(Descricao))
+ {
+ list.AddValue("Descricao|DESCRIÇÃO", Messages.Obrigatorio);
+ }
+ else if (Descricao.Length > 50)
+ {
+ list.AddValue("Descricao|DESCRIÇÃO", string.Format(Messages.MaiorQueLimite, 50));
+ }
+ if (Tipo == TipoEmail.Outros)
+ {
+ if (!Porta.HasValue)
+ {
+ list.AddValue("Porta", Messages.Invalido);
+ }
+ if (string.IsNullOrWhiteSpace(Dominio))
+ {
+ list.AddValue("Dominio|DOMÍNIO", Messages.Obrigatorio);
+ }
+ else if (Dominio.Length > 80)
+ {
+ list.AddValue("Dominio|DOMÍNIO", string.Format(Messages.MaiorQueLimite, 80));
+ }
+ if (string.IsNullOrEmpty(Usuario))
+ {
+ list.AddValue("Usuario|USUÁRIO", Messages.Obrigatorio);
+ }
+ else if (Usuario.Length > 50)
+ {
+ list.AddValue("Usuario|USUÁRIO", string.Format(Messages.MaiorQueLimite, 50));
+ }
+ if (string.IsNullOrEmpty(Senha))
+ {
+ list.AddValue("Senha", Messages.Obrigatorio);
+ }
+ else if (Senha.Length > 50)
+ {
+ list.AddValue("Senha", string.Format(Messages.MaiorQueLimite, 50));
+ }
+ }
+ if (string.IsNullOrWhiteSpace(Email))
+ {
+ list.AddValue("Email|E-MAIL", Messages.Obrigatorio);
+ }
+ else if (Email.Length > 80)
+ {
+ list.AddValue("Email|E-MAIL", string.Format(Messages.MaiorQueLimite, 80));
+ }
+ else if (!Email.ValidacaoEmail())
+ {
+ list.AddValue("Email|E-MAIL", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(Replyto) && !Replyto.ValidacaoEmail())
+ {
+ list.AddValue("Replyto|RESPONDER PARA", Messages.Obrigatorio);
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ List<TupleList> list = new List<TupleList>();
+ Assinatura = new Regex("<title>.*<\\/title>").Replace(Assinatura, "").Trim();
+ Assinatura = new Regex("(<[^>]*>)|(p\\s?{[^}]*})|(\\r)|(\\n)").Replace(Assinatura, "").Trim();
+ list.Add(new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("DESCRIÇÃO", string.IsNullOrWhiteSpace(Descricao) ? "" : Descricao, ""),
+ new Tuple<string, string, string>("PORTA", (!Porta.HasValue) ? "" : Porta?.ToString(), ""),
+ new Tuple<string, string, string>("DOMÍNIO", string.IsNullOrWhiteSpace(Dominio) ? "" : Dominio, ""),
+ new Tuple<string, string, string>("E-MAIL", string.IsNullOrWhiteSpace(Email) ? "" : Email, ""),
+ new Tuple<string, string, string>("LOGIN", string.IsNullOrWhiteSpace(Usuario) ? "" : Usuario, ""),
+ new Tuple<string, string, string>("CERTIFICADO DE SEGURANÇA", Seguro ? "SIM" : "NÃO", ""),
+ new Tuple<string, string, string>("ASSINATURA", string.IsNullOrWhiteSpace(Assinatura) ? "" : Assinatura, "")
+ }
+ });
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/Destinatario.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/Destinatario.cs
new file mode 100644
index 0000000..7e2b60a
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/Destinatario.cs
@@ -0,0 +1,24 @@
+using System.Collections.Generic;
+using Gestor.Model.Domain.Common;
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class Destinatario : DomainBase
+{
+ public string Nome { get; set; }
+
+ public string Sobrenome { get; set; }
+
+ public string Email { get; set; }
+
+ public List<string> Encaminhar { get; set; }
+
+ public List<string> EncaminharOculto { get; set; }
+
+ public string Assunto { get; set; }
+
+ public string Corpo { get; set; }
+
+ public List<ArquivoDigital> Anexos { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/Fase.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/Fase.cs
new file mode 100644
index 0000000..b42f975
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/Fase.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class Fase : DomainBase
+{
+ public Trilha Trilha { get; set; }
+
+ public string Titulo { get; set; }
+
+ public string Descricao { get; set; }
+
+ public DateTime? Expiracao { get; set; }
+
+ public List<Tarefa> Tarefas { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/Imposto.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/Imposto.cs
new file mode 100644
index 0000000..50b50be
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/Imposto.cs
@@ -0,0 +1,95 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using Gestor.Model.Helper;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class Imposto : DomainBase, IDomain
+{
+ public Seguradora Seguradora { get; set; }
+
+ public Ramo Ramo { get; set; }
+
+ public decimal Ir { get; set; }
+
+ public decimal Iss { get; set; }
+
+ public decimal Outros { get; set; }
+
+ public decimal Desconto { get; set; }
+
+ public bool Ativo { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (Ir > 1m)
+ {
+ list.AddValue("Ir|PORCENTAGEM IR", "O VALOR DE IR NÃO PODE SER MAIOR QUE 100%.");
+ }
+ if (Iss > 1m)
+ {
+ list.AddValue("Iss|PORCENTAGEM ISS", "O VALOR DE ISS NÃO PODE SER MAIOR QUE 100%.");
+ }
+ if (Outros > 1m)
+ {
+ list.AddValue("Outros|PORCENTAGEM OUTROS", "O VALOR DOS OUTROS DESCONTOS NÃO PODE SER MAIOR QUE 100%.");
+ }
+ if (Desconto > 1m)
+ {
+ list.AddValue("Desconto|PORCENTAGEM DESCONTO", "O VALOR DE DESCONTO NÃO PODE SER MAIOR QUE 100%.");
+ }
+ if (Ir < 0m)
+ {
+ list.AddValue("Ir|PORCENTAGEM IR", "O VALOR DE IR NÃO PODE SER MENOR QUE 0%.");
+ }
+ if (Iss < 0m)
+ {
+ list.AddValue("Iss|PORCENTAGEM ISS", "O VALOR DE ISS NÃO PODE SER MENOR QUE 0%.");
+ }
+ if (Outros < 0m)
+ {
+ list.AddValue("Outros|PORCENTAGEM OUTROS", "O VALOR DOS OUTROS DESCONTOS NÃO PODE SER MENOR QUE 0%.");
+ }
+ if (Desconto < 0m)
+ {
+ list.AddValue("Desconto|PORCENTAGEM DESCONTO", "O VALOR DE DESCONTO NÃO PODE SER MENOR QUE 0%.");
+ }
+ if (Ir + Iss + Outros + Desconto > 1m)
+ {
+ list.AddValue("Ir|PORCENTAGEM TOTAL", "NÃO É POSSÍVEL DEDUZIR MAIS QUE 100% DO TOTAL RECEBIDO.");
+ }
+ if (Ir + Iss + Outros + Desconto == 0m)
+ {
+ list.AddValue("Ir|PORCENTAGEM TOTAL", "A SOMA DOS IMPOSTOS DEVEM SER MAIOR QUE 0 (ZERO).");
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("RAMO", Ramo?.Nome ?? "", ""),
+ new Tuple<string, string, string>("SEGURADORA", Seguradora?.NomeSocial ?? Seguradora?.Nome ?? "", ""),
+ new Tuple<string, string, string>("IR", Ir.ToString("p"), ""),
+ new Tuple<string, string, string>("ISS", Iss.ToString("p"), ""),
+ new Tuple<string, string, string>("OUTROS", Outros.ToString("p"), ""),
+ new Tuple<string, string, string>("DESCONTO", Desconto.ToString("p"), ""),
+ new Tuple<string, string, string>("ATIVO", Ativo ? "SIM" : "NÃO", "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/LogEmail.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/LogEmail.cs
new file mode 100644
index 0000000..b713416
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/LogEmail.cs
@@ -0,0 +1,65 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Text.RegularExpressions;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using Gestor.Model.Validation;
+
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class LogEmail : DomainBase
+{
+ public Credencial Credencial { get; set; }
+
+ public TipoTela Tela { get; set; }
+
+ public Relatorio Relatorio { get; set; }
+
+ public long EntityId { get; set; }
+
+ public string Assunto { get; set; }
+
+ public string Corpo { get; set; }
+
+ public string Destinatarios { get; set; }
+
+ public string Cco { get; set; }
+
+ public string Anexos { get; set; }
+
+ public Usuario Usuario { get; set; }
+
+ public DateTime Data { get; set; }
+
+ public string Versao { get; set; }
+
+ public string NomeMaquina { get; set; }
+
+ public string UsuarioMaquina { get; set; }
+
+ public string Ip { get; set; }
+
+ public List<TupleList> CriarLogEmail()
+ {
+ Corpo = new Regex("<title>.*<\\/title>").Replace(Corpo, "").Trim();
+ Corpo = new Regex("(<[^>]*>)|(p\\s?{[^}]*})|(\\r)|(\\n)").Replace(Corpo, "").Trim();
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("ASSUNTO", string.IsNullOrWhiteSpace(Assunto) ? "" : Assunto, ""),
+ new Tuple<string, string, string>("CORPO", string.IsNullOrWhiteSpace(Corpo) ? "" : Corpo, ""),
+ new Tuple<string, string, string>("E-MAIL DE ENVIO", string.IsNullOrWhiteSpace(Credencial?.Email) ? "" : Credencial?.Email, ""),
+ new Tuple<string, string, string>("DESTINATÁRIOS", string.IsNullOrWhiteSpace(Destinatarios) ? "" : Destinatarios, ""),
+ new Tuple<string, string, string>("ANEXOS", string.IsNullOrWhiteSpace(Anexos) ? "" : Anexos, ""),
+ new Tuple<string, string, string>("CCO", string.IsNullOrWhiteSpace(Cco) ? "" : Cco, ""),
+ new Tuple<string, string, string>("RELATORIO", string.IsNullOrWhiteSpace(Relatorio.GetDescription()) ? "" : Relatorio.GetDescription(), "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/LogEnvio.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/LogEnvio.cs
new file mode 100644
index 0000000..80cf9e0
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/LogEnvio.cs
@@ -0,0 +1,12 @@
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class LogEnvio
+{
+ public bool Enviado { get; set; }
+
+ public Credencial Credencial { get; set; }
+
+ public Destinatario Destinatario { get; set; }
+
+ public string Erro { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/ManutencaoPagamentos.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/ManutencaoPagamentos.cs
new file mode 100644
index 0000000..d40d220
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/ManutencaoPagamentos.cs
@@ -0,0 +1,298 @@
+using System;
+using System.ComponentModel;
+using System.Runtime.CompilerServices;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class ManutencaoPagamentos : INotifyPropertyChanged
+{
+ private bool _isExpanded;
+
+ private bool _selecionado;
+
+ private string _nome;
+
+ private string _empresa;
+
+ private string _apolice;
+
+ private string _endosso;
+
+ private string _seguradora;
+
+ private string _ramo;
+
+ private string _produto;
+
+ private SubTipo _tipo;
+
+ private decimal _valorRepasse;
+
+ private DateTime _pagamento;
+
+ private DateTime _previsaoPagamento;
+
+ private string _vendedor;
+
+ private decimal _valor;
+
+ private DateTime? _recebimento;
+
+ private int _parcela;
+
+ [Tipo("INVALID")]
+ public long Id { get; set; }
+
+ [Tipo("INVALID")]
+ public long IdDocumento { get; set; }
+
+ [Tipo("INVALID")]
+ public long IdParcela { get; set; }
+
+ [Tipo("INVALID")]
+ public bool IsExpanded
+ {
+ get
+ {
+ return _isExpanded;
+ }
+ set
+ {
+ _isExpanded = value;
+ OnPropertyChanged("IsExpanded");
+ }
+ }
+
+ [Tipo("INVALID")]
+ public bool Selecionado
+ {
+ get
+ {
+ return _selecionado;
+ }
+ set
+ {
+ _selecionado = value;
+ OnPropertyChanged("Selecionado");
+ }
+ }
+
+ [Description("EMPRESA")]
+ public string Empresa
+ {
+ get
+ {
+ return _empresa?.ToUpper();
+ }
+ set
+ {
+ _empresa = value;
+ OnPropertyChanged("Empresa");
+ }
+ }
+
+ [Description("CLIENTE")]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ OnPropertyChanged("Nome");
+ }
+ }
+
+ [Description("APÓLICE")]
+ public string Apolice
+ {
+ get
+ {
+ return _apolice?.ToUpper();
+ }
+ set
+ {
+ _apolice = value;
+ OnPropertyChanged("Apolice");
+ }
+ }
+
+ [Description("ENDOSSO")]
+ public string Endosso
+ {
+ get
+ {
+ return _endosso?.ToUpper();
+ }
+ set
+ {
+ _endosso = value;
+ OnPropertyChanged("Endosso");
+ }
+ }
+
+ [Description("SEGURADORA")]
+ public string Seguradora
+ {
+ get
+ {
+ return _seguradora?.ToUpper();
+ }
+ set
+ {
+ _seguradora = value;
+ OnPropertyChanged("Seguradora");
+ }
+ }
+
+ [Description("RAMO")]
+ public string Ramo
+ {
+ get
+ {
+ return _ramo?.ToUpper();
+ }
+ set
+ {
+ _ramo = value;
+ OnPropertyChanged("Ramo");
+ }
+ }
+
+ [Description("PRODUTO")]
+ public string Produto
+ {
+ get
+ {
+ return _produto?.ToUpper();
+ }
+ set
+ {
+ _produto = value;
+ OnPropertyChanged("Produto");
+ }
+ }
+
+ [Description("TIPO DA PARCELA")]
+ public SubTipo Tipo
+ {
+ get
+ {
+ return _tipo;
+ }
+ set
+ {
+ _tipo = value;
+ OnPropertyChanged("Tipo");
+ }
+ }
+
+ [Description("PARCELA")]
+ public int Parcela
+ {
+ get
+ {
+ return _parcela;
+ }
+ set
+ {
+ _parcela = value;
+ OnPropertyChanged("Parcela");
+ }
+ }
+
+ [Description("RECEBIMENTO")]
+ public DateTime? Recebimento
+ {
+ get
+ {
+ return _recebimento;
+ }
+ set
+ {
+ _recebimento = value;
+ OnPropertyChanged("Recebimento");
+ }
+ }
+
+ [Description("VALOR DA PARCELA")]
+ public decimal Valor
+ {
+ get
+ {
+ return _valor;
+ }
+ set
+ {
+ _valor = value;
+ OnPropertyChanged("Valor");
+ }
+ }
+
+ [Description("VENDEDOR")]
+ public string Vendedor
+ {
+ get
+ {
+ return _vendedor?.ToUpper();
+ }
+ set
+ {
+ _vendedor = value;
+ OnPropertyChanged("Vendedor");
+ }
+ }
+
+ [Description("PREVISÃO DE PAGAMENTO")]
+ public DateTime PrevisaoPagamento
+ {
+ get
+ {
+ return _previsaoPagamento;
+ }
+ set
+ {
+ _previsaoPagamento = value;
+ OnPropertyChanged("PrevisaoPagamento");
+ }
+ }
+
+ [Description("DATA DE PAGAMENTO")]
+ public DateTime Pagamento
+ {
+ get
+ {
+ return _pagamento;
+ }
+ set
+ {
+ _pagamento = value;
+ OnPropertyChanged("Pagamento");
+ }
+ }
+
+ [Description("VALOR DE REPASSE")]
+ public decimal ValorRepasse
+ {
+ get
+ {
+ return _valorRepasse;
+ }
+ set
+ {
+ _valorRepasse = value;
+ OnPropertyChanged("ValorRepasse");
+ }
+ }
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/NotaFiscal.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/NotaFiscal.cs
new file mode 100644
index 0000000..93a2749
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/NotaFiscal.cs
@@ -0,0 +1,112 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Globalization;
+using System.Runtime.CompilerServices;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class NotaFiscal : DomainBase
+{
+ private bool _selecionado;
+
+ public bool Selecionado
+ {
+ get
+ {
+ return _selecionado;
+ }
+ set
+ {
+ if (value != _selecionado)
+ {
+ _selecionado = value;
+ OnPropertyChanged("Selecionado");
+ }
+ }
+ }
+
+ [Log(true)]
+ public long? IdExtrato { get; set; }
+
+ [Log(true)]
+ public Seguradora Seguradora { get; set; }
+
+ [Log(true)]
+ [Description("ISS")]
+ public decimal Iss { get; set; }
+
+ [Log(true)]
+ [Description("VALOR LÍQUIDO")]
+ public decimal ValorLiquido { get; set; }
+
+ [Log(true)]
+ [Description("VALOR BRUTO")]
+ public decimal ValorBruto { get; set; }
+
+ [Log(true)]
+ [Description("DATA")]
+ public DateTime? Data { get; set; }
+
+ [Log(true)]
+ [Description("OBS")]
+ public string Obs { get; set; }
+
+ [Log(true)]
+ [Description("ESTIPULANTE")]
+ public Estipulante Estipulante { get; set; }
+
+ [Log(true)]
+ [Description("EXTRATO")]
+ public string Extrato { get; set; }
+
+ [Log(true)]
+ [Description("IR")]
+ public decimal Ir { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (Seguradora == null || string.IsNullOrEmpty(Seguradora.Nome))
+ {
+ list.AddValue("Seguradora", Messages.Obrigatorio);
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("SEGURADORA", string.IsNullOrWhiteSpace(Seguradora.Nome) ? "" : Seguradora.Nome, ""),
+ new Tuple<string, string, string>("ESTIPULANTE", string.IsNullOrWhiteSpace(Estipulante?.Nome) ? "" : Estipulante?.Nome, ""),
+ new Tuple<string, string, string>("ISS", Iss.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""),
+ new Tuple<string, string, string>("VALOR LÍQUIDO", ValorLiquido.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""),
+ new Tuple<string, string, string>("VALOR BRUTO", ValorBruto.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""),
+ new Tuple<string, string, string>("DATA", (!Data.HasValue) ? "" : Data?.ToShortDateString(), "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/OrigemCliente.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/OrigemCliente.cs
new file mode 100644
index 0000000..f03d8f4
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/OrigemCliente.cs
@@ -0,0 +1,16 @@
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class OrigemCliente : DomainBase
+{
+ public Cliente Cliente { get; set; }
+
+ public long TipoOrigem { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ public string Nome { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/Recibo.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/Recibo.cs
new file mode 100644
index 0000000..e02140e
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/Recibo.cs
@@ -0,0 +1,134 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Globalization;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class Recibo : DomainBase, IDomain
+{
+ [Log(true)]
+ public TipoRecibo? Tipo { get; set; }
+
+ [Log(true)]
+ public TipoPagamento? Pagamento { get; set; }
+
+ [Log(true)]
+ public decimal Valor { get; set; }
+
+ [Log(true)]
+ [Description("DATA DO RECIBO")]
+ public DateTime? DataRecibo { get; set; }
+
+ [Log(true)]
+ public string Pagante { get; set; }
+
+ [Log(true)]
+ [Description("DOCUMENTO PAGANTE")]
+ public string DocumentoPagante { get; set; }
+
+ [Log(true)]
+ public string Recebedor { get; set; }
+
+ [Log(true)]
+ [Description("DOCUMENTO RECEBEDOR")]
+ public string DocumentoRecebedor { get; set; }
+
+ [Log(true)]
+ public string Referente { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Referente))
+ {
+ list.AddValue("Referente|REFERENTE À(AO)", Messages.Obrigatorio);
+ }
+ if (DataRecibo.HasValue && (DateTime.Compare(DataRecibo.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(DataRecibo.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("DataRecibo|DATA DO RECIBO", Messages.Obrigatorio);
+ }
+ if (!DataRecibo.HasValue)
+ {
+ list.AddValue("DataRecibo|DATA DO RECIBO", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(DocumentoPagante))
+ {
+ list.AddValue("DocumentoPagante|DOCUMENTO DO PAGANTE", Messages.Obrigatorio);
+ }
+ else if (!DocumentoPagante.ValidacaoDocumento())
+ {
+ list.AddValue("DocumentoPagante|DOCUMENTO DO PAGANTE", Messages.Invalido);
+ }
+ if (string.IsNullOrWhiteSpace(DocumentoRecebedor))
+ {
+ list.AddValue("DocumentoRecebedor|DOCUMENTO DO RECEBEDOR", Messages.Obrigatorio);
+ }
+ else if (!DocumentoRecebedor.ValidacaoDocumento())
+ {
+ list.AddValue("DocumentoRecebedor|DOCUMENTO DO RECEBEDOR", Messages.Invalido);
+ }
+ if (string.IsNullOrWhiteSpace(Recebedor))
+ {
+ list.AddValue("Recebedor", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(Pagante))
+ {
+ list.AddValue("Pagante", Messages.Obrigatorio);
+ }
+ if (!Pagamento.HasValue)
+ {
+ list.AddValue("Pagamento|FORMA DE PAGAMENTO", Messages.Obrigatorio);
+ }
+ if (!string.IsNullOrWhiteSpace(Referente) && Referente.Length >= 255)
+ {
+ list.AddValue("Referente|REFERENTE À(AO)", string.Format(Messages.MaiorQueLimite, 255));
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ List<TupleList> list = new List<TupleList>();
+ TupleList tupleList = new TupleList();
+ ObservableCollection<Tuple<string, string, string>> obj = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("PAGANTE", string.IsNullOrWhiteSpace(Pagante) ? "" : Pagante, ""),
+ new Tuple<string, string, string>("DOCUMENTO PAGANTE", string.IsNullOrWhiteSpace(DocumentoPagante) ? "" : DocumentoPagante, ""),
+ new Tuple<string, string, string>("RECEBEDOR", string.IsNullOrWhiteSpace(Recebedor) ? "" : Recebedor, ""),
+ new Tuple<string, string, string>("DOCUMENTO", string.IsNullOrWhiteSpace(DocumentoRecebedor) ? "" : DocumentoRecebedor, ""),
+ new Tuple<string, string, string>("TIPO DO RECIBO", Tipo.GetDescription(), "")
+ };
+ object item;
+ if (Pagamento.HasValue)
+ {
+ TipoPagamento? pagamento = Pagamento;
+ item = (pagamento.HasValue ? pagamento.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item = "";
+ }
+ obj.Add(new Tuple<string, string, string>("PAGAMENTO", (string)item, ""));
+ obj.Add(new Tuple<string, string, string>("VALOR", Valor.ToString(new CultureInfo("pt-BR")), ""));
+ obj.Add(new Tuple<string, string, string>("DATA DO RECIBO", DataRecibo?.ToShortDateString(), ""));
+ obj.Add(new Tuple<string, string, string>("PAGANTE", string.IsNullOrWhiteSpace(Pagante) ? "" : Pagante, ""));
+ obj.Add(new Tuple<string, string, string>("RECEBEDOR", string.IsNullOrWhiteSpace(Recebedor) ? "" : Recebedor, ""));
+ obj.Add(new Tuple<string, string, string>("REFERENTE", string.IsNullOrWhiteSpace(Referente) ? "" : Referente, ""));
+ tupleList.Tuples = obj;
+ list.Add(tupleList);
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/ResponsavelTarefa.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/ResponsavelTarefa.cs
new file mode 100644
index 0000000..ea7cc10
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/ResponsavelTarefa.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class ResponsavelTarefa : DomainBase, IDomain
+{
+ public long IdTarefa { get; set; }
+
+ public Usuario Usuario { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (Usuario == null || Usuario.Id == 0L)
+ {
+ list.AddValue("Usuario", Messages.Obrigatorio);
+ }
+ if (IdTarefa == 0L)
+ {
+ list.AddValue("IdTarefa", Messages.Obrigatorio);
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/StatusDeProspeccao.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/StatusDeProspeccao.cs
new file mode 100644
index 0000000..2e77bef
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/StatusDeProspeccao.cs
@@ -0,0 +1,74 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class StatusDeProspeccao : DomainBase
+{
+ private string _nome;
+
+ [Log(true)]
+ [Name(true)]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("DESCRIÇÃO")]
+ public string Descricao { get; set; }
+
+ [Log(true)]
+ public bool Ativo { get; set; }
+
+ public bool Excluido { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Nome))
+ {
+ list.AddValue("Nome", Messages.Obrigatorio);
+ }
+ else if (Nome.Length > 60)
+ {
+ list.AddValue("Nome", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("NOME", string.IsNullOrWhiteSpace(Nome) ? "" : Nome, ""),
+ new Tuple<string, string, string>("DESCRIÇÃO", string.IsNullOrWhiteSpace(Descricao) ? "" : Descricao, ""),
+ new Tuple<string, string, string>("ATIVO", Ativo ? "SIM" : "NÃO", ""),
+ new Tuple<string, string, string>("EXCLUÍDO", Excluido ? "SIM" : "NÃO", "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/Tarefa.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/Tarefa.cs
new file mode 100644
index 0000000..51bb764
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/Tarefa.cs
@@ -0,0 +1,132 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Text.RegularExpressions;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class Tarefa : DomainBase, IDomain
+{
+ public bool Aberto { get; set; }
+
+ public string Cliente { get; set; }
+
+ public long IdCliente { get; set; }
+
+ public Trilha Trilha { get; set; }
+
+ public Fase Fase { get; set; }
+
+ public TipoDeTarefa TipoDeTarefa { get; set; }
+
+ public TipoTarefa Entidade { get; set; }
+
+ public long IdEntidade { get; set; }
+
+ public Usuario UsuarioCadastro { get; set; }
+
+ public Usuario Usuario { get; set; }
+
+ public List<Usuario> UsuariosVinculados { get; set; }
+
+ public DateTime Agendamento { get; set; }
+
+ public DateTime? Conclusao { get; set; }
+
+ public string Titulo { get; set; }
+
+ public string Anotacoes { get; set; }
+
+ public string AnotacoesInternas { get; set; }
+
+ public string Descricao { get; set; }
+
+ public string DescricaoInterna { get; set; }
+
+ public string Referencia { get; set; }
+
+ public StatusTarefa Status { get; set; }
+
+ public Documento Documento { get; set; }
+
+ public CategoriaTarefa Categoria { get; set; }
+
+ public bool? Restrito { get; set; }
+
+ public List<ResponsavelTarefa> Responsaveis { get; set; }
+
+ public bool HabilitarPublica { get; set; }
+
+ public bool Publica { get; set; }
+
+ public bool AgendamentoRetroativo { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (Entidade != TipoTarefa.Notas)
+ {
+ if (IdEntidade == 0L && Trilha == null)
+ {
+ list.AddValue("IdEntidade", Messages.Obrigatorio);
+ }
+ if (!AgendamentoRetroativo && Status != StatusTarefa.Realizado && Agendamento < Funcoes.GetNetworkTime().AddMinutes(-15.0) && Trilha == null)
+ {
+ list.AddValue("Agendamento", Messages.Invalido);
+ }
+ }
+ if (Usuario == null)
+ {
+ list.AddValue("Usuario|RESPONSÁVEL", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(Titulo))
+ {
+ list.AddValue("Titulo|TÍTULO", Messages.Obrigatorio);
+ }
+ if (DateTime.Compare(Agendamento, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Agendamento, new DateTime(9999, 12, 31)) > 0)
+ {
+ list.AddValue("Agendamento", string.Format(Messages.DataInvalida));
+ }
+ if (Conclusao.HasValue && (DateTime.Compare(Conclusao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Conclusao.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Conclusao|CONCLUSÃO", string.Format(Messages.DataInvalida));
+ }
+ if (Status == StatusTarefa.Realizado && !Conclusao.HasValue)
+ {
+ list.AddValue("Conclusao|CONCLUSÃO", Messages.Obrigatorio);
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ Descricao = new Regex("<title>.*<\\/title>").Replace(Descricao, "").Trim();
+ Descricao = new Regex("(<[^>]*>)|(p\\s?{[^}]*})|(\\r)|(\\n)").Replace(Descricao, "").Trim();
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("TÍTULO", string.IsNullOrWhiteSpace(Titulo) ? "" : Titulo, ""),
+ new Tuple<string, string, string>("AGENDAMENTO", Agendamento.ToShortDateString(), ""),
+ new Tuple<string, string, string>("HORA", Agendamento.ToShortTimeString(), ""),
+ new Tuple<string, string, string>("RESPONSÁVEL", string.IsNullOrWhiteSpace(Usuario.Nome) ? "" : Usuario.Nome, ""),
+ new Tuple<string, string, string>("STATUS", Status.GetDescription(), ""),
+ new Tuple<string, string, string>("TIPO DE TAREFA", TipoDeTarefa?.Nome, ""),
+ new Tuple<string, string, string>("ANOTAÇÕES", string.IsNullOrWhiteSpace(Descricao) ? "" : Descricao, "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/TipoDeTarefa.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/TipoDeTarefa.cs
new file mode 100644
index 0000000..9d697ed
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/TipoDeTarefa.cs
@@ -0,0 +1,74 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class TipoDeTarefa : DomainBase
+{
+ private string _nome;
+
+ [Log(true)]
+ [Name(true)]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("DESCRIÇÃO")]
+ public string Descricao { get; set; }
+
+ [Log(true)]
+ public bool Ativo { get; set; }
+
+ public bool Excluido { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Nome))
+ {
+ list.AddValue("Nome", Messages.Obrigatorio);
+ }
+ else if (Nome.Length > 60)
+ {
+ list.AddValue("Nome", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("NOME", string.IsNullOrWhiteSpace(Nome) ? "" : Nome, ""),
+ new Tuple<string, string, string>("DESCRIÇÃO", string.IsNullOrWhiteSpace(Descricao) ? "" : Descricao, ""),
+ new Tuple<string, string, string>("ATIVO", Ativo ? "SIM" : "NÃO", ""),
+ new Tuple<string, string, string>("EXCLUÍDO", Excluido ? "SIM" : "NÃO", "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Ferramentas/Trilha.cs b/Gestor.Model/Gestor.Model.Domain.Ferramentas/Trilha.cs
new file mode 100644
index 0000000..f627dc5
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Ferramentas/Trilha.cs
@@ -0,0 +1,85 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Ferramentas;
+
+public class Trilha : DomainBase, IDomain
+{
+ public string Titulo { get; set; }
+
+ public string Descricao { get; set; }
+
+ public List<Fase> Fases { get; set; }
+
+ public bool Ativo { get; set; }
+
+ public TipoTrilha Tipo { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Titulo))
+ {
+ list.AddValue("Titulo", Messages.Obrigatorio);
+ }
+ if (Fases == null || Fases.Count == 0)
+ {
+ list.AddValue("Fases", Messages.Obrigatorio);
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ List<TupleList> list = new List<TupleList>();
+ list.Add(new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("TÍTULO DA TRILHA", string.IsNullOrWhiteSpace(Titulo) ? "" : Titulo, ""),
+ new Tuple<string, string, string>("DESCRIÇÃO DA TRILHA", string.IsNullOrWhiteSpace(Descricao) ? "" : Descricao, ""),
+ new Tuple<string, string, string>("ATIVO", Ativo ? "SIM" : "NÃO", "")
+ }
+ });
+ ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("FASES$", "", "")
+ };
+ if (Fases != null)
+ {
+ foreach (Fase fase in Fases)
+ {
+ observableCollection.Add(new Tuple<string, string, string>($" FASE {Fases.IndexOf(fase) + 1}$", "", ""));
+ observableCollection.Add(new Tuple<string, string, string>(" TÍTULO DA FASE", string.IsNullOrWhiteSpace(fase.Titulo) ? "" : fase.Titulo, ""));
+ observableCollection.Add(new Tuple<string, string, string>(" DESCRIÇÃO DA FASE", string.IsNullOrWhiteSpace(fase.Descricao) ? "" : fase.Descricao, ""));
+ foreach (Tarefa tarefa in fase.Tarefas)
+ {
+ observableCollection.Add(new Tuple<string, string, string>($" TAREFA {fase.Tarefas.IndexOf(tarefa) + 1}$", "", ""));
+ observableCollection.Add(new Tuple<string, string, string>(" TÍTULO DA TAREFA", string.IsNullOrWhiteSpace(tarefa.Titulo) ? "" : tarefa.Titulo, ""));
+ _ = tarefa.Agendamento;
+ observableCollection.Add(new Tuple<string, string, string>(" AGENDAMENTO DA TAREFA", tarefa.Agendamento.ToShortDateString(), ""));
+ _ = tarefa.Agendamento;
+ observableCollection.Add(new Tuple<string, string, string>(" HORA DA TAREFA", tarefa.Agendamento.ToShortTimeString(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" ANOTAÇÕES DA TAREFA", string.IsNullOrWhiteSpace(tarefa.Anotacoes) ? "" : tarefa.Anotacoes, ""));
+ observableCollection.Add(new Tuple<string, string, string>(" STATUS DA TAREFA", tarefa.Status.GetDescription(), ""));
+ }
+ }
+ list.Add(new TupleList
+ {
+ Tuples = observableCollection
+ });
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/DadosFechamento.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/DadosFechamento.cs
new file mode 100644
index 0000000..4926b88
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/DadosFechamento.cs
@@ -0,0 +1,46 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Financeiro.Relatorios;
+
+public class DadosFechamento
+{
+ private string _planos;
+
+ [Description("PLANO DE CONTAS")]
+ public string Planos
+ {
+ get
+ {
+ return _planos?.ToUpper();
+ }
+ set
+ {
+ _planos = value;
+ }
+ }
+
+ [Tipo("VALOR")]
+ [Description("TOTAL CRÉDITO")]
+ public decimal Credito { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("TOTAL DÉBITO")]
+ public decimal Debito { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("% CRÉDITO")]
+ public decimal PercentualCredito { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("% DÉBITO")]
+ public decimal PercentualDebito { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("TOTAL CRÉDITO - TOTAL DÉBITO")]
+ public decimal Soma { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("% TOTAL DE CRÉDITO - % TOTAL DE DÉBITO")]
+ public decimal SomaPercentual { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/DadosFechamentoAnalitico.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/DadosFechamentoAnalitico.cs
new file mode 100644
index 0000000..435ace7
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/DadosFechamentoAnalitico.cs
@@ -0,0 +1,82 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Financeiro.Relatorios;
+
+public class DadosFechamentoAnalitico
+{
+ private string _nome;
+
+ [Description("NOME")]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ [Tipo("VALOR")]
+ [Description("JAN")]
+ public decimal? Jan { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("FEV")]
+ public decimal? Fev { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("MAR")]
+ public decimal? Mar { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("ABR")]
+ public decimal? Abr { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("MAI")]
+ public decimal? Mai { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("JUN")]
+ public decimal? Jun { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("JUL")]
+ public decimal? Jul { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("AGO")]
+ public decimal? Ago { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("SET")]
+ public decimal? Set { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("OUT")]
+ public decimal? Out { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("NOV")]
+ public decimal? Nov { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("DEZ")]
+ public decimal? Dez { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("TOTAL")]
+ public decimal? Total { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("% CRÉDITO")]
+ public decimal PercentualCredito { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("% DÉBITO")]
+ public decimal PercentualDebito { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/FechamentoFinanceiro.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/FechamentoFinanceiro.cs
new file mode 100644
index 0000000..0b32547
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/FechamentoFinanceiro.cs
@@ -0,0 +1,10 @@
+using System.Collections.Generic;
+
+namespace Gestor.Model.Domain.Financeiro.Relatorios;
+
+public class FechamentoFinanceiro
+{
+ public string Plano { get; set; }
+
+ public List<DadosFechamento> Dados { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/FechamentoFinanceiroAnalitico.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/FechamentoFinanceiroAnalitico.cs
new file mode 100644
index 0000000..efb36fb
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/FechamentoFinanceiroAnalitico.cs
@@ -0,0 +1,10 @@
+using System.Collections.Generic;
+
+namespace Gestor.Model.Domain.Financeiro.Relatorios;
+
+public class FechamentoFinanceiroAnalitico
+{
+ public string NomeConta { get; set; }
+
+ public List<DadosFechamentoAnalitico> Dados { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/FiltroFinanceiro.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/FiltroFinanceiro.cs
new file mode 100644
index 0000000..c253c06
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro.Relatorios/FiltroFinanceiro.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+
+namespace Gestor.Model.Domain.Financeiro.Relatorios;
+
+public class FiltroFinanceiro
+{
+ public DateTime Inicio { get; set; }
+
+ public DateTime Fim { get; set; }
+
+ public List<long> Centro { get; set; }
+
+ public List<long> Plano { get; set; }
+
+ public List<long> Planos { get; set; }
+
+ public List<long> Conta { get; set; }
+
+ public string Referencia { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro/BancosContas.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro/BancosContas.cs
new file mode 100644
index 0000000..13994ab
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro/BancosContas.cs
@@ -0,0 +1,135 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Financeiro;
+
+public class BancosContas : DomainBase, IDomain
+{
+ private string _descricao;
+
+ private string _agencia;
+
+ private string _conta;
+
+ private string _observacao;
+
+ public bool Selecionado { get; set; }
+
+ public long IdEmpresa { get; set; } = 1L;
+
+
+ [Log(true)]
+ public Banco Banco { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("DESCRIÇÃO")]
+ public string Descricao
+ {
+ get
+ {
+ return _descricao?.ToUpper();
+ }
+ set
+ {
+ _descricao = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("AGÊNCIA")]
+ public string Agencia
+ {
+ get
+ {
+ return _agencia?.ToUpper().Trim();
+ }
+ set
+ {
+ _agencia = value;
+ }
+ }
+
+ [Log(true)]
+ public string Conta
+ {
+ get
+ {
+ return _conta?.ToUpper().Trim();
+ }
+ set
+ {
+ _conta = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("OBSERVAÇÃO")]
+ public string Observacao
+ {
+ get
+ {
+ return _observacao?.ToUpper();
+ }
+ set
+ {
+ _observacao = value;
+ }
+ }
+
+ [Log(true)]
+ public bool Ativo { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = new List<KeyValuePair<string, string>>();
+ if (string.IsNullOrWhiteSpace(Descricao))
+ {
+ list.AddValue("Descricao|DESCRIÇÃO", Messages.Obrigatorio);
+ }
+ if (Banco == null)
+ {
+ list.AddValue("Banco", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(Agencia))
+ {
+ list.AddValue("Agencia|AGÊNCIA", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(Conta))
+ {
+ list.AddValue("Conta", Messages.Obrigatorio);
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("DESCRIÇÃO", string.IsNullOrWhiteSpace(Descricao) ? "" : Descricao, ""),
+ new Tuple<string, string, string>("AGÊNCIA", string.IsNullOrWhiteSpace(Agencia) ? "" : Agencia, ""),
+ new Tuple<string, string, string>("BANCO", (Banco == null) ? "" : Banco?.Nome, ""),
+ new Tuple<string, string, string>("CONTA CORRENTE/POUPANÇA", string.IsNullOrWhiteSpace(Conta) ? "" : Conta, ""),
+ new Tuple<string, string, string>("ATIVO", Ativo ? "SIM" : "NÃO", ""),
+ new Tuple<string, string, string>("OBSERVAÇÕES", string.IsNullOrWhiteSpace(Observacao) ? "" : Observacao, "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro/Centro.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro/Centro.cs
new file mode 100644
index 0000000..34c11b1
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro/Centro.cs
@@ -0,0 +1,68 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Financeiro;
+
+public class Centro : DomainBase, IDomain
+{
+ private string _descricao;
+
+ public bool Selecionado { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("DESCRIÇÃO")]
+ public string Descricao
+ {
+ get
+ {
+ return _descricao?.ToUpper();
+ }
+ set
+ {
+ _descricao = value;
+ }
+ }
+
+ [Log(true)]
+ public bool Ativo { get; set; }
+
+ public long IdEmpresa { get; set; } = 1L;
+
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Descricao))
+ {
+ list.AddValue("Descricao", Messages.Obrigatorio);
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("NOME", string.IsNullOrWhiteSpace(Descricao) ? "" : Descricao, ""),
+ new Tuple<string, string, string>("ATIVO", Ativo ? "SIM" : "NÃO", "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro/ControleFinanceiro.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro/ControleFinanceiro.cs
new file mode 100644
index 0000000..585cf40
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro/ControleFinanceiro.cs
@@ -0,0 +1,82 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Financeiro;
+
+public class ControleFinanceiro : DomainBase, IDomain
+{
+ private string _historico;
+
+ [Log(true)]
+ [Name(true)]
+ [Description("FORNECEDOR")]
+ public Fornecedor Fornecedor { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("PLANO DE CONTAS")]
+ public Planos Plano { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("CENTRO DE CUSTO")]
+ public Centro Centro { get; set; }
+
+ public string Historico
+ {
+ get
+ {
+ return _historico?.ToUpper();
+ }
+ set
+ {
+ _historico = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("QUANTIDADE DE PARCELAS")]
+ public int Parcelas { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (Fornecedor == null)
+ {
+ list.AddValue("Fornecedor", Messages.Obrigatorio);
+ }
+ Fornecedor fornecedor = Fornecedor;
+ if (fornecedor != null && fornecedor.Id == 0)
+ {
+ list.AddValue("Fornecedor|FORNECEDOR", Messages.Obrigatorio + "\nPROVAVELMENTE NÃO HÁ NENHUM FORNECEDOR INCLUÍDO\nACESSE A TELA DE CADASTRO DE FORNECEDORES PARA INCLUIR");
+ }
+ if (Plano == null)
+ {
+ list.AddValue("Plano|PLANO DE CONTAS", Messages.Obrigatorio + "\nPROVAVELMENTE NÃO HÁ NENHUM PLANO DE CONTAS INCLUÍDO\nACESSE A TELA PLANO DE CONTAS PARA INCLUIR");
+ }
+ Planos plano = Plano;
+ if (plano != null && plano.Id == 0)
+ {
+ list.AddValue("Plano|PLANO DE CONTAS", Messages.Obrigatorio + "\nPROVAVELMENTE NÃO HÁ NENHUM PLANO DE CONTAS INCLUÍDO\nACESSE A TELA PLANO DE CONTAS PARA INCLUIR");
+ }
+ if (Centro == null)
+ {
+ list.AddValue("Centro|CENTRO DE CUSTOS", Messages.Obrigatorio + "\nPROVAVELMENTE NÃO HÁ NENHUM CENTRO DE CUSTOS INCLUÍDO\nACESSE A TELA CENTRO DE CUSTOS PARA INCLUIR");
+ }
+ Centro centro = Centro;
+ if (centro != null && centro.Id == 0)
+ {
+ list.AddValue("Centro|CENTRO DE CUSTOS", Messages.Obrigatorio + "\nPROVAVELMENTE NÃO HÁ NENHUM CENTRO DE CUSTOS INCLUÍDO\nACESSE A TELA CENTRO DE CUSTOS PARA INCLUIR");
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro/ExtratoConta.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro/ExtratoConta.cs
new file mode 100644
index 0000000..15ae942
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro/ExtratoConta.cs
@@ -0,0 +1,57 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+
+namespace Gestor.Model.Domain.Financeiro;
+
+public class ExtratoConta
+{
+ private string _fornecedor;
+
+ private string _historico;
+
+ public bool Bold { get; set; }
+
+ public long IdLancamento { get; set; }
+
+ public Sinal Sinal { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA BAIXA")]
+ public DateTime? Baixa { get; set; }
+
+ [Description("FORNECEDOR")]
+ public string Fornecedor
+ {
+ get
+ {
+ return _fornecedor?.ToUpper();
+ }
+ set
+ {
+ _fornecedor = value;
+ }
+ }
+
+ [Description("HISTÓRICO")]
+ public string Historico
+ {
+ get
+ {
+ return _historico?.ToUpper();
+ }
+ set
+ {
+ _historico = value;
+ }
+ }
+
+ [Tipo("ENUM")]
+ [Description("TIPO PAGAMENTO")]
+ public TipoPagamento? TipoPagamento { get; set; }
+
+ [Tipo("VALOR?")]
+ [Description("VALOR")]
+ public decimal? Valor { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro/FiltroPersonalizado.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro/FiltroPersonalizado.cs
new file mode 100644
index 0000000..789e97a
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro/FiltroPersonalizado.cs
@@ -0,0 +1,35 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+
+namespace Gestor.Model.Domain.Financeiro;
+
+public class FiltroPersonalizado
+{
+ private string _descricao;
+
+ public long Id { get; set; }
+
+ public string Icone { get; set; }
+
+ [Description("DESCRIÇÃO DO FILTRO")]
+ public string Descricao
+ {
+ get
+ {
+ return _descricao;
+ }
+ set
+ {
+ _descricao = value;
+ if (!string.IsNullOrWhiteSpace(value))
+ {
+ Icone = value.Substring(0, 1);
+ }
+ }
+ }
+
+ [Tipo("ENUM")]
+ [Description("TIPO DO FILTRO")]
+ public TipoFiltroFinanceiro Tipo { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro/Fornecedor.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro/Fornecedor.cs
new file mode 100644
index 0000000..aeef0de
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro/Fornecedor.cs
@@ -0,0 +1,238 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Financeiro;
+
+public class Fornecedor : EnderecoBase, IDomain
+{
+ private string _nome;
+
+ private string _documento;
+
+ private string _email;
+
+ private string _observacao;
+
+ public new long Id { get; set; }
+
+ public long IdEmpresa { get; set; }
+
+ public long? IdConta { get; set; }
+
+ public long? IdCentro { get; set; }
+
+ public long? IdPlano { get; set; }
+
+ public TipoPagamento? TipoPagamento { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ NomeSocial = $"{value?.ToUpper()} - {Id}";
+ }
+ }
+
+ [Log(true)]
+ [Description("NOME SOCIAL")]
+ public string NomeSocial { get; set; }
+
+ [Log(true)]
+ public string Documento
+ {
+ get
+ {
+ return _documento?.ToUpper().Trim();
+ }
+ set
+ {
+ _documento = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("TIPO TELEFONE")]
+ public TipoTelefone? TipoTelefone1 { get; set; }
+
+ [Log(true)]
+ [Description("PREFIXO 1")]
+ public string Prefixo1 { get; set; }
+
+ [Log(true)]
+ [Description("TELEFONE 1")]
+ public string Telefone1 { get; set; }
+
+ [Log(true)]
+ [Description("TIPO TELEFONE 2")]
+ public TipoTelefone? TipoTelefone2 { get; set; }
+
+ [Log(true)]
+ [Description("PREFIXO 2")]
+ public string Prefixo2 { get; set; }
+
+ [Log(true)]
+ [Description("TELEFONE 2")]
+ public string Telefone2 { get; set; }
+
+ [Log(true)]
+ [Description("E-MAIL")]
+ public string Email
+ {
+ get
+ {
+ return _email?.ToLower();
+ }
+ set
+ {
+ _email = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("OBSERVAÇÃO")]
+ public string Observacao
+ {
+ get
+ {
+ return _observacao?.ToUpper();
+ }
+ set
+ {
+ _observacao = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("ATIVO")]
+ public bool Ativo { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ int? num = Nome?.Trim().Split(new char[1] { ' ' }).Length;
+ if (!num.HasValue)
+ {
+ list.AddValue("Nome", Messages.Obrigatorio);
+ }
+ else if (num <= 1)
+ {
+ list.AddValue("Nome", Messages.NomeInvalido);
+ }
+ if (!string.IsNullOrWhiteSpace(Nome) && Nome.Length > 60)
+ {
+ list.AddValue("Nome", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (!string.IsNullOrWhiteSpace(Documento) && !Documento.ValidacaoDocumento())
+ {
+ list.AddValue("Documento", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(Prefixo1) && !Prefixo1.ValidacaoPrefixo())
+ {
+ list.AddValue("Prefixo1", Messages.Obrigatorio);
+ }
+ if (!string.IsNullOrWhiteSpace(Telefone1) && !Telefone1.ValidacaoTelefone())
+ {
+ list.AddValue("Telefone1", Messages.Obrigatorio);
+ }
+ if (!string.IsNullOrWhiteSpace(Email) && !Email.ValidacaoEmail())
+ {
+ list.AddValue("Email", Messages.Obrigatorio);
+ }
+ if (!string.IsNullOrWhiteSpace(base.Cidade) && base.Cidade.Length > 30)
+ {
+ list.AddValue("Cidade", string.Format(Messages.MaiorQueLimite, 30));
+ }
+ if (!string.IsNullOrWhiteSpace(base.Bairro) && base.Bairro.Length > 60)
+ {
+ list.AddValue("Bairro", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (!string.IsNullOrWhiteSpace(base.Complemento) && base.Complemento.Length > 40)
+ {
+ list.AddValue("Complemento", string.Format(Messages.MaiorQueLimite, 40));
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ List<TupleList> list = new List<TupleList>();
+ TupleList tupleList = new TupleList();
+ ObservableCollection<Tuple<string, string, string>> obj = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("NOME DO FORNECEDOR", string.IsNullOrWhiteSpace(Nome) ? "" : Nome, ""),
+ new Tuple<string, string, string>("DOCUMENTO", string.IsNullOrWhiteSpace(Documento) ? "" : Documento, ""),
+ new Tuple<string, string, string>("CEP", string.IsNullOrWhiteSpace(base.Cep) ? "" : base.Cep, ""),
+ new Tuple<string, string, string>("ENDEREÇO", string.IsNullOrWhiteSpace(base.Endereco) ? "" : base.Endereco, ""),
+ new Tuple<string, string, string>("NÚMERO", string.IsNullOrWhiteSpace(base.Numero) ? "" : base.Numero, ""),
+ new Tuple<string, string, string>("COMPLEMENTO", string.IsNullOrWhiteSpace(base.Complemento) ? "" : base.Complemento, ""),
+ new Tuple<string, string, string>("BAIRRO", string.IsNullOrWhiteSpace(base.Bairro) ? "" : base.Bairro, ""),
+ new Tuple<string, string, string>("CIDADE", string.IsNullOrWhiteSpace(base.Cidade) ? "" : base.Cidade, ""),
+ new Tuple<string, string, string>("ESTADO", string.IsNullOrWhiteSpace(base.Estado) ? "" : base.Estado, "")
+ };
+ object item;
+ if (TipoTelefone1.HasValue)
+ {
+ TipoTelefone? tipoTelefone = TipoTelefone1;
+ item = (tipoTelefone.HasValue ? tipoTelefone.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item = "";
+ }
+ obj.Add(new Tuple<string, string, string>("TIPO DO PRIMEIRO TELEFONE", (string)item, ""));
+ obj.Add(new Tuple<string, string, string>("PRIMEIRO PREFIXO", string.IsNullOrWhiteSpace(Prefixo1) ? "" : Prefixo1, ""));
+ obj.Add(new Tuple<string, string, string>("PRIMEIRO TELEFONE", string.IsNullOrWhiteSpace(Telefone1) ? "" : Telefone1, ""));
+ object item2;
+ if (TipoTelefone2.HasValue)
+ {
+ TipoTelefone? tipoTelefone = TipoTelefone2;
+ item2 = (tipoTelefone.HasValue ? tipoTelefone.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item2 = "";
+ }
+ obj.Add(new Tuple<string, string, string>("TIPO DO SEGUNDO TELEFONE", (string)item2, ""));
+ obj.Add(new Tuple<string, string, string>("SEGUNDO PREFIXO", string.IsNullOrWhiteSpace(Prefixo2) ? "" : Prefixo2, ""));
+ obj.Add(new Tuple<string, string, string>("SEGUNDO TELEFONE", string.IsNullOrWhiteSpace(Telefone2) ? "" : Telefone2, ""));
+ obj.Add(new Tuple<string, string, string>("E-MAIL", string.IsNullOrWhiteSpace(Email) ? "" : Email, ""));
+ obj.Add(new Tuple<string, string, string>("PLANO DE CONTAS", (!IdPlano.HasValue) ? "" : IdPlano?.ToString(), ""));
+ obj.Add(new Tuple<string, string, string>("CENTRO DE CUSTO", (!IdCentro.HasValue) ? "" : IdCentro?.ToString(), ""));
+ obj.Add(new Tuple<string, string, string>("CONTA CORRENTE", (!IdConta.HasValue) ? "" : IdConta?.ToString(), ""));
+ object item3;
+ if (TipoPagamento.HasValue)
+ {
+ TipoPagamento? tipoPagamento = TipoPagamento;
+ item3 = (tipoPagamento.HasValue ? tipoPagamento.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item3 = "";
+ }
+ obj.Add(new Tuple<string, string, string>("TIPO DE PAGAMENTO", (string)item3, ""));
+ obj.Add(new Tuple<string, string, string>("OBSERVAÇÕES", string.IsNullOrWhiteSpace(Observacao) ? "" : Observacao, ""));
+ tupleList.Tuples = obj;
+ list.Add(tupleList);
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro/Lancamento.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro/Lancamento.cs
new file mode 100644
index 0000000..7608cb9
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro/Lancamento.cs
@@ -0,0 +1,195 @@
+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 Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Financeiro;
+
+public class Lancamento : DomainBase, IDomain
+{
+ private decimal? _valorPago;
+
+ private string _historico;
+
+ private string _documento;
+
+ private string _complemento;
+
+ private string _competencia;
+
+ public bool Selecionado { get; set; }
+
+ public ControleFinanceiro Controle { get; set; }
+
+ [Log(true)]
+ public BancosContas Conta { get; set; }
+
+ [Log(true)]
+ [Description("TIPO PAGAMENTO")]
+ public TipoPagamento TipoPagamento { get; set; }
+
+ [Log(true)]
+ [Description("HISTÓRICO")]
+ public string Historico
+ {
+ get
+ {
+ return _historico?.ToUpper();
+ }
+ set
+ {
+ _historico = value;
+ }
+ }
+
+ [Log(true)]
+ public string Documento
+ {
+ get
+ {
+ return _documento?.ToUpper();
+ }
+ set
+ {
+ _documento = value;
+ }
+ }
+
+ [Log(true)]
+ public string Complemento
+ {
+ get
+ {
+ return _complemento?.ToUpper();
+ }
+ set
+ {
+ _complemento = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("COMPETÊNCIA")]
+ public string Competencia
+ {
+ get
+ {
+ return _competencia?.ToUpper();
+ }
+ set
+ {
+ _competencia = value;
+ }
+ }
+
+ [Log(true)]
+ public int Parcela { get; set; }
+
+ [Log(true)]
+ public DateTime Vencimento { get; set; }
+
+ [Log(true)]
+ public decimal Valor { get; set; }
+
+ [Log(true)]
+ [Description("DATA DA BAIXA")]
+ public DateTime? Baixa { get; set; }
+
+ [Log(true)]
+ [Description("VALOR PAGO")]
+ public decimal? ValorPago
+ {
+ get
+ {
+ return _valorPago.GetValueOrDefault();
+ }
+ set
+ {
+ _valorPago = value;
+ }
+ }
+
+ [Log(true)]
+ public DateTime? Pagamento { get; set; }
+
+ [Log(true)]
+ public Sinal Sinal { get; set; }
+
+ [Log(true)]
+ [Description("OBSERVAÇÃO")]
+ public string Observacao { get; set; }
+
+ public bool Baixado { get; set; }
+
+ [Log(true)]
+ [Description("CÓDIGO BANCO")]
+ public string CodigoBanco { get; set; }
+
+ [Log(true)]
+ [Description("DATA LANÇAMENTO")]
+ public DateTime? DataLancamento { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ list.AddRange(Controle.Validate());
+ if (string.IsNullOrWhiteSpace(Historico))
+ {
+ list.AddValue("Historico", Messages.Obrigatorio);
+ }
+ else if (Historico.Length > 100)
+ {
+ list.AddValue("Historico", string.Format(Messages.MaiorQueLimite, 100));
+ }
+ if (Valor <= 0m)
+ {
+ list.AddValue("Valor", Messages.Obrigatorio);
+ }
+ decimal? valorPago = ValorPago;
+ if ((valorPago.GetValueOrDefault() < default(decimal)) & valorPago.HasValue)
+ {
+ list.AddValue("ValorPago", Messages.Obrigatorio);
+ }
+ if (Conta == null)
+ {
+ list.AddValue("Conta|CONTA CORRENTE", Messages.Obrigatorio + "\nSE NÃO HOUVER NENHUMA CONTA CORRENTE CADASTRADA\nACESSE A TELA BANCOS E CONTAS PARA INCLUIR");
+ }
+ if (!string.IsNullOrWhiteSpace(Documento) && Documento.Length > 50)
+ {
+ list.AddValue("Documento", string.Format(Messages.MaiorQueLimite, 50));
+ }
+ if (!string.IsNullOrWhiteSpace(Competencia) && Competencia.Length > 8)
+ {
+ list.AddValue("Competencia|COMPETÊNCIA", string.Format(Messages.MaiorQueLimite, 8));
+ }
+ if (!string.IsNullOrWhiteSpace(Complemento) && Complemento.Length > 50)
+ {
+ list.AddValue("Complemento", string.Format(Messages.MaiorQueLimite, 50));
+ }
+ if (Baixa.HasValue && (DateTime.Compare(Baixa.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Baixa.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Baixa", string.Format(Messages.DataInvalida));
+ }
+ if (DateTime.Compare(Vencimento, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Vencimento, new DateTime(9999, 12, 31)) > 0)
+ {
+ list.AddValue("Vencimento", string.Format(Messages.DataInvalida));
+ }
+ if (Pagamento.HasValue && (DateTime.Compare(Pagamento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Pagamento.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Pagamento", string.Format(Messages.DataInvalida));
+ }
+ if (!Baixa.HasValue && Baixado)
+ {
+ list.AddValue("Baixa", "NÃO É POSSÍVEL SALVAR UM DOCUMENTO SEM DATA DE BAIXA QUANDO O LANÇAMENTO POSSUÍ BAIXA");
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro/Plano.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro/Plano.cs
new file mode 100644
index 0000000..7a3ed22
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro/Plano.cs
@@ -0,0 +1,42 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Financeiro;
+
+public class Plano : DomainBase, IDomain
+{
+ private string _descricao;
+
+ public bool Selecionado { get; set; }
+
+ public string Descricao
+ {
+ get
+ {
+ return _descricao?.ToUpper();
+ }
+ set
+ {
+ _descricao = value;
+ }
+ }
+
+ public bool Ativo { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Descricao))
+ {
+ list.AddValue("Descricao", Messages.Obrigatorio);
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro/Planos.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro/Planos.cs
new file mode 100644
index 0000000..adefad5
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro/Planos.cs
@@ -0,0 +1,114 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Domain.Seguros;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Financeiro;
+
+public class Planos : DomainBase, IDomain
+{
+ private string _descricao;
+
+ private Sinal _sinal;
+
+ private string _nome;
+
+ public bool Selecionado { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("DESCRIÇÃO")]
+ public string Descricao
+ {
+ get
+ {
+ return _descricao?.ToUpper();
+ }
+ set
+ {
+ _descricao = value;
+ string text = ((Sinal == Sinal.Credito) ? "(+)" : "(-)");
+ Nome = value.ToUpper() + " " + text;
+ }
+ }
+
+ [Log(true)]
+ public string Nome
+ {
+ get
+ {
+ return _nome.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("TIPO CONTA")]
+ public TipoConta TipoConta { get; set; }
+
+ [Log(true)]
+ public bool Ativo { get; set; }
+
+ [Log(true)]
+ public Sinal Sinal
+ {
+ get
+ {
+ return _sinal;
+ }
+ set
+ {
+ _sinal = value;
+ string text = ((value == Sinal.Credito) ? "(+)" : "(-)");
+ Nome = Descricao + " " + text;
+ }
+ }
+
+ [Log(true)]
+ public Plano Plano { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Descricao))
+ {
+ list.AddValue("Descricao", Messages.Obrigatorio);
+ }
+ if (Plano == null)
+ {
+ list.AddValue("Plano", Messages.Obrigatorio);
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ List<TupleList> list = new List<TupleList>();
+ TupleList tupleList = new TupleList();
+ ObservableCollection<Tuple<string, string, string>> obj = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("NOME", string.IsNullOrWhiteSpace(Nome) ? "" : Nome, ""),
+ new Tuple<string, string, string>("PLANO", (Plano == null) ? "" : Plano?.Descricao, ""),
+ new Tuple<string, string, string>("ATIVO", Ativo ? "SIM" : "NÃO", "")
+ };
+ _ = Sinal;
+ obj.Add(new Tuple<string, string, string>("SINAL", Sinal.GetDescription(), ""));
+ tupleList.Tuples = obj;
+ list.Add(tupleList);
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro/RelatorioLancamentos.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro/RelatorioLancamentos.cs
new file mode 100644
index 0000000..00b32ea
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro/RelatorioLancamentos.cs
@@ -0,0 +1,62 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Financeiro;
+
+public class RelatorioLancamentos
+{
+ [Description("FORNECEDOR")]
+ public string Fornecedor { get; set; }
+
+ [Description("HISTORICO")]
+ public string Historico { get; set; }
+
+ [Description("DOCUMENTO")]
+ public string Documento { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("PARCELA")]
+ public int Parcela { get; set; }
+
+ [Tipo("DATA")]
+ [Description("VENCIMENTO")]
+ public DateTime Vencimento { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR")]
+ public decimal Valor { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA BAIXA")]
+ public DateTime? Baixa { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR PAGO")]
+ public decimal? ValorPago { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("PAGAMENTO")]
+ public DateTime? Pagamento { get; set; }
+
+ [Description("PLANO DE CONTAS")]
+ public string Plano { get; set; }
+
+ [Description("PLANOS")]
+ public string Planos { get; set; }
+
+ [Description("CENTRO DE CUSTO")]
+ public string Centro { get; set; }
+
+ [Description("CONTA")]
+ public string Conta { get; set; }
+
+ [Description("SINAL")]
+ public string Sinal { get; set; }
+
+ [Description("OBSERVAÇÃO")]
+ public string Observacao { get; set; }
+
+ [Description("COMPETÊNCIA")]
+ public string Competencia { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro/Saldo.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro/Saldo.cs
new file mode 100644
index 0000000..7ef9ab1
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro/Saldo.cs
@@ -0,0 +1,52 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Financeiro;
+
+public class Saldo : DomainBase, IDomain
+{
+ [Log(true)]
+ public BancosContas Conta { get; set; }
+
+ [Log(true)]
+ [Description("VALOR INÍCIO")]
+ public decimal ValorInicio { get; set; }
+
+ [Log(true)]
+ [Description("DATA INÍCIO")]
+ public DateTime? DataInicio { get; set; }
+
+ [Log(true)]
+ [Description("VALOR FINAL")]
+ public decimal? ValorFinal { get; set; }
+
+ [Log(true)]
+ [Description("DATA FINAL")]
+ public DateTime? DataFinal { get; set; }
+
+ [Log(true)]
+ public string Extrato { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (DataInicio.HasValue && (DateTime.Compare(DataInicio.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(DataInicio.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("DataInicio|ABERTURA", string.Format(Messages.DataInvalida));
+ }
+ if (DataFinal.HasValue && (DateTime.Compare(DataFinal.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(DataFinal.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("DataFinal|FECHAMENTO", string.Format(Messages.DataInvalida));
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro/SinteticoFinanceiro.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro/SinteticoFinanceiro.cs
new file mode 100644
index 0000000..d19f191
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro/SinteticoFinanceiro.cs
@@ -0,0 +1,20 @@
+namespace Gestor.Model.Domain.Financeiro;
+
+public class SinteticoFinanceiro
+{
+ public BancosContas Conta { get; set; }
+
+ public int Selecionados { get; set; }
+
+ public decimal Credito { get; set; }
+
+ public decimal Debito { get; set; }
+
+ public decimal Liquido { get; set; }
+
+ public decimal LiquidoPago { get; set; }
+
+ public int Filtrados { get; set; }
+
+ public decimal LiquidoSelecionados { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro/TipoConta.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro/TipoConta.cs
new file mode 100644
index 0000000..40052a4
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro/TipoConta.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Financeiro;
+
+public class TipoConta : DomainBase, IDomain
+{
+ private string _descricao;
+
+ public string Descricao
+ {
+ get
+ {
+ return _descricao?.ToUpper();
+ }
+ set
+ {
+ _descricao = value;
+ }
+ }
+
+ public bool Ativo { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Descricao))
+ {
+ list.AddValue("Descricao", Messages.Obrigatorio);
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Financeiro/Transferencia.cs b/Gestor.Model/Gestor.Model.Domain.Financeiro/Transferencia.cs
new file mode 100644
index 0000000..35f816e
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Financeiro/Transferencia.cs
@@ -0,0 +1,47 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Financeiro;
+
+public class Transferencia
+{
+ public BancosContas Origem { get; set; }
+
+ public decimal Valor { get; set; }
+
+ public DateTime Data { get; set; }
+
+ public BancosContas Destino { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (Origem == null)
+ {
+ list.AddValue("Origem", Messages.Obrigatorio);
+ }
+ if (Destino == null)
+ {
+ list.AddValue("Destino", Messages.Obrigatorio);
+ }
+ if (Origem != null && Destino != null && Origem.Id == Destino.Id)
+ {
+ list.AddValue("CONTAS", "A CONTA DE ORIGEM NÃO PODE SER A MESMA QUE A DESTINO.");
+ }
+ if (DateTime.Compare(Data, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Data, new DateTime(9999, 12, 31)) > 0)
+ {
+ list.AddValue("Data", string.Format(Messages.DataInvalida));
+ }
+ if (Valor <= 0m)
+ {
+ list.AddValue("Valor", Messages.Obrigatorio);
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Generic/Diferenca.cs b/Gestor.Model/Gestor.Model.Domain.Generic/Diferenca.cs
new file mode 100644
index 0000000..9c1265e
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Generic/Diferenca.cs
@@ -0,0 +1,12 @@
+namespace Gestor.Model.Domain.Generic;
+
+public class Diferenca
+{
+ public string Campo { get; set; }
+
+ public string Descricao { get; set; }
+
+ public string ValorAnterior { get; set; }
+
+ public string ValorAtual { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Generic/DomainBase.cs b/Gestor.Model/Gestor.Model.Domain.Generic/DomainBase.cs
new file mode 100644
index 0000000..e4a9edf
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Generic/DomainBase.cs
@@ -0,0 +1,307 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Linq;
+using System.Reflection;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Generic;
+
+public abstract class DomainBase : ICloneable
+{
+ private List<FieldInformation> _originalValues = new List<FieldInformation>();
+
+ public long Id { get; set; }
+
+ public void Initialize()
+ {
+ _originalValues = GetProperties();
+ }
+
+ public List<FieldInformation> GetProperties(object obj)
+ {
+ return (from x in obj.GetType().GetProperties()
+ where !HasValidate(x.GetValue(obj)) && GetLogAttribute(x).GetValueOrDefault()
+ select x into key
+ select new FieldInformation
+ {
+ Name = key.Name,
+ Description = GetDescriptionAttribute(key),
+ Value = key.GetValue(obj)
+ }).ToList();
+ }
+
+ public List<FieldInformation> GetProperties()
+ {
+ List<FieldInformation> dictionary = new List<FieldInformation>();
+ GetType().GetProperties().ToList().ForEach(delegate(PropertyInfo x)
+ {
+ if (!(x.Name == "ValidationEvent"))
+ {
+ bool? logAttribute = GetLogAttribute(x);
+ if (!logAttribute.HasValue || logAttribute != false)
+ {
+ object value = x.GetValue(this);
+ if (!HasValidate(value))
+ {
+ FieldInformation property = GetProperty(x, value, logAttribute);
+ if (property != null)
+ {
+ dictionary.Add(property);
+ }
+ }
+ else
+ {
+ dictionary.AddRange(GetPropertiesChield(value, GetDescriptionAttribute(x), logAttribute, defaultInfo: true));
+ }
+ }
+ }
+ });
+ return dictionary;
+ }
+
+ public FieldInformation GetProperty(PropertyInfo property, dynamic value, bool? log, string description = null)
+ {
+ if (!log.HasValue || log == false)
+ {
+ return null;
+ }
+ return new FieldInformation
+ {
+ Name = property.Name,
+ Description = (description ?? GetDescriptionAttribute(property)),
+ Value = value
+ };
+ }
+
+ private List<FieldInformation> GetPropertiesChield(dynamic obj, string description, bool? log, bool defaultInfo = false)
+ {
+ List<FieldInformation> list = new List<FieldInformation>();
+ if (obj == null)
+ {
+ return list;
+ }
+ dynamic properties = obj.GetType().GetProperties();
+ foreach (dynamic item in properties)
+ {
+ if ((item.Name == "ValidationEvent") || ((defaultInfo && !GetDefaultAttribute(item)) ? true : false))
+ {
+ continue;
+ }
+ log = GetLogAttribute(item);
+ if (log.HasValue && log == false)
+ {
+ continue;
+ }
+ dynamic value = item.GetValue(obj);
+ if (value != null && HasValidate(value))
+ {
+ list.AddRange(GetPropertiesChield(value, GetDescriptionAttribute(item), log, true));
+ continue;
+ }
+ dynamic property = GetProperty(item, value, log, description);
+ if (property != null)
+ {
+ list.Add(property);
+ }
+ }
+ return list;
+ }
+
+ private bool? GetLogAttribute(PropertyInfo info)
+ {
+ object[] customAttributes = info.GetCustomAttributes(typeof(LogAttribute), inherit: true);
+ if (customAttributes.Length == 0)
+ {
+ return null;
+ }
+ return ((LogAttribute)customAttributes[0]).Description;
+ }
+
+ private bool GetDefaultAttribute(PropertyInfo info)
+ {
+ return info.GetCustomAttributes(typeof(NameAttribute), inherit: true).Length != 0;
+ }
+
+ private string GetDescriptionAttribute(PropertyInfo info)
+ {
+ if (info == null)
+ {
+ return "";
+ }
+ object[] customAttributes = info.GetCustomAttributes(typeof(DescriptionAttribute), inherit: true);
+ if (customAttributes.Length == 0)
+ {
+ return info.Name.ToUpper();
+ }
+ return ((DescriptionAttribute)customAttributes[0]).Description;
+ }
+
+ public bool HasChange()
+ {
+ return !GetProperties().All(_originalValues.Contains);
+ }
+
+ public bool HasChange(string property)
+ {
+ IEnumerable<FieldInformation> @object = _originalValues.Where((FieldInformation x) => x.Name == property);
+ return !GetProperties().All(@object.Contains<FieldInformation>);
+ }
+
+ public object Clone()
+ {
+ return MemberwiseClone();
+ }
+
+ public static void Copy<TU, T>(TU dest, T source)
+ {
+ List<PropertyInfo> list = (from x in typeof(T).GetProperties()
+ where x.CanRead
+ select x).ToList();
+ List<PropertyInfo> source2 = (from x in typeof(TU).GetProperties()
+ where x.CanWrite
+ select x).ToList();
+ foreach (PropertyInfo sourceProp in list)
+ {
+ if (source2.Any((PropertyInfo x) => x.Name == sourceProp.Name))
+ {
+ source2.First((PropertyInfo x) => x.Name == sourceProp.Name).SetValue(dest, sourceProp.GetValue(source, null), null);
+ }
+ }
+ }
+
+ public List<ValorOriginal> GetValorOriginal()
+ {
+ return (from x in GetProperties()
+ select new ValorOriginal
+ {
+ Campo = x.Name,
+ Descricao = x.Description,
+ ValorAtual = ((!((x.Value != null) ? true : false)) ? null : ((!(x.Value.GetType() is DateTime)) ? x.Value?.ToString() : x.Value?.ToString("G")))
+ }).ToList();
+ }
+
+ public List<Diferenca> Compare()
+ {
+ List<FieldInformation> current = GetProperties();
+ List<Diferenca> difference = new List<Diferenca>();
+ PropertyInfo[] properties = GetType().GetProperties();
+ _originalValues.ToList().ForEach(delegate(FieldInformation x)
+ {
+ FieldInformation fieldInformation = current.FirstOrDefault((FieldInformation k) => k.Description == x.Description);
+ if (!((fieldInformation?.Value == null && x.Value == null) ? true : false))
+ {
+ PropertyInfo propertyInfo = properties.FirstOrDefault((PropertyInfo p) => p.Name == x.Name);
+ bool flag = propertyInfo != null && propertyInfo.GetCustomAttributes(typeof(ForceLogAttribute), inherit: true).Length != 0;
+ if (fieldInformation?.Value == null && x.Value != null && !string.IsNullOrWhiteSpace(x.Value.ToString()))
+ {
+ difference.Add(new Diferenca
+ {
+ Campo = x.Name,
+ Descricao = x.Description,
+ ValorAnterior = x.Value.ToString(),
+ ValorAtual = null
+ });
+ }
+ else if (fieldInformation.Value != null && x.Value == null && !string.IsNullOrWhiteSpace(fieldInformation.Value.ToString()))
+ {
+ difference.Add(new Diferenca
+ {
+ Campo = x.Name,
+ Descricao = x.Description,
+ ValorAnterior = null,
+ ValorAtual = fieldInformation.Value.ToString()
+ });
+ }
+ else if (!((fieldInformation.Value.ToString() == x.Value.ToString() && !flag) ? true : false))
+ {
+ difference.Add((x.Value.GetType() is DateTime) ? new Diferenca
+ {
+ Campo = x.Name,
+ Descricao = x.Description,
+ ValorAnterior = x.Value?.ToString("G"),
+ ValorAtual = fieldInformation.Value?.ToString("G")
+ } : new Diferenca
+ {
+ Campo = x.Name,
+ Descricao = x.Description,
+ ValorAnterior = x.Value?.ToString(),
+ ValorAtual = fieldInformation.Value?.ToString()
+ });
+ }
+ }
+ });
+ return difference;
+ }
+
+ public List<Diferenca> Compare(List<ValorOriginal> valoresOriginais)
+ {
+ List<FieldInformation> current = GetProperties();
+ List<Diferenca> difference = new List<Diferenca>();
+ PropertyInfo[] properties = GetType().GetProperties();
+ valoresOriginais.ForEach(delegate(ValorOriginal x)
+ {
+ FieldInformation fieldInformation = current.First((FieldInformation k) => k.Name == x.Campo);
+ if (!((fieldInformation.Value == null && x.ValorAtual == null) ? true : false))
+ {
+ PropertyInfo propertyInfo = properties.FirstOrDefault((PropertyInfo p) => p.Name == x.Campo);
+ bool flag = propertyInfo != null && propertyInfo.GetCustomAttributes(typeof(ForceLogAttribute), inherit: true).Length != 0;
+ if (fieldInformation.Value == null && x.ValorAtual != null && !string.IsNullOrWhiteSpace(x.ValorAtual))
+ {
+ difference.Add(new Diferenca
+ {
+ Campo = x.Campo,
+ Descricao = fieldInformation.Description,
+ ValorAnterior = x.ValorAtual,
+ ValorAtual = null
+ });
+ }
+ else if (fieldInformation.Value != null && x.ValorAtual == null && !string.IsNullOrWhiteSpace(fieldInformation.Value.ToString()))
+ {
+ difference.Add(new Diferenca
+ {
+ Campo = x.Campo,
+ Descricao = fieldInformation.Description,
+ ValorAnterior = null,
+ ValorAtual = fieldInformation.Value.ToString()
+ });
+ }
+ else if (!((fieldInformation.Value != null && fieldInformation.Value.ToString() == x.ValorAtual && !flag) ? true : false))
+ {
+ difference.Add((fieldInformation.Value?.GetType() is DateTime) ? new Diferenca
+ {
+ Campo = x.Campo,
+ Descricao = x.Descricao,
+ ValorAnterior = x.ValorAtual,
+ ValorAtual = fieldInformation.Value?.ToString("G")
+ } : new Diferenca
+ {
+ Campo = x.Campo,
+ Descricao = x.Descricao,
+ ValorAnterior = x.ValorAtual?.ToString(),
+ ValorAtual = fieldInformation.Value?.ToString()
+ });
+ }
+ }
+ });
+ return difference;
+ }
+
+ public bool HasValidate(object objectToCheck)
+ {
+ if (objectToCheck == null)
+ {
+ return false;
+ }
+ return objectToCheck.GetType().GetProperty("ValidationEvent") != null;
+ }
+
+ public bool HasProperty(object objectToCheck, string propertyName)
+ {
+ if (objectToCheck == null)
+ {
+ return false;
+ }
+ return objectToCheck.GetType().GetProperty(propertyName) != null;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Generic/EmailBase.cs b/Gestor.Model/Gestor.Model.Domain.Generic/EmailBase.cs
new file mode 100644
index 0000000..815f490
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Generic/EmailBase.cs
@@ -0,0 +1,21 @@
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Generic;
+
+public class EmailBase : DomainBase
+{
+ private string _email;
+
+ [Log(true)]
+ public string Email
+ {
+ get
+ {
+ return _email?.ToLower().Trim();
+ }
+ set
+ {
+ _email = value;
+ }
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Generic/EnderecoBase.cs b/Gestor.Model/Gestor.Model.Domain.Generic/EnderecoBase.cs
new file mode 100644
index 0000000..6a8dae1
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Generic/EnderecoBase.cs
@@ -0,0 +1,107 @@
+using System.ComponentModel;
+using System.Text.RegularExpressions;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Generic;
+
+public class EnderecoBase : DomainBase
+{
+ private string _cep;
+
+ private string _endereco;
+
+ private string _numero;
+
+ private string _bairro;
+
+ private string _cidade;
+
+ private string _estado;
+
+ [Log(true)]
+ public string Cep
+ {
+ get
+ {
+ if (_cep == null || !Regex.IsMatch(_cep, "[0-9]+"))
+ {
+ return "";
+ }
+ return _cep.Trim();
+ }
+ set
+ {
+ _cep = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("ENDEREÇO")]
+ public string Endereco
+ {
+ get
+ {
+ return _endereco;
+ }
+ set
+ {
+ _endereco = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("NÚMERO")]
+ public string Numero
+ {
+ get
+ {
+ return _numero?.ToUpper();
+ }
+ set
+ {
+ _numero = value;
+ }
+ }
+
+ [Log(true)]
+ public string Complemento { get; set; }
+
+ [Log(true)]
+ public string Bairro
+ {
+ get
+ {
+ return _bairro;
+ }
+ set
+ {
+ _bairro = value;
+ }
+ }
+
+ [Log(true)]
+ public string Cidade
+ {
+ get
+ {
+ return _cidade;
+ }
+ set
+ {
+ _cidade = value;
+ }
+ }
+
+ [Log(true)]
+ public string Estado
+ {
+ get
+ {
+ return _estado?.ToUpper().Trim();
+ }
+ set
+ {
+ _estado = value;
+ }
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Generic/FieldInformation.cs b/Gestor.Model/Gestor.Model.Domain.Generic/FieldInformation.cs
new file mode 100644
index 0000000..21d9edb
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Generic/FieldInformation.cs
@@ -0,0 +1,10 @@
+namespace Gestor.Model.Domain.Generic;
+
+public class FieldInformation
+{
+ public string Name { get; set; }
+
+ public string Description { get; set; }
+
+ public dynamic Value { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Generic/IDomain.cs b/Gestor.Model/Gestor.Model.Domain.Generic/IDomain.cs
new file mode 100644
index 0000000..439fc81
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Generic/IDomain.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+
+namespace Gestor.Model.Domain.Generic;
+
+public interface IDomain
+{
+ Func<List<KeyValuePair<string, string>>> ValidationEvent { get; }
+
+ List<KeyValuePair<string, string>> Validate();
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Generic/TelefoneBase.cs b/Gestor.Model/Gestor.Model.Domain.Generic/TelefoneBase.cs
new file mode 100644
index 0000000..04cbea5
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Generic/TelefoneBase.cs
@@ -0,0 +1,61 @@
+using System.Collections.Generic;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+
+namespace Gestor.Model.Domain.Generic;
+
+public class TelefoneBase : DomainBase
+{
+ private string _numero;
+
+ private string _prefixo;
+
+ [Log(true)]
+ public TipoTelefone? Tipo { get; set; }
+
+ [Log(true)]
+ public string Prefixo
+ {
+ get
+ {
+ return _prefixo?.ToUpper().Trim();
+ }
+ set
+ {
+ _prefixo = value;
+ }
+ }
+
+ [Log(true)]
+ public string Numero
+ {
+ get
+ {
+ return _numero?.ToUpper().Trim();
+ }
+ set
+ {
+ _numero = value;
+ }
+ }
+
+ public List<KeyValuePair<string, string>> ValidateBase(bool obrigatorio = true)
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (Tipo.HasValue && Tipo.GetValueOrDefault() != TipoTelefone.Gratuita && Tipo.GetValueOrDefault() != TipoTelefone.Internacional && Tipo.GetValueOrDefault() != TipoTelefone.Outros && Tipo.GetValueOrDefault() != TipoTelefone.Whatsapp && Tipo.GetValueOrDefault() != TipoTelefone.TarifaUnica && Tipo.GetValueOrDefault() != TipoTelefone.Comercial)
+ {
+ if (!string.IsNullOrWhiteSpace(Prefixo) && !Prefixo.ValidacaoPrefixo())
+ {
+ list.AddValue("Prefixo|DDD", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(Numero) && !Numero.ValidacaoTelefone())
+ {
+ list.AddValue("Numero|TELEFONE", Messages.Invalido);
+ }
+ return list;
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Generic/ValorOriginal.cs b/Gestor.Model/Gestor.Model.Domain.Generic/ValorOriginal.cs
new file mode 100644
index 0000000..035ae3a
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Generic/ValorOriginal.cs
@@ -0,0 +1,10 @@
+namespace Gestor.Model.Domain.Generic;
+
+public class ValorOriginal
+{
+ public string Campo { get; set; }
+
+ public string Descricao { get; set; }
+
+ public string ValorAtual { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.MalaDireta/Copia.cs b/Gestor.Model/Gestor.Model.Domain.MalaDireta/Copia.cs
new file mode 100644
index 0000000..c6a375d
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.MalaDireta/Copia.cs
@@ -0,0 +1,10 @@
+using System.Collections.Generic;
+
+namespace Gestor.Model.Domain.MalaDireta;
+
+public class Copia
+{
+ public List<string> CopiaComum { get; set; }
+
+ public List<string> CopiaOculta { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.MalaDireta/MalaDireta.cs b/Gestor.Model/Gestor.Model.Domain.MalaDireta/MalaDireta.cs
new file mode 100644
index 0000000..e7a8e24
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.MalaDireta/MalaDireta.cs
@@ -0,0 +1,43 @@
+using System.Collections.Generic;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Common;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.MalaDireta;
+
+public class MalaDireta
+{
+ public bool Selecionado { get; set; }
+
+ public bool? Enviado { get; set; }
+
+ public string InfoEnvio { get; set; }
+
+ public string Email { get; set; }
+
+ public int Ordem { get; set; }
+
+ public Cliente Cliente { get; set; }
+
+ public Documento Apolice { get; set; }
+
+ public Parcela Parcela { get; set; }
+
+ public Item Item { get; set; }
+
+ public Sinistro Sinistro { get; set; }
+
+ public Prospeccao Prospeccao { get; set; }
+
+ public List<IndiceArquivoDigital> ArquivoDigital { get; set; }
+
+ public string Assunto { get; set; }
+
+ public string Corpo { get; set; }
+
+ public Copia Copia { get; set; }
+
+ public TipoTela Tela { get; set; }
+
+ public Relatorio Relatorio { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.MalaDireta/ModeloMalaDireta.cs b/Gestor.Model/Gestor.Model.Domain.MalaDireta/ModeloMalaDireta.cs
new file mode 100644
index 0000000..9256b0c
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.MalaDireta/ModeloMalaDireta.cs
@@ -0,0 +1,32 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.MalaDireta;
+
+public class ModeloMalaDireta : DomainBase, IDomain
+{
+ public string Assunto { get; set; }
+
+ public string Corpo { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Assunto))
+ {
+ list.AddValue("Assunto", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(Corpo))
+ {
+ list.AddValue("Corpo", Messages.Obrigatorio);
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.MalaDireta/VariaveisMalaDireta.cs b/Gestor.Model/Gestor.Model.Domain.MalaDireta/VariaveisMalaDireta.cs
new file mode 100644
index 0000000..96868cb
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.MalaDireta/VariaveisMalaDireta.cs
@@ -0,0 +1,85 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.Domain.MalaDireta;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum VariaveisMalaDireta
+{
+ [Entity("<|DATA|>")]
+ [Description("DATA ATUAL")]
+ Data,
+ [Entity("<|CLIENTE|>")]
+ [Description("NOME DO CLIENTE")]
+ Cliente,
+ [Entity("<|CPFCNPJ|>")]
+ [Description("CPF/CNPJ")]
+ Documento,
+ [Entity("<|PROPOSTA|>")]
+ [Description("NÚMERO PROPOSTA")]
+ Proposta,
+ [Entity("<|APOLICE|>")]
+ [Description("NÚMERO APÓLICE")]
+ Apolice,
+ [Entity("<|RAMO|>")]
+ [Description("RAMO")]
+ Ramo,
+ [Entity("<|SEGURADORA|>")]
+ [Description("SEGURADORA")]
+ Seguradora,
+ [Entity("<|VIGENCIA1|>")]
+ [Description("VIGÊNCIA INICIAL")]
+ Vigencia1,
+ [Entity("<|VIGENCIA2|>")]
+ [Description("VIGÊNCIA FINAL")]
+ Vigencia2,
+ [Entity("<|VENCIMENTO|>")]
+ [Description("VENCIMENTO PARCELA")]
+ Vencimento,
+ [Entity("<|VALOR|>")]
+ [Description("VALOR PARCELA")]
+ Valor,
+ [Entity("<|ITEM|>")]
+ [Description("DESCRIÇÃO ITEM")]
+ Item,
+ [Entity("<|SINISTRO|>")]
+ [Description("NÚMERO SINISTRO")]
+ Sinistro,
+ [Entity("<|NUMPARCELA|>")]
+ [Description("NÚMERO DA PARCELA")]
+ NumParcela,
+ [Entity("<|ANIVERSARIO|>")]
+ [Description("ANIVERSÁRIO")]
+ Aniversario,
+ [Entity("<|NASCIMENTO|>")]
+ [Description("NASCIMENTO")]
+ Nascimento,
+ [Entity("<|VENCTOCNH|>")]
+ [Description("VENCIMENTO CNH")]
+ VencimentoCnh,
+ [Entity("<|LINKASSINATURA|>")]
+ [Description("LINK ASSINATURA ELETRÔNICA")]
+ LinkAssinatura,
+ [Entity("<|LINKVISITA|>")]
+ [Description("LINK CARTÃO ELETRÔNICO")]
+ LinkVisita,
+ [Entity("<|LINKASSISTENCIA|>")]
+ [Description("LINK CARTÃO ASSISTÊNCIA")]
+ LinkAssistencia,
+ [Entity("<|LIQUIDO|>")]
+ [Description("PRÊMIO LIQUIDO")]
+ Liquido,
+ [Entity("<|TOTAL|>")]
+ [Description("PRÊMIO TOTAL")]
+ Total,
+ [Entity("<|PAGAMENTO|>")]
+ [Description("FORMA DE PAGAMENTO")]
+ Pagamento,
+ [Entity("<|NUMERODEPARCELAS|>")]
+ [Description("NÚMERO DE PARCELAS")]
+ NumDeParcelas,
+ [Entity("<|VALORDASPARCELAS|>")]
+ [Description("VALOR DAS PARCELAS")]
+ ValorDasParcelas
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.ApolicePendente/ApolicePendente.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.ApolicePendente/ApolicePendente.cs
new file mode 100644
index 0000000..4afd49b
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.ApolicePendente/ApolicePendente.cs
@@ -0,0 +1,110 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios.ApolicePendente;
+
+public class ApolicePendente
+{
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public long IdEmpresa { get; set; }
+
+ [Description("FILIAL")]
+ public string Empresa { get; set; }
+
+ [Tipo("INVALID")]
+ public Documento Documento { get; set; }
+
+ [Description("PENDÊNCIA (DIAS)")]
+ public int Pendencia { get; set; }
+
+ [Description("CLIENTE")]
+ public string Cliente { get; set; }
+
+ [Description("DOCUMENTO DO CLIENTE")]
+ public string DocumentoCli { get; set; }
+
+ [Description("PROPOSTA")]
+ public string Proposta { get; set; }
+
+ [Description("PEDIDO ENDOSSO")]
+ public string PedidoEndosso { get; set; }
+
+ [Description("STATUS")]
+ public string Status { get; set; }
+
+ [Tipo("DATA")]
+ [Description("VIGÊNCIA INICIAL")]
+ public DateTime VigenciaInicial { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("VIGÊNCIA FINAL")]
+ public DateTime? VigenciaFinal { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("COMISSÃO")]
+ public decimal Comissao { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO LÍQUIDO")]
+ public decimal PremioLiquido { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO TOTAL")]
+ public decimal PremioTotal { get; set; }
+
+ [Description("SEGURADORA")]
+ public string Seguradora { get; set; }
+
+ [Description("RAMO")]
+ public string Ramo { get; set; }
+
+ [Description("PRODUTO")]
+ public string Produto { get; set; }
+
+ [Description("TIPO RENOVAÇÃO")]
+ public string Negocio { get; set; }
+
+ [Description("ESTIPULANTE")]
+ public string Estipulante { get; set; }
+
+ [Description("VENDEDOR PRINCIPAL")]
+ public string Vendedor { get; set; }
+
+ [Description("TODOS VENDEDORES")]
+ public string TodosVendedores { get; set; }
+
+ [Description("DATA CONTROLE")]
+ public DateTime? DataControle { get; set; }
+
+ [Description("STATUS APÓLICE")]
+ public string StatusApolice { get; set; }
+
+ [Tipo("INVALID")]
+ public int Tipo { get; set; }
+
+ [Description("ITEM")]
+ public string Item { get; set; }
+
+ [Tipo("INVALID")]
+ public bool Vinculo { get; set; }
+
+ [Description("BANCO")]
+ public string Banco { get; set; }
+
+ [Description("AGÊNCIA")]
+ public string Agencia { get; set; }
+
+ [Description("CONTA")]
+ public string Conta { get; set; }
+
+ [Description("PASTA")]
+ public string Pasta { get; set; }
+
+ [Description("PASTA CLIENTE")]
+ public string PastaCliente { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.ApolicePendente/ContainerApolicePendente.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.ApolicePendente/ContainerApolicePendente.cs
new file mode 100644
index 0000000..aec616d
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.ApolicePendente/ContainerApolicePendente.cs
@@ -0,0 +1,12 @@
+using System.Collections.ObjectModel;
+
+namespace Gestor.Model.Domain.Relatorios.ApolicePendente;
+
+public class ContainerApolicePendente
+{
+ public string Agrupamento { get; set; }
+
+ public ObservableCollection<ApolicePendente> Analitico { get; set; }
+
+ public ObservableCollection<Sintetico> Sintetico { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Auditoria/Auditoria.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Auditoria/Auditoria.cs
new file mode 100644
index 0000000..943e4d6
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Auditoria/Auditoria.cs
@@ -0,0 +1,103 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios.Auditoria;
+
+public class Auditoria
+{
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public Documento Documento { get; set; }
+
+ [Description("CLIENTE")]
+ public string Cliente { get; set; }
+
+ [Description("APÓLICE")]
+ public string Apolice { get; set; }
+
+ [Description("ENDOSSO")]
+ public string Endosso { get; set; }
+
+ [Description("STATUS")]
+ public string Status { get; set; }
+
+ [Tipo("DATA")]
+ [Description("VIGÊNCIA INICIAL")]
+ public DateTime VigenciaInicial { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("VIGÊNCIA FINAL")]
+ public DateTime? VigenciaFinal { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO LÍQUIDO")]
+ public decimal PremioLiquido { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO TOTAL")]
+ public decimal PremioTotal { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO ADICIONAL")]
+ public decimal PremioAdicional { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("COMISSÃO")]
+ public decimal Comissao { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO PREVISTA")]
+ public decimal ComissaoPrevista { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO RECEBIDA")]
+ public decimal ComissaoRecebida { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO PENDENTE")]
+ public decimal ComissaoPendente { get; set; }
+
+ [Description("SEGURADORA")]
+ public string Seguradora { get; set; }
+
+ [Description("RAMO")]
+ public string Ramo { get; set; }
+
+ [Description("PRODUTO")]
+ public string Produto { get; set; }
+
+ [Description("ESTIPULANTE")]
+ public string Estipulante { get; set; }
+
+ [Description("VENDEDOR PRINCIPAL")]
+ public string Vendedor { get; set; }
+
+ [Description("TODOS VENDEDORES")]
+ public string TodosVendedores { get; set; }
+
+ [Tipo("INVALID")]
+ public int Tipo { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA CONTROLE")]
+ public DateTime? DataControle { get; set; }
+
+ [Description("STATUS APÓLICE")]
+ public string StatusApolice { get; set; }
+
+ [Description("ITEM")]
+ public string Item { get; set; }
+
+ [Description("RECEBIDO POR COMPLETO")]
+ public string Completo { get; set; }
+
+ [Description("PASTA")]
+ public string Pasta { get; set; }
+
+ [Description("PASTA CLIENTE")]
+ public string PastaCliente { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Classificacao/Classificacao.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Classificacao/Classificacao.cs
new file mode 100644
index 0000000..b1d1699
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Classificacao/Classificacao.cs
@@ -0,0 +1,32 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios.Classificacao;
+
+public class Classificacao
+{
+ [Tipo("INVALID")]
+ public Gestor.Model.Domain.Seguros.Cliente EntidadeCliente { get; set; }
+
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Description("NOME")]
+ public string Nome { get; set; }
+
+ [Description("PREMIO LIQUIDO")]
+ public string Premioliquido { get; set; }
+
+ [Description("COMISSÃO")]
+ public string Comissao { get; set; }
+
+ [Description("RESULTADO")]
+ public string Resultado { get; set; }
+
+ [Description("GERAL")]
+ public string Geral { get; set; }
+
+ [Description("ATIVO")]
+ public string Ativo { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Cliente/SinteticoClientes.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Cliente/SinteticoClientes.cs
new file mode 100644
index 0000000..4e4dccd
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Cliente/SinteticoClientes.cs
@@ -0,0 +1,13 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.Cliente;
+
+public class SinteticoClientes
+{
+ public string Descricao { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("TOTAL DE CLIENTES")]
+ public decimal Total { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.ClientesAtivosInativos/ClientesAtivosInativos.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.ClientesAtivosInativos/ClientesAtivosInativos.cs
new file mode 100644
index 0000000..3d7b3f9
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.ClientesAtivosInativos/ClientesAtivosInativos.cs
@@ -0,0 +1,222 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios.ClientesAtivosInativos;
+
+public class ClientesAtivosInativos
+{
+ private string _nome;
+
+ private string _ramo;
+
+ private string _endereco;
+
+ private string _bairro;
+
+ private string _complemento;
+
+ private string _cidade;
+
+ private string _estado;
+
+ private string _email;
+
+ private string _vendedor;
+
+ [Tipo("INVALID")]
+ public Gestor.Model.Domain.Seguros.Cliente EntidadeCliente { get; set; }
+
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public long IdEmpresa { get; set; }
+
+ [Description("FILIAL")]
+ public string Empresa { get; set; }
+
+ [Tipo("INVALID")]
+ [Description("ID")]
+ public long Id { get; set; }
+
+ [Description("CLIENTE")]
+ public string Nome
+ {
+ get
+ {
+ return _nome;
+ }
+ set
+ {
+ _nome = value?.Trim()?.ToUpper();
+ }
+ }
+
+ [Description("CPF/CNPJ")]
+ public string Documento { get; set; }
+
+ [Description("TIPO DE PESSOA")]
+ public string TipoPessoa { get; set; }
+
+ [Description("ESTADO CIVIL")]
+ public string EstadoCivil { get; set; }
+
+ [Description("RAMO")]
+ public string Ramo
+ {
+ get
+ {
+ return _ramo;
+ }
+ set
+ {
+ _ramo = value?.Trim()?.ToUpper();
+ }
+ }
+
+ [Description("ANIVERSÁRIO")]
+ public string Aniversario { get; set; }
+
+ [Description("ATIVO")]
+ public string Ativo { get; set; }
+
+ [Description("PROFISSÃO")]
+ public string Profissao { get; set; }
+
+ [Description("CIDADE")]
+ public string Cidade
+ {
+ get
+ {
+ return _cidade;
+ }
+ set
+ {
+ _cidade = value?.Trim()?.ToUpper();
+ }
+ }
+
+ [Description("ESTADO")]
+ public string Estado
+ {
+ get
+ {
+ return _estado;
+ }
+ set
+ {
+ _estado = value?.Trim()?.ToUpper();
+ }
+ }
+
+ [Description("CEP")]
+ public string Cep { get; set; }
+
+ [Description("ENDEREÇO")]
+ public string Endereco
+ {
+ get
+ {
+ return _endereco;
+ }
+ set
+ {
+ _endereco = value?.Trim()?.ToUpper();
+ }
+ }
+
+ [Description("NÚMERO")]
+ public string Numero { get; set; }
+
+ [Description("BAIRRO")]
+ public string Bairro
+ {
+ get
+ {
+ return _bairro;
+ }
+ set
+ {
+ _bairro = value?.Trim()?.ToUpper();
+ }
+ }
+
+ [Description("COMPLEMENTO")]
+ public string Complemento
+ {
+ get
+ {
+ return _complemento;
+ }
+ set
+ {
+ _complemento = value?.Trim()?.ToUpper();
+ }
+ }
+
+ [Description("TELEFONE")]
+ public string Telefone { get; set; }
+
+ [Description("E-MAIL")]
+ public string Email
+ {
+ get
+ {
+ return _email;
+ }
+ set
+ {
+ _email = value?.Trim()?.ToLower();
+ }
+ }
+
+ [Tipo("DATA?")]
+ [Description("NASCIMENTO")]
+ public DateTime? Nascimento { get; set; }
+
+ [Description("VENDEDOR")]
+ public string Vendedor
+ {
+ get
+ {
+ return _vendedor;
+ }
+ set
+ {
+ _vendedor = value?.Trim()?.ToUpper();
+ }
+ }
+
+ [Tipo("DATA?")]
+ [Description("VENCIMENTO CNH")]
+ public DateTime? VencimentoCnh { get; set; }
+
+ [Description("PARENTESCO")]
+ public string Parentesco { get; set; }
+
+ [Description("SEXO")]
+ public string Sexo { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("RENDA MENSAL")]
+ public decimal RendaMensal { get; set; }
+
+ [Tipo("QUANTIDADE?")]
+ [Description("ANOS DE IDADE")]
+ public int? Idade { get; set; }
+
+ [Description("PASTA CLIENTE")]
+ public string PastaCliente { get; set; }
+
+ [Description("RECEBER E-MAIL")]
+ public string RecebeEmail { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("CLIENTE DESDE")]
+ public DateTime? ClienteDesde { get; set; }
+
+ [Description("ESTIPULANTES")]
+ public string Estipulantes { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.ClientesAtivosInativos/SinteticoClientesAtivosInativos.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.ClientesAtivosInativos/SinteticoClientesAtivosInativos.cs
new file mode 100644
index 0000000..4b19c57
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.ClientesAtivosInativos/SinteticoClientesAtivosInativos.cs
@@ -0,0 +1,21 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.ClientesAtivosInativos;
+
+public class SinteticoClientesAtivosInativos
+{
+ public string Descricao { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("TOTAL DE CLIENTES")]
+ public decimal Total { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("TOTAL DE CLIENTES ATIVOS")]
+ public decimal Ativos { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("TOTAL DE CLIENTES INATIVOS")]
+ public decimal Inativos { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Comissao/Comissao.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Comissao/Comissao.cs
new file mode 100644
index 0000000..d532bf5
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Comissao/Comissao.cs
@@ -0,0 +1,163 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios.Comissao;
+
+public class Comissao
+{
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public Documento Documento { get; set; }
+
+ [Tipo("INVALID")]
+ public Parcela ParcelaEntity { get; set; }
+
+ public long IdEmpresa { get; set; }
+
+ [Description("FILIAL")]
+ public string Empresa { get; set; }
+
+ [Description("CLIENTE")]
+ public string Cliente { get; set; }
+
+ [Description("APÓLICE")]
+ public string Apolice { get; set; }
+
+ [Description("ENDOSSO")]
+ public string Endosso { get; set; }
+
+ [Description("STATUS")]
+ public string Status { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("VIGÊNCIA FINAL")]
+ public DateTime? VigenciaFinal { get; set; }
+
+ [Description("RAMO")]
+ public string Ramo { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("COMISSÃO PARCELA")]
+ public decimal ComissaoPerc { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO GERADA")]
+ public decimal ValorComissao { get; set; }
+
+ [Description("PARCELA")]
+ public string Parcela { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("RECEBIMENTO")]
+ public DateTime? Recebimento { get; set; }
+
+ [Tipo("DATA")]
+ [Description("VENCIMENTO")]
+ public DateTime Vencimento { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA QUITAÇÃO")]
+ public DateTime? Quitacao { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA PARCELA CONTROLE")]
+ public DateTime? Controle { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR REALIZADO")]
+ public decimal ValorRealizado { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO RECEBIDA")]
+ public decimal ComissaoRecebida { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR LÍQUIDO PARCELA")]
+ public decimal ValorLiquido { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("REPASSE")]
+ public decimal Repasse { get; set; }
+
+ [Description("TIPO RENOVAÇÃO")]
+ public string Negocio { get; set; }
+
+ [Description("SEGURADORA")]
+ public string Seguradora { get; set; }
+
+ [Description("PRODUTO")]
+ public string Produto { get; set; }
+
+ [Description("ESTIPULANTE")]
+ public string Estipulante { get; set; }
+
+ [Description("VENDEDOR PRINCIPAL")]
+ public string Vendedor { get; set; }
+
+ [Description("TODOS VENDEDORES")]
+ public string TodosVendedores { get; set; }
+
+ [Tipo("DATA")]
+ [Description("VIGÊNCIA INICIAL")]
+ public DateTime VigenciaInicial { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO LÍQUIDO")]
+ public decimal PremioLiquido { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO TOTAL")]
+ public decimal PremioTotal { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("COMISSÃO APÓLICE")]
+ public decimal ComissaoApolice { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA CONTROLE")]
+ public DateTime? DataControle { get; set; }
+
+ [Description("STATUS APÓLICE")]
+ public string StatusApolice { get; set; }
+
+ [Description("ITEM")]
+ public string Item { get; set; }
+
+ [Tipo("ENUM")]
+ [Description("TIPO DE PARCELA")]
+ public SubTipo SubTipo { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR IR")]
+ public decimal Ir { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR ISS")]
+ public decimal Iss { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("DESCONTO")]
+ public decimal Desconto { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("OUTROS")]
+ public decimal Outros { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("RECEBIMENTO BRUTO")]
+ public decimal ComissaoBruta { get; set; }
+
+ [Description("PASTA")]
+ public string Pasta { get; set; }
+
+ [Description("PASTA CLIENTE")]
+ public string PastaCliente { get; set; }
+
+ [Description("TIPO")]
+ public string TipoDocumento { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Comissao/SinteticoComissao.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Comissao/SinteticoComissao.cs
new file mode 100644
index 0000000..c468cd3
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Comissao/SinteticoComissao.cs
@@ -0,0 +1,33 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.Comissao;
+
+public class SinteticoComissao
+{
+ public string Descricao { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("SOMA COMISSÃO RECEBIDA")]
+ public decimal Comissao { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("SOMA REPASSE")]
+ public decimal Repasse { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("SOMA VALOR LÍQUIDO")]
+ public decimal ValorLiquido { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE DE APÓLICES")]
+ public int Apolices { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE DE ENDOSSOS")]
+ public int Endossos { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("TOTAL DE DOCUMENTOS")]
+ public int Total { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.CriticaApolice/ApoliceCritica.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.CriticaApolice/ApoliceCritica.cs
new file mode 100644
index 0000000..b476f67
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.CriticaApolice/ApoliceCritica.cs
@@ -0,0 +1,57 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios.CriticaApolice;
+
+public class ApoliceCritica
+{
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public Gestor.Model.Domain.Seguros.CriticaApolice Critica { get; set; }
+
+ [Description("PENDÊNCIA")]
+ public string Pendencia { get; set; }
+
+ [Description("CLIENTE")]
+ public string Cliente { get; set; }
+
+ [Description("PROPOSTA")]
+ public string Proposta { get; set; }
+
+ [Description("APÓLICE")]
+ public string Apolice { get; set; }
+
+ [Description("PROPOSTA ENDOSSO")]
+ public string PropostaEndosso { get; set; }
+
+ [Tipo("DATA")]
+ [Description("VIGÊNCIA INICIAL")]
+ public DateTime VigenciaInicial { get; set; }
+
+ [Description("RAMO")]
+ public string Ramo { get; set; }
+
+ [Description("SEGURADORA")]
+ public string Seguradora { get; set; }
+
+ [Description("TIPO DOCUMENTO")]
+ public string Tipo { get; set; }
+
+ [Tipo("DATA")]
+ [Description("DATA IMPORTAÇÃO")]
+ public DateTime Importado { get; set; }
+
+ [Description("USUÁRIO IMPORTAÇÃO")]
+ public string UsuarioImportacao { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA CRÍTICA")]
+ public DateTime? Criticado { get; set; }
+
+ [Description("USUÁRIO CRÍTICA")]
+ public string UsuarioCritica { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Dashboard/Prospectar.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Dashboard/Prospectar.cs
new file mode 100644
index 0000000..5944a66
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Dashboard/Prospectar.cs
@@ -0,0 +1,63 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios.Dashboard;
+
+public class Prospectar
+{
+ private string _nome;
+
+ private string _email;
+
+ [Tipo("INVALID")]
+ public Gestor.Model.Domain.Seguros.Cliente EntidadeCliente { get; set; }
+
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public long IdEmpresa { get; set; }
+
+ [Description("FILIAL")]
+ public string Empresa { get; set; }
+
+ [Tipo("INVALID")]
+ [Description("ID")]
+ public long Id { get; set; }
+
+ [Description("CLIENTE")]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper().Trim();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ [Description("CPF/CNPJ")]
+ public string Documento { get; set; }
+
+ [Description("TIPO DE PESSOA")]
+ public string TipoPessoa { get; set; }
+
+ [Description("TELEFONE")]
+ public string Telefone { get; set; }
+
+ [Description("E-MAIL")]
+ public string Email
+ {
+ get
+ {
+ return _email?.ToLower().Trim();
+ }
+ set
+ {
+ _email = value;
+ }
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.EndossoCancelamento/Endosso.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.EndossoCancelamento/Endosso.cs
new file mode 100644
index 0000000..41a545e
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.EndossoCancelamento/Endosso.cs
@@ -0,0 +1,149 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios.EndossoCancelamento;
+
+public class Endosso
+{
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public Documento Documento { get; set; }
+
+ [Tipo("INVALID")]
+ public long IdEmpresa { get; set; }
+
+ [Description("FILIAL")]
+ public string Empresa { get; set; }
+
+ [Description("CLIENTE")]
+ public string Cliente { get; set; }
+
+ [Description("PROPOSTA")]
+ public string Proposta { get; set; }
+
+ [Description("APÓLICE")]
+ public string Apolice { get; set; }
+
+ [Description("PROPOSTA ENDOSSO")]
+ public string PropostaEndosso { get; set; }
+
+ [Description("ENDOSSO")]
+ public string NumEndosso { get; set; }
+
+ [Description("STATUS")]
+ public string Status { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("EMISSÃO")]
+ public DateTime? Emissao { get; set; }
+
+ [Tipo("DATA")]
+ [Description("VIGÊNCIA INICIAL")]
+ public DateTime VigenciaInicial { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("VIGÊNCIA FINAL")]
+ public DateTime? VigenciaFinal { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("TRANSMISSÃO")]
+ public DateTime? Remessa { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("COMISSÃO")]
+ public decimal Comissao { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO GERADA")]
+ public decimal ComissaoGerada { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO LÍQUIDO")]
+ public decimal PremioLiquido { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO TOTAL")]
+ public decimal PremioTotal { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE PARCELAS")]
+ public decimal NumeroParcelas { get; set; }
+
+ [Description("SEGURADORA")]
+ public string Seguradora { get; set; }
+
+ [Description("RAMO")]
+ public string Ramo { get; set; }
+
+ [Description("PRODUTO")]
+ public string Produto { get; set; }
+
+ [Description("NEGÓCIO CORRETORA")]
+ public string Negocio { get; set; }
+
+ [Description("ESTIPULANTE")]
+ public string Estipulante { get; set; }
+
+ [Description("VENDEDOR PRINCIPAL")]
+ public string Vendedor { get; set; }
+
+ [Description("TODOS VENDEDORES")]
+ public string TodosVendedores { get; set; }
+
+ [Description("TIPO DOCUMENTO")]
+ public string TipoDocumento { get; set; }
+
+ [Description("DATA CONTROLE")]
+ public DateTime? DataControle { get; set; }
+
+ [Description("STATUS APÓLICE")]
+ public string StatusApolice { get; set; }
+
+ [Tipo("INVALID")]
+ public int Tipo { get; set; }
+
+ [Description("ITEM")]
+ public string Item { get; set; }
+
+ [Description("PROPOSTA ASSINADA")]
+ public string PropAssinada { get; set; }
+
+ [Description("PROP. ASSINADA SIGGNER")]
+ public string AssinadaSiggner { get; set; }
+
+ [Description("PASTA")]
+ public string Pasta { get; set; }
+
+ [Description("TIPO PAGAMENTO")]
+ public string TipoPagamento { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA DE CADASTRO")]
+ public DateTime? DataCriacao { get; set; }
+
+ [Tipo("ENUM")]
+ [Description("STATUS ASSINATURA")]
+ public StatusAssinatura StatusAssinatura { get; set; }
+
+ [Tipo("INVALID")]
+ public List<StatusDocumentoAssinado> Assinaturas { get; set; }
+
+ [Description("PASTA CLIENTE")]
+ public string PastaCliente { get; set; }
+
+ [Description("APÓLICE CONFERIDA")]
+ public string ApoliceConferida { get; set; }
+
+ [Description("DOCUMENTO DO CLIENTE")]
+ public string DocumentoCliente { get; set; }
+
+ [Tipo("VALORDECIMAL2")]
+ [Description("REPASSE VENDEDOR")]
+ public decimal? RepasseVendedor { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/DetalhesExtrato.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/DetalhesExtrato.cs
new file mode 100644
index 0000000..70bfd95
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/DetalhesExtrato.cs
@@ -0,0 +1,34 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.Extrato;
+
+public class DetalhesExtrato
+{
+ [Description("CLIENTE")]
+ public string Cliente { get; set; }
+
+ [Description("APÓLICE")]
+ public string Apolice { get; set; }
+
+ [Description("ENDOSSO")]
+ public string Endosso { get; set; }
+
+ [Description("PARCELA")]
+ public string Parcela { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR PAGTO")]
+ public decimal? Pagto { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("% COMISSÃO")]
+ public decimal? Comissao { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO")]
+ public decimal? ValorComissao { get; set; }
+
+ [Description("STATUS")]
+ public string Status { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/Extrato.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/Extrato.cs
new file mode 100644
index 0000000..250fa6f
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/Extrato.cs
@@ -0,0 +1,54 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Common;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios.Extrato;
+
+public class Extrato
+{
+ public bool Selecionado { get; set; }
+
+ [Description("ID")]
+ public long Id { get; set; }
+
+ [Description("BRUTO")]
+ public decimal? Bruto { get; set; }
+
+ [Description("DATA")]
+ public DateTime? Data { get; set; }
+
+ [Description("DATA DE CRÉDITO")]
+ public DateTime? DataCredito { get; set; }
+
+ [Description("HISTORICO")]
+ public string Historico { get; set; }
+
+ [Description("IR")]
+ public decimal? Ir { get; set; }
+
+ [Description("ISS")]
+ public decimal? Iss { get; set; }
+
+ [Description("LIQUIDO")]
+ public decimal? Liquido { get; set; }
+
+ [Description("NUMERO")]
+ public string Numero { get; set; }
+
+ [Description("OBSERVAÇÃO")]
+ public string Observacao { get; set; }
+
+ [Description("OUTRO")]
+ public decimal? Outro { get; set; }
+
+ [Tipo("ENUM")]
+ [Description("STATUS")]
+ public StatusExtrato Status { get; set; }
+
+ public Seguradora Seguradora { get; set; }
+
+ public Empresa Empresa { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/ExtratoComissao.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/ExtratoComissao.cs
new file mode 100644
index 0000000..1d74721
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/ExtratoComissao.cs
@@ -0,0 +1,14 @@
+using System.Collections.ObjectModel;
+
+namespace Gestor.Model.Domain.Relatorios.Extrato;
+
+public class ExtratoComissao
+{
+ public string Seguradora { get; set; }
+
+ public string Usuario { get; set; }
+
+ public ObservableCollection<InformacoesExtrato> InformacoesExtrato { get; set; }
+
+ public ObservableCollection<DetalhesExtrato> DetalhesExtrato { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/InformacoesExtrato.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/InformacoesExtrato.cs
new file mode 100644
index 0000000..c16700e
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/InformacoesExtrato.cs
@@ -0,0 +1,47 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.Extrato;
+
+public class InformacoesExtrato
+{
+ [Description("NÚMERO EXTRATO")]
+ public string NumeroExtrato { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA EXTRATO")]
+ public DateTime? DataExtrato { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("BRUTO")]
+ public decimal Bruto { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("LÍQUIDO")]
+ public decimal Liquido { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("IR")]
+ public decimal Ir { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("ISS")]
+ public decimal Iss { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("OUTROS")]
+ public decimal Outros { get; set; }
+
+ [Tipo("INT")]
+ [Description("QUANTIDADE")]
+ public int Quantidade { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("TOTAL BAIXADO")]
+ public decimal TotalBaixado { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("TOTAL PENDENTE")]
+ public decimal TotalPendente { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/SinteticoExtrato.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/SinteticoExtrato.cs
new file mode 100644
index 0000000..392586c
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Extrato/SinteticoExtrato.cs
@@ -0,0 +1,13 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.Extrato;
+
+public class SinteticoExtrato
+{
+ public string Descricao { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("TOTAL DE DOCUMENTOS")]
+ public int Total { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.ExtratoBaixado/ExtratoBaixadoRelatorio.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.ExtratoBaixado/ExtratoBaixadoRelatorio.cs
new file mode 100644
index 0000000..14562df
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.ExtratoBaixado/ExtratoBaixadoRelatorio.cs
@@ -0,0 +1,61 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios.ExtratoBaixado;
+
+public class ExtratoBaixadoRelatorio
+{
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public long Id { get; set; }
+
+ [Description("SEGURADORA")]
+ public string Seguradora { get; set; }
+
+ [Description("STATUS")]
+ public string Status { get; set; }
+
+ [Description("NÚMERO")]
+ public string Numero { get; set; }
+
+ [Description("HISTÓRICO")]
+ public string Historico { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA")]
+ public DateTime? Data { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA DE CRÉDITO")]
+ public DateTime? DataCredito { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("BRUTO")]
+ public decimal? Bruto { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("LÍQUIDO")]
+ public decimal? Liquido { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("IR")]
+ public decimal? Ir { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("ISS")]
+ public decimal? Iss { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("OUTRO")]
+ public decimal? Outro { get; set; }
+
+ [Description("OBSERVAÇÃO")]
+ public string Observacao { get; set; }
+
+ [Tipo("INVALID")]
+ public Gestor.Model.Domain.Seguros.Extrato Extrato { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.FaturaPendente/FaturaPendente.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.FaturaPendente/FaturaPendente.cs
new file mode 100644
index 0000000..22a65e2
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.FaturaPendente/FaturaPendente.cs
@@ -0,0 +1,87 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios.FaturaPendente;
+
+public class FaturaPendente
+{
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public Documento Documento { get; set; }
+
+ [Tipo("INVALID")]
+ public Parcela Parcela { get; set; }
+
+ [Description("PENDÊNCIA")]
+ public int Pendencia { get; set; }
+
+ [Description("CLIENTE")]
+ public string Cliente { get; set; }
+
+ [Description("APÓLICE")]
+ public string Apolice { get; set; }
+
+ [Description("ENDOSSO")]
+ public string Endosso { get; set; }
+
+ [Description("STATUS")]
+ public string Status { get; set; }
+
+ [Tipo("DATA")]
+ [Description("VIGÊNCIA INICIAL")]
+ public DateTime VigenciaInicial { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("VIGÊNCIA FINAL")]
+ public DateTime? VigenciaFinal { get; set; }
+
+ [Description("SEGURADORA")]
+ public string Seguradora { get; set; }
+
+ [Description("RAMO")]
+ public string Ramo { get; set; }
+
+ [Description("PRODUTO")]
+ public string Produto { get; set; }
+
+ [Description("VENDEDOR PRINCIPAL")]
+ public string Vendedor { get; set; }
+
+ [Description("ESTIPULANTE")]
+ public string Estipulante { get; set; }
+
+ [Description("ULTIMA FATURA")]
+ public string Fatura { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("INICIO FATURA")]
+ public DateTime? VigenciaIncialFatura { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("FINAL FATURA")]
+ public DateTime? VigenciaFinalFatura { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("VENCIMENTO")]
+ public DateTime? Vencimento { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA CONTROLE")]
+ public DateTime? DataControle { get; set; }
+
+ [Description("STATUS APÓLICE")]
+ public string StatusApolice { get; set; }
+
+ [Description("ITEM")]
+ public string Item { get; set; }
+
+ [Description("PASTA")]
+ public string Pasta { get; set; }
+
+ [Description("PASTA CLIENTE")]
+ public string PastaCliente { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Fechamento/Fechamento.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Fechamento/Fechamento.cs
new file mode 100644
index 0000000..175ec5b
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Fechamento/Fechamento.cs
@@ -0,0 +1,152 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.Fechamento;
+
+public class Fechamento
+{
+ [Tipo("INVALID")]
+ public int Entidade { get; set; }
+
+ [Tipo("INVALID")]
+ public long Id { get; set; }
+
+ [Description("NOME")]
+ public string Nome { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO TOTAL")]
+ public decimal PremioTotal { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO TOTAL ANTERIOR")]
+ public decimal PremioTotalAnterior { get; set; }
+
+ [Description("COMPARATIVO PRÊMIO TOTAL")]
+ public string PremioTotalComparativo { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO LÍQUIDO")]
+ public decimal PremioLiquido { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO LÍQUIDO ANTERIOR")]
+ public decimal PremioLiquidoAnterior { get; set; }
+
+ [Description("COMPARATIVO PRÊMIO LÍQUIDO")]
+ public string PremioLiquidoComparativo { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("MÉDIA FECHADA")]
+ public decimal Fechada { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("MÉDIA FECHADA ANTERIOR")]
+ public decimal FechadaAnterior { get; set; }
+
+ [Description("COMPARATIVO MÉDIA FECHADA")]
+ public string FechadaAnteriorComparativo { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("MÉDIA MIX %")]
+ public decimal Mix { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("MÉDIA MIX % ANTERIOR")]
+ public decimal MixAnterior { get; set; }
+
+ [Description("COMPARATIVO MÉDIA MIX %")]
+ public string MixAnteriorComparativo { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO GERADA")]
+ public decimal Gerada { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO GERADA ANTERIOR")]
+ public decimal GeradaAnterior { get; set; }
+
+ [Description("COMPARATIVO COMISSÃO GERADA")]
+ public string GeradaAnteriorComparativo { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO RECEBIDA")]
+ public decimal Recebida { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO RECEBIDA ANTERIOR")]
+ public decimal RecebidaAnterior { get; set; }
+
+ [Description("COMPARATIVO COMISSÃO RECEBIDA")]
+ public string RecebidaAnteriorComparativo { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO PENDENTE")]
+ public decimal Pendente { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO PENDENTE ANTERIOR")]
+ public decimal PendenteAnterior { get; set; }
+
+ [Description("COMPARATIVO COMISSÃO PENDENTE")]
+ public string PendenteAnteriorComparativo { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO PAGA")]
+ public decimal Paga { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO PAGA ANTERIOR")]
+ public decimal PagaAnterior { get; set; }
+
+ [Description("COMPARATIVO COMISSÃO PAGA")]
+ public string PagaAnteriorComparativo { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QTD APÓLICE")]
+ public int Apolice { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QTD APÓLICE ANTERIOR")]
+ public int ApoliceAnterior { get; set; }
+
+ [Description("COMPARATIVO QTD APÓLICE")]
+ public string ApoliceAnteriorComparativo { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QTD ENDOSSO")]
+ public int Endosso { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QTD ENDOSSO ANTERIOR")]
+ public int EndossoAnterior { get; set; }
+
+ [Description("COMPARATIVO QTD ENDOSSO")]
+ public string EndossoAnteriorComparativo { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QTD FATURA")]
+ public int Fatura { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QTD FATURA ANTERIOR")]
+ public int FaturaAnterior { get; set; }
+
+ [Description("COMPARATIVO QTD FATURA")]
+ public string FaturaAnteriorComparativo { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QTD ITENS")]
+ public int Itens { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QTD ITENS ANTERIOR")]
+ public int ItensAnterior { get; set; }
+
+ [Description("COMPARATIVO QTD ITENS")]
+ public string ItensAnteriorComparativo { get; set; }
+
+ [Tipo("INVALID")]
+ [Description("ANO ANTERIOR")]
+ public string AnoAnterior { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Fechamento/Fechamentos.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Fechamento/Fechamentos.cs
new file mode 100644
index 0000000..ddc667d
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Fechamento/Fechamentos.cs
@@ -0,0 +1,12 @@
+using System.Collections.ObjectModel;
+
+namespace Gestor.Model.Domain.Relatorios.Fechamento;
+
+public class Fechamentos
+{
+ public string Title { get; set; }
+
+ public ObservableCollection<Fechamento> Fechamento { get; set; }
+
+ public bool Comparativo { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Fechamento/SinteticoFechamento.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Fechamento/SinteticoFechamento.cs
new file mode 100644
index 0000000..da3898b
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Fechamento/SinteticoFechamento.cs
@@ -0,0 +1,47 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.Fechamento;
+
+public class SinteticoFechamento
+{
+ [Tipo("VALOR")]
+ [Description("SOMA PRÊMIO TOTAL")]
+ public decimal PremioTotal { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("SOMA PRÊMIO LÍQUIDO")]
+ public decimal PremioLiquido { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("MÉDIA FECHADA")]
+ public decimal Fechada { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("MÉDIA MIX %")]
+ public decimal Mix { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO GERADA")]
+ public decimal Gerada { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO RECEBIDA")]
+ public decimal Recebida { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE APÓLICE")]
+ public int Apolice { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE ENDOSSO")]
+ public int Endosso { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE FATURA")]
+ public int Fatura { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE ITENS")]
+ public int Itens { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Licenciamento/Licenciamento.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Licenciamento/Licenciamento.cs
new file mode 100644
index 0000000..3d69cb9
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Licenciamento/Licenciamento.cs
@@ -0,0 +1,89 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios.Licenciamento;
+
+public class Licenciamento
+{
+ private string _cliente;
+
+ private string _email;
+
+ [Tipo("INVALID")]
+ public Documento Documento { get; set; }
+
+ [Tipo("INVALID")]
+ public Item EntidadeItem { get; set; }
+
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public long IdCliente { get; set; }
+
+ [Tipo("INVALID")]
+ public long Id { get; set; }
+
+ [Description("CLIENTE")]
+ public string Cliente
+ {
+ get
+ {
+ return _cliente?.ToUpper().Trim();
+ }
+ set
+ {
+ _cliente = value;
+ }
+ }
+
+ [Description("TELEFONE")]
+ public string Telefone { get; set; }
+
+ [Description("E-MAIL")]
+ public string Email
+ {
+ get
+ {
+ return _email?.ToLower().Trim();
+ }
+ set
+ {
+ _email = value;
+ }
+ }
+
+ [Tipo("INVALID")]
+ public string Vencimento { get; set; }
+
+ [Description("PLACA")]
+ public string Placa { get; set; }
+
+ [Description("CATEGORIA")]
+ public string Categoria { get; set; }
+
+ [Description("ITEM")]
+ public string Item { get; set; }
+
+ [Description("SEGURADORA")]
+ public string Seguradora { get; set; }
+
+ [Description("RAMO")]
+ public string Ramo { get; set; }
+
+ [Description("PRODUTO")]
+ public string Produto { get; set; }
+
+ [Description("ESTIPULANTE")]
+ public string Estipulante { get; set; }
+
+ [Description("VENDEDOR PRINCIPAL")]
+ public string Vendedor { get; set; }
+
+ [Description("TODOS VENDEDORES")]
+ public string TodosVendedores { get; set; }
+
+ [Description("PASTA CLIENTE")]
+ public string PastaCliente { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Log/LogAcaoRelatorio.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Log/LogAcaoRelatorio.cs
new file mode 100644
index 0000000..1e505a1
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Log/LogAcaoRelatorio.cs
@@ -0,0 +1,91 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Common;
+
+namespace Gestor.Model.Domain.Relatorios.Log;
+
+public class LogAcaoRelatorio
+{
+ private string _maquina;
+
+ private string _usuarioAgger;
+
+ private string _usuarioMaquina;
+
+ private string _acesso;
+
+ [Description("CÓDIGO")]
+ public long EntidadeId { get; set; }
+
+ [Tipo("INVALID")]
+ public RegistroAcao RegistroEntity { get; set; }
+
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Description("ACESSO")]
+ public string Acesso
+ {
+ get
+ {
+ return _acesso?.ToUpper();
+ }
+ set
+ {
+ _acesso = value;
+ }
+ }
+
+ [Tipo("DATA/TIME")]
+ [Description("DATA")]
+ public DateTime Data { get; set; }
+
+ [Description("DESCRIÇÃO")]
+ public string Descricao { get; set; }
+
+ [Description("USUÁRIO AGGER")]
+ public string UsuarioAgger
+ {
+ get
+ {
+ return _usuarioAgger?.ToUpper();
+ }
+ set
+ {
+ _usuarioAgger = value;
+ }
+ }
+
+ [Description("MÁQUINA")]
+ public string Maquina
+ {
+ get
+ {
+ return _maquina?.ToUpper();
+ }
+ set
+ {
+ _maquina = value;
+ }
+ }
+
+ [Description("USUÁRIO DA MÁQUINA")]
+ public string UsuarioMaquina
+ {
+ get
+ {
+ return _usuarioMaquina?.ToUpper();
+ }
+ set
+ {
+ _usuarioMaquina = value;
+ }
+ }
+
+ [Description("IP")]
+ public string Ip { get; set; }
+
+ [Description("VERSÃO SISTEMA")]
+ public string Versao { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.LogsEnvio/LogsEnvio.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.LogsEnvio/LogsEnvio.cs
new file mode 100644
index 0000000..305f50c
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.LogsEnvio/LogsEnvio.cs
@@ -0,0 +1,145 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.LogsEnvio;
+
+public class LogsEnvio
+{
+ private string _remetente;
+
+ private string _destinatarios;
+
+ private string _cco;
+
+ private string _assunto;
+
+ private string _maquina;
+
+ private string _usuarioAgger;
+
+ private string _usuarioMaquina;
+
+ private string _tela;
+
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Description("REMETENTE")]
+ public string Remetente
+ {
+ get
+ {
+ return _remetente?.ToLower();
+ }
+ set
+ {
+ _remetente = value;
+ }
+ }
+
+ [Description("DESTINATÁRIOS")]
+ public string Destinatarios
+ {
+ get
+ {
+ return _destinatarios?.ToLower();
+ }
+ set
+ {
+ _destinatarios = value;
+ }
+ }
+
+ [Description("CCO")]
+ public string Cco
+ {
+ get
+ {
+ return _cco?.ToLower();
+ }
+ set
+ {
+ _cco = value;
+ }
+ }
+
+ [Description("ASSUNTO")]
+ public string Assunto
+ {
+ get
+ {
+ return _assunto?.ToUpper();
+ }
+ set
+ {
+ _assunto = value;
+ }
+ }
+
+ [Description("TELA")]
+ public string Tela
+ {
+ get
+ {
+ return _tela?.ToUpper();
+ }
+ set
+ {
+ _tela = value;
+ }
+ }
+
+ [Tipo("DATA")]
+ [Description("DATA")]
+ public DateTime Data { get; set; }
+
+ [Description("MÁQUINA")]
+ public string Maquina
+ {
+ get
+ {
+ return _maquina?.ToUpper();
+ }
+ set
+ {
+ _maquina = value;
+ }
+ }
+
+ [Description("USUÁRIO AGGER")]
+ public string UsuarioAgger
+ {
+ get
+ {
+ return _usuarioAgger?.ToUpper();
+ }
+ set
+ {
+ _usuarioAgger = value;
+ }
+ }
+
+ [Description("USUÁRIO DA MÁQUINA")]
+ public string UsuarioMaquina
+ {
+ get
+ {
+ return _usuarioMaquina?.ToUpper();
+ }
+ set
+ {
+ _usuarioMaquina = value;
+ }
+ }
+
+ [Description("IP")]
+ public string Ip { get; set; }
+
+ [Description("VERSÃO")]
+ public string Versao { get; set; }
+
+ [Tipo("INVALID")]
+ [Description("ID")]
+ public long Id { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.MetaSeguradora/MetaSeguradoraRelatorio.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.MetaSeguradora/MetaSeguradoraRelatorio.cs
new file mode 100644
index 0000000..64c1bfa
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.MetaSeguradora/MetaSeguradoraRelatorio.cs
@@ -0,0 +1,24 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.MetaSeguradora;
+
+public class MetaSeguradoraRelatorio
+{
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public long Id { get; set; }
+
+ [Description("SEGURADORA")]
+ public string Seguradora { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("META ATINGIR")]
+ public decimal MetaAtingir { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("META CUMPRIDA")]
+ public decimal MetaCumprida { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.MetaSeguradora/SinteticoMetaSeguradora.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.MetaSeguradora/SinteticoMetaSeguradora.cs
new file mode 100644
index 0000000..a3793e4
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.MetaSeguradora/SinteticoMetaSeguradora.cs
@@ -0,0 +1,12 @@
+using System.ComponentModel;
+
+namespace Gestor.Model.Domain.Relatorios.MetaSeguradora;
+
+public class SinteticoMetaSeguradora
+{
+ [Description("META ATINGIR")]
+ public decimal MetaAtingir { get; set; }
+
+ [Description("META CUMPRIDA")]
+ public decimal MetaCumprida { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.MetaVendedor/MetaVendedorRelatorio.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.MetaVendedor/MetaVendedorRelatorio.cs
new file mode 100644
index 0000000..9811027
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.MetaVendedor/MetaVendedorRelatorio.cs
@@ -0,0 +1,24 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.MetaVendedor;
+
+public class MetaVendedorRelatorio
+{
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public long Id { get; set; }
+
+ [Description("VENDEDOR")]
+ public string Vendedor { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("META ATINGIR")]
+ public decimal MetaAtingir { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("META CUMPRIDA")]
+ public decimal MetaCumprida { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.MetaVendedor/SinteticoMetaVendedor.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.MetaVendedor/SinteticoMetaVendedor.cs
new file mode 100644
index 0000000..de1ae36
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.MetaVendedor/SinteticoMetaVendedor.cs
@@ -0,0 +1,12 @@
+using System.ComponentModel;
+
+namespace Gestor.Model.Domain.Relatorios.MetaVendedor;
+
+public class SinteticoMetaVendedor
+{
+ [Description("META ATINGIR")]
+ public decimal MetaAtingir { get; set; }
+
+ [Description("META CUMPRIDA")]
+ public decimal MetaCumprida { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.NotaFiscal/NotaFiscalRelatorio.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.NotaFiscal/NotaFiscalRelatorio.cs
new file mode 100644
index 0000000..3c9fd6b
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.NotaFiscal/NotaFiscalRelatorio.cs
@@ -0,0 +1,46 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.NotaFiscal;
+
+public class NotaFiscalRelatorio
+{
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public long Id { get; set; }
+
+ [Description("SEGURADORA")]
+ public string Seguradora { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR LÍQUIDO")]
+ public decimal Liquido { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("ISS")]
+ public decimal Iss { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR BRUTO")]
+ public decimal Bruto { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA")]
+ public DateTime? Data { get; set; }
+
+ [Description("ESTIPULANTE")]
+ public string Estipulante { get; set; }
+
+ [Description("EXTRATO")]
+ public string Extrato { get; set; }
+
+ [Description("CNPJ")]
+ public string Cnpj { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("IR")]
+ public decimal Ir { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/AgrupamentoPagamentoSintetico.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/AgrupamentoPagamentoSintetico.cs
new file mode 100644
index 0000000..8a5ebdb
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/AgrupamentoPagamentoSintetico.cs
@@ -0,0 +1,18 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.Pagamento;
+
+public class AgrupamentoPagamentoSintetico
+{
+ [Description("NOME")]
+ public string Nome { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("REPASSE")]
+ public decimal Repasse { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR LÍQUIDO")]
+ public decimal VlrLiquido { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/AgrupamentoVendedor.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/AgrupamentoVendedor.cs
new file mode 100644
index 0000000..d2fe5ec
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/AgrupamentoVendedor.cs
@@ -0,0 +1,54 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.Pagamento;
+
+public class AgrupamentoVendedor
+{
+ [Description("VENDEDOR")]
+ public string Vendedor { get; set; }
+
+ [Description("CPF")]
+ public string CPF { get; set; }
+
+ [Description("BANCO")]
+ public string Banco { get; set; }
+
+ [Description("Nº AGÊNCIA")]
+ public string Agencia { get; set; }
+
+ [Description("Nº CONTA")]
+ public string Conta { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("ADIANTAMENTOS (+)")]
+ public decimal Credito { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("ADIANTAMENTOS (-)")]
+ public decimal Debito { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("ADIANTAMENTO LÍQUIDO")]
+ public decimal Adiantamento { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("REPASSE (+)")]
+ public decimal Repasse { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("ESTORNOS (-)")]
+ public decimal Estorno { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("REPASSE BRUTO")]
+ public decimal RepasseBruto { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("DESCONTO")]
+ public decimal Desconto { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("REPASSE LÍQUIDO")]
+ public decimal ValorLiquido { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/Pagamento.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/Pagamento.cs
new file mode 100644
index 0000000..d50cacf
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/Pagamento.cs
@@ -0,0 +1,14 @@
+using System.Collections.ObjectModel;
+
+namespace Gestor.Model.Domain.Relatorios.Pagamento;
+
+public class Pagamento
+{
+ public string Title { get; set; }
+
+ public ObservableCollection<DadosRelatorio> Dados { get; set; }
+
+ public AgrupamentoVendedor Vendedores { get; set; }
+
+ public ObservableCollection<Sintetico> Sintetico { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/PagamentoSintetico.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/PagamentoSintetico.cs
new file mode 100644
index 0000000..6854ac0
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/PagamentoSintetico.cs
@@ -0,0 +1,10 @@
+using System.Collections.ObjectModel;
+
+namespace Gestor.Model.Domain.Relatorios.Pagamento;
+
+public class PagamentoSintetico
+{
+ public string Titulo { get; set; }
+
+ public ObservableCollection<AgrupamentoPagamentoSintetico> Agrupamento { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/SinteticoPagamento.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/SinteticoPagamento.cs
new file mode 100644
index 0000000..204f642
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Pagamento/SinteticoPagamento.cs
@@ -0,0 +1,29 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.Pagamento;
+
+public class SinteticoPagamento
+{
+ public string Descricao { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE DE APÓLICES")]
+ public int Apolices { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE DE ENDOSSOS")]
+ public int Endossos { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("TOTAL DE DOCUMENTOS")]
+ public int Total { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("SOMA REPASSE BRUTO")]
+ public decimal RepasseBruto { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("SOMA REPASSE LIQUIDO")]
+ public decimal RepasseLiquido { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Pendente/Pendente.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Pendente/Pendente.cs
new file mode 100644
index 0000000..1a98091
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Pendente/Pendente.cs
@@ -0,0 +1,142 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios.Pendente;
+
+public class Pendente
+{
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public Documento Documento { get; set; }
+
+ [Tipo("INVALID")]
+ public Parcela ParcelaEntity { get; set; }
+
+ [Tipo("INVALID")]
+ public long IdEmpresa { get; set; }
+
+ [Description("FILIAL")]
+ public string Empresa { get; set; }
+
+ [Description("PENDÊNCIA")]
+ public int Pendencia { get; set; }
+
+ [Description("CLIENTE")]
+ public string Cliente { get; set; }
+
+ [Description("APÓLICE")]
+ public string Apolice { get; set; }
+
+ [Description("PROPOSTA")]
+ public string Proposta { get; set; }
+
+ [Description("ENDOSSO")]
+ public string Endosso { get; set; }
+
+ [Description("STATUS")]
+ public string Status { get; set; }
+
+ [Tipo("DATA")]
+ [Description("VIGÊNCIA INICIAL")]
+ public DateTime VigenciaInicial { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("VIGÊNCIA FINAL")]
+ public DateTime? VigenciaFinal { get; set; }
+
+ [Description("RAMO")]
+ public string Ramo { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("COMISSÃO")]
+ public decimal ComissaoPerc { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO GERADA")]
+ public decimal ComissaoGerada { get; set; }
+
+ [Description("PARCELA")]
+ public string Pendentes { get; set; }
+
+ [Tipo("DATA")]
+ [Description("VENCIMENTO")]
+ public DateTime Vencimento { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA QUITAÇÃO")]
+ public DateTime? Quitacao { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA CONTROLE")]
+ public DateTime? Controle { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO PREVISTA")]
+ public decimal ComissaoPrevista { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("TOTAL PREVISTO")]
+ public decimal TotalPrevisto { get; set; }
+
+ [Description("TIPO RENOVAÇÃO")]
+ public string Negocio { get; set; }
+
+ [Description("SEGURADORA")]
+ public string Seguradora { get; set; }
+
+ [Description("PRODUTO")]
+ public string Produto { get; set; }
+
+ [Description("ESTIPULANTE")]
+ public string Estipulante { get; set; }
+
+ [Description("VENDEDOR PRINCIPAL")]
+ public string Vendedor { get; set; }
+
+ [Description("TODOS VENDEDORES")]
+ public string TodosVendedores { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA CONTROLE")]
+ public DateTime? DataControle { get; set; }
+
+ [Description("STATUS APÓLICE")]
+ public string StatusApolice { get; set; }
+
+ [Description("ITEM")]
+ public string Item { get; set; }
+
+ [Tipo("ENUM")]
+ [Description("TIPO DE PARCELA")]
+ public SubTipo SubTipo { get; set; }
+
+ [Description("STATUS PAGAMENTO")]
+ public string StatusPagamento { get; set; }
+
+ [Description("FORMA DE PAGAMENTO")]
+ public string FormaPagamento { get; set; }
+
+ [Description("DOCUMENTO DO CLIENTE")]
+ public string DocumentoCliente { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR PARCELA")]
+ public decimal ValorParcela { get; set; }
+
+ [Description("PASTA")]
+ public string Pasta { get; set; }
+
+ [Description("PASTA CLIENTE")]
+ public string PastaCliente { get; set; }
+
+ [Description("TIPO DOCUMENTO")]
+ public string TipoDocumento { get; set; }
+
+ [Description("TELEFONES")]
+ public string Telefones { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Pendente/SinteticoPendente.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Pendente/SinteticoPendente.cs
new file mode 100644
index 0000000..09e07da
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Pendente/SinteticoPendente.cs
@@ -0,0 +1,25 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.Pendente;
+
+public class SinteticoPendente
+{
+ public string Descricao { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("SOMA COMISSÃO PREVISTA")]
+ public decimal Comissao { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE DE APÓLICES")]
+ public int Apolices { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE DE ENDOSSOS")]
+ public int Endossos { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("TOTAL DE DOCUMENTOS")]
+ public int Total { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Placa/Placas.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Placa/Placas.cs
new file mode 100644
index 0000000..e8081d0
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Placa/Placas.cs
@@ -0,0 +1,86 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios.Placa;
+
+public class Placas
+{
+ private string _cliente;
+
+ private string _email;
+
+ [Tipo("INVALID")]
+ public Documento Documento { get; set; }
+
+ [Tipo("INVALID")]
+ public Item EntidadeItem { get; set; }
+
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public long IdCliente { get; set; }
+
+ [Tipo("INVALID")]
+ public long Id { get; set; }
+
+ [Description("CLIENTE")]
+ public string Cliente
+ {
+ get
+ {
+ return _cliente?.ToUpper().Trim();
+ }
+ set
+ {
+ _cliente = value;
+ }
+ }
+
+ [Description("TELEFONE")]
+ public string Telefone { get; set; }
+
+ [Description("E-MAIL")]
+ public string Email
+ {
+ get
+ {
+ return _email?.ToLower().Trim();
+ }
+ set
+ {
+ _email = value;
+ }
+ }
+
+ [Description("PLACA")]
+ public string Placa { get; set; }
+
+ [Description("CATEGORIA")]
+ public string Categoria { get; set; }
+
+ [Description("ITEM")]
+ public string Item { get; set; }
+
+ [Description("SEGURADORA")]
+ public string Seguradora { get; set; }
+
+ [Description("RAMO")]
+ public string Ramo { get; set; }
+
+ [Description("PRODUTO")]
+ public string Produto { get; set; }
+
+ [Description("ESTIPULANTE")]
+ public string Estipulante { get; set; }
+
+ [Description("VENDEDOR PRINCIPAL")]
+ public string Vendedor { get; set; }
+
+ [Description("TODOS VENDEDORES")]
+ public string TodosVendedores { get; set; }
+
+ [Description("PASTA CLIENTE")]
+ public string PastaCliente { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao/AgrupamentoSintetico.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao/AgrupamentoSintetico.cs
new file mode 100644
index 0000000..e747c2e
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao/AgrupamentoSintetico.cs
@@ -0,0 +1,18 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao;
+
+public class AgrupamentoSintetico
+{
+ [Description("NOME")]
+ public string Nome { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PREVISÃO DE PAGAMENTO")]
+ public decimal PrevisaoPagamento { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PREVISÃO LÍQUIDA")]
+ public decimal PrevisaoLiquida { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao/PrevisaoPagamento.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao/PrevisaoPagamento.cs
new file mode 100644
index 0000000..62d745b
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao/PrevisaoPagamento.cs
@@ -0,0 +1,62 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao;
+
+public class PrevisaoPagamento
+{
+ [Description("NOME")]
+ public string Nome { get; set; }
+
+ [Description("APÓLICE")]
+ public string Apolice { get; set; }
+
+ [Description("ENDOSSO")]
+ public string Endosso { get; set; }
+
+ [Description("STATUS")]
+ public string Status { get; set; }
+
+ [Tipo("DATA")]
+ [Description("VIGÊNCIA INICIAL")]
+ public DateTime VigenciaInicial { get; set; }
+
+ [Description("SEGURADORA")]
+ public string NomeSeguradora { get; set; }
+
+ [Description("RAMO")]
+ public string NomeRamo { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO LÍQUIDO")]
+ public decimal PremioLiquido { get; set; }
+
+ [Description("PARCELA")]
+ public string Parcela { get; set; }
+
+ [Description("TIPO DOCUMENTO")]
+ public string TipoDocumento { get; set; }
+
+ [Tipo("DATA")]
+ [Description("VENCIMENTO PARCELA")]
+ public DateTime VencimentoParcela { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("REPASSE LÍQUIDO")]
+ public decimal RepasseLiquido { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("REPASSE")]
+ public decimal Repasse { get; set; }
+
+ [Tipo("INVALID")]
+ public Vendedor Vendedor { get; set; }
+
+ [Tipo("INVALID")]
+ public string Seguradora { get; set; }
+
+ [Tipo("INVALID")]
+ public string Ramo { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao/PrevisaoPagamentoComissao.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao/PrevisaoPagamentoComissao.cs
new file mode 100644
index 0000000..b618c96
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao/PrevisaoPagamentoComissao.cs
@@ -0,0 +1,10 @@
+using System.Collections.ObjectModel;
+
+namespace Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao;
+
+public class PrevisaoPagamentoComissao
+{
+ public string Vendedor { get; set; }
+
+ public ObservableCollection<PrevisaoPagamento> PrevisaoPagamento { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao/PrevisaoPagamentoComissaoSintetico.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao/PrevisaoPagamentoComissaoSintetico.cs
new file mode 100644
index 0000000..083cdd1
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao/PrevisaoPagamentoComissaoSintetico.cs
@@ -0,0 +1,10 @@
+using System.Collections.ObjectModel;
+
+namespace Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao;
+
+public class PrevisaoPagamentoComissaoSintetico
+{
+ public string Titulo { get; set; }
+
+ public ObservableCollection<AgrupamentoSintetico> Agrupamento { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Producao/Producao.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Producao/Producao.cs
new file mode 100644
index 0000000..8a8a90c
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Producao/Producao.cs
@@ -0,0 +1,170 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios.Producao;
+
+public class Producao
+{
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public Documento Documento { get; set; }
+
+ [Tipo("INVALID")]
+ public long IdEmpresa { get; set; }
+
+ [Description("FILIAL")]
+ public string Empresa { get; set; }
+
+ [Description("CLIENTE")]
+ public string Cliente { get; set; }
+
+ [Description("PROPOSTA")]
+ public string Proposta { get; set; }
+
+ [Description("APÓLICE")]
+ public string Apolice { get; set; }
+
+ [Description("PROPOSTA ENDOSSO")]
+ public string PropostaEndosso { get; set; }
+
+ [Description("ENDOSSO")]
+ public string Endosso { get; set; }
+
+ [Description("STATUS")]
+ public string Status { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("EMISSÃO")]
+ public DateTime? Emissao { get; set; }
+
+ [Tipo("DATA")]
+ [Description("VIGÊNCIA INICIAL")]
+ public DateTime VigenciaInicial { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("VIGÊNCIA FINAL")]
+ public DateTime? VigenciaFinal { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("TRANSMISSÃO")]
+ public DateTime? Remessa { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("COMISSÃO")]
+ public decimal Comissao { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO GERADA")]
+ public decimal ComissaoGerada { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO LÍQUIDO")]
+ public decimal PremioLiquido { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO TOTAL")]
+ public decimal PremioTotal { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE PARCELAS")]
+ public decimal NumeroParcelas { get; set; }
+
+ [Description("SEGURADORA")]
+ public string Seguradora { get; set; }
+
+ [Description("RAMO")]
+ public string Ramo { get; set; }
+
+ [Description("PRODUTO")]
+ public string Produto { get; set; }
+
+ [Description("NEGÓCIO CORRETORA")]
+ public string Negocio { get; set; }
+
+ [Description("ESTIPULANTE")]
+ public string Estipulante { get; set; }
+
+ [Description("VENDEDOR")]
+ public string Vendedor { get; set; }
+
+ [Description("TODOS VENDEDORES")]
+ public string TodosVendedores { get; set; }
+
+ [Description("TIPO VENDEDORES")]
+ public string DescricaoTipoVendedor { get; set; }
+
+ [Description("TIPO DOCUMENTO")]
+ public string TipoDocumento { get; set; }
+
+ [Description("DATA CONTROLE")]
+ public DateTime? DataControle { get; set; }
+
+ [Description("STATUS APÓLICE")]
+ public string StatusApolice { get; set; }
+
+ [Tipo("INVALID")]
+ public int Tipo { get; set; }
+
+ [Description("ITEM")]
+ public string Item { get; set; }
+
+ [Description("PROPOSTA ASSINADA")]
+ public string PropAssinada { get; set; }
+
+ [Description("PROP. ASSINADA SIGGNER")]
+ public string AssinadaSiggner { get; set; }
+
+ [Description("PASTA")]
+ public string Pasta { get; set; }
+
+ [Description("TIPO PAGAMENTO")]
+ public string TipoPagamento { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA DE CADASTRO")]
+ public DateTime? DataCriacao { get; set; }
+
+ [Tipo("ENUM")]
+ [Description("STATUS ASSINATURA")]
+ public StatusAssinatura StatusAssinatura { get; set; }
+
+ [Tipo("INVALID")]
+ public List<StatusDocumentoAssinado> Assinaturas { get; set; }
+
+ [Description("BANCO")]
+ public string Banco { get; set; }
+
+ [Description("AGÊNCIA")]
+ public string Agencia { get; set; }
+
+ [Description("CONTA")]
+ public string Conta { get; set; }
+
+ [Description("PASTA CLIENTE")]
+ public string PastaCliente { get; set; }
+
+ [Description("APÓLICE CONFERIDA")]
+ public string ApoliceConferida { get; set; }
+
+ [Description("DOCUMENTO DO CLIENTE")]
+ public string DocumentoCliente { get; set; }
+
+ [Tipo("VALORDECIMAL2")]
+ [Description("REPASSE VENDEDOR")]
+ public decimal? RepasseVendedor { get; set; }
+
+ [Description("TELEFONES")]
+ public string Telefones { get; set; }
+
+ [Description("EMAILS")]
+ public string Emails { get; set; }
+
+ [Description("TIPO PESSOA")]
+ public string TipoPessoa { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Producao/SinteticoProducao.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Producao/SinteticoProducao.cs
new file mode 100644
index 0000000..e657018
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Producao/SinteticoProducao.cs
@@ -0,0 +1,33 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.Producao;
+
+public class SinteticoProducao
+{
+ public string Descricao { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("SOMA PRÊMIO TOTAL")]
+ public decimal PremioTotal { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("SOMA PRÊMIO LÍQUIDO")]
+ public decimal PremioLiquido { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("MÉDIA DE COMISSÃO")]
+ public decimal MediaComissao { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE DE APÓLICES")]
+ public int Apolices { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE DE ENDOSSOS")]
+ public int Endossos { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("TOTAL DE DOCUMENTOS")]
+ public int Total { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Renovacao/Renovacao.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Renovacao/Renovacao.cs
new file mode 100644
index 0000000..66cb9d6
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Renovacao/Renovacao.cs
@@ -0,0 +1,134 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Aggilizador;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios.Renovacao;
+
+public class Renovacao
+{
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public Documento Documento { get; set; }
+
+ [Tipo("INVALID")]
+ public Prospeccao Prospeccao { get; set; }
+
+ [Tipo("INVALID")]
+ public List<Calculo> Calculos { get; set; }
+
+ public long IdEmpresa { get; set; }
+
+ [Description("FILIAL")]
+ public string Empresa { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("VIGÊNCIA FINAL")]
+ public DateTime? VigenciaFinal { get; set; }
+
+ [Description("APÓLICE")]
+ public string Apolice { get; set; }
+
+ [Description("CLIENTE")]
+ public string Cliente { get; set; }
+
+ [Description("RAMO")]
+ public string Ramo { get; set; }
+
+ [Description("SEGURADORA")]
+ public string Seguradora { get; set; }
+
+ [Description("VENDEDOR PRINCIPAL")]
+ public string Vendedor { get; set; }
+
+ [Description("TELEFONE")]
+ public string Telefone { get; set; }
+
+ [Description("E-MAIL")]
+ public string Email { get; set; }
+
+ [Description("TODOS VENDEDORES")]
+ public string TodosVendedores { get; set; }
+
+ [Description("STATUS")]
+ public string Status { get; set; }
+
+ [Description("ESTIPULANTE")]
+ public string Estipulante { get; set; }
+
+ [Description("PRODUTO")]
+ public string Produto { get; set; }
+
+ [Description("TIPO RENOVAÇÃO")]
+ public string Negocio { get; set; }
+
+ [Description("SINISTRO")]
+ public string Sinistro { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("COMISSÃO")]
+ public decimal Comissao { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO LÍQUIDO")]
+ public decimal PremioLiquido { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("PRÊMIO TOTAL")]
+ public decimal PremioTotal { get; set; }
+
+ [Tipo("INVALID")]
+ public int Tipo { get; set; }
+
+ [Description("ITEM")]
+ public string Item { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA CONTROLE")]
+ public DateTime? DataControle { get; set; }
+
+ [Description("STATUS APÓLICE")]
+ public string StatusApolice { get; set; }
+
+ [Description("TIPO DOCUMENTO")]
+ public string TipoDocumento { get; set; }
+
+ [Description("SINISTROS ITENS ATIVOS")]
+ [Tipo("INT")]
+ public int QtdSinistro { get; set; }
+
+ [Description("BANCO")]
+ public string Banco { get; set; }
+
+ [Description("AGÊNCIA")]
+ public string Agencia { get; set; }
+
+ [Description("CONTA")]
+ public string Conta { get; set; }
+
+ [Description("PASTA")]
+ public string Pasta { get; set; }
+
+ [Description("PASTA CLIENTE")]
+ public string PastaCliente { get; set; }
+
+ [Description("DOCUMENTO DO CLIENTE")]
+ public string DocumentoCliente { get; set; }
+
+ [Description("TIPO DE PESSOA")]
+ public string TipoPessoa { get; set; }
+
+ [Description("TIPO PAGAMENTO")]
+ public string TipoPagamento { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("COMISSÃO GERADA")]
+ public decimal ComissaoGerada { get; set; }
+
+ [Description("ENDOSSO")]
+ public string Endosso { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Renovacao/SinteticoRenovacao.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Renovacao/SinteticoRenovacao.cs
new file mode 100644
index 0000000..a79d703
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Renovacao/SinteticoRenovacao.cs
@@ -0,0 +1,37 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.Renovacao;
+
+public class SinteticoRenovacao
+{
+ public string Descricao { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("NÃO TRABALHADOS")]
+ public int NaoTrabalhados { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("CANCELADOS")]
+ public int Cancelados { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("REABILITADOS")]
+ public int Reabilitados { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("RENOVADOS")]
+ public int Renovados { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("PERDIDOS")]
+ public int Perdidos { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("RECUSADOS")]
+ public int Recusados { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("TOTAL DE RENOVAÇÕES")]
+ public int Total { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Sinistro/Sinistro.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Sinistro/Sinistro.cs
new file mode 100644
index 0000000..39ae6e7
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Sinistro/Sinistro.cs
@@ -0,0 +1,165 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios.Sinistro;
+
+public class Sinistro
+{
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public long IdEmpresa { get; set; }
+
+ [Description("FILIAL")]
+ public string Empresa { get; set; }
+
+ [Description("PENDÊNCIA")]
+ public int Pendencia { get; set; }
+
+ [Description("NOME")]
+ public string Nome { get; set; }
+
+ [Description("APÓLICE")]
+ public string Apolice { get; set; }
+
+ [Description("ENDOSSO")]
+ public string Endosso { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("VIGÊNCIA INICIAL")]
+ public DateTime? VigenciaInicial { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("VIGÊNCIA FINAL")]
+ public DateTime? VigenciaFinal { get; set; }
+
+ [Description("NÚMERO SINISTRO")]
+ public string NumeroSinistro { get; set; }
+
+ [Tipo("ENUM")]
+ [Description("TIPO")]
+ public TipoSinistro TipoSinistro { get; set; }
+
+ [Tipo("DATA/TIME")]
+ [Description("DATA OCORRÊNCIA")]
+ public DateTime DataSinistro { get; set; }
+
+ [Tipo("DATA/TIME")]
+ [Description("RECLAMAÇÃO")]
+ public DateTime Reclamacao { get; set; }
+
+ [Description("ITEM")]
+ public string Item { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR")]
+ public decimal Valor { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR PAGO")]
+ public decimal ValorPago { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR ORÇADO")]
+ public decimal ValorOrcado { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR LIBERADO")]
+ public decimal ValorLiberado { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR SALVADO")]
+ public decimal ValorSalvado { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR FRANQUIA")]
+ public decimal ValorFranquia { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("LIQUIDAÇÃO")]
+ public DateTime? Liquidacao { get; set; }
+
+ [Tipo("ENUM")]
+ [Description("STATUS")]
+ public StatusSinistro StatusSinistro { get; set; }
+
+ [Description("RAMO")]
+ public string Ramo { get; set; }
+
+ [Description("SEGURADORA")]
+ public string Seguradora { get; set; }
+
+ [Description("ESTIPULANTE")]
+ public string Estipulante { get; set; }
+
+ [Description("VENDEDOR PRINCIPAL")]
+ public string Vendedor { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA CONTROLE")]
+ public DateTime? DataControle { get; set; }
+
+ [Description("STATUS APÓLICE")]
+ public string StatusApolice { get; set; }
+
+ [Description("MECÂNICA")]
+ public string Mecanica { get; set; }
+
+ [Description("FUNILARIA")]
+ public string Funilaria { get; set; }
+
+ [Description("TIPO PERDA")]
+ public string TipoPerda { get; set; }
+
+ [Description("E-MAIL")]
+ public string Email { get; set; }
+
+ [Tipo("INVALID")]
+ public Gestor.Model.Domain.Seguros.Sinistro EntidadeSinistro { get; set; }
+
+ [Tipo("INVALID")]
+ public Documento Documento { get; set; }
+
+ [Tipo("INVALID")]
+ public Gestor.Model.Domain.Seguros.Cliente Cliente { get; set; }
+
+ [Tipo("INVALID")]
+ public Item EntidadeItem { get; set; }
+
+ [Description("PASTA")]
+ public string Pasta { get; set; }
+
+ [Description("PASTA CLIENTE")]
+ public string PastaCliente { get; set; }
+
+ [Description("CPF/CNPJ")]
+ public string CpfCnpj { get; set; }
+
+ [Description("STATUS INTERNO")]
+ public string StatusPersonalizado { get; set; }
+
+ [Description("AUXILIAR")]
+ public string Auxiliar { get; set; }
+
+ [Description("TELEFONE")]
+ public string Telefone { get; set; }
+
+ [Description("MOTIVO")]
+ public string Motivo { get; set; }
+
+ [Description("USUÁRIO CRIAÇÃO")]
+ public string UsuarioCriacao { get; set; }
+
+ [Description("DATA CRIAÇÃO")]
+ public DateTime? DataCriacao { get; set; }
+
+ [Description("USUÁRIO ALTERAÇÃO")]
+ public string UsuarioAlteracao { get; set; }
+
+ [Description("DATA ALTERAÇÃO")]
+ public DateTime? DataAlteracao { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Sinistro/SinteticoSinistro.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Sinistro/SinteticoSinistro.cs
new file mode 100644
index 0000000..261781e
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Sinistro/SinteticoSinistro.cs
@@ -0,0 +1,33 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios.Sinistro;
+
+public class SinteticoSinistro
+{
+ public string Descricao { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("TOTAL")]
+ public int Total { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE LIQUIDADO")]
+ public int Liquidado { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR LIQUIDADO")]
+ public decimal ValorLiquidado { get; set; }
+
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE PENDENTE")]
+ public int Pendente { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR PENDENTE")]
+ public decimal ValorPendente { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR TOTAL")]
+ public decimal ValorTotal { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios.Tarefa/Tarefa.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios.Tarefa/Tarefa.cs
new file mode 100644
index 0000000..6e5909a
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios.Tarefa/Tarefa.cs
@@ -0,0 +1,98 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+
+namespace Gestor.Model.Domain.Relatorios.Tarefa;
+
+public class Tarefa
+{
+ private string _usuario;
+
+ private string _cliente;
+
+ private string _referencia;
+
+ private string _tipoTarefa;
+
+ [Tipo("INVALID")]
+ public long IdEntidade { get; set; }
+
+ [Tipo("INVALID")]
+ public TipoTarefa Entidade { get; set; }
+
+ [Tipo("INVALID")]
+ public long Id { get; set; }
+
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Description("TÍTULO")]
+ public string Titulo { get; set; }
+
+ [Tipo("INVALID")]
+ public long IdCliente { get; set; }
+
+ [Description("CLIENTE")]
+ public string Cliente
+ {
+ get
+ {
+ return _cliente?.ToUpper();
+ }
+ set
+ {
+ _cliente = value;
+ }
+ }
+
+ [Description("USUÁRIO")]
+ public string Usuario
+ {
+ get
+ {
+ return _usuario?.ToUpper();
+ }
+ set
+ {
+ _usuario = value;
+ }
+ }
+
+ [Description("REFERÊNCIA")]
+ public string Referencia
+ {
+ get
+ {
+ return _referencia?.ToUpper();
+ }
+ set
+ {
+ _referencia = value;
+ }
+ }
+
+ [Description("TIPO DE TAREFA")]
+ public string TipoTarefa
+ {
+ get
+ {
+ return _tipoTarefa?.ToUpper();
+ }
+ set
+ {
+ _tipoTarefa = value;
+ }
+ }
+
+ [Tipo("DATA/TIME")]
+ [Description("AGENDAMENTO")]
+ public DateTime Agendamento { get; set; }
+
+ [Tipo("DATA/TIME?")]
+ [Description("CONCLUSÃO")]
+ public DateTime? Conclusao { get; set; }
+
+ [Description("STATUS")]
+ public string Status { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/CartaoSegurado.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/CartaoSegurado.cs
new file mode 100644
index 0000000..2e7a67c
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/CartaoSegurado.cs
@@ -0,0 +1,20 @@
+namespace Gestor.Model.Domain.Relatorios;
+
+public class CartaoSegurado
+{
+ public string Nome { get; set; }
+
+ public string Apolice { get; set; }
+
+ public string Vigencia { get; set; }
+
+ public string Item { get; set; }
+
+ public string Seguradora { get; set; }
+
+ public string LinkApolice { get; set; }
+
+ public string Assistencia { get; set; }
+
+ public string TelefoneCorretor { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/DadosRelatorio.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/DadosRelatorio.cs
new file mode 100644
index 0000000..cf5fbf9
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/DadosRelatorio.cs
@@ -0,0 +1,150 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Seguros;
+
+namespace Gestor.Model.Domain.Relatorios;
+
+public class DadosRelatorio
+{
+ [Tipo("INVALID")]
+ public bool Selecionado { get; set; }
+
+ [Tipo("INVALID")]
+ public Adiantamento EntidadeAdiantamento { get; set; }
+
+ [Tipo("INVALID")]
+ public Parcela EntidadeParcela { get; set; }
+
+ [Tipo("INVALID")]
+ public Documento EntidadeDocumento { get; set; }
+
+ [Tipo("INVALID")]
+ public VendedorParcela EntidadeVendedorParcela { get; set; }
+
+ [Tipo("INVALID")]
+ public long Id { get; set; }
+
+ [Description("CLIENTE")]
+ [Width("200")]
+ public string Cliente { get; set; }
+
+ [Description("PROPOSTA")]
+ public string Proposta { get; set; }
+
+ [Description("PEDIDO ENDOSSO")]
+ public string PedidoEndosso { get; set; }
+
+ [Description("APÓLICE")]
+ [Width("150")]
+ public string Apolice { get; set; }
+
+ [Description("ENDOSSO")]
+ [Width("100")]
+ public string Endosso { get; set; }
+
+ [Description("STATUS")]
+ public string Status { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("VIGÊNCIA INICIAL")]
+ [Width("115")]
+ public DateTime? VigenciaIncial { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("VIGÊNCIA FINAL")]
+ public DateTime? VigenciaFinal { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("COMISSÃO")]
+ [Width("70")]
+ public decimal? Comissao { get; set; }
+
+ [Tipo("VALOR?")]
+ [Description("PRÊMIO LÍQUIDO")]
+ [Width("110")]
+ public decimal? PremioLiquido { get; set; }
+
+ [Tipo("VALOR?")]
+ [Description("PRÊMIO TOTAL")]
+ public decimal? PremioTotal { get; set; }
+
+ [Description("PARCELA")]
+ [Width("60")]
+ public string Parcela { get; set; }
+
+ [Tipo("VALOR?")]
+ [Description("VALOR PARCELA")]
+ public decimal? ValorParcela { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("RECEBIMENTO")]
+ [Width("90")]
+ public DateTime? Recebimento { get; set; }
+
+ [Tipo("PERCENTUAL")]
+ [Description("% REPASSE")]
+ [Width("70")]
+ public decimal? ComissaoRepasse { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("REPASSE")]
+ [Width("120")]
+ public decimal Repasse { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR LÍQUIDO")]
+ [Width("110")]
+ public decimal ValorLiquido { get; set; }
+
+ [Description("SEGURADORA")]
+ public string Seguradora { get; set; }
+
+ [Description("RAMO")]
+ public string Ramo { get; set; }
+
+ [Description("PRODUTO")]
+ public string Produto { get; set; }
+
+ [Description("TIPO RENOVAÇÃO")]
+ public string Negocio { get; set; }
+
+ [Description("ESTIPULANTE")]
+ public string Estipulante { get; set; }
+
+ [Description("VENDEDOR")]
+ public string Vendedor { get; set; }
+
+ [Description("EMITIDO")]
+ public string DocumentoEmitido { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA DE CADASTRO DO DOCUMENTO")]
+ public DateTime? DataCriacao { get; set; }
+
+ [Tipo("INVALID")]
+ public int Tipo { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("DATA PAGAMENTO")]
+ [Width("120")]
+ public DateTime? DataPagamento { get; set; }
+
+ [Description("BANCO")]
+ public string Banco { get; set; }
+
+ [Description("Nº AGÊNCIA")]
+ public string Agencia { get; set; }
+
+ [Description("Nº CONTA")]
+ public string Conta { get; set; }
+
+ [Tipo("INVALID")]
+ public string CPFVendedor { get; set; }
+
+ [Description("HOUVE RECEBIMENTO")]
+ public string HouveRecebimento { get; set; }
+
+ [Description("RECEBIDO POR COMPLETO")]
+ public string RecebidoPorCompleto { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/DadosVinculo.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/DadosVinculo.cs
new file mode 100644
index 0000000..602974d
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/DadosVinculo.cs
@@ -0,0 +1,25 @@
+using System;
+using Gestor.Model.Domain.Aggilizador;
+
+namespace Gestor.Model.Domain.Relatorios;
+
+public class DadosVinculo
+{
+ public VinculoDocumento Vinculo { get; set; }
+
+ public long Id { get; set; }
+
+ public string Documento { get; set; }
+
+ public string Proposta { get; set; }
+
+ public string Apolice { get; set; }
+
+ public string Endosso { get; set; }
+
+ public long IdSeguradora { get; set; }
+
+ public DateTime VigenciaInicial { get; set; }
+
+ public DateTime? Vigenciafinal { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/FiltroPersonalizado.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/FiltroPersonalizado.cs
new file mode 100644
index 0000000..83ace76
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/FiltroPersonalizado.cs
@@ -0,0 +1,24 @@
+using System;
+
+namespace Gestor.Model.Domain.Relatorios;
+
+public class FiltroPersonalizado
+{
+ public int Id { get; set; }
+
+ public string Nome { get; set; }
+
+ public string Propriedade { get; set; }
+
+ public Type Tipo { get; set; }
+
+ public string ValorIncial { get; set; }
+
+ public string ValorFinal { get; set; }
+
+ public string Descricao { get; set; }
+
+ public bool SemValor { get; set; }
+
+ public bool Diferente { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/FiltroRelatorio.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/FiltroRelatorio.cs
new file mode 100644
index 0000000..c52bc18
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/FiltroRelatorio.cs
@@ -0,0 +1,35 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+
+namespace Gestor.Model.Domain.Relatorios;
+
+public class FiltroRelatorio
+{
+ private string _descricao;
+
+ public long Id { get; set; }
+
+ public string Icone { get; set; }
+
+ [Description("DESCRIÇÃO DO FILTRO")]
+ public string Descricao
+ {
+ get
+ {
+ return _descricao;
+ }
+ set
+ {
+ _descricao = value;
+ if (!string.IsNullOrWhiteSpace(value))
+ {
+ Icone = value.Substring(0, 1);
+ }
+ }
+ }
+
+ [Tipo("ENUM")]
+ [Description("TIPO DO FILTRO")]
+ public TipoFiltroRelatorio Tipo { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/FiltroTipoParcela.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/FiltroTipoParcela.cs
new file mode 100644
index 0000000..27ae25e
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/FiltroTipoParcela.cs
@@ -0,0 +1,28 @@
+using Gestor.Model.Common;
+
+namespace Gestor.Model.Domain.Relatorios;
+
+public class FiltroTipoParcela
+{
+ private bool _selecionado;
+
+ public SubTipo Tipo { get; set; }
+
+ public bool Selecionado
+ {
+ get
+ {
+ return _selecionado;
+ }
+ set
+ {
+ if (IsEnable)
+ {
+ _selecionado = value;
+ }
+ }
+ }
+
+ public bool IsEnable { get; set; } = true;
+
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/Filtros.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/Filtros.cs
new file mode 100644
index 0000000..2242c91
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/Filtros.cs
@@ -0,0 +1,52 @@
+using System;
+using System.Collections.Generic;
+
+namespace Gestor.Model.Domain.Relatorios;
+
+public class Filtros : ICloneable
+{
+ public DateTime Inicio { get; set; }
+
+ public DateTime Fim { get; set; }
+
+ public int ValorInicio { get; set; }
+
+ public int ValorFim { get; set; }
+
+ public long IdEmpresa { get; set; }
+
+ public List<long> Seguradoras { get; set; }
+
+ public List<long> Ramos { get; set; }
+
+ public List<long> Status { get; set; }
+
+ public List<long> Vendedores { get; set; }
+
+ public List<long> VinculoVendedores { get; set; }
+
+ public List<long> TipoVendedor { get; set; }
+
+ public List<long> Estipulantes { get; set; }
+
+ public List<long> Produtos { get; set; }
+
+ public List<long> Negocio { get; set; }
+
+ public List<long> Usuarios { get; set; }
+
+ public List<long> Telas { get; set; }
+
+ public List<long> Relatorios { get; set; }
+
+ public string Referencia { get; set; }
+
+ public List<FiltroTipoParcela> ParcelasEspeciais { get; set; }
+
+ public string FiltrarDocumento { get; set; }
+
+ public object Clone()
+ {
+ return (Filtros)MemberwiseClone();
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/Listagem.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/Listagem.cs
new file mode 100644
index 0000000..a173329
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/Listagem.cs
@@ -0,0 +1,14 @@
+using System.ComponentModel;
+
+namespace Gestor.Model.Domain.Relatorios;
+
+public class Listagem
+{
+ [Description("AGRUPAMENTO")]
+ public string Agrupamento { get; set; }
+
+ [Description("VALOR")]
+ public string Valor { get; set; }
+
+ public string NomeRelatorio { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/NegocioRelatorio.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/NegocioRelatorio.cs
new file mode 100644
index 0000000..11af3ed
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/NegocioRelatorio.cs
@@ -0,0 +1,37 @@
+using System.ComponentModel;
+using System.Runtime.CompilerServices;
+using Gestor.Model.Common;
+
+namespace Gestor.Model.Domain.Relatorios;
+
+public class NegocioRelatorio : INotifyPropertyChanged
+{
+ private bool _selecionado;
+
+ public bool Selecionado
+ {
+ get
+ {
+ return _selecionado;
+ }
+ set
+ {
+ if (value != _selecionado)
+ {
+ _selecionado = value;
+ OnPropertyChanged("Selecionado");
+ }
+ }
+ }
+
+ public int Id { get; set; }
+
+ public NegocioCorretora Negocio { get; set; }
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/ParametrosRelatorio.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/ParametrosRelatorio.cs
new file mode 100644
index 0000000..db2d41c
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/ParametrosRelatorio.cs
@@ -0,0 +1,46 @@
+using System.ComponentModel;
+using System.Runtime.CompilerServices;
+using Gestor.Model.Common;
+
+namespace Gestor.Model.Domain.Relatorios;
+
+public class ParametrosRelatorio : INotifyPropertyChanged
+{
+ private bool _selecionado;
+
+ public bool Selecionado
+ {
+ get
+ {
+ return _selecionado;
+ }
+ set
+ {
+ _selecionado = value;
+ OnPropertyChanged("Selecionado");
+ }
+ }
+
+ public long Id { get; set; }
+
+ public long IdUsuario { get; set; }
+
+ public Relatorio Relatorio { get; set; }
+
+ public string Campo { get; set; }
+
+ public string Header { get; set; }
+
+ public int Width { get; set; }
+
+ public string Tipo { get; set; }
+
+ public int Ordem { get; set; }
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/ParametrosTotalizacao.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/ParametrosTotalizacao.cs
new file mode 100644
index 0000000..5147ba3
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/ParametrosTotalizacao.cs
@@ -0,0 +1,18 @@
+using Gestor.Model.Common;
+
+namespace Gestor.Model.Domain.Relatorios;
+
+public class ParametrosTotalizacao
+{
+ public long Id { get; set; }
+
+ public long IdUsuario { get; set; }
+
+ public Relatorio Relatorio { get; set; }
+
+ public string Campo { get; set; }
+
+ public string Header { get; set; }
+
+ public bool Ativa { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/PlanilhaCompleta.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/PlanilhaCompleta.cs
new file mode 100644
index 0000000..0eac0cb
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/PlanilhaCompleta.cs
@@ -0,0 +1,685 @@
+using System;
+using System.ComponentModel;
+
+namespace Gestor.Model.Domain.Relatorios;
+
+public class PlanilhaCompleta
+{
+ [Description("PROPOSTA")]
+ public string NumeroProposta { get; set; }
+
+ [Description("APÓLICE")]
+ public string NumeroApolice { get; set; }
+
+ [Description("PEDIDO ENDOSSO")]
+ public string NumeroPedidoEndosso { get; set; }
+
+ [Description("ENDOSSO")]
+ public string NumeroEndosso { get; set; }
+
+ [Description("STATUS")]
+ public string Status { get; set; }
+
+ [Description("TIPO DO RECEBIMENTO")]
+ public string TipoRecebimento { get; set; }
+
+ [Description("EMISSÃO")]
+ public DateTime? Emissao { get; set; }
+
+ [Description("VIGÊNCIA INICIAL")]
+ public DateTime? VigenciaInicial { get; set; }
+
+ [Description("VIGÊNCIA FINAL")]
+ public DateTime? VigenciaFinal { get; set; }
+
+ [Description("TRANSMISSÃO")]
+ public DateTime? Remessa { get; set; }
+
+ [Description("COMISSÃO")]
+ public decimal? Comissao { get; set; }
+
+ [Description("COMISSÃO GERADA")]
+ public decimal? ComissaoGerada { get; set; }
+
+ [Description("LÍQUIDO FATURA")]
+ public decimal? LiquidoFatura { get; set; }
+
+ [Description("PRÊMIO LÍQUIDO")]
+ public decimal? PremioLiquido { get; set; }
+
+ [Description("PRÊMIO TOTAL")]
+ public decimal? PremioTotal { get; set; }
+
+ [Description("TOTAL FATURA")]
+ public decimal? TotalFatura { get; set; }
+
+ [Description("COMISSÃO ADICIONAL")]
+ public bool AdicionalComiss { get; set; }
+
+ [Description("PRÊMIO ADICIONAL")]
+ public decimal? PremioAdicional { get; set; }
+
+ [Description("PRÊMIO CUSTO")]
+ public decimal? PremioCusto { get; set; }
+
+ [Description("IOF")]
+ public decimal? Iof { get; set; }
+
+ [Description("NÚMERO DE PARCELAS")]
+ public int? NumParcelas { get; set; }
+
+ [Description("VALOR PARCELAS")]
+ public decimal? ValorParcela { get; set; }
+
+ [Description("FORMA DE PAGAMENTO")]
+ public string FormaPagamento { get; set; }
+
+ [Description("SEGURADORA")]
+ public string Seguradora { get; set; }
+
+ [Description("RAMO")]
+ public string Ramo { get; set; }
+
+ [Description("SEGURADORA ANTERIOR")]
+ public string SeguradoraAnterior { get; set; }
+
+ [Description("CÓDIGO DOCUMENTO")]
+ public long IdDocumento { get; set; }
+
+ [Description("NEGÓCIO CORRETORA")]
+ public string Negocio { get; set; }
+
+ [Description("ESTIPULANTE 1 DOCUMENTO")]
+ public string Estipulante { get; set; }
+
+ [Description("ESTIPULANTE 2 DOCUMENTO")]
+ public string Estipulante2 { get; set; }
+
+ [Description("ESTIPULANTE 3 DOCUMENTO")]
+ public string Estipulante3 { get; set; }
+
+ [Description("ESTIPULANTE 4 DOCUMENTO")]
+ public string Estipulante4 { get; set; }
+
+ [Description("ESTIPULANTE 5 DOCUMENTO")]
+ public string Estipulante5 { get; set; }
+
+ [Description("VENDEDOR PRINCIPAL")]
+ public string Vendedor { get; set; }
+
+ [Description("DATA CONTROLE")]
+ public DateTime? DataControle { get; set; }
+
+ [Description("PRODUTO")]
+ public string Produto { get; set; }
+
+ [Description("DOCUMENTO SINISTRADO")]
+ public string DocumentoSinistrado { get; set; }
+
+ [Description("QUANTIDADE DE SINISTROS")]
+ public int QtdeSinistro { get; set; }
+
+ [Description("FRANQUIA DA APÓLICE")]
+ public decimal? ValorFranquiaApolice { get; set; }
+
+ [Description("QUANTIDADE DE ENDOSSOS")]
+ public int QtdeEndosso { get; set; }
+
+ [Description("OBSERVAÇÃO DOCUMENTO")]
+ public string ObservacaoDocumento { get; set; }
+
+ [Description("NOME DO CLIENTE")]
+ public string NomeCliente { get; set; }
+
+ [Description("NASCIMENTO")]
+ public DateTime? NascimentoCliente { get; set; }
+
+ [Description("SEXO")]
+ public string SexoCliente { get; set; }
+
+ [Description("ESTADO CIVIL")]
+ public string EstadoCivilCliente { get; set; }
+
+ [Description("DOCUMENTO PRINCIPAL")]
+ public string DocumentoCliente { get; set; }
+
+ [Description("IDENTIDADE")]
+ public string IdentidadeCliente { get; set; }
+
+ [Description("EMISSOR")]
+ public string EmissorCliente { get; set; }
+
+ [Description("ESTADO EMISSOR")]
+ public string EstadoEmissorCliente { get; set; }
+
+ [Description("EXPEDIÇÃO")]
+ public DateTime? ExpedicaoCliente { get; set; }
+
+ [Description("HIBILITAÇÃO")]
+ public string HabilitacaoCliente { get; set; }
+
+ [Description("PRIMEIRA HABILITAÇÃO")]
+ public DateTime? PrimeiraHabilitacaoCliente { get; set; }
+
+ [Description("VENCIMENTO DA HABILITAÇÃO")]
+ public DateTime? VencimentoHabilitacaoCliente { get; set; }
+
+ [Description("CATEGORIA DA HABILITAÇÃO")]
+ public string CategoriaHabilitacaoCliente { get; set; }
+
+ [Description("CLIENTE DESDE")]
+ public DateTime? ClienteDesde { get; set; }
+
+ [Description("PARENTESCO")]
+ public string Parentesco { get; set; }
+
+ [Description("PREFIXO1")]
+ public string Prefixo1 { get; set; }
+
+ [Description("TELEFONE1")]
+ public string Telefone1 { get; set; }
+
+ [Description("PREFIXO2")]
+ public string Prefixo2 { get; set; }
+
+ [Description("TELEFONE2")]
+ public string Telefone2 { get; set; }
+
+ [Description("PREFIXO3")]
+ public string Prefixo3 { get; set; }
+
+ [Description("TELEFONE3")]
+ public string Telefone3 { get; set; }
+
+ [Description("E-MAIL1")]
+ public string Email1 { get; set; }
+
+ [Description("E-MAIL2")]
+ public string Email2 { get; set; }
+
+ [Description("CEP")]
+ public string Cep { get; set; }
+
+ [Description("ENDEREÇO")]
+ public string Endereco { get; set; }
+
+ [Description("NÚMERO")]
+ public string Numero { get; set; }
+
+ [Description("COMPLEMENTO")]
+ public string Complemento { get; set; }
+
+ [Description("BAIRRO")]
+ public string Bairro { get; set; }
+
+ [Description("CIDADE")]
+ public string Cidade { get; set; }
+
+ [Description("ESTADO")]
+ public string Estado { get; set; }
+
+ [Description("C.E.I.")]
+ public string CeiCliente { get; set; }
+
+ [Description("R.N.E.")]
+ public string RneCliente { get; set; }
+
+ [Description("ATIVIDADE")]
+ public string AtividadeCliente { get; set; }
+
+ [Description("PROFISSÃO")]
+ public string ProfissaoCliente { get; set; }
+
+ [Description("BANCO")]
+ public string BancoCliente { get; set; }
+
+ [Description("AGÊNCIA")]
+ public string AgenciaCliente { get; set; }
+
+ [Description("CONTA")]
+ public string ContaCliente { get; set; }
+
+ [Description("FALECIDO")]
+ public string FalecidoCliente { get; set; }
+
+ [Description("NOME DO CONTATO")]
+ public string NomeContato { get; set; }
+
+ [Description("NASCIMENTO DO CONTATO")]
+ public DateTime? NascimentoContato { get; set; }
+
+ [Description("DOCUMENTO DO CONTATO")]
+ public string DocumentoContato { get; set; }
+
+ [Description("IDENTIDADE DO CONTATO")]
+ public string IdentidadeContato { get; set; }
+
+ [Description("EXPEDIÇÃO DO CONTATO")]
+ public DateTime? ExpedicaoContato { get; set; }
+
+ [Description("PREFIXO DO CONTATO")]
+ public string PrefixoContato { get; set; }
+
+ [Description("TELEFONE DO CONTATO")]
+ public string TelefoneContato { get; set; }
+
+ [Description("E-MAIL DO CONTATO")]
+ public string EmailContato { get; set; }
+
+ [Description("HABILITAÇÃO DO CONTATO")]
+ public string HabilitacaoContato { get; set; }
+
+ [Description("PRIMEIRA HABILITAÇÃO DO CONTATO")]
+ public DateTime? PrimeiraHabilitacaoContato { get; set; }
+
+ [Description("BANCO DO CONTATO")]
+ public string BancoContato { get; set; }
+
+ [Description("AGÊNCIA DO CONTATO")]
+ public string AgenciaContato { get; set; }
+
+ [Description("CONTA DO CONTATO")]
+ public string ContaContato { get; set; }
+
+ [Description("OBSERVAÇÃO")]
+ public string ObservacaoCliente { get; set; }
+
+ [Description("PASTA")]
+ public string PastaCliente { get; set; }
+
+ [Description("DESCRIÇÃO DO ITEM")]
+ public string DescricaoItem { get; set; }
+
+ [Description("ITEM SINISTRADO")]
+ public string SinistradoItem { get; set; }
+
+ [Description("STATUS DO ITEM")]
+ public string StatusItem { get; set; }
+
+ [Description("OBSERVAÇÃO DO ITEM")]
+ public string ObsItem { get; set; }
+
+ [Description("FROTA")]
+ public string Frota { get; set; }
+
+ [Description("CÓDIGO FIPE")]
+ public string CodFipe { get; set; }
+
+ [Description("COMBUSTÍVEL")]
+ public string Combustivel { get; set; }
+
+ [Description("MODELO")]
+ public string Modelo { get; set; }
+
+ [Description("FABRICANTE")]
+ public string Fabricante { get; set; }
+
+ [Description("CATEGORIA")]
+ public string Categoria { get; set; }
+
+ [Description("CHASSI")]
+ public string Chassi { get; set; }
+
+ [Description("PLACA")]
+ public string Placa { get; set; }
+
+ [Description("ANO DE FABRICAÇÃO")]
+ public string AnoFab { get; set; }
+
+ [Description("ANO DO MODELO")]
+ public string AnoMod { get; set; }
+
+ [Description("RENAVAM")]
+ public string Renavam { get; set; }
+
+ [Description("CAPACIDADE")]
+ public string Capacidade { get; set; }
+
+ [Description("PORTAS")]
+ public string Portas { get; set; }
+
+ [Description("COR")]
+ public string Cor { get; set; }
+
+ [Description("OBSERVAÇÃO DO AUTO")]
+ public string ObsAuto { get; set; }
+
+ [Description("OBSERVAÇÃO DE VIDA")]
+ public string ObsVida { get; set; }
+
+ [Description("REGIÃO DE CIRCULAÇÃO")]
+ public string RegCirc { get; set; }
+
+ [Description("TABELA DE REFERÊNCIA")]
+ public string TabelaRef { get; set; }
+
+ [Description("BÔNUS")]
+ public decimal? Bonus { get; set; }
+
+ [Description("PORCENTAGEM DE REFERÊNCIA")]
+ public decimal? PorcRef { get; set; }
+
+ [Description("VALOR DETERMINADO")]
+ public decimal? ValorDeterminado { get; set; }
+
+ [Description("CI")]
+ public string Ci { get; set; }
+
+ [Description("CEP PERNOITE")]
+ public string CepPernoite { get; set; }
+
+ [Description("FINANCIADO")]
+ public string Financiado { get; set; }
+
+ [Description("ZERO KM")]
+ public string ZeroKm { get; set; }
+
+ [Description("INSENÇÃO")]
+ public string Isencao { get; set; }
+
+ [Description("PCD")]
+ public string Pcd { get; set; }
+
+ [Description("CORREÇÃO")]
+ public string Correcao { get; set; }
+
+ [Description("DANOS MATERIAIS PREMIO")]
+ public decimal? DanosMateriasPremios { get; set; }
+
+ [Description("DANOS MATERIAIS LMI")]
+ public decimal? DanosMateriasLmi { get; set; }
+
+ [Description("DANOS MATERIAIS FRANQUIA")]
+ public decimal? DanosMateriasFranquia { get; set; }
+
+ [Description("DANOS MORAIS PREMIO")]
+ public decimal? DanosMoraisPremios { get; set; }
+
+ [Description("DANOS MORAIS LMI")]
+ public decimal? DanosMoraisLmi { get; set; }
+
+ [Description("DANOS MORAIS FRANQUIA")]
+ public decimal? DanosMoraisFranquia { get; set; }
+
+ [Description("DANOS CORPORAIS PREMIO")]
+ public decimal? DanosCorporaisPremios { get; set; }
+
+ [Description("DANOS CORPORAIS LMI")]
+ public decimal? DanosCorporaisLmi { get; set; }
+
+ [Description("DANOS CORPORAIS FRANQUIA")]
+ public decimal? DanosCorporaisFranquia { get; set; }
+
+ [Description("ACIDENTES PASSAGEIRO PREMIO")]
+ public decimal? AppPremios { get; set; }
+
+ [Description("ACIDENTES PASSAGEIRO LMI")]
+ public decimal? AppLmi { get; set; }
+
+ [Description("ACIDENTES PASSAGEIRO FRANQUIA")]
+ public decimal? AppFranquia { get; set; }
+
+ [Description("CARRO RESERVA PREMIO")]
+ public decimal? CarroReservaPremios { get; set; }
+
+ [Description("CARRO RESERVA LMI")]
+ public decimal? CarroReservaLmi { get; set; }
+
+ [Description("CARRO RESERVA FRANQUIA")]
+ public decimal? CarroReservaFranquia { get; set; }
+
+ [Description("CARRO RESERVA OBS")]
+ public string CarroReservaObs { get; set; }
+
+ [Description("ENDEREÇO DO ITEM")]
+ public string EnderecoItem { get; set; }
+
+ [Description("NÚMERO DO ITEM")]
+ public string NumeroItem { get; set; }
+
+ [Description("COMPLEMENTO DO ITEM")]
+ public string ComplementoItem { get; set; }
+
+ [Description("BAIRRO DO ITEM")]
+ public string BairroItem { get; set; }
+
+ [Description("CIDADE DO ITEM")]
+ public string CidadeItem { get; set; }
+
+ [Description("UF DO ITEM")]
+ public string UfItem { get; set; }
+
+ [Description("CEP DO ITEM")]
+ public string CepItem { get; set; }
+
+ [Description("TIPO DE RESIDÊNCIA DO ITEM")]
+ public string TipoResidenciaPatrimonial { get; set; }
+
+ [Description("BENS DO ITEM")]
+ public string BensPatrimonial { get; set; }
+
+ [Description("OBSERVAÇÃO DO ITEM")]
+ public string ObsPatrimonial { get; set; }
+
+ [Description("OBSERVAÇÃO DO ITEM")]
+ public string ObsGranizo { get; set; }
+
+ [Description("CULTURA DO GRANIZO")]
+ public string CulturaGranizo { get; set; }
+
+ [Description("SÍTIO DO GRANIZO")]
+ public string SitioGranizo { get; set; }
+
+ [Description("SUBSÍDIO FEDERAL DO GRANIZO")]
+ public decimal? SubFedGranizo { get; set; }
+
+ [Description("SUBSÍDIO ESTADUAL DO GRANIZO")]
+ public decimal? SubEstGranizo { get; set; }
+
+ [Description("IMOBILIÁRIA DO ITEM")]
+ public string ImobiliariaPatrimonial { get; set; }
+
+ [Description("CONTATO DO ITEM")]
+ public string ContatoPatrimonial { get; set; }
+
+ [Description("PRIMEIRO LOCATÁRIO")]
+ public string Locatario { get; set; }
+
+ [Description("DOCUMENTO PRIMEIRO LOCATÁRIO")]
+ public string DocumentoLocatario { get; set; }
+
+ [Description("DDD PRIMEIRO LOCATÁRIO")]
+ public string DddLocatario { get; set; }
+
+ [Description("TELEFONE PRIMEIRO LOCATÁRIO")]
+ public string TelefoneLocatario { get; set; }
+
+ [Description("DDD 2 PRIMEIRO LOCATÁRIO")]
+ public string Ddd2Locatario { get; set; }
+
+ [Description("TELEFONE 2 PRIMEIRO LOCATÁRIO")]
+ public string Telefone2Locatario { get; set; }
+
+ [Description("SEGUNDO LOCATÁRIO")]
+ public string Locatario2 { get; set; }
+
+ [Description("DOCUMENTO SEGUNDO LOCATÁRIO")]
+ public string DocumentoLocatario2 { get; set; }
+
+ [Description("DDD SEGUNDO LOCATÁRIO")]
+ public string DddLocatario2 { get; set; }
+
+ [Description("TELEFONE SEGUNDO LOCATÁRIO")]
+ public string TelefoneLocatario2 { get; set; }
+
+ [Description("TERCEIRO LOCATÁRIO")]
+ public string Locatario3 { get; set; }
+
+ [Description("DOCUMENTO TERCEIRO LOCATÁRIO")]
+ public string DocumentoLocatario3 { get; set; }
+
+ [Description("DDD TERCEIRO LOCATÁRIO")]
+ public string DddLocatario3 { get; set; }
+
+ [Description("TELEFONE TERCEIRO LOCATÁRIO")]
+ public string TelefoneLocatario3 { get; set; }
+
+ [Description("ÁREA")]
+ public string AreaGranizo { get; set; }
+
+ [Description("FABRICANTE AERONÁUTICO")]
+ public string FabricanteAero { get; set; }
+
+ [Description("MODELO")]
+ public string ModeloAero { get; set; }
+
+ [Description("SÉRIE DE REGISTRO")]
+ public string SerieAero { get; set; }
+
+ [Description("NOME PREFIXO")]
+ public string NomeAero { get; set; }
+
+ [Description("ANO DE FABRICAÇÃO")]
+ public int? AnoFabAero { get; set; }
+
+ [Description("TRIPULANTES")]
+ public int? TripulantesAero { get; set; }
+
+ [Description("PASSAGEIROS")]
+ public int? PassageirosAero { get; set; }
+
+ [Description("MARINA AÉREO")]
+ public string MarinaAero { get; set; }
+
+ [Description("PESO")]
+ public decimal? PesoAero { get; set; }
+
+ [Description("CERTIFICADO")]
+ public string CertificadoAero { get; set; }
+
+ [Description("VISTORIA")]
+ public DateTime? VistoriaAero { get; set; }
+
+ [Description("CASCO")]
+ public string CascoAero { get; set; }
+
+ [Description("NAVEGAÇÃO")]
+ public string NavegacaoAero { get; set; }
+
+ [Description("OBSERVAÇÃO DO AERO")]
+ public string ObsAero { get; set; }
+
+ [Description("OBSERVAÇÃO RISCOS DIVERSOS")]
+ public string ObsRiscos { get; set; }
+
+ [Description("SUBSÍDIO FEDERAL RISCOS DIVERSOS")]
+ public decimal? SubFedRiscos { get; set; }
+
+ [Description("SUBSÍDIO ESTADUAL RISCOS DIVERSOS")]
+ public decimal? SubEstRiscos { get; set; }
+
+ [Description("ÁREA")]
+ public string AreaRiscos { get; set; }
+
+ [Description("PLANO")]
+ public string PlanoVida { get; set; }
+
+ [Description("SÓCIOS")]
+ public int? SociosVida { get; set; }
+
+ [Description("FUNCIONÁRIOS")]
+ public int? FuncionariosVida { get; set; }
+
+ [Description("CAPITAL SÓCIO")]
+ public decimal? CapitalSociosVida { get; set; }
+
+ [Description("CAPITAL FUNCIONÁRIOS")]
+ public decimal? CapitalFuncionariosVida { get; set; }
+
+ [Description("NOME PERFIL")]
+ public string NomePerfil { get; set; }
+
+ [Description("CPF PERFIL")]
+ public string CpfPerfil { get; set; }
+
+ [Description("NASCIMENTO PERFIL")]
+ public DateTime? NascimentoPerfil { get; set; }
+
+ [Description("SEXO PERFIL")]
+ public string SexoPerfil { get; set; }
+
+ [Description("ESTADO CIVIL PERFIL")]
+ public string EstadoCivilPerfil { get; set; }
+
+ [Description("CEP PERNOITE PERFIL")]
+ public string CEPPernoitePerfil { get; set; }
+
+ [Description("CEP CIRCULAÇÃO PERFIL")]
+ public string CEPCirculacaoPerfil { get; set; }
+
+ [Description("DESCRIÇÃO DO SINISTRO")]
+ public string DescricaoSinistro { get; set; }
+
+ [Description("NÚMERO DO SINISTRO")]
+ public string NumeroSinistro { get; set; }
+
+ [Description("DATA RECLAMAÇÃO")]
+ public DateTime? DataReclamacao { get; set; }
+
+ [Description("DATA LIQUIDAÇÃO")]
+ public DateTime? DataLiquidacao { get; set; }
+
+ [Description("DATA DO SINISTRO")]
+ public DateTime? DataSinistro { get; set; }
+
+ [Description("OBSERVAÇÃO DO SINISTRO")]
+ public string ObsSinistro { get; set; }
+
+ [Description("MOTIVO DO SINISTRO")]
+ public string MotivoSinistro { get; set; }
+
+ [Description("VALOR DO SINISTRO")]
+ public decimal? ValorSinistro { get; set; }
+
+ [Description("VALOR FRANQUIA")]
+ public decimal? ValorFranquiaSinistro { get; set; }
+
+ [Description("VALOR ORÇADO")]
+ public decimal? ValorOrcado { get; set; }
+
+ [Description("VALOR LIBERADO")]
+ public decimal? ValorLiberado { get; set; }
+
+ [Description("VALOR PAGO")]
+ public decimal? ValorPago { get; set; }
+
+ [Description("VALOR SALVO")]
+ public decimal? ValorSalvo { get; set; }
+
+ [Description("TIPO DA PROSPECÇÃO")]
+ public string TipoProspeccao { get; set; }
+
+ [Description("OBSERVAÇÕES DA PROSPECÇÃO")]
+ public string ObsProspeccao { get; set; }
+
+ [Description("TITULO DA TAREFA")]
+ public string TituloTarefa { get; set; }
+
+ [Description("DESCRIÇÃO DA TAREFA")]
+ public string DescricaoTarefa { get; set; }
+
+ [Description("AGENDAMENTO DA TAREFA")]
+ public DateTime? AgendamentoTarefa { get; set; }
+
+ [Description("BENS/CONSORCIO")]
+ public string BensConsorcio { get; set; }
+
+ [Description("GRUPO")]
+ public string Grupo { get; set; }
+
+ [Description("COTA")]
+ public string Cota { get; set; }
+
+ [Description("VALOR CRÉDITO")]
+ public decimal? ValorCredito { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/SinteticModel.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/SinteticModel.cs
new file mode 100644
index 0000000..2afa8f4
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/SinteticModel.cs
@@ -0,0 +1,10 @@
+namespace Gestor.Model.Domain.Relatorios;
+
+public class SinteticModel
+{
+ public string Hint { get; set; }
+
+ public object Value { get; set; }
+
+ public string DescriptionField { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/SinteticModelList.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/SinteticModelList.cs
new file mode 100644
index 0000000..fd06065
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/SinteticModelList.cs
@@ -0,0 +1,10 @@
+using System.Collections.Generic;
+
+namespace Gestor.Model.Domain.Relatorios;
+
+public class SinteticModelList
+{
+ public string Hint { get; set; }
+
+ public List<object> Value { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/Sintetico.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/Sintetico.cs
new file mode 100644
index 0000000..9c1acce
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/Sintetico.cs
@@ -0,0 +1,253 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios;
+
+public class Sintetico
+{
+ private const string categoriaSeguros = "SEGUROS";
+
+ private const string tipoQuantidade = "QUANTIDADE";
+
+ public const string descricaoNegociosProprios = "QUANTIDADE DE NEGÓCIOS PRÓPRIOS";
+
+ public const string propriedadeNegociosProprios = "NegociosProprios";
+
+ public const string descricaoSegurosNovos = "QUANTIDADE DE SEGUROS NOVOS";
+
+ public const string propriedadeSegurosNovos = "SegurosNovos";
+
+ [Category("FINANCEIRO")]
+ [Description("AGRUPAMENTO")]
+ public string Agrupamento { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("VALOR")]
+ [Description("PRÊMIO TOTAL")]
+ public decimal? PremioTotal { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("VALOR")]
+ [Description("PRÊMIO LÍQUIDO")]
+ public decimal? PremioLiquido { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("PERCENTUAL")]
+ [Description("MÉDIA DE COMISSÃO PONDERADA")]
+ public decimal? MediaPonderada { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("PERCENTUAL")]
+ [Description("MÉDIA DE COMISSÃO FECHADA")]
+ public decimal? MediaComissao { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("VALOR")]
+ [Description("TOTAL DE COMISSÃO GERADA")]
+ public decimal? ComissaoGerada { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE DE NOVOS NEGÓCIOS")]
+ public int? Novos { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE DE NEGÓCIOS PRÓPRIOS")]
+ public int? NegociosProprios { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE DE RENOVAÇÕES")]
+ public int? Renovacoes { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE DE SEGUROS NOVOS")]
+ public int? SegurosNovos { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE DE CANCELAMENTOS")]
+ public int? Cancelamentos { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE DE APÓLICES")]
+ public int? Apolices { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE DE ENDOSSOS")]
+ public int? Endossos { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE DE FATURAS (DOCUMENTOS)")]
+ public int? Faturas { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("QUANTIDADE")]
+ [Description("TOTAL DE CLIENTES")]
+ public int? TotalClientes { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("QUANTIDADE")]
+ [Description("TOTAL GERAL")]
+ public int? TotalGeral { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("QUANTIDADE")]
+ [Description("TOTAL DE TERCEIROS")]
+ public int? TotalTerceiros { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("VALOR")]
+ [Description("COMISSÃO RECEBIDA BRUTA")]
+ public decimal? ComissaoRecebidaBruta { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("VALOR")]
+ [Description("COMISSÃO RECEBIDA LÍQUIDA")]
+ public decimal? ComissaoRecebidaLiquida { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("VALOR")]
+ [Description("IMPOSTOS")]
+ public decimal? Impostos { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("VALOR")]
+ [Description("REPASSE")]
+ public decimal? Repasse { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("VALOR")]
+ [Description("COMISSÃO PREVISTA")]
+ public decimal? ComissaoPrevista { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("VALOR")]
+ [Description("TOTAL PREVISTO")]
+ public decimal? TotalPrevista { get; set; }
+
+ [Category("FINANCEIRO")]
+ [Tipo("VALOR")]
+ [Description("VALOR")]
+ public decimal? Valor { get; set; }
+
+ [Category("FINANCEIRO")]
+ [Tipo("VALOR")]
+ [Description("VALOR ORÇADO")]
+ public decimal? ValorOrcado { get; set; }
+
+ [Category("FINANCEIRO")]
+ [Tipo("VALOR")]
+ [Description("VALOR LIBERADO")]
+ public decimal? ValorLiberado { get; set; }
+
+ [Category("FINANCEIRO")]
+ [Tipo("VALOR")]
+ [Description("VALOR SALVADO")]
+ public decimal? ValorSalvado { get; set; }
+
+ [Category("FINANCEIRO")]
+ [Tipo("VALOR")]
+ [Description("VALOR FRANQUIA")]
+ public decimal? ValorFranquia { get; set; }
+
+ [Category("FINANCEIRO")]
+ [Tipo("VALOR")]
+ [Description("VALOR PAGO")]
+ public decimal? ValorPago { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE LIQUIDADO")]
+ public int? Liquidado { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("VALOR")]
+ [Description("VALOR LIQUIDADO")]
+ public decimal? ValorLiquidado { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE PENDENTE")]
+ public int? Pendente { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("VALOR")]
+ [Description("COMISSÃO PENDENTE")]
+ public decimal? ComissaoPendente { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("VALOR")]
+ [Description("VALOR LÍQUIDO")]
+ public decimal? ValorLiquido { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("VALOR")]
+ [Description("VALOR PARCELA")]
+ public decimal? ValorParcela { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("QUANTIDADE")]
+ [Description("TOTAL DE LÍQUIDO")]
+ public int? TotalLiquido { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("QUANTIDADE")]
+ [Description("QUANTIDADE DE PROSPECÇÕES")]
+ public int? TotalProspeccao { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("VALOR")]
+ [Description("META ATINGIR")]
+ public decimal? MetaAtingir { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("VALOR")]
+ [Description("META CUMPRIDA")]
+ public decimal? MetaCumprida { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("QUANTIDADE")]
+ [Description("TOTAL DE CLIENTES ATIVOS")]
+ public int? TotalClientesAtivos { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("QUANTIDADE")]
+ [Description("TOTAL DE CLIENTES INATIVOS")]
+ public int? TotalClientesInativos { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("VALOR")]
+ [Description("ISS")]
+ public decimal? Iss { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("PERCENTUAL")]
+ [Description("% CUMPRIDA")]
+ public decimal? Meta { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("QUANTIDADE")]
+ [Description("TOTAL DE TAREFAS")]
+ public int? TotalTarefas { get; set; }
+
+ [Category("SEGUROS")]
+ [Tipo("VALOR")]
+ [Description("TOTAL PARCELAS")]
+ public decimal? TotalParcela { get; set; }
+
+ [Category("FINANCEIRO")]
+ [Tipo("VALOR")]
+ [Description("VALOR BRUTO")]
+ public decimal? ValorBruto { get; set; }
+
+ [Category("FINANCEIRO")]
+ [Tipo("VALOR")]
+ [Description("ISS")]
+ public decimal? ValorIss { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/SinteticoFinanceiro.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/SinteticoFinanceiro.cs
new file mode 100644
index 0000000..3a07bc6
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/SinteticoFinanceiro.cs
@@ -0,0 +1,18 @@
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+
+namespace Gestor.Model.Domain.Relatorios;
+
+public class SinteticoFinanceiro
+{
+ [Description("AGRUPAMENTO")]
+ public string Agrupamento { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR")]
+ public decimal? Valor { get; set; }
+
+ [Tipo("VALOR")]
+ [Description("VALOR PAGO")]
+ public decimal? ValorPago { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/StatusRelatorio.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/StatusRelatorio.cs
new file mode 100644
index 0000000..57bf72d
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/StatusRelatorio.cs
@@ -0,0 +1,37 @@
+using System.ComponentModel;
+using System.Runtime.CompilerServices;
+using Gestor.Model.Common;
+
+namespace Gestor.Model.Domain.Relatorios;
+
+public class StatusRelatorio : INotifyPropertyChanged
+{
+ private bool _selecionado;
+
+ public bool Selecionado
+ {
+ get
+ {
+ return _selecionado;
+ }
+ set
+ {
+ if (value != _selecionado)
+ {
+ _selecionado = value;
+ OnPropertyChanged("Selecionado");
+ }
+ }
+ }
+
+ public int Id { get; set; }
+
+ public TipoSeguro Status { get; set; }
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/TipoRelatorio.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/TipoRelatorio.cs
new file mode 100644
index 0000000..dbee881
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/TipoRelatorio.cs
@@ -0,0 +1,12 @@
+using System;
+
+namespace Gestor.Model.Domain.Relatorios;
+
+public class TipoRelatorio
+{
+ public string Nome { get; set; }
+
+ public DateTime Inicio { get; set; }
+
+ public DateTime Fim { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Relatorios/ValorSintetico.cs b/Gestor.Model/Gestor.Model.Domain.Relatorios/ValorSintetico.cs
new file mode 100644
index 0000000..df63ff5
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Relatorios/ValorSintetico.cs
@@ -0,0 +1,20 @@
+using Gestor.Model.Common;
+
+namespace Gestor.Model.Domain.Relatorios;
+
+public class ValorSintetico
+{
+ public string NomeRelatorio { get; set; }
+
+ public string Indice { get; set; }
+
+ public decimal Valor { get; set; }
+
+ public string Unidate { get; set; }
+
+ public string Porcentagem { get; set; }
+
+ public string Formato { get; set; }
+
+ public Sinal Sinal { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Adiantamento.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Adiantamento.cs
new file mode 100644
index 0000000..74375c0
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Adiantamento.cs
@@ -0,0 +1,65 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Validation;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Adiantamento : DomainBase
+{
+ private string _historico;
+
+ public Vendedor Vendedor { get; set; }
+
+ public TipoPagamento? TipoPagamento { get; set; }
+
+ public string Historico
+ {
+ get
+ {
+ return _historico?.ToUpper();
+ }
+ set
+ {
+ _historico = value;
+ }
+ }
+
+ public DateTime? Data { get; set; }
+
+ public decimal Valor { get; set; }
+
+ public bool Pago { get; set; }
+
+ public DateTime? Pagamento { get; set; }
+
+ public List<TupleList> Log()
+ {
+ List<TupleList> list = new List<TupleList>();
+ TupleList tupleList = new TupleList();
+ ObservableCollection<Tuple<string, string, string>> obj = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("HISTÓRICO", string.IsNullOrWhiteSpace(Historico) ? "" : Historico, ""),
+ new Tuple<string, string, string>("DATA DO ADIANTAMENTO", (!Data.HasValue) ? "" : Data?.ToShortDateString(), ""),
+ new Tuple<string, string, string>("VALOR DO ADIANTAMENTO", Valor.ToString("c2"), "")
+ };
+ object item;
+ if (TipoPagamento.HasValue)
+ {
+ TipoPagamento? tipoPagamento = TipoPagamento;
+ item = (tipoPagamento.HasValue ? tipoPagamento.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item = "";
+ }
+ obj.Add(new Tuple<string, string, string>("TIPO DO PAGAMENTO", (string)item, ""));
+ obj.Add(new Tuple<string, string, string>("PAGO", Pago ? "SIM" : "NÃO", ""));
+ obj.Add(new Tuple<string, string, string>("DATA DO PAGAMENTO", (!Pagamento.HasValue) ? "" : Pagamento?.ToShortDateString(), ""));
+ tupleList.Tuples = obj;
+ list.Add(tupleList);
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Aeronautico.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Aeronautico.cs
new file mode 100644
index 0000000..d780cb4
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Aeronautico.cs
@@ -0,0 +1,297 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Globalization;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Aeronautico : DomainBase, IDomain
+{
+ private string _fabricante;
+
+ private string _modelo;
+
+ private string _serie;
+
+ private string _prefixo;
+
+ private string _marinaAero;
+
+ private string _certificado;
+
+ private string _casco;
+
+ private string _navegacao;
+
+ private string _observacao;
+
+ public Item Item { get; set; }
+
+ public TipoAeronautico Tipo { get; set; }
+
+ public string Fabricante
+ {
+ get
+ {
+ return _fabricante?.ToUpper();
+ }
+ set
+ {
+ _fabricante = value;
+ }
+ }
+
+ public string Modelo
+ {
+ get
+ {
+ return _modelo?.ToUpper();
+ }
+ set
+ {
+ _modelo = value;
+ }
+ }
+
+ public string Serie
+ {
+ get
+ {
+ return _serie?.ToUpper();
+ }
+ set
+ {
+ _serie = value;
+ }
+ }
+
+ public string Prefixo
+ {
+ get
+ {
+ return _prefixo?.ToUpper();
+ }
+ set
+ {
+ _prefixo = value;
+ }
+ }
+
+ public int? Fabricacao { get; set; }
+
+ public int? Tripulantes { get; set; }
+
+ public int? Passageiros { get; set; }
+
+ public string MarinaAero
+ {
+ get
+ {
+ return _marinaAero?.ToUpper();
+ }
+ set
+ {
+ _marinaAero = value;
+ }
+ }
+
+ public long? Peso { get; set; }
+
+ public string Certificado
+ {
+ get
+ {
+ return _certificado?.ToUpper();
+ }
+ set
+ {
+ _certificado = value;
+ }
+ }
+
+ public DateTime? Vistoria { get; set; }
+
+ public string Casco
+ {
+ get
+ {
+ return _casco?.ToUpper();
+ }
+ set
+ {
+ _casco = value;
+ }
+ }
+
+ public string Navegacao
+ {
+ get
+ {
+ return _navegacao?.ToUpper();
+ }
+ set
+ {
+ _navegacao = value;
+ }
+ }
+
+ public string Observacao
+ {
+ get
+ {
+ return _observacao?.ToUpper();
+ }
+ set
+ {
+ _observacao = value;
+ }
+ }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Fabricante))
+ {
+ list.AddValue("Fabricante", Messages.Obrigatorio);
+ }
+ else if (Fabricante != null && Fabricante.Length > 60)
+ {
+ list.AddValue("Fabricante", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (Tipo == (TipoAeronautico)0)
+ {
+ list.AddValue("Tipo", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(Modelo))
+ {
+ list.AddValue("Modelo", Messages.Obrigatorio);
+ }
+ else if (Modelo.Length > 60)
+ {
+ list.AddValue("Modelo", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (Vistoria.HasValue && (DateTime.Compare(Vistoria.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Vistoria.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Vistoria", string.Format(Messages.DataInvalida));
+ }
+ if (string.IsNullOrWhiteSpace(Serie))
+ {
+ list.AddValue("Serie", Messages.Obrigatorio);
+ }
+ else if (Serie.Length > 30)
+ {
+ list.AddValue("Serie", string.Format(Messages.MaiorQueLimite, 30));
+ }
+ if (string.IsNullOrWhiteSpace(Prefixo))
+ {
+ list.AddValue("Prefixo", Messages.Obrigatorio);
+ }
+ else if (Prefixo.Length > 30)
+ {
+ list.AddValue("Prefixo", string.Format(Messages.MaiorQueLimite, 30));
+ }
+ if (!Fabricacao.HasValue)
+ {
+ list.AddValue("Fabricacao", Messages.Obrigatorio);
+ }
+ else if (!Fabricacao.Value.ToString().ValidacaoFabricacao())
+ {
+ list.AddValue("Fabricacao", Messages.Invalido);
+ }
+ if (!Tripulantes.HasValue)
+ {
+ list.AddValue("Tripulantes", Messages.Obrigatorio);
+ }
+ if (!Passageiros.HasValue)
+ {
+ list.AddValue("Passageiros", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(MarinaAero))
+ {
+ list.AddValue("MarinaAero", Messages.Obrigatorio);
+ }
+ else if (MarinaAero.Length > 60)
+ {
+ list.AddValue("MarinaAero", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (!string.IsNullOrWhiteSpace(Certificado) && Certificado.Length > 60)
+ {
+ list.AddValue("Certificado", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (string.IsNullOrWhiteSpace(Casco) && Tipo.Categoria() == "Aero")
+ {
+ list.AddValue("Casco", Messages.Obrigatorio);
+ }
+ else if (Tipo.Categoria() != "Aero" && Casco != null && Casco.Length > 60)
+ {
+ list.AddValue("Casco", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (!string.IsNullOrWhiteSpace(Navegacao) && Tipo.Categoria() != "Aero" && Navegacao.Length > 60)
+ {
+ list.AddValue("Navegacao", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (!Vistoria.HasValue && Tipo.Categoria() == "Aero")
+ {
+ list.AddValue("Vistoria", Messages.Obrigatorio);
+ }
+ if (!Peso.HasValue && Tipo.Categoria() == "Aero")
+ {
+ list.AddValue("Peso", Messages.Obrigatorio);
+ }
+ return list;
+ }
+
+ public static List<TupleList> Log(Item item)
+ {
+ List<TupleList> list = new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("TIPO DE AERONAVE", item.Aeronautico.Tipo.GetDescription(), ""),
+ new Tuple<string, string, string>("FABRICANTE", string.IsNullOrWhiteSpace(item.Aeronautico.Fabricante) ? "" : item.Aeronautico.Fabricante.ToUpper(), ""),
+ new Tuple<string, string, string>("MODELO", string.IsNullOrWhiteSpace(item.Aeronautico.Modelo) ? "" : item.Aeronautico.Modelo.ToUpper(), ""),
+ new Tuple<string, string, string>("REGISTRO", string.IsNullOrWhiteSpace(item.Aeronautico.Serie) ? "" : item.Aeronautico.Serie.ToUpper(), ""),
+ new Tuple<string, string, string>("PREFIXO", string.IsNullOrWhiteSpace(item.Aeronautico.Prefixo) ? "" : item.Aeronautico.Prefixo.ToUpper(), ""),
+ new Tuple<string, string, string>("ANO DE FABRICAÇÃO", (!item.Aeronautico.Fabricacao.HasValue) ? "" : item.Aeronautico.Fabricacao?.ToString(), ""),
+ new Tuple<string, string, string>("TRIPULANTES", (!item.Aeronautico.Tripulantes.HasValue) ? "" : item.Aeronautico.Tripulantes?.ToString(), ""),
+ new Tuple<string, string, string>("PASSAGEIROS", (!item.Aeronautico.Passageiros.HasValue) ? "" : item.Aeronautico.Passageiros?.ToString(), ""),
+ new Tuple<string, string, string>("AERÓDROMO", string.IsNullOrWhiteSpace(item.Aeronautico.MarinaAero) ? "" : item.Aeronautico.MarinaAero.ToUpper(), ""),
+ new Tuple<string, string, string>("PESO", (!item.Aeronautico.Peso.HasValue) ? "" : item.Aeronautico.Peso?.ToString(), ""),
+ new Tuple<string, string, string>("NAVEGAÇÃO", string.IsNullOrWhiteSpace(item.Aeronautico.Navegacao) ? "" : item.Aeronautico.Navegacao.ToUpper(), ""),
+ new Tuple<string, string, string>("CERTIFICADO", string.IsNullOrWhiteSpace(item.Aeronautico.Certificado) ? "" : item.Aeronautico.Certificado.ToUpper(), ""),
+ new Tuple<string, string, string>("MATERIAL DO CASCO", string.IsNullOrWhiteSpace(item.Aeronautico.Casco) ? "" : item.Aeronautico.Casco.ToUpper(), ""),
+ new Tuple<string, string, string>("VALIDADE DA VISTORIA", (!item.Aeronautico.Vistoria.HasValue) ? "" : item.Aeronautico.Vistoria?.ToShortDateString(), ""),
+ new Tuple<string, string, string>("OBSERVAÇÃO", string.IsNullOrWhiteSpace(item.Aeronautico.Observacao) ? "" : item.Aeronautico.Observacao.ToUpper(), "")
+ }
+ }
+ };
+ ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("COBERTURAS$", "", "")
+ };
+ foreach (Cobertura cobertura in item.Coberturas)
+ {
+ observableCollection.Add(new Tuple<string, string, string>($" COBERTURA {item.Coberturas.IndexOf(cobertura) + 1}$", "", ""));
+ observableCollection.Add(new Tuple<string, string, string>(" OBSERVAÇÃO", string.IsNullOrWhiteSpace(cobertura.Observacao) ? "" : cobertura.Observacao.ToUpper(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" PRÊMIO", cobertura.Premio.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" FRANQUIA", cobertura.Franquia.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" L.M.I.", cobertura.Lmi.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ }
+ list.Add(new TupleList
+ {
+ Tuples = observableCollection
+ });
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/AggilizadorPermissao.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/AggilizadorPermissao.cs
new file mode 100644
index 0000000..f74d977
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/AggilizadorPermissao.cs
@@ -0,0 +1,10 @@
+using Gestor.Model.Common;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class AggilizadorPermissao
+{
+ public PermissaoAggilizador Aggilizador { get; set; }
+
+ public bool Permissao { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Auto.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Auto.cs
new file mode 100644
index 0000000..ca973a4
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Auto.cs
@@ -0,0 +1,540 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Globalization;
+using System.Text.RegularExpressions;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Auto : DomainBase, IDomain
+{
+ private string _fipe;
+
+ private string _chassi;
+
+ private string _placa;
+
+ private string _modelo;
+
+ private string _anoFabricacao;
+
+ private string _anoModelo;
+
+ private string _renavam;
+
+ private string _capacidade;
+
+ private string _portas;
+
+ private string _observacao;
+
+ private string _regiaoCirculacao;
+
+ private string _ci;
+
+ private string _cepPernoite;
+
+ private Categoria? _categoria;
+
+ private bool _fabricanteBranco = true;
+
+ private bool _chassiInvalido;
+
+ public Item Item { get; set; }
+
+ public Fabricante Fabricante { get; set; }
+
+ public Combustivel? Combustivel { get; set; }
+
+ public string Fipe
+ {
+ get
+ {
+ if (_fipe == null || !Regex.IsMatch(_fipe, "[0-9]+"))
+ {
+ return "";
+ }
+ return _fipe.Trim();
+ }
+ set
+ {
+ _fipe = value;
+ }
+ }
+
+ public string Modelo
+ {
+ get
+ {
+ return _modelo?.ToUpper();
+ }
+ set
+ {
+ _modelo = value;
+ }
+ }
+
+ public Categoria? Categoria
+ {
+ get
+ {
+ return _categoria;
+ }
+ set
+ {
+ _categoria = value;
+ if (value.GetValueOrDefault() == Gestor.Model.Common.Categoria.Motocicleta)
+ {
+ Portas = "0";
+ }
+ }
+ }
+
+ public string Chassi
+ {
+ get
+ {
+ return _chassi?.ToUpper().Trim();
+ }
+ set
+ {
+ _chassi = value;
+ }
+ }
+
+ public string Placa
+ {
+ get
+ {
+ return _placa?.ToUpper().Trim();
+ }
+ set
+ {
+ _placa = value;
+ }
+ }
+
+ public string AnoFabricacao
+ {
+ get
+ {
+ return _anoFabricacao?.ToUpper().Trim();
+ }
+ set
+ {
+ _anoFabricacao = value;
+ }
+ }
+
+ public string AnoModelo
+ {
+ get
+ {
+ return _anoModelo?.ToUpper().Trim();
+ }
+ set
+ {
+ _anoModelo = value;
+ }
+ }
+
+ public string Renavam
+ {
+ get
+ {
+ return _renavam?.ToUpper().Trim();
+ }
+ set
+ {
+ _renavam = value;
+ }
+ }
+
+ public string Capacidade
+ {
+ get
+ {
+ return _capacidade?.ToUpper().Trim();
+ }
+ set
+ {
+ _capacidade = value;
+ }
+ }
+
+ public string Portas
+ {
+ get
+ {
+ return _portas?.ToUpper().Trim();
+ }
+ set
+ {
+ _portas = value;
+ }
+ }
+
+ public Cor? Cor { get; set; }
+
+ public string Observacao
+ {
+ get
+ {
+ return _observacao?.ToUpper();
+ }
+ set
+ {
+ _observacao = value;
+ }
+ }
+
+ public string RegiaoCirculacao
+ {
+ get
+ {
+ if (_regiaoCirculacao == null || !Regex.IsMatch(_regiaoCirculacao, "[0-9]+"))
+ {
+ return "";
+ }
+ return _regiaoCirculacao.FormataCep().Trim();
+ }
+ set
+ {
+ _regiaoCirculacao = value;
+ }
+ }
+
+ public UsoVeiculo? UsoVeiculo { get; set; }
+
+ public TipoCobertura? TipoCobertura { get; set; }
+
+ public TabelaReferencia? TabelaReferencia { get; set; }
+
+ public int? Bonus { get; set; }
+
+ public decimal PorcentagemReferencia { get; set; }
+
+ public Correcao? Correcao { get; set; }
+
+ public decimal ValorDeterminado { get; set; }
+
+ public bool? Blindagem { get; set; }
+
+ public string Ci
+ {
+ get
+ {
+ return _ci?.ToUpper();
+ }
+ set
+ {
+ _ci = value;
+ }
+ }
+
+ public string CepPernoite
+ {
+ get
+ {
+ if (_cepPernoite == null || !Regex.IsMatch(_cepPernoite, "[0-9]+"))
+ {
+ return string.Empty;
+ }
+ return _cepPernoite.FormataCep().Trim();
+ }
+ set
+ {
+ _cepPernoite = value;
+ }
+ }
+
+ public bool? ZeroKm { get; set; }
+
+ public bool? Financiado { get; set; }
+
+ public bool? Pcd { get; set; }
+
+ public Isencao? Isencao { get; set; }
+
+ public bool Excluido { get; set; }
+
+ public Rastreador Rastreador { get; set; }
+
+ public bool? KitGas { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate(bool chassiInvalido, bool fabricanteBranco)
+ {
+ _chassiInvalido = chassiInvalido;
+ _fabricanteBranco = fabricanteBranco;
+ return Validate();
+ }
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Chassi))
+ {
+ list.AddValue("Chassi", Messages.Obrigatorio);
+ }
+ else if (!_chassiInvalido && !Chassi.ValidacaoChassi())
+ {
+ list.AddValue("Chassi", Messages.Invalido);
+ }
+ if (!_fabricanteBranco && (Fabricante == null || Fabricante.Id == 0))
+ {
+ list.AddValue("Fabricante", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(Modelo))
+ {
+ list.AddValue("Modelo", Messages.Obrigatorio);
+ }
+ else if (Modelo.Length > 250)
+ {
+ list.AddValue("Modelo", string.Format(Messages.MaiorQueLimite, 250));
+ }
+ if (!Categoria.HasValue)
+ {
+ list.AddValue("Categoria", Messages.Obrigatorio);
+ }
+ if (!Combustivel.HasValue)
+ {
+ list.AddValue("Combustivel|COMBUSTÍVEL", Messages.Obrigatorio);
+ }
+ if (!ZeroKm.HasValue)
+ {
+ list.AddValue("ZeroKm|ZERO KM", Messages.Obrigatorio);
+ }
+ if (ZeroKm.HasValue && !ZeroKm.Value && string.IsNullOrWhiteSpace(Placa))
+ {
+ list.AddValue("Placa", Messages.Obrigatorio);
+ }
+ else if (ZeroKm.HasValue && !ZeroKm.Value && !Placa.ValidacaoPlaca())
+ {
+ list.AddValue("Placa", Messages.Invalido);
+ }
+ if (string.IsNullOrWhiteSpace(AnoFabricacao))
+ {
+ list.AddValue("AnoFabricacao|ANO DE FABRICAÇÃO", Messages.Obrigatorio);
+ }
+ else if (!AnoFabricacao.ValidacaoFabricacao())
+ {
+ list.AddValue("AnoFabricacao|ANO DE FABRICAÇÃO", Messages.Invalido);
+ }
+ if (string.IsNullOrWhiteSpace(AnoModelo))
+ {
+ list.AddValue("AnoModelo|ANO DO MODELO", Messages.Obrigatorio);
+ }
+ else if (!AnoModelo.ValidacaoModelo())
+ {
+ list.AddValue("AnoModelo|ANO DO MODELO", Messages.Invalido);
+ }
+ int result;
+ if (string.IsNullOrWhiteSpace(Portas))
+ {
+ if (Categoria.GetValueOrDefault() == Gestor.Model.Common.Categoria.Motocicleta)
+ {
+ Portas = "0";
+ }
+ else
+ {
+ list.AddValue("Portas", Messages.Obrigatorio);
+ }
+ }
+ else if (!int.TryParse(Portas, out result))
+ {
+ list.AddValue("Portas", Messages.Invalido);
+ }
+ if (string.IsNullOrWhiteSpace(Capacidade))
+ {
+ list.AddValue("Capacidade", Messages.Obrigatorio);
+ }
+ else if (!int.TryParse(Capacidade, out result))
+ {
+ list.AddValue("Capacidade", Messages.Invalido);
+ }
+ if (!Financiado.HasValue)
+ {
+ list.AddValue("Financiado", Messages.Obrigatorio);
+ }
+ if (!string.IsNullOrWhiteSpace(Ci) && Ci.Length > 20)
+ {
+ list.AddValue("Ci|C.I.", string.Format(Messages.MaiorQueLimite, 20));
+ }
+ if (string.IsNullOrWhiteSpace(Fipe))
+ {
+ list.AddValue("Fipe|CÓDIGO FIPE", Messages.Obrigatorio);
+ }
+ else if (!Fipe.ValidaFipe())
+ {
+ list.AddValue("Fipe|CÓDIGO FIPE", Messages.Invalido);
+ }
+ if (int.TryParse(Capacidade, out var result2) && result2 > 99)
+ {
+ list.AddValue("Capacidade", Messages.Invalido);
+ }
+ if (!UsoVeiculo.HasValue)
+ {
+ list.AddValue("UsoVeiculo", Messages.Obrigatorio);
+ }
+ if (!string.IsNullOrEmpty(Renavam) && Renavam.Replace(".", "").Length > 11)
+ {
+ list.AddValue("Renavam", Messages.Invalido);
+ }
+ return list;
+ }
+
+ public static List<TupleList> Log(Item item)
+ {
+ List<TupleList> list = new List<TupleList>();
+ TupleList tupleList = new TupleList();
+ ObservableCollection<Tuple<string, string, string>> obj = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("CÓDIGO FIPE", string.IsNullOrWhiteSpace(item.Auto.Fipe) ? "" : item.Auto.Fipe.ToUpper(), ""),
+ new Tuple<string, string, string>("CHASSI", string.IsNullOrWhiteSpace(item.Auto.Chassi) ? "" : item.Auto.Chassi.ToUpper(), ""),
+ new Tuple<string, string, string>("PLACA", string.IsNullOrWhiteSpace(item.Auto.Placa) ? "" : item.Auto.Placa.ToUpper(), ""),
+ new Tuple<string, string, string>("FABRICANTE", (item.Auto.Fabricante == null) ? "" : item.Auto.Fabricante.Descricao.ToUpper(), ""),
+ new Tuple<string, string, string>("MODELO", string.IsNullOrWhiteSpace(item.Auto.Modelo) ? "" : item.Auto.Modelo.ToUpper(), "")
+ };
+ object item2;
+ if (item.Auto.UsoVeiculo.HasValue)
+ {
+ Auto auto = item.Auto;
+ if (auto == null)
+ {
+ item2 = null;
+ }
+ else
+ {
+ UsoVeiculo? usoVeiculo = auto.UsoVeiculo;
+ item2 = (usoVeiculo.HasValue ? usoVeiculo.GetValueOrDefault().GetDescription() : null);
+ }
+ }
+ else
+ {
+ item2 = "";
+ }
+ obj.Add(new Tuple<string, string, string>("USO VEICULO", (string)item2, ""));
+ object item3;
+ if (item.Auto.Categoria.HasValue)
+ {
+ Categoria? categoria = item.Auto.Categoria;
+ item3 = (categoria.HasValue ? categoria.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item3 = "";
+ }
+ obj.Add(new Tuple<string, string, string>("CATEGORIA", (string)item3, ""));
+ object item4;
+ if (item.Auto.Combustivel.HasValue)
+ {
+ Combustivel? combustivel = item.Auto.Combustivel;
+ item4 = (combustivel.HasValue ? combustivel.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item4 = "";
+ }
+ obj.Add(new Tuple<string, string, string>("COMBUSTÍVEL", (string)item4, ""));
+ object item5;
+ if (item.Auto.Cor.HasValue)
+ {
+ Cor? cor = item.Auto.Cor;
+ item5 = (cor.HasValue ? cor.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item5 = "";
+ }
+ obj.Add(new Tuple<string, string, string>("COR", (string)item5, ""));
+ obj.Add(new Tuple<string, string, string>("RENAVAM", string.IsNullOrWhiteSpace(item.Auto.Renavam) ? "" : item.Auto.Renavam.ToUpper(), ""));
+ obj.Add(new Tuple<string, string, string>("ZERO KM", (!item.Auto.ZeroKm.HasValue) ? "" : (item.Auto.ZeroKm.Value ? "SIM" : "NÃO"), ""));
+ obj.Add(new Tuple<string, string, string>("ANO DE FABRICAÇÃO", string.IsNullOrWhiteSpace(item.Auto.AnoFabricacao) ? "" : item.Auto.AnoFabricacao.ToUpper(), ""));
+ obj.Add(new Tuple<string, string, string>("ANO DO MODELO", string.IsNullOrWhiteSpace(item.Auto.AnoModelo) ? "" : item.Auto.AnoModelo.ToUpper(), ""));
+ obj.Add(new Tuple<string, string, string>("PORTAS", string.IsNullOrWhiteSpace(item.Auto.Portas) ? "" : item.Auto.Portas, ""));
+ obj.Add(new Tuple<string, string, string>("CAPACIDADE", string.IsNullOrWhiteSpace(item.Auto.Capacidade) ? "" : item.Auto.Capacidade, ""));
+ obj.Add(new Tuple<string, string, string>("CEP DE CIRCULAÇÃO", string.IsNullOrWhiteSpace(item.Auto.RegiaoCirculacao) ? "" : item.Auto.RegiaoCirculacao.ToUpper(), ""));
+ obj.Add(new Tuple<string, string, string>("CEP PERNOITE", string.IsNullOrWhiteSpace(item.Auto.CepPernoite) ? "" : item.Auto.CepPernoite.ToUpper(), ""));
+ object item6;
+ if (item.Auto.Correcao.HasValue)
+ {
+ Correcao? correcao = item.Auto.Correcao;
+ item6 = (correcao.HasValue ? correcao.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item6 = "";
+ }
+ obj.Add(new Tuple<string, string, string>("CORREÇÃO", (string)item6, ""));
+ object item7;
+ if (item.Auto.TabelaReferencia.HasValue)
+ {
+ TabelaReferencia? tabelaReferencia = item.Auto.TabelaReferencia;
+ item7 = (tabelaReferencia.HasValue ? tabelaReferencia.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item7 = "";
+ }
+ obj.Add(new Tuple<string, string, string>("REFERÊNCIA", (string)item7, ""));
+ obj.Add(new Tuple<string, string, string>("PORCENTAGEM DE REFERÊNCIA", item.Auto.PorcentagemReferencia.ToString(new CultureInfo("pt-BR")), ""));
+ obj.Add(new Tuple<string, string, string>("C.I.", string.IsNullOrWhiteSpace(item.Auto.Ci) ? "" : item.Auto.Ci.ToUpper(), ""));
+ obj.Add(new Tuple<string, string, string>("FINANCEIRO/ALIENADO", (!item.Auto.Financiado.HasValue) ? "" : (item.Auto.Financiado.Value ? "SIM" : "NÃO"), ""));
+ obj.Add(new Tuple<string, string, string>("PCD", (!item.Auto.Pcd.HasValue) ? "" : (item.Auto.Pcd.Value ? "SIM" : "NÃO"), ""));
+ obj.Add(new Tuple<string, string, string>("BLINDAGEM", (!item.Auto.Blindagem.HasValue) ? "" : (item.Auto.Blindagem.Value ? "SIM" : "NÃO"), ""));
+ object item8;
+ if (item.Auto.Isencao.HasValue)
+ {
+ Isencao? isencao = item.Auto.Isencao;
+ item8 = (isencao.HasValue ? isencao.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item8 = "";
+ }
+ obj.Add(new Tuple<string, string, string>("ISENÇÃO", (string)item8, ""));
+ obj.Add(new Tuple<string, string, string>("BÔNUS", (!item.Auto.Bonus.HasValue) ? "" : item.Auto.Bonus.Value.ToString(), ""));
+ object item9;
+ if (item.Auto.TipoCobertura.HasValue)
+ {
+ TipoCobertura? tipoCobertura = item.Auto.TipoCobertura;
+ item9 = (tipoCobertura.HasValue ? tipoCobertura.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item9 = "";
+ }
+ obj.Add(new Tuple<string, string, string>("TIPO DE COBERTURA", (string)item9, ""));
+ obj.Add(new Tuple<string, string, string>("KIT GÁS", (!item.Auto.Pcd.HasValue) ? "" : (item.Auto.KitGas.Value ? "SIM" : "NÃO"), ""));
+ obj.Add(new Tuple<string, string, string>("OBSERVAÇÕES", string.IsNullOrWhiteSpace(item.Auto.Observacao) ? "" : item.Auto.Observacao.ToUpper(), ""));
+ tupleList.Tuples = obj;
+ list.Add(tupleList);
+ List<TupleList> list2 = list;
+ ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("COBERTURAS$", "", "")
+ };
+ foreach (Cobertura cobertura in item.Coberturas)
+ {
+ observableCollection.Add(new Tuple<string, string, string>($" COBERTURA {item.Coberturas.IndexOf(cobertura) + 1}$", "", ""));
+ observableCollection.Add(new Tuple<string, string, string>(" OBSERVAÇÃO", string.IsNullOrWhiteSpace(cobertura.Observacao) ? "" : cobertura.Observacao.ToUpper(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" PRÊMIO", cobertura.Premio.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" FRANQUIA", cobertura.Franquia.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" L.M.I.", cobertura.Lmi.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ }
+ list2.Add(new TupleList
+ {
+ Tuples = observableCollection
+ });
+ return list2;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Cliente.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Cliente.cs
new file mode 100644
index 0000000..04a5fe4
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Cliente.cs
@@ -0,0 +1,695 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Globalization;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Common;
+using Gestor.Model.Domain.Ferramentas;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Cliente : DomainBase, IDomain
+{
+ private string _nome;
+
+ private string _documento;
+
+ private string _identidade;
+
+ private string _emissor;
+
+ private string _estadoEmissor;
+
+ private string _habilitacao;
+
+ private string _categoriaHabilitacao;
+
+ private string _pasta;
+
+ private string _cei;
+
+ private string _rne;
+
+ private string _agencia;
+
+ private string _tipoConta;
+
+ private string _conta;
+
+ private string _caepf;
+
+ private bool? _malaDireta = true;
+
+ private string _nomeSocialRg;
+
+ public long IdEmpresa { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ NomeSocial = $"{value?.ToUpper()} - {base.Id}";
+ }
+ }
+
+ public string NomeSocial { get; set; }
+
+ [Log(true)]
+ public DateTime? Nascimento { get; set; }
+
+ [Log(true)]
+ public Sexo? Sexo { get; set; }
+
+ [Log(true)]
+ [Description("ESTADO CIVIL")]
+ public EstadoCivil? EstadoCivil { get; set; }
+
+ [Log(true)]
+ [Description("DOCUMENTO PRINCIPAL")]
+ public TipoDocumento? DocumentoPrincipal { get; set; }
+
+ [Log(true)]
+ public string Documento
+ {
+ get
+ {
+ return _documento?.ToUpper().Trim();
+ }
+ set
+ {
+ _documento = value;
+ }
+ }
+
+ [Log(true)]
+ public string Identidade
+ {
+ get
+ {
+ return _identidade?.ToUpper().Trim();
+ }
+ set
+ {
+ _identidade = value;
+ }
+ }
+
+ [Log(true)]
+ public string Emissor
+ {
+ get
+ {
+ return _emissor?.ToUpper().Trim();
+ }
+ set
+ {
+ _emissor = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("ESTADO EMISSOR")]
+ public string EstadoEmissor
+ {
+ get
+ {
+ return _estadoEmissor?.ToUpper().Trim();
+ }
+ set
+ {
+ _estadoEmissor = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("EXPEDIÇÃO")]
+ public DateTime? Expedicao { get; set; }
+
+ [Log(true)]
+ [Description("HABILITAÇÃO")]
+ public string Habilitacao
+ {
+ get
+ {
+ return _habilitacao?.ToUpper().Trim();
+ }
+ set
+ {
+ _habilitacao = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("PRIMEIRA HABILITAÇÃO")]
+ public DateTime? PrimeiraHabilitacao { get; set; }
+
+ [Log(true)]
+ [Description("VENCIMENTO HABILITAÇÃO")]
+ public DateTime? VencimentoHabilitacao { get; set; }
+
+ [Log(true)]
+ [Description("CATEGORIA HABILITAÇÃO")]
+ public string CategoriaHabilitacao
+ {
+ get
+ {
+ return _categoriaHabilitacao?.ToUpper().Trim();
+ }
+ set
+ {
+ _categoriaHabilitacao = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("CLIENTE DESDE")]
+ public DateTime? ClienteDesde { get; set; }
+
+ [Log(true)]
+ public string Pasta
+ {
+ get
+ {
+ return _pasta?.ToUpper();
+ }
+ set
+ {
+ _pasta = value;
+ }
+ }
+
+ [Log(true)]
+ public string Cei
+ {
+ get
+ {
+ return _cei?.ToUpper().Trim();
+ }
+ set
+ {
+ _cei = value;
+ }
+ }
+
+ [Log(true)]
+ public string Rne
+ {
+ get
+ {
+ return _rne?.ToUpper().Trim();
+ }
+ set
+ {
+ _rne = value;
+ }
+ }
+
+ [Log(true)]
+ public string Caepf
+ {
+ get
+ {
+ return _caepf?.ToUpper().Trim();
+ }
+ set
+ {
+ _caepf = value;
+ }
+ }
+
+ public Atividade Atividade { get; set; }
+
+ [Description("PROFISSÃO")]
+ public Profissao Profissao { get; set; }
+
+ public Banco Banco { get; set; }
+
+ [Log(true)]
+ [Description("AGÊNCIA")]
+ public string Agencia
+ {
+ get
+ {
+ return _agencia?.ToUpper().Trim();
+ }
+ set
+ {
+ _agencia = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("TIPO CONTA")]
+ public string TipoConta
+ {
+ get
+ {
+ return _tipoConta?.ToUpper();
+ }
+ set
+ {
+ _tipoConta = value;
+ }
+ }
+
+ [Log(true)]
+ public string Conta
+ {
+ get
+ {
+ return _conta?.ToUpper().Trim();
+ }
+ set
+ {
+ _conta = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("RENDA MENSAL")]
+ public decimal RendaMensal { get; set; }
+
+ [Log(true)]
+ public bool Falecido { get; set; }
+
+ public ObservableCollection<ClienteTelefone> Telefones { get; set; }
+
+ public ObservableCollection<ClienteEmail> Emails { get; set; }
+
+ public ObservableCollection<ClienteEndereco> Enderecos { get; set; }
+
+ public ObservableCollection<MaisContato> Contatos { get; set; }
+
+ public ObservableCollection<ClienteVinculo> Vinculos { get; set; }
+
+ public List<OrigemCliente> Origens { get; set; }
+
+ [Log(true)]
+ [Description("OBSERVAÇÃO")]
+ public string Observacao { get; set; }
+
+ [Log(true)]
+ public bool Excluido { get; set; }
+
+ [Log(true)]
+ public string Status { get; set; }
+
+ [Log(true)]
+ public ResponsavelAssinatura ResponsavelAssinatura { get; set; }
+
+ [Log(true)]
+ [Description("DESEJA RECEBER MALA DIRETA")]
+ public bool? MalaDireta
+ {
+ get
+ {
+ return _malaDireta.GetValueOrDefault(true);
+ }
+ set
+ {
+ _malaDireta = value.GetValueOrDefault(true);
+ }
+ }
+
+ public string NomeSocialRg
+ {
+ get
+ {
+ return _nomeSocialRg?.ToUpper();
+ }
+ set
+ {
+ _nomeSocialRg = value;
+ }
+ }
+
+ public bool EstaNaCentralSegurado { get; set; }
+
+ public bool PessoaFisica => Documento.Clear().Length < 12;
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ int? num = Nome?.Trim().Split(new char[1] { ' ' }).Length;
+ if (!num.HasValue)
+ {
+ list.AddValue("Nome", Messages.Obrigatorio);
+ }
+ else if (num <= 1)
+ {
+ list.AddValue("Nome", Messages.NomeInvalido);
+ }
+ if (!DocumentoPrincipal.HasValue)
+ {
+ list.AddValue("DocumentoPrincipal|DOCUMENTO PRINCIPAL", string.Format(Messages.Obrigatorio));
+ }
+ if (ClienteDesde.HasValue && (DateTime.Compare(ClienteDesde.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(ClienteDesde.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("ClienteDesde|CLIENTE DESDE", string.Format(Messages.DataInvalida));
+ }
+ DateTime date = Funcoes.GetNetworkTime().Date;
+ if (Nascimento.HasValue && Nascimento > date)
+ {
+ list.AddValue("Nascimento|" + ((Documento.OnlyNumber().Length > 11) ? "FUNDAÇÃO" : "NASCIMENTO"), Messages.Invalido);
+ }
+ if (Nascimento.HasValue && (DateTime.Compare(Nascimento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Nascimento.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Nascimento|" + ((Documento.OnlyNumber().Length > 11) ? "FUNDAÇÃO" : "NASCIMENTO"), string.Format(Messages.DataInvalida));
+ }
+ if (string.IsNullOrWhiteSpace(Documento))
+ {
+ list.AddValue("Documento", Messages.Obrigatorio);
+ }
+ else if (!Documento.ValidacaoDocumento())
+ {
+ list.AddValue("Documento", Messages.Invalido);
+ }
+ switch (DocumentoPrincipal)
+ {
+ case TipoDocumento.Rne:
+ if (string.IsNullOrWhiteSpace(Rne))
+ {
+ list.AddValue("Rne", Messages.Obrigatorio);
+ }
+ else if (!Rne.ValidacaoRne())
+ {
+ list.AddValue("Rne", Messages.Invalido);
+ }
+ break;
+ case TipoDocumento.Cei:
+ if (string.IsNullOrWhiteSpace(Cei))
+ {
+ list.AddValue("Cei", Messages.Obrigatorio);
+ }
+ else if (!Cei.ValidacaoCei())
+ {
+ list.AddValue("Cei", Messages.Invalido);
+ }
+ break;
+ case TipoDocumento.Caepf:
+ if (string.IsNullOrWhiteSpace(Caepf))
+ {
+ list.AddValue("Caepf", Messages.Obrigatorio);
+ }
+ else if (!Caepf.ValidateCaepf())
+ {
+ list.AddValue("Caepf", Messages.Invalido);
+ }
+ break;
+ }
+ if (Documento == null || Documento.OnlyNumber().Length <= 11)
+ {
+ if (PrimeiraHabilitacao.HasValue && PrimeiraHabilitacao > date)
+ {
+ list.AddValue("PrimeiraHabilitacao|PRIMEIRA HABILITAÇÃO", Messages.Invalido);
+ }
+ if (PrimeiraHabilitacao.HasValue && (DateTime.Compare(PrimeiraHabilitacao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(PrimeiraHabilitacao.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("PrimeiraHabilitacao|PRIMEIRA HABILITAÇÃO", string.Format(Messages.DataInvalida));
+ }
+ if (VencimentoHabilitacao.HasValue && VencimentoHabilitacao <= PrimeiraHabilitacao)
+ {
+ list.AddValue("VencimentoHabilitacao|VENCIMENTO HABILITAÇÃO", Messages.Invalido);
+ }
+ if (VencimentoHabilitacao.HasValue && (DateTime.Compare(VencimentoHabilitacao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(VencimentoHabilitacao.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("VencimentoHabilitacao|VENCIMENTO HABILITAÇÃO", string.Format(Messages.DataInvalida));
+ }
+ if (Expedicao.HasValue && (DateTime.Compare(Expedicao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Expedicao.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Expedicao|EXPEDIÇÃO", string.Format(Messages.DataInvalida));
+ }
+ if (Expedicao.HasValue && Expedicao > date)
+ {
+ list.AddValue("Expedicao|EXPEDIÇÃO", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(Identidade) && Identidade.Length > 14)
+ {
+ list.AddValue("Identidade", string.Format(Messages.MaiorQueLimite, 14));
+ }
+ if (!string.IsNullOrWhiteSpace(Habilitacao) && Habilitacao.Length > 15)
+ {
+ list.AddValue("Habilitacao|HABILITAÇÃO", string.Format(Messages.MaiorQueLimite, 15));
+ }
+ if (!string.IsNullOrWhiteSpace(CategoriaHabilitacao) && CategoriaHabilitacao.Length > 10)
+ {
+ list.AddValue("CategoriaHabilitacao|CATEGORIA HABILITAÇÃO", string.Format(Messages.MaiorQueLimite, 10));
+ }
+ if (!string.IsNullOrWhiteSpace(Emissor) && !Emissor.ValidacaoOrgao())
+ {
+ list.AddValue("Emissor|EMISSOR", string.Format(Messages.MaiorQueLimite, 6));
+ }
+ if (!string.IsNullOrWhiteSpace(EstadoEmissor) && !EstadoEmissor.ValidacaoEstado())
+ {
+ list.AddValue("EstadoEmissor|ESTADO EMISSOR", Messages.Invalido);
+ }
+ }
+ if (!string.IsNullOrWhiteSpace(Pasta) && Pasta.Length > 8)
+ {
+ list.AddValue("Pasta", string.Format(Messages.MaiorQueLimite, 8));
+ }
+ if (!string.IsNullOrWhiteSpace(Agencia) && Agencia.Length > 8)
+ {
+ list.AddValue("Agencia|AGÊNCIA", string.Format(Messages.MaiorQueLimite, 8));
+ }
+ if (!string.IsNullOrWhiteSpace(TipoConta) && TipoConta.Length > 20)
+ {
+ list.AddValue("TipoConta|TIPO CONTA", string.Format(Messages.MaiorQueLimite, 20));
+ }
+ if (!string.IsNullOrWhiteSpace(Conta) && Conta.Length > 12)
+ {
+ list.AddValue("Conta", string.Format(Messages.MaiorQueLimite, 12));
+ }
+ if (ResponsavelAssinatura != null)
+ {
+ list.AddRange(ResponsavelAssinatura.Validate());
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ List<TupleList> list = new List<TupleList>();
+ TupleList tupleList = new TupleList();
+ ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>();
+ object item;
+ if (DocumentoPrincipal.HasValue)
+ {
+ TipoDocumento? documentoPrincipal = DocumentoPrincipal;
+ item = (documentoPrincipal.HasValue ? documentoPrincipal.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item = "";
+ }
+ observableCollection.Add(new Tuple<string, string, string>("TIPO DO DOCUMENTO PRINCIPAL", (string)item, ""));
+ observableCollection.Add(new Tuple<string, string, string>("DOCUMENTO PRINCIPAL", string.IsNullOrWhiteSpace(Documento) ? "" : Documento, ""));
+ observableCollection.Add(new Tuple<string, string, string>("CLIENTE", string.IsNullOrWhiteSpace(Nome) ? "" : Nome.ToUpper(), ""));
+ observableCollection.Add(new Tuple<string, string, string>((Documento.OnlyNumber().Length > 11) ? "FUNDAÇÃO" : "NASCIMENTO", (!Nascimento.HasValue) ? "" : Nascimento?.ToShortDateString(), ""));
+ tupleList.Tuples = observableCollection;
+ list.Add(tupleList);
+ List<TupleList> list2 = list;
+ if (Documento != null && Documento.OnlyNumber().Length > 11)
+ {
+ list2[0].Tuples.Add(new Tuple<string, string, string>("RAMO DE ATIVIDADE", string.IsNullOrWhiteSpace(Atividade.Nome) ? "" : Atividade.Nome, ""));
+ }
+ else
+ {
+ list2[0].Tuples.Add(new Tuple<string, string, string>("IDENTIDADE", string.IsNullOrWhiteSpace(Identidade) ? "" : Identidade, ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("ÓRGÃO EMISSOR", string.IsNullOrWhiteSpace(Emissor) ? "" : Emissor.ToUpper(), ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("ESTADO EMISSOR", string.IsNullOrWhiteSpace(EstadoEmissor) ? "" : EstadoEmissor.ToUpper(), ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("DATA DE EXPEDIÇÃO", (!Expedicao.HasValue) ? "" : Expedicao?.ToShortDateString(), ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("HABILITAÇÃO", string.IsNullOrWhiteSpace(Habilitacao) ? "" : Habilitacao.ToUpper(), ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("CATEGORIA", string.IsNullOrWhiteSpace(CategoriaHabilitacao) ? "" : CategoriaHabilitacao.ToUpper(), ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("PRIMEIRA HABILITAÇÃO", (!PrimeiraHabilitacao.HasValue) ? "" : PrimeiraHabilitacao?.ToShortDateString(), ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("VENCIMENTO DA HABILITAÇÃO", (!VencimentoHabilitacao.HasValue) ? "" : VencimentoHabilitacao?.ToShortDateString(), ""));
+ ObservableCollection<Tuple<string, string, string>> tuples = list2[0].Tuples;
+ object item2;
+ if (Sexo.HasValue)
+ {
+ Sexo? sexo = Sexo;
+ item2 = (sexo.HasValue ? sexo.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item2 = "";
+ }
+ tuples.Add(new Tuple<string, string, string>("SEXO", (string)item2, ""));
+ ObservableCollection<Tuple<string, string, string>> tuples2 = list2[0].Tuples;
+ object item3;
+ if (EstadoCivil.HasValue)
+ {
+ EstadoCivil? estadoCivil = EstadoCivil;
+ item3 = (estadoCivil.HasValue ? estadoCivil.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item3 = "";
+ }
+ tuples2.Add(new Tuple<string, string, string>("ESTADO CIVIL", (string)item3, ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("PROFISSÃO DO CLIENTE", (Profissao == null) ? "" : Profissao.Nome.ToUpper(), ""));
+ }
+ list2[0].Tuples.Add(new Tuple<string, string, string>("CLIENTE DESDE", (!ClienteDesde.HasValue) ? "" : ClienteDesde?.ToShortDateString(), ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("PASTA", string.IsNullOrWhiteSpace(Pasta) ? "" : Pasta.ToUpper(), ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("BANCO", (Banco == null) ? "" : Banco.Nome.ToUpper(), ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("AGÊNCIA", string.IsNullOrWhiteSpace(Agencia) ? "" : Agencia.ToUpper(), ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("TIPO DE CONTA", string.IsNullOrWhiteSpace(TipoConta) ? "" : TipoConta.ToUpper(), ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("NÚMERO DA CONTA", string.IsNullOrWhiteSpace(Conta) ? "" : Conta.ToUpper(), ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("FALECIDO", Falecido ? "SIM" : "NÃO", ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("ÓRGÃO EMISSOR", string.IsNullOrWhiteSpace(Emissor) ? "" : Emissor.ToUpper(), ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("RENDA MENSAL", RendaMensal.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ ObservableCollection<Tuple<string, string, string>> observableCollection2 = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("TELEFONES$", "", "")
+ };
+ if (Telefones != null && Telefones.Count > 0)
+ {
+ foreach (ClienteTelefone telefone in Telefones)
+ {
+ observableCollection2.Add(new Tuple<string, string, string>($" TELEFONE {Telefones.IndexOf(telefone) + 1}$", "", ""));
+ object item4;
+ if (telefone.Tipo.HasValue)
+ {
+ TipoTelefone? tipo = telefone.Tipo;
+ item4 = (tipo.HasValue ? tipo.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item4 = "";
+ }
+ observableCollection2.Add(new Tuple<string, string, string>(" TIPO", (string)item4, ""));
+ observableCollection2.Add(new Tuple<string, string, string>(" PREFIXO", string.IsNullOrWhiteSpace(telefone.Prefixo) ? "" : telefone.Prefixo.ToUpper(), ""));
+ observableCollection2.Add(new Tuple<string, string, string>(" NÚMERO", string.IsNullOrWhiteSpace(telefone.Numero) ? "" : telefone.Numero, ""));
+ observableCollection2.Add(new Tuple<string, string, string>(" ORDEM", (!telefone.Ordem.HasValue) ? "" : telefone.Ordem.ToString(), ""));
+ }
+ }
+ list2.Add(new TupleList
+ {
+ Tuples = observableCollection2
+ });
+ ObservableCollection<Tuple<string, string, string>> observableCollection3 = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("EMAILS$", "", "")
+ };
+ if (Emails != null && Emails.Count > 0)
+ {
+ foreach (ClienteEmail email in Emails)
+ {
+ observableCollection3.Add(new Tuple<string, string, string>($" EMAIL {Emails.IndexOf(email) + 1}$", "", ""));
+ observableCollection3.Add(new Tuple<string, string, string>(" ENDEREÇO DE EMAIL", string.IsNullOrWhiteSpace(email.Email) ? "" : email.Email, ""));
+ observableCollection3.Add(new Tuple<string, string, string>(" ORDEM", (!email.Ordem.HasValue) ? "" : email.Ordem.ToString(), ""));
+ }
+ }
+ list2.Add(new TupleList
+ {
+ Tuples = observableCollection3
+ });
+ ObservableCollection<Tuple<string, string, string>> observableCollection4 = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("ENDEREÇOS$", "", "")
+ };
+ if (Enderecos != null && Enderecos.Count > 0)
+ {
+ foreach (ClienteEndereco endereco in Enderecos)
+ {
+ observableCollection4.Add(new Tuple<string, string, string>($" ENDEREÇO {Enderecos.IndexOf(endereco) + 1}$", "", ""));
+ observableCollection4.Add(new Tuple<string, string, string>(" LOGRADOURO", string.IsNullOrWhiteSpace(endereco.Endereco) ? "" : endereco.Endereco, ""));
+ observableCollection4.Add(new Tuple<string, string, string>(" NÚMERO", string.IsNullOrWhiteSpace(endereco.Numero) ? "" : endereco.Numero, ""));
+ observableCollection4.Add(new Tuple<string, string, string>(" COMPLEMENTO", string.IsNullOrWhiteSpace(endereco.Complemento) ? "" : endereco.Complemento, ""));
+ observableCollection4.Add(new Tuple<string, string, string>(" BAIRRO", string.IsNullOrWhiteSpace(endereco.Bairro) ? "" : endereco.Bairro, ""));
+ observableCollection4.Add(new Tuple<string, string, string>(" CIDADE", string.IsNullOrWhiteSpace(endereco.Cidade) ? "" : endereco.Cidade, ""));
+ observableCollection4.Add(new Tuple<string, string, string>(" ESTADO", string.IsNullOrWhiteSpace(endereco.Estado) ? "" : endereco.Estado, ""));
+ observableCollection4.Add(new Tuple<string, string, string>(" CEP", string.IsNullOrWhiteSpace(endereco.Cep) ? "" : endereco.Cep, ""));
+ observableCollection4.Add(new Tuple<string, string, string>(" ORDEM", (!endereco.Ordem.HasValue) ? "" : endereco.Ordem.ToString(), ""));
+ }
+ }
+ list2.Add(new TupleList
+ {
+ Tuples = observableCollection4
+ });
+ ObservableCollection<Tuple<string, string, string>> observableCollection5 = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("CONTATOS$", "", "")
+ };
+ if (Contatos != null && Contatos.Count > 0)
+ {
+ foreach (MaisContato contato in Contatos)
+ {
+ observableCollection5.Add(new Tuple<string, string, string>($" CONTATO {Contatos.IndexOf(contato) + 1}$", "", ""));
+ observableCollection5.Add(new Tuple<string, string, string>(" DOCUMENTO", string.IsNullOrWhiteSpace(contato.Documento) ? "" : contato.Documento, ""));
+ observableCollection5.Add(new Tuple<string, string, string>(" NASCIMENTO", (!contato.Nascimento.HasValue) ? "" : contato.Nascimento?.ToShortDateString(), ""));
+ object item5;
+ if (contato.Parentesco.HasValue)
+ {
+ Parentesco? parentesco = contato.Parentesco;
+ item5 = (parentesco.HasValue ? parentesco.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item5 = "";
+ }
+ observableCollection5.Add(new Tuple<string, string, string>(" PARENTESCO", (string)item5, ""));
+ observableCollection5.Add(new Tuple<string, string, string>(" BANCO", string.IsNullOrWhiteSpace(contato.Banco) ? "" : contato.Banco, ""));
+ observableCollection5.Add(new Tuple<string, string, string>(" AGÊNCIA", string.IsNullOrWhiteSpace(contato.Agencia) ? "" : contato.Agencia, ""));
+ observableCollection5.Add(new Tuple<string, string, string>(" CONTA", string.IsNullOrWhiteSpace(contato.Conta) ? "" : contato.Conta, ""));
+ object item6;
+ if (contato.Tipo.HasValue)
+ {
+ TipoTelefone? tipo = contato.Tipo;
+ item6 = (tipo.HasValue ? tipo.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item6 = "";
+ }
+ observableCollection5.Add(new Tuple<string, string, string>(" TIPO DO TELEFONE", (string)item6, ""));
+ observableCollection5.Add(new Tuple<string, string, string>(" PREFIXO", string.IsNullOrWhiteSpace(contato.Prefixo) ? "" : contato.Prefixo, ""));
+ observableCollection5.Add(new Tuple<string, string, string>(" NÚMERO", string.IsNullOrWhiteSpace(contato.Telefone) ? "" : contato.Telefone, ""));
+ observableCollection5.Add(new Tuple<string, string, string>(" EMAIL", string.IsNullOrWhiteSpace(contato.Email) ? "" : contato.Email, ""));
+ }
+ }
+ list2.Add(new TupleList
+ {
+ Tuples = observableCollection5
+ });
+ ObservableCollection<Tuple<string, string, string>> observableCollection6 = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("VÍNCULOS$", "", "")
+ };
+ if (Vinculos == null)
+ {
+ Vinculos = new ObservableCollection<ClienteVinculo>();
+ }
+ if (Vinculos != null && Vinculos.Count > 0)
+ {
+ foreach (ClienteVinculo vinculo in Vinculos)
+ {
+ observableCollection6.Add(new Tuple<string, string, string>($" VÍNCULO {Vinculos.IndexOf(vinculo) + 1}$", "", ""));
+ observableCollection6.Add(new Tuple<string, string, string>(" COM CLIENTE", (vinculo.Cliente1.Id != base.Id) ? vinculo.Cliente1.Nome : vinculo.Cliente2.Nome, ""));
+ observableCollection6.Add(new Tuple<string, string, string>(" PARENTESCO", (vinculo.Cliente1.Id == base.Id) ? vinculo.Parentesco.GetDescription() : Funcoes.ParentescoInverso(vinculo.Parentesco).GetDescription(), ""));
+ }
+ }
+ list2.Add(new TupleList
+ {
+ Tuples = observableCollection6
+ });
+ return list2;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/ClienteEmail.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/ClienteEmail.cs
new file mode 100644
index 0000000..28872c8
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/ClienteEmail.cs
@@ -0,0 +1,58 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class ClienteEmail : EmailBase, IDomain
+{
+ private string _observacao;
+
+ public bool Selecionado { get; set; }
+
+ public Cliente Cliente { get; set; }
+
+ public int? Ordem { get; set; }
+
+ [Log(true)]
+ public string Observacao
+ {
+ get
+ {
+ return _observacao?.ToUpper();
+ }
+ set
+ {
+ _observacao = value;
+ }
+ }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(base.Email))
+ {
+ list.AddValue("Email", Messages.Obrigatorio);
+ }
+ else if (base.Email.Length > 80)
+ {
+ list.AddValue("Email", string.Format(Messages.MaiorQueLimite, 80));
+ }
+ else if (!base.Email.ValidacaoEmail())
+ {
+ list.AddValue("Email", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(Observacao) && Observacao.Length > 255)
+ {
+ list.AddValue("Observacao", string.Format(Messages.MaiorQueLimite, 255));
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/ClienteEndereco.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/ClienteEndereco.cs
new file mode 100644
index 0000000..c2086be
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/ClienteEndereco.cs
@@ -0,0 +1,123 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Runtime.CompilerServices;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class ClienteEndereco : EnderecoBase, IDomain, INotifyPropertyChanged
+{
+ private bool _selecionado;
+
+ private string _observacao;
+
+ public bool Selecionado
+ {
+ get
+ {
+ return _selecionado;
+ }
+ set
+ {
+ if (value != _selecionado)
+ {
+ _selecionado = value;
+ OnPropertyChanged("Selecionado");
+ }
+ }
+ }
+
+ [Log(true)]
+ public string Observacao
+ {
+ get
+ {
+ return _observacao?.ToUpper();
+ }
+ set
+ {
+ _observacao = value;
+ }
+ }
+
+ public Cliente Cliente { get; set; }
+
+ public int? Ordem { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(base.Cep))
+ {
+ list.AddValue("Cep", Messages.Obrigatorio);
+ }
+ else if (!base.Cep.ValidacaoCep())
+ {
+ list.AddValue("Cep", Messages.Invalido);
+ }
+ if (string.IsNullOrWhiteSpace(base.Endereco))
+ {
+ list.AddValue("Endereco", Messages.Obrigatorio);
+ }
+ else if (base.Endereco.Length > 150)
+ {
+ list.AddValue("Endereco", string.Format(Messages.MaiorQueLimite, 150));
+ }
+ if (string.IsNullOrWhiteSpace(base.Numero))
+ {
+ list.AddValue("Numero", Messages.Obrigatorio);
+ }
+ else if (base.Numero.Length > 6)
+ {
+ list.AddValue("Numero", string.Format(Messages.MaiorQueLimite, 6));
+ }
+ if (!string.IsNullOrWhiteSpace(base.Complemento) && base.Complemento.Length > 45)
+ {
+ list.AddValue("Complemento", string.Format(Messages.MaiorQueLimite, 45));
+ }
+ if (string.IsNullOrWhiteSpace(base.Bairro))
+ {
+ list.AddValue("Bairro", Messages.Obrigatorio);
+ }
+ else if (base.Bairro.Length > 100)
+ {
+ list.AddValue("Bairro", string.Format(Messages.MaiorQueLimite, 100));
+ }
+ if (string.IsNullOrWhiteSpace(base.Cidade))
+ {
+ list.AddValue("Cidade", Messages.Obrigatorio);
+ }
+ else if (base.Cidade.Length > 50)
+ {
+ list.AddValue("Cidade", string.Format(Messages.MaiorQueLimite, 50));
+ }
+ if (string.IsNullOrWhiteSpace(base.Estado))
+ {
+ list.AddValue("Estado", Messages.Obrigatorio);
+ }
+ else if (!base.Estado.ValidacaoEstado())
+ {
+ list.AddValue("Estado", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(Observacao) && Observacao.Length > 255)
+ {
+ list.AddValue("Observacao", string.Format(Messages.MaiorQueLimite, 255));
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/ClienteTelefone.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/ClienteTelefone.cs
new file mode 100644
index 0000000..6ca47ce
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/ClienteTelefone.cs
@@ -0,0 +1,56 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class ClienteTelefone : TelefoneBase, IDomain
+{
+ private string _observacao;
+
+ public Cliente Cliente { get; set; }
+
+ public int? Ordem { get; set; }
+
+ [Log(true)]
+ public string Observacao
+ {
+ get
+ {
+ return _observacao?.ToUpper();
+ }
+ set
+ {
+ _observacao = value;
+ }
+ }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidateBase();
+ if (!string.IsNullOrWhiteSpace(Observacao) && Observacao.Length > 30)
+ {
+ list.AddValue("Observacao", string.Format(Messages.MaiorQueLimite, 30));
+ }
+ if (string.IsNullOrWhiteSpace(base.Numero))
+ {
+ list.AddValue("Numero", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(base.Prefixo))
+ {
+ list.AddValue("Prefixo", Messages.Obrigatorio);
+ }
+ if (!base.Tipo.HasValue)
+ {
+ list.AddValue("Tipo", Messages.Obrigatorio);
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/ClienteVinculo.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/ClienteVinculo.cs
new file mode 100644
index 0000000..67ff238
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/ClienteVinculo.cs
@@ -0,0 +1,31 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class ClienteVinculo : DomainBase, IDomain
+{
+ public Cliente Cliente1 { get; set; }
+
+ public Cliente Cliente2 { get; set; }
+
+ public ParentescoVinculo? Parentesco { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (!Parentesco.HasValue)
+ {
+ list.AddValue("Parentesco", Messages.Obrigatorio);
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Cobertura.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Cobertura.cs
new file mode 100644
index 0000000..00f769b
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Cobertura.cs
@@ -0,0 +1,48 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Cobertura : DomainBase, IDomain
+{
+ private string _observacao;
+
+ public Item Item { get; set; }
+
+ public CoberturaPadrao CoberturaPadrao { get; set; }
+
+ public decimal Franquia { get; set; }
+
+ public decimal Premio { get; set; }
+
+ public decimal Lmi { get; set; }
+
+ public string Observacao
+ {
+ get
+ {
+ return _observacao?.ToUpper();
+ }
+ set
+ {
+ _observacao = ((string.IsNullOrWhiteSpace(value) && CoberturaPadrao != null) ? CoberturaPadrao.Descricao : value);
+ }
+ }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if ((Lmi != 0m || Premio != 0m || Franquia != 0m) && string.IsNullOrWhiteSpace(Observacao))
+ {
+ list.AddValue("Observacao", Messages.Obrigatorio);
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/CoberturaGranizo.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/CoberturaGranizo.cs
new file mode 100644
index 0000000..fe689b3
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/CoberturaGranizo.cs
@@ -0,0 +1,74 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class CoberturaGranizo : DomainBase, IDomain
+{
+ private string _variedade;
+
+ private string _quadra;
+
+ public Item Item { get; set; }
+
+ public Granizo Granizo { get; set; }
+
+ public string Variedade
+ {
+ get
+ {
+ return _variedade?.ToUpper();
+ }
+ set
+ {
+ _variedade = value;
+ }
+ }
+
+ public string Quadra
+ {
+ get
+ {
+ return _quadra?.ToUpper();
+ }
+ set
+ {
+ _quadra = value;
+ }
+ }
+
+ public decimal? Produtividade { get; set; }
+
+ public decimal? Lmi { get; set; }
+
+ public decimal? Premio { get; set; }
+
+ public decimal? Area { get; set; }
+
+ public DateTime? Plantio { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (Plantio.HasValue && (DateTime.Compare(Plantio.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Plantio.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Plantio", string.Format(Messages.DataInvalida));
+ }
+ if (string.IsNullOrWhiteSpace(Variedade) && Variedade.Length > 60)
+ {
+ list.AddValue("Variedade", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (string.IsNullOrWhiteSpace(Quadra) && Quadra.Length > 30)
+ {
+ list.AddValue("Quadra", string.Format(Messages.MaiorQueLimite, 30));
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/CoberturaPadrao.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/CoberturaPadrao.cs
new file mode 100644
index 0000000..fa767a6
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/CoberturaPadrao.cs
@@ -0,0 +1,41 @@
+using System;
+using System.Collections.Generic;
+using System.Text.RegularExpressions;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class CoberturaPadrao : DomainBase, IDomain
+{
+ private string _descricao;
+
+ public long IdRamo { get; set; }
+
+ public string Descricao
+ {
+ get
+ {
+ if (!string.IsNullOrWhiteSpace(_descricao))
+ {
+ _descricao = Regex.Replace(_descricao, "[\n\r]", "");
+ }
+ return _descricao?.ToUpper();
+ }
+ set
+ {
+ _descricao = value;
+ }
+ }
+
+ public bool Padrao { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ return ValidationHelper.AddValue();
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/CondicaoRepasse.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/CondicaoRepasse.cs
new file mode 100644
index 0000000..a00dbc1
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/CondicaoRepasse.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class CondicaoRepasse : DomainBase, IDomain
+{
+ public Seguradora Seguradora { get; set; }
+
+ public Ramo Ramo { get; set; }
+
+ public int Parcela { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ return ValidationHelper.AddValue();
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/ConfigExtratoImport.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/ConfigExtratoImport.cs
new file mode 100644
index 0000000..7d1b274
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/ConfigExtratoImport.cs
@@ -0,0 +1,26 @@
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class ConfigExtratoImport : DomainBase
+{
+ private string _descricao;
+
+ public long IdSeguradora { get; set; }
+
+ public string Descricao
+ {
+ get
+ {
+ return _descricao?.ToUpper();
+ }
+ set
+ {
+ _descricao = value;
+ }
+ }
+
+ public string Codigo { get; set; }
+
+ public bool Ativo { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Consorcio.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Consorcio.cs
new file mode 100644
index 0000000..73c7e8e
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Consorcio.cs
@@ -0,0 +1,132 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Globalization;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Consorcio : DomainBase, IDomain
+{
+ private string _bensConsorcio;
+
+ private string _grupo;
+
+ private string _cota;
+
+ private decimal? _valorCredito;
+
+ private string _observacao;
+
+ public Item Item { get; set; }
+
+ public string BensConsorcio
+ {
+ get
+ {
+ return _bensConsorcio?.ToUpper();
+ }
+ set
+ {
+ _bensConsorcio = value;
+ }
+ }
+
+ public string Grupo
+ {
+ get
+ {
+ return _grupo?.ToUpper();
+ }
+ set
+ {
+ _grupo = value;
+ }
+ }
+
+ public string Cota
+ {
+ get
+ {
+ return _cota?.ToUpper();
+ }
+ set
+ {
+ _cota = value;
+ }
+ }
+
+ public decimal? ValorCredito
+ {
+ get
+ {
+ return _valorCredito;
+ }
+ set
+ {
+ _valorCredito = value;
+ }
+ }
+
+ public string Observacao
+ {
+ get
+ {
+ return _observacao?.ToUpper();
+ }
+ set
+ {
+ _observacao = value;
+ }
+ }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(BensConsorcio))
+ {
+ list.AddValue("BensConsorcio", Messages.Obrigatorio);
+ }
+ return list;
+ }
+
+ public static List<TupleList> Log(Item item)
+ {
+ List<TupleList> list = new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("DESCRIÇÃO", string.IsNullOrWhiteSpace(item.Consorcio.BensConsorcio) ? "" : item.Consorcio.BensConsorcio, ""),
+ new Tuple<string, string, string>("GRUPO", string.IsNullOrWhiteSpace(item.Consorcio.Grupo) ? "" : item.Consorcio.Grupo, ""),
+ new Tuple<string, string, string>("COTA", string.IsNullOrWhiteSpace(item.Consorcio.Cota) ? "" : item.Consorcio.Cota, ""),
+ new Tuple<string, string, string>("GRUPO", (!item.Consorcio.ValorCredito.HasValue) ? "" : item.Consorcio.ValorCredito?.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), "")
+ }
+ }
+ };
+ ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("COBERTURAS$", "", "")
+ };
+ foreach (Cobertura cobertura in item.Coberturas)
+ {
+ observableCollection.Add(new Tuple<string, string, string>($" COBERTURA {item.Coberturas.IndexOf(cobertura) + 1}$", "", ""));
+ observableCollection.Add(new Tuple<string, string, string>(" OBSERVAÇÃO", string.IsNullOrWhiteSpace(cobertura.Observacao) ? "" : cobertura.Observacao.ToUpper(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" PRÊMIO", cobertura.Premio.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" FRANQUIA", cobertura.Franquia.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" L.M.I.", cobertura.Lmi.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ }
+ list.Add(new TupleList
+ {
+ Tuples = observableCollection
+ });
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Controle.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Controle.cs
new file mode 100644
index 0000000..af89311
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Controle.cs
@@ -0,0 +1,83 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Controle : DomainBase, IDomain
+{
+ private long _idEmpresa;
+
+ [Log(false)]
+ public Cliente Cliente { get; set; }
+
+ public long IdEmpresa
+ {
+ get
+ {
+ return _idEmpresa;
+ }
+ set
+ {
+ _idEmpresa = ((value == 0L) ? 1 : value);
+ }
+ }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("SEGURADORA")]
+ public Seguradora Seguradora { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("RAMO")]
+ public Ramo Ramo { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("PRODUTO")]
+ public Produto Produto { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("SEGURADORA ANTERIOR")]
+ public Seguradora SeguradoraAnterior { get; set; }
+
+ [Log(false)]
+ public IList<Documento> Documentos { get; set; }
+
+ [Log(false)]
+ public Item Item { get; set; }
+
+ public string AssistenciaId { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (Cliente == null || Cliente.Id == 0L)
+ {
+ list.AddValue("Cliente", Messages.Obrigatorio);
+ }
+ if (Seguradora == null || Seguradora.Id == 0L)
+ {
+ list.AddValue("Seguradora", Messages.Obrigatorio);
+ }
+ if (Ramo == null || Ramo.Id == 0L)
+ {
+ list.AddValue("Ramo", Messages.Obrigatorio);
+ }
+ if (IdEmpresa == 0L)
+ {
+ list.AddValue("Empresa", Messages.Obrigatorio);
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/ControleSinistro.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/ControleSinistro.cs
new file mode 100644
index 0000000..b0b4bc6
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/ControleSinistro.cs
@@ -0,0 +1,84 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class ControleSinistro : DomainBase, IDomain
+{
+ private DateTime? _dataSinistro;
+
+ private DateTime? _horaSinistro;
+
+ public Item Item { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("DATA SINISTRO")]
+ public DateTime? DataSinistro
+ {
+ get
+ {
+ return _dataSinistro;
+ }
+ set
+ {
+ if (value.HasValue)
+ {
+ if (!HoraSinistro.HasValue)
+ {
+ HoraSinistro = value;
+ }
+ _dataSinistro = DateTime.Parse($"{value.Value:d} {HoraSinistro.Value:T}");
+ }
+ else
+ {
+ _dataSinistro = null;
+ }
+ }
+ }
+
+ public DateTime? HoraSinistro
+ {
+ get
+ {
+ return _horaSinistro;
+ }
+ set
+ {
+ _horaSinistro = value;
+ if (value.HasValue)
+ {
+ DataSinistro = ((DataSinistro.HasValue && value.HasValue) ? new DateTime?(DateTime.Parse($"{DataSinistro.Value:d} {value:T}")) : null);
+ }
+ }
+ }
+
+ public List<Sinistro> Sinistros { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (!DataSinistro.HasValue)
+ {
+ list.AddValue("DataSinistro", Messages.Obrigatorio);
+ }
+ if (DataSinistro.HasValue && (DateTime.Compare(DataSinistro.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(DataSinistro.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("DataSinistro", string.Format(Messages.DataInvalida));
+ }
+ if (HoraSinistro.HasValue && (DateTime.Compare(HoraSinistro.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(HoraSinistro.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("HoraSinistro", string.Format(Messages.DataInvalida));
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/CriticaApolice.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/CriticaApolice.cs
new file mode 100644
index 0000000..3b0a7a6
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/CriticaApolice.cs
@@ -0,0 +1,70 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class CriticaApolice : DomainBase, IDomain
+{
+ private string _naoEncontrados;
+
+ private bool? _critica;
+
+ public Documento Documento { get; set; }
+
+ public Usuario UsuarioImportacao { get; set; }
+
+ public long? UsuarioCritica { get; set; }
+
+ public bool? Critica
+ {
+ get
+ {
+ return _critica;
+ }
+ set
+ {
+ _critica = value.GetValueOrDefault();
+ }
+ }
+
+ public string NaoEncontrados
+ {
+ get
+ {
+ return _naoEncontrados?.ToUpper();
+ }
+ set
+ {
+ _naoEncontrados = value;
+ }
+ }
+
+ public DateTime? DataImportacao { get; set; }
+
+ public DateTime? DataCritica { get; set; }
+
+ public bool? Aggilizador { get; set; }
+
+ public string Tipo { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (DataImportacao.HasValue && (DateTime.Compare(DataImportacao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(DataImportacao.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("DataImportacao", string.Format(Messages.DataInvalida));
+ }
+ if (DataCritica.HasValue && (DateTime.Compare(DataCritica.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(DataCritica.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("DataCritica", string.Format(Messages.DataInvalida));
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/DetalheExtrato.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/DetalheExtrato.cs
new file mode 100644
index 0000000..07b3e51
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/DetalheExtrato.cs
@@ -0,0 +1,163 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Runtime.CompilerServices;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class DetalheExtrato : DomainBase, IDomain, INotifyPropertyChanged
+{
+ private bool _selecionado;
+
+ private string _cliente;
+
+ private string _apolice;
+
+ private string _endosso;
+
+ private string _numeroParcela;
+
+ private string _historico;
+
+ public bool IsNormal = true;
+
+ public bool Selecionado
+ {
+ get
+ {
+ return _selecionado;
+ }
+ set
+ {
+ _selecionado = value;
+ OnPropertyChanged("Selecionado");
+ }
+ }
+
+ public Extrato Extrato { get; set; }
+
+ public long? Documento { get; set; }
+
+ public long? Parcela { get; set; }
+
+ public StatusParcela? Status { get; set; }
+
+ public SubTipo? SubTipo { get; set; }
+
+ public bool Corrigir { get; set; }
+
+ public string Cliente
+ {
+ get
+ {
+ return _cliente?.ToUpper();
+ }
+ set
+ {
+ _cliente = value;
+ }
+ }
+
+ public string Apolice
+ {
+ get
+ {
+ return _apolice?.ToUpper().Trim();
+ }
+ set
+ {
+ _apolice = value;
+ }
+ }
+
+ public string Endosso
+ {
+ get
+ {
+ return _endosso?.ToUpper().Trim();
+ }
+ set
+ {
+ _endosso = value;
+ }
+ }
+
+ public string NumeroParcela
+ {
+ get
+ {
+ return _numeroParcela?.ToUpper().Trim();
+ }
+ set
+ {
+ _numeroParcela = value;
+ }
+ }
+
+ public DateTime? Recebimento { get; set; }
+
+ public DateTime? Credito { get; set; }
+
+ public decimal? Valor { get; set; }
+
+ public decimal? Comissao { get; set; }
+
+ public decimal? ValorComissao { get; set; }
+
+ public string Historico
+ {
+ get
+ {
+ return _historico?.ToUpper();
+ }
+ set
+ {
+ _historico = value;
+ }
+ }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (Recebimento.HasValue && (DateTime.Compare(Recebimento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Recebimento.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Recebimento", string.Format(Messages.DataInvalida));
+ }
+ if (Credito.HasValue && (DateTime.Compare(Credito.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Credito.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Credito", string.Format(Messages.DataInvalida));
+ }
+ if (string.IsNullOrWhiteSpace(Cliente) && Cliente.Length > 100)
+ {
+ list.AddValue("Cliente", string.Format(Messages.MaiorQueLimite, 100));
+ }
+ if (string.IsNullOrWhiteSpace(Apolice) && Apolice.Length > 30)
+ {
+ list.AddValue("Apolice", string.Format(Messages.MaiorQueLimite, 30));
+ }
+ if (string.IsNullOrWhiteSpace(Endosso) && Endosso.Length > 20)
+ {
+ list.AddValue("Endosso", string.Format(Messages.MaiorQueLimite, 20));
+ }
+ if (string.IsNullOrWhiteSpace(NumeroParcela) && NumeroParcela.Length > 4)
+ {
+ list.AddValue("NumeroParcela", string.Format(Messages.MaiorQueLimite, 4));
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Documento.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Documento.cs
new file mode 100644
index 0000000..4b6acf7
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Documento.cs
@@ -0,0 +1,835 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Globalization;
+using System.Runtime.CompilerServices;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Aggilizador;
+using Gestor.Model.Domain.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Documento : DomainBase, IDomain
+{
+ private bool _selecionado;
+
+ private string _proposta;
+
+ private string _propostaEndosso;
+
+ private string _apoliceAnterior;
+
+ private string _apolice;
+
+ private string _endosso;
+
+ private string _pasta;
+
+ private string _agencia;
+
+ private string _conta;
+
+ private string _numeroCartao;
+
+ private string _vencimentoCartao;
+
+ private string _nomeProponente;
+
+ private bool _isEndosso;
+
+ private bool _vencimentoParcela;
+
+ public bool Selecionado
+ {
+ get
+ {
+ return _selecionado;
+ }
+ set
+ {
+ if (value != _selecionado)
+ {
+ _selecionado = value;
+ OnPropertyChanged("Selecionado");
+ }
+ }
+ }
+
+ public bool ProtocoloTelefone { get; set; }
+
+ public bool ProtocoloEmail { get; set; }
+
+ public bool ProtocoloEndereco { get; set; }
+
+ public bool ProtocoloParcela { get; set; }
+
+ public bool ProtocoloVendedor { get; set; }
+
+ public Controle Controle { get; set; }
+
+ [Log(true)]
+ [Description("NEGÓCIO CORRETORA")]
+ public NegocioCorretora? NegocioCorretora { get; set; }
+
+ public DateTime? DataCriacao { get; set; }
+
+ [Log(true)]
+ [Description("DATA DE CONTROLE")]
+ public DateTime? DataControle { get; set; }
+
+ public int Ordem { get; set; }
+
+ public int Tipo { get; set; }
+
+ [Log(true)]
+ [Description("STATUS INTERNO")]
+ public Status Status { get; set; }
+
+ public string ObsProtocolo { get; set; }
+
+ [Log(true)]
+ public string Proposta
+ {
+ get
+ {
+ return _proposta?.ToUpper();
+ }
+ set
+ {
+ _proposta = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("PROPOSTA DE ENDOSSO")]
+ public string PropostaEndosso
+ {
+ get
+ {
+ return _propostaEndosso?.ToUpper();
+ }
+ set
+ {
+ _propostaEndosso = value;
+ }
+ }
+
+ [Log(false)]
+ public Usuario UsuarioCriacao { get; set; }
+
+ [Log(true)]
+ [Description("APÓLICE ANTERIOR")]
+ public string ApoliceAnterior
+ {
+ get
+ {
+ return _apoliceAnterior?.ToUpper();
+ }
+ set
+ {
+ _apoliceAnterior = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("APÓLICE")]
+ public string Apolice
+ {
+ get
+ {
+ return _apolice?.ToUpper();
+ }
+ set
+ {
+ _apolice = value;
+ }
+ }
+
+ [Log(true)]
+ public string Endosso
+ {
+ get
+ {
+ return _endosso?.ToUpper();
+ }
+ set
+ {
+ _endosso = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("TIPO DO ENDOSSO")]
+ public TipoEndosso? TipoEndosso { get; set; }
+
+ [Log(true)]
+ [Description("COMISSÃO")]
+ public decimal Comissao { get; set; }
+
+ [Log(true)]
+ [Description("PRÊMIO LÍQUIDO")]
+ public decimal PremioLiquido { get; set; }
+
+ [Log(true)]
+ [Description("PRÊMIO ADICIONAL")]
+ public decimal PremioAdicional { get; set; }
+
+ [Log(true)]
+ [Description("CUSTO DE EMISSÃO")]
+ public decimal Custo { get; set; }
+
+ [Log(true)]
+ [Description("IOF")]
+ public decimal Iof { get; set; }
+
+ [Log(true)]
+ [Description("DIFERENÇA")]
+ public decimal Diferenca { get; set; }
+
+ [Log(true)]
+ [Description("PRÊMIO TOTAL")]
+ public decimal PremioTotal { get; set; }
+
+ [Log(true)]
+ [Description("QUANTIDADE DE PARCELAS")]
+ public decimal NumeroParcelas { get; set; }
+
+ [Log(true)]
+ public string Observacao { get; set; }
+
+ [Log(true)]
+ public string Pasta
+ {
+ get
+ {
+ return _pasta?.ToUpper();
+ }
+ set
+ {
+ _pasta = value;
+ }
+ }
+
+ [Log(true)]
+ public Banco Banco { get; set; }
+
+ [Log(true)]
+ [Description("AGÊNCIA")]
+ public string Agencia
+ {
+ get
+ {
+ return _agencia?.ToUpper().Trim();
+ }
+ set
+ {
+ _agencia = value;
+ }
+ }
+
+ [Log(true)]
+ public string Conta
+ {
+ get
+ {
+ return _conta?.ToUpper().Trim();
+ }
+ set
+ {
+ _conta = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("TIPO RECEBIMENTO")]
+ public TipoRecebimento? TipoRecebimento { get; set; }
+
+ [Log(false)]
+ public Negocio? Negocio { get; set; }
+
+ [Log(true)]
+ [Description("SITUAÇÃO")]
+ public TipoSeguro Situacao { get; set; }
+
+ [Log(false)]
+ public TipoSeguro? SituacaoAnterior { get; set; }
+
+ [Log(true)]
+ [Description("ADICIONAL DE COMISSÃO")]
+ public bool AdicionalComiss { get; set; }
+
+ public bool Excluido { get; set; }
+
+ public bool AssinadaSiggner { get; set; }
+
+ [Log(true)]
+ public bool PropostaAssinada { get; set; }
+
+ public StatusAssinatura StatusAssinatura { get; set; }
+
+ [Log(true)]
+ [Description("APÓLICE CONFERIDA")]
+ public bool ApoliceConferida { get; set; }
+
+ public bool FinalVigencia { get; set; }
+
+ [Log(true)]
+ public BandeiraCartao? Bandeira { get; set; }
+
+ [Log(true)]
+ [Description("NÚMERO CARTÃO")]
+ public string NumeroCartao
+ {
+ get
+ {
+ return _numeroCartao?.ToUpper().Trim();
+ }
+ set
+ {
+ _numeroCartao = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("VENCIMENTO CARTÃO")]
+ public string VencimentoCartao
+ {
+ get
+ {
+ return _vencimentoCartao?.ToUpper().Trim();
+ }
+ set
+ {
+ _vencimentoCartao = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("PROPONENTE")]
+ public string NomeProponente
+ {
+ get
+ {
+ return _nomeProponente?.ToUpper();
+ }
+ set
+ {
+ _nomeProponente = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("VIGÊNCIA INICIAL")]
+ public DateTime Vigencia1 { get; set; }
+
+ [Log(true)]
+ [Description("VIGÊNCIA FINAL")]
+ public DateTime? Vigencia2 { get; set; }
+
+ [Log(true)]
+ [Description("EMISSÃO")]
+ public DateTime? Emissao { get; set; }
+
+ [Log(true)]
+ [Description("TRANSMISSÃO DA PROPOSTA")]
+ public DateTime? Remessa { get; set; }
+
+ [Log(true)]
+ [Description("ESTIPULANTE 1")]
+ public Estipulante Estipulante1 { get; set; }
+
+ [Log(true)]
+ [Description("ESTIPULANTE 2")]
+ public Estipulante Estipulante2 { get; set; }
+
+ [Log(true)]
+ [Description("ESTIPULANTE 3")]
+ public Estipulante Estipulante3 { get; set; }
+
+ [Log(true)]
+ [Description("ESTIPULANTE 4")]
+ public Estipulante Estipulante4 { get; set; }
+
+ [Log(true)]
+ [Description("ESTIPULANTE 5")]
+ public Estipulante Estipulante5 { get; set; }
+
+ public string Estipulantes { get; set; }
+
+ [Log(false)]
+ public Vendedor VendedorPrincipal { get; set; }
+
+ [Log(false)]
+ public decimal? PercentualRepasse { get; set; }
+
+ [Log(false)]
+ public List<Item> ItensAtivo { get; set; }
+
+ [Log(false)]
+ public ObservableCollection<Parcela> Parcelas { get; set; }
+
+ [Log(false)]
+ public List<VendedorParcela> Pagamentos { get; set; }
+
+ [Log(false)]
+ public List<Vendedor> Vendedores { get; set; }
+
+ [Log(false)]
+ public bool Sinistro { get; set; }
+
+ [Log(false)]
+ public bool TemEndosso { get; set; }
+
+ [Log(true)]
+ [Description("FORMA DE PAGAMENTO")]
+ public FormaPagamento? FormaPagamento { get; set; }
+
+ [Log(false)]
+ public List<StatusDocumentoAssinado> Assinaturas { get; set; }
+
+ [Log(false)]
+ public VinculoDocumento Vinculo { get; set; }
+
+ [Log(false)]
+ public List<Calculo> Calculos { get; set; }
+
+ public decimal? ComissaoTotal { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+
+ public Documento DeepCopy()
+ {
+ return JsonConvert.DeserializeObject<Documento>(JsonConvert.SerializeObject((object)this));
+ }
+
+ public List<KeyValuePair<string, string>> Validate(bool isEndosso, bool vencimentoParcela)
+ {
+ _isEndosso = isEndosso;
+ _vencimentoParcela = vencimentoParcela;
+ return Validate();
+ }
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ list.AddRange(Controle.Validate());
+ if (!NegocioCorretora.HasValue)
+ {
+ list.AddValue("NegocioCorretora|NEGÓCIO CORRETORA", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(Proposta) && !_isEndosso)
+ {
+ list.AddValue("Proposta", Messages.Obrigatorio);
+ }
+ else if (!string.IsNullOrEmpty(Proposta) && Proposta.Length > 50)
+ {
+ list.AddValue("Proposta", string.Format(Messages.MaiorQueLimite, 50));
+ }
+ if (!string.IsNullOrWhiteSpace(PropostaEndosso) && PropostaEndosso.Length > 50)
+ {
+ list.AddValue("PropostaEndosso|PROPOSTA DE ENDOSSO", string.Format(Messages.MaiorQueLimite, 50));
+ }
+ if (!string.IsNullOrWhiteSpace(ApoliceAnterior) && ApoliceAnterior.Length > 50)
+ {
+ list.AddValue("ApoliceAnterior|APÓLICE ANTERIOR", string.Format(Messages.MaiorQueLimite, 50));
+ }
+ if (!string.IsNullOrWhiteSpace(Endosso) && Endosso.Length > 30)
+ {
+ list.AddValue("Endosso", string.Format(Messages.MaiorQueLimite, 30));
+ }
+ if (!string.IsNullOrWhiteSpace(Pasta) && Pasta.Length > 15)
+ {
+ list.AddValue("Pasta", string.Format(Messages.MaiorQueLimite, 15));
+ }
+ if (!string.IsNullOrWhiteSpace(Agencia) && Agencia.Length > 10)
+ {
+ list.AddValue("Agencia|AGÊNCIA", string.Format(Messages.MaiorQueLimite, 10));
+ }
+ if (!string.IsNullOrWhiteSpace(Conta) && Conta.Length > 15)
+ {
+ list.AddValue("Conta", string.Format(Messages.MaiorQueLimite, 15));
+ }
+ if (!string.IsNullOrWhiteSpace(NumeroCartao) && NumeroCartao.Length > 20)
+ {
+ list.AddValue("NumeroCartao|NÚMERO DO CARTÃO", string.Format(Messages.MaiorQueLimite, 20));
+ }
+ if (!string.IsNullOrWhiteSpace(VencimentoCartao) && VencimentoCartao.Length > 5)
+ {
+ list.AddValue("VencimentoCartao|VENCIMENTO DO CARTÃO", string.Format(Messages.MaiorQueLimite, 5));
+ }
+ if (!string.IsNullOrWhiteSpace(NomeProponente) && NomeProponente.Length > 100)
+ {
+ list.AddValue("NomeProponente|PROPONENTE", string.Format(Messages.MaiorQueLimite, 100));
+ }
+ if (Emissao.HasValue && (DateTime.Compare(Emissao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Emissao.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Emissao|" + (_isEndosso ? "EMISSÃO DO ENDOSSO" : "EMISSÃO DA APÓLICE"), string.Format(Messages.DataInvalida));
+ }
+ if (Remessa.HasValue && (DateTime.Compare(Remessa.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Remessa.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Remessa|" + (_isEndosso ? "TRANSMISSÃO DA PROPOSTA DE ENDOSSO" : "TRANSMISSÃO DA PROPOSTA"), string.Format(Messages.DataInvalida));
+ }
+ _ = Vigencia1;
+ if (DateTime.Compare(Vigencia1, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Vigencia1, new DateTime(9999, 12, 31)) > 0)
+ {
+ list.AddValue("Vigencia1|VIGÊNCIA INICIAL", string.Format(Messages.DataInvalida));
+ }
+ if (Vigencia2.HasValue && (DateTime.Compare(Vigencia2.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Vigencia2.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Vigencia2|VIGÊNCIA FINAL", string.Format(Messages.DataInvalida));
+ }
+ _ = Vigencia1;
+ if (Vigencia2.HasValue)
+ {
+ DateTime vigencia = Vigencia1;
+ DateTime? vigencia2 = Vigencia2;
+ if (vigencia > vigencia2)
+ {
+ list.AddValue("Vigencia2|VIGÊNCIA FINAL", "A DATA DE VIGÊNCIA FINAL NÃO PODE SER ANTERIOR A DATA DE VIGÊNCIA INCIAL");
+ }
+ }
+ if (Tipo == 0)
+ {
+ if (string.IsNullOrWhiteSpace(Apolice) && Emissao.HasValue)
+ {
+ list.AddValue("Apolice|APÓLICE", Messages.Obrigatorio);
+ }
+ if (!string.IsNullOrWhiteSpace(Apolice) && !Emissao.HasValue)
+ {
+ list.AddValue("Emissao|" + (_isEndosso ? "EMISSÃO DO ENDOSSO" : "EMISSÃO DA APÓLICE"), Messages.Obrigatorio);
+ }
+ if (!string.IsNullOrWhiteSpace(Apolice) && Apolice.Length > 50)
+ {
+ list.AddValue("Apolice|APÓLICE", string.Format(Messages.MaiorQueLimite, 50));
+ }
+ }
+ if (Tipo > 0)
+ {
+ if (string.IsNullOrWhiteSpace(PropostaEndosso))
+ {
+ list.AddValue("PropostaEndosso|PROPOSTA DE ENDOSSO", Messages.Obrigatorio);
+ }
+ else if (PropostaEndosso.Length > 30)
+ {
+ list.AddValue("PropostaEndosso|PROPOSTA DE ENDOSSO", string.Format(Messages.MaiorQueLimite, 30));
+ }
+ if (string.IsNullOrWhiteSpace(Endosso))
+ {
+ if (Emissao.HasValue)
+ {
+ list.AddValue("Endosso", Messages.Obrigatorio);
+ }
+ }
+ else
+ {
+ if (Endosso.Length > 30)
+ {
+ list.AddValue("Endosso", string.Format(Messages.MaiorQueLimite, 30));
+ }
+ if (!Emissao.HasValue && Tipo > 0)
+ {
+ list.AddValue("Emissao|" + (_isEndosso ? "EMISSÃO DO ENDOSSO" : "EMISSÃO DA APÓLICE"), Messages.Obrigatorio);
+ }
+ }
+ }
+ if (Tipo > 0 && !TipoEndosso.HasValue)
+ {
+ list.AddValue("TipoEndosso|TIPO DE ENDOSSO", Messages.Obrigatorio);
+ }
+ if (TipoRecebimento.GetValueOrDefault() == Gestor.Model.Common.TipoRecebimento.Parcela && !Vigencia2.HasValue)
+ {
+ list.AddValue("Vigencia2|VIGÊNCIA FINAL", Messages.Obrigatorio);
+ }
+ if (TipoRecebimento.GetValueOrDefault() == Gestor.Model.Common.TipoRecebimento.Parcela && Tipo == 0)
+ {
+ list.AddRange(ObrigarValores());
+ }
+ if (TipoRecebimento.GetValueOrDefault() == Gestor.Model.Common.TipoRecebimento.Fatura && Tipo == 0)
+ {
+ list.AddRange(ObrigarValores(valores: false));
+ }
+ if (TipoEndosso.GetValueOrDefault() == Gestor.Model.Common.TipoEndosso.Cancelamento && (PremioLiquido != 0m || Comissao != 0m) && NumeroParcelas == 0m)
+ {
+ list.AddValue("NumeroParcelas|NÚMERO DE PARCELAS", Messages.Obrigatorio);
+ }
+ if (TipoEndosso.GetValueOrDefault() == Gestor.Model.Common.TipoEndosso.Cancelamento && (PremioLiquido != 0.0m || NumeroParcelas != 0m))
+ {
+ if (Comissao == 0m)
+ {
+ list.AddValue("Comissao|COMISSÃO", Messages.Obrigatorio);
+ }
+ if (NumeroParcelas == 0m)
+ {
+ list.AddValue("NumeroParcelas|NÚMERO DE PARCELAS", Messages.Obrigatorio);
+ }
+ if (PremioLiquido == 0m)
+ {
+ list.AddValue("PremioLiquido|PRÊMIO LÍQUID", Messages.Obrigatorio);
+ }
+ }
+ long num = 10000000000L;
+ if (PremioTotal > (decimal)num)
+ {
+ list.AddValue("PremioTotal|PRÊMIO TOTAL", Messages.Invalido);
+ }
+ if (PremioLiquido > (decimal)num)
+ {
+ list.AddValue("PremioLiquido|PRÊMIO LÍQUIDO", Messages.Invalido);
+ }
+ if (NumeroParcelas > 1000m)
+ {
+ list.AddValue("NumeroParcelas|NÚMERO DE PARCELAS", "NUMERO DE PARCELAS ESTA NO FORMATO INCORRETO");
+ }
+ if (Tipo > 0)
+ {
+ switch (TipoEndosso)
+ {
+ default:
+ if (PremioTotal == 0m && Comissao == 0m)
+ {
+ return list;
+ }
+ list.AddRange(ObrigarValores());
+ break;
+ case Gestor.Model.Common.TipoEndosso.SemMovimento:
+ case Gestor.Model.Common.TipoEndosso.Cancelamento:
+ return list;
+ case Gestor.Model.Common.TipoEndosso.ComMovimento:
+ list.AddRange(ObrigarValores());
+ break;
+ }
+ }
+ return list;
+ }
+
+ private List<KeyValuePair<string, string>> ObrigarValores(bool valores = true)
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (valores)
+ {
+ if (Comissao <= 0m)
+ {
+ list.AddValue("Comissao|COMISSÃO", Messages.Obrigatorio);
+ }
+ if (PremioLiquido == 0m)
+ {
+ list.AddValue("PremioLiquido|PRÊMIO LÍQUIDO", Messages.Obrigatorio);
+ }
+ if (PremioTotal == 0m)
+ {
+ list.AddValue("PremioTotal|PRÊMIO TOTAL", Messages.Obrigatorio);
+ }
+ if (NumeroParcelas <= 0m)
+ {
+ list.AddValue("NumeroParcelas|NÚMERO DE PARCELAS", Messages.Obrigatorio);
+ }
+ if (!_vencimentoParcela)
+ {
+ if (NumeroParcelas > 0m && NumeroParcelas < 998m)
+ {
+ DateTime vigencia = Vigencia1;
+ DateTime dateTime = ((NumeroParcelas == 1m || vigencia == DateTime.MinValue) ? vigencia : vigencia.AddMonths(int.Parse(NumeroParcelas.ToString(new CultureInfo("pt-BR"))) - 1));
+ DateTime? vigencia2 = Vigencia2;
+ if (vigencia2.HasValue && dateTime > vigencia2.GetValueOrDefault() && (Controle.Ramo == null || Controle.Ramo.Id != 23))
+ {
+ list.AddValue("NumeroParcelas|NÚMERO DE PARCELAS", Messages.VencimentoParcela);
+ }
+ }
+ else if (NumeroParcelas > 1000m)
+ {
+ list.AddValue("NumeroParcelas|NÚMERO DE PARCELAS", "NUMERO DE PARCELAS ESTA NO FORMATO INCORRETO");
+ }
+ }
+ }
+ if (!valores)
+ {
+ if (PremioLiquido != 0m)
+ {
+ list.AddValue("PremioLiquido|PRÊMIO LÍQUIDO", Messages.Invalido);
+ }
+ if (PremioAdicional != 0m)
+ {
+ list.AddValue("PremioAdicional|PRÊMIO ADICIONAL", Messages.Invalido);
+ }
+ if (Iof != 0m)
+ {
+ list.AddValue("Iof", Messages.Invalido);
+ }
+ if (Diferenca != 0m)
+ {
+ list.AddValue("Diferenca|DIFERÊNÇA", Messages.Invalido);
+ }
+ if (PremioTotal != 0m)
+ {
+ list.AddValue("PremioTotal|PRÊMIO TOTAL", Messages.Invalido);
+ }
+ if (NumeroParcelas != 0m)
+ {
+ list.AddValue("NumeroParcelas|NÚMERO DE PARCELAS", Messages.Invalido);
+ }
+ }
+ return list;
+ }
+
+ public List<TupleList> Log(bool restricaoComissao)
+ {
+ List<Tuple<string, string, string>> obj = new List<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("SEGURADORA", string.IsNullOrWhiteSpace(Controle?.Seguradora?.Nome) ? "" : Controle.Seguradora.Nome.ToUpper(), ""),
+ new Tuple<string, string, string>("RAMO", string.IsNullOrWhiteSpace(Controle?.Ramo?.Nome) ? "" : Controle.Ramo.Nome.ToUpper(), ""),
+ new Tuple<string, string, string>("PRODUTO", string.IsNullOrWhiteSpace(Controle?.Produto?.Nome) ? "" : Controle.Produto.Nome.ToUpper(), "")
+ };
+ object item;
+ if (NegocioCorretora.HasValue)
+ {
+ NegocioCorretora? negocioCorretora = NegocioCorretora;
+ item = (negocioCorretora.HasValue ? negocioCorretora.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item = "";
+ }
+ obj.Add(new Tuple<string, string, string>("NEGÓCIO CORRETORA", (string)item, ""));
+ obj.Add(new Tuple<string, string, string>("STATUS DO SEGURO", Situacao.GetDescription(), ""));
+ object item2;
+ if (TipoRecebimento.HasValue)
+ {
+ TipoRecebimento? tipoRecebimento = TipoRecebimento;
+ item2 = (tipoRecebimento.HasValue ? tipoRecebimento.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item2 = "";
+ }
+ obj.Add(new Tuple<string, string, string>("TIPO DE RECEBIMENTO", (string)item2, ""));
+ object item3;
+ if (TipoEndosso.HasValue)
+ {
+ TipoEndosso? tipoEndosso = TipoEndosso;
+ item3 = (tipoEndosso.HasValue ? tipoEndosso.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item3 = "";
+ }
+ obj.Add(new Tuple<string, string, string>("TIPO ENDOSSO", (string)item3, ""));
+ obj.Add(new Tuple<string, string, string>("PROPOSTA", string.IsNullOrWhiteSpace(Proposta) ? "" : Proposta.ToUpper(), ""));
+ obj.Add(new Tuple<string, string, string>("PROPOSTA ENDOSSO", string.IsNullOrWhiteSpace(PropostaEndosso) ? "" : PropostaEndosso.ToUpper(), ""));
+ obj.Add(new Tuple<string, string, string>("APÓLICE", string.IsNullOrWhiteSpace(Apolice) ? "" : Apolice.ToUpper(), ""));
+ obj.Add(new Tuple<string, string, string>("ENDOSSO", string.IsNullOrWhiteSpace(Endosso) ? "" : Endosso.ToUpper(), ""));
+ obj.Add(new Tuple<string, string, string>("VIGÊNCIA INICIAL", Vigencia1.ToShortDateString(), ""));
+ obj.Add(new Tuple<string, string, string>("VIGÊNCIA FINAL", (!Vigencia2.HasValue) ? "" : Vigencia2?.ToShortDateString(), ""));
+ obj.Add(new Tuple<string, string, string>("TRANSMISSÃO DA PROPOSTA", (!Remessa.HasValue) ? "" : Remessa?.ToShortDateString(), ""));
+ obj.Add(new Tuple<string, string, string>("EMISSÃO DA APÓLICE", (!Emissao.HasValue) ? "" : Emissao?.ToShortDateString(), ""));
+ obj.Add(new Tuple<string, string, string>("SEGURADORA ANTERIOR", string.IsNullOrWhiteSpace(Controle?.SeguradoraAnterior?.Nome) ? "" : Controle.SeguradoraAnterior.Nome.ToUpper(), ""));
+ obj.Add(new Tuple<string, string, string>("APÓLICE ANTERIOR", string.IsNullOrWhiteSpace(ApoliceAnterior) ? "" : ApoliceAnterior.ToUpper(), ""));
+ object item4;
+ if (FormaPagamento.HasValue)
+ {
+ FormaPagamento? formaPagamento = FormaPagamento;
+ item4 = (formaPagamento.HasValue ? formaPagamento.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item4 = "";
+ }
+ obj.Add(new Tuple<string, string, string>("FORMA DE PAGAMENTO", (string)item4, ""));
+ obj.Add(new Tuple<string, string, string>("PROPOSTA ASSINADA", PropostaAssinada ? "SIM" : "NÃO", ""));
+ obj.Add(new Tuple<string, string, string>("APÓLICE CONFERIDA", ApoliceConferida ? "SIM" : "NÃO", ""));
+ obj.Add(new Tuple<string, string, string>("ADICIONAL DE COMISSÃO", AdicionalComiss ? "SIM" : "NÃO", ""));
+ List<Tuple<string, string, string>> list = obj;
+ if (!restricaoComissao)
+ {
+ list.Add(new Tuple<string, string, string>("COMISSÃO", (Comissao / 100m).ToString("P", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ }
+ List<Tuple<string, string, string>> obj2 = new List<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("COMISSÃO", (Comissao / 100m).ToString("P", new CultureInfo("pt-BR", useUserOverride: false)), ""),
+ new Tuple<string, string, string>("PRÊMIO LÍQUIDO", PremioLiquido.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""),
+ new Tuple<string, string, string>("PRÊMIO ADICIONAL", PremioAdicional.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""),
+ new Tuple<string, string, string>("I.O.F.", Iof.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""),
+ new Tuple<string, string, string>("DIFERENÇA", Diferenca.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""),
+ new Tuple<string, string, string>("PRÊMIO TOTAL", PremioTotal.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""),
+ new Tuple<string, string, string>("NÚMERO DE PARCELAS", decimal.ToInt32(NumeroParcelas).ToString(), ""),
+ new Tuple<string, string, string>("BANCO", (Banco == null) ? "" : Banco.Nome.ToUpper(), ""),
+ new Tuple<string, string, string>("AGÊNCIA", string.IsNullOrWhiteSpace(Agencia) ? "" : Agencia.ToUpper(), ""),
+ new Tuple<string, string, string>("CONTA", string.IsNullOrWhiteSpace(Conta) ? "" : Conta.ToUpper(), ""),
+ new Tuple<string, string, string>("CARTÃO DE CRÉDITO", string.IsNullOrWhiteSpace(NumeroCartao) ? "" : NumeroCartao.ToUpper(), "")
+ };
+ object item5;
+ if (Bandeira.HasValue)
+ {
+ BandeiraCartao? bandeira = Bandeira;
+ item5 = (bandeira.HasValue ? bandeira.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item5 = "";
+ }
+ obj2.Add(new Tuple<string, string, string>("BANDEIRA", (string)item5, ""));
+ obj2.Add(new Tuple<string, string, string>("PROPONENTE", string.IsNullOrWhiteSpace(NomeProponente) ? "" : NomeProponente.ToUpper(), ""));
+ obj2.Add(new Tuple<string, string, string>("VENCIMENTO DO CARTÃO", string.IsNullOrWhiteSpace(VencimentoCartao?.Replace("/", "")) ? "" : VencimentoCartao.ToUpper(), ""));
+ obj2.Add(new Tuple<string, string, string>("PASTA", string.IsNullOrWhiteSpace(Pasta) ? "" : Pasta.ToUpper(), ""));
+ obj2.Add(new Tuple<string, string, string>("ESTIPULANTE 1", (Estipulante1 == null) ? "" : Estipulante1.Nome.ToUpper(), ""));
+ obj2.Add(new Tuple<string, string, string>("ESTIPULANTE 2", (Estipulante2 == null) ? "" : Estipulante2.Nome.ToUpper(), ""));
+ obj2.Add(new Tuple<string, string, string>("ESTIPULANTE 3", (Estipulante3 == null) ? "" : Estipulante3.Nome.ToUpper(), ""));
+ obj2.Add(new Tuple<string, string, string>("ESTIPULANTE 4", (Estipulante4 == null) ? "" : Estipulante4.Nome.ToUpper(), ""));
+ obj2.Add(new Tuple<string, string, string>("ESTIPULANTE 5", (Estipulante5 == null) ? "" : Estipulante5.Nome.ToUpper(), ""));
+ obj2.Add(new Tuple<string, string, string>("STATUS", (Status == null) ? "" : Status.Nome.ToUpper(), ""));
+ obj2.Add(new Tuple<string, string, string>("DATA DE CONTROLE", (!DataControle.HasValue) ? "" : DataControle?.ToShortDateString(), ""));
+ obj2.Add(new Tuple<string, string, string>("ANOTAÇÕES", string.IsNullOrWhiteSpace(Observacao) ? "" : Observacao.ToUpper(), ""));
+ list.AddRange(obj2);
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>(list)
+ }
+ };
+ }
+
+ public List<KeyValuePair<string, string>> ValidateEndossar()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Proposta))
+ {
+ list.AddValue("Proposta", Messages.Obrigatorio);
+ }
+ if (Emissao.HasValue && (DateTime.Compare(Emissao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Emissao.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Emissao|EMISSÃO DA APÓLICE", string.Format(Messages.DataInvalida));
+ }
+ if (Remessa.HasValue && (DateTime.Compare(Remessa.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Remessa.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Remessa|TRANSMISSÃO DA PROPOSTA", string.Format(Messages.DataInvalida));
+ }
+ if (string.IsNullOrWhiteSpace(Apolice) && Emissao.HasValue)
+ {
+ list.AddValue("Apolice|APÓLICE", Messages.Obrigatorio);
+ }
+ if (!string.IsNullOrWhiteSpace(Apolice) && !Emissao.HasValue)
+ {
+ list.AddValue("Emissao|" + (_isEndosso ? "EMISSÃO DO ENDOSSO" : "EMISSÃO DA APÓLICE"), Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(Apolice) && !Emissao.HasValue)
+ {
+ list.AddValue("Apolice|EMISSÃO DA APÓLICE", "NÃO É POSSÍVEL ENDOSSAR UM DOCUMENTO SEM EMISSÃO DE APÓLICE");
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Estipulante.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Estipulante.cs
new file mode 100644
index 0000000..50e418a
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Estipulante.cs
@@ -0,0 +1,282 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Runtime.CompilerServices;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Estipulante : EnderecoBase, IDomain, INotifyPropertyChanged
+{
+ private bool _selecionado;
+
+ private string _nome;
+
+ private string _documento;
+
+ private string _primeiroPrefixo;
+
+ private string _primeiroTelefone;
+
+ private string _segundoPrefixo;
+
+ private string _segundoTelefone;
+
+ private string _email;
+
+ private string _observacao;
+
+ public bool Selecionado
+ {
+ get
+ {
+ return _selecionado;
+ }
+ set
+ {
+ if (value != _selecionado)
+ {
+ _selecionado = value;
+ OnPropertyChanged("Selecionado");
+ }
+ }
+ }
+
+ public long IdEmpresa { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ [Log(true)]
+ public string Documento
+ {
+ get
+ {
+ return _documento?.ToUpper().Trim();
+ }
+ set
+ {
+ _documento = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("TIPO TELEFONE")]
+ public TipoTelefone? PrimeiroTipo { get; set; }
+
+ [Log(true)]
+ [Description("PREFIXO")]
+ public string PrimeiroPrefixo
+ {
+ get
+ {
+ return _primeiroPrefixo?.ToUpper().Trim();
+ }
+ set
+ {
+ _primeiroPrefixo = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("TELEFONE")]
+ public string PrimeiroTelefone
+ {
+ get
+ {
+ return _primeiroTelefone?.ToUpper().Trim();
+ }
+ set
+ {
+ _primeiroTelefone = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("TIPO TELEFONE")]
+ public TipoTelefone? SegundoTipo { get; set; }
+
+ [Log(true)]
+ [Description("PREFIXO")]
+ public string SegundoPrefixo
+ {
+ get
+ {
+ return _segundoPrefixo?.ToUpper().Trim();
+ }
+ set
+ {
+ _segundoPrefixo = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("TELEFONE")]
+ public string SegundoTelefone
+ {
+ get
+ {
+ return _segundoTelefone?.ToUpper().Trim();
+ }
+ set
+ {
+ _segundoTelefone = value;
+ }
+ }
+
+ [Log(true)]
+ public string Email
+ {
+ get
+ {
+ return _email?.ToLower().Trim();
+ }
+ set
+ {
+ _email = value;
+ }
+ }
+
+ [Log(true)]
+ public string Observacao
+ {
+ get
+ {
+ return _observacao?.ToUpper();
+ }
+ set
+ {
+ _observacao = value;
+ }
+ }
+
+ [Log(true)]
+ public bool Ativo { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrEmpty(Nome))
+ {
+ list.AddValue("Nome", Messages.Obrigatorio);
+ }
+ else if (Nome.Length > 100)
+ {
+ list.AddValue("Nome", string.Format(Messages.MaiorQueLimite, 100));
+ }
+ if (!string.IsNullOrEmpty(Documento) && !Documento.ValidacaoDocumento())
+ {
+ list.AddValue("Documento", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(PrimeiroPrefixo) && !PrimeiroPrefixo.ValidacaoPrefixo())
+ {
+ list.AddValue("PrimeiroPrefixo|PRIMEIRO DDD", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(PrimeiroTelefone) && !PrimeiroTelefone.ValidacaoTelefone())
+ {
+ list.AddValue("PrimeiroTelefone|PRIMEIRO TELEFONE", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(SegundoPrefixo) && !SegundoPrefixo.ValidacaoPrefixo())
+ {
+ list.AddValue("SegundoPrefixo|SEGUNDO DDD", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(SegundoTelefone) && !SegundoTelefone.ValidacaoTelefone())
+ {
+ list.AddValue("SegundoTelefone|SEGUNDO TELEFONE", Messages.Invalido);
+ }
+ if (!string.IsNullOrEmpty(Email) && Email.Length > 100)
+ {
+ list.AddValue("Email|E-MAIL", string.Format(Messages.MaiorQueLimite, 100));
+ }
+ if (!string.IsNullOrEmpty(Email) && !Email.ValidacaoEmail())
+ {
+ list.AddValue("Email|E-MAIL", Messages.Invalido);
+ }
+ if (!string.IsNullOrEmpty(base.Cep) && !base.Cep.ValidacaoCep())
+ {
+ list.AddValue("Cep|CEP", Messages.Invalido);
+ }
+ if (!string.IsNullOrEmpty(base.Estado) && !base.Estado.ValidacaoEstado())
+ {
+ list.AddValue("Estado|ESTADO", Messages.Invalido);
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ List<TupleList> list = new List<TupleList>();
+ TupleList tupleList = new TupleList();
+ ObservableCollection<Tuple<string, string, string>> obj = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("NOME", string.IsNullOrWhiteSpace(Nome) ? "" : Nome, ""),
+ new Tuple<string, string, string>("CPF", string.IsNullOrWhiteSpace(Documento) ? "" : Documento, ""),
+ new Tuple<string, string, string>("ATIVO", Ativo ? "SIM" : "NÃO", "")
+ };
+ object item;
+ if (PrimeiroTipo.HasValue)
+ {
+ TipoTelefone? primeiroTipo = PrimeiroTipo;
+ item = (primeiroTipo.HasValue ? primeiroTipo.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item = "";
+ }
+ obj.Add(new Tuple<string, string, string>("PRIMEIRO TIPO", (string)item, ""));
+ obj.Add(new Tuple<string, string, string>("PRIMEIRO PREFIXO", string.IsNullOrWhiteSpace(PrimeiroPrefixo) ? "" : PrimeiroPrefixo, ""));
+ obj.Add(new Tuple<string, string, string>("PRIMEIRO TELEFONE", string.IsNullOrWhiteSpace(PrimeiroTelefone) ? "" : PrimeiroTelefone, ""));
+ object item2;
+ if (SegundoTipo.HasValue)
+ {
+ TipoTelefone? primeiroTipo = SegundoTipo;
+ item2 = (primeiroTipo.HasValue ? primeiroTipo.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item2 = "";
+ }
+ obj.Add(new Tuple<string, string, string>("SEGUNDO TIPO", (string)item2, ""));
+ obj.Add(new Tuple<string, string, string>("SEGUNDO PREFIXO", string.IsNullOrWhiteSpace(SegundoPrefixo) ? "" : SegundoPrefixo, ""));
+ obj.Add(new Tuple<string, string, string>("SEGUNDO TELEFONE", string.IsNullOrWhiteSpace(SegundoTelefone) ? "" : SegundoTelefone, ""));
+ obj.Add(new Tuple<string, string, string>("E-MAIL", string.IsNullOrWhiteSpace(Email) ? "" : Email, ""));
+ obj.Add(new Tuple<string, string, string>("CEP", string.IsNullOrWhiteSpace(base.Cep) ? "" : base.Cep, ""));
+ obj.Add(new Tuple<string, string, string>("ENDEREÇO", string.IsNullOrWhiteSpace(base.Endereco) ? "" : base.Endereco, ""));
+ obj.Add(new Tuple<string, string, string>("NÚMERO", string.IsNullOrWhiteSpace(base.Numero) ? "" : base.Numero, ""));
+ obj.Add(new Tuple<string, string, string>("COMPLEMENTO", string.IsNullOrWhiteSpace(base.Complemento) ? "" : base.Complemento, ""));
+ obj.Add(new Tuple<string, string, string>("BAIRRO", string.IsNullOrWhiteSpace(base.Bairro) ? "" : base.Bairro, ""));
+ obj.Add(new Tuple<string, string, string>("CIDADE", string.IsNullOrWhiteSpace(base.Cidade) ? "" : base.Cidade, ""));
+ obj.Add(new Tuple<string, string, string>("ESTADO", string.IsNullOrWhiteSpace(base.Estado) ? "" : base.Estado, ""));
+ tupleList.Tuples = obj;
+ list.Add(tupleList);
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Expedicao.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Expedicao.cs
new file mode 100644
index 0000000..c91e2de
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Expedicao.cs
@@ -0,0 +1,47 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Expedicao : DomainBase
+{
+ public Documento Apolice { get; set; }
+
+ public string Documento { get; set; }
+
+ public string Destino { get; set; }
+
+ public DateTime? DataEnvio { get; set; }
+
+ public DateTime? DataRecebimento { get; set; }
+
+ public string Responsavel { get; set; }
+
+ public long? UsuarioCriacao { get; set; }
+
+ public DateTime? DataCriacao { get; set; }
+
+ public long? UsuarioAlteracao { get; set; }
+
+ public DateTime? DataAlteracao { get; set; }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("DOCUMENTO", Documento, ""),
+ new Tuple<string, string, string>("DESTINO", Destino, ""),
+ new Tuple<string, string, string>("DATA ENVIO", DataEnvio.ToString(), ""),
+ new Tuple<string, string, string>("DATA RECEBIMENTO", DataRecebimento.ToString(), ""),
+ new Tuple<string, string, string>("RESPONSÁVEL", Responsavel, "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Extrato.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Extrato.cs
new file mode 100644
index 0000000..0ddb505
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Extrato.cs
@@ -0,0 +1,97 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Extrato : DomainBase, IDomain
+{
+ private string _numero;
+
+ private string _historico;
+
+ private string _observacao;
+
+ public long IdEmpresa { get; set; }
+
+ public Seguradora Seguradora { get; set; }
+
+ public StatusExtrato Status { get; set; }
+
+ public bool Selecionado { get; set; }
+
+ public string Numero
+ {
+ get
+ {
+ return _numero?.ToUpper();
+ }
+ set
+ {
+ _numero = value;
+ }
+ }
+
+ public string Historico
+ {
+ get
+ {
+ return _historico?.ToUpper();
+ }
+ set
+ {
+ _historico = value;
+ }
+ }
+
+ public DateTime? Data { get; set; }
+
+ public DateTime? DataCredito { get; set; }
+
+ public decimal? Bruto { get; set; }
+
+ public decimal? Liquido { get; set; }
+
+ public decimal? Ir { get; set; }
+
+ public decimal? Iss { get; set; }
+
+ public decimal? Outro { get; set; }
+
+ public bool Completo { get; set; }
+
+ public string Observacao
+ {
+ get
+ {
+ return _observacao?.ToUpper();
+ }
+ set
+ {
+ _observacao = value;
+ }
+ }
+
+ public virtual long IdUsuario { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (!string.IsNullOrWhiteSpace(Numero) && Numero.Length > 50)
+ {
+ list.AddValue("Numero", string.Format(Messages.MaiorQueLimite, 50));
+ }
+ if (Data.HasValue && (DateTime.Compare(Data.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Data.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Data", string.Format(Messages.DataInvalida));
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Fabricante.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Fabricante.cs
new file mode 100644
index 0000000..5058bfe
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Fabricante.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Fabricante : IDomain
+{
+ private string _descricao;
+
+ public int Id { get; set; }
+
+ public string Descricao
+ {
+ get
+ {
+ return _descricao?.ToUpper();
+ }
+ set
+ {
+ _descricao = value;
+ }
+ }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (!string.IsNullOrWhiteSpace(Descricao) && Descricao.Length > 150)
+ {
+ list.AddValue("Descricao", string.Format(Messages.MaiorQueLimite, 150));
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Granizo.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Granizo.cs
new file mode 100644
index 0000000..fa93869
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Granizo.cs
@@ -0,0 +1,162 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Globalization;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Granizo : EnderecoBase, IDomain
+{
+ private string _cultura;
+
+ private string _sitio;
+
+ private string _observacao;
+
+ public Item Item { get; set; }
+
+ public string Cultura
+ {
+ get
+ {
+ return _cultura?.ToUpper();
+ }
+ set
+ {
+ _cultura = value;
+ }
+ }
+
+ public string Sitio
+ {
+ get
+ {
+ return _sitio?.ToUpper();
+ }
+ set
+ {
+ _sitio = value;
+ }
+ }
+
+ public decimal? SubsidioEstadual { get; set; }
+
+ public decimal? SubsidioFederal { get; set; }
+
+ public string Area { get; set; }
+
+ public string Observacao
+ {
+ get
+ {
+ return _observacao?.ToUpper();
+ }
+ set
+ {
+ _observacao = value;
+ }
+ }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(base.Cep))
+ {
+ list.AddValue("Cep", Messages.Obrigatorio);
+ }
+ else if (!base.Cep.ValidacaoCep())
+ {
+ list.AddValue("Cep", Messages.Invalido);
+ }
+ if (string.IsNullOrWhiteSpace(Cultura))
+ {
+ list.AddValue("Cultura", Messages.Obrigatorio);
+ }
+ if (!string.IsNullOrWhiteSpace(Cultura) && Cultura.Length > 60)
+ {
+ list.AddValue("Cultura", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (string.IsNullOrWhiteSpace(Sitio))
+ {
+ list.AddValue("Sitio", Messages.Obrigatorio);
+ }
+ if (!string.IsNullOrWhiteSpace(Sitio) && Sitio.Length > 100)
+ {
+ list.AddValue("Sitio", string.Format(Messages.MaiorQueLimite, 100));
+ }
+ if (string.IsNullOrWhiteSpace(base.Endereco))
+ {
+ list.AddValue("Endereco", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(base.Numero))
+ {
+ list.AddValue("Numero", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(base.Bairro))
+ {
+ list.AddValue("Bairro", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(base.Cidade))
+ {
+ list.AddValue("Cidade", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(base.Estado))
+ {
+ list.AddValue("Estado", Messages.Obrigatorio);
+ }
+ else if (!base.Estado.ValidacaoEstado())
+ {
+ list.AddValue("Estado", Messages.Invalido);
+ }
+ return list;
+ }
+
+ public static List<TupleList> Log(Item item)
+ {
+ List<TupleList> list = new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("CEP", string.IsNullOrWhiteSpace(item.Granizo.Cep) ? "" : item.Granizo.Cep, ""),
+ new Tuple<string, string, string>("ENDEREÇO", string.IsNullOrWhiteSpace(item.Granizo.Endereco) ? "" : item.Granizo.Endereco.ToUpper(), ""),
+ new Tuple<string, string, string>("NÚMERO", string.IsNullOrWhiteSpace(item.Granizo.Numero) ? "" : item.Granizo.Numero, ""),
+ new Tuple<string, string, string>("COMPLEMENTO", string.IsNullOrWhiteSpace(item.Granizo.Complemento) ? "" : item.Granizo.Complemento.ToUpper(), ""),
+ new Tuple<string, string, string>("BAIRRO", string.IsNullOrWhiteSpace(item.Granizo.Bairro) ? "" : item.Granizo.Bairro.ToUpper(), ""),
+ new Tuple<string, string, string>("CIDADE", string.IsNullOrWhiteSpace(item.Granizo.Cidade) ? "" : item.Granizo.Cidade.ToUpper(), ""),
+ new Tuple<string, string, string>("ESTADO", string.IsNullOrWhiteSpace(item.Granizo.Estado) ? "" : item.Granizo.Estado.ToUpper(), ""),
+ new Tuple<string, string, string>("CULTURA", string.IsNullOrWhiteSpace(item.Granizo.Cultura) ? "" : item.Granizo.Cultura.ToUpper(), ""),
+ new Tuple<string, string, string>("SÍTIO", string.IsNullOrWhiteSpace(item.Granizo.Sitio) ? "" : item.Granizo.Sitio.ToUpper(), ""),
+ new Tuple<string, string, string>("SUBSÍDIO FEDERAL", (!item.Granizo.SubsidioFederal.HasValue) ? "" : item.Granizo.SubsidioFederal?.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""),
+ new Tuple<string, string, string>("SUBSÍDIO ESTADUAL", (!item.Granizo.SubsidioEstadual.HasValue) ? "" : item.Granizo.SubsidioEstadual?.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""),
+ new Tuple<string, string, string>("OBSERVAÇÕES", string.IsNullOrWhiteSpace(item.Granizo.Observacao) ? "" : item.Granizo.Observacao.ToUpper(), "")
+ }
+ }
+ };
+ ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("COBERTURAS$", "", "")
+ };
+ foreach (Cobertura cobertura in item.Coberturas)
+ {
+ observableCollection.Add(new Tuple<string, string, string>($" COBERTURA {item.Coberturas.IndexOf(cobertura) + 1}$", "", ""));
+ observableCollection.Add(new Tuple<string, string, string>(" OBSERVAÇÃO", string.IsNullOrWhiteSpace(cobertura.Observacao) ? "" : cobertura.Observacao.ToUpper(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" PRÊMIO", cobertura.Premio.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" FRANQUIA", cobertura.Franquia.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" L.M.I.", cobertura.Lmi.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ }
+ list.Add(new TupleList
+ {
+ Tuples = observableCollection
+ });
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Item.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Item.cs
new file mode 100644
index 0000000..057fd46
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Item.cs
@@ -0,0 +1,340 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Runtime.CompilerServices;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Item : DomainBase, IDomain, INotifyPropertyChanged
+{
+ private bool _selecionado;
+
+ private string _descricao;
+
+ private string _status;
+
+ private string _statusInclusao;
+
+ private string _observacao;
+
+ private string _valorCredito;
+
+ private bool _config = true;
+
+ private bool _fabricanteBranco;
+
+ public bool Selecionado
+ {
+ get
+ {
+ return _selecionado;
+ }
+ set
+ {
+ if (value != _selecionado)
+ {
+ _selecionado = value;
+ OnPropertyChanged("Selecionado");
+ }
+ }
+ }
+
+ public Documento Documento { get; set; }
+
+ public long? Substituido { get; set; }
+
+ public long? Substituicao { get; set; }
+
+ public long? Endosso { get; set; }
+
+ public int? Ordem { get; set; }
+
+ public long? IdDocumentoCancelado { get; set; }
+
+ public string Descricao
+ {
+ get
+ {
+ return _descricao?.ToUpper();
+ }
+ set
+ {
+ _descricao = value;
+ }
+ }
+
+ public bool Cancelado { get; set; }
+
+ public bool Sinistrado { get; set; }
+
+ public TipoEndosso? TipoEndosso { get; set; }
+
+ public string Status
+ {
+ get
+ {
+ return _status?.ToUpper();
+ }
+ set
+ {
+ _status = value;
+ }
+ }
+
+ public string StatusInclusao
+ {
+ get
+ {
+ return _statusInclusao?.ToUpper();
+ }
+ set
+ {
+ _statusInclusao = value;
+ }
+ }
+
+ public string Observacao
+ {
+ get
+ {
+ return _observacao?.ToUpper();
+ }
+ set
+ {
+ _observacao = value;
+ }
+ }
+
+ public IList<ControleSinistro> Sinistros { get; set; }
+
+ public IList<Cobertura> Coberturas { get; set; }
+
+ public Auto Auto { get; set; }
+
+ public Patrimonial Patrimonial { get; set; }
+
+ public Aeronautico Aeronautico { get; set; }
+
+ public RiscosDiversos RiscosDiversos { get; set; }
+
+ public Granizo Granizo { get; set; }
+
+ public Vida Vida { get; set; }
+
+ public Sinistro Sinistro { get; set; }
+
+ public Consorcio Consorcio { get; set; }
+
+ public IList<TitularesVida> Titulares { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+
+ public List<KeyValuePair<string, string>> Validate(bool config, bool fabricanteBranco = false)
+ {
+ _config = config;
+ _fabricanteBranco = fabricanteBranco;
+ return Validate();
+ }
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (!Ordem.HasValue || Ordem == 0)
+ {
+ list.AddValue("Ordem", Messages.Invalido);
+ }
+ if (string.IsNullOrWhiteSpace(Descricao))
+ {
+ list.AddValue("Descricao", Messages.Obrigatorio);
+ }
+ else if (Descricao.Length > 250)
+ {
+ list.AddValue("Descricao", string.Format(Messages.MaiorQueLimite, 250));
+ }
+ if (Documento == null)
+ {
+ return list;
+ }
+ long id = Documento.Controle.Ramo.Id;
+ if (id <= 38)
+ {
+ long num = id - 1;
+ if ((ulong)num <= 19uL)
+ {
+ switch (num)
+ {
+ case 4L:
+ goto IL_0184;
+ case 0L:
+ case 1L:
+ case 2L:
+ case 14L:
+ case 17L:
+ goto IL_01c5;
+ case 12L:
+ goto IL_022f;
+ case 19L:
+ goto IL_0264;
+ case 5L:
+ case 6L:
+ case 8L:
+ case 9L:
+ goto IL_0299;
+ case 3L:
+ case 7L:
+ case 10L:
+ case 11L:
+ case 13L:
+ case 15L:
+ case 16L:
+ case 18L:
+ goto IL_03f1;
+ }
+ }
+ long num2 = id - 30;
+ if ((ulong)num2 <= 8uL)
+ {
+ switch (num2)
+ {
+ case 7L:
+ break;
+ case 0L:
+ goto IL_01c5;
+ case 8L:
+ goto IL_01fa;
+ case 1L:
+ goto IL_033d;
+ case 6L:
+ goto IL_03c2;
+ default:
+ goto IL_03f1;
+ }
+ goto IL_0184;
+ }
+ }
+ else if (id == 47 || id == 53 || id == 66)
+ {
+ goto IL_0299;
+ }
+ goto IL_03f1;
+ IL_0264:
+ if (Granizo == null)
+ {
+ list.AddValue("Granizo", Messages.Obrigatorio);
+ }
+ else
+ {
+ list.AddRange(Granizo.Validate());
+ }
+ goto IL_041e;
+ IL_01fa:
+ if (Patrimonial == null)
+ {
+ list.AddValue("Patrimonial", Messages.Obrigatorio);
+ }
+ else
+ {
+ list.AddRange(Patrimonial.ValidateGarantia());
+ }
+ goto IL_041e;
+ IL_01c5:
+ if (Patrimonial == null)
+ {
+ list.AddValue("Patrimonial", Messages.Obrigatorio);
+ }
+ else
+ {
+ list.AddRange(Patrimonial.Validate());
+ }
+ goto IL_041e;
+ IL_03f1:
+ if (RiscosDiversos == null)
+ {
+ list.AddValue("RiscosDiversos", Messages.Obrigatorio);
+ }
+ else
+ {
+ list.AddRange(RiscosDiversos.Validate());
+ }
+ goto IL_041e;
+ IL_033d:
+ if (RiscosDiversos == null)
+ {
+ list.AddValue("RiscosDiversos", Messages.Obrigatorio);
+ }
+ else
+ {
+ list.AddRange(RiscosDiversos.Validate());
+ }
+ if (Titulares != null && Titulares.Count > 0)
+ {
+ foreach (TitularesVida titulare in Titulares)
+ {
+ list.AddRange(titulare.Validate());
+ }
+ }
+ goto IL_041e;
+ IL_03c2:
+ if (Consorcio == null)
+ {
+ list.AddValue("Consorcio", Messages.Obrigatorio);
+ }
+ else
+ {
+ list.AddRange(Consorcio.Validate());
+ }
+ goto IL_041e;
+ IL_0299:
+ if (Vida == null)
+ {
+ list.AddValue("Vida", Messages.Obrigatorio);
+ }
+ else
+ {
+ list.AddRange(Vida.Validate());
+ }
+ if (Titulares != null && Titulares.Count > 0 && Documento.Controle.Ramo.Id != 6)
+ {
+ foreach (TitularesVida titulare2 in Titulares)
+ {
+ list.AddRange(titulare2.Validate());
+ }
+ }
+ goto IL_041e;
+ IL_041e:
+ return list;
+ IL_022f:
+ if (Aeronautico == null)
+ {
+ list.AddValue("Aeronautico", Messages.Obrigatorio);
+ }
+ else
+ {
+ list.AddRange(Aeronautico.Validate());
+ }
+ goto IL_041e;
+ IL_0184:
+ if (Auto == null)
+ {
+ list.AddValue("Auto", Messages.Obrigatorio);
+ }
+ else
+ {
+ list.AddRange(Auto.Validate(_config, _fabricanteBranco));
+ }
+ goto IL_041e;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/MaisContato.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/MaisContato.cs
new file mode 100644
index 0000000..8860f2b
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/MaisContato.cs
@@ -0,0 +1,245 @@
+using System;
+using System.Collections.Generic;
+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;
+
+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;
+
+ public Cliente Cliente { get; set; }
+
+ public TipoTelefone? Tipo { get; set; }
+
+ [Log(true)]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ [Log(true)]
+ public DateTime? Nascimento { get; set; }
+
+ [Log(true)]
+ public string Documento
+ {
+ get
+ {
+ return _documento?.ToUpper().Trim();
+ }
+ set
+ {
+ _documento = value;
+ }
+ }
+
+ [Log(true)]
+ public string Identidade
+ {
+ get
+ {
+ return _identidade?.ToUpper().Trim();
+ }
+ set
+ {
+ _identidade = value;
+ }
+ }
+
+ [Log(true)]
+ public DateTime? Expedicao { get; set; }
+
+ [Log(true)]
+ public Parentesco? Parentesco { get; set; }
+
+ [Log(true)]
+ public string Prefixo
+ {
+ get
+ {
+ return _prefixo?.ToUpper().Trim();
+ }
+ set
+ {
+ _prefixo = value;
+ }
+ }
+
+ [Log(true)]
+ public string Telefone
+ {
+ get
+ {
+ return _telefone?.ToUpper().Trim();
+ }
+ set
+ {
+ _telefone = value;
+ }
+ }
+
+ [Log(true)]
+ public string Email
+ {
+ get
+ {
+ return _email?.ToLower().Trim();
+ }
+ set
+ {
+ _email = value;
+ }
+ }
+
+ [Log(true)]
+ public string Habilitacao
+ {
+ get
+ {
+ return _habilitacao?.ToUpper().Trim();
+ }
+ set
+ {
+ _habilitacao = value;
+ }
+ }
+
+ [Log(true)]
+ public DateTime? PrimeiraHabilitacao { get; set; }
+
+ [Log(true)]
+ public Profissao Profissao { get; set; }
+
+ public string Banco
+ {
+ get
+ {
+ return _banco?.ToUpper();
+ }
+ set
+ {
+ _banco = value;
+ }
+ }
+
+ [Log(true)]
+ public string Agencia
+ {
+ get
+ {
+ return _agencia?.ToUpper().Trim();
+ }
+ set
+ {
+ _agencia = value;
+ }
+ }
+
+ [Log(true)]
+ public string Conta
+ {
+ get
+ {
+ return _conta?.ToUpper().Trim();
+ }
+ set
+ {
+ _conta = value;
+ }
+ }
+
+ public bool Excluido { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (!string.IsNullOrWhiteSpace(Nome) && Nome.Length > 90)
+ {
+ list.AddValue("Nome", string.Format(Messages.MaiorQueLimite, 90));
+ }
+ if (PrimeiraHabilitacao.HasValue && (DateTime.Compare(PrimeiraHabilitacao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(PrimeiraHabilitacao.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("PrimeiraHabilitacao|PRIMEIRA HABILITAÇÃO", string.Format(Messages.DataInvalida));
+ }
+ if (Expedicao.HasValue && (DateTime.Compare(Expedicao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Expedicao.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Expedicao|EXPEDIÇÃO", string.Format(Messages.DataInvalida));
+ }
+ if (Nascimento.HasValue && (DateTime.Compare(Nascimento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Nascimento.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Nascimento", string.Format(Messages.DataInvalida));
+ }
+ if (!string.IsNullOrWhiteSpace(Documento) && Documento.Length > 30)
+ {
+ list.AddValue("Documento", string.Format(Messages.MaiorQueLimite, 30));
+ }
+ if (!string.IsNullOrWhiteSpace(Identidade) && Identidade.Length > 40)
+ {
+ list.AddValue("Identidade", string.Format(Messages.MaiorQueLimite, 40));
+ }
+ if (!string.IsNullOrWhiteSpace(Prefixo) && Prefixo.Length > 6)
+ {
+ list.AddValue("Prefixo", string.Format(Messages.MaiorQueLimite, 6));
+ }
+ if (!string.IsNullOrWhiteSpace(Telefone) && Telefone.Length > 11)
+ {
+ list.AddValue("Telefone", string.Format(Messages.MaiorQueLimite, 11));
+ }
+ if (!string.IsNullOrWhiteSpace(Email) && Email.Length > 80)
+ {
+ list.AddValue("Email|E-MAIL", string.Format(Messages.MaiorQueLimite, 80));
+ }
+ if (!string.IsNullOrWhiteSpace(Habilitacao) && Habilitacao.Length > 40)
+ {
+ list.AddValue("Habilitacao|HABILITAÇÃO", string.Format(Messages.MaiorQueLimite, 40));
+ }
+ if (!string.IsNullOrWhiteSpace(Banco) && Banco.Length > 15)
+ {
+ list.AddValue("Banco", string.Format(Messages.MaiorQueLimite, 15));
+ }
+ if (!string.IsNullOrWhiteSpace(Agencia) && Agencia.Length > 15)
+ {
+ list.AddValue("Agencia|AGÊNCIA", string.Format(Messages.MaiorQueLimite, 15));
+ }
+ if (!string.IsNullOrWhiteSpace(Conta) && Conta.Length > 20)
+ {
+ list.AddValue("Conta", string.Format(Messages.MaiorQueLimite, 20));
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/MetaSeguradora.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/MetaSeguradora.cs
new file mode 100644
index 0000000..842ea93
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/MetaSeguradora.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class MetaSeguradora : DomainBase
+{
+ public Seguradora Seguradora { get; set; }
+
+ public Mes Mes { get; set; }
+
+ public long Ano { get; set; }
+
+ public decimal Valor { get; set; }
+
+ public bool Recorrente { get; set; } = true;
+
+
+ public int TipoCalculo { get; set; } = 1;
+
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("VALOR DA META", Valor.ToString(), ""),
+ new Tuple<string, string, string>("MÊS", Mes.ToString(), ""),
+ new Tuple<string, string, string>("ANO", Ano.ToString(), "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/MetaVendedor.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/MetaVendedor.cs
new file mode 100644
index 0000000..53760f3
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/MetaVendedor.cs
@@ -0,0 +1,34 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class MetaVendedor : DomainBase
+{
+ public Vendedor Vendedor { get; set; }
+
+ public Mes Mes { get; set; }
+
+ public long Ano { get; set; }
+
+ public decimal Valor { get; set; }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("VALOR DA META", Valor.ToString("c2"), ""),
+ new Tuple<string, string, string>("MÊS", Mes.ToString(), ""),
+ new Tuple<string, string, string>("ANO", Ano.ToString(), "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Parceiro.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Parceiro.cs
new file mode 100644
index 0000000..2be2390
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Parceiro.cs
@@ -0,0 +1,406 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Linq;
+using System.Text.RegularExpressions;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Parceiro : DomainBase, IDomain
+{
+ private string _nome;
+
+ private string _cep;
+
+ private string _endereco;
+
+ private string _numero;
+
+ private string _complemento;
+
+ private string _bairro;
+
+ private string _cidade;
+
+ private string _uf;
+
+ private string _cgccpf;
+
+ private string _contato;
+
+ private string _email;
+
+ private string _ddd1;
+
+ private string _telefone1;
+
+ private string _ddd2;
+
+ private string _telefone2;
+
+ private string _ddd3;
+
+ private string _telefone3;
+
+ private string _obs;
+
+ public TipoPerda? TipoPerda { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ [Log(true)]
+ public string Cep
+ {
+ get
+ {
+ if (_cep == null || !Regex.IsMatch(_cep, "[0-9]+"))
+ {
+ return "";
+ }
+ return _cep.Trim();
+ }
+ set
+ {
+ _cep = value;
+ }
+ }
+
+ [Log(true)]
+ public string Endereco
+ {
+ get
+ {
+ return _endereco?.ToUpper();
+ }
+ set
+ {
+ _endereco = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("NÚMERO")]
+ public string Numero
+ {
+ get
+ {
+ return _numero?.ToUpper();
+ }
+ set
+ {
+ _numero = value;
+ }
+ }
+
+ [Log(true)]
+ public string Complemento
+ {
+ get
+ {
+ return _complemento?.ToUpper();
+ }
+ set
+ {
+ _complemento = value;
+ }
+ }
+
+ [Log(true)]
+ public string Bairro
+ {
+ get
+ {
+ return _bairro?.ToUpper();
+ }
+ set
+ {
+ _bairro = value;
+ }
+ }
+
+ [Log(true)]
+ public string Cidade
+ {
+ get
+ {
+ return _cidade?.ToUpper();
+ }
+ set
+ {
+ _cidade = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("ESTADO")]
+ public string Uf
+ {
+ get
+ {
+ return _uf?.ToUpper().Trim();
+ }
+ set
+ {
+ _uf = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("DOCUMENTO")]
+ public string Cgccpf
+ {
+ get
+ {
+ return _cgccpf?.ToUpper().Trim();
+ }
+ set
+ {
+ _cgccpf = value;
+ }
+ }
+
+ [Log(true)]
+ public string Contato
+ {
+ get
+ {
+ return _contato?.ToUpper();
+ }
+ set
+ {
+ _contato = value;
+ }
+ }
+
+ [Log(true)]
+ public string Email
+ {
+ get
+ {
+ return _email?.ToLower().Trim();
+ }
+ set
+ {
+ _email = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("PREFIXO 1")]
+ public string Ddd1
+ {
+ get
+ {
+ return _ddd1?.ToUpper().Trim();
+ }
+ set
+ {
+ _ddd1 = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("TELEFONE 1")]
+ public string Telefone1
+ {
+ get
+ {
+ return _telefone1?.ToUpper().Trim();
+ }
+ set
+ {
+ _telefone1 = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("PREFIXO 2")]
+ public string Ddd2
+ {
+ get
+ {
+ return _ddd2?.ToUpper().Trim();
+ }
+ set
+ {
+ _ddd2 = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("TELEFONE 2")]
+ public string Telefone2
+ {
+ get
+ {
+ return _telefone2?.ToUpper().Trim();
+ }
+ set
+ {
+ _telefone2 = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("PREFIXO 3")]
+ public string Ddd3
+ {
+ get
+ {
+ return _ddd3?.ToUpper().Trim();
+ }
+ set
+ {
+ _ddd3 = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("TELEFONE 3")]
+ public string Telefone3
+ {
+ get
+ {
+ return _telefone3?.ToUpper().Trim();
+ }
+ set
+ {
+ _telefone3 = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("OBSERVAÇÃO")]
+ public string Obs
+ {
+ get
+ {
+ return _obs?.ToUpper();
+ }
+ set
+ {
+ _obs = value;
+ }
+ }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (!(Nome?.Trim().Split(new char[1] { ' ' }).Length).HasValue)
+ {
+ list.AddValue("Nome", Messages.Obrigatorio);
+ }
+ else if (Nome.Length > 100)
+ {
+ list.AddValue("Nome", string.Format(Messages.MaiorQueLimite, 100));
+ }
+ if (!string.IsNullOrEmpty(Cgccpf) && !Cgccpf.ValidacaoDocumento())
+ {
+ list.AddValue("Cgccpf", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(Ddd1) && !Ddd1.ValidacaoPrefixo())
+ {
+ list.AddValue("Ddd1|PRIMEIRO DDD", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(Telefone1) && !Telefone1.ValidacaoTelefone())
+ {
+ list.AddValue("Telefone1|PRIMEIRO TELEFONE", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(Ddd2) && !Ddd2.ValidacaoPrefixo())
+ {
+ list.AddValue("Ddd2|SEGUNDO DDD", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(Telefone2) && !Telefone2.ValidacaoTelefone())
+ {
+ list.AddValue("Telefone2|SEGUNDO TELEFONE", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(Ddd3) && !Ddd3.ValidacaoPrefixo())
+ {
+ list.AddValue("Ddd3|TERCEIRO DDD", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(Telefone3) && !Telefone3.ValidacaoTelefone())
+ {
+ list.AddValue("Telefone3|TERCEIRO TELEFONE", Messages.Invalido);
+ }
+ if (!string.IsNullOrEmpty(Email) && Email.Length > 100)
+ {
+ list.AddValue("Email|E-MAIL", string.Format(Messages.MaiorQueLimite, 100));
+ }
+ if (!string.IsNullOrEmpty(Email) && !Email.ValidacaoEmail())
+ {
+ list.AddValue("Email|E-MAIL", Messages.Invalido);
+ }
+ if (!string.IsNullOrEmpty(Cep) && !Cep.ValidacaoCep())
+ {
+ list.AddValue("Cep|CEP", Messages.Invalido);
+ }
+ if (!string.IsNullOrEmpty(Uf) && !Uf.ValidacaoEstado())
+ {
+ list.AddValue("Uf|ESTADO", Messages.Invalido);
+ }
+ if (!string.IsNullOrEmpty(Numero) && !int.TryParse(Numero, out var _))
+ {
+ list.AddValue("Numero|NÚMERO", Messages.Invalido);
+ }
+ if (!string.IsNullOrEmpty(Numero))
+ {
+ string numero = Numero;
+ if (numero != null && numero.Count() > 5)
+ {
+ list.AddValue("Numero|NÚMERO", Messages.Invalido);
+ }
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("NOME", string.IsNullOrWhiteSpace(Nome) ? "" : Nome, ""),
+ new Tuple<string, string, string>("DOCUMENTO", string.IsNullOrWhiteSpace(Cgccpf) ? "" : Cgccpf, ""),
+ new Tuple<string, string, string>("PRIMEIRO PREFIXO", string.IsNullOrWhiteSpace(Ddd1) ? "" : Ddd1, ""),
+ new Tuple<string, string, string>("PRIMEIRO TELEFONE", string.IsNullOrWhiteSpace(Telefone1) ? "" : Telefone1, ""),
+ new Tuple<string, string, string>("SEGUNDO PREFIXO", string.IsNullOrWhiteSpace(Ddd2) ? "" : Ddd2, ""),
+ new Tuple<string, string, string>("SEGUNDO TELEFONE", string.IsNullOrWhiteSpace(Telefone2) ? "" : Telefone2, ""),
+ new Tuple<string, string, string>("TERCEIRO PREFIXO", string.IsNullOrWhiteSpace(Ddd3) ? "" : Ddd3, ""),
+ new Tuple<string, string, string>("TERCEIRO TELEFONE", string.IsNullOrWhiteSpace(Telefone3) ? "" : Telefone3, ""),
+ new Tuple<string, string, string>("E-MAIL", string.IsNullOrWhiteSpace(Email) ? "" : Email, ""),
+ new Tuple<string, string, string>("CEP", string.IsNullOrWhiteSpace(Cep) ? "" : Cep, ""),
+ new Tuple<string, string, string>("ENDEREÇO", string.IsNullOrWhiteSpace(Endereco) ? "" : Endereco, ""),
+ new Tuple<string, string, string>("NÚMERO", string.IsNullOrWhiteSpace(Numero) ? "" : Numero, ""),
+ new Tuple<string, string, string>("COMPLEMENTO", string.IsNullOrWhiteSpace(Complemento) ? "" : Complemento, ""),
+ new Tuple<string, string, string>("BAIRRO", string.IsNullOrWhiteSpace(Bairro) ? "" : Bairro, ""),
+ new Tuple<string, string, string>("CIDADE", string.IsNullOrWhiteSpace(Cidade) ? "" : Cidade, ""),
+ new Tuple<string, string, string>("ESTADO", string.IsNullOrWhiteSpace(Uf) ? "" : Uf, "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Parcela.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Parcela.cs
new file mode 100644
index 0000000..00fbedf
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Parcela.cs
@@ -0,0 +1,389 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Linq;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Parcela : DomainBase, IDomain
+{
+ private string _extrato;
+
+ private string _fatura;
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("STATUS PAGAMENTO")]
+ private StatusPagamento? _statusPagamento;
+
+ private bool _percentualmaiorque100;
+
+ private bool _alteracao;
+
+ private bool _permitirVencimentoMenor;
+
+ private bool _permitirVencimentoMaior;
+
+ public bool Baixando { get; set; }
+
+ public long IdEmpresa { get; set; }
+
+ [Log(false)]
+ [ForceLog(true)]
+ public Documento Documento { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("PARCELA")]
+ public int NumeroParcela { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("VENCIMENTO")]
+ public DateTime Vencimento { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("RECEBIMENTO")]
+ public DateTime? DataRecebimento { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("QUITAÇÃO")]
+ public DateTime? DataQuitacao { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("CONTROLE")]
+ public DateTime? DataControle { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("CRÉDITO")]
+ public DateTime? DataCredito { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("VALOR")]
+ public decimal Valor { get; set; }
+
+ public decimal ValorPago { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("VALOR PARCELA EXTRATO")]
+ public decimal ValorRealizado { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("COMISSÃO")]
+ public decimal Comissao { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("VALOR DE COMISSÃO")]
+ public decimal ValorComissao { get; set; }
+
+ public string Observacao { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("EXTRATO")]
+ public string Extrato
+ {
+ get
+ {
+ return _extrato?.ToUpper();
+ }
+ set
+ {
+ _extrato = value;
+ }
+ }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("IR")]
+ public decimal Irr { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("ISS")]
+ public decimal Iss { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("OUTROS")]
+ public decimal Outros { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("DESCONTO")]
+ public decimal Desconto { get; set; }
+
+ public decimal ValorExtrato { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("COMISSÃO LÍQUIDA")]
+ public decimal ValorComDesconto { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("TIPO DA PARCELA")]
+ public SubTipo SubTipo { get; set; }
+
+ public TipoPagamento TipoPagamento { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("VALOR LÍQUIDO FATURA")]
+ public decimal ValorLiquidoFatura { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("FATURA")]
+ public string Fatura
+ {
+ get
+ {
+ return _fatura?.ToUpper().Trim();
+ }
+ set
+ {
+ _fatura = value;
+ }
+ }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("INÍCIO FATURA")]
+ public DateTime? VigenciaIncial { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("FIM FATURA")]
+ public DateTime? VigenciaFinal { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ [Description("EMISSÃO FATURA")]
+ public DateTime? Emissao { get; set; }
+
+ [Log(false)]
+ public DateTime? DataCriacao { get; set; }
+
+ [Log(false)]
+ public long UsuarioCriacao { get; set; }
+
+ [Log(false)]
+ public StatusPagamento? StatusPagamento
+ {
+ get
+ {
+ return _statusPagamento;
+ }
+ set
+ {
+ _statusPagamento = value.GetValueOrDefault();
+ }
+ }
+
+ [Log(false)]
+ public long IdParcelaPendente { get; set; }
+
+ [Log(false)]
+ public ObservableCollection<VendedorParcela> Vendedores { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate(bool permitirVencimentoMenor, bool permitirVencimentoMaior, bool alteracao = false, bool percentualmaiorque100 = false)
+ {
+ _permitirVencimentoMenor = permitirVencimentoMenor;
+ _permitirVencimentoMaior = permitirVencimentoMaior;
+ _alteracao = alteracao;
+ _percentualmaiorque100 = percentualmaiorque100;
+ return Validate();
+ }
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (Emissao.HasValue && (DateTime.Compare(Emissao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Emissao.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Emissao|EMISSÃO", string.Format(Messages.DataInvalida));
+ }
+ if (VigenciaFinal.HasValue && (DateTime.Compare(VigenciaFinal.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(VigenciaFinal.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("VigenciaFinal|VIGÊNCIA FINAL", string.Format(Messages.DataInvalida));
+ }
+ if (VigenciaIncial.HasValue && (DateTime.Compare(VigenciaIncial.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(VigenciaIncial.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("VigenciaIncial|VIGÊNCIA INICIAL", string.Format(Messages.DataInvalida));
+ }
+ if (DataCredito.HasValue && (DateTime.Compare(DataCredito.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(DataCredito.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("DataCredito|DATA DE CRÉDITO", string.Format(Messages.DataInvalida));
+ }
+ if (DataRecebimento.HasValue && (DateTime.Compare(DataRecebimento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(DataRecebimento.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("DataRecebimento|DATA RECEBIMENTO", string.Format(Messages.DataInvalida));
+ }
+ if (DateTime.Compare(Vencimento, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Vencimento, new DateTime(9999, 12, 31)) > 0)
+ {
+ list.AddValue("Vencimento", string.Format(Messages.DataInvalida));
+ }
+ if (NumeroParcela == 0)
+ {
+ list.AddValue("NumeroParcela|NÚMERO DA PARCELA", Messages.Obrigatorio);
+ }
+ if (Valor == 0m)
+ {
+ list.AddValue("Valor", Messages.Obrigatorio);
+ }
+ if (Comissao == 0m && Documento.TipoRecebimento.GetValueOrDefault() != TipoRecebimento.Fatura)
+ {
+ list.AddValue("Comissao|COMISSÃO", Messages.Obrigatorio);
+ }
+ if (Comissao > 100m && (Documento.TipoRecebimento.GetValueOrDefault() != TipoRecebimento.Fatura || !_percentualmaiorque100))
+ {
+ list.AddValue("Comissao|% COMISSÃO", "MAIOR QUE 100%");
+ }
+ if (DataRecebimento.HasValue && !DataCredito.HasValue)
+ {
+ list.AddValue("DataCredito|DATA DE CRÉDITO", Messages.Obrigatorio);
+ }
+ if (DataCredito.HasValue && !DataRecebimento.HasValue)
+ {
+ list.AddValue("DataRecebimento|DATA RECEBIMENTO", Messages.Obrigatorio);
+ }
+ if (Baixando)
+ {
+ if (!DataRecebimento.HasValue)
+ {
+ list.AddValue("DataRecebimento|DATA DE RECEBIMENTO", Messages.Obrigatorio);
+ }
+ if (!DataCredito.HasValue)
+ {
+ list.AddValue("DataCredito|DATA DE CRÉDITO", Messages.Obrigatorio);
+ }
+ }
+ if (!_alteracao && (DataCredito.HasValue || DataRecebimento.HasValue) && ValorRealizado == 0m)
+ {
+ list.AddValue("ValorRealizado|VALOR REALIZADO", Messages.Obrigatorio);
+ }
+ if (Documento.TipoRecebimento.GetValueOrDefault() != TipoRecebimento.Fatura && SubTipo == SubTipo.ParcelaNormal)
+ {
+ if (Documento.NumeroParcelas == 1m)
+ {
+ decimal num = Math.Abs(Valor);
+ decimal value = Math.Abs(Documento.PremioTotal);
+ decimal? obj = Documento.Controle?.Seguradora?.Tolerancia;
+ decimal? num2 = (decimal?)value + obj;
+ if ((num > num2.GetValueOrDefault()) & num2.HasValue)
+ {
+ list.AddValue("Valor", Messages.ValorParcelaInvalido);
+ }
+ }
+ else
+ {
+ decimal num3 = Math.Abs(Valor);
+ decimal value2 = Math.Abs(Documento.PremioTotal);
+ decimal? obj2 = Documento.Controle?.Seguradora?.Tolerancia;
+ decimal? num2 = (decimal?)value2 + obj2 - (decimal?)Documento.NumeroParcelas;
+ if ((num3 > num2.GetValueOrDefault()) & num2.HasValue)
+ {
+ decimal valor = Valor;
+ num2 = Documento.Controle?.Seguradora?.Tolerancia;
+ if ((valor > num2.GetValueOrDefault()) & num2.HasValue)
+ {
+ list.AddValue("Valor", Messages.ValorParcelaInvalido);
+ }
+ }
+ }
+ }
+ if (Documento.TipoRecebimento.GetValueOrDefault() != TipoRecebimento.Fatura && SubTipo == SubTipo.ParcelaNormal && Documento.Parcelas != null && Documento.NumeroParcelas == (decimal)Documento.Parcelas.Count && Math.Abs(Documento.Parcelas.Where((Parcela x) => x.SubTipo == SubTipo.ParcelaNormal).Sum((Parcela x) => x.Valor)) > Math.Abs(Documento.PremioTotal) + (Documento.Controle?.Seguradora?.Tolerancia).GetValueOrDefault() && (decimal)NumeroParcela == Documento.NumeroParcelas)
+ {
+ list.AddValue("Valor", Messages.ValorParcelaInvalido);
+ }
+ if (!_permitirVencimentoMaior && Documento.Vigencia2.HasValue)
+ {
+ DateTime vencimento = Vencimento;
+ DateTime? vigencia = Documento.Vigencia2;
+ if (vigencia.HasValue && vencimento > vigencia.GetValueOrDefault() && Documento.Controle.Ramo.Id != 23)
+ {
+ list.AddValue("Vencimento", Messages.VencimentoMaior);
+ }
+ }
+ if (!_permitirVencimentoMenor && ((Documento.Vigencia1 > DateTime.MinValue && NumeroParcela == 1 && Vencimento < Documento.Vigencia1.AddDays(-30.0)) || (NumeroParcela != 1 && Vencimento < Documento.Vigencia1)))
+ {
+ list.AddValue("Vencimento", Messages.VencimentoMenor);
+ }
+ if (Documento == null || Documento.TipoRecebimento.GetValueOrDefault() != TipoRecebimento.Fatura)
+ {
+ return list;
+ }
+ if (string.IsNullOrWhiteSpace(Fatura))
+ {
+ list.AddValue("Fatura", Messages.Obrigatorio);
+ }
+ else if (Fatura.Length > 50)
+ {
+ list.AddValue("Fatura", string.Format(Messages.MaiorQueLimite, 255));
+ }
+ if (ValorLiquidoFatura == 0m)
+ {
+ list.AddValue("ValorLiquidoFatura|VALOR LÍQUIDO DA FATURA", Messages.Obrigatorio);
+ }
+ if (!VigenciaIncial.HasValue)
+ {
+ list.AddValue("VigenciaIncial|VIGÊNCIA INICIAL", Messages.Obrigatorio);
+ }
+ if (!VigenciaFinal.HasValue)
+ {
+ list.AddValue("VigenciaFinal|VIGÊNCIA FINAL", Messages.Obrigatorio);
+ }
+ if (!Emissao.HasValue)
+ {
+ list.AddValue("Emissao|EMISSÃO", Messages.Obrigatorio);
+ }
+ if (!string.IsNullOrWhiteSpace(Extrato) && Extrato.Length > 50)
+ {
+ list.AddValue("Extrato", string.Format(Messages.MaiorQueLimite, 50));
+ }
+ if (VigenciaFinal.HasValue && Documento.Vigencia2.HasValue)
+ {
+ DateTime? vigencia = VigenciaFinal;
+ DateTime? vigencia2 = Documento.Vigencia2;
+ if ((vigencia.HasValue & vigencia2.HasValue) && vigencia.GetValueOrDefault() > vigencia2.GetValueOrDefault() && !_permitirVencimentoMaior)
+ {
+ list.AddValue("VigenciaFinal|VIGÊNCIA FINAL", Messages.VencimentoMaior);
+ }
+ }
+ if (!DataRecebimento.HasValue && ValorComissao != 0m && Documento.TipoRecebimento.GetValueOrDefault() == TipoRecebimento.Fatura)
+ {
+ list.AddValue("DataRecebimento|DATA RECEBIMENTO", Messages.Obrigatorio);
+ }
+ if (Documento.TipoRecebimento.GetValueOrDefault() != TipoRecebimento.Fatura && Documento.Parcelas != null && Documento.Parcelas.Any((Parcela x) => x.NumeroParcela < NumeroParcela && !x.DataRecebimento.HasValue))
+ {
+ list.AddValue("DataRecebimento|DATA RECEBIMENTO", Messages.BaixaInvalida);
+ }
+ if (DataRecebimento.HasValue && ValorComissao != 0m && Documento.TipoRecebimento.GetValueOrDefault() == TipoRecebimento.Fatura)
+ {
+ decimal num4 = ((ValorExtrato == 0m) ? ValorLiquidoFatura : ValorExtrato);
+ if (((num4 > 0m) ? num4.CompareTo(ValorComissao) : ValorComissao.CompareTo(num4)) < 0)
+ {
+ list.AddValue("ValorComissao|RECEBIDO", "VALOR RECEBIDO MAIOR QUE VALOR PARCELA");
+ }
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Parcelas.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Parcelas.cs
new file mode 100644
index 0000000..ca2c52e
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Parcelas.cs
@@ -0,0 +1,68 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Globalization;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Parcelas : DomainBase
+{
+ public TipoRecebimento? TipoRecebimento { get; set; }
+
+ public ObservableCollection<Parcela> ParcelasList { get; set; }
+
+ public List<TupleList> Log(bool restricaoComissao, bool restricaoComissaoPorcentagem)
+ {
+ ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("PARCELAS$", "", "")
+ };
+ if (ParcelasList != null)
+ {
+ foreach (Parcela parcelas in ParcelasList)
+ {
+ observableCollection.Add(new Tuple<string, string, string>($" PARCELA {parcelas.NumeroParcela}$", "", ""));
+ if (TipoRecebimento.GetValueOrDefault() == Gestor.Model.Common.TipoRecebimento.Fatura)
+ {
+ observableCollection.Add(new Tuple<string, string, string>(" FATURA", string.IsNullOrWhiteSpace(parcelas.Fatura) ? "" : parcelas.Fatura.ToUpper(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" INÍCIO", (!parcelas.VigenciaIncial.HasValue) ? "" : parcelas.VigenciaIncial?.ToShortDateString(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" FIM", (!parcelas.VigenciaFinal.HasValue) ? "" : parcelas.VigenciaFinal?.ToShortDateString(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" EMISSÃO", (!parcelas.Emissao.HasValue) ? "" : parcelas.Emissao?.ToShortDateString(), ""));
+ }
+ observableCollection.Add(new Tuple<string, string, string>(" VENCIMENTO", parcelas.Vencimento.ToShortDateString(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" RECEBIMENTO", (!parcelas.DataRecebimento.HasValue) ? "" : parcelas.DataRecebimento?.ToShortDateString(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" QUITAÇÃO", (!parcelas.DataQuitacao.HasValue) ? "" : parcelas.DataQuitacao?.ToShortDateString(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" DATA PARCELA CONTROLE", (!parcelas.DataControle.HasValue) ? "" : parcelas.DataControle?.ToShortDateString(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" VALOR", parcelas.Valor.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" LÍQUIDO", parcelas.ValorLiquidoFatura.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ if (!restricaoComissao)
+ {
+ observableCollection.Add(new Tuple<string, string, string>(" REALIZADO", parcelas.ValorRealizado.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" COMISSÃO", (parcelas.Comissao / 100m).ToString("P", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" RECEBIDO", parcelas.ValorComissao.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ }
+ else if (restricaoComissaoPorcentagem)
+ {
+ observableCollection.Add(new Tuple<string, string, string>(" REALIZADO", "", ""));
+ observableCollection.Add(new Tuple<string, string, string>(" COMISSÃO", (parcelas.Comissao / 100m).ToString("P", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" RECEBIDO", "", ""));
+ }
+ else
+ {
+ observableCollection.Add(new Tuple<string, string, string>(" REALIZADO", "", ""));
+ observableCollection.Add(new Tuple<string, string, string>(" COMISSÃO", "", ""));
+ observableCollection.Add(new Tuple<string, string, string>(" RECEBIDO", "", ""));
+ }
+ }
+ }
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = observableCollection
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Patrimonial.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Patrimonial.cs
new file mode 100644
index 0000000..5779e69
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Patrimonial.cs
@@ -0,0 +1,451 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Globalization;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Patrimonial : EnderecoBase, IDomain
+{
+ private string _bens;
+
+ private string _imobiliaria;
+
+ private string _locatario;
+
+ private string _locatario2;
+
+ private string _locatario3;
+
+ private string _cpfLocatario1;
+
+ private string _cpfLocatario2;
+
+ private string _cpfLocatario3;
+
+ private string _contato;
+
+ private string _prefixo;
+
+ private string _telefone;
+
+ private TipoMoradia _tipoResidencia;
+
+ public Item Item { get; set; }
+
+ public string Bens
+ {
+ get
+ {
+ return _bens?.ToUpper();
+ }
+ set
+ {
+ _bens = value;
+ }
+ }
+
+ public TipoMoradia TipoMoradia
+ {
+ get
+ {
+ return _tipoResidencia;
+ }
+ set
+ {
+ _tipoResidencia = value;
+ }
+ }
+
+ public Utilizacao? Utilizacao { get; set; }
+
+ public string Imobiliaria
+ {
+ get
+ {
+ return _imobiliaria?.ToUpper();
+ }
+ set
+ {
+ _imobiliaria = value;
+ }
+ }
+
+ public string Contato
+ {
+ get
+ {
+ return _contato?.ToUpper();
+ }
+ set
+ {
+ _contato = value;
+ }
+ }
+
+ public TipoTelefone? Tipo { get; set; }
+
+ public string Prefixo
+ {
+ get
+ {
+ return _prefixo?.ToUpper().Trim();
+ }
+ set
+ {
+ _prefixo = value;
+ }
+ }
+
+ public string Telefone
+ {
+ get
+ {
+ return _telefone?.ToUpper().Trim();
+ }
+ set
+ {
+ _telefone = value;
+ }
+ }
+
+ public string Locatario1
+ {
+ get
+ {
+ return _locatario?.ToUpper();
+ }
+ set
+ {
+ _locatario = value;
+ }
+ }
+
+ public string CpfLocatario1
+ {
+ get
+ {
+ return _cpfLocatario1?.ToUpper();
+ }
+ set
+ {
+ _cpfLocatario1 = value;
+ }
+ }
+
+ public string PrefixoLocatario1 { get; set; }
+
+ public string TelefoneLocatario1 { get; set; }
+
+ public string Locatario2
+ {
+ get
+ {
+ return _locatario2?.ToUpper();
+ }
+ set
+ {
+ _locatario2 = value;
+ }
+ }
+
+ public string CpfLocatario2
+ {
+ get
+ {
+ return _cpfLocatario2?.ToUpper();
+ }
+ set
+ {
+ _cpfLocatario2 = value;
+ }
+ }
+
+ public string PrefixoLocatario2 { get; set; }
+
+ public string TelefoneLocatario2 { get; set; }
+
+ public string Locatario3
+ {
+ get
+ {
+ return _locatario3?.ToUpper();
+ }
+ set
+ {
+ _locatario3 = value;
+ }
+ }
+
+ public string CpfLocatario3
+ {
+ get
+ {
+ return _cpfLocatario3?.ToUpper();
+ }
+ set
+ {
+ _cpfLocatario3 = value;
+ }
+ }
+
+ public string PrefixoLocatario3 { get; set; }
+
+ public string TelefoneLocatario3 { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (!string.IsNullOrWhiteSpace(Imobiliaria) && Imobiliaria.Length > 60)
+ {
+ list.AddValue("Imobiliaria", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (!string.IsNullOrWhiteSpace(Locatario1) && Locatario1.Length > 100)
+ {
+ list.AddValue("Locatario1", string.Format(Messages.MaiorQueLimite, 100));
+ }
+ if (!string.IsNullOrWhiteSpace(Locatario2) && Locatario2.Length > 100)
+ {
+ list.AddValue("Locatario2", string.Format(Messages.MaiorQueLimite, 100));
+ }
+ if (!string.IsNullOrWhiteSpace(Locatario3) && Locatario3.Length > 100)
+ {
+ list.AddValue("Locatario3", string.Format(Messages.MaiorQueLimite, 100));
+ }
+ if (!string.IsNullOrWhiteSpace(CpfLocatario1) && !CpfLocatario1.ValidacaoDocumento())
+ {
+ list.AddValue("CpfLocatario1", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(CpfLocatario2) && !CpfLocatario2.ValidacaoDocumento())
+ {
+ list.AddValue("CpfLocatario2", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(CpfLocatario3) && !CpfLocatario3.ValidacaoDocumento())
+ {
+ list.AddValue("CpfLocatario3", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(Contato) && Contato.Length > 60)
+ {
+ list.AddValue("Contato", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (!string.IsNullOrWhiteSpace(Prefixo) && !Prefixo.ValidacaoPrefixo())
+ {
+ list.AddValue("Prefixo", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(Telefone) && !Telefone.ValidacaoTelefone())
+ {
+ list.AddValue("Telefone", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(PrefixoLocatario1) && !PrefixoLocatario1.ValidacaoPrefixo())
+ {
+ list.AddValue("PrefixoLocatario1", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(TelefoneLocatario1) && !TelefoneLocatario1.ValidacaoTelefone())
+ {
+ list.AddValue("TelefoneLocatario1", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(PrefixoLocatario2) && !PrefixoLocatario2.ValidacaoPrefixo())
+ {
+ list.AddValue("PrefixoLocatario2", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(TelefoneLocatario2) && !TelefoneLocatario2.ValidacaoTelefone())
+ {
+ list.AddValue("TelefoneLocatario2", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(PrefixoLocatario3) && !PrefixoLocatario3.ValidacaoPrefixo())
+ {
+ list.AddValue("PrefixoLocatario3", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(TelefoneLocatario3) && !TelefoneLocatario3.ValidacaoTelefone())
+ {
+ list.AddValue("TelefoneLocatario3", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(base.Bairro) && base.Bairro.Length > 60)
+ {
+ list.AddValue("Bairro", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (!string.IsNullOrWhiteSpace(base.Cidade) && base.Cidade.Length > 30)
+ {
+ list.AddValue("Cidade", string.Format(Messages.MaiorQueLimite, 30));
+ }
+ if (!string.IsNullOrWhiteSpace(base.Numero) && base.Numero.Length > 10)
+ {
+ list.AddValue("Numero", string.Format(Messages.MaiorQueLimite, 10));
+ }
+ if (string.IsNullOrWhiteSpace(base.Cep))
+ {
+ list.AddValue("Cep", Messages.Obrigatorio);
+ }
+ else if (!base.Cep.ValidacaoCep())
+ {
+ list.AddValue("Cep", Messages.Invalido);
+ }
+ if (string.IsNullOrWhiteSpace(base.Endereco))
+ {
+ list.AddValue("Endereco", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(base.Numero))
+ {
+ list.AddValue("Numero", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(base.Bairro))
+ {
+ list.AddValue("Bairro", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(base.Cidade))
+ {
+ list.AddValue("Cidade", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(base.Estado))
+ {
+ list.AddValue("Estado", Messages.Obrigatorio);
+ }
+ else if (!base.Estado.ValidacaoEstado())
+ {
+ list.AddValue("Estado", Messages.Invalido);
+ }
+ return list;
+ }
+
+ public List<KeyValuePair<string, string>> ValidateGarantia()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (!string.IsNullOrWhiteSpace(Locatario1) && Locatario1.Length > 100)
+ {
+ list.AddValue("Locatario1", string.Format(Messages.MaiorQueLimite, 100));
+ }
+ if (!string.IsNullOrWhiteSpace(Locatario2) && Locatario2.Length > 100)
+ {
+ list.AddValue("Locatario2", string.Format(Messages.MaiorQueLimite, 100));
+ }
+ if (!string.IsNullOrWhiteSpace(Locatario3) && Locatario3.Length > 100)
+ {
+ list.AddValue("Locatario3", string.Format(Messages.MaiorQueLimite, 100));
+ }
+ if (!string.IsNullOrWhiteSpace(CpfLocatario1) && !CpfLocatario1.ValidacaoDocumento())
+ {
+ list.AddValue("CpfLocatario1", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(CpfLocatario2) && !CpfLocatario2.ValidacaoDocumento())
+ {
+ list.AddValue("CpfLocatario2", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(CpfLocatario3) && !CpfLocatario3.ValidacaoDocumento())
+ {
+ list.AddValue("CpfLocatario3", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(PrefixoLocatario1) && !PrefixoLocatario1.ValidacaoPrefixo())
+ {
+ list.AddValue("PrefixoLocatario1", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(TelefoneLocatario1) && !TelefoneLocatario1.ValidacaoTelefone())
+ {
+ list.AddValue("TelefoneLocatario1", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(PrefixoLocatario2) && !PrefixoLocatario2.ValidacaoPrefixo())
+ {
+ list.AddValue("PrefixoLocatario2", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(TelefoneLocatario2) && !TelefoneLocatario2.ValidacaoTelefone())
+ {
+ list.AddValue("TelefoneLocatario2", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(PrefixoLocatario3) && !PrefixoLocatario3.ValidacaoPrefixo())
+ {
+ list.AddValue("PrefixoLocatario3", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(TelefoneLocatario3) && !TelefoneLocatario3.ValidacaoTelefone())
+ {
+ list.AddValue("TelefoneLocatario3", Messages.Invalido);
+ }
+ return list;
+ }
+
+ public static List<TupleList> Log(Item item)
+ {
+ List<TupleList> list = new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("CEP", string.IsNullOrWhiteSpace(item.Patrimonial.Cep) ? "" : item.Patrimonial.Cep, ""),
+ new Tuple<string, string, string>("ENDEREÇO", string.IsNullOrWhiteSpace(item.Patrimonial.Endereco) ? "" : item.Patrimonial.Endereco.ToUpper(), ""),
+ new Tuple<string, string, string>("NÚMERO", string.IsNullOrWhiteSpace(item.Patrimonial.Numero) ? "" : item.Patrimonial.Numero, ""),
+ new Tuple<string, string, string>("COMPLEMENTO", string.IsNullOrWhiteSpace(item.Patrimonial.Complemento) ? "" : item.Patrimonial.Complemento.ToUpper(), ""),
+ new Tuple<string, string, string>("BAIRRO", string.IsNullOrWhiteSpace(item.Patrimonial.Bairro) ? "" : item.Patrimonial.Bairro.ToUpper(), ""),
+ new Tuple<string, string, string>("CIDADE", string.IsNullOrWhiteSpace(item.Patrimonial.Cidade) ? "" : item.Patrimonial.Cidade.ToUpper(), ""),
+ new Tuple<string, string, string>("ESTADO", string.IsNullOrWhiteSpace(item.Patrimonial.Estado) ? "" : item.Patrimonial.Estado.ToUpper(), ""),
+ new Tuple<string, string, string>("BENS", string.IsNullOrWhiteSpace(item.Patrimonial.Bens) ? "" : item.Patrimonial.Bens.ToUpper(), ""),
+ new Tuple<string, string, string>("OBSERVAÇÕES", string.IsNullOrWhiteSpace(item.Patrimonial.Item.Observacao) ? "" : item.Patrimonial.Item.Observacao.ToUpper(), "")
+ }
+ }
+ };
+ if (item.Documento.Controle.Ramo.Id == 15)
+ {
+ ObservableCollection<Tuple<string, string, string>> tuples = list[0].Tuples;
+ object item2;
+ if (item.Patrimonial.Utilizacao.HasValue)
+ {
+ Utilizacao? utilizacao = item.Patrimonial.Utilizacao;
+ item2 = (utilizacao.HasValue ? utilizacao.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item2 = "";
+ }
+ tuples.Add(new Tuple<string, string, string>("UTILIZAÇÃO", (string)item2, ""));
+ list[0].Tuples.Add(new Tuple<string, string, string>("IMOBILIÁRIA", string.IsNullOrWhiteSpace(item.Patrimonial.Imobiliaria) ? "" : item.Patrimonial.Imobiliaria.ToUpper(), ""));
+ list[0].Tuples.Add(new Tuple<string, string, string>("CONTATO", string.IsNullOrWhiteSpace(item.Patrimonial.Contato) ? "" : item.Patrimonial.Contato.ToUpper(), ""));
+ ObservableCollection<Tuple<string, string, string>> tuples2 = list[0].Tuples;
+ object item3;
+ if (item.Patrimonial.Tipo.HasValue)
+ {
+ TipoTelefone? tipo = item.Patrimonial.Tipo;
+ item3 = (tipo.HasValue ? tipo.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item3 = "";
+ }
+ tuples2.Add(new Tuple<string, string, string>("TIPO TELEFONE", (string)item3, ""));
+ list[0].Tuples.Add(new Tuple<string, string, string>("PREFIXO", string.IsNullOrWhiteSpace(item.Patrimonial.Prefixo) ? "" : item.Patrimonial.Prefixo.ToUpper(), ""));
+ list[0].Tuples.Add(new Tuple<string, string, string>("NÚMERO", string.IsNullOrWhiteSpace(item.Patrimonial.Telefone) ? "" : item.Patrimonial.Telefone.ToUpper(), ""));
+ list[0].Tuples.Add(new Tuple<string, string, string>("LOCATÁRIO 1", string.IsNullOrWhiteSpace(item.Patrimonial.Locatario1) ? "" : item.Patrimonial.Locatario1.ToUpper(), ""));
+ list[0].Tuples.Add(new Tuple<string, string, string>("PREFIXO LOCATÁRIO 1", string.IsNullOrWhiteSpace(item.Patrimonial.PrefixoLocatario1) ? "" : item.Patrimonial.PrefixoLocatario1, ""));
+ list[0].Tuples.Add(new Tuple<string, string, string>("NÚMERO LOCATÁRIO 1", string.IsNullOrWhiteSpace(item.Patrimonial.TelefoneLocatario1) ? "" : item.Patrimonial.TelefoneLocatario1, ""));
+ list[0].Tuples.Add(new Tuple<string, string, string>("LOCATÁRIO 2", string.IsNullOrWhiteSpace(item.Patrimonial.Locatario2) ? "" : item.Patrimonial.Locatario2.ToUpper(), ""));
+ list[0].Tuples.Add(new Tuple<string, string, string>("PREFIXO LOCATÁRIO 2", string.IsNullOrWhiteSpace(item.Patrimonial.PrefixoLocatario2) ? "" : item.Patrimonial.PrefixoLocatario2, ""));
+ list[0].Tuples.Add(new Tuple<string, string, string>("NÚMERO LOCATÁRIO 2", string.IsNullOrWhiteSpace(item.Patrimonial.TelefoneLocatario2) ? "" : item.Patrimonial.TelefoneLocatario2, ""));
+ list[0].Tuples.Add(new Tuple<string, string, string>("LOCATÁRIO 3", string.IsNullOrWhiteSpace(item.Patrimonial.Locatario3) ? "" : item.Patrimonial.Locatario3.ToUpper(), ""));
+ list[0].Tuples.Add(new Tuple<string, string, string>("PREFIXO LOCATÁRIO 3", string.IsNullOrWhiteSpace(item.Patrimonial.PrefixoLocatario3) ? "" : item.Patrimonial.PrefixoLocatario3, ""));
+ list[0].Tuples.Add(new Tuple<string, string, string>("NÚMERO LOCATÁRIO 3", string.IsNullOrWhiteSpace(item.Patrimonial.TelefoneLocatario3) ? "" : item.Patrimonial.TelefoneLocatario3, ""));
+ }
+ ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("COBERTURAS$", "", "")
+ };
+ foreach (Cobertura cobertura in item.Coberturas)
+ {
+ observableCollection.Add(new Tuple<string, string, string>($" COBERTURA {item.Coberturas.IndexOf(cobertura) + 1}$", "", ""));
+ observableCollection.Add(new Tuple<string, string, string>(" OBSERVAÇÃO", string.IsNullOrWhiteSpace(cobertura.Observacao) ? "" : cobertura.Observacao.ToUpper(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" PRÊMIO", cobertura.Premio.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" FRANQUIA", cobertura.Franquia.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" L.M.I.", cobertura.Lmi.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ }
+ list.Add(new TupleList
+ {
+ Tuples = observableCollection
+ });
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Perfil.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Perfil.cs
new file mode 100644
index 0000000..ed3772c
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Perfil.cs
@@ -0,0 +1,147 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Perfil : DomainBase, IDomain
+{
+ private string _nome;
+
+ private string _cepCirculacao;
+
+ private string _cepPernoite;
+
+ public Cliente Cliente { get; set; }
+
+ public Controle Controle { get; set; }
+
+ public bool? UsoProfissional { get; set; }
+
+ public bool? SeguroVida { get; set; }
+
+ public Antifurto? AntiFurto { get; set; }
+
+ public bool? EstenderCobertura { get; set; }
+
+ public int? VeiculoResidencia { get; set; }
+
+ public string Cpf { get; set; }
+
+ public string Habilitacao { get; set; }
+
+ public DateTime? Nascimento { get; set; }
+
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ public Relacao? Relacao { get; set; }
+
+ public GaragemTrabalhoEstudo? GaragemTrabalho { get; set; }
+
+ public GaragemTrabalhoEstudo? GaragemEstudo { get; set; }
+
+ public GaragemResidencia? GaragemResidencia { get; set; }
+
+ public TipoResidencia? TipoResidencia { get; set; }
+
+ public UsoDependetes? UsoDependentes { get; set; }
+
+ public DistanciaTrabalho? DistanciaResidenciaTrabalho { get; set; }
+
+ public Ocupacao? Ocupacao { get; set; }
+
+ public Sexo? Sexo { get; set; }
+
+ public TempoHabilitacao? TempoHabilitacao { get; set; }
+
+ public EstadoCivil? EstadoCivil { get; set; }
+
+ public string KmMensal { get; set; }
+
+ public string CepPernoite
+ {
+ get
+ {
+ return _cepPernoite;
+ }
+ set
+ {
+ _cepPernoite = value;
+ }
+ }
+
+ public string CepCirculacao
+ {
+ get
+ {
+ return _cepCirculacao;
+ }
+ set
+ {
+ _cepCirculacao = value;
+ }
+ }
+
+ public bool? Isencao { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (Nascimento.HasValue && (DateTime.Compare(Nascimento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Nascimento.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Nascimento", string.Format(Messages.DataInvalida));
+ }
+ if (string.IsNullOrWhiteSpace(Nome))
+ {
+ list.AddValue("Nome", Messages.Obrigatorio);
+ }
+ else if (Nome.Length > 255)
+ {
+ list.AddValue("Nome", string.Format(Messages.MaiorQueLimite, 255));
+ }
+ string kmMensal = KmMensal;
+ if (kmMensal != null && kmMensal.Length > 5)
+ {
+ list.AddValue("KmMensal", string.Format(Messages.MaiorQueLimite, 5));
+ }
+ string habilitacao = Habilitacao;
+ if (habilitacao != null && habilitacao.Length > 15)
+ {
+ list.AddValue("Habilitacao", string.Format(Messages.MaiorQueLimite, 15));
+ }
+ if (!Relacao.HasValue)
+ {
+ list.AddValue("Relacao", Messages.Obrigatorio);
+ }
+ if (!string.IsNullOrWhiteSpace(Cpf) && !Cpf.ValidacaoDocumento())
+ {
+ list.AddValue("Cpf", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(CepPernoite) && !CepPernoite.FormataCep().ValidacaoCep())
+ {
+ list.AddValue("CepPernoite", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(CepCirculacao) && !CepCirculacao.FormataCep().ValidacaoCep())
+ {
+ list.AddValue("CepCirculacao", Messages.Invalido);
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/PerfilEmpresa.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/PerfilEmpresa.cs
new file mode 100644
index 0000000..6b40111
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/PerfilEmpresa.cs
@@ -0,0 +1,59 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class PerfilEmpresa : DomainBase, IDomain
+{
+ public Cliente Cliente { get; set; }
+
+ public Controle Controle { get; set; }
+
+ public TipoPavimentacao? TipoPavimento { get; set; }
+
+ public DateTime? AnoConstrucao { get; set; }
+
+ public TipoConstrucao? TipoConstrucao { get; set; }
+
+ public Localizacao? Localizacao { get; set; }
+
+ public string EquipamentoSeguranca { get; set; }
+
+ public string EquipamentoIncendio { get; set; }
+
+ public AtividadeEmpresa? AtividadeEmpresa { get; set; }
+
+ public string AtividadePrincipal { get; set; }
+
+ public bool? ExclusivoDeposito { get; set; }
+
+ public bool? DivisaTerrenoBaldio { get; set; }
+
+ public bool? PatrimonioHistorio { get; set; }
+
+ public bool? PossuiTelhado { get; set; }
+
+ public bool? CaixasEletronicos { get; set; }
+
+ public bool? Isopainel { get; set; }
+
+ public bool? ConstrucaoReforma { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (AtividadeEmpresa == Gestor.Model.Common.AtividadeEmpresa.Outro && (AtividadePrincipal == null || AtividadePrincipal == ""))
+ {
+ list.AddValue("Atividade Empresa", Messages.Invalido);
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/PermissaoArquivoDigital.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/PermissaoArquivoDigital.cs
new file mode 100644
index 0000000..697257d
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/PermissaoArquivoDigital.cs
@@ -0,0 +1,43 @@
+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<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("$TELA", Tela.GetDescription(), ""),
+ new Tuple<string, string, string>(" INCLUIR", Incluir ? "SIM" : "NÃO", ""),
+ new Tuple<string, string, string>(" EXCLUIR", Excluir ? "SIM" : "NÃO", "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/PermissaoUsuario.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/PermissaoUsuario.cs
new file mode 100644
index 0000000..f2e42a3
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/PermissaoUsuario.cs
@@ -0,0 +1,26 @@
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class PermissaoUsuario : DomainBase
+{
+ public Usuario Usuario { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ public TipoTela Tela { get; set; }
+
+ [Log(true)]
+ public bool Consultar { get; set; }
+
+ [Log(true)]
+ public bool Incluir { get; set; }
+
+ [Log(true)]
+ public bool Alterar { get; set; }
+
+ [Log(true)]
+ public bool Excluir { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Produto.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Produto.cs
new file mode 100644
index 0000000..e9c1e78
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Produto.cs
@@ -0,0 +1,92 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Runtime.CompilerServices;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Produto : DomainBase, IDomain, INotifyPropertyChanged
+{
+ private bool _selecionado;
+
+ private string _nome;
+
+ public bool Selecionado
+ {
+ get
+ {
+ return _selecionado;
+ }
+ set
+ {
+ if (value != _selecionado)
+ {
+ _selecionado = value;
+ OnPropertyChanged("Selecionado");
+ }
+ }
+ }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("PRODUTO")]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ [Log(true)]
+ public bool Ativo { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Nome))
+ {
+ list.AddValue("Nome", Messages.Obrigatorio);
+ }
+ else if (Nome.Length > 60)
+ {
+ list.AddValue("Nome", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("NOME", string.IsNullOrWhiteSpace(Nome) ? "" : Nome, ""),
+ new Tuple<string, string, string>("ATIVO", Ativo ? "SIM" : "NÃO", "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Prospeccao.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Prospeccao.cs
new file mode 100644
index 0000000..613fddc
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Prospeccao.cs
@@ -0,0 +1,210 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Common;
+using Gestor.Model.Domain.Ferramentas;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Prospeccao : DomainBase, IDomain
+{
+ private string _nome;
+
+ private string _item;
+
+ private string _observacao;
+
+ public long IdEmpresa { get; set; }
+
+ [Description("CLIENTE")]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ [Description("DOCUMENTO")]
+ public string Documento { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("NASCIMENTO")]
+ public DateTime? Nascimento { get; set; }
+
+ [Description("DDD")]
+ public string Prefixo1 { get; set; }
+
+ [Description("TELEFONE")]
+ public string Telefone1 { get; set; }
+
+ [Description("DDD")]
+ public string Prefixo2 { get; set; }
+
+ [Description("TELEFONE")]
+ public string Telefone2 { get; set; }
+
+ [Description("E-MAIL")]
+ public string Email { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("VIGÊNCIA FINAL")]
+ public DateTime? VigenciaFinal { get; set; }
+
+ [Description("ITEM")]
+ public string Item
+ {
+ get
+ {
+ return _item?.ToUpper();
+ }
+ set
+ {
+ _item = value;
+ }
+ }
+
+ public Vendedor Vendedor { get; set; }
+
+ [Tipo("ENUM?")]
+ [Description("STATUS")]
+ public StatusProspeccao? Status { get; set; }
+
+ [Description("STATUS PERSONALIZADO")]
+ public StatusDeProspeccao StatusPersonalizado { get; set; }
+
+ [Description("TIPO")]
+ public string Tipo { get; set; }
+
+ [Description("VALOR")]
+ public decimal Valor { get; set; }
+
+ public string Observacao
+ {
+ get
+ {
+ return _observacao?.ToUpper();
+ }
+ set
+ {
+ _observacao = value;
+ }
+ }
+
+ public bool Excluido { get; set; }
+
+ public Tarefa Tarefa { get; set; }
+
+ public bool CriarTarefa { get; set; }
+
+ public bool AbrirTarefa { get; set; }
+
+ public bool Renovacao { get; set; }
+
+ public DateTime? DataCriacao { get; set; }
+
+ public long UsuarioCriacao { get; set; }
+
+ public Produto Produto { get; set; }
+
+ public List<ArquivoDigital> Anexos { get; set; }
+
+ public Ramo Ramo { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (Nascimento.HasValue && (DateTime.Compare(Nascimento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Nascimento.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Nascimento", string.Format(Messages.DataInvalida));
+ }
+ if (VigenciaFinal.HasValue && (DateTime.Compare(VigenciaFinal.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(VigenciaFinal.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("VigenciaFinal|VENCIMENTO", string.Format(Messages.DataInvalida));
+ }
+ if (string.IsNullOrWhiteSpace(Nome))
+ {
+ list.AddValue("Nome", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(Telefone1) && string.IsNullOrWhiteSpace(Telefone2) && string.IsNullOrWhiteSpace(Email))
+ {
+ list.AddValue("Telefone1|TELEFONE 1", Messages.Obrigatorio);
+ }
+ if (!VigenciaFinal.HasValue)
+ {
+ list.AddValue("VigenciaFinal|VENCIMENTO", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(Item))
+ {
+ list.AddValue("Item", Messages.Obrigatorio);
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ List<TupleList> list = new List<TupleList>();
+ TupleList tupleList = new TupleList();
+ ObservableCollection<Tuple<string, string, string>> obj = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("NOME", string.IsNullOrWhiteSpace(Nome) ? "" : Nome, ""),
+ new Tuple<string, string, string>("DOCUMENTO", string.IsNullOrWhiteSpace(Documento) ? "" : Documento, ""),
+ new Tuple<string, string, string>("NASCIMENTO", (!Nascimento.HasValue) ? "" : Nascimento?.ToShortDateString(), ""),
+ new Tuple<string, string, string>("PRIMEIRO PREFIXO", string.IsNullOrWhiteSpace(Prefixo1) ? "" : Prefixo1, ""),
+ new Tuple<string, string, string>("PRIMEIRO TELEFONE", string.IsNullOrWhiteSpace(Telefone1) ? "" : Telefone1, ""),
+ new Tuple<string, string, string>("SEGUNDO PREFIXO", string.IsNullOrWhiteSpace(Prefixo2) ? "" : Prefixo2, ""),
+ new Tuple<string, string, string>("SEGUNDO TELEFONE", string.IsNullOrWhiteSpace(Telefone2) ? "" : Telefone2, ""),
+ new Tuple<string, string, string>("E-MAIL", string.IsNullOrWhiteSpace(Email) ? "" : Email, ""),
+ new Tuple<string, string, string>("ITEM", string.IsNullOrWhiteSpace(Item) ? "" : Item, ""),
+ new Tuple<string, string, string>("PRODUTO", string.IsNullOrWhiteSpace(Produto?.Nome) ? "" : Produto.Nome, ""),
+ new Tuple<string, string, string>("VENCIMENTO", (!VigenciaFinal.HasValue) ? "" : VigenciaFinal?.ToShortDateString(), ""),
+ new Tuple<string, string, string>("VENDEDOR", string.IsNullOrWhiteSpace(Vendedor?.Nome) ? "" : Vendedor.Nome, "")
+ };
+ object item;
+ if (Status.HasValue)
+ {
+ StatusProspeccao? status = Status;
+ item = (status.HasValue ? status.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item = "";
+ }
+ obj.Add(new Tuple<string, string, string>("STATUS", (string)item, ""));
+ obj.Add(new Tuple<string, string, string>("STATUS PERSONALIZADO", (StatusPersonalizado == null) ? "" : StatusPersonalizado.Nome, ""));
+ obj.Add(new Tuple<string, string, string>("OBSERVAÇÃO", string.IsNullOrWhiteSpace(Observacao) ? "" : Observacao, ""));
+ tupleList.Tuples = obj;
+ list.Add(tupleList);
+ List<TupleList> list2 = list;
+ if (Tarefa != null)
+ {
+ ObservableCollection<Tuple<string, string, string>> tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("TAREFA$", "", ""),
+ new Tuple<string, string, string>(" RESPONSÁVEL", string.IsNullOrWhiteSpace(Tarefa.Usuario.Nome) ? "" : Tarefa.Usuario.Nome, ""),
+ new Tuple<string, string, string>(" DATA DO AGENDAMENTO", Tarefa.Agendamento.ToShortDateString(), ""),
+ new Tuple<string, string, string>(" HORA DO AGENDAMENTO", Tarefa.Agendamento.ToShortTimeString(), "")
+ };
+ list2.Add(new TupleList
+ {
+ Tuples = tuples
+ });
+ }
+ return list2;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/ProspeccaoToPrint.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/ProspeccaoToPrint.cs
new file mode 100644
index 0000000..5adc054
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/ProspeccaoToPrint.cs
@@ -0,0 +1,81 @@
+using System;
+using System.ComponentModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class ProspeccaoToPrint
+{
+ private string _nome;
+
+ private string _item;
+
+ [Description("CLIENTE")]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ [Description("DOCUMENTO")]
+ public string Documento { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("NASCIMENTO")]
+ public DateTime? Nascimento { get; set; }
+
+ [Description("DDD")]
+ public string Prefixo1 { get; set; }
+
+ [Description("TELEFONE")]
+ public string Telefone1 { get; set; }
+
+ [Description("DDD")]
+ public string Prefixo2 { get; set; }
+
+ [Description("TELEFONE")]
+ public string Telefone2 { get; set; }
+
+ [Description("E-MAIL")]
+ public string Email { get; set; }
+
+ [Tipo("DATA?")]
+ [Description("VIGÊNCIA FINAL")]
+ public DateTime? VigenciaFinal { get; set; }
+
+ [Description("ITEM")]
+ public string Item
+ {
+ get
+ {
+ return _item?.ToUpper();
+ }
+ set
+ {
+ _item = value;
+ }
+ }
+
+ [Description("VENDEDOR")]
+ public string Vendedor { get; set; }
+
+ [Tipo("ENUM?")]
+ [Description("STATUS")]
+ public StatusProspeccao? Status { get; set; }
+
+ [Description("STATUS PERSONALIZADO")]
+ public string StatusPersonalizadotoPrint { get; set; }
+
+ [Description("TIPO")]
+ public string Tipo { get; set; }
+
+ [Description("VALOR")]
+ public decimal Valor { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Qualificacao.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Qualificacao.cs
new file mode 100644
index 0000000..999bf18
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Qualificacao.cs
@@ -0,0 +1,95 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Globalization;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Qualificacao : DomainBase, IDomain
+{
+ [Log(true)]
+ [Description("PRÊMIO LÍQUIDO BROZE")]
+ public decimal Liquido1 { get; set; }
+
+ [Log(true)]
+ [Description("PRÊMIO LÍQUIDO PRATA")]
+ public decimal Liquido2 { get; set; }
+
+ [Log(true)]
+ [Description("PRÊMIO LÍQUIDO OURO")]
+ public decimal Liquido3 { get; set; }
+
+ [Log(true)]
+ [Description("MÉDIA DE COMISSÃO BRONZE")]
+ public decimal Comissao1 { get; set; }
+
+ [Log(true)]
+ [Description("MÉDIA DE COMISSÃO PRATA")]
+ public decimal Comissao2 { get; set; }
+
+ [Log(true)]
+ [Description("MÉDIA DE COMISSÃO OURO")]
+ public decimal Comissao3 { get; set; }
+
+ [Log(true)]
+ [Description("RESULTADO BRONZE")]
+ public decimal Resultado1 { get; set; }
+
+ [Log(true)]
+ [Description("RESULTADO PRATA")]
+ public decimal Resultado2 { get; set; }
+
+ [Log(true)]
+ [Description("RESULTADO OURO")]
+ public decimal Resultado3 { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ return ValidationHelper.AddValue();
+ }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("PRÊMIO LÍQUIDO$", "", ""),
+ new Tuple<string, string, string>(" BRONZE", Liquido1.ToString(new CultureInfo("pt-BR")), ""),
+ new Tuple<string, string, string>(" PRATA", Liquido2.ToString(new CultureInfo("pt-BR")), ""),
+ new Tuple<string, string, string>(" OURO", Liquido3.ToString(new CultureInfo("pt-BR")), "")
+ }
+ },
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("MÉDIA DE COMISSÃO$", "", ""),
+ new Tuple<string, string, string>(" BRONZE", Comissao1.ToString(new CultureInfo("pt-BR")), ""),
+ new Tuple<string, string, string>(" PRATA", Comissao2.ToString(new CultureInfo("pt-BR")), ""),
+ new Tuple<string, string, string>(" OURO", Comissao3.ToString(new CultureInfo("pt-BR")), "")
+ }
+ },
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("RESULTADO$", "", ""),
+ new Tuple<string, string, string>(" BRONZE", Resultado1.ToString(new CultureInfo("pt-BR")), ""),
+ new Tuple<string, string, string>(" PRATA", Resultado2.ToString(new CultureInfo("pt-BR")), ""),
+ new Tuple<string, string, string>(" OURO", Resultado3.ToString(new CultureInfo("pt-BR")), "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Ramo.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Ramo.cs
new file mode 100644
index 0000000..b6e2320
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Ramo.cs
@@ -0,0 +1,120 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Globalization;
+using System.Runtime.CompilerServices;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Ramo : DomainBase, IDomain, INotifyPropertyChanged
+{
+ private bool _selecionado;
+
+ private string _nome;
+
+ private string _ramoSusep;
+
+ public bool Selecionado
+ {
+ get
+ {
+ return _selecionado;
+ }
+ set
+ {
+ if (value != _selecionado)
+ {
+ _selecionado = value;
+ OnPropertyChanged("Selecionado");
+ }
+ }
+ }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("RAMO")]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ [Log(true)]
+ public decimal Iof { get; set; }
+
+ [Log(true)]
+ public bool Ativo { get; set; }
+
+ public bool Fatura { get; set; }
+
+ public string RamoSusep
+ {
+ get
+ {
+ return _ramoSusep?.ToUpper();
+ }
+ set
+ {
+ _ramoSusep = value;
+ }
+ }
+
+ public long CodigoSusep { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ return ValidationHelper.AddValue();
+ }
+
+ public List<TupleList> Log(List<CoberturaPadrao> listCoberturas)
+ {
+ List<TupleList> list = new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("NOME", string.IsNullOrWhiteSpace(Nome) ? "" : Nome, ""),
+ new Tuple<string, string, string>("I.O.F.", (Iof / 100m).ToString("P", new CultureInfo("pt-BR", useUserOverride: false)), ""),
+ new Tuple<string, string, string>("ATIVO", Ativo ? "SIM" : "NÃO", "")
+ }
+ }
+ };
+ ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("COBERTURAS$", "", "")
+ };
+ foreach (CoberturaPadrao listCobertura in listCoberturas)
+ {
+ observableCollection.Add(new Tuple<string, string, string>($" COBERTURA {listCoberturas.IndexOf(listCobertura) + 1}$", "", ""));
+ observableCollection.Add(new Tuple<string, string, string>(" DESCRIÇÃO", string.IsNullOrWhiteSpace(listCobertura.Descricao) ? "" : listCobertura.Descricao.ToUpper(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" PADRÃO", listCobertura.Padrao ? "SIM" : "NÃO", ""));
+ }
+ list.Add(new TupleList
+ {
+ Tuples = observableCollection
+ });
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Repasse.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Repasse.cs
new file mode 100644
index 0000000..4beadaf
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Repasse.cs
@@ -0,0 +1,112 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Repasse : DomainBase, IDomain
+{
+ private string _incidenciaVendedor = "";
+
+ private string _pgtoVendedor = "";
+
+ public Vendedor Vendedor { get; set; }
+
+ public long? Seguradora { get; set; }
+
+ public Ramo Ramo { get; set; }
+
+ public decimal ValorNovo { get; set; }
+
+ public decimal ValorRenovacao { get; set; }
+
+ public TipoRepasse? Tipo { get; set; }
+
+ public TipoIncidencia? Incidencia { get; set; }
+
+ public FormaRepasse? Forma { get; set; }
+
+ public BaseRepasse? Base { get; set; }
+
+ public bool Ativo { get; set; }
+
+ public List<VinculoRepasse> Vinculo { get; set; }
+
+ public string IncidenciaVendedor => _incidenciaVendedor = Incidencia.GetDescription();
+
+ public string PagtoVendedor => _pgtoVendedor = Forma.GetDescription();
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (Vendedor == null)
+ {
+ list.AddValue("Vendedor", Messages.Obrigatorio);
+ }
+ if (TipoRepasse.CoCorretagem != Tipo.GetValueOrDefault() && ValorNovo == 0m)
+ {
+ list.AddValue("ValorNovo", Messages.Obrigatorio);
+ }
+ if (TipoRepasse.CoCorretagem != Tipo.GetValueOrDefault() && ValorRenovacao == 0m)
+ {
+ list.AddValue("ValorRenovacao", Messages.Obrigatorio);
+ }
+ if (!Tipo.HasValue)
+ {
+ list.AddValue("Tipo", Messages.Obrigatorio);
+ }
+ if (!Incidencia.HasValue && Forma.HasValue && Forma.GetValueOrDefault() == FormaRepasse.Recebimento)
+ {
+ list.AddValue("Incidencia", Messages.Obrigatorio);
+ }
+ if (!Forma.HasValue)
+ {
+ list.AddValue("Forma", Messages.Obrigatorio);
+ }
+ if (Forma.HasValue && Forma.GetValueOrDefault() != FormaRepasse.Recebimento)
+ {
+ if (!Base.HasValue)
+ {
+ list.AddValue("Base", Messages.Obrigatorio);
+ }
+ if (Forma.GetValueOrDefault() == FormaRepasse.Prazo && Base.GetValueOrDefault() != BaseRepasse.Vencimento)
+ {
+ list.AddValue("Base", Messages.Invalido);
+ }
+ }
+ if (Forma.HasValue && Forma.GetValueOrDefault() == FormaRepasse.Recebimento && Base.HasValue)
+ {
+ list.AddValue("Base", Messages.Invalido);
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("TIPO", Tipo.GetDescription(), ""),
+ new Tuple<string, string, string>("VALOR NOVO", $"{ValorNovo:##.00}", ""),
+ new Tuple<string, string, string>("VALOR RENOVAÇÃO", $"{ValorRenovacao:##.00}", ""),
+ new Tuple<string, string, string>("INCIDÊNCIA", Incidencia.GetDescription(), ""),
+ new Tuple<string, string, string>("FORMA PAGAMENTO", Forma.GetDescription(), ""),
+ new Tuple<string, string, string>("BASE PAGAMENTO", Base.GetDescription(), ""),
+ new Tuple<string, string, string>("ATIVO", Ativo ? "SIM" : "NÃO", "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/ResponsavelAssinatura.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/ResponsavelAssinatura.cs
new file mode 100644
index 0000000..cc341c0
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/ResponsavelAssinatura.cs
@@ -0,0 +1,56 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class ResponsavelAssinatura : DomainBase, IDomain
+{
+ public long IdCliente { get; set; }
+
+ public string NomeResponsavel { get; set; }
+
+ public string DocumentoResponsavel { get; set; }
+
+ public string EmailResponsavel { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ int? num = (string.IsNullOrWhiteSpace(NomeResponsavel) ? null : NomeResponsavel?.Trim().Split(new char[1] { ' ' }).Length);
+ if (num.HasValue && num <= 1)
+ {
+ list.AddValue("NomeResponsavel", Messages.NomeInvalido);
+ }
+ if (!string.IsNullOrWhiteSpace(DocumentoResponsavel) && !DocumentoResponsavel.ValidacaoDocumento())
+ {
+ list.AddValue("DocumentoResponsavel", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(EmailResponsavel) && !EmailResponsavel.ValidacaoEmail())
+ {
+ list.AddValue("EmailResponsavel", Messages.Invalido);
+ }
+ if (num.HasValue || !string.IsNullOrWhiteSpace(DocumentoResponsavel) || !string.IsNullOrWhiteSpace(EmailResponsavel))
+ {
+ if (!num.HasValue)
+ {
+ list.AddValue("NomeResponsavel", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(DocumentoResponsavel))
+ {
+ list.AddValue("DocumentoResponsavel", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrWhiteSpace(EmailResponsavel))
+ {
+ list.AddValue("EmailResponsavel", Messages.Obrigatorio);
+ }
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/RestricaoUsuario.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/RestricaoUsuario.cs
new file mode 100644
index 0000000..a724a73
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/RestricaoUsuario.cs
@@ -0,0 +1,38 @@
+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 RestricaoUsuario : DomainBase
+{
+ [Log(true)]
+ [ForceLog(true)]
+ public TipoRestricao Tipo { get; set; }
+
+ public Usuario Usuario { get; set; }
+
+ [Log(true)]
+ public bool Restricao { get; set; }
+
+ public string Ajuda { get; set; }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("$TIPO DE RESTRIÇÃO", Tipo.GetDescription(), ""),
+ new Tuple<string, string, string>(" RESTRIÇÃO ATIVA?", Restricao ? "SIM" : "NÃO", "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/RestricaoUsuarioCamposRelatorios.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/RestricaoUsuarioCamposRelatorios.cs
new file mode 100644
index 0000000..e781e19
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/RestricaoUsuarioCamposRelatorios.cs
@@ -0,0 +1,39 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class RestricaoUsuarioCamposRelatorios : DomainBase
+{
+ [Log(true)]
+ [ForceLog(true)]
+ public string Campo { get; set; }
+
+ public Usuario Usuario { get; set; }
+
+ [Log(true)]
+ [ForceLog(true)]
+ public Relatorio Relatorio { get; set; }
+
+ [Log(true)]
+ public bool Restricao { get; set; }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("$TIPO DE RESTRIÇÃO", Campo, ""),
+ new Tuple<string, string, string>(" RESTRIÇÃO ATIVA?", Restricao ? "SIM" : "NÃO", "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/RiscosDiversos.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/RiscosDiversos.cs
new file mode 100644
index 0000000..c72eb32
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/RiscosDiversos.cs
@@ -0,0 +1,84 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Globalization;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class RiscosDiversos : DomainBase, IDomain
+{
+ private string _observacao;
+
+ public Item Item { get; set; }
+
+ public string Observacao
+ {
+ get
+ {
+ return _observacao?.ToUpper();
+ }
+ set
+ {
+ _observacao = value;
+ }
+ }
+
+ public decimal? SubsidioEstadual { get; set; }
+
+ public decimal? SubsidioFederal { get; set; }
+
+ public string Area { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Observacao))
+ {
+ Item item = Item;
+ if (item == null || item.Documento.Controle.Ramo.Id != 23)
+ {
+ list.AddValue("Observacao", Messages.Obrigatorio);
+ }
+ }
+ return list;
+ }
+
+ public static List<TupleList> Log(Item item)
+ {
+ List<TupleList> list = new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("DESCRIÇÃO", string.IsNullOrWhiteSpace(item.Descricao) ? "" : item.Descricao, ""),
+ new Tuple<string, string, string>("OBSERVAÇÕES", string.IsNullOrWhiteSpace(item.RiscosDiversos.Observacao) ? "" : item.RiscosDiversos.Observacao.ToUpper(), "")
+ }
+ }
+ };
+ ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("COBERTURAS$", "", "")
+ };
+ foreach (Cobertura cobertura in item.Coberturas)
+ {
+ observableCollection.Add(new Tuple<string, string, string>($" COBERTURA {item.Coberturas.IndexOf(cobertura) + 1}$", "", ""));
+ observableCollection.Add(new Tuple<string, string, string>(" OBSERVAÇÃO", string.IsNullOrWhiteSpace(cobertura.Observacao) ? "" : cobertura.Observacao.ToUpper(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" PRÊMIO", cobertura.Premio.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" FRANQUIA", cobertura.Franquia.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" L.M.I.", cobertura.Lmi.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ }
+ list.Add(new TupleList
+ {
+ Tuples = observableCollection
+ });
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Seguradora.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Seguradora.cs
new file mode 100644
index 0000000..5cf8636
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Seguradora.cs
@@ -0,0 +1,1317 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Runtime.CompilerServices;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Seguradora : DomainBase, IDomain, INotifyPropertyChanged
+{
+ private bool _selecionado;
+
+ private string _nome;
+
+ private string _susep;
+
+ private string _assistencia;
+
+ private string _documento;
+
+ private string _observacao;
+
+ private string _codigo;
+
+ private string _codigoSusep;
+
+ private string _codigoSeguradora;
+
+ private string _nomeSocial;
+
+ private string _nomeSocialBanco;
+
+ public bool Selecionado
+ {
+ get
+ {
+ return _selecionado;
+ }
+ set
+ {
+ if (value != _selecionado)
+ {
+ _selecionado = value;
+ OnPropertyChanged("Selecionado");
+ }
+ }
+ }
+
+ [Name(true)]
+ [Log(true)]
+ [Description("SEGURADORA")]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("APELIDO")]
+ public string NomeSocialBanco
+ {
+ get
+ {
+ return _nomeSocialBanco?.ToUpper();
+ }
+ set
+ {
+ _nomeSocialBanco = value;
+ }
+ }
+
+ public string NomeSocial
+ {
+ get
+ {
+ return _nomeSocial?.ToUpper();
+ }
+ set
+ {
+ _nomeSocial = value;
+ if (!string.IsNullOrWhiteSpace(value))
+ {
+ NomeSocialBanco = ((NomeSocialBanco == " ") ? "" : value);
+ return;
+ }
+ long id = base.Id;
+ if (id <= 694)
+ {
+ if (id <= 678)
+ {
+ long num = id - 1;
+ if ((ulong)num <= 606uL)
+ {
+ switch (num)
+ {
+ case 5L:
+ case 6L:
+ case 7L:
+ case 19L:
+ case 20L:
+ case 21L:
+ case 22L:
+ case 23L:
+ case 28L:
+ case 29L:
+ case 30L:
+ case 31L:
+ case 35L:
+ case 36L:
+ case 37L:
+ case 38L:
+ case 42L:
+ case 43L:
+ case 44L:
+ case 45L:
+ case 46L:
+ case 47L:
+ case 49L:
+ case 50L:
+ case 51L:
+ case 57L:
+ case 58L:
+ case 61L:
+ case 62L:
+ case 66L:
+ case 67L:
+ case 68L:
+ case 70L:
+ case 71L:
+ case 72L:
+ case 73L:
+ case 74L:
+ case 75L:
+ case 76L:
+ case 77L:
+ case 78L:
+ case 79L:
+ case 80L:
+ case 81L:
+ case 82L:
+ case 83L:
+ case 84L:
+ case 85L:
+ case 86L:
+ case 87L:
+ case 97L:
+ case 101L:
+ case 102L:
+ case 103L:
+ case 104L:
+ case 109L:
+ case 110L:
+ case 113L:
+ case 114L:
+ case 118L:
+ case 121L:
+ case 122L:
+ case 123L:
+ case 124L:
+ case 127L:
+ case 131L:
+ case 132L:
+ case 133L:
+ case 134L:
+ case 135L:
+ case 136L:
+ case 137L:
+ case 138L:
+ case 139L:
+ case 140L:
+ case 141L:
+ case 142L:
+ case 143L:
+ case 146L:
+ case 147L:
+ case 148L:
+ case 149L:
+ case 150L:
+ case 153L:
+ case 154L:
+ case 155L:
+ case 156L:
+ case 157L:
+ case 158L:
+ case 159L:
+ case 162L:
+ case 163L:
+ case 164L:
+ case 165L:
+ case 166L:
+ case 167L:
+ case 168L:
+ case 169L:
+ case 170L:
+ case 171L:
+ case 172L:
+ case 173L:
+ case 174L:
+ case 175L:
+ case 179L:
+ case 182L:
+ case 183L:
+ case 186L:
+ case 187L:
+ case 189L:
+ case 190L:
+ case 191L:
+ case 192L:
+ case 193L:
+ case 194L:
+ case 195L:
+ case 198L:
+ case 199L:
+ case 202L:
+ case 203L:
+ case 204L:
+ case 207L:
+ case 208L:
+ case 209L:
+ case 210L:
+ case 211L:
+ case 214L:
+ case 219L:
+ case 220L:
+ case 223L:
+ case 224L:
+ case 227L:
+ case 228L:
+ case 229L:
+ case 233L:
+ case 234L:
+ case 237L:
+ case 238L:
+ case 239L:
+ case 240L:
+ case 244L:
+ case 245L:
+ case 246L:
+ case 247L:
+ case 250L:
+ case 252L:
+ case 253L:
+ case 256L:
+ case 261L:
+ case 262L:
+ case 263L:
+ case 270L:
+ case 276L:
+ case 277L:
+ case 278L:
+ case 279L:
+ case 280L:
+ case 281L:
+ case 282L:
+ case 286L:
+ case 287L:
+ case 288L:
+ case 300L:
+ case 301L:
+ case 302L:
+ case 303L:
+ case 304L:
+ case 305L:
+ case 306L:
+ case 312L:
+ case 313L:
+ case 314L:
+ case 315L:
+ case 316L:
+ case 329L:
+ case 331L:
+ case 332L:
+ case 333L:
+ case 334L:
+ case 335L:
+ case 338L:
+ case 339L:
+ case 341L:
+ case 342L:
+ case 343L:
+ case 344L:
+ case 350L:
+ case 357L:
+ case 358L:
+ case 359L:
+ case 360L:
+ case 361L:
+ case 362L:
+ case 363L:
+ case 366L:
+ case 367L:
+ case 368L:
+ case 369L:
+ case 370L:
+ case 371L:
+ case 373L:
+ case 376L:
+ case 377L:
+ case 381L:
+ case 382L:
+ case 383L:
+ case 388L:
+ case 389L:
+ case 390L:
+ case 391L:
+ case 392L:
+ case 393L:
+ case 396L:
+ case 397L:
+ case 402L:
+ case 403L:
+ case 404L:
+ case 405L:
+ case 406L:
+ case 407L:
+ case 408L:
+ case 409L:
+ case 410L:
+ case 413L:
+ case 414L:
+ case 415L:
+ case 419L:
+ case 420L:
+ case 421L:
+ case 422L:
+ case 425L:
+ case 433L:
+ case 434L:
+ case 442L:
+ case 443L:
+ case 444L:
+ case 451L:
+ case 452L:
+ case 453L:
+ case 454L:
+ case 457L:
+ case 460L:
+ case 461L:
+ case 462L:
+ case 463L:
+ case 464L:
+ case 467L:
+ case 468L:
+ case 469L:
+ case 470L:
+ case 472L:
+ case 473L:
+ case 488L:
+ case 495L:
+ case 496L:
+ case 502L:
+ case 504L:
+ case 505L:
+ case 506L:
+ case 510L:
+ case 511L:
+ case 512L:
+ case 519L:
+ case 524L:
+ case 525L:
+ case 526L:
+ case 529L:
+ case 530L:
+ case 531L:
+ case 532L:
+ case 533L:
+ case 534L:
+ case 535L:
+ case 536L:
+ case 552L:
+ case 555L:
+ case 562L:
+ case 563L:
+ case 564L:
+ case 565L:
+ case 566L:
+ case 567L:
+ case 568L:
+ case 575L:
+ case 576L:
+ case 577L:
+ case 578L:
+ case 580L:
+ case 585L:
+ case 586L:
+ case 587L:
+ case 588L:
+ case 589L:
+ case 592L:
+ case 596L:
+ case 598L:
+ case 599L:
+ case 600L:
+ case 601L:
+ goto IL_0ba0;
+ case 1L:
+ case 2L:
+ case 3L:
+ case 4L:
+ NomeSocial = "ACE";
+ return;
+ case 11L:
+ case 12L:
+ case 13L:
+ NomeSocial = "ALFA";
+ return;
+ case 17L:
+ case 18L:
+ goto IL_0be9;
+ case 88L:
+ case 89L:
+ case 90L:
+ case 91L:
+ case 92L:
+ case 583L:
+ NomeSocial = "BRADESCO";
+ return;
+ case 48L:
+ case 243L:
+ NomeSocial = "GENERALI";
+ return;
+ case 257L:
+ case 258L:
+ case 259L:
+ case 260L:
+ case 569L:
+ case 597L:
+ NomeSocial = "HDI";
+ return;
+ case 290L:
+ case 291L:
+ case 295L:
+ case 296L:
+ goto IL_0c19;
+ case 307L:
+ case 308L:
+ case 309L:
+ goto IL_0c25;
+ case 317L:
+ case 318L:
+ case 319L:
+ case 320L:
+ case 321L:
+ case 322L:
+ case 323L:
+ case 324L:
+ case 325L:
+ case 326L:
+ case 327L:
+ case 328L:
+ goto IL_0c31;
+ case 330L:
+ case 542L:
+ case 561L:
+ NomeSocial = "YASUDA MARITIMA";
+ return;
+ case 345L:
+ case 346L:
+ case 347L:
+ NomeSocial = "MITSUI";
+ return;
+ case 398L:
+ case 399L:
+ case 400L:
+ case 401L:
+ case 553L:
+ case 554L:
+ case 573L:
+ goto IL_0c55;
+ case 474L:
+ case 475L:
+ case 476L:
+ case 477L:
+ case 478L:
+ case 479L:
+ case 480L:
+ case 481L:
+ case 482L:
+ case 483L:
+ case 484L:
+ case 485L:
+ case 486L:
+ case 487L:
+ case 557L:
+ case 579L:
+ goto IL_0c61;
+ case 497L:
+ case 498L:
+ case 499L:
+ case 500L:
+ case 501L:
+ NomeSocial = "TOKIO";
+ return;
+ case 543L:
+ case 544L:
+ case 545L:
+ case 546L:
+ case 547L:
+ case 548L:
+ case 549L:
+ case 550L:
+ case 551L:
+ NomeSocial = "ZURICH";
+ return;
+ case 471L:
+ case 594L:
+ goto IL_0c85;
+ case 560L:
+ case 570L:
+ goto IL_0c91;
+ case 178L:
+ case 251L:
+ NomeSocial = "GRALHA AZUL";
+ return;
+ case 69L:
+ NomeSocial = "AZUL";
+ return;
+ case 215L:
+ NomeSocial = "ESSOR";
+ return;
+ case 130L:
+ goto IL_0ccd;
+ case 99L:
+ NomeSocial = "BRASIL VEÍCULOS";
+ return;
+ case 0L:
+ NomeSocial = "ABSOLUTA";
+ return;
+ case 8L:
+ case 9L:
+ case 517L:
+ case 518L:
+ NomeSocial = "AIG";
+ return;
+ case 10L:
+ NomeSocial = "AJAX";
+ return;
+ case 14L:
+ case 15L:
+ case 16L:
+ case 176L:
+ case 177L:
+ NomeSocial = "ALIANÇA";
+ return;
+ case 32L:
+ case 33L:
+ case 34L:
+ NomeSocial = "APLUB";
+ return;
+ case 24L:
+ case 25L:
+ case 26L:
+ case 180L:
+ NomeSocial = "ALLSEG";
+ return;
+ case 39L:
+ case 40L:
+ NomeSocial = "ARCH";
+ return;
+ case 41L:
+ NomeSocial = "ARGO";
+ return;
+ case 52L:
+ case 53L:
+ case 54L:
+ case 55L:
+ case 56L:
+ NomeSocial = "ATLANTICA";
+ return;
+ case 59L:
+ case 60L:
+ NomeSocial = "AUSTRAL";
+ return;
+ case 63L:
+ case 64L:
+ case 65L:
+ case 602L:
+ NomeSocial = "AXA";
+ return;
+ case 93L:
+ NomeSocial = "BRASIL LIBANO";
+ return;
+ case 94L:
+ NomeSocial = "BRASILCAP";
+ return;
+ case 95L:
+ case 96L:
+ NomeSocial = "BRASILPREV";
+ return;
+ case 98L:
+ case 100L:
+ NomeSocial = "BRASILUSITANA";
+ return;
+ case 105L:
+ case 106L:
+ case 107L:
+ case 108L:
+ case 372L:
+ NomeSocial = "CAIXA";
+ return;
+ case 128L:
+ case 129L:
+ NomeSocial = "CHARTIS";
+ return;
+ case 115L:
+ case 116L:
+ case 117L:
+ NomeSocial = "CARDIF";
+ return;
+ case 111L:
+ case 112L:
+ NomeSocial = "CAPEMISA";
+ return;
+ case 119L:
+ case 120L:
+ NomeSocial = "CASTELLO";
+ return;
+ case 125L:
+ case 126L:
+ NomeSocial = "CESCEBRASIL";
+ return;
+ case 151L:
+ case 152L:
+ case 188L:
+ case 416L:
+ case 417L:
+ case 418L:
+ NomeSocial = "REAL";
+ return;
+ case 160L:
+ case 161L:
+ NomeSocial = "URBANIA";
+ return;
+ case 181L:
+ NomeSocial = "EXCELSIOR";
+ return;
+ case 144L:
+ case 184L:
+ case 185L:
+ NomeSocial = "INTERNACIONAL";
+ return;
+ case 196L:
+ case 197L:
+ NomeSocial = "CREDITO Y CAUCIAN";
+ return;
+ case 200L:
+ case 201L:
+ NomeSocial = "CRUZEIRO DO SUL";
+ return;
+ case 205L:
+ case 206L:
+ NomeSocial = "ECC";
+ return;
+ case 212L:
+ case 213L:
+ NomeSocial = "EQUITATIVA";
+ return;
+ case 216L:
+ case 217L:
+ case 218L:
+ NomeSocial = "EULER HERMES";
+ return;
+ case 221L:
+ case 222L:
+ NomeSocial = "EVEREST";
+ return;
+ case 225L:
+ case 226L:
+ NomeSocial = "FACTORY";
+ return;
+ case 230L:
+ case 231L:
+ case 232L:
+ NomeSocial = "FEDERAL";
+ return;
+ case 235L:
+ case 236L:
+ NomeSocial = "FINANCIAL";
+ return;
+ case 241L:
+ case 242L:
+ NomeSocial = "GENERAL";
+ return;
+ case 248L:
+ case 249L:
+ NomeSocial = "GNPP";
+ return;
+ case 254L:
+ case 255L:
+ NomeSocial = "HANNOVER";
+ return;
+ case 264L:
+ case 265L:
+ case 266L:
+ case 267L:
+ case 268L:
+ case 269L:
+ NomeSocial = "HSBC";
+ return;
+ case 271L:
+ case 272L:
+ NomeSocial = "ICATU";
+ return;
+ case 273L:
+ case 274L:
+ NomeSocial = "IF P&C INSURANCE";
+ return;
+ case 275L:
+ NomeSocial = "INDIANA";
+ return;
+ case 283L:
+ case 284L:
+ case 285L:
+ case 603L:
+ NomeSocial = "KOVR";
+ return;
+ case 145L:
+ case 289L:
+ case 292L:
+ case 293L:
+ case 294L:
+ NomeSocial = "ITAÉ";
+ return;
+ case 297L:
+ case 298L:
+ case 299L:
+ NomeSocial = "J. MALUCELLI";
+ return;
+ case 310L:
+ case 311L:
+ NomeSocial = "LIDERANÇA";
+ return;
+ case 336L:
+ case 337L:
+ NomeSocial = "MBM";
+ return;
+ case 348L:
+ case 349L:
+ NomeSocial = "MONGERAL";
+ return;
+ case 351L:
+ case 352L:
+ case 353L:
+ case 354L:
+ case 355L:
+ case 356L:
+ NomeSocial = "MONTEPIO";
+ return;
+ case 364L:
+ case 365L:
+ case 380L:
+ NomeSocial = "NATIONAL";
+ return;
+ case 374L:
+ case 375L:
+ NomeSocial = "NOVA YORK";
+ return;
+ case 378L:
+ case 379L:
+ NomeSocial = "ODYSSEY";
+ return;
+ case 384L:
+ case 385L:
+ NomeSocial = "PARANÁ";
+ return;
+ case 386L:
+ case 387L:
+ NomeSocial = "PARIS";
+ return;
+ case 394L:
+ case 395L:
+ NomeSocial = "PLANALTO";
+ return;
+ case 411L:
+ case 412L:
+ NomeSocial = "PRUDENTIAL";
+ return;
+ case 423L:
+ case 424L:
+ NomeSocial = "ROYAL & SUN ALLIANCE";
+ return;
+ case 426L:
+ case 427L:
+ case 428L:
+ NomeSocial = "SABEMI";
+ return;
+ case 429L:
+ case 430L:
+ case 431L:
+ case 432L:
+ NomeSocial = "SAFRA";
+ return;
+ case 435L:
+ case 436L:
+ case 437L:
+ NomeSocial = "SANTANDER";
+ return;
+ case 438L:
+ case 439L:
+ NomeSocial = "SANTOS";
+ return;
+ case 440L:
+ case 441L:
+ NomeSocial = "SANTOS";
+ return;
+ case 445L:
+ case 446L:
+ case 447L:
+ case 448L:
+ NomeSocial = "SCOR";
+ return;
+ case 449L:
+ case 450L:
+ NomeSocial = "SDB";
+ return;
+ case 455L:
+ case 456L:
+ NomeSocial = "MINEIRA";
+ return;
+ case 458L:
+ case 459L:
+ NomeSocial = "PONTUAL";
+ return;
+ case 465L:
+ case 466L:
+ NomeSocial = "SIRIUS";
+ return;
+ case 489L:
+ case 490L:
+ case 491L:
+ case 492L:
+ case 493L:
+ case 494L:
+ NomeSocial = "SWISS";
+ return;
+ case 503L:
+ NomeSocial = "TOTAL";
+ return;
+ case 507L:
+ case 508L:
+ case 509L:
+ NomeSocial = "TREVO";
+ return;
+ case 513L:
+ case 514L:
+ case 515L:
+ case 516L:
+ NomeSocial = "UNIÃO";
+ return;
+ case 520L:
+ case 521L:
+ case 584L:
+ case 595L:
+ goto IL_102d;
+ case 522L:
+ case 523L:
+ NomeSocial = "UNIVERSAL";
+ return;
+ case 527L:
+ case 528L:
+ NomeSocial = "VALOR CAPITALIZAÇÃO";
+ return;
+ case 537L:
+ case 538L:
+ case 539L:
+ case 540L:
+ case 541L:
+ NomeSocial = "XL";
+ return;
+ case 556L:
+ NomeSocial = "SUHAI";
+ return;
+ case 558L:
+ NomeSocial = "SANCOR";
+ return;
+ case 559L:
+ NomeSocial = "AGROBRASIL";
+ return;
+ case 571L:
+ case 572L:
+ case 574L:
+ case 605L:
+ case 606L:
+ goto IL_1081;
+ case 581L:
+ NomeSocial = "SANTA CASA";
+ return;
+ case 582L:
+ NomeSocial = "AMEX";
+ return;
+ case 27L:
+ case 590L:
+ case 591L:
+ case 593L:
+ goto IL_10a5;
+ case 604L:
+ NomeSocial = "BANCO DO BRASIL";
+ return;
+ case 340L:
+ goto IL_10bd;
+ }
+ }
+ long num2 = id - 621;
+ if ((ulong)num2 <= 57uL)
+ {
+ switch (num2)
+ {
+ case 14L:
+ goto IL_0be9;
+ case 29L:
+ goto IL_0c25;
+ case 57L:
+ goto IL_0c31;
+ case 20L:
+ case 22L:
+ case 53L:
+ goto IL_0c55;
+ case 43L:
+ goto IL_0c61;
+ case 21L:
+ goto IL_0c91;
+ case 9L:
+ case 18L:
+ NomeSocial = "ALIRO";
+ return;
+ case 0L:
+ case 3L:
+ case 24L:
+ case 32L:
+ case 33L:
+ case 34L:
+ case 35L:
+ case 36L:
+ case 37L:
+ case 41L:
+ case 42L:
+ goto IL_102d;
+ case 55L:
+ goto IL_1081;
+ case 28L:
+ goto IL_10a5;
+ case 10L:
+ goto IL_10bd;
+ case 11L:
+ NomeSocial = "VR";
+ return;
+ case 15L:
+ NomeSocial = "HS";
+ return;
+ case 45L:
+ NomeSocial = "AFFINITY";
+ return;
+ case 46L:
+ NomeSocial = "BR";
+ return;
+ case 52L:
+ NomeSocial = "YAMAHA";
+ return;
+ case 56L:
+ NomeSocial = "EMBRACON";
+ return;
+ }
+ }
+ }
+ else
+ {
+ if (id == 683)
+ {
+ goto IL_102d;
+ }
+ long num3 = id - 687;
+ if ((ulong)num3 <= 3uL)
+ {
+ switch (num3)
+ {
+ case 1L:
+ goto IL_0ba0;
+ case 0L:
+ goto IL_0c19;
+ case 3L:
+ goto IL_102d;
+ case 2L:
+ NomeSocial = "SÃO LUCAS";
+ return;
+ }
+ }
+ if (id == 694)
+ {
+ goto IL_0c55;
+ }
+ }
+ }
+ else if (id <= 716)
+ {
+ long num4 = id - 703;
+ if ((ulong)num4 <= 8uL)
+ {
+ switch (num4)
+ {
+ case 2L:
+ case 3L:
+ case 5L:
+ case 7L:
+ goto IL_0ba0;
+ case 1L:
+ case 4L:
+ case 8L:
+ goto IL_0c31;
+ case 0L:
+ case 6L:
+ goto IL_102d;
+ }
+ }
+ if (id == 716)
+ {
+ goto IL_102d;
+ }
+ }
+ else
+ {
+ if (id == 717)
+ {
+ goto IL_0ccd;
+ }
+ if (id == 734)
+ {
+ NomeSocial = "RC";
+ return;
+ }
+ if (id == 741)
+ {
+ goto IL_0c85;
+ }
+ }
+ goto IL_0ba0;
+ IL_0c19:
+ NomeSocial = "ITAÚ";
+ return;
+ IL_0c85:
+ NomeSocial = "SOMPO";
+ return;
+ IL_0ccd:
+ NomeSocial = "CHUBB";
+ return;
+ IL_0c61:
+ NomeSocial = "SULAMERICA";
+ return;
+ IL_0ba0:
+ NomeSocialBanco = ((base.Id == 0L) ? " " : NomeSocial);
+ NomeSocial = Nome ?? "";
+ return;
+ IL_0c91:
+ NomeSocial = "SURA";
+ return;
+ IL_0c25:
+ NomeSocial = "YELUM";
+ return;
+ IL_0c31:
+ NomeSocial = "MAPFRE";
+ return;
+ IL_0c55:
+ NomeSocial = "PORTO SEGURO";
+ return;
+ IL_1081:
+ NomeSocial = "SÃO FRANCISCO";
+ return;
+ IL_102d:
+ NomeSocial = "UNIMED";
+ return;
+ IL_0be9:
+ NomeSocial = "ALLIANZ";
+ return;
+ IL_10bd:
+ NomeSocial = "METLIFE";
+ return;
+ IL_10a5:
+ NomeSocial = "AMIL";
+ }
+ }
+
+ [Log(true)]
+ public string Susep
+ {
+ get
+ {
+ return _susep?.ToUpper();
+ }
+ set
+ {
+ _susep = value;
+ }
+ }
+
+ [Log(true)]
+ public string Assistencia
+ {
+ get
+ {
+ return _assistencia?.ToUpper();
+ }
+ set
+ {
+ _assistencia = value;
+ }
+ }
+
+ [Log(true)]
+ public string Documento
+ {
+ get
+ {
+ return _documento?.ToUpper();
+ }
+ set
+ {
+ _documento = value;
+ }
+ }
+
+ [Log(true)]
+ public bool Ativo { get; set; }
+
+ [Log(true)]
+ public decimal? Tolerancia { get; set; }
+
+ [Log(true)]
+ public decimal? ToleranciaPremio { get; set; }
+
+ [Log(true)]
+ public string Observacao
+ {
+ get
+ {
+ return _observacao;
+ }
+ set
+ {
+ _observacao = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("LINK APP ANDROID")]
+ public string LinkAppAndroid { get; set; }
+
+ [Log(true)]
+ [Description("LINK APP IOS")]
+ public string LinkAppIos { get; set; }
+
+ public string Usuario { get; set; }
+
+ public string Senha { get; set; }
+
+ public string Codigo
+ {
+ get
+ {
+ return _codigo?.ToUpper();
+ }
+ set
+ {
+ _codigo = value;
+ }
+ }
+
+ public string CodigoSusep
+ {
+ get
+ {
+ return _codigoSusep?.ToUpper();
+ }
+ set
+ {
+ _codigoSusep = value;
+ }
+ }
+
+ public long? IdAggilizador { get; set; }
+
+ public string CodigoSeguradora
+ {
+ get
+ {
+ return _codigoSeguradora?.ToUpper();
+ }
+ set
+ {
+ _codigoSeguradora = value;
+ }
+ }
+
+ public List<SeguradoraContato> Contatos { get; set; }
+
+ public List<SeguradoraEndereco> Enderecos { get; set; }
+
+ public string CustomId { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (!string.IsNullOrWhiteSpace(Documento) && !Documento.ValidacaoDocumento())
+ {
+ list.AddValue("Documento", Messages.Invalido);
+ }
+ decimal? tolerancia = Tolerancia;
+ decimal num = 999;
+ if ((tolerancia.GetValueOrDefault() > num) & tolerancia.HasValue)
+ {
+ list.AddValue("Tolerancia", Messages.Invalido);
+ }
+ tolerancia = ToleranciaPremio;
+ num = 999999;
+ if ((tolerancia.GetValueOrDefault() > num) & tolerancia.HasValue)
+ {
+ list.AddValue("ToleranciaPremio", Messages.Invalido);
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ List<TupleList> list = new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("SEGURADORA", string.IsNullOrWhiteSpace(Nome) ? "" : Nome, ""),
+ new Tuple<string, string, string>("CNPJ", string.IsNullOrWhiteSpace(Documento) ? "" : Documento, ""),
+ new Tuple<string, string, string>("ASSISTÊNCIA 24 HORAS", string.IsNullOrWhiteSpace(Assistencia) ? "" : Assistencia, ""),
+ new Tuple<string, string, string>("SUSEP", string.IsNullOrWhiteSpace(Susep) ? "" : Susep, ""),
+ new Tuple<string, string, string>("CÓDIGO COMPANHIA", string.IsNullOrWhiteSpace(Codigo) ? "" : Codigo, ""),
+ new Tuple<string, string, string>("TOLERÂNCIA DE COMISSÃO", (!Tolerancia.HasValue) ? "" : Tolerancia?.ToString(), ""),
+ new Tuple<string, string, string>("TOLERÂNCIA DE PRÊMIO", (!ToleranciaPremio.HasValue) ? "" : ToleranciaPremio?.ToString(), ""),
+ new Tuple<string, string, string>("SEGURADORA ATIVA", Ativo ? "SIM" : "NÃO", ""),
+ new Tuple<string, string, string>("OBSERVAÇÃO", string.IsNullOrWhiteSpace(Observacao) ? "" : Observacao, "")
+ }
+ }
+ };
+ if (Contatos != null)
+ {
+ ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("CONTATOS$", "", "")
+ };
+ foreach (SeguradoraContato contato in Contatos)
+ {
+ observableCollection.Add(new Tuple<string, string, string>($" CONTATO {Contatos.IndexOf(contato) + 1}$", "", ""));
+ observableCollection.Add(new Tuple<string, string, string>(" NOME", string.IsNullOrWhiteSpace(contato.NomeContato) ? "" : contato.NomeContato.ToUpper(), ""));
+ object item;
+ if (contato.Tipo.HasValue)
+ {
+ TipoTelefone? tipo = contato.Tipo;
+ item = (tipo.HasValue ? tipo.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item = "";
+ }
+ observableCollection.Add(new Tuple<string, string, string>(" TIPO TELEFONE", (string)item, ""));
+ observableCollection.Add(new Tuple<string, string, string>(" PREFIXO", string.IsNullOrWhiteSpace(contato.Prefixo) ? "" : contato.Prefixo, ""));
+ observableCollection.Add(new Tuple<string, string, string>(" TELEFONE", string.IsNullOrWhiteSpace(contato.Numero) ? "" : contato.Numero, ""));
+ }
+ list.Add(new TupleList
+ {
+ Tuples = observableCollection
+ });
+ }
+ if (Enderecos != null)
+ {
+ ObservableCollection<Tuple<string, string, string>> observableCollection2 = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("ENDEREÇOS$", "", "")
+ };
+ foreach (SeguradoraEndereco endereco in Enderecos)
+ {
+ observableCollection2.Add(new Tuple<string, string, string>($" ENDEREÇO {Enderecos.IndexOf(endereco) + 1}$", "", ""));
+ observableCollection2.Add(new Tuple<string, string, string>(" TIPO DO ENDEREÇO", endereco.Tipo.GetDescription(), ""));
+ observableCollection2.Add(new Tuple<string, string, string>(" CEP", string.IsNullOrWhiteSpace(endereco.Cep) ? "" : endereco.Cep, ""));
+ observableCollection2.Add(new Tuple<string, string, string>(" ENDEREÇO", string.IsNullOrWhiteSpace(endereco.Endereco) ? "" : endereco.Endereco, ""));
+ observableCollection2.Add(new Tuple<string, string, string>(" NÚMERO", string.IsNullOrWhiteSpace(endereco.Numero) ? "" : endereco.Numero, ""));
+ observableCollection2.Add(new Tuple<string, string, string>(" COMPLEMENTO", string.IsNullOrWhiteSpace(endereco.Complemento) ? "" : endereco.Complemento, ""));
+ observableCollection2.Add(new Tuple<string, string, string>(" BAIRRO", string.IsNullOrWhiteSpace(endereco.Bairro) ? "" : endereco.Bairro, ""));
+ observableCollection2.Add(new Tuple<string, string, string>(" CIDADE", string.IsNullOrWhiteSpace(endereco.Cidade) ? "" : endereco.Cidade, ""));
+ observableCollection2.Add(new Tuple<string, string, string>(" ESTADO", string.IsNullOrWhiteSpace(endereco.Estado) ? "" : endereco.Estado, ""));
+ }
+ list.Add(new TupleList
+ {
+ Tuples = observableCollection2
+ });
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/SeguradoraContato.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/SeguradoraContato.cs
new file mode 100644
index 0000000..609596f
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/SeguradoraContato.cs
@@ -0,0 +1,60 @@
+using System;
+using System.Collections.Generic;
+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;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class SeguradoraContato : TelefoneBase, IDomain
+{
+ private string _nome;
+
+ private string _email;
+
+ public Empresa Empresa { get; set; }
+
+ public Seguradora Seguradora { get; set; }
+
+ public TipoContatoSeguradora TipoContato { get; set; }
+
+ public string NomeContato
+ {
+ get
+ {
+ return _nome;
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ public string Email
+ {
+ get
+ {
+ return _email?.ToLower();
+ }
+ set
+ {
+ _email = value;
+ }
+ }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidateBase();
+ if (string.IsNullOrWhiteSpace(NomeContato) && TipoContato == TipoContatoSeguradora.Contato)
+ {
+ list.AddValue("NomeContato|NOME CONTATO", Messages.Obrigatorio);
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/SeguradoraEndereco.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/SeguradoraEndereco.cs
new file mode 100644
index 0000000..9839df5
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/SeguradoraEndereco.cs
@@ -0,0 +1,81 @@
+using System;
+using System.Collections.Generic;
+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;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class SeguradoraEndereco : EnderecoBase, IDomain
+{
+ public Empresa Empresa { get; set; }
+
+ public Seguradora Seguradora { get; set; }
+
+ public TipoEndereco Tipo { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(base.Cep))
+ {
+ list.AddValue("Cep", Messages.Obrigatorio);
+ }
+ else if (!base.Cep.ValidacaoCep())
+ {
+ list.AddValue("Cep", Messages.Invalido);
+ }
+ if (string.IsNullOrWhiteSpace(base.Estado))
+ {
+ list.AddValue("Estado", Messages.Obrigatorio);
+ }
+ else if (!base.Estado.ValidacaoEstado())
+ {
+ list.AddValue("Estado", Messages.Invalido);
+ }
+ if (string.IsNullOrWhiteSpace(base.Endereco))
+ {
+ list.AddValue("Endereco", Messages.Obrigatorio);
+ }
+ else if (base.Endereco.Length > 60)
+ {
+ list.AddValue("Endereco", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (string.IsNullOrWhiteSpace(base.Numero))
+ {
+ list.AddValue("Numero", Messages.Obrigatorio);
+ }
+ else if (base.Numero.Length > 5)
+ {
+ list.AddValue("Numero", string.Format(Messages.MaiorQueLimite, 5));
+ }
+ if (string.IsNullOrWhiteSpace(base.Bairro))
+ {
+ list.AddValue("Bairro", Messages.Obrigatorio);
+ }
+ else if (base.Bairro.Length > 60)
+ {
+ list.AddValue("Bairro", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (string.IsNullOrWhiteSpace(base.Cidade))
+ {
+ list.AddValue("Cidade", Messages.Obrigatorio);
+ }
+ else if (base.Cidade.Length > 30)
+ {
+ list.AddValue("Cidade", string.Format(Messages.MaiorQueLimite, 30));
+ }
+ string complemento = base.Complemento;
+ if (complemento != null && complemento.Length > 30)
+ {
+ list.AddValue("Complemento", string.Format(Messages.MaiorQueLimite, 30));
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Sinistro.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Sinistro.cs
new file mode 100644
index 0000000..54176db
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Sinistro.cs
@@ -0,0 +1,421 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Globalization;
+using Gestor.Model.Attributes;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Sinistro : DomainBase, IDomain
+{
+ private string _numero;
+
+ private DateTime? _dataReclamacao;
+
+ private string _itemSinistrado;
+
+ private string _descricao;
+
+ private string _observacao;
+
+ private string _motivo;
+
+ private string _auxiliar;
+
+ private string _observacaoInterna;
+
+ private DateTime? _horaReclamacao;
+
+ public ControleSinistro ControleSinistro { get; set; }
+
+ [Log(true)]
+ public SinistroAuto SinistroAuto { get; set; }
+
+ [Log(true)]
+ public SinistroVida SinistroVida { get; set; }
+
+ [Log(true)]
+ public string Numero
+ {
+ get
+ {
+ return _numero?.ToUpper();
+ }
+ set
+ {
+ _numero = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("DATA RECLAMAÇÃO")]
+ public DateTime? DataReclamacao
+ {
+ get
+ {
+ return _dataReclamacao;
+ }
+ set
+ {
+ if (value.HasValue)
+ {
+ if (!HoraReclamacao.HasValue)
+ {
+ HoraReclamacao = value;
+ }
+ _dataReclamacao = DateTime.Parse($"{value.Value:d} {HoraReclamacao.Value:T}");
+ }
+ else
+ {
+ _dataReclamacao = null;
+ }
+ }
+ }
+
+ public DateTime? HoraReclamacao
+ {
+ get
+ {
+ return _horaReclamacao;
+ }
+ set
+ {
+ _horaReclamacao = value;
+ if (value.HasValue)
+ {
+ DataReclamacao = (DataReclamacao.HasValue ? new DateTime?(DateTime.Parse($"{DataReclamacao.Value:d} {value:T}")) : null);
+ }
+ }
+ }
+
+ [Log(true)]
+ [Description("DATA LIQUIDAÇÃO")]
+ public DateTime? DataLiquidacao { get; set; }
+
+ public bool Ativo { get; set; }
+
+ [Log(true)]
+ [Description("ITEM SINISTRADO")]
+ public string ItemSinistrado
+ {
+ get
+ {
+ return _itemSinistrado?.ToUpper();
+ }
+ set
+ {
+ _itemSinistrado = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("DESCRIÇÃO")]
+ public string Descricao
+ {
+ get
+ {
+ return _descricao?.ToUpper();
+ }
+ set
+ {
+ _descricao = value;
+ }
+ }
+
+ public string Observacao
+ {
+ get
+ {
+ return _observacao;
+ }
+ set
+ {
+ _observacao = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("VALOR")]
+ public decimal Valor { get; set; }
+
+ [Log(true)]
+ [Description("MOTIVO")]
+ public string Motivo
+ {
+ get
+ {
+ return _motivo?.ToUpper();
+ }
+ set
+ {
+ _motivo = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("VALOR ORÇADO")]
+ public decimal ValorOrcado { get; set; }
+
+ [Log(true)]
+ [Description("VALOR LIBERADO")]
+ public decimal ValorLiberado { get; set; }
+
+ [Log(true)]
+ [Description("VALOR PAGO")]
+ public decimal ValorPago { get; set; }
+
+ [Log(true)]
+ [Description("VALOR FRANQUIA")]
+ public decimal ValorFranquia { get; set; }
+
+ [Log(true)]
+ [Description("AUXILIAR")]
+ public string Auxiliar
+ {
+ get
+ {
+ return _auxiliar?.ToUpper();
+ }
+ set
+ {
+ _auxiliar = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("VALOR SALVADO")]
+ public decimal? ValorSalvado { get; set; }
+
+ public string ObservacaoInterna
+ {
+ get
+ {
+ return _observacaoInterna;
+ }
+ set
+ {
+ _observacaoInterna = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("STATUS")]
+ public StatusSinistro? StatusSinistro { get; set; }
+
+ [Log(true)]
+ [Description("TIPO")]
+ public TipoSinistro? TipoSinistro { get; set; }
+
+ [Log(true)]
+ [Description("STATUS PERSONALIZADO")]
+ public string StatusPersonalizado { get; set; }
+
+ [Log(true)]
+ [Description("DATA CRIACAO")]
+ public DateTime? DataCriacao { get; set; }
+
+ [Log(true)]
+ [Description("USUARIO CRIACAO")]
+ public long IdUsuarioCriacao { get; set; }
+
+ [Log(true)]
+ [Description("DATA CRIAÇÃO")]
+ public DateTime? DataAlteracao { get; set; }
+
+ [Log(true)]
+ [Description("USUARIO ALTERACAO")]
+ public long IdUsuarioAlteracao { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (DataReclamacao.HasValue && (DateTime.Compare(DataReclamacao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(DataReclamacao.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("DataReclamacao", string.Format(Messages.DataInvalida));
+ }
+ if (HoraReclamacao.HasValue && (DateTime.Compare(HoraReclamacao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(HoraReclamacao.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("HoraReclamacao", string.Format(Messages.DataInvalida));
+ }
+ if (DataLiquidacao.HasValue && (DateTime.Compare(DataLiquidacao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(DataLiquidacao.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("DataLiquidacao", string.Format(Messages.DataInvalida));
+ }
+ if (ControleSinistro != null)
+ {
+ list.AddRange(ControleSinistro.Validate());
+ }
+ if (!DataReclamacao.HasValue)
+ {
+ list.AddValue("DataReclamacao", Messages.Obrigatorio);
+ }
+ if (StatusSinistro.GetValueOrDefault() != Gestor.Model.Common.StatusSinistro.EmAndamento && !DataLiquidacao.HasValue)
+ {
+ list.AddValue("DataLiquidacao", Messages.Obrigatorio);
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ List<TupleList> list = new List<TupleList>();
+ TupleList tupleList = new TupleList();
+ ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>();
+ object item;
+ if (TipoSinistro.HasValue)
+ {
+ TipoSinistro? tipoSinistro = TipoSinistro;
+ item = (tipoSinistro.HasValue ? tipoSinistro.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item = "";
+ }
+ observableCollection.Add(new Tuple<string, string, string>("TIPO DO SINISTRO", (string)item, ""));
+ observableCollection.Add(new Tuple<string, string, string>("ITEM SINISTRADO", string.IsNullOrWhiteSpace(ItemSinistrado) ? "" : ItemSinistrado, ""));
+ observableCollection.Add(new Tuple<string, string, string>("NÚMERO DO SINISTRO", string.IsNullOrWhiteSpace(Numero) ? "" : Numero, ""));
+ observableCollection.Add(new Tuple<string, string, string>("DATA DO SINISTRO", (ControleSinistro == null) ? "" : ControleSinistro?.DataSinistro?.ToShortDateString(), ""));
+ observableCollection.Add(new Tuple<string, string, string>("HORA DO SINISTRO", (ControleSinistro == null) ? "" : ControleSinistro?.HoraSinistro?.ToShortTimeString(), ""));
+ observableCollection.Add(new Tuple<string, string, string>("DATA DA RECLAMAÇÃO", (!DataReclamacao.HasValue) ? "" : DataReclamacao?.ToShortDateString(), ""));
+ observableCollection.Add(new Tuple<string, string, string>("HORA DA RECLAMAÇÃO", (!HoraReclamacao.HasValue) ? "" : HoraReclamacao?.ToShortTimeString(), ""));
+ observableCollection.Add(new Tuple<string, string, string>("DATA DE LIQUIDAÇÃO", (!DataLiquidacao.HasValue) ? "" : DataLiquidacao?.ToShortDateString(), ""));
+ object item2;
+ if (StatusSinistro.HasValue)
+ {
+ StatusSinistro? statusSinistro = StatusSinistro;
+ item2 = (statusSinistro.HasValue ? statusSinistro.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item2 = "";
+ }
+ observableCollection.Add(new Tuple<string, string, string>("SITUAÇÃO", (string)item2, ""));
+ observableCollection.Add(new Tuple<string, string, string>("VALOR", Valor.ToString(new CultureInfo("pt-BR")), ""));
+ observableCollection.Add(new Tuple<string, string, string>("VALOR ORÇADO", ValorOrcado.ToString(new CultureInfo("pt-BR")), ""));
+ observableCollection.Add(new Tuple<string, string, string>("VALOR LIBERADO", ValorLiberado.ToString(new CultureInfo("pt-BR")), ""));
+ observableCollection.Add(new Tuple<string, string, string>("VALOR PAGO", ValorPago.ToString(new CultureInfo("pt-BR")), ""));
+ observableCollection.Add(new Tuple<string, string, string>("VALOR SALVADO", ValorSalvado.ToString(), ""));
+ observableCollection.Add(new Tuple<string, string, string>("VALOR FRANQUIA", ValorFranquia.ToString(new CultureInfo("pt-BR")), ""));
+ observableCollection.Add(new Tuple<string, string, string>("MOTIVO", string.IsNullOrWhiteSpace(Motivo) ? "" : Motivo, ""));
+ observableCollection.Add(new Tuple<string, string, string>("AUXILIAR", string.IsNullOrWhiteSpace(Auxiliar) ? "" : Auxiliar, ""));
+ observableCollection.Add(new Tuple<string, string, string>("DESCRIÇÃO", string.IsNullOrWhiteSpace(Descricao) ? "" : Descricao, ""));
+ tupleList.Tuples = observableCollection;
+ list.Add(tupleList);
+ List<TupleList> list2 = list;
+ ObservableCollection<Tuple<string, string, string>> tuples2;
+ object item4;
+ if (SinistroAuto != null)
+ {
+ list2[0].Tuples.Add(new Tuple<string, string, string>("NÚMERO DO B.O.", string.IsNullOrWhiteSpace(SinistroAuto?.NumeroBo) ? "" : SinistroAuto?.NumeroBo, ""));
+ ObservableCollection<Tuple<string, string, string>> tuples = list2[0].Tuples;
+ object item3;
+ if (SinistroAuto.TipoPerda.HasValue)
+ {
+ SinistroAuto sinistroAuto = SinistroAuto;
+ if (sinistroAuto == null)
+ {
+ item3 = null;
+ }
+ else
+ {
+ TipoPerda? tipoPerda = sinistroAuto.TipoPerda;
+ item3 = (tipoPerda.HasValue ? tipoPerda.GetValueOrDefault().GetDescription() : null);
+ }
+ }
+ else
+ {
+ item3 = "";
+ }
+ tuples.Add(new Tuple<string, string, string>("TIPO DE PERDA", (string)item3, ""));
+ tuples2 = list2[0].Tuples;
+ if (SinistroAuto.Culpado.HasValue)
+ {
+ SinistroAuto sinistroAuto2 = SinistroAuto;
+ if (sinistroAuto2 == null || sinistroAuto2.Culpado != false)
+ {
+ item4 = "SIM";
+ goto IL_0571;
+ }
+ }
+ item4 = "NÃO";
+ goto IL_0571;
+ }
+ goto IL_0912;
+ IL_0912:
+ if (SinistroVida != null)
+ {
+ ObservableCollection<Tuple<string, string, string>> tuples3 = list2[0].Tuples;
+ SinistroVida sinistroVida = SinistroVida;
+ object item5;
+ if (sinistroVida != null && sinistroVida.TipoPerda.HasValue)
+ {
+ SinistroVida sinistroVida2 = SinistroVida;
+ if (sinistroVida2 == null)
+ {
+ item5 = null;
+ }
+ else
+ {
+ TipoPerda? tipoPerda = sinistroVida2.TipoPerda;
+ item5 = (tipoPerda.HasValue ? tipoPerda.GetValueOrDefault().GetDescription() : null);
+ }
+ }
+ else
+ {
+ item5 = "";
+ }
+ tuples3.Add(new Tuple<string, string, string>("TIPO DE PERDA", (string)item5, ""));
+ ObservableCollection<Tuple<string, string, string>> tuples4 = list2[0].Tuples;
+ SinistroVida sinistroVida3 = SinistroVida;
+ tuples4.Add(new Tuple<string, string, string>("AUXÍLIO FUNERAL", (sinistroVida3 == null || !sinistroVida3.AuxFuneral.HasValue) ? "" : ((SinistroVida?.AuxFuneral.Value).Value ? "SIM" : "NÃO"), ""));
+ ObservableCollection<Tuple<string, string, string>> tuples5 = list2[0].Tuples;
+ SinistroVida sinistroVida4 = SinistroVida;
+ object item6;
+ if (sinistroVida4 != null && sinistroVida4.EstadoCivil.HasValue)
+ {
+ SinistroVida sinistroVida5 = SinistroVida;
+ if (sinistroVida5 == null)
+ {
+ item6 = null;
+ }
+ else
+ {
+ EstadoCivil? estadoCivil = sinistroVida5.EstadoCivil;
+ item6 = (estadoCivil.HasValue ? estadoCivil.GetValueOrDefault().GetDescription() : null);
+ }
+ }
+ else
+ {
+ item6 = "";
+ }
+ tuples5.Add(new Tuple<string, string, string>("ESTADO CIVIL", (string)item6, ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("CERTIDÃO DE ÓBITO", string.IsNullOrWhiteSpace(SinistroVida?.CertObito) ? "" : SinistroVida?.CertObito, ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("BENEFICIÁRIO", string.IsNullOrWhiteSpace(SinistroVida?.Beneficiario) ? "" : SinistroVida?.Beneficiario, ""));
+ }
+ return list2;
+ IL_0571:
+ tuples2.Add(new Tuple<string, string, string>("CONSIDERA-SE CULPADO?", (string)item4, ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("ÚLTIMO DOC. ENVIADO", (!SinistroAuto.UltimoDocEnviado.HasValue) ? "" : SinistroAuto?.UltimoDocEnviado?.ToShortDateString(), ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("ENDEREÇO", string.IsNullOrWhiteSpace(SinistroAuto?.Endereco) ? "" : SinistroAuto?.Endereco, ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("ENVOLVIDO/PROPRIETÁRIO", string.IsNullOrWhiteSpace(SinistroAuto?.Envolvido) ? "" : SinistroAuto?.Envolvido, ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("MOTORISTA", string.IsNullOrWhiteSpace(SinistroAuto?.Motorista) ? "" : SinistroAuto?.Motorista, ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("DDD", string.IsNullOrWhiteSpace(SinistroAuto?.Ddd) ? "" : SinistroAuto?.Ddd, ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("TELEFONE", string.IsNullOrWhiteSpace(SinistroAuto?.Telefone) ? "" : SinistroAuto?.Telefone, ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("E-MAIL", string.IsNullOrWhiteSpace(SinistroAuto?.Email) ? "" : SinistroAuto?.Email, ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("VALOR MECÂNICA", SinistroAuto?.ValorMecanica.ToString(new CultureInfo("pt-BR")), ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("PARCEIRO MECÂNICA", (SinistroAuto?.ParceiroMecanica == null) ? "" : SinistroAuto?.ParceiroMecanica?.Nome, ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("VALOR FUNILARIA", SinistroAuto?.ValorFunilaria.ToString(new CultureInfo("pt-BR")), ""));
+ list2[0].Tuples.Add(new Tuple<string, string, string>("PARCEIRO FUNILARIA", (SinistroAuto?.ParceiroFunilaria == null) ? "" : SinistroAuto?.ParceiroFunilaria?.Nome, ""));
+ goto IL_0912;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/SinistroAuto.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/SinistroAuto.cs
new file mode 100644
index 0000000..0fac555
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/SinistroAuto.cs
@@ -0,0 +1,199 @@
+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 Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+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;
+
+ public Sinistro Sinistro { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("NUMERO B.O.")]
+ public string NumeroBo
+ {
+ get
+ {
+ return _numeroBo?.ToUpper();
+ }
+ set
+ {
+ _numeroBo = value;
+ }
+ }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("TIPO PERDA")]
+ public TipoPerda? TipoPerda { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("DECLARA-SE CULPADO")]
+ public bool? Culpado { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("DATA ÚLTIMO DOC. ENVIADO")]
+ public DateTime? UltimoDocEnviado { get; set; }
+
+ [Log(true)]
+ [Description("MECÂNICA")]
+ public Parceiro ParceiroMecanica { get; set; }
+
+ [Log(true)]
+ [Description("FUNILARIA")]
+ public Parceiro ParceiroFunilaria { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("ENDEREÇO")]
+ public string Endereco
+ {
+ get
+ {
+ return _endereco?.ToUpper();
+ }
+ set
+ {
+ _endereco = value;
+ }
+ }
+
+ [Log(true)]
+ [Name(true)]
+ public string Envolvido
+ {
+ get
+ {
+ return _envolvido?.ToUpper();
+ }
+ set
+ {
+ _envolvido = value;
+ }
+ }
+
+ [Log(true)]
+ [Name(true)]
+ public string Motorista
+ {
+ get
+ {
+ return _motorista?.ToUpper();
+ }
+ set
+ {
+ _motorista = value;
+ }
+ }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("PREFIXO")]
+ public string Ddd
+ {
+ get
+ {
+ return _ddd?.ToUpper().Trim();
+ }
+ set
+ {
+ _ddd = value;
+ }
+ }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("TELEFONE")]
+ public string Telefone
+ {
+ get
+ {
+ return _telefone?.ToUpper().Trim();
+ }
+ set
+ {
+ _telefone = value;
+ }
+ }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("E-MAIL")]
+ public string Email
+ {
+ get
+ {
+ return _email?.ToLower().Trim();
+ }
+ set
+ {
+ _email = value;
+ }
+ }
+
+ [Log(true)]
+ [Name(true)]
+ public string Cnh
+ {
+ get
+ {
+ return _cnh?.ToUpper().Trim();
+ }
+ set
+ {
+ _cnh = value;
+ }
+ }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("VALOR MECÂNICA")]
+ public decimal ValorMecanica { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("VALOR FINILARIA")]
+ public decimal ValorFunilaria { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (Sinistro != null)
+ {
+ list.AddRange(Sinistro.Validate());
+ }
+ if (UltimoDocEnviado.HasValue && (DateTime.Compare(UltimoDocEnviado.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(UltimoDocEnviado.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("UltimoDocEnviado", string.Format(Messages.DataInvalida));
+ }
+ return list;
+ }
+}
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<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (Sinistro != null)
+ {
+ list.AddRange(Sinistro.Validate());
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Status.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Status.cs
new file mode 100644
index 0000000..5f22e1b
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Status.cs
@@ -0,0 +1,64 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Status : DomainBase, IDomain
+{
+ private string _nome;
+
+ [Log(true)]
+ [Name(true)]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ [Log(true)]
+ public bool Ativo { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Nome))
+ {
+ list.AddValue("Nome", Messages.Obrigatorio);
+ }
+ else if (Nome.Length > 60)
+ {
+ list.AddValue("Nome", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("NOME", string.IsNullOrWhiteSpace(Nome) ? "" : Nome, ""),
+ new Tuple<string, string, string>("ATIVO", Ativo ? "SIM" : "NÃO", "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/TipoVendedor.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/TipoVendedor.cs
new file mode 100644
index 0000000..8966dff
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/TipoVendedor.cs
@@ -0,0 +1,102 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Runtime.CompilerServices;
+using Gestor.Model.Attributes;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class TipoVendedor : DomainBase, IDomain
+{
+ private bool _selecionado;
+
+ private string _descricao;
+
+ private bool? _ativo;
+
+ public bool Selecionado
+ {
+ get
+ {
+ return _selecionado;
+ }
+ set
+ {
+ if (value != _selecionado)
+ {
+ _selecionado = value;
+ OnPropertyChanged("Selecionado");
+ }
+ }
+ }
+
+ [Log(true)]
+ [Name(true)]
+ [Description("DESCRIÇÃO")]
+ public string Descricao
+ {
+ get
+ {
+ return _descricao?.ToUpper();
+ }
+ set
+ {
+ _descricao = value;
+ }
+ }
+
+ [Log(true)]
+ public bool? Ativo
+ {
+ get
+ {
+ return _ativo;
+ }
+ set
+ {
+ _ativo = value.GetValueOrDefault(true);
+ }
+ }
+
+ public bool? Inserido { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Descricao))
+ {
+ list.AddValue("Descricao", Messages.Obrigatorio);
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("DESCRIÇÃO", string.IsNullOrWhiteSpace(Descricao) ? "" : Descricao, ""),
+ new Tuple<string, string, string>("ATIVO", (!Ativo.HasValue) ? "" : (Ativo.Value ? "SIM" : "NÃO"), "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/TitularesVida.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/TitularesVida.cs
new file mode 100644
index 0000000..6ec26af
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/TitularesVida.cs
@@ -0,0 +1,197 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Runtime.CompilerServices;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class TitularesVida : DomainBase, IDomain, INotifyPropertyChanged
+{
+ private string _codigo;
+
+ private string _fatura;
+
+ private string _nome;
+
+ private string _observacao;
+
+ private string _matricula;
+
+ private decimal? _premio;
+
+ private decimal? _capital;
+
+ private bool _selecionado;
+
+ public bool Selecionado
+ {
+ get
+ {
+ return _selecionado;
+ }
+ set
+ {
+ if (value != _selecionado)
+ {
+ _selecionado = value;
+ OnPropertyChanged("Selecionado");
+ }
+ }
+ }
+
+ public long IdItem { get; set; }
+
+ public string Codigo
+ {
+ get
+ {
+ return _codigo?.ToUpper();
+ }
+ set
+ {
+ _codigo = value;
+ }
+ }
+
+ public DateTime? Inicio { get; set; }
+
+ public DateTime? Fim { get; set; }
+
+ public string Fatura
+ {
+ get
+ {
+ return _fatura?.ToUpper();
+ }
+ set
+ {
+ _fatura = value;
+ }
+ }
+
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ public string Observacao
+ {
+ get
+ {
+ return _observacao?.ToUpper();
+ }
+ set
+ {
+ _observacao = value;
+ }
+ }
+
+ public DateTime? Nascimento { get; set; }
+
+ public string Cpf { get; set; }
+
+ public string Matricula
+ {
+ get
+ {
+ return _matricula?.ToUpper();
+ }
+ set
+ {
+ _matricula = value;
+ }
+ }
+
+ public decimal? Premio
+ {
+ get
+ {
+ return _premio.GetValueOrDefault();
+ }
+ set
+ {
+ _premio = value;
+ }
+ }
+
+ public decimal? Capital
+ {
+ get
+ {
+ return _capital.GetValueOrDefault();
+ }
+ set
+ {
+ _capital = value;
+ }
+ }
+
+ public TipoTitular? Tipo { get; set; }
+
+ public TitularesVida Dependente { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Nome))
+ {
+ list.AddValue("Nome", Messages.Obrigatorio);
+ }
+ else if (Nome.Length > 150)
+ {
+ list.AddValue("Nome", string.Format(Messages.MaiorQueLimite, 150));
+ }
+ if (!Inicio.HasValue)
+ {
+ list.AddValue("Inicio|INÍCIO", Messages.Obrigatorio);
+ }
+ else if (DateTime.Compare(Inicio.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Inicio.Value, new DateTime(9999, 12, 31)) > 0)
+ {
+ list.AddValue("Inicio|INÍCIO", string.Format(Messages.DataInvalida));
+ }
+ if (Fim.HasValue && (DateTime.Compare(Fim.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Fim.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Fim", string.Format(Messages.DataInvalida));
+ }
+ if (Nascimento.HasValue && (DateTime.Compare(Nascimento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Nascimento.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Nascimento", string.Format(Messages.DataInvalida));
+ }
+ if ((!Nascimento.HasValue || Funcoes.GetAge(Nascimento.Value) >= 18) && !string.IsNullOrWhiteSpace(Cpf) && !Cpf.ValidacaoDocumento())
+ {
+ list.AddValue("Cpf", Messages.Invalido);
+ }
+ if (!Tipo.HasValue)
+ {
+ list.AddValue("Tipo", Messages.Obrigatorio);
+ }
+ if (Tipo.GetValueOrDefault() == TipoTitular.Dependente && Dependente == null)
+ {
+ list.AddValue("Dependente", "OBRIGATÓRIO. PESQUISE POR UM DOS TITULARES\nQUE SEJA DO TIPO SÓCIO OU FUNCIONÁRIO");
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/TupleList.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/TupleList.cs
new file mode 100644
index 0000000..b5d7763
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/TupleList.cs
@@ -0,0 +1,9 @@
+using System;
+using System.Collections.ObjectModel;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class TupleList
+{
+ public ObservableCollection<Tuple<string, string, string>> Tuples { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Usuario.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Usuario.cs
new file mode 100644
index 0000000..969b8e6
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Usuario.cs
@@ -0,0 +1,625 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Text.RegularExpressions;
+using Gestor.Model.API;
+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 Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Usuario : EnderecoBase, IDomain
+{
+ private string _nome;
+
+ private string _prefixo;
+
+ private string _telefone;
+
+ private string _prefixo2;
+
+ private string _telefone2;
+
+ private string _email;
+
+ private string _documento;
+
+ private string _identidade;
+
+ private string _estadoEmissor;
+
+ private string _agencia;
+
+ private string _conta;
+
+ private string _login;
+
+ private bool? _segunda;
+
+ private bool? _terca;
+
+ private bool? _quarta;
+
+ private bool? _quinta;
+
+ private bool? _sexta;
+
+ private bool? _sabado;
+
+ private bool? _domingo;
+
+ private bool? _dashboard;
+
+ private TipoTelaInicial? _telaInicial;
+
+ public long IdEmpresa { get; set; }
+
+ [Log(true)]
+ public TipoTelaInicial? TelaInicial
+ {
+ get
+ {
+ return _telaInicial.GetValueOrDefault();
+ }
+ set
+ {
+ _telaInicial = value.GetValueOrDefault();
+ }
+ }
+
+ [Log(true)]
+ [Name(true)]
+ public string Nome
+ {
+ get
+ {
+ return _nome;
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ public bool Selecionado { get; set; }
+
+ [Log(true)]
+ [Description("DATA DE NASCIMENTO")]
+ public DateTime? Nascimento { get; set; }
+
+ [Log(true)]
+ public Sexo Sexo { get; set; }
+
+ [Log(true)]
+ public string Login
+ {
+ get
+ {
+ return _login?.ToUpper();
+ }
+ set
+ {
+ _login = value;
+ }
+ }
+
+ public string SenhaAnterior { get; set; } = string.Empty;
+
+
+ public string Senha { get; set; }
+
+ [Log(true)]
+ [Description("TIPO DO TELEFONE 1")]
+ public TipoTelefone? TipoTelefone { get; set; }
+
+ [Log(true)]
+ [Description("PREFIXO TELEFONE 1")]
+ public string Prefixo
+ {
+ get
+ {
+ return _prefixo?.ToUpper().Trim();
+ }
+ set
+ {
+ _prefixo = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("TELEFONE 1")]
+ public string Telefone
+ {
+ get
+ {
+ return _telefone?.ToUpper().Trim();
+ }
+ set
+ {
+ _telefone = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("TIPO DO TELEFONE 2")]
+ public TipoTelefone? TipoTelefone2 { get; set; }
+
+ [Log(true)]
+ [Description("PREFIXO TELEFONE 2")]
+ public string Prefixo2
+ {
+ get
+ {
+ return _prefixo2?.ToUpper().Trim();
+ }
+ set
+ {
+ _prefixo2 = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("TELEFONE 2")]
+ public string Telefone2
+ {
+ get
+ {
+ return _telefone2?.ToUpper().Trim();
+ }
+ set
+ {
+ _telefone2 = value;
+ }
+ }
+
+ [Log(true)]
+ public string Email
+ {
+ get
+ {
+ return _email?.ToLower().Trim();
+ }
+ set
+ {
+ _email = value;
+ }
+ }
+
+ [Log(true)]
+ public string Documento
+ {
+ get
+ {
+ return _documento?.ToUpper().Trim();
+ }
+ set
+ {
+ _documento = value;
+ }
+ }
+
+ [Log(true)]
+ public string Identidade
+ {
+ get
+ {
+ return _identidade?.ToUpper().Trim();
+ }
+ set
+ {
+ _identidade = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("ESTADO EMISSOR")]
+ public string EstadoEmissor
+ {
+ get
+ {
+ return _estadoEmissor?.ToUpper().Trim();
+ }
+ set
+ {
+ _estadoEmissor = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("DATA DE EXPEDIÇÃO")]
+ public DateTime? Expedicao { get; set; }
+
+ [Log(true)]
+ public Banco Banco { get; set; }
+
+ [Log(true)]
+ [Description("AGÊNCIA")]
+ public string Agencia
+ {
+ get
+ {
+ return _agencia?.ToUpper().Trim();
+ }
+ set
+ {
+ _agencia = value;
+ }
+ }
+
+ [Log(true)]
+ public string Conta
+ {
+ get
+ {
+ return _conta?.ToUpper().Trim();
+ }
+ set
+ {
+ _conta = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("ACESSO AO MOBILE")]
+ public bool Mobile { get; set; }
+
+ [Log(true)]
+ [Description("ACESSO AOS RESULTADOS MOBILE")]
+ public bool Resultados { get; set; }
+
+ public bool Aggilizador { get; set; }
+
+ public bool Excluido { get; set; }
+
+ [Log(true)]
+ [Description("PERMISSÃO ACESSO AGGILIZADOR")]
+ public long? PermissaoAggilizador { get; set; }
+
+ [Log(true)]
+ public bool Administrador { get; set; }
+
+ [Description("INÍCIO DO ACESSO")]
+ public DateTime? InicioAcesso { get; set; }
+
+ [Description("FIM DO ACESSO")]
+ public DateTime? FimAcesso { get; set; }
+
+ [Log(true)]
+ [Description("ACESSO ÀS SEGUNDAS-FEIRAS")]
+ public bool? Segunda
+ {
+ get
+ {
+ return _segunda;
+ }
+ set
+ {
+ _segunda = value.GetValueOrDefault(true);
+ }
+ }
+
+ [Log(true)]
+ [Description("ACESSO ÀS TERÇAS-FEIRAS")]
+ public bool? Terca
+ {
+ get
+ {
+ return _terca;
+ }
+ set
+ {
+ _terca = value.GetValueOrDefault(true);
+ }
+ }
+
+ [Log(true)]
+ [Description("ACESSO ÁS QUARTAS-FEIRAS")]
+ public bool? Quarta
+ {
+ get
+ {
+ return _quarta;
+ }
+ set
+ {
+ _quarta = value.GetValueOrDefault(true);
+ }
+ }
+
+ [Log(true)]
+ [Description("ACESSO ÁS QUINTAS-FEIRAS")]
+ public bool? Quinta
+ {
+ get
+ {
+ return _quinta;
+ }
+ set
+ {
+ _quinta = value.GetValueOrDefault(true);
+ }
+ }
+
+ [Log(true)]
+ [Description("ACESSO ÁS SEXTAS-FEIRAS")]
+ public bool? Sexta
+ {
+ get
+ {
+ return _sexta;
+ }
+ set
+ {
+ _sexta = value.GetValueOrDefault(true);
+ }
+ }
+
+ [Log(true)]
+ [Description("ACESSO AOS SÁBADOS")]
+ public bool? Sabado
+ {
+ get
+ {
+ return _sabado;
+ }
+ set
+ {
+ _sabado = value.GetValueOrDefault(true);
+ }
+ }
+
+ [Log(true)]
+ [Description("ACESSO AOS DOMINGOS")]
+ public bool? Domingo
+ {
+ get
+ {
+ return _domingo;
+ }
+ set
+ {
+ _domingo = value.GetValueOrDefault(true);
+ }
+ }
+
+ [Log(true)]
+ public string Cargo { get; set; }
+
+ public string Visita { get; set; }
+
+ [Log(true)]
+ [Description("FILTRO INICIAL")]
+ public TipoFiltroCliente? FiltroInicial { get; set; }
+
+ [Log(true)]
+ [Description("ACESSO AO DASHBOARD")]
+ public bool? Dashboard
+ {
+ get
+ {
+ return _dashboard;
+ }
+ set
+ {
+ _dashboard = value.GetValueOrDefault(true);
+ }
+ }
+
+ [Log(true)]
+ [Description("PERMISSÃO ADMINISTRADOR CENTRAL SEGURADO")]
+ public bool AdministradorCentralSegurado { get; set; }
+
+ public string SsoId { get; set; }
+
+ public string TokenSso { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public UserSso ToUserSso(string serial, string documentoEmpresa, string ssoId = null)
+ {
+ return new UserSso
+ {
+ Id = ssoId,
+ Name = Nome,
+ Username = Login,
+ Password = Senha,
+ Serial = serial,
+ CustomerDocument = documentoEmpresa,
+ IdEmpresa = IdEmpresa,
+ Document = Documento,
+ IsDeleted = false,
+ Email = (Email ?? string.Empty),
+ Phone = ((string.IsNullOrEmpty(Prefixo) || string.IsNullOrEmpty(Telefone)) ? string.Empty : (Prefixo.Clear() + Telefone.Clear()))
+ };
+ }
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (Expedicao.HasValue && (DateTime.Compare(Expedicao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Expedicao.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Expedicao", string.Format(Messages.DataInvalida));
+ }
+ if (Nascimento.HasValue && (DateTime.Compare(Nascimento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Nascimento.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("Nascimento", string.Format(Messages.DataInvalida));
+ }
+ if (InicioAcesso.HasValue && FimAcesso.HasValue && InicioAcesso.Value.TimeOfDay > FimAcesso.Value.TimeOfDay)
+ {
+ list.AddValue("FimAcesso|FIM DO ACESSO", "O HORÁRIO DO FIM DO ACESSO NÃO PODE SER ANTERIOR AO HORÁRIO DO INICIO DO ACESSO");
+ }
+ if (string.IsNullOrEmpty(Nome))
+ {
+ list.AddValue("Nome", Messages.Obrigatorio);
+ }
+ else if (Nome.Length > 50)
+ {
+ list.AddValue("Nome", string.Format(Messages.MaiorQueLimite, 50));
+ }
+ if (!string.IsNullOrEmpty(Documento) && !Documento.ValidacaoDocumento())
+ {
+ list.AddValue("Documento", Messages.Invalido);
+ }
+ if (string.IsNullOrEmpty(Login))
+ {
+ list.AddValue("Login", Messages.Obrigatorio);
+ }
+ else if (Login.Length > 30)
+ {
+ list.AddValue("Login", string.Format(Messages.MaiorQueLimite, 30));
+ }
+ if (!string.IsNullOrEmpty(Login) && !Regex.IsMatch(Login, "^(?!.* {2})[a-zA-Z0-9](?:[a-zA-Z0-9 .]{0,49}[a-zA-Z0-9])?$"))
+ {
+ list.AddValue("Login|USUARIO", "USUARIO INVALIDO,\nUSUARIO SOMENTE DEVE CONTER LETRAS E NUMEROS,\nNÃO DEVE CONTER MAIS DE UM ESPAÇO,\nNÃO DEVE TER ESPAÇO NO INICIO E NO FIM.\nEXEMPLO VALIDO:\nUSUARIO01 OU USUARIO 02 OU USUARIO.03");
+ }
+ if (string.IsNullOrEmpty(Senha))
+ {
+ list.AddValue("Senha", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrEmpty(Email))
+ {
+ list.AddValue("Email", Messages.Obrigatorio);
+ }
+ if (!string.IsNullOrEmpty(EstadoEmissor) && !EstadoEmissor.ValidacaoEstado())
+ {
+ list.AddValue("EstadoEmissor", Messages.Invalido);
+ }
+ if (Expedicao.HasValue && !Expedicao.ValidacaoDataPassada())
+ {
+ list.AddValue("Expedicao", Messages.Invalido);
+ }
+ if (Nascimento.HasValue && !Nascimento.ValidacaoDataPassada())
+ {
+ list.AddValue("Nascimento", Messages.Invalido);
+ }
+ if (!string.IsNullOrEmpty(base.Cep) && !base.Cep.ValidacaoCep())
+ {
+ list.AddValue("Cep", Messages.Invalido);
+ }
+ if (!string.IsNullOrEmpty(base.Endereco) && base.Endereco.Length > 60)
+ {
+ list.AddValue("Endereco", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (!string.IsNullOrEmpty(base.Numero) && base.Numero.Length > 5)
+ {
+ list.AddValue("Numero", string.Format(Messages.MaiorQueLimite, 5));
+ }
+ if (!string.IsNullOrEmpty(base.Bairro) && base.Bairro.Length > 60)
+ {
+ list.AddValue("Bairro", string.Format(Messages.MaiorQueLimite, 60));
+ }
+ if (!string.IsNullOrEmpty(base.Cidade) && base.Cidade.Length > 30)
+ {
+ list.AddValue("Cidade", string.Format(Messages.MaiorQueLimite, 30));
+ }
+ if (!string.IsNullOrEmpty(base.Estado) && !base.Estado.ValidacaoEstado())
+ {
+ list.AddValue("Estado", Messages.Invalido);
+ }
+ if (!string.IsNullOrEmpty(base.Cep) || !string.IsNullOrEmpty(base.Numero) || !string.IsNullOrEmpty(base.Complemento) || !string.IsNullOrEmpty(base.Endereco) || !string.IsNullOrEmpty(base.Bairro) || !string.IsNullOrEmpty(base.Cidade) || !string.IsNullOrEmpty(base.Estado))
+ {
+ if (string.IsNullOrEmpty(base.Cep))
+ {
+ list.AddValue("Cep", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrEmpty(base.Endereco))
+ {
+ list.AddValue("Endereco", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrEmpty(base.Numero))
+ {
+ list.AddValue("Numero", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrEmpty(base.Bairro))
+ {
+ list.AddValue("Bairro", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrEmpty(base.Cidade))
+ {
+ list.AddValue("Cidade", Messages.Obrigatorio);
+ }
+ if (string.IsNullOrEmpty(base.Estado))
+ {
+ list.AddValue("Estado", Messages.Obrigatorio);
+ }
+ }
+ if (AdministradorCentralSegurado && string.IsNullOrEmpty(Documento))
+ {
+ list.AddValue("Documento", Messages.Obrigatorio);
+ }
+ if (AdministradorCentralSegurado && string.IsNullOrEmpty(Prefixo))
+ {
+ list.AddValue("Prefixo", Messages.Obrigatorio);
+ }
+ if (AdministradorCentralSegurado && string.IsNullOrEmpty(Telefone))
+ {
+ list.AddValue("Telefone", Messages.Obrigatorio);
+ }
+ if (AdministradorCentralSegurado && string.IsNullOrEmpty(Email))
+ {
+ list.AddValue("Email", Messages.Obrigatorio);
+ }
+ if (InicioAcesso.HasValue && FimAcesso.HasValue && FimAcesso.Value.TimeOfDay == InicioAcesso.Value.TimeOfDay)
+ {
+ list.AddValue("InicioAcesso", Messages.Invalido);
+ list.AddValue("FimAcesso", Messages.Invalido);
+ }
+ if (Documento == null || string.IsNullOrEmpty(Documento))
+ {
+ list.AddValue("Documento", Messages.Obrigatorio);
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("NOME", string.IsNullOrWhiteSpace(Nome) ? "" : Nome, ""),
+ new Tuple<string, string, string>("CPF/CNPJ", string.IsNullOrWhiteSpace(Documento) ? "" : Documento, ""),
+ new Tuple<string, string, string>("USUÁRIO", string.IsNullOrWhiteSpace(Login) ? "" : Login, ""),
+ new Tuple<string, string, string>("IDENTIDADE", string.IsNullOrWhiteSpace(Identidade) ? "" : Identidade, ""),
+ new Tuple<string, string, string>("ESTADO EMISSOR", string.IsNullOrWhiteSpace(EstadoEmissor) ? "" : EstadoEmissor, ""),
+ new Tuple<string, string, string>("DATA DE EXPEDIÇÃO", (!Expedicao.HasValue) ? "" : Expedicao?.ToShortDateString(), ""),
+ new Tuple<string, string, string>("SEXO", Sexo.GetDescription(), ""),
+ new Tuple<string, string, string>("DATA DE NASCIMENTO", (!Nascimento.HasValue) ? "" : Nascimento?.ToShortDateString(), ""),
+ new Tuple<string, string, string>("BANCO", (Banco == null) ? "" : Banco?.Nome, ""),
+ new Tuple<string, string, string>("AGÊNCIA", string.IsNullOrWhiteSpace(Agencia) ? "" : Agencia, ""),
+ new Tuple<string, string, string>("CONTA", string.IsNullOrWhiteSpace(Conta) ? "" : Conta, ""),
+ new Tuple<string, string, string>("ENDEREÇO", string.IsNullOrWhiteSpace(base.Endereco) ? "" : base.Endereco, ""),
+ new Tuple<string, string, string>("NÚMERO", string.IsNullOrWhiteSpace(base.Numero) ? "" : base.Numero, ""),
+ new Tuple<string, string, string>("COMPLEMENTO", string.IsNullOrWhiteSpace(base.Complemento) ? "" : base.Complemento, ""),
+ new Tuple<string, string, string>("BAIRRO", string.IsNullOrWhiteSpace(base.Bairro) ? "" : base.Bairro, ""),
+ new Tuple<string, string, string>("CIDADE", string.IsNullOrWhiteSpace(base.Cidade) ? "" : base.Cidade, ""),
+ new Tuple<string, string, string>("ESTADO", string.IsNullOrWhiteSpace(base.Estado) ? "" : base.Estado, ""),
+ new Tuple<string, string, string>("CEP", string.IsNullOrWhiteSpace(base.Cep) ? "" : base.Cep, ""),
+ new Tuple<string, string, string>("TIPO TELEFONE", (!TipoTelefone.HasValue) ? "" : TipoTelefone.GetDescription(), ""),
+ new Tuple<string, string, string>("PRIMEIRO PREFIXO", string.IsNullOrWhiteSpace(Prefixo) ? "" : Prefixo, ""),
+ new Tuple<string, string, string>("PRIMEIRO TELEFONE", string.IsNullOrWhiteSpace(Telefone) ? "" : Telefone, ""),
+ new Tuple<string, string, string>("TIPO TELEFONE", (!TipoTelefone2.HasValue) ? "" : TipoTelefone2.GetDescription(), ""),
+ new Tuple<string, string, string>("SEGUNDO PREFIXO", string.IsNullOrWhiteSpace(Prefixo2) ? "" : Prefixo2, ""),
+ new Tuple<string, string, string>("SEGUNDO TELEFONE", string.IsNullOrWhiteSpace(Telefone2) ? "" : Telefone2, ""),
+ new Tuple<string, string, string>("EMAIL", string.IsNullOrWhiteSpace(Email) ? "" : Email, ""),
+ new Tuple<string, string, string>("ACESSO MOBILE", Mobile ? "SIM" : "NÃO", ""),
+ new Tuple<string, string, string>("ACESSO RESULTADOS", Resultados ? "SIM" : "NÃO", ""),
+ new Tuple<string, string, string>("ACESSO INDIVIDUAL AGGILIZADOR", Aggilizador ? "SIM" : "NÃO", ""),
+ new Tuple<string, string, string>("INÍCIO DO ACESSO", (!InicioAcesso.HasValue) ? "" : InicioAcesso?.ToShortTimeString(), ""),
+ new Tuple<string, string, string>("FIM DO ACESSO", (!FimAcesso.HasValue) ? "" : FimAcesso?.ToShortTimeString(), ""),
+ new Tuple<string, string, string>("ADMINISTRADOR CENTRAL SEGURADO", AdministradorCentralSegurado ? "SIM" : "NÃO", "")
+ }
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Vendedor.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Vendedor.cs
new file mode 100644
index 0000000..b9de3b4
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Vendedor.cs
@@ -0,0 +1,245 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel;
+using System.Globalization;
+using System.Runtime.CompilerServices;
+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 Gestor.Model.Validation;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Vendedor : EnderecoBase, IDomain, INotifyPropertyChanged
+{
+ private bool _selecionado;
+
+ private string _nome;
+
+ private string _documento;
+
+ private string _conta;
+
+ private string _agencia;
+
+ private string _observacao;
+
+ private string _titularConta;
+
+ private string _documentoTitular;
+
+ public bool Selecionado
+ {
+ get
+ {
+ return _selecionado;
+ }
+ set
+ {
+ if (value != _selecionado)
+ {
+ _selecionado = value;
+ OnPropertyChanged("Selecionado");
+ }
+ }
+ }
+
+ public Controle Controle { get; set; }
+
+ public long IdEmpresa { get; set; }
+
+ [Log(true)]
+ [Name(true)]
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ public TipoIncidenciaDesconto TipoIncidenciaDesconto { get; set; }
+
+ public decimal? Desconto { get; set; }
+
+ public string Documento
+ {
+ get
+ {
+ return _documento?.ToUpper().Trim();
+ }
+ set
+ {
+ _documento = value;
+ }
+ }
+
+ public string TitularConta
+ {
+ get
+ {
+ return _titularConta?.ToUpper();
+ }
+ set
+ {
+ _titularConta = value;
+ }
+ }
+
+ public string TitularDocumento
+ {
+ get
+ {
+ return _documentoTitular?.ToUpper().Trim();
+ }
+ set
+ {
+ _documentoTitular = value;
+ }
+ }
+
+ public Banco Banco { get; set; }
+
+ public TipoConta TipoConta { get; set; }
+
+ public string Conta
+ {
+ get
+ {
+ return _conta?.ToUpper().Trim();
+ }
+ set
+ {
+ _conta = value;
+ }
+ }
+
+ public string Agencia
+ {
+ get
+ {
+ return _agencia?.ToUpper().Trim();
+ }
+ set
+ {
+ _agencia = value;
+ }
+ }
+
+ public bool Corretora { get; set; }
+
+ public bool Ativo { get; set; }
+
+ public string Observacao
+ {
+ get
+ {
+ return _observacao?.ToUpper();
+ }
+ set
+ {
+ _observacao = value;
+ }
+ }
+
+ public List<VendedorTelefone> Telefones { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
+ {
+ this.PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
+ }
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrEmpty(Nome))
+ {
+ list.AddValue("Nome", Messages.Obrigatorio);
+ }
+ if (!string.IsNullOrWhiteSpace(Documento) && !Documento.ValidacaoDocumento())
+ {
+ list.AddValue("Documento", Messages.Invalido);
+ }
+ if (!string.IsNullOrWhiteSpace(TitularDocumento) && !TitularDocumento.ValidacaoDocumento())
+ {
+ list.AddValue("TitularDocumento", Messages.Invalido);
+ }
+ if (Telefones == null)
+ {
+ return list;
+ }
+ foreach (VendedorTelefone telefone in Telefones)
+ {
+ list.AddRange(telefone.Validate());
+ }
+ return list;
+ }
+
+ public List<TupleList> Log()
+ {
+ List<TupleList> list = new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("NOME", string.IsNullOrWhiteSpace(Nome) ? "" : Nome, ""),
+ new Tuple<string, string, string>("CPF", string.IsNullOrWhiteSpace(Documento) ? "" : Documento, ""),
+ new Tuple<string, string, string>("ATIVO", Ativo ? "SIM" : "NÃO", ""),
+ new Tuple<string, string, string>("BANCO", (Banco == null) ? "" : Banco.Nome, ""),
+ new Tuple<string, string, string>("AGÊNCIA", string.IsNullOrWhiteSpace(Agencia) ? "" : Agencia, ""),
+ new Tuple<string, string, string>("CONTA CORRENTE/POUPANÇA", string.IsNullOrWhiteSpace(Conta) ? "" : Conta, ""),
+ new Tuple<string, string, string>("TITULAR DA CONTA", string.IsNullOrWhiteSpace(TitularConta) ? "" : TitularConta, ""),
+ new Tuple<string, string, string>("DOCUMENTO TITULAR DA CONTA", string.IsNullOrWhiteSpace(TitularDocumento) ? "" : TitularDocumento, ""),
+ new Tuple<string, string, string>("TIPO CONTA", string.IsNullOrWhiteSpace(TipoConta.GetDescription()) ? "" : TipoConta.GetDescription(), ""),
+ new Tuple<string, string, string>("DESCONTO", (!Desconto.HasValue) ? "" : (Desconto / (decimal?)100)?.ToString("P", new CultureInfo("pt-BR", useUserOverride: false)), "")
+ }
+ }
+ };
+ ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("CONTATOS$", "", "")
+ };
+ if (Telefones != null && Telefones.Count != 0)
+ {
+ foreach (VendedorTelefone telefone in Telefones)
+ {
+ observableCollection.Add(new Tuple<string, string, string>($" CONTATO {Telefones.IndexOf(telefone) + 1}$", "", ""));
+ observableCollection.Add(new Tuple<string, string, string>(" NOME", string.IsNullOrWhiteSpace(telefone.Nome) ? "" : telefone.Nome, ""));
+ object item;
+ if (telefone.Tipo.HasValue)
+ {
+ TipoTelefone? tipo = telefone.Tipo;
+ item = (tipo.HasValue ? tipo.GetValueOrDefault().GetDescription() : null);
+ }
+ else
+ {
+ item = "";
+ }
+ observableCollection.Add(new Tuple<string, string, string>(" TIPO DE TELEFONE", (string)item, ""));
+ observableCollection.Add(new Tuple<string, string, string>(" PREFIXO", string.IsNullOrWhiteSpace(telefone.Prefixo) ? "" : telefone.Prefixo, ""));
+ observableCollection.Add(new Tuple<string, string, string>(" NÚMERO DE TELEFONE", string.IsNullOrWhiteSpace(telefone.Numero) ? "" : telefone.Numero, ""));
+ observableCollection.Add(new Tuple<string, string, string>(" E-MAIL", string.IsNullOrWhiteSpace(telefone.Email) ? "" : telefone.Email, ""));
+ }
+ list.Add(new TupleList
+ {
+ Tuples = observableCollection
+ });
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/VendedorParcela.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/VendedorParcela.cs
new file mode 100644
index 0000000..b1b66ff
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/VendedorParcela.cs
@@ -0,0 +1,142 @@
+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 Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class VendedorParcela : DomainBase, IDomain
+{
+ private string _vCondRep;
+
+ public bool Selecionado { get; set; }
+
+ [Log(true)]
+ public Vendedor Vendedor { get; set; }
+
+ [Log(false)]
+ public Documento Documento { get; set; }
+
+ [Log(false)]
+ public Parcela Parcela { get; set; }
+
+ public string VCondRep
+ {
+ get
+ {
+ return _vCondRep?.ToUpper();
+ }
+ set
+ {
+ _vCondRep = value;
+ }
+ }
+
+ [Log(true)]
+ [Description("VALOR REPASSE")]
+ public decimal? ValorRepasse { get; set; }
+
+ [Log(true)]
+ [Description("PORCENTAGEM REPASSE")]
+ public decimal? PorcentagemRepasse { get; set; }
+
+ public decimal? ValorRepasseB { get; set; }
+
+ [Log(true)]
+ [Description("DATA DO PAGAMENTO")]
+ public DateTime? DataPagamento { get; set; }
+
+ public decimal? PorcentagemRepasseB { get; set; }
+
+ [Log(true)]
+ [Description("DATA PREVISÃO DE PAGAMENTO")]
+ public DateTime? DataPrePagamento { get; set; }
+
+ public decimal? ValorTotal { get; set; }
+
+ public decimal? ValorTotalPago { get; set; }
+
+ public Repasse Repasse { get; set; }
+
+ public CondicaoRepasse CondicaoRepasse { get; set; }
+
+ public TipoVendedor TipoVendedor { get; set; }
+
+ public bool CoCorretagem { get; set; }
+
+ public string RecebidoPorCompleto { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (DataPagamento.HasValue && (DateTime.Compare(DataPagamento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(DataPagamento.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("DataPagamento", string.Format(Messages.DataInvalida));
+ }
+ if (DataPrePagamento.HasValue && (DateTime.Compare(DataPrePagamento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(DataPrePagamento.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("DataPrePagamento", string.Format(Messages.DataInvalida));
+ }
+ if (Vendedor == null)
+ {
+ list.AddValue("Vendedor", Messages.Obrigatorio);
+ }
+ if (Documento == null)
+ {
+ list.AddValue("Documento", Messages.Obrigatorio);
+ }
+ if (Documento != null && Documento.Id > 0 && Parcela == null)
+ {
+ list.AddValue("Parcela", Messages.Obrigatorio);
+ }
+ if (Repasse == null)
+ {
+ list.AddValue("Repasse", Messages.Obrigatorio);
+ }
+ if (TipoVendedor == null && !CoCorretagem)
+ {
+ list.AddValue("TipoVendedor", Messages.Obrigatorio);
+ }
+ if (!PorcentagemRepasse.HasValue && !CoCorretagem)
+ {
+ list.AddValue("PorcentagemRepasse", Messages.Obrigatorio);
+ }
+ if (!ValorRepasse.HasValue)
+ {
+ list.AddValue("ValorRepasse", Messages.Obrigatorio);
+ }
+ if (Vendedor == null || Vendedor.Corretora)
+ {
+ return list;
+ }
+ if (PorcentagemRepasse.HasValue)
+ {
+ decimal? porcentagemRepasse = PorcentagemRepasse;
+ if ((porcentagemRepasse.GetValueOrDefault() <= default(decimal)) & porcentagemRepasse.HasValue)
+ {
+ list.AddValue("PorcentagemRepasse", Messages.Invalido);
+ }
+ }
+ if (ValorRepasse.HasValue)
+ {
+ decimal? porcentagemRepasse = ValorRepasse;
+ if (((porcentagemRepasse.GetValueOrDefault() == default(decimal)) & porcentagemRepasse.HasValue) && !CoCorretagem)
+ {
+ list.AddValue("ValorRepasse", Messages.Invalido);
+ }
+ }
+ if (Repasse != null && Documento != null && Documento.TipoRecebimento.GetValueOrDefault() == TipoRecebimento.Parcela && Repasse.Base.GetValueOrDefault() == BaseRepasse.Transmissao && (!Documento.Remessa.HasValue || DateTime.Compare(Documento.Remessa.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(Documento.Remessa.Value, new DateTime(9999, 12, 31)) > 0))
+ {
+ list.AddValue("TRANSMISSÃO DA PROPOSTA", string.Format(Messages.DataInvalida));
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/VendedorParcelas.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/VendedorParcelas.cs
new file mode 100644
index 0000000..dabb101
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/VendedorParcelas.cs
@@ -0,0 +1,52 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Globalization;
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class VendedorParcelas : DomainBase
+{
+ public ObservableCollection<VendedorParcela> VendedorParcelasList { get; set; }
+
+ public List<TupleList> Log(bool restricaoComissao, bool restricaoComissaoPorcentagem)
+ {
+ ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("VENDEDORES$", "", "")
+ };
+ if (VendedorParcelasList != null)
+ {
+ foreach (VendedorParcela vendedorParcelas in VendedorParcelasList)
+ {
+ observableCollection.Add(new Tuple<string, string, string>(" NOME", (vendedorParcelas.Vendedor == null) ? "" : vendedorParcelas.Vendedor.Nome.ToUpper(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" TIPO VENDEDOR", (vendedorParcelas.TipoVendedor == null) ? "" : vendedorParcelas.TipoVendedor.Descricao, ""));
+ if (!restricaoComissao)
+ {
+ observableCollection.Add(new Tuple<string, string, string>(" COMISSÃO", (!vendedorParcelas.PorcentagemRepasse.HasValue) ? "" : vendedorParcelas.PorcentagemRepasse?.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" REPASSE", (!vendedorParcelas.ValorRepasse.HasValue) ? "" : vendedorParcelas.ValorRepasse?.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ }
+ else if (restricaoComissaoPorcentagem)
+ {
+ observableCollection.Add(new Tuple<string, string, string>(" COMISSÃO", (!vendedorParcelas.PorcentagemRepasse.HasValue) ? "" : vendedorParcelas.PorcentagemRepasse?.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" REPASSE", "", ""));
+ }
+ else
+ {
+ observableCollection.Add(new Tuple<string, string, string>(" COMISSÃO", "", ""));
+ observableCollection.Add(new Tuple<string, string, string>(" REPASSE", "", ""));
+ }
+ observableCollection.Add(new Tuple<string, string, string>(" DATA PRÉ PAGAMENTO", (!vendedorParcelas.DataPrePagamento.HasValue) ? "" : vendedorParcelas.DataPrePagamento?.ToShortDateString(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" DATA PAGAMENTO", (!vendedorParcelas.DataPagamento.HasValue) ? "" : vendedorParcelas.DataPagamento?.ToShortDateString(), ""));
+ }
+ }
+ return new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = observableCollection
+ }
+ };
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/VendedorTelefone.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/VendedorTelefone.cs
new file mode 100644
index 0000000..2eaa3f2
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/VendedorTelefone.cs
@@ -0,0 +1,62 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class VendedorTelefone : TelefoneBase, IDomain
+{
+ private string _nome;
+
+ private string _email;
+
+ public Vendedor Vendedor { get; set; }
+
+ public string Nome
+ {
+ get
+ {
+ return _nome?.ToUpper();
+ }
+ set
+ {
+ _nome = value;
+ }
+ }
+
+ public string Email
+ {
+ get
+ {
+ return _email?.ToLower().Trim();
+ }
+ set
+ {
+ _email = value;
+ }
+ }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidateBase(obrigatorio: false);
+ if (string.IsNullOrWhiteSpace(Nome))
+ {
+ list.AddValue("Nome", Messages.Obrigatorio);
+ }
+ if (!string.IsNullOrEmpty(Email) && Email.Length > 100)
+ {
+ list.AddValue("Email|E-MAIL", string.Format(Messages.MaiorQueLimite, 100));
+ }
+ if (!string.IsNullOrEmpty(Email) && !Email.ValidacaoEmail())
+ {
+ list.AddValue("Email|E-MAIL", Messages.Invalido);
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/VendedorUsuario.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/VendedorUsuario.cs
new file mode 100644
index 0000000..efd1f3e
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/VendedorUsuario.cs
@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class VendedorUsuario : DomainBase, IDomain
+{
+ public Usuario Usuario { get; set; }
+
+ public Vendedor Vendedor { get; set; }
+
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (Usuario == null)
+ {
+ list.AddValue("Usuario", Messages.Obrigatorio);
+ }
+ if (Vendedor == null)
+ {
+ list.AddValue("Vendedor", Messages.Obrigatorio);
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/Vida.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/Vida.cs
new file mode 100644
index 0000000..c9dc57d
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/Vida.cs
@@ -0,0 +1,129 @@
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Globalization;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+using Newtonsoft.Json;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class Vida : DomainBase, IDomain
+{
+ private string _plano;
+
+ public Item Item { get; set; }
+
+ public string Plano
+ {
+ get
+ {
+ return _plano?.ToUpper();
+ }
+ set
+ {
+ _plano = value;
+ }
+ }
+
+ public int? Socios { get; set; }
+
+ public int? Funcionarios { get; set; }
+
+ public decimal? CapitalSocios { get; set; }
+
+ public decimal? CapitalFuncionarios { get; set; }
+
+ public string Observacao { get; set; }
+
+ [JsonIgnore]
+ public Func<List<KeyValuePair<string, string>>> ValidationEvent => Validate;
+
+ public List<KeyValuePair<string, string>> Validate()
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (string.IsNullOrWhiteSpace(Plano))
+ {
+ list.AddValue("Plano", Messages.Obrigatorio);
+ }
+ if (Item?.Documento == null)
+ {
+ return list;
+ }
+ long id = Item.Documento.Controle.Ramo.Id;
+ if (id == 7 || id == 10 || id == 53)
+ {
+ if (!Socios.HasValue || Socios < 0)
+ {
+ list.AddValue("Socios|SÓCIOS", Messages.Obrigatorio);
+ }
+ if (!Funcionarios.HasValue || Funcionarios < 0)
+ {
+ list.AddValue("Funcionarios|FUNCIONÁRIOS", Messages.Obrigatorio);
+ }
+ if (CapitalSocios.HasValue)
+ {
+ decimal? capitalSocios = CapitalSocios;
+ if (!((capitalSocios.GetValueOrDefault() < default(decimal)) & capitalSocios.HasValue))
+ {
+ goto IL_0133;
+ }
+ }
+ list.AddValue("CapitalSocios|CAPITAL SÓCIO", Messages.Obrigatorio);
+ goto IL_0133;
+ }
+ goto IL_017e;
+ IL_017e:
+ return list;
+ IL_0133:
+ if (CapitalFuncionarios.HasValue)
+ {
+ decimal? capitalSocios = CapitalFuncionarios;
+ if (!((capitalSocios.GetValueOrDefault() < default(decimal)) & capitalSocios.HasValue))
+ {
+ goto IL_017e;
+ }
+ }
+ list.AddValue("CapitalFuncionarios|CAPITAL FUNCIONÁRIO", Messages.Obrigatorio);
+ goto IL_017e;
+ }
+
+ public static List<TupleList> Log(Item item)
+ {
+ List<TupleList> list = new List<TupleList>
+ {
+ new TupleList
+ {
+ Tuples = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("PLANO", string.IsNullOrWhiteSpace(item.Vida.Plano) ? "" : item.Vida.Plano, ""),
+ new Tuple<string, string, string>("DESCRIÇÃO", string.IsNullOrWhiteSpace(item.Descricao) ? "" : item.Descricao.ToUpper(), ""),
+ new Tuple<string, string, string>("SÓCIOS", (!item.Vida.Socios.HasValue) ? "" : item.Vida.Socios?.ToString(), ""),
+ new Tuple<string, string, string>("CAPITAL SÓCIO", (!item.Vida.CapitalSocios.HasValue) ? "" : item.Vida.CapitalSocios?.ToString(), ""),
+ new Tuple<string, string, string>("FUNCIONÁRIOS", (!item.Vida.Funcionarios.HasValue) ? "" : item.Vida.Funcionarios?.ToString(), ""),
+ new Tuple<string, string, string>("CAPITAL FUNCIONÁRIOS", (!item.Vida.CapitalFuncionarios.HasValue) ? "" : item.Vida.CapitalFuncionarios?.ToString(), ""),
+ new Tuple<string, string, string>("QUANTIDADE DE TITULARES", (!item.Vida.Socios.HasValue) ? "" : item.Vida.Socios?.ToString(), ""),
+ new Tuple<string, string, string>("QUANTIDADE DE BENEFICIÁRIOS", (!item.Vida.Funcionarios.HasValue) ? "" : item.Vida.Funcionarios?.ToString(), "")
+ }
+ }
+ };
+ ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>
+ {
+ new Tuple<string, string, string>("COBERTURAS$", "", "")
+ };
+ foreach (Cobertura cobertura in item.Coberturas)
+ {
+ observableCollection.Add(new Tuple<string, string, string>($" COBERTURA {item.Coberturas.IndexOf(cobertura) + 1}$", "", ""));
+ observableCollection.Add(new Tuple<string, string, string>(" OBSERVAÇÃO", string.IsNullOrWhiteSpace(cobertura.Observacao) ? "" : cobertura.Observacao.ToUpper(), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" PRÊMIO", cobertura.Premio.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" FRANQUIA", cobertura.Franquia.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ observableCollection.Add(new Tuple<string, string, string>(" L.M.I.", cobertura.Lmi.ToString("C", new CultureInfo("pt-BR", useUserOverride: false)), ""));
+ }
+ list.Add(new TupleList
+ {
+ Tuples = observableCollection
+ });
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/VinculoRepasse.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/VinculoRepasse.cs
new file mode 100644
index 0000000..3543683
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/VinculoRepasse.cs
@@ -0,0 +1,74 @@
+using System.Collections.Generic;
+using System.Linq;
+using Gestor.Model.Common;
+using Gestor.Model.Domain.Generic;
+using Gestor.Model.Helper;
+using Gestor.Model.Resources;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class VinculoRepasse : DomainBase
+{
+ public TipoVendedor TipoVendedor { get; set; }
+
+ public long IdRepasse { get; set; }
+
+ public TipoVendedor TipoVendedorVinculo { get; set; }
+
+ public Repasse RepasseVinculo { get; set; }
+
+ public List<KeyValuePair<string, string>> Validate(List<VinculoRepasse> vinculos, Repasse repasse)
+ {
+ List<KeyValuePair<string, string>> list = ValidationHelper.AddValue();
+ if (TipoVendedor == null)
+ {
+ list.AddValue("TipoVendedor|TIPO VENDEDOR DO REPASSE", Messages.Obrigatorio);
+ }
+ if (IdRepasse == 0L)
+ {
+ list.AddValue("IdRepasse|REPASSE", Messages.Obrigatorio);
+ }
+ if (TipoVendedorVinculo == null)
+ {
+ list.AddValue("TipoVendedorVinculo|TIPO VENDEDOR DO VÍNCULO", Messages.Obrigatorio);
+ }
+ if (RepasseVinculo == null)
+ {
+ list.AddValue("RepasseVinculo|REPASSE DO VÍNCULO", Messages.Obrigatorio);
+ }
+ if (TipoVendedor != null && TipoVendedorVinculo != null && TipoVendedor.Id == TipoVendedorVinculo.Id)
+ {
+ list.AddValue("TipoVendedor", "TIPO VENDEDOR SELECIONADO NÃO PODE SER O MESMO TIPO VENDEDOR DO VINCULO");
+ }
+ if (IdRepasse > 0 && RepasseVinculo != null && IdRepasse == RepasseVinculo.Id)
+ {
+ list.AddValue("RepasseVinculo|REPASSE DO VÍNCULO", "NÃO É POSSÍVEL VINCULAR O MESMO REPASSE");
+ }
+ decimal num = ((RepasseVinculo == null) ? 0m : ((RepasseVinculo.Tipo.GetValueOrDefault() == TipoRepasse.Percentual && RepasseVinculo.Incidencia.GetValueOrDefault() == TipoIncidencia.SobreComissao) ? RepasseVinculo.ValorNovo : 0m));
+ decimal num2 = ((repasse.Tipo.GetValueOrDefault() == TipoRepasse.Percentual && repasse.Incidencia.GetValueOrDefault() == TipoIncidencia.SobreComissao) ? repasse.ValorNovo : 0m) + num;
+ num2 += ((TipoVendedor == null) ? 0m : (vinculos?.Where((VinculoRepasse x) => TipoVendedor.Id == x.TipoVendedor.Id && x.RepasseVinculo.Tipo.GetValueOrDefault() == TipoRepasse.Percentual && x.RepasseVinculo.Incidencia.GetValueOrDefault() == TipoIncidencia.SobreComissao).Sum((VinculoRepasse x) => x.RepasseVinculo.ValorNovo) ?? 0m));
+ decimal num3 = ((RepasseVinculo == null) ? 0m : ((RepasseVinculo.Tipo.GetValueOrDefault() == TipoRepasse.Percentual && RepasseVinculo.Incidencia.GetValueOrDefault() == TipoIncidencia.SobreComissao) ? RepasseVinculo.ValorRenovacao : 0m));
+ decimal num4 = ((repasse.Tipo.GetValueOrDefault() == TipoRepasse.Percentual && repasse.Incidencia.GetValueOrDefault() == TipoIncidencia.SobreComissao) ? repasse.ValorRenovacao : 0m) + num3 + ((TipoVendedor == null) ? 0m : (vinculos?.Where((VinculoRepasse x) => TipoVendedor.Id == x.TipoVendedor.Id && x.RepasseVinculo.Tipo.GetValueOrDefault() == TipoRepasse.Percentual && x.RepasseVinculo.Incidencia.GetValueOrDefault() == TipoIncidencia.SobreComissao).Sum((VinculoRepasse x) => x.RepasseVinculo.ValorRenovacao) ?? 0m));
+ if (num2 > 100m)
+ {
+ list.AddValue("RepasseVinculo|VALOR NOVO", "O VALOR DE REPASSE PARA SEGUROS NOVOS ULTRAPASSARÁ 100% DA COMISSÃO RECEBIDA");
+ }
+ if (num4 > 100m)
+ {
+ list.AddValue("RepasseVinculo|VALOR RENOVAÇÃO", "O VALOR DE REPASSE PARA RENOVAÇÕES ULTRAPASSARÁ 100% DA COMISSÃO RECEBIDA");
+ }
+ if (vinculos == null || vinculos.Count <= 0)
+ {
+ return list;
+ }
+ if (TipoVendedor != null && TipoVendedorVinculo != null && vinculos.Any((VinculoRepasse x) => x.TipoVendedor.Id == TipoVendedor.Id && x.TipoVendedorVinculo.Id == TipoVendedorVinculo.Id))
+ {
+ list.AddValue("TipoVendedorVinculo|TIPO VENDEDOR DO VÍNCULO", "JÁ EXISTE UM VINCULO DE REPASSE PARA " + TipoVendedorVinculo.Descricao);
+ }
+ if (TipoVendedor != null && RepasseVinculo != null && vinculos.Any((VinculoRepasse x) => x.TipoVendedor.Id == TipoVendedor.Id && x.RepasseVinculo.Vendedor.Id == RepasseVinculo.Vendedor.Id))
+ {
+ list.AddValue("TipoVendedorVinculo|VENDEDOR DO VÍNCULO", "JÁ EXISTE UM VINCULO DE REPASSE PARA PARA " + RepasseVinculo.Vendedor.Nome);
+ }
+ return list;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Domain.Seguros/VinculoVendedor.cs b/Gestor.Model/Gestor.Model.Domain.Seguros/VinculoVendedor.cs
new file mode 100644
index 0000000..a474467
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Domain.Seguros/VinculoVendedor.cs
@@ -0,0 +1,10 @@
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.Domain.Seguros;
+
+public class VinculoVendedor : DomainBase
+{
+ public Vendedor Vendedor { get; set; }
+
+ public bool Vinculado { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Helper/ValidationHelper.cs b/Gestor.Model/Gestor.Model.Helper/ValidationHelper.cs
new file mode 100644
index 0000000..17f6bdc
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Helper/ValidationHelper.cs
@@ -0,0 +1,479 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Globalization;
+using System.Linq;
+using System.Reflection;
+using System.Text;
+using System.Text.RegularExpressions;
+using Gestor.Model.Common;
+using Gestor.Model.Validation;
+
+namespace Gestor.Model.Helper;
+
+public static class ValidationHelper
+{
+ public static List<KeyValuePair<T, T2>> AddValue<T, T2>(this List<KeyValuePair<T, T2>> keyValuePairs, T name, T2 value, bool condition = true)
+ {
+ if (name == null || name.ToString() == string.Empty || !condition)
+ {
+ return keyValuePairs;
+ }
+ if (keyValuePairs == null)
+ {
+ keyValuePairs = AddValue(name, value);
+ return keyValuePairs;
+ }
+ keyValuePairs.Add(new KeyValuePair<T, T2>(name, value));
+ return keyValuePairs;
+ }
+
+ public static List<KeyValuePair<T, T2>> AddValue<T, T2>(T name, T2 value, bool condition = true)
+ {
+ if (name == null || name.ToString() == string.Empty || !condition)
+ {
+ return new List<KeyValuePair<T, T2>>();
+ }
+ return new List<KeyValuePair<T, T2>>
+ {
+ new KeyValuePair<T, T2>(name, value)
+ };
+ }
+
+ public static List<KeyValuePair<string, string>> AddValue()
+ {
+ return new List<KeyValuePair<string, string>>();
+ }
+
+ public static string Clear(this string stringToClean)
+ {
+ if (stringToClean != null)
+ {
+ return Regex.Replace(stringToClean, "[^\\d]", string.Empty);
+ }
+ return null;
+ }
+
+ public static string Categoria(this Enum genericEnum)
+ {
+ MemberInfo[] member = genericEnum.GetType().GetMember(genericEnum.ToString());
+ if (member.Length == 0)
+ {
+ return genericEnum.ToString();
+ }
+ object[] customAttributes = member[0].GetCustomAttributes(typeof(CategoryAttribute), inherit: false);
+ if (!customAttributes.Any())
+ {
+ return genericEnum.ToString();
+ }
+ return ((CategoryAttribute)customAttributes.ElementAt(0)).Category;
+ }
+
+ public static string Length(this string stringValue, int maxLength)
+ {
+ if (stringValue.Length > maxLength)
+ {
+ return stringValue.Substring(0, maxLength);
+ }
+ return stringValue;
+ }
+
+ public static string Join(this IEnumerable<string> stringValues, string separator)
+ {
+ return string.Join(separator, stringValues);
+ }
+
+ public static int Age(this DateTime birthDate)
+ {
+ DateTime date = Funcoes.GetNetworkTime().Date;
+ int num = date.Year - birthDate.Year;
+ if (birthDate > date.AddYears(-num))
+ {
+ num--;
+ }
+ return num;
+ }
+
+ public static string GetValueExact(this List<KeyValuePair<string, string>> keyValuePairs, string keyName)
+ {
+ return keyValuePairs.Find((KeyValuePair<string, string> x) => x.Key.Substring(0, x.Key.Contains("|") ? x.Key.IndexOf("|", StringComparison.Ordinal) : x.Key.Length).Equals(keyName)).Value;
+ }
+
+ public static bool ValidacaoDocumento(this string cpfCnpj)
+ {
+ string text = cpfCnpj?.Clear();
+ if (string.IsNullOrEmpty(text))
+ {
+ return false;
+ }
+ int[] array = new int[14];
+ int[] array2 = new int[2];
+ if (new string(text[0], text.Length) == text)
+ {
+ return false;
+ }
+ if (text.Length == 11)
+ {
+ for (int i = 0; i <= 10; i++)
+ {
+ array[i] = Convert.ToInt32(text.Substring(i, 1));
+ }
+ for (int i = 0; i <= 1; i++)
+ {
+ int num = 0;
+ for (int j = 0; j <= 8 + i; j++)
+ {
+ num += array[j] * (10 + i - j);
+ }
+ array2[i] = num * 10 % 11;
+ if (array2[i] == 10)
+ {
+ array2[i] = 0;
+ }
+ }
+ return (array2[0] == array[9]) & (array2[1] == array[10]);
+ }
+ if (text.Length != 14)
+ {
+ return false;
+ }
+ for (int i = 0; i <= 13; i++)
+ {
+ array[i] = Convert.ToInt32(text.Substring(i, 1));
+ }
+ for (int i = 0; i <= 1; i++)
+ {
+ int num = 0;
+ for (int j = 0; j <= 11 + i; j++)
+ {
+ num += array[j] * Convert.ToInt32("6543298765432".Substring(j + 1 - i, 1));
+ }
+ array2[i] = num * 10 % 11;
+ if (array2[i] == 10)
+ {
+ array2[i] = 0;
+ }
+ }
+ return (array2[0] == array[12]) & (array2[1] == array[13]);
+ }
+
+ public static string Index(this string[] stringArray, int currentIndex)
+ {
+ if (stringArray == null || !stringArray.Any())
+ {
+ return string.Empty;
+ }
+ if (currentIndex <= -1 || currentIndex >= stringArray.Length)
+ {
+ return string.Empty;
+ }
+ return stringArray[currentIndex];
+ }
+
+ public static bool ValidacaoChassi(this string chassiNumber)
+ {
+ chassiNumber = chassiNumber?.ToUpper();
+ if (!string.IsNullOrEmpty(chassiNumber))
+ {
+ if (chassiNumber.Length == 17 && !Regex.IsMatch(chassiNumber, "^0| |^.{4,}([0-9A-Z])\\1{5,}|[iIoOqQ]"))
+ {
+ return Regex.IsMatch(chassiNumber, "[0-9]{4}$");
+ }
+ return false;
+ }
+ return true;
+ }
+
+ public static bool ValidacaoPlaca(this string numeroPlaca)
+ {
+ if (numeroPlaca == null)
+ {
+ return false;
+ }
+ numeroPlaca.FormataPlaca();
+ return true;
+ }
+
+ public static string FormataFipe(this string value)
+ {
+ if (!string.IsNullOrWhiteSpace(value))
+ {
+ return Convert.ToUInt64(value.OnlyNumber()).ToString("000000\\-0");
+ }
+ return "";
+ }
+
+ public static string OnlyNumber(this string sentence)
+ {
+ if (sentence == null)
+ {
+ return null;
+ }
+ return new Regex("[^\\d]").Replace(sentence, "");
+ }
+
+ public static bool ValidaFipe(this string value)
+ {
+ if (new Regex("^\\d{6}\\-\\d{1}$").IsMatch(value))
+ {
+ return true;
+ }
+ return false;
+ }
+
+ public static bool ValidacaoFabricacao(this string ano)
+ {
+ if (!int.TryParse(ano, out var result))
+ {
+ return false;
+ }
+ if (result > 1900)
+ {
+ return result <= Funcoes.GetNetworkTime().Year;
+ }
+ return false;
+ }
+
+ public static bool ValidacaoModelo(this string ano)
+ {
+ if (!int.TryParse(ano, out var result))
+ {
+ return false;
+ }
+ if (result > 1900)
+ {
+ return result <= Funcoes.GetNetworkTime().Year + 1;
+ }
+ return false;
+ }
+
+ public static bool ValidacaoEmail(this string mail)
+ {
+ if (mail == null)
+ {
+ return false;
+ }
+ if (mail.StartsWith("'") || mail.EndsWith("'"))
+ {
+ string replacement = "";
+ mail = Regex.Replace(new Regex("[\\']").Replace(mail, replacement), "\\s+", "");
+ }
+ if (new Regex("[à-ú]").IsMatch(mail))
+ {
+ return false;
+ }
+ return new Regex("^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$").IsMatch(mail);
+ }
+
+ public static bool ValidacaoPrefixo(this string prefix)
+ {
+ if (!int.TryParse(prefix, out var result))
+ {
+ return false;
+ }
+ if (result == 20 || result == 23 || result == 25 || result == 26 || result == 29 || result == 30 || result == 36 || result == 39 || result == 40 || result == 50 || result == 52 || result == 56 || result == 57 || result == 58 || result == 59 || result == 60 || result == 70 || result == 72 || result == 76 || result == 78 || result == 80 || result == 90 || result < 11 || result > 99)
+ {
+ return false;
+ }
+ return true;
+ }
+
+ public static bool ValidacaoTelefone(this string number)
+ {
+ if (number != null)
+ {
+ return Regex.Match(number, "^(\\d{8,9}$|\\d{4,5}[- ]\\d{4}$|\\d{4}\\s\\d{3}\\s\\d{4})$").Success;
+ }
+ return false;
+ }
+
+ public static bool ValidacaoPrefixo(this string number, TipoTelefone tipo)
+ {
+ if (tipo == TipoTelefone.Internacional || tipo == TipoTelefone.Whatsapp || tipo == TipoTelefone.Gratuita || tipo == TipoTelefone.TarifaUnica)
+ {
+ return number.Trim().Length == 0;
+ }
+ return number.ValidacaoPrefixo();
+ }
+
+ public static bool ValidacaoTelefone(this string number, TipoTelefone tipo)
+ {
+ switch (tipo)
+ {
+ case TipoTelefone.Internacional:
+ case TipoTelefone.Whatsapp:
+ if (number != null)
+ {
+ return Regex.IsMatch(number.Trim(), "^[0-9]{7,16}$");
+ }
+ return false;
+ case TipoTelefone.Gratuita:
+ case TipoTelefone.TarifaUnica:
+ if (number != null)
+ {
+ return Regex.IsMatch(number.Trim(), "^[0-9]{4,7}$");
+ }
+ return false;
+ case TipoTelefone.Celular:
+ if (number != null)
+ {
+ return Regex.IsMatch(number.Trim(), "^\\d{4,5}[- ]?\\d{4}$");
+ }
+ return false;
+ default:
+ return number.ValidacaoTelefone();
+ }
+ }
+
+ public static bool ValidacaoCep(this string postCode)
+ {
+ if (postCode != null)
+ {
+ return Regex.Match(postCode, "^[0-9]{5}-[0-9]{3}$").Success;
+ }
+ return false;
+ }
+
+ public static bool ValidacaoEstado(this string state)
+ {
+ if (!string.IsNullOrEmpty(state))
+ {
+ return new string[27]
+ {
+ "AC", "AL", "AP", "AM", "BA", "CE", "DF", "ES", "GO", "MA",
+ "MT", "MS", "MG", "PA", "PB", "PR", "PE", "PI", "RJ", "RN",
+ "RS", "RO", "RR", "SC", "SP", "SE", "TO"
+ }.Contains(state.ToUpper());
+ }
+ return false;
+ }
+
+ public static bool ValidacaoDataPassada(this DateTime? data)
+ {
+ return data < Funcoes.GetNetworkTime().Date;
+ }
+
+ public static bool ValidacaoOrgao(this string orgao)
+ {
+ if (!string.IsNullOrEmpty(orgao))
+ {
+ return orgao.Length < 7;
+ }
+ return true;
+ }
+
+ public static bool ValidacaoCei(this string cei)
+ {
+ if (string.IsNullOrEmpty(cei))
+ {
+ return false;
+ }
+ cei = cei.Trim();
+ cei = Regex.Replace(cei, "[^\\d]", "");
+ if (cei.Length != 12)
+ {
+ return false;
+ }
+ int num = 0;
+ for (int i = 1; i < 12; i++)
+ {
+ int num2 = Convert.ToInt32("74185216374".Substring(i - 1, 1));
+ int num3 = Convert.ToInt32(cei.Substring(i - 1, 1));
+ num += num2 * num3;
+ }
+ int num4 = num / 10;
+ int num5 = num - num / 10 * 10;
+ num = num4 + num5;
+ num5 = num - num / 10 * 10;
+ int num6 = Convert.ToInt32(cei.Substring(11, 1));
+ int num7 = 10 - num5;
+ return num6 == num7;
+ }
+
+ public static bool ValidacaoRne(this string rne)
+ {
+ return true;
+ }
+
+ public static bool ValidateCaepf(this string caepf)
+ {
+ return !string.IsNullOrEmpty(caepf);
+ }
+
+ public static int ToInt(this string stringValue)
+ {
+ int.TryParse(stringValue, out var result);
+ return result;
+ }
+
+ public static string ClearCurrency(this string stringToClean)
+ {
+ if (string.IsNullOrEmpty(stringToClean))
+ {
+ return string.Empty;
+ }
+ if (stringToClean.Count((char x) => x == '.') == 1 && stringToClean.Count((char x) => x == ',') == 0)
+ {
+ stringToClean = stringToClean.Replace(".", ",");
+ }
+ if (stringToClean.Count((char x) => x == '.') > 0 && stringToClean.Count((char x) => x == ',') == 1)
+ {
+ stringToClean = stringToClean.Replace(".", "");
+ }
+ if (stringToClean.Count((char x) => x == '.') <= 1)
+ {
+ return Regex.Replace(stringToClean, "[^\\d\\,\\-]", string.Empty);
+ }
+ int num = stringToClean.Count((char x) => x == '.');
+ for (int i = 0; i < num; i++)
+ {
+ int num2 = stringToClean.IndexOf(".", StringComparison.CurrentCultureIgnoreCase);
+ stringToClean = new StringBuilder(stringToClean) { [num2] = ((i < num - 1) ? 'a' : ',') }.ToString();
+ }
+ return Regex.Replace(stringToClean, "[^\\d\\,\\-]", string.Empty);
+ }
+
+ public static decimal ToDecimal(this string currencyString, string currentCulture = "pt-BR")
+ {
+ decimal.TryParse(currencyString.ClearCurrency(), NumberStyles.Any, new CultureInfo(currentCulture), out var result);
+ return result;
+ }
+
+ public static string DocumentoFornecedor(this string sentence)
+ {
+ if (sentence == null)
+ {
+ return null;
+ }
+ return new Regex("[^\\d]").Replace(sentence, "");
+ }
+
+ public static float ToFloat(this string stringValue)
+ {
+ float.TryParse(stringValue, out var result);
+ return result;
+ }
+
+ public static string FormataCep(this string cep)
+ {
+ if (string.IsNullOrWhiteSpace(cep) || Regex.IsMatch(cep, "^\\d{2}\\d{3}-\\d{3}$"))
+ {
+ return cep;
+ }
+ string input = Regex.Replace(cep, "\\D", "");
+ if (!Regex.IsMatch(input, "^\\d{8}$"))
+ {
+ return cep;
+ }
+ return Regex.Replace(input, "(\\d{5})(\\d{3})", "$1-$2");
+ }
+
+ public static string FormataPlaca(this string placa)
+ {
+ if (string.IsNullOrWhiteSpace(placa) || Regex.IsMatch(placa.Trim(), "[^a-zA-Z0-9]{1,7}"))
+ {
+ return placa.Trim();
+ }
+ return Regex.Replace(placa.Trim(), "[^a-zA-Z0-9]{1,7}", "");
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.License/Instalacao.cs b/Gestor.Model/Gestor.Model.License/Instalacao.cs
new file mode 100644
index 0000000..20f1719
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.License/Instalacao.cs
@@ -0,0 +1,29 @@
+using System;
+using Gestor.Model.Domain.Generic;
+
+namespace Gestor.Model.License;
+
+public class Instalacao : DomainBase
+{
+ public long IdFornecedor { get; set; }
+
+ public DateTime Data { get; set; }
+
+ public string NomeMaquina { get; set; }
+
+ public string UsuarioMaquina { get; set; }
+
+ public string Aggilizador { get; set; }
+
+ public string Gerenciador { get; set; }
+
+ public long UsuarioId { get; set; }
+
+ public string UsuarioSistema { get; set; }
+
+ public DateTime UltimoAcesso { get; set; }
+
+ public string Ip { get; set; }
+
+ public string OSInfo { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.License/Licenca.cs b/Gestor.Model/Gestor.Model.License/Licenca.cs
new file mode 100644
index 0000000..f14e344
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.License/Licenca.cs
@@ -0,0 +1,16 @@
+using System;
+
+namespace Gestor.Model.License;
+
+public class Licenca
+{
+ public Produto Produto { get; set; }
+
+ public DateTime Liberacao { get; set; }
+
+ public bool AcessoLiberado { get; set; }
+
+ public int Quantidade { get; set; }
+
+ public int Status { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.License/Produto.cs b/Gestor.Model/Gestor.Model.License/Produto.cs
new file mode 100644
index 0000000..385c8cd
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.License/Produto.cs
@@ -0,0 +1,39 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.License;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum Produto
+{
+ [Description("GERENCIADOR")]
+ Gerenciador = 1,
+ [Description("MATRIZ/FILIAL")]
+ MatrizFilial = 2,
+ [Description("FINANCEIRO")]
+ Financeiro = 4,
+ [Description("IMPORTADOR")]
+ Importador = 5,
+ [Description("EPIC")]
+ Epic = 83,
+ [Description("AGGILIZADOR CÁLCULOS INDEPENDENTE")]
+ AggilizadorCalculosIndependente = 81,
+ [Description("AGGILIZADOR CALCULOS")]
+ AggilizadorCalculos = 79,
+ [Description("AGGILIZADOR DOCUMENTOS INDEPENDENTE")]
+ AggilizadorDocumentosIndependente = 84,
+ [Description("AGGILIZADOR DOCUMENTOS")]
+ AggilizadorDocumentos = 77,
+ [Description("LICENÇA ONLINE")]
+ LicencaOnline = 73,
+ [Description("MOBILE")]
+ Mobile = 27,
+ [Description("SUA CORRETORA DIGITAL")]
+ SuaCorretoraDigital = 82,
+ [Description("WEBSITE")]
+ Website = 19,
+ [Description("ASSINATURA ELETRÔNICA")]
+ AssinaturaEletronica = 86,
+ [Description("NOVO AGGILIZADOR")]
+ NovoAggilizador = 91
+}
diff --git a/Gestor.Model/Gestor.Model.License/StatusLicenca.cs b/Gestor.Model/Gestor.Model.License/StatusLicenca.cs
new file mode 100644
index 0000000..3ee77d8
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.License/StatusLicenca.cs
@@ -0,0 +1,17 @@
+using System.ComponentModel;
+using Gestor.Model.Converter;
+
+namespace Gestor.Model.License;
+
+[TypeConverter(typeof(EnumDescriptionTypeConverter))]
+public enum StatusLicenca
+{
+ [Description("NORMAL")]
+ Normal,
+ [Description("BLOQUEADO")]
+ Bloqueado,
+ [Description("CONSULTA")]
+ Consulta,
+ [Description("CANCELADO")]
+ Cancelado
+}
diff --git a/Gestor.Model/Gestor.Model.Relatorios/Cliente.cs b/Gestor.Model/Gestor.Model.Relatorios/Cliente.cs
new file mode 100644
index 0000000..5be51c0
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Relatorios/Cliente.cs
@@ -0,0 +1,6 @@
+namespace Gestor.Model.Relatorios;
+
+public class Cliente
+{
+ public long Id { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Relatorios/ClienteEmail.cs b/Gestor.Model/Gestor.Model.Relatorios/ClienteEmail.cs
new file mode 100644
index 0000000..fda6534
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Relatorios/ClienteEmail.cs
@@ -0,0 +1,20 @@
+namespace Gestor.Model.Relatorios;
+
+public class ClienteEmail
+{
+ private string _email;
+
+ public Cliente Cliente { get; set; }
+
+ public string Email
+ {
+ get
+ {
+ return _email;
+ }
+ set
+ {
+ _email = value?.Trim();
+ }
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Relatorios/ClienteEndereco.cs b/Gestor.Model/Gestor.Model.Relatorios/ClienteEndereco.cs
new file mode 100644
index 0000000..83cfaeb
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Relatorios/ClienteEndereco.cs
@@ -0,0 +1,108 @@
+namespace Gestor.Model.Relatorios;
+
+public class ClienteEndereco
+{
+ private string _endereco;
+
+ private string _numero;
+
+ private string _complemento;
+
+ private string _cidade;
+
+ private string _estado;
+
+ private string _cep;
+
+ private string _bairro;
+
+ public long IdCliEnd { get; set; }
+
+ public Cliente Cliente { get; set; }
+
+ public string Endereco
+ {
+ get
+ {
+ return _endereco;
+ }
+ set
+ {
+ _endereco = value?.Trim();
+ }
+ }
+
+ public string Bairro
+ {
+ get
+ {
+ return _bairro;
+ }
+ set
+ {
+ _bairro = value?.Trim();
+ }
+ }
+
+ public string Numero
+ {
+ get
+ {
+ return _numero;
+ }
+ set
+ {
+ _numero = value?.Trim();
+ }
+ }
+
+ public string Complemento
+ {
+ get
+ {
+ return _complemento;
+ }
+ set
+ {
+ _complemento = value?.Trim();
+ }
+ }
+
+ public string Cidade
+ {
+ get
+ {
+ return _cidade;
+ }
+ set
+ {
+ _cidade = value?.Trim();
+ }
+ }
+
+ public string Estado
+ {
+ get
+ {
+ return _estado;
+ }
+ set
+ {
+ _estado = value?.Trim();
+ }
+ }
+
+ public string Cep
+ {
+ get
+ {
+ return _cep;
+ }
+ set
+ {
+ _cep = value?.Trim();
+ }
+ }
+
+ public int Ordem { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Relatorios/ClienteTelefone.cs b/Gestor.Model/Gestor.Model.Relatorios/ClienteTelefone.cs
new file mode 100644
index 0000000..d9d6117
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Relatorios/ClienteTelefone.cs
@@ -0,0 +1,34 @@
+namespace Gestor.Model.Relatorios;
+
+public class ClienteTelefone
+{
+ private string _prefixo;
+
+ private string _numero;
+
+ public Cliente Cliente { get; set; }
+
+ public string Prefixo
+ {
+ get
+ {
+ return _prefixo;
+ }
+ set
+ {
+ _prefixo = value?.Trim();
+ }
+ }
+
+ public string Numero
+ {
+ get
+ {
+ return _numero;
+ }
+ set
+ {
+ _numero = value?.Trim();
+ }
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Relatorios/Controle.cs b/Gestor.Model/Gestor.Model.Relatorios/Controle.cs
new file mode 100644
index 0000000..7bfae1b
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Relatorios/Controle.cs
@@ -0,0 +1,10 @@
+namespace Gestor.Model.Relatorios;
+
+public class Controle
+{
+ public long Id { get; set; }
+
+ public Cliente Cliente { get; set; }
+
+ public Ramo Ramo { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Relatorios/Documento.cs b/Gestor.Model/Gestor.Model.Relatorios/Documento.cs
new file mode 100644
index 0000000..f88f09c
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Relatorios/Documento.cs
@@ -0,0 +1,14 @@
+using System.Collections.Generic;
+
+namespace Gestor.Model.Relatorios;
+
+public class Documento
+{
+ public long Id { get; set; }
+
+ public Controle Controle { get; set; }
+
+ public IList<Vendedor> Vendedores { get; set; }
+
+ public int? Ordem { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Relatorios/EstipulanteCliente.cs b/Gestor.Model/Gestor.Model.Relatorios/EstipulanteCliente.cs
new file mode 100644
index 0000000..36c47db
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Relatorios/EstipulanteCliente.cs
@@ -0,0 +1,10 @@
+namespace Gestor.Model.Relatorios;
+
+public class EstipulanteCliente
+{
+ public long IdEstiputante { get; set; }
+
+ public string NomeEstipulante { get; set; }
+
+ public long IdCliente { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Relatorios/Ramo.cs b/Gestor.Model/Gestor.Model.Relatorios/Ramo.cs
new file mode 100644
index 0000000..5199dc4
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Relatorios/Ramo.cs
@@ -0,0 +1,20 @@
+namespace Gestor.Model.Relatorios;
+
+public class Ramo
+{
+ private string _nome;
+
+ public long Id { get; set; }
+
+ public string Nome
+ {
+ get
+ {
+ return _nome;
+ }
+ set
+ {
+ _nome = value?.Trim();
+ }
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Relatorios/Vendedor.cs b/Gestor.Model/Gestor.Model.Relatorios/Vendedor.cs
new file mode 100644
index 0000000..ac7df40
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Relatorios/Vendedor.cs
@@ -0,0 +1,20 @@
+namespace Gestor.Model.Relatorios;
+
+public class Vendedor
+{
+ private string _nome;
+
+ public long Id { get; set; }
+
+ public string Nome
+ {
+ get
+ {
+ return _nome;
+ }
+ set
+ {
+ _nome = value?.Trim();
+ }
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Resources.Messages.resx b/Gestor.Model/Gestor.Model.Resources.Messages.resx
new file mode 100644
index 0000000..d06a374
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Resources.Messages.resx
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+<resheader name="resmimetype"><value>text/microsoft-resx</value></resheader><resheader name="version"><value>1.3</value></resheader><resheader name="reader"><value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader><resheader name="writer"><value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader><data name="NomeInvalido" xml:space="preserve"><value>DEVE CONTER NOME E SOBRENOME</value></data>
+ <data name="ContemEspacos" xml:space="preserve"><value>LOGIN NÃO PODE CONTER ESPAÇOS</value></data>
+ <data name="EmissaoInvalida" xml:space="preserve"><value>DEVE SER MAIOR QUE VIGÊNCIA INICIAL</value></data>
+ <data name="MaiorQueLimite" xml:space="preserve"><value>LIMITE DE CARACTERES: {0}</value></data>
+ <data name="Invalido" xml:space="preserve"><value>INVÁLIDO</value></data>
+ <data name="BaixaInvalida" xml:space="preserve"><value>NÃO É POSSIVEL BAIXAR A COMISSÃO ENQUANTO HOUVER FATURAS PENDENTES</value></data>
+ <data name="VencimentoParcela" xml:space="preserve"><value>VIGÊNCIA FINAL NÃO PODE SER MENOR QUE A DATA DA ULTIMA PARCELA</value></data>
+ <data name="DataInvalida" xml:space="preserve"><value>DATA INVÁLIDA</value></data>
+ <data name="ValorParcelaInvalido" xml:space="preserve"><value>SOMA DOS VALORES DAS PARCELAS NÃO PODE SER MAIOR QUE O PRÊMIO TOTAL</value></data>
+ <data name="VencimentoMaior" xml:space="preserve"><value>DEVE SER MENOR QUE A VIGÊNCIA FINAL DO DOCUMENTO</value></data>
+ <data name="VencimentoMenor" xml:space="preserve"><value>DEVE SER MAIOR QUE A VIGÊNCIA INICIAL DO DOCUMENTO</value></data>
+ <data name="Obrigatorio" xml:space="preserve"><value>OBRIGATÓRIO</value></data>
+ </root> \ No newline at end of file
diff --git a/Gestor.Model/Gestor.Model.Resources/Messages.cs b/Gestor.Model/Gestor.Model.Resources/Messages.cs
new file mode 100644
index 0000000..2c7eb6f
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Resources/Messages.cs
@@ -0,0 +1,72 @@
+using System.CodeDom.Compiler;
+using System.ComponentModel;
+using System.Diagnostics;
+using System.Globalization;
+using System.Resources;
+using System.Runtime.CompilerServices;
+
+namespace Gestor.Model.Resources;
+
+[GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "18.0.0.0")]
+[DebuggerNonUserCode]
+[CompilerGenerated]
+public class Messages
+{
+ private static ResourceManager resourceMan;
+
+ private static CultureInfo resourceCulture;
+
+ [EditorBrowsable(EditorBrowsableState.Advanced)]
+ public static ResourceManager ResourceManager
+ {
+ get
+ {
+ if (resourceMan == null)
+ {
+ resourceMan = new ResourceManager("Gestor.Model.Resources.Messages", typeof(Messages).Assembly);
+ }
+ return resourceMan;
+ }
+ }
+
+ [EditorBrowsable(EditorBrowsableState.Advanced)]
+ public static CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+
+ public static string BaixaInvalida => ResourceManager.GetString("BaixaInvalida", resourceCulture);
+
+ public static string ContemEspacos => ResourceManager.GetString("ContemEspacos", resourceCulture);
+
+ public static string DataInvalida => ResourceManager.GetString("DataInvalida", resourceCulture);
+
+ public static string EmissaoInvalida => ResourceManager.GetString("EmissaoInvalida", resourceCulture);
+
+ public static string Invalido => ResourceManager.GetString("Invalido", resourceCulture);
+
+ public static string MaiorQueLimite => ResourceManager.GetString("MaiorQueLimite", resourceCulture);
+
+ public static string NomeInvalido => ResourceManager.GetString("NomeInvalido", resourceCulture);
+
+ public static string Obrigatorio => ResourceManager.GetString("Obrigatorio", resourceCulture);
+
+ public static string ValorParcelaInvalido => ResourceManager.GetString("ValorParcelaInvalido", resourceCulture);
+
+ public static string VencimentoMaior => ResourceManager.GetString("VencimentoMaior", resourceCulture);
+
+ public static string VencimentoMenor => ResourceManager.GetString("VencimentoMenor", resourceCulture);
+
+ public static string VencimentoParcela => ResourceManager.GetString("VencimentoParcela", resourceCulture);
+
+ internal Messages()
+ {
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.Validation/ControleValidacao.cs b/Gestor.Model/Gestor.Model.Validation/ControleValidacao.cs
new file mode 100644
index 0000000..a167c69
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Validation/ControleValidacao.cs
@@ -0,0 +1,14 @@
+using System;
+
+namespace Gestor.Model.Validation;
+
+public class ControleValidacao
+{
+ public string Nome { get; set; }
+
+ public string Tag { get; set; }
+
+ public string Estilo { get; set; }
+
+ public Type Tipo { get; set; }
+}
diff --git a/Gestor.Model/Gestor.Model.Validation/Funcoes.cs b/Gestor.Model/Gestor.Model.Validation/Funcoes.cs
new file mode 100644
index 0000000..dd943d9
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.Validation/Funcoes.cs
@@ -0,0 +1,107 @@
+using System;
+using System.ComponentModel;
+using System.Diagnostics;
+using System.Linq;
+using System.Net;
+using System.Net.Sockets;
+using System.Reflection;
+using Gestor.Model.Common;
+
+namespace Gestor.Model.Validation;
+
+public static class Funcoes
+{
+ public static Stopwatch Stopwatch;
+
+ public static DateTime? StartTime;
+
+ public static string GetDescription(this Enum genericEnum)
+ {
+ if (genericEnum == null)
+ {
+ return "";
+ }
+ MemberInfo[] member = genericEnum.GetType().GetMember(genericEnum.ToString());
+ if (member.Length == 0)
+ {
+ return genericEnum.ToString();
+ }
+ object[] customAttributes = member[0].GetCustomAttributes(typeof(DescriptionAttribute), inherit: false);
+ if (!customAttributes.Any())
+ {
+ return genericEnum.ToString();
+ }
+ return ((DescriptionAttribute)customAttributes.ElementAt(0)).Description;
+ }
+
+ public static ParentescoVinculo? ParentescoInverso(ParentescoVinculo? parentesco)
+ {
+ return parentesco switch
+ {
+ ParentescoVinculo.MaePai => ParentescoVinculo.Filho,
+ ParentescoVinculo.Filho => ParentescoVinculo.MaePai,
+ ParentescoVinculo.Avo => ParentescoVinculo.Neto,
+ ParentescoVinculo.Neto => ParentescoVinculo.Avo,
+ ParentescoVinculo.Tio => ParentescoVinculo.Sobrinho,
+ ParentescoVinculo.Sobrinho => ParentescoVinculo.Tio,
+ ParentescoVinculo.Bisavo => ParentescoVinculo.Bisneto,
+ ParentescoVinculo.Bisneto => ParentescoVinculo.Bisavo,
+ ParentescoVinculo.Sogro => ParentescoVinculo.Genro,
+ ParentescoVinculo.Genro => ParentescoVinculo.Sogro,
+ ParentescoVinculo.MadrastaPadrasto => ParentescoVinculo.Enteado,
+ ParentescoVinculo.Enteado => ParentescoVinculo.MadrastaPadrasto,
+ ParentescoVinculo.Proprietario => ParentescoVinculo.Propriedade,
+ ParentescoVinculo.Propriedade => ParentescoVinculo.Proprietario,
+ ParentescoVinculo.Funcionario => ParentescoVinculo.Contratante,
+ ParentescoVinculo.Contratante => ParentescoVinculo.Funcionario,
+ _ => parentesco,
+ };
+ }
+
+ public static DateTime GetNetworkTime()
+ {
+ try
+ {
+ if (StartTime.HasValue)
+ {
+ return StartTime.Value.AddMilliseconds(Stopwatch.ElapsedMilliseconds);
+ }
+ byte[] array = new byte[48];
+ array[0] = 27;
+ IPEndPoint remoteEP = new IPEndPoint(Dns.GetHostEntry("time.google.com").AddressList.First((IPAddress a) => a.AddressFamily == AddressFamily.InterNetwork), 123);
+ using (Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp))
+ {
+ socket.Connect(remoteEP);
+ socket.ReceiveTimeout = 3000;
+ socket.Send(array);
+ socket.Receive(array);
+ socket.Close();
+ }
+ ulong num = ((ulong)array[40] << 24) | ((ulong)array[41] << 16) | ((ulong)array[42] << 8) | array[43];
+ ulong num2 = ((ulong)array[44] << 24) | ((ulong)array[45] << 16) | ((ulong)array[46] << 8) | array[47];
+ ulong num3 = num * 1000 + num2 * 1000 / 4294967296L;
+ DateTime value = new DateTime(1900, 1, 1).AddMilliseconds((long)num3).ToLocalTime();
+ StartTime = value;
+ Stopwatch = Stopwatch.StartNew();
+ return StartTime.Value;
+ }
+ catch (Exception)
+ {
+ StartTime = DateTime.Now;
+ Stopwatch = Stopwatch.StartNew();
+ return StartTime.Value;
+ }
+ }
+
+ public static int GetAge(DateTime birth)
+ {
+ DateTime date = GetNetworkTime().Date;
+ int num = date.Year - birth.Year;
+ DateTime dateTime = date.AddYears(-num);
+ if (birth > dateTime)
+ {
+ num--;
+ }
+ return num;
+ }
+}
diff --git a/Gestor.Model/Gestor.Model.csproj b/Gestor.Model/Gestor.Model.csproj
new file mode 100644
index 0000000..20f7589
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.csproj
@@ -0,0 +1,27 @@
+<Project Sdk="Microsoft.NET.Sdk">
+ <PropertyGroup>
+ <AssemblyName>Gestor.Model</AssemblyName>
+ <GenerateAssemblyInfo>False</GenerateAssemblyInfo>
+ <TargetFramework>net48</TargetFramework>
+ </PropertyGroup>
+ <PropertyGroup>
+ <LangVersion>11.0</LangVersion>
+ <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
+ </PropertyGroup>
+ <PropertyGroup>
+ <RootNamespace />
+ </PropertyGroup>
+ <ItemGroup />
+ <ItemGroup>
+ <Reference Include="Newtonsoft.Json" />
+ <Reference Include="System.Core">
+ <HintPath>../../../../usr/share/dotnet/shared/Microsoft.NETCore.App/6.0.25/System.Core.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Data">
+ <HintPath>../../../../usr/share/dotnet/shared/Microsoft.NETCore.App/6.0.25/System.Data.dll</HintPath>
+ </Reference>
+ <Reference Include="Microsoft.CSharp">
+ <HintPath>../../../../usr/share/dotnet/shared/Microsoft.NETCore.App/6.0.25/Microsoft.CSharp.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+</Project> \ No newline at end of file
diff --git a/Gestor.Model/Gestor.Model.dll_Decompiler.com.sln b/Gestor.Model/Gestor.Model.dll_Decompiler.com.sln
new file mode 100644
index 0000000..57f24c4
--- /dev/null
+++ b/Gestor.Model/Gestor.Model.dll_Decompiler.com.sln
@@ -0,0 +1,24 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.5.2.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Gestor.Model", "Gestor.Model.csproj", "{F9E445C7-3BE0-39BE-1EF6-57EE801B4F2C}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {F9E445C7-3BE0-39BE-1EF6-57EE801B4F2C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F9E445C7-3BE0-39BE-1EF6-57EE801B4F2C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F9E445C7-3BE0-39BE-1EF6-57EE801B4F2C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F9E445C7-3BE0-39BE-1EF6-57EE801B4F2C}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {ACEE88B6-019E-4EF9-8835-10F204448B04}
+ EndGlobalSection
+EndGlobal
diff --git a/Gestor.Model/Newtonsoft.Json.dll b/Gestor.Model/Newtonsoft.Json.dll
new file mode 100644
index 0000000..7af125a
--- /dev/null
+++ b/Gestor.Model/Newtonsoft.Json.dll
Binary files differ
diff --git a/Gestor.Model/Properties/AssemblyInfo.cs b/Gestor.Model/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..7076c28
--- /dev/null
+++ b/Gestor.Model/Properties/AssemblyInfo.cs
@@ -0,0 +1,17 @@
+using System.Diagnostics;
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Runtime.Versioning;
+
+[assembly: AssemblyTitle("Gestor.Model")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Gestor.Model")]
+[assembly: AssemblyCopyright("Copyright © 2019")]
+[assembly: AssemblyTrademark("")]
+[assembly: ComVisible(false)]
+[assembly: Guid("5cdf128b-c74f-43e3-99be-96ed8c50bf61")]
+[assembly: AssemblyFileVersion("8.4.0.0")]
+[assembly: AssemblyVersion("8.4.0.0")]
diff --git a/Gestor.Model/bin/Debug/net48/Gestor.Model.dll b/Gestor.Model/bin/Debug/net48/Gestor.Model.dll
new file mode 100644
index 0000000..71bfece
--- /dev/null
+++ b/Gestor.Model/bin/Debug/net48/Gestor.Model.dll
Binary files differ
diff --git a/Gestor.Model/bin/Debug/net48/Gestor.Model.pdb b/Gestor.Model/bin/Debug/net48/Gestor.Model.pdb
new file mode 100644
index 0000000..316b389
--- /dev/null
+++ b/Gestor.Model/bin/Debug/net48/Gestor.Model.pdb
Binary files differ
diff --git a/Gestor.Model/bin/Debug/net48/Newtonsoft.Json.dll b/Gestor.Model/bin/Debug/net48/Newtonsoft.Json.dll
new file mode 100644
index 0000000..7af125a
--- /dev/null
+++ b/Gestor.Model/bin/Debug/net48/Newtonsoft.Json.dll
Binary files differ
diff --git a/Gestor.Model/obj/Debug/net48/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/Gestor.Model/obj/Debug/net48/.NETFramework,Version=v4.8.AssemblyAttributes.cs
new file mode 100644
index 0000000..3cf0af3
--- /dev/null
+++ b/Gestor.Model/obj/Debug/net48/.NETFramework,Version=v4.8.AssemblyAttributes.cs
@@ -0,0 +1,4 @@
+// <autogenerated />
+using System;
+using System.Reflection;
+[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
diff --git a/Gestor.Model/obj/Debug/net48/Gestor.M.30BD87A2.Up2Date b/Gestor.Model/obj/Debug/net48/Gestor.M.30BD87A2.Up2Date
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Gestor.Model/obj/Debug/net48/Gestor.M.30BD87A2.Up2Date
diff --git a/Gestor.Model/obj/Debug/net48/Gestor.Model.GeneratedMSBuildEditorConfig.editorconfig b/Gestor.Model/obj/Debug/net48/Gestor.Model.GeneratedMSBuildEditorConfig.editorconfig
new file mode 100644
index 0000000..5c2b5da
--- /dev/null
+++ b/Gestor.Model/obj/Debug/net48/Gestor.Model.GeneratedMSBuildEditorConfig.editorconfig
@@ -0,0 +1,8 @@
+is_global = true
+build_property.RootNamespace =
+build_property.ProjectDir = c:\Users\Usuario\Downloads\Gestor.Model.dll_Decompiler.com\
+build_property.EnableComHosting =
+build_property.EnableGeneratedComInterfaceComImportInterop =
+build_property.CsWinRTUseWindowsUIXamlProjections = false
+build_property.EffectiveAnalysisLevelStyle =
+build_property.EnableCodeStyleSeverity =
diff --git a/Gestor.Model/obj/Debug/net48/Gestor.Model.Resources.Messages.resources b/Gestor.Model/obj/Debug/net48/Gestor.Model.Resources.Messages.resources
new file mode 100644
index 0000000..5f12047
--- /dev/null
+++ b/Gestor.Model/obj/Debug/net48/Gestor.Model.Resources.Messages.resources
Binary files differ
diff --git a/Gestor.Model/obj/Debug/net48/Gestor.Model.assets.cache b/Gestor.Model/obj/Debug/net48/Gestor.Model.assets.cache
new file mode 100644
index 0000000..cf48726
--- /dev/null
+++ b/Gestor.Model/obj/Debug/net48/Gestor.Model.assets.cache
Binary files differ
diff --git a/Gestor.Model/obj/Debug/net48/Gestor.Model.csproj.AssemblyReference.cache b/Gestor.Model/obj/Debug/net48/Gestor.Model.csproj.AssemblyReference.cache
new file mode 100644
index 0000000..6705ecc
--- /dev/null
+++ b/Gestor.Model/obj/Debug/net48/Gestor.Model.csproj.AssemblyReference.cache
Binary files differ
diff --git a/Gestor.Model/obj/Debug/net48/Gestor.Model.csproj.CoreCompileInputs.cache b/Gestor.Model/obj/Debug/net48/Gestor.Model.csproj.CoreCompileInputs.cache
new file mode 100644
index 0000000..6296fa1
--- /dev/null
+++ b/Gestor.Model/obj/Debug/net48/Gestor.Model.csproj.CoreCompileInputs.cache
@@ -0,0 +1 @@
+e4fb1f8ba08f0e1af0f0e5f60e318a1b617d50f8099fa2e63e6c93f1ca74bb2a
diff --git a/Gestor.Model/obj/Debug/net48/Gestor.Model.csproj.FileListAbsolute.txt b/Gestor.Model/obj/Debug/net48/Gestor.Model.csproj.FileListAbsolute.txt
new file mode 100644
index 0000000..2a0af31
--- /dev/null
+++ b/Gestor.Model/obj/Debug/net48/Gestor.Model.csproj.FileListAbsolute.txt
@@ -0,0 +1,11 @@
+c:\Users\Usuario\Downloads\Gestor.Model.dll_Decompiler.com\obj\Debug\net48\Gestor.Model.csproj.AssemblyReference.cache
+c:\Users\Usuario\Downloads\Gestor.Model.dll_Decompiler.com\obj\Debug\net48\Gestor.Model.Resources.Messages.resources
+c:\Users\Usuario\Downloads\Gestor.Model.dll_Decompiler.com\obj\Debug\net48\Gestor.Model.csproj.GenerateResource.cache
+c:\Users\Usuario\Downloads\Gestor.Model.dll_Decompiler.com\obj\Debug\net48\Gestor.Model.GeneratedMSBuildEditorConfig.editorconfig
+c:\Users\Usuario\Downloads\Gestor.Model.dll_Decompiler.com\obj\Debug\net48\Gestor.Model.csproj.CoreCompileInputs.cache
+c:\Users\Usuario\Downloads\Gestor.Model.dll_Decompiler.com\bin\Debug\net48\Gestor.Model.dll
+c:\Users\Usuario\Downloads\Gestor.Model.dll_Decompiler.com\bin\Debug\net48\Gestor.Model.pdb
+c:\Users\Usuario\Downloads\Gestor.Model.dll_Decompiler.com\bin\Debug\net48\Newtonsoft.Json.dll
+c:\Users\Usuario\Downloads\Gestor.Model.dll_Decompiler.com\obj\Debug\net48\Gestor.M.30BD87A2.Up2Date
+c:\Users\Usuario\Downloads\Gestor.Model.dll_Decompiler.com\obj\Debug\net48\Gestor.Model.dll
+c:\Users\Usuario\Downloads\Gestor.Model.dll_Decompiler.com\obj\Debug\net48\Gestor.Model.pdb
diff --git a/Gestor.Model/obj/Debug/net48/Gestor.Model.csproj.GenerateResource.cache b/Gestor.Model/obj/Debug/net48/Gestor.Model.csproj.GenerateResource.cache
new file mode 100644
index 0000000..1ab4966
--- /dev/null
+++ b/Gestor.Model/obj/Debug/net48/Gestor.Model.csproj.GenerateResource.cache
Binary files differ
diff --git a/Gestor.Model/obj/Debug/net48/Gestor.Model.dll b/Gestor.Model/obj/Debug/net48/Gestor.Model.dll
new file mode 100644
index 0000000..71bfece
--- /dev/null
+++ b/Gestor.Model/obj/Debug/net48/Gestor.Model.dll
Binary files differ
diff --git a/Gestor.Model/obj/Debug/net48/Gestor.Model.pdb b/Gestor.Model/obj/Debug/net48/Gestor.Model.pdb
new file mode 100644
index 0000000..316b389
--- /dev/null
+++ b/Gestor.Model/obj/Debug/net48/Gestor.Model.pdb
Binary files differ
diff --git a/Gestor.Model/obj/Gestor.Model.csproj.nuget.dgspec.json b/Gestor.Model/obj/Gestor.Model.csproj.nuget.dgspec.json
new file mode 100644
index 0000000..b5d1762
--- /dev/null
+++ b/Gestor.Model/obj/Gestor.Model.csproj.nuget.dgspec.json
@@ -0,0 +1,53 @@
+{
+ "format": 1,
+ "restore": {
+ "c:\\Users\\Usuario\\Downloads\\Gestor.Model.dll_Decompiler.com\\Gestor.Model.csproj": {}
+ },
+ "projects": {
+ "c:\\Users\\Usuario\\Downloads\\Gestor.Model.dll_Decompiler.com\\Gestor.Model.csproj": {
+ "version": "1.0.0",
+ "restore": {
+ "projectUniqueName": "c:\\Users\\Usuario\\Downloads\\Gestor.Model.dll_Decompiler.com\\Gestor.Model.csproj",
+ "projectName": "Gestor.Model",
+ "projectPath": "c:\\Users\\Usuario\\Downloads\\Gestor.Model.dll_Decompiler.com\\Gestor.Model.csproj",
+ "packagesPath": "C:\\Users\\Usuario\\.nuget\\packages\\",
+ "outputPath": "c:\\Users\\Usuario\\Downloads\\Gestor.Model.dll_Decompiler.com\\obj\\",
+ "projectStyle": "PackageReference",
+ "configFilePaths": [
+ "C:\\Users\\Usuario\\AppData\\Roaming\\NuGet\\NuGet.Config",
+ "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
+ ],
+ "originalTargetFrameworks": [
+ "net48"
+ ],
+ "sources": {
+ "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
+ "https://api.nuget.org/v3/index.json": {}
+ },
+ "frameworks": {
+ "net48": {
+ "targetAlias": "net48",
+ "projectReferences": {}
+ }
+ },
+ "warningProperties": {
+ "warnAsError": [
+ "NU1605"
+ ]
+ },
+ "restoreAuditProperties": {
+ "enableAudit": "true",
+ "auditLevel": "low",
+ "auditMode": "direct"
+ },
+ "SdkAnalysisLevel": "10.0.200"
+ },
+ "frameworks": {
+ "net48": {
+ "targetAlias": "net48",
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\10.0.201\\RuntimeIdentifierGraph.json"
+ }
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/Gestor.Model/obj/Gestor.Model.csproj.nuget.g.props b/Gestor.Model/obj/Gestor.Model.csproj.nuget.g.props
new file mode 100644
index 0000000..2d9dd9c
--- /dev/null
+++ b/Gestor.Model/obj/Gestor.Model.csproj.nuget.g.props
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+ <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
+ <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
+ <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
+ <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
+ <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Usuario\.nuget\packages\</NuGetPackageFolders>
+ <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
+ <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">7.0.0</NuGetToolVersion>
+ </PropertyGroup>
+ <ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
+ <SourceRoot Include="C:\Users\Usuario\.nuget\packages\" />
+ </ItemGroup>
+</Project> \ No newline at end of file
diff --git a/Gestor.Model/obj/Gestor.Model.csproj.nuget.g.targets b/Gestor.Model/obj/Gestor.Model.csproj.nuget.g.targets
new file mode 100644
index 0000000..35a7576
--- /dev/null
+++ b/Gestor.Model/obj/Gestor.Model.csproj.nuget.g.targets
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" /> \ No newline at end of file
diff --git a/Gestor.Model/obj/project.assets.json b/Gestor.Model/obj/project.assets.json
new file mode 100644
index 0000000..97183dd
--- /dev/null
+++ b/Gestor.Model/obj/project.assets.json
@@ -0,0 +1,58 @@
+{
+ "version": 3,
+ "targets": {
+ ".NETFramework,Version=v4.8": {}
+ },
+ "libraries": {},
+ "projectFileDependencyGroups": {
+ ".NETFramework,Version=v4.8": []
+ },
+ "packageFolders": {
+ "C:\\Users\\Usuario\\.nuget\\packages\\": {}
+ },
+ "project": {
+ "version": "1.0.0",
+ "restore": {
+ "projectUniqueName": "C:\\Users\\Usuario\\Downloads\\Gestor.Model.dll_Decompiler.com\\Gestor.Model.csproj",
+ "projectName": "Gestor.Model",
+ "projectPath": "C:\\Users\\Usuario\\Downloads\\Gestor.Model.dll_Decompiler.com\\Gestor.Model.csproj",
+ "packagesPath": "C:\\Users\\Usuario\\.nuget\\packages\\",
+ "outputPath": "C:\\Users\\Usuario\\Downloads\\Gestor.Model.dll_Decompiler.com\\obj\\",
+ "projectStyle": "PackageReference",
+ "configFilePaths": [
+ "C:\\Users\\Usuario\\AppData\\Roaming\\NuGet\\NuGet.Config",
+ "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
+ ],
+ "originalTargetFrameworks": [
+ "net48"
+ ],
+ "sources": {
+ "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
+ "https://api.nuget.org/v3/index.json": {}
+ },
+ "frameworks": {
+ "net48": {
+ "targetAlias": "net48",
+ "projectReferences": {}
+ }
+ },
+ "warningProperties": {
+ "warnAsError": [
+ "NU1605"
+ ]
+ },
+ "restoreAuditProperties": {
+ "enableAudit": "true",
+ "auditLevel": "low",
+ "auditMode": "direct"
+ },
+ "SdkAnalysisLevel": "10.0.200"
+ },
+ "frameworks": {
+ "net48": {
+ "targetAlias": "net48",
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\10.0.201\\RuntimeIdentifierGraph.json"
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/Gestor.Model/obj/project.nuget.cache b/Gestor.Model/obj/project.nuget.cache
new file mode 100644
index 0000000..98ce8c9
--- /dev/null
+++ b/Gestor.Model/obj/project.nuget.cache
@@ -0,0 +1,8 @@
+{
+ "version": 2,
+ "dgSpecHash": "ImJb0pSfsh8=",
+ "success": true,
+ "projectFilePath": "c:\\Users\\Usuario\\Downloads\\Gestor.Model.dll_Decompiler.com\\Gestor.Model.csproj",
+ "expectedPackageFiles": [],
+ "logs": []
+} \ No newline at end of file