From 1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 Mon Sep 17 00:00:00 2001 From: Lucas Faria Mendes Date: Mon, 30 Mar 2026 10:38:18 -0300 Subject: chore: location --- Gestor.Model/Gestor.Model.csproj | 1644 ------------------ Gestor.Model/Gestor.Model.sln | 21 - .../Gestor.ModelReferences/Newtonsoft.Json.dll | Bin 701992 -> 0 bytes Gestor.Model/Model.API/Access.cs | 67 - Gestor.Model/Model.API/AccessControl.cs | 42 - Gestor.Model/Model.API/AjudaTela.cs | 55 - Gestor.Model/Model.API/Attachment.cs | 30 - Gestor.Model/Model.API/AuthSso.cs | 24 - Gestor.Model/Model.API/ConnectionAddress.cs | 114 -- Gestor.Model/Model.API/Customer.cs | 127 -- Gestor.Model/Model.API/CustomerAttendance.cs | 37 - Gestor.Model/Model.API/CustomerData.cs | 42 - Gestor.Model/Model.API/HorarioAtendimento.cs | 48 - Gestor.Model/Model.API/LogError.cs | 126 -- Gestor.Model/Model.API/Owner.cs | 54 - Gestor.Model/Model.API/Parameters.cs | 48 - Gestor.Model/Model.API/Payment.cs | 67 - Gestor.Model/Model.API/TipoErro.cs | 1014 ----------- Gestor.Model/Model.API/TokenSso.cs | 36 - Gestor.Model/Model.API/UploadFile.cs | 61 - Gestor.Model/Model.API/UserSso.cs | 78 - Gestor.Model/Model.API/UsuarioCentralSegurado.cs | 112 -- Gestor.Model/Model.API/Version.cs | 60 - Gestor.Model/Model.Attributes/EntityAttribute.cs | 40 - Gestor.Model/Model.Attributes/ForceLogAttribute.cs | 39 - Gestor.Model/Model.Attributes/HelpAttribute.cs | 40 - Gestor.Model/Model.Attributes/LogAttribute.cs | 40 - Gestor.Model/Model.Attributes/NameAttribute.cs | 40 - .../Model.Attributes/OldValue2Attribute.cs | 20 - Gestor.Model/Model.Attributes/OldValueAttribute.cs | 20 - Gestor.Model/Model.Attributes/TipoAttribute.cs | 40 - Gestor.Model/Model.Attributes/WidthAttribute.cs | 40 - Gestor.Model/Model.CalculoWeb/Auto/CalculoAuto.cs | 61 - Gestor.Model/Model.CalculoWeb/Auto/Caminhao.cs | 78 - .../Model.CalculoWeb/Auto/CoberturaAuto.cs | 132 -- .../Model.CalculoWeb/Auto/ComissaoSeguradora.cs | 24 - .../Model.CalculoWeb/Auto/CondutorPrincipal.cs | 127 -- Gestor.Model/Model.CalculoWeb/Auto/Fipe.cs | 84 - .../Model.CalculoWeb/Auto/QuestionarioAuto.cs | 90 - Gestor.Model/Model.CalculoWeb/Auto/Veiculo.cs | 217 --- Gestor.Model/Model.CalculoWeb/Calculo.cs | 73 - .../Condominio/CalculoCondominio.cs | 44 - .../Condominio/CoberturaCondominio.cs | 186 -- .../Condominio/QuestionarioCondominio.cs | 96 -- .../Model.CalculoWeb/Empresa/CalculoEmpresa.cs | 43 - .../Model.CalculoWeb/Empresa/CoberturaEmpresa.cs | 186 -- .../Model.CalculoWeb/Empresa/EnderecoEmpresa.cs | 60 - .../Empresa/QuestionarioEmpresa.cs | 115 -- .../Residencia/CalculoResidencia.cs | 43 - .../Residencia/CoberturaResidencia.cs | 138 -- .../Residencia/EnderecoResidencia.cs | 60 - Gestor.Model/Model.CalculoWeb/Residencia/Imovel.cs | 42 - .../Residencia/QuestionarioResidencia.cs | 66 - Gestor.Model/Model.CalculoWeb/Resultados.cs | 18 - Gestor.Model/Model.CalculoWeb/Segurado.cs | 158 -- Gestor.Model/Model.CalculoWeb/Seguro.cs | 110 -- Gestor.Model/Model.CalculoWeb/Telefone.cs | 30 - Gestor.Model/Model.CalculoWeb/Usuario.cs | 18 - .../VidaGlobal/CalculoVidaGlobal.cs | 44 - .../VidaGlobal/CoberturaVidaGlobal.cs | 66 - .../VidaGlobal/QuestionarioVidaGlobal.cs | 37 - .../VidaIndividual/CalculoVidaIndividual.cs | 44 - .../VidaIndividual/CoberturaVidaIndividual.cs | 108 -- .../Model.CalculoWeb/VidaIndividual/Profissao.cs | 36 - .../VidaIndividual/QuestionarioVidaIndividual.cs | 67 - Gestor.Model/Model.Common/AcessoApolice.cs | 17 - Gestor.Model/Model.Common/Agrupamento.cs | 23 - Gestor.Model/Model.Common/Antifurto.cs | 30 - Gestor.Model/Model.Common/AtividadeEmpresa.cs | 129 -- Gestor.Model/Model.Common/BandeiraCartao.cs | 33 - Gestor.Model/Model.Common/BaseRepasse.cs | 27 - Gestor.Model/Model.Common/Categoria.cs | 51 - Gestor.Model/Model.Common/Combustivel.cs | 60 - Gestor.Model/Model.Common/Condicao.cs | 43 - Gestor.Model/Model.Common/Configuracao.cs | 179 -- Gestor.Model/Model.Common/ConfiguracaoImpressao.cs | 32 - Gestor.Model/Model.Common/Cor.cs | 63 - Gestor.Model/Model.Common/Correcao.cs | 18 - Gestor.Model/Model.Common/DistanciaTrabalho.cs | 30 - Gestor.Model/Model.Common/EquipamentoIncendio.cs | 19 - Gestor.Model/Model.Common/EquipamentoSeguranca.cs | 19 - Gestor.Model/Model.Common/EstadoCivil.cs | 36 - Gestor.Model/Model.Common/FiltroArquivoDigital.cs | 36 - Gestor.Model/Model.Common/FiltroCritica.cs | 15 - Gestor.Model/Model.Common/FiltroLancamento.cs | 23 - Gestor.Model/Model.Common/FiltroLancamentoData.cs | 17 - Gestor.Model/Model.Common/FiltroStatusDocumento.cs | 21 - Gestor.Model/Model.Common/FormaPagamento.cs | 63 - Gestor.Model/Model.Common/FormaRepasse.cs | 21 - Gestor.Model/Model.Common/GaragemResidencia.cs | 27 - Gestor.Model/Model.Common/GaragemTrabalhoEstudo.cs | 30 - Gestor.Model/Model.Common/Isencao.cs | 24 - Gestor.Model/Model.Common/Localizacao.cs | 30 - Gestor.Model/Model.Common/ManutencaoItem.cs | 25 - Gestor.Model/Model.Common/Mes.cs | 48 - Gestor.Model/Model.Common/Negocio.cs | 18 - Gestor.Model/Model.Common/NegocioCorretora.cs | 18 - Gestor.Model/Model.Common/Ocupacao.cs | 30 - Gestor.Model/Model.Common/Operacao.cs | 13 - Gestor.Model/Model.Common/Operador.cs | 29 - Gestor.Model/Model.Common/Parentesco.cs | 99 -- Gestor.Model/Model.Common/ParentescoVinculo.cs | 84 - Gestor.Model/Model.Common/PermissaoAggilizador.cs | 19 - Gestor.Model/Model.Common/Rastreador.cs | 66 - Gestor.Model/Model.Common/Relacao.cs | 42 - Gestor.Model/Model.Common/Relatorio.cs | 132 -- Gestor.Model/Model.Common/Sexo.cs | 20 - Gestor.Model/Model.Common/Sinal.cs | 18 - .../Model.Common/SinteticoFinanceiroTipo.cs | 21 - Gestor.Model/Model.Common/SqlQueryCondition.cs | 26 - Gestor.Model/Model.Common/StatusAssinatura.cs | 21 - Gestor.Model/Model.Common/StatusCalculo.cs | 25 - .../Model.Common/StatusDocumentoAssinado.cs | 49 - Gestor.Model/Model.Common/StatusExtrato.cs | 23 - Gestor.Model/Model.Common/StatusItem.cs | 12 - Gestor.Model/Model.Common/StatusLancamento.cs | 17 - Gestor.Model/Model.Common/StatusPagamento.cs | 17 - Gestor.Model/Model.Common/StatusParcela.cs | 75 - Gestor.Model/Model.Common/StatusProspeccao.cs | 27 - Gestor.Model/Model.Common/StatusSinistro.cs | 27 - Gestor.Model/Model.Common/StatusTarefa.cs | 17 - Gestor.Model/Model.Common/SubTipo.cs | 30 - Gestor.Model/Model.Common/TabelaReferencia.cs | 18 - Gestor.Model/Model.Common/TempoHabilitacao.cs | 45 - Gestor.Model/Model.Common/TipoAcao.cs | 17 - Gestor.Model/Model.Common/TipoAeronautico.cs | 120 -- Gestor.Model/Model.Common/TipoArquivoDigital.cs | 47 - Gestor.Model/Model.Common/TipoArquivoVinculo.cs | 10 - Gestor.Model/Model.Common/TipoCobertura.cs | 27 - Gestor.Model/Model.Common/TipoConstrucao.cs | 24 - Gestor.Model/Model.Common/TipoConta.cs | 17 - Gestor.Model/Model.Common/TipoContato.cs | 10 - Gestor.Model/Model.Common/TipoContatoSeguradora.cs | 17 - Gestor.Model/Model.Common/TipoDocumento.cs | 24 - Gestor.Model/Model.Common/TipoEmail.cs | 17 - Gestor.Model/Model.Common/TipoEndereco.cs | 33 - Gestor.Model/Model.Common/TipoEndosso.cs | 27 - Gestor.Model/Model.Common/TipoExtrato.cs | 17 - Gestor.Model/Model.Common/TipoFiltroBusca.cs | 15 - Gestor.Model/Model.Common/TipoFiltroCliente.cs | 17 - Gestor.Model/Model.Common/TipoFiltroFinanceiro.cs | 21 - Gestor.Model/Model.Common/TipoFiltroRelatorio.cs | 27 - Gestor.Model/Model.Common/TipoIncidencia.cs | 18 - .../Model.Common/TipoIncidenciaDesconto.cs | 15 - Gestor.Model/Model.Common/TipoManutencao.cs | 19 - Gestor.Model/Model.Common/TipoMoradia.cs | 15 - Gestor.Model/Model.Common/TipoPagamento.cs | 63 - Gestor.Model/Model.Common/TipoPavimentacao.cs | 21 - Gestor.Model/Model.Common/TipoPerda.cs | 27 - Gestor.Model/Model.Common/TipoPesquisa.cs | 49 - Gestor.Model/Model.Common/TipoProtocoloEtiqueta.cs | 15 - Gestor.Model/Model.Common/TipoRecebimento.cs | 18 - Gestor.Model/Model.Common/TipoRecibo.cs | 18 - Gestor.Model/Model.Common/TipoRepasse.cs | 24 - Gestor.Model/Model.Common/TipoResidencia.cs | 24 - Gestor.Model/Model.Common/TipoRestricao.cs | 528 ------ Gestor.Model/Model.Common/TipoSeguro.cs | 33 - Gestor.Model/Model.Common/TipoSinistro.cs | 18 - Gestor.Model/Model.Common/TipoTarefa.cs | 29 - Gestor.Model/Model.Common/TipoTela.cs | 216 --- Gestor.Model/Model.Common/TipoTelaInicial.cs | 21 - Gestor.Model/Model.Common/TipoTelefone.cs | 56 - Gestor.Model/Model.Common/TipoTitular.cs | 21 - Gestor.Model/Model.Common/TipoTrilha.cs | 12 - Gestor.Model/Model.Common/TpoSituacaoSinistro.cs | 21 - Gestor.Model/Model.Common/UsoDependetes.cs | 27 - Gestor.Model/Model.Common/UsoVeiculo.cs | 24 - Gestor.Model/Model.Common/Utilizacao.cs | 18 - Gestor.Model/Model.Common/ValidationStates.cs | 11 - .../EnumDescriptionTypeConverter.cs | 37 - .../Model.Domain.Aggilizador/ArquivoVinculo.cs | 48 - Gestor.Model/Model.Domain.Aggilizador/Calculo.cs | 39 - .../Model.Domain.Aggilizador/LocalArquivo.cs | 36 - .../Model.Domain.Aggilizador/ParcelaPendente.cs | 60 - .../Model.Domain.Aggilizador/VinculoDocumento.cs | 36 - Gestor.Model/Model.Domain.BI/Analitico.cs | 240 --- Gestor.Model/Model.Domain.BI/AtalhosApolice.cs | 112 -- Gestor.Model/Model.Domain.BI/AtalhosCalculo.cs | 28 - Gestor.Model/Model.Domain.BI/AtalhosCliente.cs | 50 - Gestor.Model/Model.Domain.BI/AtalhosComissao.cs | 36 - Gestor.Model/Model.Domain.BI/AtalhosParcela.cs | 72 - Gestor.Model/Model.Domain.BI/AtalhosSinistro.cs | 28 - Gestor.Model/Model.Domain.Card/Assistance.cs | 180 -- Gestor.Model/Model.Domain.Card/AssistenciaCia.cs | 114 -- Gestor.Model/Model.Domain.Card/Card.cs | 120 -- Gestor.Model/Model.Domain.Card/Logo.cs | 42 - Gestor.Model/Model.Domain.Common/ArquivoDigital.cs | 213 --- Gestor.Model/Model.Domain.Common/Atividade.cs | 50 - Gestor.Model/Model.Domain.Common/Banco.cs | 87 - Gestor.Model/Model.Domain.Common/Contato.cs | 31 - .../Model.Domain.Common/ControleArquivoDigital.cs | 25 - Gestor.Model/Model.Domain.Common/Empresa.cs | 546 ------ Gestor.Model/Model.Domain.Common/Fipe.cs | 138 -- Gestor.Model/Model.Domain.Common/FipeDetalhe.cs | 24 - .../Model.Domain.Common/IndiceArquivoDigital.cs | 246 --- .../Model.Domain.Common/PesquisaAvancada.cs | 55 - Gestor.Model/Model.Domain.Common/Profissao.cs | 69 - Gestor.Model/Model.Domain.Common/RegistroAcao.cs | 81 - Gestor.Model/Model.Domain.Common/RegistroLog.cs | 81 - Gestor.Model/Model.Domain.Common/Socio.cs | 159 -- Gestor.Model/Model.Domain.Common/TrocaCliente.cs | 117 -- .../ConfiguracaoSistema.cs | 20 - Gestor.Model/Model.Domain.Ferramentas/Agenda.cs | 178 -- .../Model.Domain.Ferramentas/AgendaEmail.cs | 57 - .../Model.Domain.Ferramentas/AgendaTelefone.cs | 42 - .../Model.Domain.Ferramentas/CategoriaTarefa.cs | 19 - .../Model.Domain.Ferramentas/Credencial.cs | 278 --- .../Model.Domain.Ferramentas/Destinatario.cs | 63 - Gestor.Model/Model.Domain.Ferramentas/Fase.cs | 44 - Gestor.Model/Model.Domain.Ferramentas/Imposto.cs | 177 -- Gestor.Model/Model.Domain.Ferramentas/LogEmail.cs | 157 -- Gestor.Model/Model.Domain.Ferramentas/LogEnvio.cs | 36 - .../ManutencaoPagamentos.cs | 361 ---- .../Model.Domain.Ferramentas/NotaFiscal.cs | 217 --- .../Model.Domain.Ferramentas/OrigemCliente.cs | 35 - Gestor.Model/Model.Domain.Ferramentas/Recibo.cs | 202 --- .../Model.Domain.Ferramentas/ResponsavelTarefa.cs | 54 - .../Model.Domain.Ferramentas/StatusDeProspeccao.cs | 103 -- Gestor.Model/Model.Domain.Ferramentas/Tarefa.cs | 264 --- .../Model.Domain.Ferramentas/TipoDeTarefa.cs | 103 -- Gestor.Model/Model.Domain.Ferramentas/Trilha.cs | 122 -- .../Model.Domain.Financeiro/BancosContas.cs | 195 --- Gestor.Model/Model.Domain.Financeiro/Centro.cs | 93 - .../Model.Domain.Financeiro/ControleFinanceiro.cs | 143 -- .../Model.Domain.Financeiro/ExtratoConta.cs | 97 -- .../Model.Domain.Financeiro/FiltroPersonalizado.cs | 54 - Gestor.Model/Model.Domain.Financeiro/Fornecedor.cs | 430 ----- Gestor.Model/Model.Domain.Financeiro/Lancamento.cs | 285 ---- Gestor.Model/Model.Domain.Financeiro/Plano.cs | 68 - Gestor.Model/Model.Domain.Financeiro/Planos.cs | 165 -- .../RelatorioLancamentos.cs | 132 -- .../Relatorios/DadosFechamento.cs | 82 - .../Relatorios/DadosFechamentoAnalitico.cs | 154 -- .../Relatorios/FechamentoFinanceiro.cs | 25 - .../Relatorios/FechamentoFinanceiroAnalitico.cs | 25 - .../Relatorios/FiltroFinanceiro.cs | 55 - Gestor.Model/Model.Domain.Financeiro/Saldo.cs | 89 - .../Model.Domain.Financeiro/SinteticoFinanceiro.cs | 60 - Gestor.Model/Model.Domain.Financeiro/TipoConta.cs | 62 - .../Model.Domain.Financeiro/Transferencia.cs | 76 - Gestor.Model/Model.Domain.Generic/Diferenca.cs | 36 - Gestor.Model/Model.Domain.Generic/DomainBase.cs | 1067 ------------ Gestor.Model/Model.Domain.Generic/EmailBase.cs | 32 - Gestor.Model/Model.Domain.Generic/EnderecoBase.cs | 128 -- .../Model.Domain.Generic/FieldInformation.cs | 30 - Gestor.Model/Model.Domain.Generic/IDomain.cs | 15 - Gestor.Model/Model.Domain.Generic/TelefoneBase.cs | 82 - Gestor.Model/Model.Domain.Generic/ValorOriginal.cs | 30 - Gestor.Model/Model.Domain.MalaDireta/Copia.cs | 25 - Gestor.Model/Model.Domain.MalaDireta/MalaDireta.cs | 118 -- .../Model.Domain.MalaDireta/ModeloMalaDireta.cs | 53 - .../Model.Domain.MalaDireta/VariaveisMalaDireta.cs | 87 - .../ApolicePendente/ApolicePendente.cs | 244 --- .../ApolicePendente/ContainerApolicePendente.cs | 32 - .../Model.Domain.Relatorios/Auditoria/Auditoria.cs | 221 --- .../Model.Domain.Relatorios/CartaoSegurado.cs | 60 - .../Classificacao/Classificacao.cs | 71 - .../Cliente/SinteticoClientes.cs | 28 - .../ClientesAtivosInativos.cs | 477 ------ .../SinteticoClientesAtivosInativos.cs | 44 - .../Model.Domain.Relatorios/Comissao/Comissao.cs | 345 ---- .../Comissao/SinteticoComissao.cs | 68 - .../CriticaApolice/ApoliceCritica.cs | 123 -- .../Model.Domain.Relatorios/DadosRelatorio.cs | 312 ---- .../Model.Domain.Relatorios/DadosVinculo.cs | 67 - .../Dashboard/Prospectar.cs | 112 -- .../EndossoCancelamento/Endosso.cs | 323 ---- .../Extrato/DetalhesExtrato.cs | 73 - .../Model.Domain.Relatorios/Extrato/Extrato.cs | 120 -- .../Extrato/ExtratoComissao.cs | 37 - .../Extrato/InformacoesExtrato.cs | 93 - .../Extrato/SinteticoExtrato.cs | 28 - .../ExtratoBaixado/ExtratoBaixadoRelatorio.cs | 127 -- .../FaturaPendente/FaturaPendente.cs | 189 -- .../Fechamento/Fechamento.cs | 319 ---- .../Fechamento/Fechamentos.cs | 31 - .../Fechamento/SinteticoFechamento.cs | 94 - .../Model.Domain.Relatorios/FiltroPersonalizado.cs | 66 - .../Model.Domain.Relatorios/FiltroRelatorio.cs | 54 - .../Model.Domain.Relatorios/FiltroTipoParcela.cs | 38 - Gestor.Model/Model.Domain.Relatorios/Filtros.cs | 138 -- .../Licenciamento/Licenciamento.cs | 174 -- Gestor.Model/Model.Domain.Relatorios/Listagem.cs | 33 - .../Log/LogAcaoRelatorio.cs | 145 -- .../Model.Domain.Relatorios/LogsEnvio/LogsEnvio.cs | 211 --- .../MetaSeguradora/MetaSeguradoraRelatorio.cs | 51 - .../MetaSeguradora/SinteticoMetaSeguradora.cs | 27 - .../MetaVendedor/MetaVendedorRelatorio.cs | 51 - .../MetaVendedor/SinteticoMetaVendedor.cs | 27 - .../Model.Domain.Relatorios/NegocioRelatorio.cs | 58 - .../NotaFiscal/NotaFiscalRelatorio.cs | 96 -- .../Pagamento/AgrupamentoPagamentoSintetico.cs | 37 - .../Pagamento/AgrupamentoVendedor.cs | 113 -- .../Model.Domain.Relatorios/Pagamento/Pagamento.cs | 38 - .../Pagamento/PagamentoSintetico.cs | 25 - .../Pagamento/SinteticoPagamento.cs | 60 - .../Model.Domain.Relatorios/ParametrosRelatorio.cs | 90 - .../ParametrosTotalizacao.cs | 49 - .../Model.Domain.Relatorios/Pendente/Pendente.cs | 308 ---- .../Pendente/SinteticoPendente.cs | 52 - .../Model.Domain.Relatorios/Placa/Placas.cs | 167 -- .../Model.Domain.Relatorios/PlanilhaCompleta.cs | 1595 ----------------- .../AgrupamentoSintetico.cs | 37 - .../PrevisaoPagamentoComissao/PrevisaoPagamento.cs | 132 -- .../PrevisaoPagamentoComissao.cs | 25 - .../PrevisaoPagamentoComissaoSintetico.cs | 25 - .../Model.Domain.Relatorios/Producao/Producao.cs | 372 ---- .../Producao/SinteticoProducao.cs | 68 - .../Model.Domain.Relatorios/Renovacao/Renovacao.cs | 296 ---- .../Renovacao/SinteticoRenovacao.cs | 76 - .../Model.Domain.Relatorios/Sinistro/Sinistro.cs | 359 ---- .../Sinistro/SinteticoSinistro.cs | 68 - .../Model.Domain.Relatorios/SinteticModel.cs | 30 - .../Model.Domain.Relatorios/SinteticModelList.cs | 25 - Gestor.Model/Model.Domain.Relatorios/Sintetico.cs | 448 ----- .../Model.Domain.Relatorios/SinteticoFinanceiro.cs | 37 - .../Model.Domain.Relatorios/StatusRelatorio.cs | 58 - .../Model.Domain.Relatorios/Tarefa/Tarefa.cs | 160 -- .../Model.Domain.Relatorios/TipoRelatorio.cs | 30 - .../Model.Domain.Relatorios/ValorSintetico.cs | 55 - Gestor.Model/Model.Domain.Seguros/Adiantamento.cs | 145 -- Gestor.Model/Model.Domain.Seguros/Aeronautico.cs | 475 ------ .../Model.Domain.Seguros/AggilizadorPermissao.cs | 25 - Gestor.Model/Model.Domain.Seguros/Auto.cs | 793 --------- Gestor.Model/Model.Domain.Seguros/Cliente.cs | 1193 ------------- Gestor.Model/Model.Domain.Seguros/ClienteEmail.cs | 88 - .../Model.Domain.Seguros/ClienteEndereco.cs | 155 -- .../Model.Domain.Seguros/ClienteTelefone.cs | 82 - .../Model.Domain.Seguros/ClienteVinculo.cs | 56 - Gestor.Model/Model.Domain.Seguros/Cobertura.cs | 86 - .../Model.Domain.Seguros/CoberturaGranizo.cs | 125 -- .../Model.Domain.Seguros/CoberturaPadrao.cs | 67 - .../Model.Domain.Seguros/CondicaoRepasse.cs | 49 - .../Model.Domain.Seguros/ConfigExtratoImport.cs | 50 - Gestor.Model/Model.Domain.Seguros/Consorcio.cs | 191 --- Gestor.Model/Model.Domain.Seguros/Controle.cs | 128 -- .../Model.Domain.Seguros/ControleSinistro.cs | 118 -- .../Model.Domain.Seguros/CriticaApolice.cs | 116 -- .../Model.Domain.Seguros/DetalheExtrato.cs | 250 --- Gestor.Model/Model.Domain.Seguros/Documento.cs | 1426 ---------------- Gestor.Model/Model.Domain.Seguros/Estipulante.cs | 373 ---- Gestor.Model/Model.Domain.Seguros/Expedicao.cs | 94 - Gestor.Model/Model.Domain.Seguros/Extrato.cs | 177 -- Gestor.Model/Model.Domain.Seguros/Fabricante.cs | 62 - Gestor.Model/Model.Domain.Seguros/Granizo.cs | 247 --- Gestor.Model/Model.Domain.Seguros/Item.cs | 505 ------ Gestor.Model/Model.Domain.Seguros/MaisContato.cs | 340 ---- .../Model.Domain.Seguros/MetaSeguradora.cs | 60 - Gestor.Model/Model.Domain.Seguros/MetaVendedor.cs | 56 - Gestor.Model/Model.Domain.Seguros/Parceiro.cs | 528 ------ Gestor.Model/Model.Domain.Seguros/Parcela.cs | 789 --------- Gestor.Model/Model.Domain.Seguros/Parcelas.cs | 204 --- Gestor.Model/Model.Domain.Seguros/Patrimonial.cs | 574 ------- Gestor.Model/Model.Domain.Seguros/Perfil.cs | 275 --- Gestor.Model/Model.Domain.Seguros/PerfilEmpresa.cs | 141 -- .../PermissaoArquivoDigital.cs | 69 - .../Model.Domain.Seguros/PermissaoUsuario.cs | 57 - Gestor.Model/Model.Domain.Seguros/Produto.cs | 120 -- Gestor.Model/Model.Domain.Seguros/Prospeccao.cs | 400 ----- .../Model.Domain.Seguros/ProspeccaoToPrint.cs | 149 -- Gestor.Model/Model.Domain.Seguros/Qualificacao.cs | 152 -- Gestor.Model/Model.Domain.Seguros/Ramo.cs | 165 -- Gestor.Model/Model.Domain.Seguros/Repasse.cs | 187 -- .../Model.Domain.Seguros/ResponsavelAssinatura.cs | 109 -- .../Model.Domain.Seguros/RestricaoUsuario.cs | 60 - .../RestricaoUsuarioCamposRelatorios.cs | 61 - .../Model.Domain.Seguros/RiscosDiversos.cs | 130 -- Gestor.Model/Model.Domain.Seguros/Seguradora.cs | 1804 -------------------- .../Model.Domain.Seguros/SeguradoraContato.cs | 90 - .../Model.Domain.Seguros/SeguradoraEndereco.cs | 115 -- Gestor.Model/Model.Domain.Seguros/Sinistro.cs | 1132 ------------ Gestor.Model/Model.Domain.Seguros/SinistroAuto.cs | 284 --- Gestor.Model/Model.Domain.Seguros/SinistroVida.cs | 138 -- Gestor.Model/Model.Domain.Seguros/Status.cs | 86 - Gestor.Model/Model.Domain.Seguros/TipoVendedor.cs | 138 -- Gestor.Model/Model.Domain.Seguros/TitularesVida.cs | 269 --- Gestor.Model/Model.Domain.Seguros/TupleList.cs | 19 - Gestor.Model/Model.Domain.Seguros/Usuario.cs | 872 ---------- Gestor.Model/Model.Domain.Seguros/Vendedor.cs | 375 ---- .../Model.Domain.Seguros/VendedorParcela.cs | 235 --- .../Model.Domain.Seguros/VendedorParcelas.cs | 162 -- .../Model.Domain.Seguros/VendedorTelefone.cs | 89 - .../Model.Domain.Seguros/VendedorUsuario.cs | 51 - Gestor.Model/Model.Domain.Seguros/Vida.cs | 306 ---- .../Model.Domain.Seguros/VinculoRepasse.cs | 159 -- .../Model.Domain.Seguros/VinculoVendedor.cs | 25 - Gestor.Model/Model.Helper/ValidationHelper.cs | 518 ------ Gestor.Model/Model.License/Instalacao.cs | 79 - Gestor.Model/Model.License/Licenca.cs | 42 - Gestor.Model/Model.License/Produto.cs | 41 - Gestor.Model/Model.License/StatusLicenca.cs | 19 - Gestor.Model/Model.Relatorios/Cliente.cs | 18 - Gestor.Model/Model.Relatorios/ClienteEmail.cs | 41 - Gestor.Model/Model.Relatorios/ClienteEndereco.cs | 191 --- Gestor.Model/Model.Relatorios/ClienteTelefone.cs | 64 - Gestor.Model/Model.Relatorios/Controle.cs | 30 - Gestor.Model/Model.Relatorios/Documento.cs | 37 - .../Model.Relatorios/EstipulanteCliente.cs | 30 - Gestor.Model/Model.Relatorios/Ramo.cs | 41 - Gestor.Model/Model.Relatorios/Vendedor.cs | 41 - Gestor.Model/Model.Validation/ControleValidacao.cs | 36 - Gestor.Model/Model.Validation/Funcoes.cs | 167 -- Gestor.Model/Properties/AssemblyInfo.cs | 20 - 403 files changed, 49835 deletions(-) delete mode 100644 Gestor.Model/Gestor.Model.csproj delete mode 100644 Gestor.Model/Gestor.Model.sln delete mode 100644 Gestor.Model/Gestor.ModelReferences/Newtonsoft.Json.dll delete mode 100644 Gestor.Model/Model.API/Access.cs delete mode 100644 Gestor.Model/Model.API/AccessControl.cs delete mode 100644 Gestor.Model/Model.API/AjudaTela.cs delete mode 100644 Gestor.Model/Model.API/Attachment.cs delete mode 100644 Gestor.Model/Model.API/AuthSso.cs delete mode 100644 Gestor.Model/Model.API/ConnectionAddress.cs delete mode 100644 Gestor.Model/Model.API/Customer.cs delete mode 100644 Gestor.Model/Model.API/CustomerAttendance.cs delete mode 100644 Gestor.Model/Model.API/CustomerData.cs delete mode 100644 Gestor.Model/Model.API/HorarioAtendimento.cs delete mode 100644 Gestor.Model/Model.API/LogError.cs delete mode 100644 Gestor.Model/Model.API/Owner.cs delete mode 100644 Gestor.Model/Model.API/Parameters.cs delete mode 100644 Gestor.Model/Model.API/Payment.cs delete mode 100644 Gestor.Model/Model.API/TipoErro.cs delete mode 100644 Gestor.Model/Model.API/TokenSso.cs delete mode 100644 Gestor.Model/Model.API/UploadFile.cs delete mode 100644 Gestor.Model/Model.API/UserSso.cs delete mode 100644 Gestor.Model/Model.API/UsuarioCentralSegurado.cs delete mode 100644 Gestor.Model/Model.API/Version.cs delete mode 100644 Gestor.Model/Model.Attributes/EntityAttribute.cs delete mode 100644 Gestor.Model/Model.Attributes/ForceLogAttribute.cs delete mode 100644 Gestor.Model/Model.Attributes/HelpAttribute.cs delete mode 100644 Gestor.Model/Model.Attributes/LogAttribute.cs delete mode 100644 Gestor.Model/Model.Attributes/NameAttribute.cs delete mode 100644 Gestor.Model/Model.Attributes/OldValue2Attribute.cs delete mode 100644 Gestor.Model/Model.Attributes/OldValueAttribute.cs delete mode 100644 Gestor.Model/Model.Attributes/TipoAttribute.cs delete mode 100644 Gestor.Model/Model.Attributes/WidthAttribute.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Auto/CalculoAuto.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Auto/Caminhao.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Auto/CoberturaAuto.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Auto/ComissaoSeguradora.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Auto/CondutorPrincipal.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Auto/Fipe.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Auto/QuestionarioAuto.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Auto/Veiculo.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Calculo.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Condominio/CalculoCondominio.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Condominio/CoberturaCondominio.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Condominio/QuestionarioCondominio.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Empresa/CalculoEmpresa.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Empresa/CoberturaEmpresa.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Empresa/EnderecoEmpresa.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Empresa/QuestionarioEmpresa.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Residencia/CalculoResidencia.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Residencia/CoberturaResidencia.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Residencia/EnderecoResidencia.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Residencia/Imovel.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Residencia/QuestionarioResidencia.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Resultados.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Segurado.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Seguro.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Telefone.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/Usuario.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/VidaGlobal/CalculoVidaGlobal.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/VidaGlobal/CoberturaVidaGlobal.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/VidaGlobal/QuestionarioVidaGlobal.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/VidaIndividual/CalculoVidaIndividual.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/VidaIndividual/CoberturaVidaIndividual.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/VidaIndividual/Profissao.cs delete mode 100644 Gestor.Model/Model.CalculoWeb/VidaIndividual/QuestionarioVidaIndividual.cs delete mode 100644 Gestor.Model/Model.Common/AcessoApolice.cs delete mode 100644 Gestor.Model/Model.Common/Agrupamento.cs delete mode 100644 Gestor.Model/Model.Common/Antifurto.cs delete mode 100644 Gestor.Model/Model.Common/AtividadeEmpresa.cs delete mode 100644 Gestor.Model/Model.Common/BandeiraCartao.cs delete mode 100644 Gestor.Model/Model.Common/BaseRepasse.cs delete mode 100644 Gestor.Model/Model.Common/Categoria.cs delete mode 100644 Gestor.Model/Model.Common/Combustivel.cs delete mode 100644 Gestor.Model/Model.Common/Condicao.cs delete mode 100644 Gestor.Model/Model.Common/Configuracao.cs delete mode 100644 Gestor.Model/Model.Common/ConfiguracaoImpressao.cs delete mode 100644 Gestor.Model/Model.Common/Cor.cs delete mode 100644 Gestor.Model/Model.Common/Correcao.cs delete mode 100644 Gestor.Model/Model.Common/DistanciaTrabalho.cs delete mode 100644 Gestor.Model/Model.Common/EquipamentoIncendio.cs delete mode 100644 Gestor.Model/Model.Common/EquipamentoSeguranca.cs delete mode 100644 Gestor.Model/Model.Common/EstadoCivil.cs delete mode 100644 Gestor.Model/Model.Common/FiltroArquivoDigital.cs delete mode 100644 Gestor.Model/Model.Common/FiltroCritica.cs delete mode 100644 Gestor.Model/Model.Common/FiltroLancamento.cs delete mode 100644 Gestor.Model/Model.Common/FiltroLancamentoData.cs delete mode 100644 Gestor.Model/Model.Common/FiltroStatusDocumento.cs delete mode 100644 Gestor.Model/Model.Common/FormaPagamento.cs delete mode 100644 Gestor.Model/Model.Common/FormaRepasse.cs delete mode 100644 Gestor.Model/Model.Common/GaragemResidencia.cs delete mode 100644 Gestor.Model/Model.Common/GaragemTrabalhoEstudo.cs delete mode 100644 Gestor.Model/Model.Common/Isencao.cs delete mode 100644 Gestor.Model/Model.Common/Localizacao.cs delete mode 100644 Gestor.Model/Model.Common/ManutencaoItem.cs delete mode 100644 Gestor.Model/Model.Common/Mes.cs delete mode 100644 Gestor.Model/Model.Common/Negocio.cs delete mode 100644 Gestor.Model/Model.Common/NegocioCorretora.cs delete mode 100644 Gestor.Model/Model.Common/Ocupacao.cs delete mode 100644 Gestor.Model/Model.Common/Operacao.cs delete mode 100644 Gestor.Model/Model.Common/Operador.cs delete mode 100644 Gestor.Model/Model.Common/Parentesco.cs delete mode 100644 Gestor.Model/Model.Common/ParentescoVinculo.cs delete mode 100644 Gestor.Model/Model.Common/PermissaoAggilizador.cs delete mode 100644 Gestor.Model/Model.Common/Rastreador.cs delete mode 100644 Gestor.Model/Model.Common/Relacao.cs delete mode 100644 Gestor.Model/Model.Common/Relatorio.cs delete mode 100644 Gestor.Model/Model.Common/Sexo.cs delete mode 100644 Gestor.Model/Model.Common/Sinal.cs delete mode 100644 Gestor.Model/Model.Common/SinteticoFinanceiroTipo.cs delete mode 100644 Gestor.Model/Model.Common/SqlQueryCondition.cs delete mode 100644 Gestor.Model/Model.Common/StatusAssinatura.cs delete mode 100644 Gestor.Model/Model.Common/StatusCalculo.cs delete mode 100644 Gestor.Model/Model.Common/StatusDocumentoAssinado.cs delete mode 100644 Gestor.Model/Model.Common/StatusExtrato.cs delete mode 100644 Gestor.Model/Model.Common/StatusItem.cs delete mode 100644 Gestor.Model/Model.Common/StatusLancamento.cs delete mode 100644 Gestor.Model/Model.Common/StatusPagamento.cs delete mode 100644 Gestor.Model/Model.Common/StatusParcela.cs delete mode 100644 Gestor.Model/Model.Common/StatusProspeccao.cs delete mode 100644 Gestor.Model/Model.Common/StatusSinistro.cs delete mode 100644 Gestor.Model/Model.Common/StatusTarefa.cs delete mode 100644 Gestor.Model/Model.Common/SubTipo.cs delete mode 100644 Gestor.Model/Model.Common/TabelaReferencia.cs delete mode 100644 Gestor.Model/Model.Common/TempoHabilitacao.cs delete mode 100644 Gestor.Model/Model.Common/TipoAcao.cs delete mode 100644 Gestor.Model/Model.Common/TipoAeronautico.cs delete mode 100644 Gestor.Model/Model.Common/TipoArquivoDigital.cs delete mode 100644 Gestor.Model/Model.Common/TipoArquivoVinculo.cs delete mode 100644 Gestor.Model/Model.Common/TipoCobertura.cs delete mode 100644 Gestor.Model/Model.Common/TipoConstrucao.cs delete mode 100644 Gestor.Model/Model.Common/TipoConta.cs delete mode 100644 Gestor.Model/Model.Common/TipoContato.cs delete mode 100644 Gestor.Model/Model.Common/TipoContatoSeguradora.cs delete mode 100644 Gestor.Model/Model.Common/TipoDocumento.cs delete mode 100644 Gestor.Model/Model.Common/TipoEmail.cs delete mode 100644 Gestor.Model/Model.Common/TipoEndereco.cs delete mode 100644 Gestor.Model/Model.Common/TipoEndosso.cs delete mode 100644 Gestor.Model/Model.Common/TipoExtrato.cs delete mode 100644 Gestor.Model/Model.Common/TipoFiltroBusca.cs delete mode 100644 Gestor.Model/Model.Common/TipoFiltroCliente.cs delete mode 100644 Gestor.Model/Model.Common/TipoFiltroFinanceiro.cs delete mode 100644 Gestor.Model/Model.Common/TipoFiltroRelatorio.cs delete mode 100644 Gestor.Model/Model.Common/TipoIncidencia.cs delete mode 100644 Gestor.Model/Model.Common/TipoIncidenciaDesconto.cs delete mode 100644 Gestor.Model/Model.Common/TipoManutencao.cs delete mode 100644 Gestor.Model/Model.Common/TipoMoradia.cs delete mode 100644 Gestor.Model/Model.Common/TipoPagamento.cs delete mode 100644 Gestor.Model/Model.Common/TipoPavimentacao.cs delete mode 100644 Gestor.Model/Model.Common/TipoPerda.cs delete mode 100644 Gestor.Model/Model.Common/TipoPesquisa.cs delete mode 100644 Gestor.Model/Model.Common/TipoProtocoloEtiqueta.cs delete mode 100644 Gestor.Model/Model.Common/TipoRecebimento.cs delete mode 100644 Gestor.Model/Model.Common/TipoRecibo.cs delete mode 100644 Gestor.Model/Model.Common/TipoRepasse.cs delete mode 100644 Gestor.Model/Model.Common/TipoResidencia.cs delete mode 100644 Gestor.Model/Model.Common/TipoRestricao.cs delete mode 100644 Gestor.Model/Model.Common/TipoSeguro.cs delete mode 100644 Gestor.Model/Model.Common/TipoSinistro.cs delete mode 100644 Gestor.Model/Model.Common/TipoTarefa.cs delete mode 100644 Gestor.Model/Model.Common/TipoTela.cs delete mode 100644 Gestor.Model/Model.Common/TipoTelaInicial.cs delete mode 100644 Gestor.Model/Model.Common/TipoTelefone.cs delete mode 100644 Gestor.Model/Model.Common/TipoTitular.cs delete mode 100644 Gestor.Model/Model.Common/TipoTrilha.cs delete mode 100644 Gestor.Model/Model.Common/TpoSituacaoSinistro.cs delete mode 100644 Gestor.Model/Model.Common/UsoDependetes.cs delete mode 100644 Gestor.Model/Model.Common/UsoVeiculo.cs delete mode 100644 Gestor.Model/Model.Common/Utilizacao.cs delete mode 100644 Gestor.Model/Model.Common/ValidationStates.cs delete mode 100644 Gestor.Model/Model.Converter/EnumDescriptionTypeConverter.cs delete mode 100644 Gestor.Model/Model.Domain.Aggilizador/ArquivoVinculo.cs delete mode 100644 Gestor.Model/Model.Domain.Aggilizador/Calculo.cs delete mode 100644 Gestor.Model/Model.Domain.Aggilizador/LocalArquivo.cs delete mode 100644 Gestor.Model/Model.Domain.Aggilizador/ParcelaPendente.cs delete mode 100644 Gestor.Model/Model.Domain.Aggilizador/VinculoDocumento.cs delete mode 100644 Gestor.Model/Model.Domain.BI/Analitico.cs delete mode 100644 Gestor.Model/Model.Domain.BI/AtalhosApolice.cs delete mode 100644 Gestor.Model/Model.Domain.BI/AtalhosCalculo.cs delete mode 100644 Gestor.Model/Model.Domain.BI/AtalhosCliente.cs delete mode 100644 Gestor.Model/Model.Domain.BI/AtalhosComissao.cs delete mode 100644 Gestor.Model/Model.Domain.BI/AtalhosParcela.cs delete mode 100644 Gestor.Model/Model.Domain.BI/AtalhosSinistro.cs delete mode 100644 Gestor.Model/Model.Domain.Card/Assistance.cs delete mode 100644 Gestor.Model/Model.Domain.Card/AssistenciaCia.cs delete mode 100644 Gestor.Model/Model.Domain.Card/Card.cs delete mode 100644 Gestor.Model/Model.Domain.Card/Logo.cs delete mode 100644 Gestor.Model/Model.Domain.Common/ArquivoDigital.cs delete mode 100644 Gestor.Model/Model.Domain.Common/Atividade.cs delete mode 100644 Gestor.Model/Model.Domain.Common/Banco.cs delete mode 100644 Gestor.Model/Model.Domain.Common/Contato.cs delete mode 100644 Gestor.Model/Model.Domain.Common/ControleArquivoDigital.cs delete mode 100644 Gestor.Model/Model.Domain.Common/Empresa.cs delete mode 100644 Gestor.Model/Model.Domain.Common/Fipe.cs delete mode 100644 Gestor.Model/Model.Domain.Common/FipeDetalhe.cs delete mode 100644 Gestor.Model/Model.Domain.Common/IndiceArquivoDigital.cs delete mode 100644 Gestor.Model/Model.Domain.Common/PesquisaAvancada.cs delete mode 100644 Gestor.Model/Model.Domain.Common/Profissao.cs delete mode 100644 Gestor.Model/Model.Domain.Common/RegistroAcao.cs delete mode 100644 Gestor.Model/Model.Domain.Common/RegistroLog.cs delete mode 100644 Gestor.Model/Model.Domain.Common/Socio.cs delete mode 100644 Gestor.Model/Model.Domain.Common/TrocaCliente.cs delete mode 100644 Gestor.Model/Model.Domain.Configuracoes/ConfiguracaoSistema.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/Agenda.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/AgendaEmail.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/AgendaTelefone.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/CategoriaTarefa.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/Credencial.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/Destinatario.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/Fase.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/Imposto.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/LogEmail.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/LogEnvio.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/ManutencaoPagamentos.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/NotaFiscal.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/OrigemCliente.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/Recibo.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/ResponsavelTarefa.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/StatusDeProspeccao.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/Tarefa.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/TipoDeTarefa.cs delete mode 100644 Gestor.Model/Model.Domain.Ferramentas/Trilha.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/BancosContas.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/Centro.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/ControleFinanceiro.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/ExtratoConta.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/FiltroPersonalizado.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/Fornecedor.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/Lancamento.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/Plano.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/Planos.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/RelatorioLancamentos.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/Relatorios/DadosFechamento.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/Relatorios/DadosFechamentoAnalitico.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/Relatorios/FechamentoFinanceiro.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/Relatorios/FechamentoFinanceiroAnalitico.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/Relatorios/FiltroFinanceiro.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/Saldo.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/SinteticoFinanceiro.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/TipoConta.cs delete mode 100644 Gestor.Model/Model.Domain.Financeiro/Transferencia.cs delete mode 100644 Gestor.Model/Model.Domain.Generic/Diferenca.cs delete mode 100644 Gestor.Model/Model.Domain.Generic/DomainBase.cs delete mode 100644 Gestor.Model/Model.Domain.Generic/EmailBase.cs delete mode 100644 Gestor.Model/Model.Domain.Generic/EnderecoBase.cs delete mode 100644 Gestor.Model/Model.Domain.Generic/FieldInformation.cs delete mode 100644 Gestor.Model/Model.Domain.Generic/IDomain.cs delete mode 100644 Gestor.Model/Model.Domain.Generic/TelefoneBase.cs delete mode 100644 Gestor.Model/Model.Domain.Generic/ValorOriginal.cs delete mode 100644 Gestor.Model/Model.Domain.MalaDireta/Copia.cs delete mode 100644 Gestor.Model/Model.Domain.MalaDireta/MalaDireta.cs delete mode 100644 Gestor.Model/Model.Domain.MalaDireta/ModeloMalaDireta.cs delete mode 100644 Gestor.Model/Model.Domain.MalaDireta/VariaveisMalaDireta.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/ApolicePendente/ApolicePendente.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/ApolicePendente/ContainerApolicePendente.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Auditoria/Auditoria.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/CartaoSegurado.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Classificacao/Classificacao.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Cliente/SinteticoClientes.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/ClientesAtivosInativos/ClientesAtivosInativos.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/ClientesAtivosInativos/SinteticoClientesAtivosInativos.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Comissao/Comissao.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Comissao/SinteticoComissao.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/CriticaApolice/ApoliceCritica.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/DadosRelatorio.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/DadosVinculo.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Dashboard/Prospectar.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/EndossoCancelamento/Endosso.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Extrato/DetalhesExtrato.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Extrato/Extrato.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Extrato/ExtratoComissao.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Extrato/InformacoesExtrato.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Extrato/SinteticoExtrato.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/ExtratoBaixado/ExtratoBaixadoRelatorio.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/FaturaPendente/FaturaPendente.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Fechamento/Fechamento.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Fechamento/Fechamentos.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Fechamento/SinteticoFechamento.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/FiltroPersonalizado.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/FiltroRelatorio.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/FiltroTipoParcela.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Filtros.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Licenciamento/Licenciamento.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Listagem.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Log/LogAcaoRelatorio.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/LogsEnvio/LogsEnvio.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/MetaSeguradora/MetaSeguradoraRelatorio.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/MetaSeguradora/SinteticoMetaSeguradora.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/MetaVendedor/MetaVendedorRelatorio.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/MetaVendedor/SinteticoMetaVendedor.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/NegocioRelatorio.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/NotaFiscal/NotaFiscalRelatorio.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Pagamento/AgrupamentoPagamentoSintetico.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Pagamento/AgrupamentoVendedor.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Pagamento/Pagamento.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Pagamento/PagamentoSintetico.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Pagamento/SinteticoPagamento.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/ParametrosRelatorio.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/ParametrosTotalizacao.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Pendente/Pendente.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Pendente/SinteticoPendente.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Placa/Placas.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/PlanilhaCompleta.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/PrevisaoPagamentoComissao/AgrupamentoSintetico.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/PrevisaoPagamentoComissao/PrevisaoPagamento.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/PrevisaoPagamentoComissao/PrevisaoPagamentoComissao.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/PrevisaoPagamentoComissao/PrevisaoPagamentoComissaoSintetico.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Producao/Producao.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Producao/SinteticoProducao.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Renovacao/Renovacao.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Renovacao/SinteticoRenovacao.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Sinistro/Sinistro.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Sinistro/SinteticoSinistro.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/SinteticModel.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/SinteticModelList.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Sintetico.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/SinteticoFinanceiro.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/StatusRelatorio.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/Tarefa/Tarefa.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/TipoRelatorio.cs delete mode 100644 Gestor.Model/Model.Domain.Relatorios/ValorSintetico.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Adiantamento.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Aeronautico.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/AggilizadorPermissao.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Auto.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Cliente.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/ClienteEmail.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/ClienteEndereco.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/ClienteTelefone.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/ClienteVinculo.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Cobertura.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/CoberturaGranizo.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/CoberturaPadrao.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/CondicaoRepasse.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/ConfigExtratoImport.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Consorcio.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Controle.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/ControleSinistro.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/CriticaApolice.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/DetalheExtrato.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Documento.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Estipulante.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Expedicao.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Extrato.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Fabricante.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Granizo.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Item.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/MaisContato.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/MetaSeguradora.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/MetaVendedor.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Parceiro.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Parcela.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Parcelas.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Patrimonial.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Perfil.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/PerfilEmpresa.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/PermissaoArquivoDigital.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/PermissaoUsuario.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Produto.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Prospeccao.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/ProspeccaoToPrint.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Qualificacao.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Ramo.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Repasse.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/ResponsavelAssinatura.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/RestricaoUsuario.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/RestricaoUsuarioCamposRelatorios.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/RiscosDiversos.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Seguradora.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/SeguradoraContato.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/SeguradoraEndereco.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Sinistro.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/SinistroAuto.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/SinistroVida.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Status.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/TipoVendedor.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/TitularesVida.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/TupleList.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Usuario.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Vendedor.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/VendedorParcela.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/VendedorParcelas.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/VendedorTelefone.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/VendedorUsuario.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/Vida.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/VinculoRepasse.cs delete mode 100644 Gestor.Model/Model.Domain.Seguros/VinculoVendedor.cs delete mode 100644 Gestor.Model/Model.Helper/ValidationHelper.cs delete mode 100644 Gestor.Model/Model.License/Instalacao.cs delete mode 100644 Gestor.Model/Model.License/Licenca.cs delete mode 100644 Gestor.Model/Model.License/Produto.cs delete mode 100644 Gestor.Model/Model.License/StatusLicenca.cs delete mode 100644 Gestor.Model/Model.Relatorios/Cliente.cs delete mode 100644 Gestor.Model/Model.Relatorios/ClienteEmail.cs delete mode 100644 Gestor.Model/Model.Relatorios/ClienteEndereco.cs delete mode 100644 Gestor.Model/Model.Relatorios/ClienteTelefone.cs delete mode 100644 Gestor.Model/Model.Relatorios/Controle.cs delete mode 100644 Gestor.Model/Model.Relatorios/Documento.cs delete mode 100644 Gestor.Model/Model.Relatorios/EstipulanteCliente.cs delete mode 100644 Gestor.Model/Model.Relatorios/Ramo.cs delete mode 100644 Gestor.Model/Model.Relatorios/Vendedor.cs delete mode 100644 Gestor.Model/Model.Validation/ControleValidacao.cs delete mode 100644 Gestor.Model/Model.Validation/Funcoes.cs delete mode 100644 Gestor.Model/Properties/AssemblyInfo.cs (limited to 'Gestor.Model') diff --git a/Gestor.Model/Gestor.Model.csproj b/Gestor.Model/Gestor.Model.csproj deleted file mode 100644 index 487f238..0000000 --- a/Gestor.Model/Gestor.Model.csproj +++ /dev/null @@ -1,1644 +0,0 @@ - - - - {38886FAE-B3AF-42BA-BAC3-9295A61CB2C5} - Debug - AnyCPU - Gestor.Model - Library - Gestor - v4.8 - - - bin\Debug\ - true - DEBUG;TRACE - false - 4 - full - prompt - AnyCPU - - - bin\Release\ - false - TRACE - true - 4 - pdbonly - prompt - AnyCPU - - - - - .\Gestor.ModelReferences\Newtonsoft.Json.dll - - - - - - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - false - false - - - - \ No newline at end of file diff --git a/Gestor.Model/Gestor.Model.sln b/Gestor.Model/Gestor.Model.sln deleted file mode 100644 index 451a17d..0000000 --- a/Gestor.Model/Gestor.Model.sln +++ /dev/null @@ -1,21 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29728.190 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Gestor.Model", "Gestor.Model.csproj", "{38886FAE-B3AF-42BA-BAC3-9295A61CB2C5}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {38886FAE-B3AF-42BA-BAC3-9295A61CB2C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {38886FAE-B3AF-42BA-BAC3-9295A61CB2C5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {38886FAE-B3AF-42BA-BAC3-9295A61CB2C5}.Release|Any CPU.ActiveCfg = Release|Any CPU - {38886FAE-B3AF-42BA-BAC3-9295A61CB2C5}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/Gestor.Model/Gestor.ModelReferences/Newtonsoft.Json.dll b/Gestor.Model/Gestor.ModelReferences/Newtonsoft.Json.dll deleted file mode 100644 index 7af125a..0000000 Binary files a/Gestor.Model/Gestor.ModelReferences/Newtonsoft.Json.dll and /dev/null differ diff --git a/Gestor.Model/Model.API/Access.cs b/Gestor.Model/Model.API/Access.cs deleted file mode 100644 index 35f3dd7..0000000 --- a/Gestor.Model/Model.API/Access.cs +++ /dev/null @@ -1,67 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class Access - { - public long? AgreementId - { - get; - set; - } - - public decimal? Ammount - { - get; - set; - } - - public IList Control - { - get; - set; - } - - public DateTime CurrentDate - { - get; - set; - } - - public long CustomerId - { - get; - set; - } - - public long Id - { - get; - set; - } - - public long? ProductId - { - get; - set; - } - - public long? SchemeId - { - get; - set; - } - - public string Status - { - get; - set; - } - - public Access() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/AccessControl.cs b/Gestor.Model/Model.API/AccessControl.cs deleted file mode 100644 index d78f403..0000000 --- a/Gestor.Model/Model.API/AccessControl.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class AccessControl - { - public Gestor.Model.API.Access Access - { - get; - set; - } - - public DateTime? Compensation - { - get; - set; - } - - public DateTime Expiration - { - get; - set; - } - - public long Id - { - get; - set; - } - - public DateTime Maturity - { - get; - set; - } - - public AccessControl() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/AjudaTela.cs b/Gestor.Model/Model.API/AjudaTela.cs deleted file mode 100644 index 5c49f0c..0000000 --- a/Gestor.Model/Model.API/AjudaTela.cs +++ /dev/null @@ -1,55 +0,0 @@ -using Gestor.Model.Common; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class AjudaTela - { - public string Descricao - { - get; - set; - } - - public long Id - { - get; - set; - } - - public string Link - { - get; - set; - } - - public int Minuto - { - get; - set; - } - - public int Segundo - { - get; - set; - } - - public TipoTela Tela - { - get; - set; - } - - public string Titulo - { - get; - set; - } - - public AjudaTela() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/Attachment.cs b/Gestor.Model/Model.API/Attachment.cs deleted file mode 100644 index cdfdb8e..0000000 --- a/Gestor.Model/Model.API/Attachment.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class Attachment - { - public string Description - { - get; - set; - } - - public string Extension - { - get; - set; - } - - public byte[] File - { - get; - set; - } - - public Attachment() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/AuthSso.cs b/Gestor.Model/Model.API/AuthSso.cs deleted file mode 100644 index 4b57fe9..0000000 --- a/Gestor.Model/Model.API/AuthSso.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class AuthSso - { - public int Code - { - get; - set; - } - - public TokenSso Data - { - get; - set; - } - - public AuthSso() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/ConnectionAddress.cs b/Gestor.Model/Model.API/ConnectionAddress.cs deleted file mode 100644 index e34ae49..0000000 --- a/Gestor.Model/Model.API/ConnectionAddress.cs +++ /dev/null @@ -1,114 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class ConnectionAddress - { - public string Aggilizador - { - get; - set; - } - - public string AppleLogin - { - get; - set; - } - - public string ApplePass - { - get; - set; - } - - public string AzureStorage - { - get; - set; - } - - public string Catalog - { - get; - set; - } - - public long CustomerId - { - get; - set; - } - - public string EpicAndroid - { - get; - set; - } - - public string EpicIos - { - get; - set; - } - - public long Id - { - get; - set; - } - - public string Mobile - { - get; - set; - } - - public string Password - { - get; - set; - } - - public string Pool - { - get; - set; - } - - public string Server - { - get; - set; - } - - public int Type - { - get; - set; - } - - public string UrlCentralSegurado - { - get; - set; - } - - public bool UsaAzureStorage - { - get; - set; - } - - public string User - { - get; - set; - } - - public ConnectionAddress() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/Customer.cs b/Gestor.Model/Model.API/Customer.cs deleted file mode 100644 index 2aefe82..0000000 --- a/Gestor.Model/Model.API/Customer.cs +++ /dev/null @@ -1,127 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class Customer - { - public string Adjunct - { - get; - set; - } - - public string AreaCode - { - get; - set; - } - - public string City - { - get; - set; - } - - public string District - { - get; - set; - } - - public string Document - { - get; - set; - } - - public long Id - { - get; - set; - } - - public DateTime LastUpdate - { - get; - set; - } - - public string Mail - { - get; - set; - } - - public string Name - { - get; - set; - } - - public string Number - { - get; - set; - } - - public List Owners - { - get; - set; - } - - public string Phone - { - get; - set; - } - - public string PostCode - { - get; - set; - } - - public string SecondAreaCode - { - get; - set; - } - - public string SecondPhone - { - get; - set; - } - - public string Site - { - get; - set; - } - - public string State - { - get; - set; - } - - public string Street - { - get; - set; - } - - public string Updated - { - get; - set; - } - - public Customer() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/CustomerAttendance.cs b/Gestor.Model/Model.API/CustomerAttendance.cs deleted file mode 100644 index 04961f3..0000000 --- a/Gestor.Model/Model.API/CustomerAttendance.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class CustomerAttendance - { - public List Attachments - { - get; - set; - } - - public string Body - { - get; - set; - } - - public Gestor.Model.API.CustomerData CustomerData - { - get; - set; - } - - public string Subject - { - get; - set; - } - - public CustomerAttendance() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/CustomerData.cs b/Gestor.Model/Model.API/CustomerData.cs deleted file mode 100644 index ca78e4a..0000000 --- a/Gestor.Model/Model.API/CustomerData.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class CustomerData - { - public string AreaCode - { - get; - set; - } - - public string Corretora - { - get; - set; - } - - public string Email - { - get; - set; - } - - public string Name - { - get; - set; - } - - public string Number - { - get; - set; - } - - public CustomerData() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/HorarioAtendimento.cs b/Gestor.Model/Model.API/HorarioAtendimento.cs deleted file mode 100644 index e9e6564..0000000 --- a/Gestor.Model/Model.API/HorarioAtendimento.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class HorarioAtendimento - { - public bool Autorizado - { - get; - set; - } - - public int? FimDia - { - get; - set; - } - - public string FimHora - { - get; - set; - } - - public DateTime HoraServidor - { - get; - set; - } - - public int? InicioDia - { - get; - set; - } - - public string InicioHora - { - get; - set; - } - - public HorarioAtendimento() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/LogError.cs b/Gestor.Model/Model.API/LogError.cs deleted file mode 100644 index 07f9731..0000000 --- a/Gestor.Model/Model.API/LogError.cs +++ /dev/null @@ -1,126 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class LogError - { - public DateTime Data - { - get; - set; - } - - public string Erro - { - get; - set; - } - - public string Fornecedor - { - get; - set; - } - - public string HelpLink - { - get; - set; - } - - public int HResult - { - get; - set; - } - - public long Id - { - get; - set; - } - - public int IdErro - { - get; - set; - } - - public long IdFornecedor - { - get; - set; - } - - public long IdUsuarioLogado - { - get; - set; - } - - public string InnerException - { - get; - set; - } - - public string Linha - { - get; - set; - } - - public string Maquina - { - get; - set; - } - - public string Message - { - get; - set; - } - - public string Objeto - { - get; - set; - } - - public string Source - { - get; - set; - } - - public string StackTrace - { - get; - set; - } - - public string UsuarioLogado - { - get; - set; - } - - public string UsuarioMaquina - { - get; - set; - } - - public string Versao - { - get; - set; - } - - public LogError() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/Owner.cs b/Gestor.Model/Model.API/Owner.cs deleted file mode 100644 index 3fde471..0000000 --- a/Gestor.Model/Model.API/Owner.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class Owner - { - public string AreaCode - { - get; - set; - } - - public Gestor.Model.API.Customer Customer - { - get; - set; - } - - public long Id - { - get; - set; - } - - public string Mail - { - get; - set; - } - - public string Name - { - get; - set; - } - - public string Phone - { - get; - set; - } - - public long Type - { - get; - set; - } - - public Owner() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/Parameters.cs b/Gestor.Model/Model.API/Parameters.cs deleted file mode 100644 index efea126..0000000 --- a/Gestor.Model/Model.API/Parameters.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class Parameters - { - public string Application - { - get; - set; - } - - public string Arguments - { - get; - set; - } - - public bool Beta - { - get; - set; - } - - public string Directory - { - get; - set; - } - - public bool Run - { - get; - set; - } - - public int Type - { - get; - set; - } - - public Parameters() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/Payment.cs b/Gestor.Model/Model.API/Payment.cs deleted file mode 100644 index b0440d8..0000000 --- a/Gestor.Model/Model.API/Payment.cs +++ /dev/null @@ -1,67 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class Payment - { - public string Codigo - { - get; - set; - } - - public DateTime Compensation - { - get; - set; - } - - public string Descricao - { - get; - set; - } - - public long Id - { - get; - set; - } - - public string Nota - { - get; - set; - } - - public DateTime Processamento - { - get; - set; - } - - public List Products - { - get; - set; - } - - public decimal Valor - { - get; - set; - } - - public DateTime Vencimento - { - get; - set; - } - - public Payment() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/TipoErro.cs b/Gestor.Model/Model.API/TipoErro.cs deleted file mode 100644 index 155a0df..0000000 --- a/Gestor.Model/Model.API/TipoErro.cs +++ /dev/null @@ -1,1014 +0,0 @@ -using System; -using System.ComponentModel; - -namespace Gestor.Model.API -{ - public enum TipoErro - { - [Category("CONSTATAMOS UM ERRO AO SALVAR O LOG DO PROCEDIMENTO EXECUTADO")] - [Description("ERRO AO SALVAR LOG")] - SalvarLog = 0, - [Category("CONSTATAMOS UM ERRO AO BUSCAR AS APÓLICES DO CLIENTE SELECIONADO")] - [Description("ERRO AO BUSCAR APÓLICES POR STATUS E FORNECEDOR")] - BuscarApolicesSatus = 1, - [Category("CONSTATAMOS UM ERRO AO BUSCAR AS APÓLICES DO CLIENTE SELECIONADO PARA CRÍTICA DE COMISSÃO")] - [Description("ERRO AO BUSCAR APÓLICES FORNECEDOR PARA CRÍTICA DE COMISSÃO")] - BuscarApolicesComissao = 2, - [Category("CONSTATAMOS UM ERRO AO BUSCAR UMA APÓLICE DO CLIENTE SELECIONADO")] - [Description("ERRO AO BUSCAR APÓLICES POR ID")] - BuscarApoliceId = 3, - [Category("CONSTATAMOS UM ERRO AO BUSCAR A UM CONTROLE DO CLIENTE SELECIONADO")] - [Description("ERRO AO BUSCAR CONTROLE POR ID")] - BuscarControleId = 4, - [Category("CONSTATAMOS UM ERRO AO BUSCAR AS APÓLICES DO CLIENTE SELECIONADO")] - [Description("ERRO AO BUSCAR APÓLICES POR VIGENCIA E FILTRO")] - BuscarApolicesVigenciaFiltro = 5, - [Category("CONSTATAMOS UM ERRO AO BUSCAR AS APÓLICES DO CLIENTE SELECIONADO")] - [Description("ERRO AO BUSCAR APÓLICES POR VIGENCIA FINAL E FILTRO")] - BuscarApolicesVigenciaFinalFiltro = 6, - [Category("CONSTATAMOS UM ERRO AO BUSCAR AS APÓLICES DO CLIENTE SELECIONADO")] - [Description("ERRO AO BUSCAR APÓLICES POR PESQUISA E STATUS")] - BuscarApolicesPesquisaStatus = 7, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS FECHAMENTOS DO DOCUMENTO SELECIONADO")] - [Description("ERRO AO BUSCAR FECHAMENTOS POR FILTRO")] - BuscarFechamentosFiltro = 8, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS LOGS DE ENVIO")] - [Description("ERRO AO BUSCAR LOGS DE ENVIO POR FILTRO")] - BuscarLogsEnvioFiltro = 9, - [Category("CONSTATAMOS UM ERRO AO BUSCAR AS APÓLICES PENDENTES DO CLIENTE SELECIONADO")] - [Description("ERRO AO BUSCAR APÓLICES PENDENTES POR FILTRO")] - BuscarApolicesPendentesFiltro = 10, - [Category("CONSTATAMOS UM ERRO AO BUSCAR AS APÓLICES")] - [Description("ERRO AO BUSCAR APÓLICES POR ESTIPULANTE")] - BuscarApolicesEstipulante = 11, - [Category("CONSTATAMOS UM ERRO AO BUSCAR AS APÓLICES")] - [Description("ERRO AO BUSCAR APÓLICES POR STATUS")] - BuscarApolicesStatus = 12, - [Category("CONSTATAMOS UM ERRO AO BUSCAR AS AUDITORIAS")] - [Description("ERRO AO BUSCAR AUDITORIAS POR FILTRO")] - BuscarAuditoriasFiltro = 13, - [Category("CONSTATAMOS UM ERRO AO BUSCAR AS COTAÇÕES")] - [Description("ERRO AO BUSCAR COTAÇÕES POR FILTRO")] - BuscarCotacoesFiltro = 14, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS ADIANTAMENTOS")] - [Description("ERRO AO BUSCAR ADIANTAMENTOS POR DATA")] - BuscarAdiantamentosData = 15, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS ADIANTAMENTOS")] - [Description("ERRO AO BUSCAR ADIANTAMENTOS POR ID")] - BuscarAdiantamentosId = 16, - [Category("CONSTATAMOS UM ERRO AO BUSCAR O ULTIMO ID")] - [Description("ERRO AO BUSCAR ULTIMO ID")] - BuscarUltimoId = 17, - [Category("CONSTATAMOS UM ERRO AO SALVAR O DOCUMENTO SELECIONADO")] - [Description("ERRO AO SALVAR DOCUMENTO")] - SalvarDocumento = 18, - [Category("CONSTATAMOS UM ERRO AO ATUALIZAR O DOCUMENTO SELECIONADO")] - [Description("ERRO AO ATUALIZAR DOCUMENTO")] - SalvarAtualizarControle = 19, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O DOCUMENTO SELECIONADO")] - [Description("ERRO AO EXCLUIR DOCUMENTO")] - ExcluirDocumento = 20, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O PAGAMENTO DE VENDEDORES")] - [Description("ERRO AO EXCLUIR PAGAMENTO DE VENDEDORES")] - ExcluirPagamentoVendedor = 21, - [Category("CONSTATAMOS UM ERRO AO INCLUIR PAGAMENTO A VENDEDORES")] - [Description("ERRO AO INCLUIR PAGAMENTO A VENDEDORES")] - IncluirPagamentoVendedor = 22, - [Category("CONSTATAMOS UM ERRO AO ALTERAR O STATUS DO DOCUMENTO PARA PERDIDO")] - [Description("ERRO AO ALTERAR O STATUS DO DOCUMENTO PARA PERDIDO")] - AlterarStatusPerdido = 23, - [Category("CONSTATAMOS UM ERRO AO SALVAR A PARCELA SELECIONADA")] - [Description("ERRO AO SALVAR PARCELA")] - SalvarParcela = 24, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR A CRITICA DE IMPORTAÇÃO DO DOCUMENTO SELECIONADO")] - [Description("ERRO AO EXCLUIR CRÍTICA DE IMPORTAÇÃO")] - ExcluirCritica = 25, - [Category("CONSTATAMOS UM ERRO AO BAIXAR AS PARCELAS DO DOCUMENTO SELECIONADO")] - [Description("ERRO AO BAIXAR PARCELAS")] - BaixarParcelas = 26, - [Category("CONSTATAMOS UM ERRO AO BUSCAR O CLIENTE")] - [Description("ERRO AO BUSCAR CLIENTE POR ID")] - BuscarClienteId = 27, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS CLIENTES")] - [Description("ERRO AO BUSCAR CLIENTES POR ID")] - BuscarClientesId = 28, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS CLIENTES")] - [Description("ERRO AO BUSCAR CLIENTES POR FILTRO")] - BuscarClientesFiltro = 29, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS TELEFONES DO CLIENTE")] - [Description("ERRO AO BUSCAR TELEFONES DO CLIENTE POR ID")] - BuscarTelefonesClienteId = 30, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS TELEFONES DO CLIENTE")] - [Description("ERRO AO BUSCAR TELEFONES DO CLIENTE POR FILTRO")] - BuscarTelefonesClienteFiltro = 31, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS EMAILS DO CLIENTE")] - [Description("ERRO AO BUSCAR EMAILS DO CLIENTE POR ID")] - BuscarEmailsClienteId = 32, - [Category("CONSTATAMOS UM ERRO AO BUSCAR VINCULOS DO CLIENTE")] - [Description("ERRO AO BUSCAR VINCULOS DO CLIENTE POR ID")] - BuscarVinculosClienteId = 33, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS ENDEREÇOS DO CLIENTE")] - [Description("ERRO AO BUSCAR ENDEREÇOS DO CLIENTE POR ID")] - BuscarEnderecosClienteId = 34, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS CONTATOS DO CLIENTE")] - [Description("ERRO AO BUSCAR CONTATOS DO CLIENTE POR ID")] - BuscarContatosClienteId = 35, - [Category("CONSTATAMOS UM ERRO AO BUSCAR TODOS OS CLIENTES")] - [Description("ERRO AO BUSCAR TODOS OS CLIENTES")] - BuscarTodosClienteId = 36, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS EMAILS DOS CLIENTES")] - [Description("ERRO AO BUSCAR EMAILS DOS CLIENTES POR IDS")] - BuscarEmailsClientesId = 37, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS ENDEREÇOS DOS CLIENTES")] - [Description("ERRO AO BUSCAR ENDEREÇOS DOS CLIENTES POR ID")] - BuscarEnderecosClientesId = 38, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS CLIENTES")] - [Description("ERRO AO BUSCAR CLIENTES POR OBSERVAÇÃO")] - BuscarClientesObs = 39, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS CLIENTES")] - [Description("ERRO AO BUSCAR CLIENTES POR PASTA")] - BuscarClientesPasta = 40, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS CLIENTES")] - [Description("ERRO AO BUSCAR CLIENTES POR ANIVERSÁRIO")] - BuscarClientesAniversario = 41, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS CLIENTES")] - [Description("ERRO AO BUSCAR CLIENTES POR VALIDADE DA CNH")] - BuscarClientesCnh = 42, - [Category("CONSTATAMOS UM ERRO AO BUSCAR AS CRÍTICAS")] - [Description("ERRO AO BUSCAR CRÍTICAS POR ID E DATA")] - BuscarCriticasIdData = 43, - [Category("CONSTATAMOS UM ERRO AO BUSCAR AS CRÍTICAS")] - [Description("ERRO AO BUSCAR CRÍTICAS POR ID")] - BuscarCriticasId = 44, - [Category("CONSTATAMOS UM ERRO AO BUSCAR AS IMPORTAÇÕES")] - [Description("ERRO AO BUSCAR IMPORTAÇÕES POR ID")] - BuscarImportacoesId = 45, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS PERFIS")] - [Description("ERRO AO BUSCAR PERFIS POR ID")] - BuscarPerfisId = 46, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS PERFIS")] - [Description("ERRO AO BUSCAR PERFIS POR IDS")] - BuscarPerfisIds = 47, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS CONTROLES SINISTRO")] - [Description("ERRO AO BUSCAR CONTROLES SINISTRO POR ID")] - BuscarControlesSinistroId = 48, - [Category("CONSTATAMOS UM ERRO AO BUSCAR O SINISTRO")] - [Description("ERRO AO BUSCAR SINISTRO POR ID")] - BuscarSinistroId = 49, - [Category("CONSTATAMOS UM ERRO AO BUSCAR O AUTOMÓVEL")] - [Description("ERRO AO BUSCAR AUTOMÓVEL POR CHASSI")] - BuscarAutoChassi = 50, - [Category("CONSTATAMOS UM ERRO AO BUSCAR O ITEM")] - [Description("ERRO AO BUSCAR ITEM POR ID")] - BuscarItemId = 51, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS ITENS")] - [Description("ERRO AO BUSCAR ITENS POR IDS")] - BuscarItensIds = 52, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS ITENS")] - [Description("ERRO AO BUSCAR ITENS POR ID E POR STATUS")] - BuscarItensIdStatus = 53, - [Category("CONSTATAMOS UM ERRO AO BUSCAR O PRÓXIMO")] - [Description("ERRO AO BUSCAR PRÓXIMO ITEM")] - BuscarProximoItem = 54, - [Category("CONSTATAMOS UM ERRO AO BUSCAR O AUTOMÓVEL")] - [Description("ERRO AO BUSCAR AUTOMÓVEL POR ID")] - BuscarAutoId = 55, - [Category("CONSTATAMOS UM ERRO AO BUSCAR O AUTOMÓVEL")] - [Description("ERRO AO BUSCAR GRANIZO POR ID")] - BuscarGranizoId = 56, - [Category("CONSTATAMOS UM ERRO AO BUSCAR AS COBERTURAS")] - [Description("ERRO AO BUSCAR COBERTURAS POR ID")] - BuscarCoberturasId = 57, - [Category("CONSTATAMOS UM ERRO AO BUSCAR AS COBERTURAS")] - [Description("ERRO AO BUSCAR COBERTURAS")] - BuscarCoberturas = 58, - [Category("CONSTATAMOS UM ERRO AO BUSCAR O PATRIMONIAL")] - [Description("ERRO AO BUSCAR PATRIMONIAL POR ID")] - BuscarPatrimonialId = 59, - [Category("CONSTATAMOS UM ERRO AO BUSCAR O VIDA")] - [Description("ERRO AO BUSCAR VIDA POR ID")] - BuscarVidaId = 60, - [Category("CONSTATAMOS UM ERRO AO BUSCAR TITULARES VIDA")] - [Description("ERRO AO BUSCAR TITULARES VIDA POR ID")] - BuscarTitularesVidaId = 61, - [Category("CONSTATAMOS UM ERRO AO BUSCAR O RISCOS DIVERSOS")] - [Description("ERRO AO BUSCAR RISCOS DIVERSOS POR ID")] - BuscarRiscosDiversosId = 62, - [Category("CONSTATAMOS UM ERRO AO BUSCAR O AERONAUTICO")] - [Description("ERRO AO BUSCAR AERONAUTICO POR ID")] - BuscarAeronauticoId = 63, - [Category("CONSTATAMOS UM ERRO AO BUSCAR O INDICE ARQUIVO DIGITAL")] - [Description("ERRO AO BUSCAR INDICE ARQUIVO DIGITAL POR TIPO E ID")] - BuscarIndiceArquivoDigitalTipoId = 64, - [Category("CONSTATAMOS UM ERRO AO BUSCAR ANEXO POR ID E BANCO")] - [Description("ERRO AO BUSCAR ANEXO POR ID E BANCO")] - BuscarAnexoIdBanco = 65, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS ANEXOS")] - [Description("ERRO AO BUSCAR ANEXOS POR IDS")] - BuscarAnexosIds = 66, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS REGISTROS LOG")] - [Description("ERRO AO BUSCAR REGISTROS LOG POR ID E TIPO TELA")] - BuscarRegistrosLogIdTipo = 67, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS LOG EMAIL")] - [Description("ERRO AO BUSCAR LOG EMAIL POR ID E TIPO TELA")] - BuscarEmailLogIdTipo = 68, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS LOG EMAIL")] - [Description("ERRO AO BUSCAR LOG EMAIL POR ID")] - BuscarEmailLogId = 69, - [Category("CONSTATAMOS UM ERRO AO BUSCAR MODELOS MALA DIRETA")] - [Description("ERRO AO BUSCAR MODELOS MALA DIRETA")] - BuscarModelosMalaDireta = 70, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PARCEIRO")] - [Description("ERRO AO BUSCAR PARCEIRO POR ID")] - BuscarParceiroId = 71, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PARCEIROS")] - [Description("ERRO AO BUSCAR PARCEIROS")] - BuscarParceiros = 72, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PARCELAS")] - [Description("ERRO AO BUSCAR PARCELAS POR ID")] - BuscarParcelasId = 73, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PARCELA")] - [Description("ERRO AO BUSCAR PARCELA POR ID")] - BuscarParcelaId = 74, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PARCELAS")] - [Description("ERRO AO BUSCAR PARCELAS POR IDS")] - BuscarParcelasIds = 75, - [Category("CONSTATAMOS UM ERRO AO BUSCAR FATURAS")] - [Description("ERRO AO BUSCAR FATURAS POR FILTRO")] - BuscarFaturasFiltro = 76, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PARCELAS RECEBIMENTO")] - [Description("ERRO AO BUSCAR PARCELAS RECEBIMENTO POR FILTRO")] - BuscarParcelasRecebimentoFiltro = 77, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PARCELAS PENDENTES")] - [Description("ERRO AO BUSCAR PARCELAS PENDENTES POR FILTRO")] - BuscarParcelasPendentesFiltro = 78, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PARCELAS")] - [Description("ERRO AO BUSCAR PARCELAS POR FILTRO")] - BuscarParcelasFiltro = 79, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PAGAMENTO VENDEDOR")] - [Description("ERRO AO BUSCAR PAGAMENTO VENDEDOR POR FILTRO")] - BuscarPagamentoVendedorFiltro = 80, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PAGAMENTO VENDEDOR")] - [Description("ERRO AO BUSCAR PAGAMENTO VENDEDOR POR ID")] - BuscarPagamentoVendedor = 81, - [Category("CONSTATAMOS UM ERRO AO VERIFICAR SE TEM PAGAMENTO")] - [Description("ERRO AO VERIFICAR SE TEM PAGAMENTO POR ID")] - TemPagamentoId = 82, - [Category("CONSTATAMOS UM ERRO AO BUSCAR FATURAS PENDENTES")] - [Description("ERRO AO BUSCAR FATURAS PENDENTES POR FILTRO")] - BuscarFaturasPendentesFiltro = 83, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PERMISSÕES")] - [Description("ERRO AO BUSCAR PERMISSÕES POR ID")] - BuscarPermissoesId = 84, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PERMISSÃO")] - [Description("ERRO AO BUSCAR PERMISSÃO POR ID E TIPO TELA")] - BuscarPermissaoIdTipoTela = 85, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PROSPEÇÕES")] - [Description("ERRO AO BUSCAR PROSPEÇÕES POR ID, POR DATA E POR STATUS")] - BuscarProspeccoesIdDataStatus = 86, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PROSPEÇÃO")] - [Description("ERRO AO BUSCAR PROSPEÇÃO POR ID")] - BuscarProspeccaoId = 87, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PROSPEÇÕES")] - [Description("ERRO AO BUSCAR PROSPEÇÕES POR FILTRO")] - BuscarProspeccoesFiltro = 88, - [Category("CONSTATAMOS UM ERRO AO BUSCAR RESTRIÇÃO")] - [Description("ERRO AO BUSCAR RESTRIÇÃO POR ID E POR FILTRO")] - BuscarRestricaoIdFiltro = 89, - [Category("CONSTATAMOS UM ERRO AO BUSCAR RESTRIÇÕES")] - [Description("ERRO AO BUSCAR RESTRIÇÕES POR ID")] - BuscarRestricoesId = 90, - [Category("CONSTATAMOS UM ERRO AO BUSCAR DETALHES EXTRATO")] - [Description("ERRO AO BUSCAR DETALHES EXTRATO POR ID")] - BuscarDetalhesExtratoId = 91, - [Category("CONSTATAMOS UM ERRO AO BUSCAR EXTRATOS")] - [Description("ERRO AO BUSCAR EXTRATOS POR ID, POR DATA E POR STATUS")] - BuscarExtratosIdDataStatus = 92, - [Category("CONSTATAMOS UM ERRO AO BUSCAR EXTRATOS")] - [Description("ERRO AO BUSCAR EXTRATOS POR ID, POR DATA E POR FILTRO")] - BuscarExtratosIdDataFiltro = 93, - [Category("CONSTATAMOS UM ERRO AO BUSCAR TAREFAS")] - [Description("ERRO AO BUSCAR TAREFAS POR ID, ENTIDADE E CONCLUIDO")] - BuscarTarefasIdEntidadeConcluido = 94, - [Category("CONSTATAMOS UM ERRO AO BUSCAR TAREFAS")] - [Description("ERRO AO BUSCAR TAREFAS POR ID, DATA E CONCLUIDO")] - BuscarTarefasIdDataConcluido = 95, - [Category("CONSTATAMOS UM ERRO AO BUSCAR TAREFAS")] - [Description("ERRO AO BUSCAR TAREFAS POR CLIENTE")] - BuscarTarefasCliente = 96, - [Category("CONSTATAMOS UM ERRO AO BUSCAR TAREFAS")] - [Description("ERRO AO BUSCAR TAREFAS POR FILTRO")] - BuscarTarefasFiltro = 97, - [Category("CONSTATAMOS UM ERRO AO BUSCAR NOTAS")] - [Description("ERRO AO BUSCAR NOTAS POR ID")] - BuscarNotasId = 98, - [Category("CONSTATAMOS UM ERRO AO BUSCAR NOTAS CONCLUÍDAS")] - [Description("ERRO AO BUSCAR NOTAS CONCLUÍDAS POR ID")] - BuscarNotasConcluidasId = 99, - [Category("CONSTATAMOS UM ERRO AO ATUALIZAR NOTAS E TAREFAS")] - [Description("ERRO AO ATUALIZAR NOTAS E TAREFAS")] - AtualizarNotasTarefas = 100, - [Category("CONSTATAMOS UM ERRO AO BUSCAR TAREFAS")] - [Description("ERRO AO BUSCAR TAREFAS POR ID")] - BuscarTarefasId = 101, - [Category("CONSTATAMOS UM ERRO AO BUSCAR FASES")] - [Description("ERRO AO BUSCAR FASES POR ID")] - BuscarFasesId = 102, - [Category("CONSTATAMOS UM ERRO AO BUSCAR TRILHAS")] - [Description("ERRO AO BUSCAR TRILHAS POR TITULO")] - BuscarTrilhasTitulo = 103, - [Category("CONSTATAMOS UM ERRO AO BUSCAR TRILHAS")] - [Description("ERRO AO BUSCAR TRILHAS")] - BuscarTrilhas = 104, - [Category("CONSTATAMOS UM ERRO AO BUSCAR TAREFA")] - [Description("ERRO AO BUSCAR TAREFA POR ID")] - BuscarTarefaId = 105, - [Category("CONSTATAMOS UM ERRO AO BUSCAR VENDEDOR USUÁRIO")] - [Description("ERRO AO BUSCAR VENDEDOR USUÁRIO POR ID")] - BuscarVendedorUsuarioId = 106, - [Category("CONSTATAMOS UM ERRO AO BUSCAR AGENDA TELEFONE")] - [Description("ERRO AO BUSCAR AGENDA TELEFONE POR ID")] - BuscarAgendaTelefoneId = 107, - [Category("CONSTATAMOS UM ERRO AO BUSCAR AGENDA EMAIL")] - [Description("ERRO AO BUSCAR AGENDA EMAIL POR ID")] - BuscarAgendaEmailId = 108, - [Category("CONSTATAMOS UM ERRO AO BUSCAR CLIENTE EMAIL")] - [Description("ERRO AO BUSCAR CLIENTE EMAIL POR FILTRO")] - BuscarClienteEmailFiltro = 109, - [Category("CONSTATAMOS UM ERRO AO BUSCAR ESTIPULANTE")] - [Description("ERRO AO BUSCAR ESTIPULANTE POR ID")] - BuscarEstipulanteId = 110, - [Category("CONSTATAMOS UM ERRO AO BUSCAR ESTIPULANTE")] - [Description("ERRO AO BUSCAR ESTIPULANTE POR NOME")] - BuscarEstipulanteNome = 111, - [Category("CONSTATAMOS UM ERRO AO BUSCAR ESTIPULANTES")] - [Description("ERRO AO BUSCAR ESTIPULANTES")] - BuscarEstipulantes = 112, - [Category("CONSTATAMOS UM ERRO AO BUSCAR EMPRESAS")] - [Description("ERRO AO BUSCAR EMPRESAS")] - BuscarEmpresas = 113, - [Category("CONSTATAMOS UM ERRO AO BUSCAR EMPRESA")] - [Description("ERRO AO BUSCAR EMPRESA POR ID")] - BuscarEmpresaId = 114, - [Category("CONSTATAMOS UM ERRO AO BUSCAR SENHA EMPRESA")] - [Description("ERRO AO BUSCAR SENHA EMPRESA")] - BuscarSenhaEmpresa = 115, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PRODUTO")] - [Description("ERRO AO BUSCAR PRODUTO POR ID")] - BuscarProdutoId = 116, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PRODUTO")] - [Description("ERRO AO BUSCAR PRODUTO POR NOME")] - BuscarProdutoNome = 117, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PRODUTOS")] - [Description("ERRO AO BUSCAR PRODUTOS")] - BuscarProdutos = 118, - [Category("CONSTATAMOS UM ERRO AO BUSCAR STATUS")] - [Description("ERRO AO BUSCAR STATUS POR ID")] - BuscarStatusId = 119, - [Category("CONSTATAMOS UM ERRO AO BUSCAR STATUS")] - [Description("ERRO AO BUSCAR STATUS POR NOME")] - BuscarStatusNome = 120, - [Category("CONSTATAMOS UM ERRO AO BUSCAR STATUS")] - [Description("ERRO AO BUSCAR STATUS")] - BuscarStatus = 121, - [Category("CONSTATAMOS UM ERRO AO BUSCAR SÓCIOS")] - [Description("ERRO AO BUSCAR SÓCIOS POR ID")] - BuscarSociosId = 122, - [Category("CONSTATAMOS UM ERRO AO BUSCAR RECIBOS")] - [Description("ERRO AO BUSCAR RECIBOS")] - BuscarRecibos = 123, - [Category("CONSTATAMOS UM ERRO AO BUSCAR CONFIG EXTRATO")] - [Description("ERRO AO BUSCAR CONFIG EXTRATO")] - BuscarConfigExtratoId = 124, - [Category("CONSTATAMOS UM ERRO AO BUSCAR SEGURADORA CONTATO")] - [Description("ERRO AO BUSCAR SEGURADORA CONTATO")] - BuscarContatoSeguradoraIdEmpresa = 125, - [Category("CONSTATAMOS UM ERRO AO BUSCAR SEGURADORA ENDEREÇO")] - [Description("ERRO AO BUSCAR SEGURADORA ENDEREÇO")] - BuscarEnderecoSeguradoraIdEmpresa = 126, - [Category("CONSTATAMOS UM ERRO AO BUSCAR SEGURADORAS")] - [Description("ERRO AO BUSCAR SEGURADORAS")] - BuscarSeguradoras = 127, - [Category("CONSTATAMOS UM ERRO AO BUSCAR SEGURADORA")] - [Description("ERRO AO BUSCAR SEGURADORA POR ID")] - BuscarSeguradora = 128, - [Category("CONSTATAMOS UM ERRO AO BUSCAR AGENDAS")] - [Description("ERRO AO BUSCAR AGENDAS")] - BuscarAgendas = 129, - [Category("CONSTATAMOS UM ERRO AO BUSCAR USUÁRIO")] - [Description("ERRO AO BUSCAR USUÁRIO POR ID")] - BuscarUsuarioId = 130, - [Category("CONSTATAMOS UM ERRO AO BUSCAR USUÁRIOS")] - [Description("ERRO AO BUSCAR USUÁRIOS")] - BuscarUsuarios = 131, - [Category("CONSTATAMOS UM ERRO AO BUSCAR USUÁRIOS")] - [Description("ERRO AO BUSCAR USUÁRIOS POR FILTRO")] - BuscarUsuariosFiltro = 132, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PERMISSÃO AGGILIZADOR")] - [Description("ERRO AO BUSCAR PERMISSÃO AGGILIZADOR")] - BuscarPermissaoAggilizador = 133, - [Category("CONSTATAMOS UM ERRO AO BUSCAR USUÁRIO")] - [Description("ERRO AO BUSCAR USUÁRIO POR LOGIN")] - BuscarUsuarioLogin = 134, - [Category("CONSTATAMOS UM ERRO AO BUSCAR VENDEDORES ATIVOS")] - [Description("ERRO AO BUSCAR VENDEDORES ATIVOS")] - BuscarVendedoresAtivos = 135, - [Category("CONSTATAMOS UM ERRO AO BUSCAR REPASSES")] - [Description("ERRO AO BUSCAR REPASSES POR ID")] - BuscarRepassesId = 136, - [Category("CONSTATAMOS UM ERRO AO BUSCAR REPASSES PARCELA")] - [Description("ERRO AO BUSCAR REPASSES PARCELA POR ID")] - BuscarRepassesParcelaId = 137, - [Category("CONSTATAMOS UM ERRO AO BUSCAR VENDEDOR TELEFONE")] - [Description("ERRO AO BUSCAR VENDEDOR TELEFONE POR ID")] - BuscarVendedorTelefoneId = 138, - [Category("CONSTATAMOS UM ERRO AO BUSCAR VENDEDOR")] - [Description("ERRO AO BUSCAR VENDEDOR POR ID")] - BuscarVendedorId = 139, - [Category("CONSTATAMOS UM ERRO AO BUSCAR VENDEDORES")] - [Description("ERRO AO BUSCAR VENDEDORES")] - BuscarVendedores = 140, - [Category("CONSTATAMOS UM ERRO AO BUSCAR TIPO VENDEDORES")] - [Description("ERRO AO BUSCAR TIPO VENDEDORES")] - BuscarTipoVendedores = 141, - [Category("CONSTATAMOS UM ERRO AO BUSCAR REPASSES")] - [Description("ERRO AO BUSCAR REPASSES")] - BuscarRepasses = 142, - [Category("CONSTATAMOS UM ERRO AO BUSCAR REPASSES")] - [Description("ERRO AO BUSCAR REPASSES POR ID VENDEDOR")] - BuscarRepassesIdVendedor = 143, - [Category("CONSTATAMOS UM ERRO AO BUSCAR BANCOS")] - [Description("ERRO AO BUSCAR BANCOS POR DESCRIÇÃO")] - BuscarBancosDescricao = 144, - [Category("CONSTATAMOS UM ERRO AO BUSCAR BANCOS")] - [Description("ERRO AO BUSCAR BANCOS")] - BuscarBancos = 145, - [Category("CONSTATAMOS UM ERRO AO BUSCAR BANCOS CONTAS")] - [Description("ERRO AO BUSCAR BANCOS CONTAS POR DESCRIÇÃO")] - BuscarBancosContasDescricao = 146, - [Category("CONSTATAMOS UM ERRO AO BUSCAR SALDO")] - [Description("ERRO AO BUSCAR SALDO POR ID")] - BuscarSaldoId = 147, - [Category("CONSTATAMOS UM ERRO AO BUSCAR SALDOS")] - [Description("ERRO AO BUSCAR SALDO POR IDS")] - BuscarSaldosIds = 148, - [Category("CONSTATAMOS UM ERRO AO FECHAR SALDO")] - [Description("ERRO AO FECHAR SALDO")] - FecharSaldo = 149, - [Category("CONSTATAMOS UM ERRO AO BUSCAR SALDOS")] - [Description("ERRO AO BUSCAR SALDOS POR ID")] - BuscarSaldosId = 150, - [Category("CONSTATAMOS UM ERRO AO BUSCAR SALDO")] - [Description("ERRO AO BUSCAR SALDO POR DATA E ID")] - BuscarSaldoDataId = 151, - [Category("CONSTATAMOS UM ERRO AO BUSCAR CENTROS")] - [Description("ERRO AO BUSCAR CENTROS POR DESCRICAO")] - BuscarCentrosDescricao = 152, - [Category("CONSTATAMOS UM ERRO AO BUSCAR CENTROS")] - [Description("ERRO AO BUSCAR CENTROS")] - BuscarCentros = 153, - [Category("CONSTATAMOS UM ERRO AO VERIFICAR SE TEM LANÇAMENTOS POR FORNECEDOR")] - [Description("ERRO AO VERIFICAR SE TEM LANÇAMENTOS POR FORNECEDOR POR ID")] - TemLancamentosFornecedorId = 154, - [Category("CONSTATAMOS UM ERRO AO VERIFICAR SE TIPO VENDEDOR ESTÁ SENDO UTILIZADO")] - [Description("ERRO AO VERIFICAR SE TIPO VENDEDOR ESTÁ SENDO UTILIZADO")] - TipoVendedorUtilizado = 155, - [Category("CONSTATAMOS UM ERRO AO VERIFICAR SE O PARCEIRO ESTÁ SENDO UTILIZADO")] - [Description("ERRO AO VERIFICAR SE O PARCEIRO ESTÁ SENDO UTILIZADO")] - ParceiroUtilizado = 156, - [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTOS POR FORNECEDOR")] - [Description("ERRO AO BUSCAR LANÇAMENTOS POR FORNECEDOR POR ID E STATUS")] - BuscarLancamentosFornecedorIdStatus = 157, - [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTOS POR CONTROLE")] - [Description("ERRO AO BUSCAR LANÇAMENTOS POR CONTROLE POR ID")] - BuscarLancamentosControleId = 158, - [Category("CONSTATAMOS UM ERRO AO BUSCAR FORNECEDORES")] - [Description("ERRO AO BUSCAR FORNECEDORES POR FILTRO")] - BuscarFornecedoresFiltro = 159, - [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTOS POR FORNECEDOR")] - [Description("ERRO AO BUSCAR LANÇAMENTOS POR FORNECEDOR POR VENCIMENTO E STATUS")] - BuscarLancamentosVencimentoStatus = 160, - [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTOS")] - [Description("ERRO AO BUSCAR LANÇAMENTOS POR BAIXA")] - BuscarLancamentosBaixa = 161, - [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTOS")] - [Description("ERRO AO BUSCAR LANÇAMENTOS POR PAGAMENTO")] - BuscarLancamentosPagamento = 162, - [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTO")] - [Description("ERRO AO BUSCAR LANÇAMENTO POR ID E PARCELA")] - BuscarLancamentoIdParcela = 163, - [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTO")] - [Description("ERRO AO BUSCAR LANÇAMENTO POR ID")] - BuscarLancamentoId = 164, - [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTO")] - [Description("ERRO AO BUSCAR LANÇAMENTO POR CONTA")] - BuscarLancamentosConta = 165, - [Category("CONSTATAMOS UM ERRO AO BUSCAR FORNECEDORES")] - [Description("ERRO AO BUSCAR FORNECEDORES")] - BuscarFornecedores = 166, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PLANO")] - [Description("ERRO AO BUSCAR PLANO")] - BuscarPlano = 167, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PLANOS")] - [Description("ERRO AO BUSCAR PLANOS")] - BuscarPlanos = 168, - [Category("CONSTATAMOS UM ERRO AO BUSCAR RAMOS")] - [Description("ERRO AO BUSCAR RAMOS")] - BuscarRamos = 169, - [Category("CONSTATAMOS UM ERRO AO BUSCAR QUALIFICACAO")] - [Description("ERRO AO BUSCAR QUALIFICACAO")] - BuscarQualificacao = 170, - [Category("CONSTATAMOS UM ERRO AO SALVAR O CLIENTE SELECIONADO")] - [Description("ERRO AO SALVAR CLIENTE")] - SalvarCliente = 171, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O CLIENTE SELECIONADO")] - [Description("ERRO AO EXCLUIR CLIENTE")] - ExcluirCliente = 172, - [Category("CONSTATAMOS UM ERRO AO CONCLUIR A CRÍTICA DE IMPORTAÇÃO SELECIONADA")] - [Description("ERRO AO CONCLUIR CRÍTICA DE IMPORTAÇÃO")] - SalvarCritica = 173, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O SINISTRO SELECIONADO")] - [Description("ERRO AO EXCLUIR SINISTRO")] - ExcluirSinistro = 174, - [Category("CONSTATAMOS UM ERRO AO SALVAR O SINISTRO SELECIONADO")] - [Description("ERRO AO SALVAR SINISTRO")] - SalvarSinistro = 175, - [Category("CONSTATAMOS UM ERRO AO BUSCAR SINISTROS")] - [Description("ERRO AO BUSCAR SINISTROS POR FILTRO")] - BuscarSinistrosFiltro = 176, - [Category("CONSTATAMOS UM ERRO AO BUSCAR SINISTROS")] - [Description("ERRO AO BUSCAR SINISTROS POR NÚMERO")] - BuscarSinistrosPorNumero = 177, - [Category("CONSTATAMOS UM ERRO AO BUSCAR SINISTROS")] - [Description("ERRO AO BUSCAR SINISTROS POR CONTROLE")] - BuscarSinistrosPorControle = 178, - [Category("CONSTATAMOS UM ERRO AO SALVAR CONTROLE")] - [Description("ERRO AO SALVAR CONTROLE")] - SlavarControle = 179, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PROFISSÃO")] - [Description("ERRO AO BUSCAR PROFISSÃO POR DESCRIÇÃO")] - BuscarProfissaoDescricao = 180, - [Category("CONSTATAMOS UM ERRO AO BUSCAR ATIVIDADE")] - [Description("ERRO AO BUSCAR ATIVIDADE POR DESCRIÇÃO")] - BuscarAtividadeDescricao = 181, - [Category("CONSTATAMOS UM ERRO AO BUSCAR FABRICANTE")] - [Description("ERRO AO BUSCAR FABRICANTE POR DESCRIÇÃO")] - BuscarFabricanteDescricao = 182, - [Category("CONSTATAMOS UM ERRO AO BUSCAR META VENDEDOR")] - [Description("ERRO AO BUSCAR META VENDEDOR POR ID")] - BuscarMetaVendedorId = 183, - [Category("CONSTATAMOS UM ERRO AO BUSCAR META SEGURADORA")] - [Description("ERRO AO BUSCAR META SEGURADORA POR ID")] - BuscarMetaSeguradoraId = 184, - [Category("CONSTATAMOS UM ERRO AO BUSCAR ADIANTAMENTO VENDEDOR")] - [Description("ERRO AO BUSCAR ADIANTAMENTO POR ID")] - BuscarAdiantamentoId = 185, - [Category("CONSTATAMOS UM ERRO AO CARREGAR PARAMETROS INICIAIS")] - [Description("ERRO AO CARREGAR PARAMETROS INICIAIS")] - CarregarParametrosIniciais = 186, - [Category("CONSTATAMOS UM ERRO AO BUSCAR CREDENCIAIS")] - [Description("ERRO AO BUSCAR CREDENCIAIS")] - BuscarCredenciais = 187, - [Category("CONSTATAMOS UM ERRO AO BUSCAR ARQUIVO DIGITAL")] - [Description("ERRO AO BUSCAR ARQUIVO DIGITAL")] - BuscarArquivoDigital = 188, - [Category("CONSTATAMOS UM ERRO AO SALVAR O PAGAMENTO (REPASSE) DO VENDEDOR")] - [Description("ERRO AO SALVAR PAGAMENTO PARA O VENDEDOR")] - SalvarPagamentoVendedor = 189, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR PARCELA")] - [Description("ERRO AO EXCLUIR PARCELA")] - ExcluirParcela = 190, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR A BAIXA DA PARCELA")] - [Description("ERRO AO EXCLUIR A BAIXA DA PARCELA")] - ExcluirBaixaParcela = 191, - [Category("CONSTATAMOS UM ERRO AO ATUALIZAR EXTRATO DE COMISSÃO")] - [Description("ERRO AO ATUALIZAR EXTRATO DE COMISSÃO")] - AtualizarExtrato = 192, - [Category("CONSTATAMOS UM ERRO AO GERAR PAGAMENTOS PARA OS VENDEDORES SELECIONADOS")] - [Description("ERRO AO GERAR PAGAMENTOS PARA OS VENDEDORES")] - GerarPagamentos = 193, - [Category("CONSTATAMOS UM ERRO AO GERAR PAGAMENTO PARA OS ATENDIMENTOS")] - [Description("ERRO AO GERAR PAGAMENTO PARA OS ATENDIMENTOS")] - GerarPagamentoAtendimentos = 194, - [Category("CONSTATAMOS UM ERRO AO SALVAR O ITEM SELECIONADO")] - [Description("ERRO AO SALVAR ITEM")] - SalvarItem = 195, - [Category("CONSTATAMOS UM ERRO AO SALVAR O ITEM SELECIONADO")] - [Description("ERRO AO SALVAR PATRIMONIAL")] - SalvarPatrimonial = 196, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O ITEM SELECIONADO")] - [Description("ERRO AO EXCLUIR PATRIMONIAL")] - ExcluirPatrimonial = 197, - [Category("CONSTATAMOS UM ERRO AO SALVAR O ITEM SELECIONADO")] - [Description("ERRO AO SALVAR RISCOS DIVERSOS")] - SalvarRiscosDiversos = 198, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O ITEM SELECIONADO")] - [Description("ERRO AO EXCLUIR RISCOS DIVERSOS")] - ExcluirRiscosDiversos = 199, - [Category("CONSTATAMOS UM ERRO AO SALVAR O ITEM SELECIONADO")] - [Description("ERRO AO SALVAR VIDA")] - SalvarVida = 200, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O ITEM SELECIONADO")] - [Description("ERRO AO EXCLUIR VIDA")] - ExcluirVida = 201, - [Category("CONSTATAMOS UM ERRO AO SALVAR O ITEM SELECIONADO")] - [Description("ERRO AO SALVAR AERONÁUTICO")] - SalvarAeronautico = 202, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O ITEM SELECIONADO")] - [Description("ERRO AO EXCLUIR AERONÁUTICO")] - ExcluirAeronautico = 203, - [Category("CONSTATAMOS UM ERRO AO SALVAR O ITEM SELECIONADO")] - [Description("ERRO AO SALVAR AUTOMOVEL")] - SalvarAuto = 204, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O ITEM SELECIONADO")] - [Description("ERRO AO EXCLUIR AUTOMOVEL")] - ExcluirAuto = 205, - [Category("CONSTATAMOS UM ERRO AO SALVAR O ITEM SELECIONADO")] - [Description("ERRO AO SALVAR GRANIZO")] - SalvarGranizo = 206, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O ITEM SELECIONADO")] - [Description("ERRO AO EXCLUIR GRANIZO")] - ExcluirGranizo = 207, - [Category("CONSTATAMOS UM ERRO AO SALVAR AS COBERTURAS")] - [Description("ERRO AO SALVAR COBERTURAS")] - SalvarCoberturas = 208, - [Category("CONSTATAMOS UM ERRO AO SALVAR O ADIANTAMENTO SELECIONADO")] - [Description("ERRO AO SALVAR ADIANTAMENTO")] - SalvarAdiantamento = 209, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O ADIANTAMENTO SELECIONADO")] - [Description("ERRO AO EXCLUIR ADIANTAMENTO")] - ExcluirAdiantamento = 210, - [Category("CONSTATAMOS UM ERRO AO SALVAR A ATIVIDADE SELECIONADA")] - [Description("ERRO AO SALVAR ATIVIDADE")] - SalvarAtividade = 211, - [Category("CONSTATAMOS UM ERRO AO SALVAR O PERFIL SELECIONADO")] - [Description("ERRO AO SALVAR PERFIL")] - SalvarPerfil = 212, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O PERFIL SELECIONADO")] - [Description("ERRO AO EXCLUIR PERFIL")] - ExcluirPerfil = 213, - [Category("CONSTATAMOS UM ERRO AO SALVAR A PROFISSÃO SELECIONADA")] - [Description("ERRO AO SALVAR PROFISSÃO")] - SalvarProfissao = 214, - [Category("CONSTATAMOS UM ERRO AO SALVAR A AGENDA SELECIONADA")] - [Description("ERRO AO SALVAR AGENDA")] - SalvarAgenda = 215, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR A AGENDA SELECIONADA")] - [Description("ERRO AO EXCLUIR AGENDA")] - ExcluirAgenda = 216, - [Category("CONSTATAMOS UM ERRO AO SALVAR O EMAIL SELECIONADO")] - [Description("ERRO AO SALVAR EMAIL")] - SalvarEmail = 217, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O EMAIL SELECIONADO")] - [Description("ERRO AO EXCLUIR EMAIL")] - ExcluirEmail = 218, - [Category("CONSTATAMOS UM ERRO AO SALVAR O ESTIPULANTE SELECIONADO")] - [Description("ERRO AO SALVAR ESTIPULANTE")] - SalvarEstipulante = 219, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O ESTIPULANTE SELECIONADO")] - [Description("ERRO AO EXCLUIR ESTIPULANTE")] - ExcluirEstipulante = 220, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O STATUS SELECIONADO")] - [Description("ERRO AO EXCLUIR STATUS")] - ExcluirStatus = 221, - [Category("CONSTATAMOS UM ERRO AO SALVAR META DA SEGURADORA SELECIONADA")] - [Description("ERRO AO SALVAR META DA SEGURADORA")] - SalvarMetaSeguradora = 222, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR META DA SEGURADORA SELECIONADA")] - [Description("ERRO AO EXCLUIR META DA SEGURADORA")] - ExcluirMetaSeguradora = 223, - [Category("CONSTATAMOS UM ERRO AO SALVAR A META DO VENDEDOR SELECIONADO")] - [Description("ERRO AO SALVAR META DO VENDEDOR")] - SalvarMetaVendedor = 224, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR META DO VENDEDOR SELECIONADO")] - [Description("ERRO AO EXCLUIR META DO VENDEDOR")] - ExcluirMetaVendedor = 225, - [Category("CONSTATAMOS UM ERRO AO SALVAR O PRODUTO SELECIONADO")] - [Description("ERRO AO SALVAR PRODUTO")] - SalvarProduto = 226, - [Category("CONSTATAMOS UM ERRO AO SALVAR O STATUS SELECIONADO")] - [Description("ERRO AO SALVAR STATUS")] - SalvarStatus = 227, - [Category("CONSTATAMOS UM ERRO AO SALVAR O RAMO SELECIONADO")] - [Description("ERRO AO SALVAR RAMO")] - SalvarRamo = 228, - [Category("CONSTATAMOS UM ERRO AO SALVAR O QUALIFICACAO")] - [Description("ERRO AO SALVAR QUALIFICACAO")] - SalvarQualificacao = 229, - [Category("CONSTATAMOS UM ERRO AO INSERIR O RAMO SELECIONADO")] - [Description("ERRO AO INSERIR RAMO")] - InserirRamo = 230, - [Category("CONSTATAMOS UM ERRO AO SALVAR O RECIBO SELECIONADO")] - [Description("ERRO AO SALVAR RECIBO")] - SalvarRecibo = 231, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O RECIBO SELECIONADO")] - [Description("ERRO AO EXCLUIR RECIBO")] - ExcluirRecibo = 232, - [Category("CONSTATAMOS UM ERRO AO SALVAR A SEGURADORA SELECIONADA")] - [Description("ERRO AO SALVAR SEGURADORA")] - SalvarSeguradora = 233, - [Category("CONSTATAMOS UM ERRO AO INSERIR A SEGURADORA SELECIONADA")] - [Description("ERRO AO INSERIR SEGURADORA")] - InserirSeguradora = 234, - [Category("CONSTATAMOS UM ERRO AO SALVAR O SÓCIO SELECIONADO")] - [Description("ERRO AO SALVAR SÓCIO")] - SalvarSocio = 235, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O SÓCIO SELECIONADO")] - [Description("ERRO AO EXCLUIR SÓCIO")] - ExcluirSocio = 236, - [Category("CONSTATAMOS UM ERRO AO SALVAR O TIPO VENDEDOR SELECIONADO")] - [Description("ERRO AO SALVAR TIPO VENDEDOR")] - SalvarTipoVendedor = 237, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O TIPO VENDEDOR SELECIONADO")] - [Description("ERRO AO EXCLUIR TIPO VENDEDOR")] - ExcluirTipoVendedor = 238, - [Category("CONSTATAMOS UM ERRO AO SALVAR O USUÁRIO SELECIONADO")] - [Description("ERRO AO SALVAR USUÁRIO")] - SalvarUsuario = 239, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O USUÁRIO SELECIONADO")] - [Description("ERRO AO EXCLUIR USUÁRIO")] - ExcluirUsuario = 240, - [Category("CONSTATAMOS UM ERRO AO SALVAR O VENDEDOR SELECIONADO")] - [Description("ERRO AO SALVAR VENDEDOR")] - SalvarVendedor = 241, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O VENDEDOR SELECIONADO")] - [Description("ERRO AO EXCLUIR VENDEDOR")] - ExcluirVendedor = 242, - [Category("CONSTATAMOS UM ERRO AO SALVAR O FORNECEDOR SELECIONADO")] - [Description("ERRO AO SALVAR FORNECEDOR")] - SalvarFornecedor = 243, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O FORNECEDOR SELECIONADO")] - [Description("ERRO AO EXCLUIR FORNECEDOR")] - ExcluirFornecedor = 244, - [Category("CONSTATAMOS UM ERRO AO SALVAR O BANCO E CONTA SELECIONADO")] - [Description("ERRO AO SALVAR BANCO E CONTA")] - SalvarBancoConta = 245, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O BANCO E CONTA SELECIONADO")] - [Description("ERRO AO EXCLUIR BANCO E CONTA")] - ExcluirBancoConta = 246, - [Category("CONSTATAMOS UM ERRO AO SALVAR O SALDO SELECIONADO")] - [Description("ERRO AO SALVAR SALDO")] - SalvarSaldo = 247, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O SALDO SELECIONADO")] - [Description("ERRO AO EXCLUIR SALDO")] - ExcluirSaldo = 248, - [Category("CONSTATAMOS UM ERRO AO SALVAR O CENTRO DE CUSTO SELECIONADO")] - [Description("ERRO AO SALVAR CENTRO DE CUSTO")] - SalvarCentro = 249, - [Category("CONSTATAMOS UM ERRO AO SALVAR O PLANO DE SERVIÇO SELECIONADO")] - [Description("ERRO AO SALVAR PLANO DE SERVIÇO")] - SalvarPlano = 250, - [Category("CONSTATAMOS UM ERRO AO SALVAR O PLANOS DE SERVIÇO SELECIONADO")] - [Description("ERRO AO SALVAR PLANOS DE SERVIÇO")] - SalvarPlanos = 251, - [Category("CONSTATAMOS UM ERRO AO SALVAR O ARQUIVO DIGITAL SELECIONADO")] - [Description("ERRO AO SALVAR ARQUIVO DIGITAL")] - SalvarAd = 252, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O ARQUIVO DIGITAL SELECIONADO")] - [Description("ERRO AO EXCLUIR ARQUIVO DIGITAL")] - ExcluirAd = 253, - [Category("CONSTATAMOS UM ERRO AO SALVAR A MALA DIRETA SELECIONADA")] - [Description("ERRO AO SALVAR MALA DIRETA")] - SalvarMalaDireta = 254, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR A MALA DIRETA SELECIONADA")] - [Description("ERRO AO EXCLUIR MALA DIRETA")] - ExcluirMalaDireta = 255, - [Category("CONSTATAMOS UM ERRO AO SALVAR O PARCEIRO SELECIONADO")] - [Description("ERRO AO SALVAR PARCEIRO")] - SalvarParceiro = 256, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O PARCEIRO SELECIONADO")] - [Description("ERRO AO EXCLUIR PARCEIRO")] - ExcluirParceiro = 257, - [Category("CONSTATAMOS UM ERRO AO SALVAR AS PERMISSÕES DO USUÁRIO SELECIONADO")] - [Description("ERRO AO SALVAR PERMISSÕES DO USUÁRIO")] - SalvarPermissao = 258, - [Category("CONSTATAMOS UM ERRO AO SALVAR A PROSPECÇÃO SELECIONADA")] - [Description("ERRO AO SALVAR PROSPECÇÃO")] - SalvarProspeccao = 259, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR A PROSPECÇÃO SELECIONADA")] - [Description("ERRO AO EXCLUIR PROSPECÇÃO")] - ExcluirProspeccao = 260, - [Category("CONSTATAMOS UM ERRO AO SALVAR AS RESTRIÇÕES DO USUÁRIO SELECIONADO")] - [Description("ERRO AO SALVAR RESTRIÇÕES DO USUÁRIO")] - SalvarRestricao = 261, - [Category("CONSTATAMOS UM ERRO AO SALVAR OS DETALHES DO EXTRATO SELECIONADO")] - [Description("ERRO AO SALVAR OS DETALHES DO EXTRATO")] - SalvarDetalheExtrato = 262, - [Category("CONSTATAMOS UM ERRO AO SALVAR O EXTRATO SELECIONADO")] - [Description("ERRO AO SALVAR EXTRATO")] - SalvarExtrato = 263, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O EXTRATO SELECIONADO")] - [Description("ERRO AO EXCLUIR EXTRATO")] - ExcluirExtrato = 264, - [Category("CONSTATAMOS UM ERRO AO SALVAR A TAREFA SELECIONADA")] - [Description("ERRO AO SALVAR TAREFA")] - SalvarTarefa = 265, - [Category("CONSTATAMOS UM ERRO AO VALIDAR ANALITICO POR ID E TRILHAID")] - [Description("ERRO AO VALIDAR ANALITICO POR ID E TRILHAID")] - ValidarAnaliticoIdTrilhaId = 266, - [Category("CONSTATAMOS UM ERRO AO SALVAR A TRILHA SELECIONADA")] - [Description("ERRO AO SALVAR TRILHA")] - SalvarTrilha = 267, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR A TAREFA SELECIONADA")] - [Description("ERRO AO EXCLUIR TAREFA")] - ExcluirTarefa = 268, - [Category("CONSTATAMOS UM ERRO AO SALVAR A FASE SELECIONADA")] - [Description("ERRO AO SALVAR FASE")] - SalvarFase = 269, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR A FASE SELECIONADA")] - [Description("ERRO AO EXCLUIR FASE")] - ExcluirFase = 270, - [Category("CONSTATAMOS UM ERRO AO SALVAR O VÍNCULO DE VENDEDOR COM O USUÁRIO SELECIONADO")] - [Description("ERRO AO SALVAR VÍNCULO DE VENDEDOR COM USUÁRIO")] - SalvarVendedorUsuario = 271, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O VÍNCULO DE VENDEDOR COM O USUÁRIO SELECIONADO")] - [Description("ERRO AO EXCLUIR VÍNCULO DE VENDEDOR COM USUÁRIO")] - ExcluirVendedorUsuario = 272, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR A INSTALAÇÃO SELECIONADA")] - [Description("ERRO AO EXCLUIR INSTALAÇÃO")] - ExcluirInstalacao = 273, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR ITEM")] - [Description("ERRO AO EXCLUIR ITEM")] - ExcluirItem = 274, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR ITENS")] - [Description("ERRO AO EXCLUIR ITENS")] - ExcluirItens = 275, - [Category("CONSTATAMOS UM ERRO AO SALVAR ITENS")] - [Description("ERRO AO SALVAR ITENS")] - SalvarItens = 276, - [Category("CONSTATAMOS UM ERRO AO SALVAR A EMPRESA SELECIONADA")] - [Description("ERRO AO SALVAR EMPRESA")] - SalvarEmpresa = 277, - [Category("CONSTATAMOS UM ERRO AO SALVAR O ARQUIVO ENVIADO PARA ASSINATURA DIGITAL")] - [Description("ERRO AO SALVAR ARQUIVO ASSINTATURA DIGITAL")] - SalvarArquivoAssinado = 278, - [Category("CONSTATAMOS UM ERRO AO SALVAR O LANÇAMENTO SELECIONADO")] - [Description("ERRO AO SALVAR LANÇAMENTO")] - SalvarLancamento = 279, - [Category("CONSTATAMOS UM ERRO AO ATUALIZAR O LANÇAMENTO SELECIONADO")] - [Description("ERRO AO ATUALIZAR LANÇAMENTO")] - AtualizarLancamento = 280, - [Category("CONSTATAMOS UM ERRO AO INCLUIR O LANÇAMENTO SELECIONADO")] - [Description("ERRO AO INCLUIR LANÇAMENTO")] - IncluirLancamento = 281, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O LANÇAMENTO SELECIONADO")] - [Description("ERRO AO EXCLUIR LANÇAMENTO")] - ExcluirLancamento = 282, - [Category("CONSTATAMOS UM ERRO NA TRANSFERÊNCIA SELECIONADA")] - [Description("ERRO AO TRANSFERIR")] - Transferir = 283, - [Category("CONSTATAMOS UM ERRO AO BUSCAR METAS DE SEGURADORAS")] - [Description("ERRO AO BUSCAR METAS DE SEGURADORAS")] - BuscarMetasSeguradora = 284, - [Category("CONSTATAMOS UM ERRO AO BUSCAR METAS DE VENDEDORES")] - [Description("ERRO AO BUSCAR METAS DE VENDEDORES")] - BuscarMetasVendedor = 285, - [Category("CONSTATAMOS UM ERRO AO BUSCAR CLIENTES ATIVOS/INATIVOS")] - [Description("ERRO AO BUSCAR CLIENTES ATIVOS/INATIVOS")] - BuscarClienteAtivosInativos = 286, - [Category("ERRO AO VERIFICAR VERSÃO")] - [Description("ERRO AO VERIFICAR VERSÃO")] - VerificarVersao = 287, - [Category("CONFIGURAR ARQUIVO DIGITAL")] - [Description("CONFIGURAR ARQUIVO DIGITAL")] - CriarBancoAd = 288, - [Category("CONSTATAMOS UM ERRO AO BUSCAR EXPEDIÇÃO")] - [Description("ERRO AO BUSCAR EXPEDIÇÃO")] - BuscarExpedicao = 289, - [Category("CONSTATAMOS UM ERRO AO SALVAR A EXPEDIÇÃO SELECIONADA")] - [Description("ERRO AO SALVAR EXPEDIÇÃO")] - SalvarExpedicao = 290, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR A EXPEDIÇÃO SELECIONADA")] - [Description("ERRO AO EXCLUIR EXPEDIÇÃO")] - ExcluirExpedicao = 291, - [Category("CONSTATAMOS UM ERRO AO DESFAZER PARCELA")] - [Description("ERRO AO DESFAZER PARCELA")] - DesfazerParcela = 292, - [Category("CONSTATAMOS UM ERRO AO SINCRONIZAR APOLICES PENDENTES")] - [Description("ERRO AO SINCRONIZAR APOLICES PENDENTES")] - SincronizarApolicePendente = 293, - [Category("CONSTATAMOS UM ERRO AO GERAR FECHAMENTO FINANCEIRO")] - [Description("ERRO AO GERAR FECHAMENTO FINANCEIRO")] - BuscarFechamentoFinanceiro = 294, - [Category("CONSTATAMOS UM ERRO AO BUSCAR LICENCIAMENTOS POR PERIODO E FILTRO")] - [Description("ERRO AO BUSCAR LICENCIAMENTOS POR PERIODO E FILTRO")] - BuscarLicenciamentos = 295, - [Category("CONSTATAMOS UM ERRO AO BUSCAR A PLANILHA COMPLETA")] - [Description("ERRO AO BUSCAR PLANILHA COMPLETA POR ID DO DOCUMENTO")] - BuscarPlanilhaCompletaId = 296, - [Category("CONSTATAMOS UM ERRO AO BUSCAR CONFIGURAÇÕES")] - [Description("ERRO AO BUSCAR CONFIGURAÇÕES")] - BuscarConfiguracoes = 297, - [Category("CONSTATAMOS UM ERRO AO INCLUR CONFIGURACAO")] - [Description("ERRO AO INCLUR CONFIGURACAO")] - IncluirConfuguracao = 298, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PARCELA PENDENTE DE PAGAMENTO")] - [Description("ERRO AO BUSCAR PARCELA PENDENTE DE PAGAMENTO")] - BuscarParcelaPendente = 299, - [Category("CONSTATAMOS UM ERRO AO SINCRONIZAR PARCELA PENDENTE")] - [Description("ERRO AO SINCRONIZAR PARCELA PENDENTE")] - SincronizarParcelaPendente = 300, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PARAMETROS DO RELATORIO SELECIONADO")] - [Description("ERRO AO BUSCAR PARAMETROS DO RELATORIO")] - BuscarParametrosRelatorio = 301, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PARAMETROS DE TOTALIZAÇÃO SELECIONADO")] - [Description("ERRO AO BUSCAR PARAMETROS DE TOTALIZAÇÃO")] - BuscarParametrosTotalizacao = 302, - [Category("CONSTATAMOS UM ERRO AO SALVAR PARAMETROS DO RELATORIO SELECIONADO")] - [Description("ERRO AO SALVAR PARAMETROS DO RELATORIO")] - SalvarParametrosRelatorio = 303, - [Category("CONSTATAMOS UM ERRO AO SALVAR PARAMETROS DE TOTALIZAÇÃO SELECIONADO")] - [Description("ERRO AO SALVAR PARAMETROS DE TOTALIZAÇÃO")] - SalvarParametrosTotalizacao = 304, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS ITENS")] - [Description("ERRO AO BUSCAR ITENS POR IDDOCUMENTO")] - BuscarItensIdDocumento = 305, - [Category("CONSTATAMOS UM ERRO AO SALVAR O TIPO DE TAREFA SELECIONADO")] - [Description("ERRO AO SALVAR TIPO DE TAREFA")] - SalvarTipoTarefa = 306, - [Category("CONSTATAMOS UM ERRO AO SALVAR O STATUS DE PROSPECÇÃO")] - [Description("ERRO AO SALVAR STATUS DE PROSPECÇÃO")] - SalvarStatusProspeccao = 307, - [Category("CONSTATAMOS UM ERRO AO BUSCAR TIPOS DE TAREFA")] - [Description("ERRO AO BUSCAR TIPOS DE TAREFA")] - BuscarTiposTarefa = 308, - [Category("CONSTATAMOS UM ERRO AO BUSCAR TAREFAS POR TIPO")] - [Description("ERRO AO BUSCAR TAREFAS POR TIPO")] - BuscarTarefasPorTipo = 309, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PROSPECÇÕES POR STATUS")] - [Description("ERRO AO BUSCAR PROSPECÇÕES POR STATUS")] - BuscarProspeccoesPorStatus = 310, - [Category("CONSTATAMOS UM ERRO AO SALVAR VINCULO DE REPASSES")] - [Description("ERRO AO SALVAR VINCULO DE REPASSES")] - SalvarVinculoRepasse = 311, - [Category("CONSTATAMOS UM ERRO AO BUSCAR NOTAS FISCAIS")] - [Description("ERRO AO BUSCAR NOTAS FISCAIS")] - BuscarNotasFiscais = 312, - [Category("CONSTATAMOS UM ERRO AO SALVAR A NOTA FISCAL SELECIONADA")] - [Description("ERRO AO SALVAR NOTA FISCAL")] - SalvarNotaFiscal = 313, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR A NOTA FISCAL SELECIONADO")] - [Description("ERRO AO EXCLUIR NOTA FISCAL")] - ExcluirNotaFiscal = 314, - [Category("CONSTATAMOS UM ERRO AO BUSCAR NOTAS FISCAIS NO RELATÓRIO")] - [Description("ERRO AO BUSCAR NOTAS FISCAIS NO RELATÓRIO")] - BuscarNotasFiscaisRelatorio = 315, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PREVISÃO DE PAGAMENTO DE COMISSÃO")] - [Description("ERRO AO BUSCAR PREVISÃO DE PAGAMENTO DE COMISSÃO")] - BuscarPrevisaoPagamentoComissao = 316, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS PARAMETROS DE IMPOSTO")] - [Description("ERRO AO BUSCAR PARAMETROS DE IMPOSTO")] - BuscarImpostos = 317, - [Category("CONSTATAMOS UM ERRO AO SALVAR O PARAMETRO DE IMPOSTO")] - [Description("ERRO AO SALVAR PARAMETROS DE IMPOSTO")] - SalvarImposto = 318, - [Category("CONSTATAMOS UM ERRO AO BUSCAR LOG DO SISTEMA ANTIGO")] - [Description("ERRO AO BUSCAR LOG SISTEMA ANTIGO")] - BuscarLogAntigo = 319, - [Category("CONSTATAMOS UM ERRO AO SALVAR O LOG DO PROCEDIMENTO EXECUTADO")] - [Description("ERRO AO SALVAR LOG DE AÇÃO")] - SalvarAction = 320, - [Category("CONSTATAMOS UM ERRO AO BUSCAR LOG DE UTILIZAÇÃO")] - [Description("ERRO AO BUSCAR LOG DE UTILIZAÇÃO")] - BuscarAction = 321, - [Category("CONSTATAMOS UM ERRO AO BUSCAR FATURAS")] - [Description("ERRO AO BUSCAR FATURAS POR NÚMERO")] - BuscarFaturaPorNumero = 322, - [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTO PELO CÓDIGO BANCÁRIO")] - [Description("ERRO AO BUSCAR LANÇAMENTO PELO CÓDIGO BANCÁRIO")] - BuscarLancamentoCodigoBanco = 323, - [Category("CONSTATAMOS UM ERRO AO BUSCAR OS CLIENTES PARA PROSPECTAR NOVAS VENDAS")] - [Description("ERRO AO BUSCAR CLIENTES PARA PROSPECTAR")] - Prospectar = 324, - [Category("CONSTATAMOS UM ERRO AO TROCAR APÓLICE DE UM CLIENTE PARA OUTRO")] - [Description("ERRO AO TROCAR CLIENTE")] - TrocarCliente = 325, - [Category("CONSTATAMOS UM ERRO AO BUSCAR ORIGENS DO CLIENTE")] - [Description("ERRO AO BUSCAR ORIGENS DO CLIENTE")] - BuscarOrigensClienteId = 326, - [Category("CONSTATAMOS UM ERRO AO BUSCAR PLACAS POR PERIODO E FILTRO")] - [Description("ERRO AO BUSCAR PLACAS POR PERIODO E FILTRO")] - BuscarPlacas = 327, - [Category("CONSTATAMOS UM ERRO AO BUSCAR DATA DE NASCIMENTO")] - [Description("ERRO AO BUSCAR DATA DE NASCIMENTO")] - BuscarNascimento = 328, - [Category("CONSTATAMOS UM ERRO AO BUSCAR LANÇAMENTOS POR DATA LANÇAMENTO")] - [Description("ERRO AO BUSCAR LANÇAMENTOS POR DATA LANÇAMENTO E STATUS")] - BuscarLancamentosPorDataLancamento = 329, - [Category("CONSTATAMOS UM ERRO AO BUSCAR O RISCOS DIVERSOS")] - [Description("ERRO AO BUSCAR CONSORCIO POR ID")] - BuscarConsorcioId = 330, - [Category("CONSTATAMOS UM ERRO AO SALVAR O ITEM SELECIONADO")] - [Description("ERRO AO SALVAR CONSORCIO")] - SalvarConsorcio = 331, - [Category("CONSTATAMOS UM ERRO AO EXCLUIR O CONSORCIO SELECIONADO")] - [Description("ERRO AO EXCLUIR CONSORCIO")] - ExcluirConsorcio = 332, - [Category("CONSTATAMOS UM ERRO INESPERADO")] - [Description("ERRO INESPERADO")] - Inesperado = 1000, - [Category("CONSTATAMOS QUE NÃO HÁ ESPAÇO LIVRE EM DISCO SUFICENTE PARA A ATUALIZAÇÃO DO SISTEMA.")] - [Description("ERRO AO ATUALIZAR")] - EspacoLivre = 1001 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/TokenSso.cs b/Gestor.Model/Model.API/TokenSso.cs deleted file mode 100644 index ec028b5..0000000 --- a/Gestor.Model/Model.API/TokenSso.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class TokenSso - { - public double Expires - { - get; - set; - } - - public string Token - { - get; - set; - } - - public string Type - { - get; - set; - } - - public UserSso User - { - get; - set; - } - - public TokenSso() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/UploadFile.cs b/Gestor.Model/Model.API/UploadFile.cs deleted file mode 100644 index fe8699f..0000000 --- a/Gestor.Model/Model.API/UploadFile.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class UploadFile - { - private string _extensao; - - public int Ano - { - get; - set; - } - - public byte[] Arquivo - { - get; - set; - } - - public string Extensao - { - get - { - return this._extensao; - } - set - { - string lower; - if (value != null) - { - string str = value.Trim(); - if (str != null) - { - lower = str.ToLower(); - } - else - { - lower = null; - } - } - else - { - lower = null; - } - this._extensao = lower; - } - } - - public Guid Id - { - get; - set; - } - - public UploadFile() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/UserSso.cs b/Gestor.Model/Model.API/UserSso.cs deleted file mode 100644 index ce62ae9..0000000 --- a/Gestor.Model/Model.API/UserSso.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class UserSso - { - public string CustomerDocument - { - get; - set; - } - - public string Document - { - get; - set; - } - - public string Email - { - get; - set; - } - - public string Id - { - get; - set; - } - - public long IdEmpresa - { - get; - set; - } - - public bool IsDeleted - { - get; - set; - } - - public string Name - { - get; - set; - } - - public string Password - { - get; - set; - } - - public string Phone - { - get; - set; - } - - public string Serial - { - get; - set; - } - - public string Username - { - get; - set; - } - - public UserSso() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/UsuarioCentralSegurado.cs b/Gestor.Model/Model.API/UsuarioCentralSegurado.cs deleted file mode 100644 index 327d282..0000000 --- a/Gestor.Model/Model.API/UsuarioCentralSegurado.cs +++ /dev/null @@ -1,112 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class UsuarioCentralSegurado - { - public bool Admin - { - get; - set; - } - - public string Bairro - { - get; - set; - } - - public string Cep - { - get; - set; - } - - public string Cidade - { - get; - set; - } - - public string Corretora - { - get; - set; - } - - public string Documento - { - get; - set; - } - - public string Email - { - get; - set; - } - - public string Estado - { - get; - set; - } - - public long FornecedorId - { - get; - set; - } - - public string Id { get; set; } = string.Empty; - - public long IdEmpresa { get; set; } = (long)1; - - public string Nome - { - get; - set; - } - - public string Numero - { - get; - set; - } - - public string Rua - { - get; - set; - } - - public string Senha - { - get; - set; - } - - public string Serial - { - get; - set; - } - - public string Telefone - { - get; - set; - } - - public string UriCorretora - { - get; - set; - } - - public UsuarioCentralSegurado() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.API/Version.cs b/Gestor.Model/Model.API/Version.cs deleted file mode 100644 index 78da24d..0000000 --- a/Gestor.Model/Model.API/Version.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.API -{ - public class Version - { - public string Beta - { - get; - set; - } - - public DateTime Data - { - get; - set; - } - - public bool Erro - { - get; - set; - } - - public string Name - { - get; - set; - } - - public bool Obrigatorio - { - get; - set; - } - - public string Status - { - get; - set; - } - - public string Uri - { - get; - set; - } - - public string VersaoAplicacao - { - get; - set; - } - - public Version() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Attributes/EntityAttribute.cs b/Gestor.Model/Model.Attributes/EntityAttribute.cs deleted file mode 100644 index 46113ad..0000000 --- a/Gestor.Model/Model.Attributes/EntityAttribute.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Attributes -{ - [AttributeUsage(AttributeTargets.All)] - public class EntityAttribute : Attribute - { - public virtual string Description - { - get - { - return this.DescriptionValue; - } - } - - protected string DescriptionValue - { - get - { - return this.Tipo; - } - set - { - this.Tipo = value; - } - } - - public string Tipo - { - get; - set; - } - - public EntityAttribute(string tipo) - { - this.Tipo = tipo; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Attributes/ForceLogAttribute.cs b/Gestor.Model/Model.Attributes/ForceLogAttribute.cs deleted file mode 100644 index a9b0f20..0000000 --- a/Gestor.Model/Model.Attributes/ForceLogAttribute.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Attributes -{ - public class ForceLogAttribute : Attribute - { - public virtual bool Description - { - get - { - return this.DescriptionValue; - } - } - - protected bool DescriptionValue - { - get - { - return this.Log; - } - set - { - this.Log = value; - } - } - - public bool Log - { - get; - set; - } - - public ForceLogAttribute(bool log = true) - { - this.Log = log; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Attributes/HelpAttribute.cs b/Gestor.Model/Model.Attributes/HelpAttribute.cs deleted file mode 100644 index 54ed201..0000000 --- a/Gestor.Model/Model.Attributes/HelpAttribute.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Attributes -{ - [AttributeUsage(AttributeTargets.All)] - public class HelpAttribute : Attribute - { - public virtual string Description - { - get - { - return this.DescriptionValue; - } - } - - protected string DescriptionValue - { - get - { - return this.Tipo; - } - set - { - this.Tipo = value; - } - } - - public string Tipo - { - get; - set; - } - - public HelpAttribute(string tipo) - { - this.Tipo = tipo; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Attributes/LogAttribute.cs b/Gestor.Model/Model.Attributes/LogAttribute.cs deleted file mode 100644 index ca9e763..0000000 --- a/Gestor.Model/Model.Attributes/LogAttribute.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Attributes -{ - [AttributeUsage(AttributeTargets.All)] - public class LogAttribute : Attribute - { - public virtual bool Description - { - get - { - return this.DescriptionValue; - } - } - - protected bool DescriptionValue - { - get - { - return this.Log; - } - set - { - this.Log = value; - } - } - - public bool Log - { - get; - set; - } - - public LogAttribute(bool log = true) - { - this.Log = log; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Attributes/NameAttribute.cs b/Gestor.Model/Model.Attributes/NameAttribute.cs deleted file mode 100644 index fd04e69..0000000 --- a/Gestor.Model/Model.Attributes/NameAttribute.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Attributes -{ - [AttributeUsage(AttributeTargets.All)] - public class NameAttribute : Attribute - { - public virtual bool Description - { - get - { - return this.DescriptionValue; - } - } - - protected bool DescriptionValue - { - get - { - return this.Log; - } - set - { - this.Log = value; - } - } - - public bool Log - { - get; - set; - } - - public NameAttribute(bool log = true) - { - this.Log = log; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Attributes/OldValue2Attribute.cs b/Gestor.Model/Model.Attributes/OldValue2Attribute.cs deleted file mode 100644 index 83fb5cf..0000000 --- a/Gestor.Model/Model.Attributes/OldValue2Attribute.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Attributes -{ - [AttributeUsage(AttributeTargets.Field)] - public class OldValue2Attribute : Attribute - { - public string OldValue2 - { - get; - private set; - } - - public OldValue2Attribute(string oldValue) - { - this.OldValue2 = oldValue; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Attributes/OldValueAttribute.cs b/Gestor.Model/Model.Attributes/OldValueAttribute.cs deleted file mode 100644 index 4f8c17c..0000000 --- a/Gestor.Model/Model.Attributes/OldValueAttribute.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Attributes -{ - [AttributeUsage(AttributeTargets.Field)] - public class OldValueAttribute : Attribute - { - public string OldValue - { - get; - private set; - } - - public OldValueAttribute(string oldValue) - { - this.OldValue = oldValue; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Attributes/TipoAttribute.cs b/Gestor.Model/Model.Attributes/TipoAttribute.cs deleted file mode 100644 index f4590da..0000000 --- a/Gestor.Model/Model.Attributes/TipoAttribute.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Attributes -{ - [AttributeUsage(AttributeTargets.All)] - public class TipoAttribute : Attribute - { - public virtual string Description - { - get - { - return this.DescriptionValue; - } - } - - protected string DescriptionValue - { - get - { - return this.Tipo; - } - set - { - this.Tipo = value; - } - } - - public string Tipo - { - get; - set; - } - - public TipoAttribute(string tipo) - { - this.Tipo = tipo; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Attributes/WidthAttribute.cs b/Gestor.Model/Model.Attributes/WidthAttribute.cs deleted file mode 100644 index af31e8f..0000000 --- a/Gestor.Model/Model.Attributes/WidthAttribute.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Attributes -{ - [AttributeUsage(AttributeTargets.All)] - public class WidthAttribute : Attribute - { - public virtual string Description - { - get - { - return this.DescriptionValue; - } - } - - protected string DescriptionValue - { - get - { - return this.Tipo; - } - set - { - this.Tipo = value; - } - } - - public string Tipo - { - get; - set; - } - - public WidthAttribute(string tipo) - { - this.Tipo = tipo; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Auto/CalculoAuto.cs b/Gestor.Model/Model.CalculoWeb/Auto/CalculoAuto.cs deleted file mode 100644 index 770eaa0..0000000 --- a/Gestor.Model/Model.CalculoWeb/Auto/CalculoAuto.cs +++ /dev/null @@ -1,61 +0,0 @@ -using Gestor.Model.CalculoWeb; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Auto -{ - public class CalculoAuto - { - public Gestor.Model.CalculoWeb.Auto.Caminhao Caminhao - { - get; - set; - } - - public CoberturaAuto Cobertura - { - get; - set; - } - - public Gestor.Model.CalculoWeb.Auto.CondutorPrincipal CondutorPrincipal - { - get; - set; - } - - public QuestionarioAuto Questionario - { - get; - set; - } - - public Gestor.Model.CalculoWeb.Segurado Segurado - { - get; - set; - } - - public Gestor.Model.CalculoWeb.Seguro Seguro - { - get; - set; - } - - public int TipoVeiculo - { - get; - set; - } - - public Gestor.Model.CalculoWeb.Auto.Veiculo Veiculo - { - get; - set; - } - - public CalculoAuto() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Auto/Caminhao.cs b/Gestor.Model/Model.CalculoWeb/Auto/Caminhao.cs deleted file mode 100644 index dba0c83..0000000 --- a/Gestor.Model/Model.CalculoWeb/Auto/Caminhao.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -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 Garagem - { - get; - set; - } - - public string GerenciamentoRisco - { - get; - set; - } - - public int Id - { - get; - set; - } - - public string Periodo - { - get; - set; - } - - public string ProprioEstado - { - get; - set; - } - - public string RegiaoCirculacao - { - get; - set; - } - - public string SeguroCarga - { - get; - set; - } - - public string Uso - { - get; - set; - } - - public Caminhao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Auto/CoberturaAuto.cs b/Gestor.Model/Model.CalculoWeb/Auto/CoberturaAuto.cs deleted file mode 100644 index b97f258..0000000 --- a/Gestor.Model/Model.CalculoWeb/Auto/CoberturaAuto.cs +++ /dev/null @@ -1,132 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Auto -{ - public class CoberturaAuto - { - public string ArCondicionado - { - get; - set; - } - - public string Assistencia - { - get; - set; - } - - public decimal Blindagem - { - get; - set; - } - - public decimal Carroceria - { - get; - set; - } - - public string CarroReserva - { - get; - set; - } - - public string DanosCorporais - { - get; - set; - } - - public string DanosMateriais - { - get; - set; - } - - public string DanosMorais - { - get; - set; - } - - public string DespesasExtras - { - get; - set; - } - - public decimal Equipamento - { - get; - set; - } - - public decimal FatorAjuste - { - get; - set; - } - - public string GarantiaZero - { - get; - set; - } - - public int Id - { - get; - set; - } - - public decimal KitGas - { - get; - set; - } - - public string MorteInvalidez - { - get; - set; - } - - public string ProtecaoBuracos - { - get; - set; - } - - public string ReparoRapido - { - get; - set; - } - - public string TipoCobertura - { - get; - set; - } - - public string TipoFranquia - { - get; - set; - } - - public string Vidros - { - get; - set; - } - - public CoberturaAuto() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Auto/ComissaoSeguradora.cs b/Gestor.Model/Model.CalculoWeb/Auto/ComissaoSeguradora.cs deleted file mode 100644 index f19675c..0000000 --- a/Gestor.Model/Model.CalculoWeb/Auto/ComissaoSeguradora.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Auto -{ - public class ComissaoSeguradora - { - public long Seguradora - { - get; - set; - } - - public decimal Valor - { - get; - set; - } - - public ComissaoSeguradora() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Auto/CondutorPrincipal.cs b/Gestor.Model/Model.CalculoWeb/Auto/CondutorPrincipal.cs deleted file mode 100644 index 84810f9..0000000 --- a/Gestor.Model/Model.CalculoWeb/Auto/CondutorPrincipal.cs +++ /dev/null @@ -1,127 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Auto -{ - public class CondutorPrincipal - { - private string _sexo; - - private string _estadoCivil; - - public string CpfCnpj - { - get; - set; - } - - public DateTime? DataHabilitacao - { - get; - set; - } - - public DateTime? DataNascimento - { - get; - set; - } - - public string EstadoCivil - { - get - { - return this._estadoCivil; - } - set - { - this._estadoCivil = value; - value = this.ConvertEstCivCalculo(this._estadoCivil); - } - } - - public long Id - { - get; - set; - } - - public string NomeCompleto - { - get; - set; - } - - public string NumeroHabilitacao - { - get; - set; - } - - public string Sexo - { - get - { - return this._sexo; - } - set - { - this._sexo = value; - this.ConvertSexoCalculo(this._sexo); - } - } - - public string TempoHabilitacao - { - get; - set; - } - - public CondutorPrincipal() - { - } - - private string ConvertEstCivCalculo(string estadoCivil) - { - if (estadoCivil != null && estadoCivil.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; - } - - private string ConvertSexoCalculo(string sexo) - { - if (sexo != "0") - { - return "2"; - } - return "1"; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Auto/Fipe.cs b/Gestor.Model/Model.CalculoWeb/Auto/Fipe.cs deleted file mode 100644 index 1f4bee6..0000000 --- a/Gestor.Model/Model.CalculoWeb/Auto/Fipe.cs +++ /dev/null @@ -1,84 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Auto -{ - public class Fipe - { - public string AnoMaximo - { - get; - set; - } - - public string AnoMinimo - { - get; - set; - } - - public string AnoModelo - { - get; - set; - } - - public string Codigo - { - get; - set; - } - - public string Combustivel - { - get; - set; - } - - public int Id - { - get; - set; - } - - public string Marca - { - get; - set; - } - - public string Modelo - { - get; - set; - } - - public int TipoVeiculo - { - get; - set; - } - - public decimal Valor - { - get; - set; - } - - public decimal ValorAntigo - { - get; - set; - } - - public bool ZeroKm - { - get; - set; - } - - public Fipe() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Auto/QuestionarioAuto.cs b/Gestor.Model/Model.CalculoWeb/Auto/QuestionarioAuto.cs deleted file mode 100644 index 9fb7d71..0000000 --- a/Gestor.Model/Model.CalculoWeb/Auto/QuestionarioAuto.cs +++ /dev/null @@ -1,90 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Auto -{ - public class QuestionarioAuto - { - public string Associado - { - get; - set; - } - - public string FaixaEtariaDependentes - { - get; - set; - } - - public string GaragemEstudo - { - get; - set; - } - - public string GaragemResidencia - { - get; - set; - } - - public string GaragemTrabalho - { - get; - set; - } - - public long Id - { - get; - set; - } - - public string IsencaoFiscal - { - get; - set; - } - - public string Pcd - { - get; - set; - } - - public string PeriodoUso - { - get; - set; - } - - public string QuilometragemMensal - { - get; - set; - } - - public string TipoResidencia - { - get; - set; - } - - public string UsoDependentes - { - get; - set; - } - - public string UsoVeiculo - { - get; - set; - } - - public QuestionarioAuto() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Auto/Veiculo.cs b/Gestor.Model/Model.CalculoWeb/Auto/Veiculo.cs deleted file mode 100644 index a616133..0000000 --- a/Gestor.Model/Model.CalculoWeb/Auto/Veiculo.cs +++ /dev/null @@ -1,217 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Auto -{ - public class Veiculo - { - private string _combustivel; - - public string Alienado - { - get; - set; - } - - public string AnoFabricacao - { - get; - set; - } - - public string AnoModelo - { - get; - set; - } - - public string Antifurto - { - get; - set; - } - - public string Blindado - { - get; - set; - } - - public string CepPernoite - { - get; - set; - } - - public string CodigoFipe - { - get; - set; - } - - public string Combustivel - { - get - { - return this._combustivel; - } - set - { - this._combustivel = value; - Veiculo.ConvertCombustivelCalculo(this._combustivel); - } - } - - public string Fabricante - { - get; - set; - } - - public Gestor.Model.CalculoWeb.Auto.Fipe Fipe - { - get; - set; - } - - public long Id - { - get; - set; - } - - public string KitGas - { - get; - set; - } - - public string Modelo - { - get; - set; - } - - public string NumeroChassi - { - get; - set; - } - - public string Placa - { - get; - set; - } - - public string Rastreador - { - get; - set; - } - - public string Uf - { - get; - set; - } - - public string ZeroKm - { - get; - set; - } - - public Veiculo() - { - } - - private static string ConvertCombustivelCalculo(string combustivel) - { - if (combustivel != null) - { - int length = combustivel.Length; - if (length == 1) - { - switch (combustivel[0]) - { - case '1': - { - return "3"; - } - case '2': - { - return "2"; - } - case '3': - { - return "4"; - } - case '4': - { - return "1"; - } - case '5': - case '7': - case '8': - { - return "6"; - } - case '6': - { - return string.Empty; - } - case '9': - { - break; - } - default: - { - return string.Empty; - } - } - } - else if (length == 2) - { - switch (combustivel[1]) - { - case '0': - { - if (combustivel == "10") - { - break; - } - return string.Empty; - } - case '1': - { - if (combustivel == "11") - { - return "7"; - } - return string.Empty; - } - case '2': - { - if (combustivel == "12") - { - break; - } - return string.Empty; - } - default: - { - return string.Empty; - } - } - } - else - { - return string.Empty; - } - return "5"; - } - return string.Empty; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Calculo.cs b/Gestor.Model/Model.CalculoWeb/Calculo.cs deleted file mode 100644 index 40b8d39..0000000 --- a/Gestor.Model/Model.CalculoWeb/Calculo.cs +++ /dev/null @@ -1,73 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb -{ - public class Calculo - { - public CalculoAuto Auto - { - get; - set; - } - - public CalculoCondominio Condominio - { - get; - set; - } - - public CalculoEmpresa Empresa - { - get; - set; - } - - public CalculoResidencia Residencia - { - get; - set; - } - - public List Resultados - { - get; - set; - } - - public string SerialNumber - { - get; - set; - } - - public Gestor.Model.CalculoWeb.Usuario Usuario - { - get; - set; - } - - public CalculoVidaIndividual Vida - { - get; - set; - } - - public CalculoVidaGlobal VidaGlobal - { - get; - set; - } - - public Calculo() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Condominio/CalculoCondominio.cs b/Gestor.Model/Model.CalculoWeb/Condominio/CalculoCondominio.cs deleted file mode 100644 index 9b3d7d7..0000000 --- a/Gestor.Model/Model.CalculoWeb/Condominio/CalculoCondominio.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Gestor.Model.CalculoWeb; -using Gestor.Model.CalculoWeb.Empresa; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Condominio -{ - public class CalculoCondominio - { - public CoberturaCondominio Cobertura - { - get; - set; - } - - public EnderecoEmpresa Endereco - { - get; - set; - } - - public QuestionarioCondominio Questionario - { - get; - set; - } - - public Gestor.Model.CalculoWeb.Segurado Segurado - { - get; - set; - } - - public Gestor.Model.CalculoWeb.Seguro Seguro - { - get; - set; - } - - public CalculoCondominio() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Condominio/CoberturaCondominio.cs b/Gestor.Model/Model.CalculoWeb/Condominio/CoberturaCondominio.cs deleted file mode 100644 index b020d5c..0000000 --- a/Gestor.Model/Model.CalculoWeb/Condominio/CoberturaCondominio.cs +++ /dev/null @@ -1,186 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Condominio -{ - public class CoberturaCondominio - { - public decimal? Alagamento - { - get; - set; - } - - public decimal? Aluguel - { - get; - set; - } - - public decimal? Anuncios - { - get; - set; - } - - public string Assistencia - { - get; - set; - } - - public decimal? Basica - { - get; - set; - } - - public decimal? Chuveiro - { - get; - set; - } - - public decimal? Condominio - { - get; - set; - } - - public decimal? DanosEletricos - { - get; - set; - } - - public decimal? DanosMorais - { - get; - set; - } - - public decimal? Desmoronamento - { - get; - set; - } - - public decimal? DespesasFixas - { - get; - set; - } - - public decimal? Empregador - { - get; - set; - } - - public decimal? Equipamento - { - get; - set; - } - - public decimal? Garagista - { - get; - set; - } - - public decimal? GaragistaExclusiva - { - get; - set; - } - - public int? Id - { - get; - set; - } - - public decimal? ImpactoVeiculo - { - get; - set; - } - - public decimal? IncendioBens - { - get; - set; - } - - public decimal? PlacasSolares - { - get; - set; - } - - public decimal? Portoes - { - get; - set; - } - - public decimal? RouboBens - { - get; - set; - } - - public decimal? RouboCondominio - { - get; - set; - } - - public decimal? Sindico - { - get; - set; - } - - public decimal? TumultoGreve - { - get; - set; - } - - public string ValorNovo - { - get; - set; - } - - public decimal? Vazamento - { - get; - set; - } - - public decimal? Vendaval - { - get; - set; - } - - public decimal? VidaFuncionario - { - get; - set; - } - - public decimal? Vidros - { - get; - set; - } - - public CoberturaCondominio() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Condominio/QuestionarioCondominio.cs b/Gestor.Model/Model.CalculoWeb/Condominio/QuestionarioCondominio.cs deleted file mode 100644 index 082fd13..0000000 --- a/Gestor.Model/Model.CalculoWeb/Condominio/QuestionarioCondominio.cs +++ /dev/null @@ -1,96 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Condominio -{ - public class QuestionarioCondominio - { - public string AnoConstrucao - { - get; - set; - } - - public string AreaComercial - { - get; - set; - } - - public string AreaConstruida - { - get; - set; - } - - public string Blocos - { - get; - set; - } - - public string Desmoronamento - { - get; - set; - } - - public string Elevadores - { - get; - set; - } - - public string EquipamentoIncendio - { - get; - set; - } - - public string EquipamentoSeguranca - { - get; - set; - } - - public string Estrutura - { - get; - set; - } - - public string Funcionarios - { - get; - set; - } - - public int Id - { - get; - set; - } - - public string ImovelTombado - { - get; - set; - } - - public string Ocupacao - { - get; - set; - } - - public string Pavimentos - { - get; - set; - } - - public QuestionarioCondominio() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Empresa/CalculoEmpresa.cs b/Gestor.Model/Model.CalculoWeb/Empresa/CalculoEmpresa.cs deleted file mode 100644 index 9a3e09a..0000000 --- a/Gestor.Model/Model.CalculoWeb/Empresa/CalculoEmpresa.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Gestor.Model.CalculoWeb; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Empresa -{ - public class CalculoEmpresa - { - public CoberturaEmpresa Cobertura - { - get; - set; - } - - public EnderecoEmpresa Endereco - { - get; - set; - } - - public QuestionarioEmpresa Questionario - { - get; - set; - } - - public Gestor.Model.CalculoWeb.Segurado Segurado - { - get; - set; - } - - public Gestor.Model.CalculoWeb.Seguro Seguro - { - get; - set; - } - - public CalculoEmpresa() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Empresa/CoberturaEmpresa.cs b/Gestor.Model/Model.CalculoWeb/Empresa/CoberturaEmpresa.cs deleted file mode 100644 index c8faa20..0000000 --- a/Gestor.Model/Model.CalculoWeb/Empresa/CoberturaEmpresa.cs +++ /dev/null @@ -1,186 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Empresa -{ - public class CoberturaEmpresa - { - public decimal? Alagamento - { - get; - set; - } - - public decimal? Aluguel - { - get; - set; - } - - public decimal? Anuncio - { - get; - set; - } - - public string Assistencia - { - get; - set; - } - - public decimal? Basica - { - get; - set; - } - - public decimal? ContaminacaoDeterioracao - { - get; - set; - } - - public decimal? DanoEletrico - { - get; - set; - } - - public decimal? DanoMoral - { - get; - set; - } - - public decimal? Desmoronamento - { - get; - set; - } - - public decimal? DespesaFixa - { - get; - set; - } - - public decimal? Empregador - { - get; - set; - } - - public decimal? Equipamento - { - get; - set; - } - - public decimal? Fidelidade - { - get; - set; - } - - public int? Id - { - get; - set; - } - - public decimal? ImpactoVeiculo - { - get; - set; - } - - public decimal? LucroCessante - { - get; - set; - } - - public decimal? PlacasSolares - { - get; - set; - } - - public decimal? RecomposicaoDocumento - { - get; - set; - } - - public decimal? ResponsabilidadeCivil - { - get; - set; - } - - public decimal? ResponsabilidadeCivilGaragista - { - get; - set; - } - - public decimal? RouboFurto - { - get; - set; - } - - public decimal? RouboValor - { - get; - set; - } - - public decimal? Sprinkler - { - get; - set; - } - - public decimal? TumultoGreve - { - get; - set; - } - - public string ValorNovo - { - get; - set; - } - - public decimal? Vazamento - { - get; - set; - } - - public decimal? Vendaval - { - get; - set; - } - - public string Verba - { - get; - set; - } - - public decimal? Vidro - { - get; - set; - } - - public CoberturaEmpresa() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Empresa/EnderecoEmpresa.cs b/Gestor.Model/Model.CalculoWeb/Empresa/EnderecoEmpresa.cs deleted file mode 100644 index 473149b..0000000 --- a/Gestor.Model/Model.CalculoWeb/Empresa/EnderecoEmpresa.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Empresa -{ - public class EnderecoEmpresa - { - public string Bairro - { - get; - set; - } - - public string Cep - { - get; - set; - } - - public string Cidade - { - get; - set; - } - - public string Complemento - { - get; - set; - } - - public string Estado - { - get; - set; - } - - public int Id - { - get; - set; - } - - public string Logradouro - { - get; - set; - } - - public string Numero - { - get; - set; - } - - public EnderecoEmpresa() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Empresa/QuestionarioEmpresa.cs b/Gestor.Model/Model.CalculoWeb/Empresa/QuestionarioEmpresa.cs deleted file mode 100644 index 73dbcca..0000000 --- a/Gestor.Model/Model.CalculoWeb/Empresa/QuestionarioEmpresa.cs +++ /dev/null @@ -1,115 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Empresa -{ - public class QuestionarioEmpresa - { - public DateTime AnoConstrucao - { - get; - set; - } - - public string Atividade - { - get; - set; - } - - public List Atividades - { - get; - set; - } - - public string CaixaEletronico - { - get; - set; - } - - public string Cnae - { - get; - set; - } - - public string Construcao - { - get; - set; - } - - public string Deposito - { - get; - set; - } - - public string EquipamentoIncendio - { - get; - set; - } - - public string EquipamentoSeguranca - { - get; - set; - } - - public string EstruturaMetal - { - get; - set; - } - - public int Id - { - get; - set; - } - - public string ImovelTombado - { - get; - set; - } - - public string Isopainel - { - get; - set; - } - - public string Localizacao - { - get; - set; - } - - public string Pavimento - { - get; - set; - } - - public string TerrenoBaldio - { - get; - set; - } - - public string TipoConstrucao - { - get; - set; - } - - public QuestionarioEmpresa() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Residencia/CalculoResidencia.cs b/Gestor.Model/Model.CalculoWeb/Residencia/CalculoResidencia.cs deleted file mode 100644 index a168a04..0000000 --- a/Gestor.Model/Model.CalculoWeb/Residencia/CalculoResidencia.cs +++ /dev/null @@ -1,43 +0,0 @@ -using Gestor.Model.CalculoWeb; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Residencia -{ - public class CalculoResidencia - { - public CoberturaResidencia Cobertura - { - get; - set; - } - - public Gestor.Model.CalculoWeb.Residencia.Imovel Imovel - { - get; - set; - } - - public QuestionarioResidencia Questionario - { - get; - set; - } - - public Gestor.Model.CalculoWeb.Segurado Segurado - { - get; - set; - } - - public Gestor.Model.CalculoWeb.Seguro Seguro - { - get; - set; - } - - public CalculoResidencia() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Residencia/CoberturaResidencia.cs b/Gestor.Model/Model.CalculoWeb/Residencia/CoberturaResidencia.cs deleted file mode 100644 index bdc8403..0000000 --- a/Gestor.Model/Model.CalculoWeb/Residencia/CoberturaResidencia.cs +++ /dev/null @@ -1,138 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Residencia -{ - public class CoberturaResidencia - { - public decimal Alagamento - { - get; - set; - } - - public decimal Aluguel - { - get; - set; - } - - public string Assistencia - { - get; - set; - } - - public decimal Basica - { - get; - set; - } - - public decimal Bike - { - get; - set; - } - - public decimal DanosEletricos - { - get; - set; - } - - public decimal DanosMorais - { - get; - set; - } - - public decimal Desmoronamento - { - get; - set; - } - - public decimal Equipamentos - { - get; - set; - } - - public int Id - { - get; - set; - } - - public decimal ImpactoVeiculos - { - get; - set; - } - - public decimal PlacasSolares - { - get; - set; - } - - public decimal RecomposicaoDocumento - { - get; - set; - } - - public decimal ResponsabilidadeCivilFamiliar - { - get; - set; - } - - public decimal RouboFurto - { - get; - set; - } - - public decimal TumultoGreve - { - get; - set; - } - - public string ValorNovo - { - get; - set; - } - - public decimal Vazamentos - { - get; - set; - } - - public decimal Vendaval - { - get; - set; - } - - public string Verba - { - get; - set; - } - - public decimal Vidros - { - get; - set; - } - - public CoberturaResidencia() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Residencia/EnderecoResidencia.cs b/Gestor.Model/Model.CalculoWeb/Residencia/EnderecoResidencia.cs deleted file mode 100644 index 9874c8d..0000000 --- a/Gestor.Model/Model.CalculoWeb/Residencia/EnderecoResidencia.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Residencia -{ - public class EnderecoResidencia - { - public string Bairro - { - get; - set; - } - - public string Cep - { - get; - set; - } - - public string Cidade - { - get; - set; - } - - public string Complemento - { - get; - set; - } - - public string Estado - { - get; - set; - } - - public int Id - { - get; - set; - } - - public string Logradouro - { - get; - set; - } - - public string Numero - { - get; - set; - } - - public EnderecoResidencia() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Residencia/Imovel.cs b/Gestor.Model/Model.CalculoWeb/Residencia/Imovel.cs deleted file mode 100644 index 6cedbb0..0000000 --- a/Gestor.Model/Model.CalculoWeb/Residencia/Imovel.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Residencia -{ - public class Imovel - { - public EnderecoResidencia Endereco - { - get; - set; - } - - public int Id - { - get; - set; - } - - public string TipoConstrucao - { - get; - set; - } - - public string TipoMoradia - { - get; - set; - } - - public string TipoOcupacao - { - get; - set; - } - - public Imovel() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Residencia/QuestionarioResidencia.cs b/Gestor.Model/Model.CalculoWeb/Residencia/QuestionarioResidencia.cs deleted file mode 100644 index d8a6269..0000000 --- a/Gestor.Model/Model.CalculoWeb/Residencia/QuestionarioResidencia.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.Residencia -{ - public class QuestionarioResidencia - { - public string AreaRisco - { - get; - set; - } - - public string AtividadeProfissional - { - get; - set; - } - - public string CondominioFechado - { - get; - set; - } - - public string EquipamentoSeguranca - { - get; - set; - } - - public int Id - { - get; - set; - } - - public string ImovelDesocupado - { - get; - set; - } - - public string ImovelTombado - { - get; - set; - } - - public string SeguradoProprietario - { - get; - set; - } - - public string ZonaRural - { - get; - set; - } - - public QuestionarioResidencia() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Resultados.cs b/Gestor.Model/Model.CalculoWeb/Resultados.cs deleted file mode 100644 index 18bb86a..0000000 --- a/Gestor.Model/Model.CalculoWeb/Resultados.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb -{ - public class Resultados - { - public string Erros - { - get; - set; - } - - public Resultados() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Segurado.cs b/Gestor.Model/Model.CalculoWeb/Segurado.cs deleted file mode 100644 index 34b57c8..0000000 --- a/Gestor.Model/Model.CalculoWeb/Segurado.cs +++ /dev/null @@ -1,158 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb -{ - public class Segurado - { - private string _estadoCivil; - - private string _sexo; - - public string Cep { get; set; } = string.Empty; - - public string CpfCnpj - { - get; - set; - } - - public DateTime? DataHabilitacao { get; set; } = new DateTime?(DateTime.MinValue); - - public DateTime? DataNascimento { get; set; } = new DateTime?(DateTime.MinValue); - - public string Email - { - get; - set; - } - - public string EstadoCivil - { - get - { - return this._estadoCivil; - } - set - { - this._estadoCivil = value; - this._estadoCivil = this.ConvertEstCivCalculo(value); - } - } - - public long Id - { - get; - set; - } - - public string NomeCompleto - { - get; - set; - } - - public string NumeroHabilitacao - { - get; - set; - } - - public bool Perfil - { - get; - set; - } - - public string RelacaoSeguradoCondutor - { - get; - set; - } - - public string Sexo - { - get - { - return this._sexo; - } - set - { - this._sexo = value; - this._sexo = this.ConvertSexoCalculo(this._sexo); - value = this._sexo; - } - } - - public Telefone TelefoneCelular - { - get; - set; - } - - public Telefone TelefoneResidencial - { - get; - set; - } - - public string TempoHabilitacao - { - get; - set; - } - - public string Uf - { - get; - set; - } - - public Segurado() - { - } - - private string ConvertEstCivCalculo(string estadoCivil) - { - if (estadoCivil != null && estadoCivil.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; - } - - private string ConvertSexoCalculo(string sexo) - { - if (sexo != "0") - { - return "2"; - } - return "1"; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Seguro.cs b/Gestor.Model/Model.CalculoWeb/Seguro.cs deleted file mode 100644 index 34154f9..0000000 --- a/Gestor.Model/Model.CalculoWeb/Seguro.cs +++ /dev/null @@ -1,110 +0,0 @@ -using Gestor.Model.CalculoWeb.Auto; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb -{ - public class Seguro - { - public decimal Agenciamento - { - get; - set; - } - - public string Banco - { - get; - set; - } - - public string Bonus - { - get; - set; - } - - public string CodigoIdentificacao - { - get; - set; - } - - public decimal Comissao - { - get; - set; - } - - public List ComissaoSeguradora - { - get; - set; - } - - public long Id - { - get; - set; - } - - public string NumeroApoliceAnterior - { - get; - set; - } - - public string Observacoes - { - get; - set; - } - - public bool RenovacaoGarantida - { - get; - set; - } - - public string SeguradoraAnterior - { - get; - set; - } - - public string Sinistros - { - get; - set; - } - - public string TipoSeguro - { - get; - set; - } - - public DateTime VigenciaFinal - { - get; - set; - } - - public DateTime VigenciaFinalAnterior - { - get; - set; - } - - public DateTime VigenciaInicial - { - get; - set; - } - - public Seguro() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Telefone.cs b/Gestor.Model/Model.CalculoWeb/Telefone.cs deleted file mode 100644 index 364a57f..0000000 --- a/Gestor.Model/Model.CalculoWeb/Telefone.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb -{ - public class Telefone - { - public string Ddd - { - get; - set; - } - - public long Id - { - get; - set; - } - - public string Numero - { - get; - set; - } - - public Telefone() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/Usuario.cs b/Gestor.Model/Model.CalculoWeb/Usuario.cs deleted file mode 100644 index 5b46cf6..0000000 --- a/Gestor.Model/Model.CalculoWeb/Usuario.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb -{ - public class Usuario - { - public string Email - { - get; - set; - } - - public Usuario() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/VidaGlobal/CalculoVidaGlobal.cs b/Gestor.Model/Model.CalculoWeb/VidaGlobal/CalculoVidaGlobal.cs deleted file mode 100644 index 60a3b45..0000000 --- a/Gestor.Model/Model.CalculoWeb/VidaGlobal/CalculoVidaGlobal.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Gestor.Model.CalculoWeb; -using Gestor.Model.CalculoWeb.Empresa; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.VidaGlobal -{ - public class CalculoVidaGlobal - { - public CalculoVidaGlobal Cobertura - { - get; - set; - } - - public EnderecoEmpresa Endereco - { - get; - set; - } - - public QuestionarioVidaGlobal Questionario - { - get; - set; - } - - public Gestor.Model.CalculoWeb.Segurado Segurado - { - get; - set; - } - - public Gestor.Model.CalculoWeb.Seguro Seguro - { - get; - set; - } - - public CalculoVidaGlobal() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/VidaGlobal/CoberturaVidaGlobal.cs b/Gestor.Model/Model.CalculoWeb/VidaGlobal/CoberturaVidaGlobal.cs deleted file mode 100644 index dc43427..0000000 --- a/Gestor.Model/Model.CalculoWeb/VidaGlobal/CoberturaVidaGlobal.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.VidaGlobal -{ - public class CoberturaVidaGlobal - { - public string AssistenciaFuneral - { - get; - set; - } - - public decimal? CapitalFuncionario - { - get; - set; - } - - public decimal? CapitalSocio - { - get; - set; - } - - public int Funcionario - { - get; - set; - } - - public int Id - { - get; - set; - } - - public string Ifpd - { - get; - set; - } - - public string Ipa - { - get; - set; - } - - public string MorteAcidental - { - get; - set; - } - - public int Socio - { - get; - set; - } - - public CoberturaVidaGlobal() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/VidaGlobal/QuestionarioVidaGlobal.cs b/Gestor.Model/Model.CalculoWeb/VidaGlobal/QuestionarioVidaGlobal.cs deleted file mode 100644 index 8732069..0000000 --- a/Gestor.Model/Model.CalculoWeb/VidaGlobal/QuestionarioVidaGlobal.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.VidaGlobal -{ - public class QuestionarioVidaGlobal - { - public List Atividades - { - get; - set; - } - - public string Cnae - { - get; - set; - } - - public int Funcionario - { - get; - set; - } - - public int Id - { - get; - set; - } - - public QuestionarioVidaGlobal() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/VidaIndividual/CalculoVidaIndividual.cs b/Gestor.Model/Model.CalculoWeb/VidaIndividual/CalculoVidaIndividual.cs deleted file mode 100644 index 33eb7fd..0000000 --- a/Gestor.Model/Model.CalculoWeb/VidaIndividual/CalculoVidaIndividual.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Gestor.Model.CalculoWeb; -using Gestor.Model.CalculoWeb.Empresa; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.VidaIndividual -{ - public class CalculoVidaIndividual - { - public CoberturaVidaIndividual Cobertura - { - get; - set; - } - - public EnderecoEmpresa Endereco - { - get; - set; - } - - public QuestionarioVidaIndividual Questionario - { - get; - set; - } - - public Gestor.Model.CalculoWeb.Segurado Segurado - { - get; - set; - } - - public Gestor.Model.CalculoWeb.Seguro Seguro - { - get; - set; - } - - public CalculoVidaIndividual() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/VidaIndividual/CoberturaVidaIndividual.cs b/Gestor.Model/Model.CalculoWeb/VidaIndividual/CoberturaVidaIndividual.cs deleted file mode 100644 index 5b3f83f..0000000 --- a/Gestor.Model/Model.CalculoWeb/VidaIndividual/CoberturaVidaIndividual.cs +++ /dev/null @@ -1,108 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.VidaIndividual -{ - public class CoberturaVidaIndividual - { - public string AssistenciaFuneral - { - get; - set; - } - - public decimal? Capital - { - get; - set; - } - - public decimal CapitalDih - { - get; - set; - } - - public decimal? CapitalDit - { - get; - set; - } - - public decimal? CapitalDoenca - { - get; - set; - } - - public decimal? CapitalIfpd - { - get; - set; - } - - public decimal? CapitalIpa - { - get; - set; - } - - public decimal? CapitalMorteAcidental - { - get; - set; - } - - public string Dih - { - get; - set; - } - - public string Dit - { - get; - set; - } - - public string DoencaGrave - { - get; - set; - } - - public int? Id - { - get; - set; - } - - public string Ifpd - { - get; - set; - } - - public string Ipa - { - get; - set; - } - - public string Morte - { - get; - set; - } - - public string MorteAcidental - { - get; - set; - } - - public CoberturaVidaIndividual() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/VidaIndividual/Profissao.cs b/Gestor.Model/Model.CalculoWeb/VidaIndividual/Profissao.cs deleted file mode 100644 index fd20834..0000000 --- a/Gestor.Model/Model.CalculoWeb/VidaIndividual/Profissao.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.VidaIndividual -{ - public class Profissao - { - public string Chave - { - get; - set; - } - - public int Id - { - get; - set; - } - - public int Seguradora - { - get; - set; - } - - public string Valor - { - get; - set; - } - - public Profissao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.CalculoWeb/VidaIndividual/QuestionarioVidaIndividual.cs b/Gestor.Model/Model.CalculoWeb/VidaIndividual/QuestionarioVidaIndividual.cs deleted file mode 100644 index 9ff0b62..0000000 --- a/Gestor.Model/Model.CalculoWeb/VidaIndividual/QuestionarioVidaIndividual.cs +++ /dev/null @@ -1,67 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.CalculoWeb.VidaIndividual -{ - public class QuestionarioVidaIndividual - { - public float Altura - { - get; - set; - } - - public string Aposentado - { - get; - set; - } - - public string Esporte - { - get; - set; - } - - public string Fumante - { - get; - set; - } - - public int? Id - { - get; - set; - } - - public int? Peso - { - get; - set; - } - - public string Profissao - { - get; - set; - } - - public List Profissoes - { - get; - set; - } - - public decimal? RendaMensal - { - get; - set; - } - - public QuestionarioVidaIndividual() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/AcessoApolice.cs b/Gestor.Model/Model.Common/AcessoApolice.cs deleted file mode 100644 index 0be3aa9..0000000 --- a/Gestor.Model/Model.Common/AcessoApolice.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - public enum AcessoApolice - { - [Description("NORMAL")] - Normal, - [Description("PARCELA")] - Parcela, - [Description("ENDOSSO")] - Endosso, - [Description("RENOVAÇÃO")] - Renovacao - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Agrupamento.cs b/Gestor.Model/Model.Common/Agrupamento.cs deleted file mode 100644 index b36c4fc..0000000 --- a/Gestor.Model/Model.Common/Agrupamento.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -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 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Antifurto.cs b/Gestor.Model/Model.Common/Antifurto.cs deleted file mode 100644 index 2c77cb7..0000000 --- a/Gestor.Model/Model.Common/Antifurto.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum Antifurto - { - [Description("NÃO POSSUI")] - [OldValue("0")] - NaoSeAplica, - [Description("ALARME")] - [OldValue("1")] - Alarme, - [Description("BLOQUEADOR DE IGNIÇÃO")] - [OldValue("2")] - Bloqueador, - [Description("TRAVA CARNEIRO")] - [OldValue("3")] - TravaCarneiro, - [Description("TRAVA MUL-T-LOCK")] - [OldValue("4")] - TravaMulTLock, - [Description("OUTROS")] - [OldValue("5")] - Outros - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/AtividadeEmpresa.cs b/Gestor.Model/Model.Common/AtividadeEmpresa.cs deleted file mode 100644 index 19c49c6..0000000 --- a/Gestor.Model/Model.Common/AtividadeEmpresa.cs +++ /dev/null @@ -1,129 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum AtividadeEmpresa - { - [Description("OUTROS")] - [OldValue("1")] - Outro, - [Description("ACADEMIA")] - [OldValue("2")] - Academia, - [Description("BAR")] - [OldValue("3")] - Bar, - [Description("BELEZA E ESTÉTICA")] - [OldValue("4")] - BelezaEstetica, - [Description("CLÍNICA VETERINÁRIA")] - [OldValue("5")] - ClinicaVeterinaria, - [Description("CONCESSIONÁRIA")] - [OldValue("6")] - Concessionaria, - [Description("CONSULTÓRIO MÉDICO")] - [OldValue("7")] - ConsultorioMedico, - [Description("CONSULTÓRIO ODONTOLÓGICO")] - [OldValue("8")] - ConsultorioOdontologico, - [Description("ESCOLA DE INFORMÁTICA")] - [OldValue("9")] - EscolaInformatica, - [Description("ESCOLA DE IDIOMAS")] - [OldValue("10")] - EscolaIdiomas, - [Description("ESCOLA TÉCNICA")] - [OldValue("11")] - EscolaTecnica, - [Description("ESCOLA OU COLÉGIO")] - [OldValue("12")] - EscolaDemais, - [Description("ESCRITÓRIO")] - [OldValue("13")] - Escritorio, - [Description("FARMÁCIA")] - [OldValue("14")] - Farmacia, - [Description("FLORICULTURA")] - [OldValue("15")] - Floricultura, - [Description("HOTEL")] - [OldValue("16")] - Hotel, - [Description("IGREJA")] - [OldValue("17")] - Igreja, - [Description("LAVANDERIA")] - [OldValue("18")] - Lavanderia, - [Description("LIVRARIA")] - [OldValue("19")] - Livraria, - [Description("LOJA DE CALÇADOS")] - [OldValue("20")] - LojaCalcado, - [Description("LOJA DE ROUPAS")] - [OldValue("21")] - LojaRoupa, - [Description("SUPERMERCADO")] - [OldValue("22")] - Mercado, - [Description("MOTEL")] - [OldValue("23")] - Motel, - [Description("ÓTICA")] - [OldValue("24")] - Otica, - [Description("PADARIA")] - [OldValue("25")] - Padaria, - [Description("PAPELARIA")] - [OldValue("26")] - Papelaria, - [Description("PERFUMARIA")] - [OldValue("27")] - Perfumaria, - [Description("PET SHOP")] - [OldValue("28")] - PetShop, - [Description("POSTO DE COMBUSTÍVEL")] - [OldValue("29")] - PostoCombustivel, - [Description("POUSADA")] - [OldValue("30")] - Pousada, - [Description("RESTAURANTE")] - [OldValue("31")] - Restaurante, - [Description("LOJA DE MÓVEIS")] - [OldValue("32")] - LojaMoveis, - [Description("LOJA DE MATERIAL DE CONSTRUÇÃO")] - [OldValue("33")] - LojaMaterialConstrucao, - [Description("LOJA DE ELETRODOMÉSTICOS")] - [OldValue("34")] - LojaEletrodomesticos, - [Description("LOJA DE COLCHÕES")] - [OldValue("35")] - LojaColchoes, - [Description("BUFFET")] - [OldValue("36")] - Buffet, - [Description("AÇOUGUE")] - [OldValue("37")] - Acougue, - [Description("TRANSPORTADORA")] - [OldValue("38")] - Transportadora, - [Description("COPIADORA")] - [OldValue("39")] - Copiadora - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/BandeiraCartao.cs b/Gestor.Model/Model.Common/BandeiraCartao.cs deleted file mode 100644 index 2607262..0000000 --- a/Gestor.Model/Model.Common/BandeiraCartao.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum BandeiraCartao - { - [Description("VISA")] - [OldValue("1")] - Visa = 1, - [Description("MASTERCARD")] - [OldValue("2")] - Master = 2, - [Description("ELO")] - [OldValue("3")] - Elo = 3, - [Description("AMERICAN EXPRESS")] - [OldValue("4")] - AmericanExpress = 4, - [Description("HIPERCARD")] - [OldValue("5")] - Hipercard = 5, - [Description("DINERS CLUB")] - [OldValue("6")] - Diners = 6, - [Description("SOROCRED")] - [OldValue("7")] - Sorocred = 7 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/BaseRepasse.cs b/Gestor.Model/Model.Common/BaseRepasse.cs deleted file mode 100644 index f5c12eb..0000000 --- a/Gestor.Model/Model.Common/BaseRepasse.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum BaseRepasse - { - [Description("VIGÊNCIA DO DOCUMENTO")] - [OldValue("1")] - Vigencia = 1, - [Description("CADASTRO DO DOCUMENTO")] - [OldValue("2")] - Cadastro = 2, - [Description("VENCIMENTO DA PARCELA")] - [OldValue("3")] - Vencimento = 3, - [Description("EMISSÃO DA APÓLICE")] - [OldValue("4")] - Emissao = 4, - [Description("TRANSMISSÃO DA PROPOSTA")] - [OldValue("5")] - Transmissao = 5 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Categoria.cs b/Gestor.Model/Model.Common/Categoria.cs deleted file mode 100644 index 6ae62dc..0000000 --- a/Gestor.Model/Model.Common/Categoria.cs +++ /dev/null @@ -1,51 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum Categoria - { - [Description("PICKUP")] - [OldValue("1")] - Pickup = 1, - [Description("OUTROS")] - [OldValue("2")] - Outros = 2, - [Description("PASSEIO")] - [OldValue("3")] - Passeio = 3, - [Description("CAMINHÃO")] - [OldValue("4")] - Caminhao = 4, - [Description("CAMINHONETE")] - [OldValue("5")] - Caminhonete = 5, - [Description("ÔNIBUS")] - [OldValue("6")] - Onibus = 6, - [Description("UTILITÁRIO")] - [OldValue("7")] - Utilitario = 7, - [Description("CARGA")] - [OldValue("8")] - Carga = 8, - [Description("MOTOCICLETA")] - [OldValue("9")] - Motocicleta = 9, - [Description("TAXI")] - [OldValue("10")] - Taxi = 10, - [Description("UBER")] - [OldValue("11")] - Uber = 11, - [Description("REBOCADOR")] - [OldValue("12")] - Rebocador = 12, - [Description("REBOQUE/SEMI REBOQUE")] - [OldValue("13")] - Reboque = 13 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Combustivel.cs b/Gestor.Model/Model.Common/Combustivel.cs deleted file mode 100644 index 9e6b6b2..0000000 --- a/Gestor.Model/Model.Common/Combustivel.cs +++ /dev/null @@ -1,60 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum Combustivel - { - [Category("1")] - [Description("ÁLCOOL")] - [OldValue("1")] - Alcool = 1, - [Category("1")] - [Description("GASOLINA")] - [OldValue("2")] - Gasolina = 2, - [Category("1")] - [Description("DIESEL")] - [OldValue("3")] - Diesel = 3, - [Category("0")] - [Description("FLEX (GASOLINA/ÁLCOOL)")] - [OldValue("4")] - Flex = 4, - [Category("2")] - [Description("GNV")] - [OldValue("5")] - Gnv = 5, - [Category("4")] - [Description("OUTROS")] - [OldValue("6")] - Outros = 6, - [Category("2")] - [Description("GASOLINA/GNV")] - [OldValue("7")] - GasolinaGnv = 7, - [Category("2")] - [Description("GASOLINA/ÁLCOOL/GNV")] - [OldValue("8")] - GasolinaAlcoolGnv = 8, - [Category("3")] - [Description("GASOLINA/ELÉTRICO")] - [OldValue("9")] - GasolinaEletrico = 9, - [Category("3")] - [Description("HÍBRIDO")] - [OldValue("10")] - Hibrido = 10, - [Category("3")] - [Description("ELÉTRICO")] - [OldValue("11")] - Eletrico = 11, - [Category("3")] - [Description("GASOLINA/ÁLCOOL/ELÉTRICO")] - [OldValue("12")] - GasolinaAlcoolEletrico = 12 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Condicao.cs b/Gestor.Model/Model.Common/Condicao.cs deleted file mode 100644 index 6d5d015..0000000 --- a/Gestor.Model/Model.Common/Condicao.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Common -{ - public class Condicao - { - public string Campo - { - get; - set; - } - - public int Grupo - { - get; - set; - } - - public Gestor.Model.Common.Operacao Operacao - { - get; - set; - } - - public Gestor.Model.Common.Operador Operador - { - get; - set; - } - - public List Valores - { - get; - set; - } - - public Condicao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Configuracao.cs b/Gestor.Model/Model.Common/Configuracao.cs deleted file mode 100644 index e5b0264..0000000 --- a/Gestor.Model/Model.Common/Configuracao.cs +++ /dev/null @@ -1,179 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum Configuracao - { - [Category("SEMPRE ATUALIZAR DADOS DO CLIENTE AO IMPORTAR UM NOVO PDF")] - [Description("IMPORTADOR PDF - ATUALIZAR DADOS CLIENTE AUTOMATICAMENTE")] - AtualizarDados = 0, - [Category("SEMPRE ATUALIZAR ENDEREÇO CLIENTE AO IMPORTAR UM NOVO PDF")] - [Description("IMPORTADOR PDF - ATUALIZAR ENDEREÇO CLIENTE AUTOMATICAMENTE")] - AtualizarEndereco = 1, - [Category("NÃO EXCLUIR O ARQUIVO PDF DA PASTA DE ORIGEM AO IMPORTA-LO")] - [Description("IMPORTADOR PDF - MANTER PDF")] - ManterPdf = 2, - [Category("OBRIGAR USUARIO A PREENCHER O CAMPO STATUS DO DOCUMENTO MANUALMENTE DURANTE A CRÍTICA")] - [Description("CRÍTICA DE DOCUMENTOS - OBRIGAR STATUS DOCUMENTO")] - StatusDocumento = 3, - [Category("RESTRINGIR A VISUALIZAÇÃO DAS PARCELAS DO DOCUMENTO NO ACESSO AO APLICATIVO MOBILE EPIC")] - [Description("AGGER EPIC - RESTRINGIR ACESSO ÁS PARCELAS")] - AcessoParcelasEpic = 4, - [Category("HABILITAR CAMPOS DE IMPOSTOS E REALIZA A DEDUÇÃO AUTOMATICAMENTE DO PERCENTUAL DE IMPOSTOS PARAMETRIZADOS")] - [Description("BAIXA DE COMISSÃO - HABILITAR IMPOSTOS RECEBIMENTO DE COMISSÃO")] - ImpostoComissao = 5, - [Category("HABILITAR APELIDO SEGURADORA")] - [Description("CADASTRO DE SEGURADORAS - HABILITAR APELIDO SEGURADORA")] - ApelidoSeguradora = 6, - [Category("PERMITIR DUPLICIDADE NO DOCUMENTO DE VENDEDORES")] - [Description("CADASTRO DE VENDEDORES - PERMITIR DUPLICIDADE NO DOCUMENTO DE VENDEDORES")] - DuplicidadeVendedores = 7, - [Category("DISPONIBILIZA OPÇÃO DE ORDENAR O RELATORIO DE PAGAMENTO DE VENDEDORES.")] - [Description("RELATÓRIO PAGAMENTO DE VENDEDORES - ORDEM RELATÓRIO")] - OrdernarPagamentos = 8, - [Category("PERMITE QUE O VENCIMENTO DA PARCELA SEJA MENOR QUE A VIGÊNCIA INICIAL DO DOCUMENTO")] - [Description("CADASTRO DE PARCELAS - PERMITIR VENCIMENTO MENOR QUE VIGÊNCIA INICIAL")] - VencimentoParcelaVigenciaInicial = 9, - [Category("NÃO MOSTRAR PAGAMENTO DE VENDEDOR OU RECEBIMENTO DE COMISSÃO COM VALOR LÍQUIDO ZERADO NO RELATÓRIO")] - [Description("RELATÓRIOS - ESCONDER COMISSÃO ZERADA NO RELATÓRIO")] - EsconderComissaoZerada = 10, - [Category("PERMITE QUE O VENCIMENTO DA PARCELA SEJA MAIOR QUE A VIGÊNCIA FINAL DO DOCUMENTO")] - [Description("CADASTRO DE PARCELAS - PERMITIR VENCIMENTO PARCELA MAIOR QUE VIGÊNCIA FINAL")] - VencimentoParcelaVigenciaFinal = 11, - [Category("PERMITE QUE A PARCELA ESPECIAL IMPORTADA NO EXTRATO SEJA BAIXADA NA PARCELA NORMAL DO SEGURO")] - [Description("BAIXA DE COMISSÃO AUTOMÁTICA - PERMITIR BAIXA DE PARCELA ESPECIAL EM PARCELA NORMAL")] - BaixaParcelaEspecialNormal = 12, - [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")] - [Description("CADASTRO DE APÓLICES - PERMITIR ENDOSSO SEM VERIFICAÇÃO DA APÓLICE")] - EndossoSemVerificacao = 13, - [Category("IMPRESSÃO DOS RELATÓRIOS TERÃO FONTES MAIORES QUE O PADRÃO")] - [Description("RELATÓRIOS - EXIBIR MAIOR FONTE NOS RELATÓRIO")] - FontesGrandesRelatorio = 14, - [Category("PERMITE REPASSAR MAIS QUE A COMISSÃO RECEBIDA NO SEGURO.\nNÃO RECOMENDAMOS HABILITAR ESSA OPÇÃO")] - [Description("BAIXA DE COMISSÃO - PERMITIR REPASSE MAIOR QUE A COMISSÃO RECEBIDA")] - RepasseSuperiorComissao = 15, - [Category("PERMITE QUE CADASTRE FATURAS COM COMISSÃO MAIOR QUE 100% DO PRÊMIO PARA FATURAS")] - [Description("CADASTRO DE FATURAS - PERMITIR PERCENTUAL DE COMISSÃO MAIOR QUE 100%")] - ComissaoSuperiorTotal = 16, - [Category("PERMITE CADASTRAR ITENS DE AUTOMÓVEL COM CHASSI INVÁLIDO")] - [Description("CADASTRO DE ITENS - PERMITIR CHASSIS INVÁLIDOS")] - ChassiInvalido = 18, - [Category("BLOQUEIA A RECUSA DE APÓLICE QUANDO TIVER NÚMERO DE APÓLICE E DATA DE EMISSÃO")] - [Description("CADASTRO DE APÓLICES - BLOQUEAR RECUSA DE APÓLICE")] - Recusa = 19, - [Category("PERMITIR O CADASTRO DE REPASSE POR RAMO ESPECÍFICO")] - [Description("REPASSES - PERMITIR CADASTRO DE REPASSE POR RAMO")] - RepasseRamo = 20, - [Category("ALTERAR FORMA DE PAGAMENTO 'NENHUM' AO SALVAR DOCUMENTO, QUANDO O CAMPO ESTIVER EM BRANCO")] - [Description("CADASTRO DE APÓLICES - FORMA DE PAGAMENTO AO SALVAR")] - FormaPagamento = 21, - [Category("HABILITA RELATORIO DE LOG DE UTILIZAÇÃO SISTEMA ANTIGO")] - [Description("LOG - HABILITAR LOG DE UTILIZAÇÃO SISTEMA ANTIGO")] - LoagAcaoAntigo = 22, - [Category("HABILITA A OPÇÃO DA CRIAÇÃO AUTOMÁTICA DE ESTORNO DE PAGAMENTO AOS VENDEDORES DURANTE A RECUSA DE DOCUMENTOS")] - [Description("CADASTRO DE APÓLICES - HABILITAR CRIAÇÃO DE ESTORNO AO RECUSAR DOCUMENTO")] - EstornoRecusa = 23, - [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")] - [Description("REPASSES - PERMITIR ESTORNO DE VALOR FIXO")] - EstornoValorFixo = 24, - [Category("HABILITA O CÁCULO PROPORCIONAL DO VALOR FIXO DE REPASSE EM RELAÇÃO AO PERCENTUAL DE COMISSÃO RECEBIDA")] - [Description("REPASSES - HABILITAR REPASSE FIXO PROPORCIONAL AO PERCENTUAL DE COMISSÃO")] - ValorFixoProporcional = 25, - [Category("PERMITE O CADASTRO DE CHASSI EM DUPLICIDADE")] - [Description("CADASTRO DE ITENS - PERMITIR DUPLICIDADE DE CHASSI")] - ChassiDuplicado = 26, - [Category("PERMITE O CADASTRO FABRICANTE EM BRANCO")] - [Description("CADASTRO DE ITENS - PERMITIR FABRICANTE EM BRANCO")] - FabricanteBranco = 27, - [Category("IGNORA A REGRA ONDE NÃO PERMITE DESFAZER BAIXA DE FATURAS QUANDO HÁ FATURAS ACIMA BAIXADAS.")] - [Description("BAIXA DE COMISSÃO AUTOMÁTICA - PERMITIR DESFAZER BAIXA DE FATURA TELA DE COMISSÃO AUTOMÁTICA")] - DesfazerFatura = 28, - [Category("IGNORA A REGRA ONDE OBRIGA A INCLUSÃO DE E-MAIL PARA O CLIENTE.")] - [Description("CADASTRO DE CLIENTES - PERMITIR INCLUIR CLIENTE SEM E-MAIL")] - ClienteSemEmail = 29, - [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")] - [Description("CARTÃO VISITA - UTILIZAR DADOS DE CONTATO DO USUÁRIO NA GERAÇÃO DO CARTÃO")] - DadosUsuarioVisita = 30, - [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.")] - [Description("RELATÓRIO DE RENOVAÇÕES - SOMAR PRÊMIOS")] - SomarPremioRelatorioRenovacoes = 31, - [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.")] - [Description("BAIXA DE COMISSÃO - CONSIDERAR ACERTO DE COMISSÃO COMO COMISSÃO DA APÓLICE")] - ConsiderarAcertoComissao = 32, - [Category("PERMITE A VISUALIZAÇÃO DA DATA DE CONTROLE APENAS QUANDO O USUÁRIO FOR ADMINISTRADOR.")] - [Description("CADASTRO DE APÓLICES - DATA DE CONTROLE APENAS ADM")] - DataControleAdm = 33, - [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.")] - [Description("RELATÓRIO PAGAMENTO DE VENDEDORES - BASE DE PAGAMENTO DATA DE CONTROLE")] - RepasseDataControle = 34, - [Category("AO IMPORTAR FIANÇA LOCATÍCIA O SISTEMA INCLUI O LOCATÁRIO COMO SEGURADO, NORMALMENTE O SEGURADO É A IMOBILIÁRIA.")] - [Description("IMPORTADOR PDF - IMPORTAR LOCATÁRIO COMO SEGURADO")] - LocatarioCliente = 35, - [Category("PERMITE CADASTRAR TAREFAS PARA USUARIOS DE OUTRAS FILIAIS.")] - [Description("CADASTRO DE TAREFAS - TAREFAS ENTRE FILIAIS")] - TarefasFiliais = 36, - [Category("SELECIONA O % DE REPASSE DO VENDEDOR PRINCIPAL DA APOLICE E EXIBE NO RELATÓRIO DE PRODUÇÃO.")] - [Description("RELATÓRIO DE PRODUÇÃO - SELECIONAR % REPASSE VENDEDOR PRINCIPAL")] - RepasseProducao = 37, - [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.")] - [Description("CRÍTICA DE DOCUMENTOS - APLICAR VINCULO DE VENDEDORES")] - VinculoVendedorCritica = 38, - [Category("PERMITE QUE O CAMPO DE OBSERVAÇÕES POSSA SER EDITADO SOMENTE NA TELA DE CADASTRO DE APÓLICES.")] - [Description("CADASTRO DE APÓLICES - PERMITIR EDIÇÃO DO CAMPO OBSERVAÇÃO")] - EditarObservacoes = 39, - [Category("NA PLANILHA COMPLETA, POR PADRÃO, É COLOCADO A PRIMEIRA FRANQUIA ENCONTRADA, ADICIONANDO ESSA CONFIGURAÇÃO O SISTEMA SOMA TODAS AS FRANQUIAS DO DOCUMENTO")] - [Description("PLANILHA COMPLETA - SOMAR FRANQUIAS NA PLANILHA")] - SomarFranquiaPlanilhaCompleta = 40, - [Category("ABRE UMA OPÇÃO PARA ESCOLHER UMA PASTA PARA SALVAR O EXCEL")] - [Description("EXCEL - SALVAR EXCEL")] - SalvarExcel = 41, - [Category("NO EXTRATO CASO UMA APOLICE POSSUA UM ENDOSSO CADASTRADO IRA REGISTRAR O NUMERO DO ENDOSSO NO CAMPO ADITAMENTO")] - [Description("EXTRATO - NUMERO DO ENDOSSO EM APÓLICES")] - NumEndossoExtrato = 42, - [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.")] - [Description("VINCULO DE VENDEDORES")] - VinculoVendedorEmBranco = 43, - [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.")] - [Description("RELATÓRIOS - NOME COMPLETO SEGURADORA")] - NomeCompletoSeguradora = 44, - [Category("PERMITE AGENDAR UMA TAREFA COM DATA RETROATIVA.")] - [Description("CADASTRO DE TAREFAS - PERMITIR DATA DE AGENDAMENTO RETROATIVA")] - AgendamentoTarefaRetroativo = 45, - [Category("CALCULA IOF PARA O CADASTRO DE FATURAS.")] - [Description("CADASTRO DE FATURAS - CALCULAR IOF")] - IofFaturas = 46, - [Category("DESABILITA A OPÇÃO DE ALTERAR O NOME DO ARQUIVO AO ANEXAR.")] - [Description("ANEXO DIGITAL - NÃO ALTERAR O NOME DO ARQUIVO")] - AlterarNomeArquivo = 47, - [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.")] - [Description("IMPORTADOR PDF - PERMITIR IMPORTAÇÃO DE EXTRATOS")] - FilialImportarExtrato = 48, - [Category("PERMITE QUE O CAMPO DE HISTÓRICO POSSA SER EDITADO.")] - [Description("CADASTRO DE SINISTROS - PERMITIR EDIÇÃO DO CAMPO HISTÓRICO")] - EditarHistorico = 49, - [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.")] - [Description("RELATÓRIO PAGAMENTO DE VENDEDORES - OPÇÃO DE DESCONSIDERAR VALORES NEGATIVOS")] - DesconsiderarNegativos = 50, - [Category("DESABILITA A BUSCA DE APÓLICES POR APROXIMAÇÃO.")] - [Description("COMISSÃO AUTOMÁTICA - DESATIVA A BUSCA POR APROXIMAÇÃO")] - DesabilitaBuscaAproximada = 51, - [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")] - [Description("CARTÃO VISITA - NÃO UTILIZA O ENDEREÇO DA CORRETORA NA GERAÇÃO DO CARTÃO")] - SemEnderecoCorretoraVisita = 52, - [Category("DESABILITA AS VERIFICAÇÕES DE CRÍTICA PDF DENTRO DA IMPORTAÇÃO. \nNÃO RECOMENDAMOS HABILITAR ESSA OPÇÃO.")] - [Description("IMPORTADOR PDF - DESABILITAR CRÍTICA PDF NA IMPORTAÇÃO")] - DesabilitaCriticaImport = 53, - [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.")] - [Description("BAIXA COMISSÃO/REPASSE - SOLICITA CONFIRMAÇÃO BAIXA POR ESGOTAMENTO")] - SolicitaConfirmacaoBaixaEsgotamento = 54, - [Category("HABILITA VISUALIZAÇÃO DA AUDITORIA DO SISTEMA (DETALHES DO LOG)")] - [Description("LOG - HABILITAR VISUALIZAÇÃO DA AUDITORIA (DETALHES)")] - LogDetalhesVisivel = 55, - [Category("HABILITA O CADASTRO DE VENDEDOR E REPASSE COM CO-CORRETAGEM, TAMBÉM HABILITA O USO DE CO-CORRETAGEM NO DOCUMENTO.")] - [Description("REPASSE - HABILITAR USO DE CO-CORRETAGEM.")] - CoCorretagem = 56 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/ConfiguracaoImpressao.cs b/Gestor.Model/Model.Common/ConfiguracaoImpressao.cs deleted file mode 100644 index 7e6dc6a..0000000 --- a/Gestor.Model/Model.Common/ConfiguracaoImpressao.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Gestor.Model.Domain.Relatorios; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Common -{ - public class ConfiguracaoImpressao - { - public List Campos - { - get; - set; - } - - public bool? OrientacaoImpressao - { - get; - set; - } - - public int TamanhoFonte - { - get; - set; - } - - public ConfiguracaoImpressao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Cor.cs b/Gestor.Model/Model.Common/Cor.cs deleted file mode 100644 index ebe80a7..0000000 --- a/Gestor.Model/Model.Common/Cor.cs +++ /dev/null @@ -1,63 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum Cor - { - [Description("SEM INFORMAÇÃO")] - [OldValue("0")] - OutrosNull, - [Description("PRETO")] - [OldValue("1")] - Preto, - [Description("BRANCO")] - [OldValue("2")] - Branco, - [Description("CINZA")] - [OldValue("3")] - Cinza, - [Description("PRATA")] - [OldValue("4")] - Prata, - [Description("VERMELHO")] - [OldValue("5")] - Vermelho, - [Description("AMARELO")] - [OldValue("6")] - Amarelo, - [Description("OURO")] - [OldValue("7")] - Ouro, - [Description("LARANJA")] - [OldValue("8")] - Laranja, - [Description("ROSA")] - [OldValue("9")] - Rosa, - [Description("VERDE")] - [OldValue("10")] - Verde, - [Description("AZUL")] - [OldValue("11")] - Azul, - [Description("VINHO")] - [OldValue("12")] - Vinho, - [Description("MARROM")] - [OldValue("13")] - Marrom, - [Description("BEGE")] - [OldValue("14")] - Bege, - [Description("DOURADO")] - [OldValue("15")] - Dourado, - [Description("OUTROS")] - [OldValue("16")] - Outros - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Correcao.cs b/Gestor.Model/Model.Common/Correcao.cs deleted file mode 100644 index 24ff966..0000000 --- a/Gestor.Model/Model.Common/Correcao.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum Correcao - { - [Description("VALOR DE MERCADO")] - [OldValue("0")] - Mercado, - [Description("VALOR DETERMINADO")] - [OldValue("1")] - Determinado - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/DistanciaTrabalho.cs b/Gestor.Model/Model.Common/DistanciaTrabalho.cs deleted file mode 100644 index b121242..0000000 --- a/Gestor.Model/Model.Common/DistanciaTrabalho.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum DistanciaTrabalho - { - [Description("NÃO SE APLICA")] - [OldValue("0")] - NaoSeAplica, - [Description("ATÉ 10 KM")] - [OldValue("1")] - Ate10Km, - [Description("ATÉ 20 KM")] - [OldValue("2")] - Ate20Km, - [Description("ATÉ 30 KM")] - [OldValue("3")] - Ate30Km, - [Description("ATÉ 40 KM")] - [OldValue("4")] - Ate40Km, - [Description("ACIMA DE 40 KM")] - [OldValue("5")] - AcimaDe40Km - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/EquipamentoIncendio.cs b/Gestor.Model/Model.Common/EquipamentoIncendio.cs deleted file mode 100644 index f285a3d..0000000 --- a/Gestor.Model/Model.Common/EquipamentoIncendio.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - public enum EquipamentoIncendio - { - [Description("Extintor")] - Extintor = 1, - [Description("Hidrante")] - Hidrante = 2, - [Description("Sprinkler")] - Sprinkler = 3, - [Description("Detector de Fumaça")] - DetectorFumaca = 4, - [Description("Brigada de Incêndio")] - BrigadaIncendio = 5 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/EquipamentoSeguranca.cs b/Gestor.Model/Model.Common/EquipamentoSeguranca.cs deleted file mode 100644 index 1083e33..0000000 --- a/Gestor.Model/Model.Common/EquipamentoSeguranca.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - public enum EquipamentoSeguranca - { - [Description("Alarme")] - Alarme = 1, - [Description("Cerca Elétrica")] - CercaEletrica = 2, - [Description("Circuito Fechado de CFTV")] - CircuitoFechado = 3, - [Description("Porteiro Eletrônico")] - PorteiroEletronico = 4, - [Description("Catraca Eletrônica")] - CatracaEletronica = 5 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/EstadoCivil.cs b/Gestor.Model/Model.Common/EstadoCivil.cs deleted file mode 100644 index 847f174..0000000 --- a/Gestor.Model/Model.Common/EstadoCivil.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum EstadoCivil - { - [Description("CASADO(A)")] - [OldValue("C")] - Casado, - [Description("DIVORCIADO(A)")] - [OldValue("D")] - Divorciado, - [Description("SEPARADO(A)")] - [OldValue("X")] - Separado, - [Description("SOLTEIRO(A)")] - [OldValue("S")] - Solteiro, - [Description("VIÚVO(A)")] - [OldValue("V")] - Viuvo, - [Description("AMASIADO(A)")] - [OldValue("A")] - Amasiado, - [Description("UNIÃO ESTÁVEL")] - [OldValue("U")] - UniaoEstavel, - [Description("OUTRO")] - [OldValue("O")] - Outros - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/FiltroArquivoDigital.cs b/Gestor.Model/Model.Common/FiltroArquivoDigital.cs deleted file mode 100644 index 4068f80..0000000 --- a/Gestor.Model/Model.Common/FiltroArquivoDigital.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Common -{ - public class FiltroArquivoDigital - { - public long Id - { - get; - set; - } - - public long IdApolice - { - get; - set; - } - - public object Parente - { - get; - set; - } - - public TipoArquivoDigital Tipo - { - get; - set; - } - - public FiltroArquivoDigital() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/FiltroCritica.cs b/Gestor.Model/Model.Common/FiltroCritica.cs deleted file mode 100644 index 43234fe..0000000 --- a/Gestor.Model/Model.Common/FiltroCritica.cs +++ /dev/null @@ -1,15 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum FiltroCritica - { - [Description("CLIENTE")] - Cliente, - [Description("USUÁRIO")] - Usuario - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/FiltroLancamento.cs b/Gestor.Model/Model.Common/FiltroLancamento.cs deleted file mode 100644 index 03a28fe..0000000 --- a/Gestor.Model/Model.Common/FiltroLancamento.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -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 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/FiltroLancamentoData.cs b/Gestor.Model/Model.Common/FiltroLancamentoData.cs deleted file mode 100644 index 741a2fc..0000000 --- a/Gestor.Model/Model.Common/FiltroLancamentoData.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum FiltroLancamentoData - { - [Description("VENCIMENTO")] - Vencimento, - [Description("DATA DE BAIXA")] - Baixa, - [Description("DATA PAGAMENTO")] - Pagamento - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/FiltroStatusDocumento.cs b/Gestor.Model/Model.Common/FiltroStatusDocumento.cs deleted file mode 100644 index 9a7424a..0000000 --- a/Gestor.Model/Model.Common/FiltroStatusDocumento.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -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 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/FormaPagamento.cs b/Gestor.Model/Model.Common/FormaPagamento.cs deleted file mode 100644 index 9c814e9..0000000 --- a/Gestor.Model/Model.Common/FormaPagamento.cs +++ /dev/null @@ -1,63 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum FormaPagamento - { - [Description("TODAS EM DÉBITO")] - [OldValue("0")] - Debito, - [Description("TODAS EM CARTÃO")] - [OldValue("1")] - Cartao, - [Description("TODAS EM BOLETO")] - [OldValue("2")] - Boleto, - [Description("1ª BOLETO E DEMAIS DÉBITO")] - [OldValue("3")] - PrimeiraBoleto, - [Description("NENHUM")] - [OldValue("4")] - Nenhum, - [Description("FATURA")] - [OldValue("5")] - Fatura, - [Description("1ª DÉBITO E DEMAIS BOLETO")] - [OldValue("6")] - PrimeiraDebito, - [Description("CRÉDITO EM CONTA")] - [OldValue("7")] - Credito, - [Description("CARNÊ")] - [OldValue("8")] - Carne, - [Description("1º BOLETO E DEMAIS NO CARNÊ")] - [OldValue("9")] - PrimeiraBoletoDemaisCarne, - [Description("FICHA + CARNÊ")] - [OldValue("10")] - FichaMaisCarne, - [Description("DÓLAR")] - [OldValue("11")] - Dolar, - [Description("À VISTA")] - [OldValue("12")] - AVista, - [Description("1ª BOLETO E DEMAIS C. CRÉDITO")] - [OldValue("13")] - PrimeiraBoletoDemaisCredito, - [Description("1ª CARTÃO E DEMAIS BOLETO")] - [OldValue("14")] - PrimeiraCartaoDemaisBoleto, - [Description("PIX")] - [OldValue("15")] - Pix, - [Description("TODAS EM CARTÃO SEGURADORA")] - [OldValue("16")] - CartaoSeguradora - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/FormaRepasse.cs b/Gestor.Model/Model.Common/FormaRepasse.cs deleted file mode 100644 index 3ae4a15..0000000 --- a/Gestor.Model/Model.Common/FormaRepasse.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum FormaRepasse - { - [Description("CONFORME O RECEBIMENTO")] - [OldValue("1")] - Recebimento = 1, - [Description("SEMPRE À VISTA")] - [OldValue("2")] - Vista = 2, - [Description("SEMPRE À PRAZO")] - [OldValue("3")] - Prazo = 3 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/GaragemResidencia.cs b/Gestor.Model/Model.Common/GaragemResidencia.cs deleted file mode 100644 index 7229c13..0000000 --- a/Gestor.Model/Model.Common/GaragemResidencia.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum GaragemResidencia - { - [Description("COM PORTÃO ELETRONICO")] - [OldValue("1")] - ComPortaoEletronico, - [Description("COM PORTÃO MANUAL")] - [OldValue("2")] - Fechada, - [Description("NÃO POSSUI GARAGEM")] - [OldValue("3")] - NaoPossuiGaragem, - [Description("NÃO UTILIZA PARA ESTE FIM")] - [OldValue("4")] - NaoUtilizaParaEsteFim, - [Description("NÃO INFORMADO")] - [OldValue("5")] - NaoInformado - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/GaragemTrabalhoEstudo.cs b/Gestor.Model/Model.Common/GaragemTrabalhoEstudo.cs deleted file mode 100644 index 2ee3a1c..0000000 --- a/Gestor.Model/Model.Common/GaragemTrabalhoEstudo.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum GaragemTrabalhoEstudo - { - [Description("NÃO UTILIZA PARA ESTE FIM")] - [OldValue("0")] - NaoUtiliza, - [Description("NÃO")] - [OldValue("1")] - Nao, - [Description("SIM")] - [OldValue("2")] - Sim, - [Description("NÃO INFORMADO")] - [OldValue("3")] - NaoInformado, - [Description("NÃO ESTUDA")] - [OldValue("4")] - NaoEstuda, - [Description("NÃO TRABALHA")] - [OldValue("5")] - NaoTrabalha - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Isencao.cs b/Gestor.Model/Model.Common/Isencao.cs deleted file mode 100644 index c7bb5e6..0000000 --- a/Gestor.Model/Model.Common/Isencao.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum Isencao - { - [Description("SEM ISENÇÃO")] - [OldValue("0")] - SemIsencao, - [Description("ICMS")] - [OldValue("1")] - Icms, - [Description("IPI")] - [OldValue("2")] - Ipi, - [Description("IPI E ICMS")] - [OldValue("3")] - IpiIcms - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Localizacao.cs b/Gestor.Model/Model.Common/Localizacao.cs deleted file mode 100644 index b62c89d..0000000 --- a/Gestor.Model/Model.Common/Localizacao.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum Localizacao - { - [Description("OUTROS")] - [OldValue("1")] - Outros, - [Description("AEROPORTO")] - [OldValue("2")] - Aeroporto, - [Description("CEASA/MERCADO")] - [OldValue("3")] - Ceasa, - [Description("CONDOMÍNIO COMERCIAL")] - [OldValue("4")] - CondominioComercial, - [Description("SHOPPING")] - [OldValue("5")] - Shopping, - [Description("SUPERMERCADO")] - [OldValue("6")] - Supermercado - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/ManutencaoItem.cs b/Gestor.Model/Model.Common/ManutencaoItem.cs deleted file mode 100644 index b8f59fb..0000000 --- a/Gestor.Model/Model.Common/ManutencaoItem.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Gestor.Model.Domain.Seguros; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Common -{ - public class ManutencaoItem - { - public Gestor.Model.Domain.Seguros.Documento Documento - { - get; - set; - } - - public TipoManutencao Tipo - { - get; - set; - } - - public ManutencaoItem() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Mes.cs b/Gestor.Model/Model.Common/Mes.cs deleted file mode 100644 index 06a2a45..0000000 --- a/Gestor.Model/Model.Common/Mes.cs +++ /dev/null @@ -1,48 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum Mes - { - [Description("JANEIRO")] - [OldValue("1")] - Janeiro = 1, - [Description("FEVEREIRO")] - [OldValue("2")] - Fevereiro = 2, - [Description("MARÇO")] - [OldValue("3")] - Marco = 3, - [Description("ABRIL")] - [OldValue("4")] - Abril = 4, - [Description("MAIO")] - [OldValue("5")] - Maio = 5, - [Description("JUNHO")] - [OldValue("6")] - Junho = 6, - [Description("JULHO")] - [OldValue("7")] - Julho = 7, - [Description("AGOSTO")] - [OldValue("8")] - Agosto = 8, - [Description("SETEMBRO")] - [OldValue("9")] - Setembro = 9, - [Description("OUTUBRO")] - [OldValue("10")] - Outubro = 10, - [Description("NOVEMBRO")] - [OldValue("11")] - Novembro = 11, - [Description("DEZEMBRO")] - [OldValue("12")] - Dezembro = 12 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Negocio.cs b/Gestor.Model/Model.Common/Negocio.cs deleted file mode 100644 index 3b77342..0000000 --- a/Gestor.Model/Model.Common/Negocio.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum Negocio - { - [Description("PRÓPRIA")] - [OldValue("1")] - Proprio = 1, - [Description("OUTRA CORRETORA")] - [OldValue("2")] - Outro = 2 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/NegocioCorretora.cs b/Gestor.Model/Model.Common/NegocioCorretora.cs deleted file mode 100644 index 95aa863..0000000 --- a/Gestor.Model/Model.Common/NegocioCorretora.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum NegocioCorretora - { - [Description("NOVO NEGÓCIO")] - [OldValue("0")] - Novo, - [Description("NEGÓCIO PRÓPRIO")] - [OldValue("1")] - Proprio - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Ocupacao.cs b/Gestor.Model/Model.Common/Ocupacao.cs deleted file mode 100644 index 7b4731b..0000000 --- a/Gestor.Model/Model.Common/Ocupacao.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum Ocupacao - { - [Description("NÃO POSSUI OCUPAÇÃO")] - [OldValue("0")] - NaoPossuiOcupacao, - [Description("ASSALARIADO(A)")] - [OldValue("1")] - Assalariado, - [Description("ESTUDANTE")] - [OldValue("2")] - Estudante, - [Description("ASSALARIADO(A) E ESTUDANTE")] - [OldValue("3")] - AsssalariadoEstudante, - [Description("APOSENTADO(A)")] - [OldValue("4")] - Aposentado, - [Description("OUTROS")] - [OldValue("5")] - Outros - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Operacao.cs b/Gestor.Model/Model.Common/Operacao.cs deleted file mode 100644 index 1970e86..0000000 --- a/Gestor.Model/Model.Common/Operacao.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - public enum Operacao - { - [Description(" AND ")] - And, - [Description(" OR ")] - Or - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Operador.cs b/Gestor.Model/Model.Common/Operador.cs deleted file mode 100644 index c9ef82b..0000000 --- a/Gestor.Model/Model.Common/Operador.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -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 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Parentesco.cs b/Gestor.Model/Model.Common/Parentesco.cs deleted file mode 100644 index a8c9047..0000000 --- a/Gestor.Model/Model.Common/Parentesco.cs +++ /dev/null @@ -1,99 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum Parentesco - { - [Description("PAI")] - [OldValue("0")] - Pai, - [Description("FILHO")] - [OldValue("1")] - Filho, - [Description("MÃE")] - [OldValue("2")] - Mae, - [Description("IRMÃOS")] - [OldValue("3")] - Irmaos, - [Description("AVÓS")] - [OldValue("4")] - Avos, - [Description("TIOS")] - [OldValue("5")] - Tios, - [Description("SOBRINHOS")] - [OldValue("6")] - Sobrinhos, - [Description("BISAVÓS")] - [OldValue("7")] - Bisavos, - [Description("PRIMOS")] - [OldValue("8")] - Primos, - [Description("SOGRA")] - [OldValue("9")] - Sogra, - [Description("SOGRO")] - [OldValue("10")] - Sogro, - [Description("GENRO")] - [OldValue("11")] - Genro, - [Description("NORA")] - [OldValue("12")] - Nora, - [Description("CUNHADO")] - [OldValue("13")] - Cunhado, - [Description("CUNHADA")] - [OldValue("14")] - Cunhada, - [Description("CONCUNHADO")] - [OldValue("15")] - Concunhado, - [Description("CONCUNHADA")] - [OldValue("16")] - Concunhada, - [Description("PADRASTO")] - [OldValue("17")] - Padrasto, - [Description("MADRASTA")] - [OldValue("18")] - Madrasta, - [Description("ENTEADO")] - [OldValue("19")] - Enteado, - [Description("ENTEADA")] - [OldValue("20")] - Enteada, - [Description("CÔNJUGE")] - [OldValue("21")] - Conjuge, - [Description("SÓCIO")] - [OldValue("22")] - Socio, - [Description("FUNCIONÁRIO")] - [OldValue("23")] - Funcionário, - [Description("EX-CÔNJUGE")] - [OldValue("24")] - Exconjuge, - [Description("AMIGO(A)")] - [OldValue("25")] - Amigo, - [Description("NETO")] - [OldValue("26")] - Neto, - [Description("PROPRIETÁRIO DA EMPRESA")] - [OldValue("27")] - Proprietario, - [Description("SÍNDICO")] - [OldValue("28")] - Sindico - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/ParentescoVinculo.cs b/Gestor.Model/Model.Common/ParentescoVinculo.cs deleted file mode 100644 index e8551b3..0000000 --- a/Gestor.Model/Model.Common/ParentescoVinculo.cs +++ /dev/null @@ -1,84 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum ParentescoVinculo - { - [Description("MÃE/PAI")] - [OldValue("0")] - MaePai, - [Description("FILHO(A)")] - [OldValue("1")] - Filho, - [Description("IRMÃO(A)")] - [OldValue("2")] - Irmao, - [Description("AVÔ(Ó)")] - [OldValue("3")] - Avo, - [Description("NETO(A)")] - [OldValue("4")] - Neto, - [Description("TIO(A)")] - [OldValue("5")] - Tio, - [Description("SOBRINHO(A)")] - [OldValue("6")] - Sobrinho, - [Description("BISAVÔ(Ó)")] - [OldValue("7")] - Bisavo, - [Description("BISNETO(A)")] - [OldValue("8")] - Bisneto, - [Description("PRIMO(A)")] - [OldValue("9")] - Primo, - [Description("SOGRO(A)")] - [OldValue("10")] - Sogro, - [Description("GENRO/NORA")] - [OldValue("11")] - Genro, - [Description("CUNHADO(A)")] - [OldValue("12")] - Cunhado, - [Description("MADRASTA/PADRASTO")] - [OldValue("13")] - MadrastaPadrasto, - [Description("ENTEADO(A)")] - [OldValue("14")] - Enteado, - [Description("CÔNJUGE")] - [OldValue("15")] - Conjuge, - [Description("EX-CÔNJUGE")] - [OldValue("16")] - Exconjuge, - [Description("SÓCIO(A)")] - [OldValue("17")] - Socio, - [Description("AMIGO(A)")] - [OldValue("18")] - Amigo, - [Description("PROPRIETÁRIO(A)")] - [OldValue("19")] - Proprietario, - [Description("PROPRIEDADE")] - [OldValue("20")] - Propriedade, - [Description("CONTRATANTE")] - [OldValue("21")] - Contratante, - [Description("FUNCIONÁRIO(A)")] - [OldValue("22")] - Funcionario, - [Description("OUTROS")] - [OldValue("23")] - Outros - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/PermissaoAggilizador.cs b/Gestor.Model/Model.Common/PermissaoAggilizador.cs deleted file mode 100644 index 9e06911..0000000 --- a/Gestor.Model/Model.Common/PermissaoAggilizador.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Gestor.Model.Domain.Generic; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Common -{ - public class PermissaoAggilizador : DomainBase - { - public string Descricao - { - get; - set; - } - - public PermissaoAggilizador() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Rastreador.cs b/Gestor.Model/Model.Common/Rastreador.cs deleted file mode 100644 index c88bbb8..0000000 --- a/Gestor.Model/Model.Common/Rastreador.cs +++ /dev/null @@ -1,66 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum Rastreador - { - [Description("NÃO POSSUI")] - [OldValue("0")] - NaoPossui, - [Description("AUTO TRAC")] - [OldValue("1")] - AutoTrac, - [Description("CAR SYSTEM")] - [OldValue("2")] - CarSystem, - [Description("CELTEC")] - [OldValue("3")] - Celtec, - [Description("CIELO")] - [OldValue("4")] - Cielo, - [Description("GRABER")] - [OldValue("5")] - Graber, - [Description("ITURAN")] - [OldValue("6")] - Ituran, - [Description("TRACKER")] - [OldValue("7")] - Tracker, - [Description("OMNILINK")] - [OldValue("8")] - Omnilink, - [Description("POSITRON")] - [OldValue("9")] - Positron, - [Description("SASCAR")] - [OldValue("10")] - Sascar, - [Description("DAF-V")] - [OldValue("11")] - Dafv, - [Description("CEABS")] - [OldValue("12")] - CEABS, - [Description("ONSTAR")] - [OldValue("13")] - OnStar, - [Description("LO JACK")] - [OldValue("14")] - LoJack, - [Description("ORIGINAL DE FÁBRICA")] - [OldValue("15")] - OriginalDeFabrica, - [Description("SEGSAT")] - [OldValue("16")] - Segsat, - [Description("SAT COMPANY")] - [OldValue("17")] - SatCompany - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Relacao.cs b/Gestor.Model/Model.Common/Relacao.cs deleted file mode 100644 index aefa5cb..0000000 --- a/Gestor.Model/Model.Common/Relacao.cs +++ /dev/null @@ -1,42 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum Relacao - { - [Description("PRÓPRIO")] - [OldValue("0")] - Proprio, - [Description("PROPRIETÁRIO(A)")] - [OldValue("1")] - Proprietario, - [Description("CÔNJUGE")] - [OldValue("2")] - Conjuge, - [Description("EMPREGADO(A)")] - [OldValue("3")] - Empregado, - [Description("IRMÃO(Ã)")] - [OldValue("4")] - Irmao, - [Description("FILHO(A)")] - [OldValue("5")] - Filho, - [Description("MÃE")] - [OldValue("6")] - Mae, - [Description("PAI")] - [OldValue("7")] - Pai, - [Description("OUTROS")] - [OldValue("8")] - Outros, - [Description("INDETERMINADO")] - [OldValue("9")] - Indeterminado - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Relatorio.cs b/Gestor.Model/Model.Common/Relatorio.cs deleted file mode 100644 index 700754d..0000000 --- a/Gestor.Model/Model.Common/Relatorio.cs +++ /dev/null @@ -1,132 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum Relatorio - { - [Description("RELATÓRIO DE CLIENTE")] - [OldValue("1000")] - [Tipo("CLIENTE")] - Cliente, - [Description("RELATÓRIO DE ANIVERSARIANTE")] - [OldValue("1001")] - [Tipo("CLIENTE")] - Aniversariante, - [Description("RELATÓRIO DE PRODUÇÃO")] - [OldValue("1002")] - [Tipo("DOCUMENTO")] - Producao, - [Description("RELATÓRIO DE APÓLICES PENDENTES")] - [OldValue("1003")] - [Tipo("DOCUMENTO")] - ApolicePendente, - [Description("RELATÓRIO DE RENOVAÇÕES")] - [OldValue("1004")] - [Tipo("DOCUMENTO")] - Renovacao, - [Description("RELATÓRIO DE RECEBIMENTO DE COMISSÃO")] - [OldValue("1005")] - [Tipo("PARCELA")] - Comissao, - [Description("RELATÓRIO DE COMISSÃO A RECEBER")] - [OldValue("1006")] - [Tipo("PARCELA")] - Pendente, - [Description("RELATÓRIO DE PAGAMENTO DE VENDEDOR")] - [OldValue("1007")] - [Tipo("PARCELA")] - Pagamento, - [Description("RELATÓRIO DE AUDITORIA DE COMISSÃO")] - [OldValue("1008")] - [Tipo("FECHAMENTO")] - Auditoria, - [Description("RELATÓRIO DE SINISTRO PENDENTE")] - [OldValue("1009")] - [Tipo("SINISTRO")] - SinistroPendente, - [Description("RELATÓRIO DE SINISTRO")] - [OldValue("1010")] - [Tipo("SINISTRO")] - Sinistro, - [Description("RELATÓRIO DE FECHAMENTO")] - [OldValue("1011")] - [Tipo("FECHAMENTO")] - Fechamento, - [Description("RELATÓRIO DE FATURAS PENDENTES")] - [OldValue("1012")] - [Tipo("PARCELA")] - FaturaPendente, - [Description("RELATÓRIO DE EXTRATOS BAIXADOS NO PERIODO")] - [OldValue("1013")] - [Tipo("EXTRATO")] - ExtratosBaixados, - [Description("RELATÓRIO DE METAS DE SEGURADORAS")] - [OldValue("1014")] - [Tipo("DOCUMENTO")] - MetaSeguradora, - [Description("RELATÓRIO DE METAS DE VENDEDORES")] - [OldValue("1015")] - [Tipo("DOCUMENTO")] - MetaVendedor, - [Description("RELATÓRIO DE VENCIMENTO DE PARCELAS")] - [OldValue("1016")] - [Tipo("PARCELA")] - ParcelasVencendo, - [Description("RELATÓRIO DE LICENCIAMENTO")] - [OldValue("1017")] - [Tipo("CLIENTE")] - Licenciamento, - [Description("RELATÓRIO DE TAREFAS")] - [OldValue("1018")] - [Tipo("TAREFA")] - Tarefa, - [Description("RELATÓRIO DE NOTAS FISCAIS")] - [OldValue("1019")] - [Tipo("NOTA FISCAL")] - NotaFiscal, - [Description("RELATÓRIO DE PREVISÃO DE PAGAMENTO DE COMISSÃO")] - [OldValue("1020")] - [Tipo("PARCELA")] - PrevisaoPagamentoComissao, - [Description("RELATÓRIO DE ASSINATURAS ENVIADAS")] - [OldValue("1021")] - [Tipo("DOCUMENTO")] - AssinaturasEnviadas, - [Description("PRODUÇÃO")] - [OldValue("1022")] - [Tipo("DOCUMENTO")] - Apolice, - [Description("RELATÓRIO DE LOGS DE ENVIO DE E-MAIL")] - [OldValue("1023")] - [Tipo("LOGS")] - LogsEnvio, - [Description("RELATÓRIO DE LOGS UTILIZAÇÃO")] - [OldValue("1024")] - [Tipo("LOGS")] - LogsUtilizacao, - [Description("RELATÓRIO DE LOGS UTILIZAÇÃO SISTEMA ANTIGO")] - [OldValue("1025")] - [Tipo("LOGS")] - LogsUtilizacaoAntigo, - [Description("RELATÓRIO DE IMPORTAÇÃO")] - [OldValue("1026")] - [Tipo("DOCUMENTO")] - Importacao, - [Description("RELATÓRIO DE PLACAS")] - [OldValue("1027")] - [Tipo("DOCUMENTO")] - Placa, - [Description("RELATÓRIO DE ENDOSSO")] - [OldValue("1028")] - [Tipo("DOCUMENTO")] - Endosso, - [Description("RELATÓRIO DE CLASSIFICAÇÃO")] - [OldValue("1029")] - [Tipo("CLIENTE")] - Classificacao - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Sexo.cs b/Gestor.Model/Model.Common/Sexo.cs deleted file mode 100644 index db9da64..0000000 --- a/Gestor.Model/Model.Common/Sexo.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum Sexo - { - [Description("MASCULINO")] - [OldValue2("1")] - [OldValue("0")] - Masculino, - [Description("FEMININO")] - [OldValue2("2")] - [OldValue("1")] - Feminino - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Sinal.cs b/Gestor.Model/Model.Common/Sinal.cs deleted file mode 100644 index 7ddf8a5..0000000 --- a/Gestor.Model/Model.Common/Sinal.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum Sinal - { - [Description("CRÉDITO")] - [OldValue("0")] - Credito, - [Description("DÉBITO")] - [OldValue("1")] - Debito - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/SinteticoFinanceiroTipo.cs b/Gestor.Model/Model.Common/SinteticoFinanceiroTipo.cs deleted file mode 100644 index 0eebaf5..0000000 --- a/Gestor.Model/Model.Common/SinteticoFinanceiroTipo.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -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 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/SqlQueryCondition.cs b/Gestor.Model/Model.Common/SqlQueryCondition.cs deleted file mode 100644 index fcf3138..0000000 --- a/Gestor.Model/Model.Common/SqlQueryCondition.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Data.SqlClient; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Common -{ - public class SqlQueryCondition - { - public string Condicao - { - get; - set; - } - - public List Parametros - { - get; - set; - } - - public SqlQueryCondition() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/StatusAssinatura.cs b/Gestor.Model/Model.Common/StatusAssinatura.cs deleted file mode 100644 index f4d6fd1..0000000 --- a/Gestor.Model/Model.Common/StatusAssinatura.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -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 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/StatusCalculo.cs b/Gestor.Model/Model.Common/StatusCalculo.cs deleted file mode 100644 index 2c38412..0000000 --- a/Gestor.Model/Model.Common/StatusCalculo.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -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 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/StatusDocumentoAssinado.cs b/Gestor.Model/Model.Common/StatusDocumentoAssinado.cs deleted file mode 100644 index 109a1b0..0000000 --- a/Gestor.Model/Model.Common/StatusDocumentoAssinado.cs +++ /dev/null @@ -1,49 +0,0 @@ -using Gestor.Model.Domain.Seguros; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Common -{ - public class StatusDocumentoAssinado - { - public string Documento - { - get; - set; - } - - public DateTime? Envio - { - get; - set; - } - - public long Id - { - get; - set; - } - - public bool Selecionado - { - get; - set; - } - - public StatusAssinatura Status - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Usuario Usuario - { - get; - set; - } - - public StatusDocumentoAssinado() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/StatusExtrato.cs b/Gestor.Model/Model.Common/StatusExtrato.cs deleted file mode 100644 index c70550b..0000000 --- a/Gestor.Model/Model.Common/StatusExtrato.cs +++ /dev/null @@ -1,23 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum StatusExtrato - { - [Description("PENDENTE")] - [OldValue("1")] - Pendente = 1, - [Description("INCOMPLETO")] - [OldValue("2")] - IncompletoFinalizado = 2, - [Description("BAIXADO")] - [OldValue("3")] - Baixado = 3, - [Description("TODOS")] - Todos = 4 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/StatusItem.cs b/Gestor.Model/Model.Common/StatusItem.cs deleted file mode 100644 index c6fa74a..0000000 --- a/Gestor.Model/Model.Common/StatusItem.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; - -namespace Gestor.Model.Common -{ - public enum StatusItem - { - Ativos, - Inativos, - Documento, - Controle - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/StatusLancamento.cs b/Gestor.Model/Model.Common/StatusLancamento.cs deleted file mode 100644 index a14c0d1..0000000 --- a/Gestor.Model/Model.Common/StatusLancamento.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum StatusLancamento - { - [Description("PENDENTES")] - Pendentes, - [Description("BAIXADOS")] - Baixados, - [Description("TODOS")] - Todos - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/StatusPagamento.cs b/Gestor.Model/Model.Common/StatusPagamento.cs deleted file mode 100644 index 9a1c77d..0000000 --- a/Gestor.Model/Model.Common/StatusPagamento.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum StatusPagamento - { - [Description("SEM PENDÊNCIA")] - All, - [Description("PAGAMENTO PENDENTE")] - Pending, - [Description("PENDÊNCIA NOTIFICADA")] - Notified - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/StatusParcela.cs b/Gestor.Model/Model.Common/StatusParcela.cs deleted file mode 100644 index e2895cc..0000000 --- a/Gestor.Model/Model.Common/StatusParcela.cs +++ /dev/null @@ -1,75 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum StatusParcela - { - [Description("BAIXADA NORMALMENTE")] - [OldValue("1")] - Baixada = 1, - [Description("DOCUMENTO NÃO ENCONTRADO")] - [OldValue("2")] - DocumentoNaoEncontrado = 2, - [Description("PARCELA NÃO ENCONTRADA")] - [OldValue("3")] - ParcelaNaoEncontrada = 3, - [Description("DIFERENÇA DE COMISSÃO")] - [OldValue("4")] - DiferencaPercentual = 4, - [Description("BAIXADA ANTERIORMENTE")] - [OldValue("5")] - BaixadaAnteriormente = 5, - [Description("DESCONSIDERADA PELO USUÁRIO")] - [OldValue("6")] - DesconsideradaUsuario = 6, - [Description("ANTERIOR NÃO BAIXADA")] - [OldValue("7")] - ParcelaAnteriorNaoBaixada = 7, - [Description("DESCONSIDERADA PELO SISTEMA")] - [OldValue("8")] - DesconsideradaSistema = 8, - [Description("A SER BAIXADA")] - [OldValue("9")] - ASerBaixada = 9, - [Description("BAIXADA COM DIFERENÇA DE COMISSÃO")] - [OldValue("10")] - BaixadaDiferencaPercentual = 10, - [Description("APÓLICE DUPLICADA")] - [OldValue("11")] - ApoliceDuplicada = 11, - [Description("BAIXADA MANUALMENTE")] - [OldValue("12")] - BaixadaManualmente = 12, - [Description("BAIXADA PELA CRÍTICA")] - [OldValue("13")] - BaixadaCritica = 13, - [Description("A SER BAIXADA, CRÍTICA MANUAL")] - [OldValue("14")] - Criticada = 14, - [Description("FATURA NÃO ENCONTRADA")] - [OldValue("15")] - FaturaNaoEncontrada = 15, - [Description("A SER BAIXADO, ENCONTRADO POR APROXIMAÇÃO")] - [OldValue("16")] - ASerBaixadoPorAproximacao = 16, - [Description("PARCELA ESPECIAL A SER CRIADA")] - [OldValue("17")] - ParcelaEspecialASerCriada = 17, - [Description("A SER BAIXADO, ENCONTRADO POR APROXIMAÇÃO COM DIFERENÇA DE COMISSÃO")] - [OldValue("18")] - ASerBaixadoPorAproximacaoDiferencaPercentual = 18, - [Description("DOCUMENTO ENCONTRADO SEM % DE COMISSÃO")] - [OldValue("18")] - SemComissao = 19, - [Description("FATURA ENCONTRADA SEM % DE COMISSÃO")] - [OldValue("19")] - FaturaSemComissao = 20, - [Description("PARCELA ESPECIAL BAIXADA ANTERIORMENTE")] - [OldValue("20")] - ParcelaEspecialBaixadaAnteriormente = 21 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/StatusProspeccao.cs b/Gestor.Model/Model.Common/StatusProspeccao.cs deleted file mode 100644 index 8720d3d..0000000 --- a/Gestor.Model/Model.Common/StatusProspeccao.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum StatusProspeccao - { - [Description("AGENDADO")] - [OldValue("1")] - Agendado = 1, - [Description("GANHO")] - [OldValue("2")] - Ganho = 2, - [Description("PERDIDO")] - [OldValue("3")] - Perdido = 3, - [Description("NÃO TRABALHADO")] - [OldValue("4")] - NaoTrabalhado = 4, - [Description("EM ANDAMENTO")] - [OldValue("5")] - EmAndamento = 5 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/StatusSinistro.cs b/Gestor.Model/Model.Common/StatusSinistro.cs deleted file mode 100644 index 96df478..0000000 --- a/Gestor.Model/Model.Common/StatusSinistro.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum StatusSinistro - { - [Description("EM ANDAMENTO")] - [OldValue("1")] - EmAndamento = 1, - [Description("LIQUIDADO")] - [OldValue("2")] - Liquidado = 2, - [Description("LIQUIDADO SEM INDENIZAÇÃO")] - [OldValue("3")] - SemIndenizacao = 3, - [Description("NEGADO")] - [OldValue("4")] - Negado = 4, - [Description("ATENDIDO COMO TERCEIRO")] - [OldValue("5")] - Terceiro = 5 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/StatusTarefa.cs b/Gestor.Model/Model.Common/StatusTarefa.cs deleted file mode 100644 index ffabaf1..0000000 --- a/Gestor.Model/Model.Common/StatusTarefa.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum StatusTarefa - { - [Description("PENDENTE")] - Pendente, - [Description("REAGENDADO")] - Reagendado, - [Description("REALIZADO")] - Realizado - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/SubTipo.cs b/Gestor.Model/Model.Common/SubTipo.cs deleted file mode 100644 index 3453227..0000000 --- a/Gestor.Model/Model.Common/SubTipo.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum SubTipo - { - [Description("PARCELA NORMAL")] - [OldValue("1")] - ParcelaNormal = 1, - [Description("RESTITUIÇÃO")] - [OldValue("2")] - Restituicao = 2, - [Description("CRÉDITO")] - [OldValue("3")] - Credito = 3, - [Description("CUSTO DE APÓLICE")] - [OldValue("4")] - Custo = 4, - [Description("CARTÃO DE CRÉDITO")] - [OldValue("5")] - Cartao = 5, - [Description("ACERTO DE COMISSÃO")] - [OldValue("6")] - Acerto = 6 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TabelaReferencia.cs b/Gestor.Model/Model.Common/TabelaReferencia.cs deleted file mode 100644 index 4b27359..0000000 --- a/Gestor.Model/Model.Common/TabelaReferencia.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TabelaReferencia - { - [Description("MOLICAR")] - [OldValue("0")] - Molicar, - [Description("FIPE")] - [OldValue("1")] - Fipe - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TempoHabilitacao.cs b/Gestor.Model/Model.Common/TempoHabilitacao.cs deleted file mode 100644 index 501b8f0..0000000 --- a/Gestor.Model/Model.Common/TempoHabilitacao.cs +++ /dev/null @@ -1,45 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TempoHabilitacao - { - [Description("UM ANO")] - [OldValue("1")] - UmAno, - [Description("DOIS ANOS")] - [OldValue("2")] - DoisAnos, - [Description("TRÊS ANOS")] - [OldValue("3")] - TresAnos, - [Description("QUATRO ANOS")] - [OldValue("4")] - QutroAnos, - [Description("CINCO ANOS")] - [OldValue("5")] - CincoAnos, - [Description("SEIS ANOS")] - [OldValue("6")] - SeisAnos, - [Description("SETE ANOS")] - [OldValue("7")] - SeteAnos, - [Description("OITO ANOS")] - [OldValue("8")] - OitoAnos, - [Description("NOVE ANOS")] - [OldValue("9")] - NoveAnos, - [Description("DEZ ANOS")] - [OldValue("10")] - DezAnos, - [Description("MAIS DE DEZ ANOS")] - [OldValue("11")] - MaisDeDezAnos - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoAcao.cs b/Gestor.Model/Model.Common/TipoAcao.cs deleted file mode 100644 index ccb6dc9..0000000 --- a/Gestor.Model/Model.Common/TipoAcao.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoAcao - { - [Description("INSERÇÃO")] - Insert, - [Description("ATUALIZAÇÃO")] - Update, - [Description("EXCLUSÃO")] - Delete - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoAeronautico.cs b/Gestor.Model/Model.Common/TipoAeronautico.cs deleted file mode 100644 index b59a788..0000000 --- a/Gestor.Model/Model.Common/TipoAeronautico.cs +++ /dev/null @@ -1,120 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoAeronautico - { - [Category("Aero")] - [Description("AERONAVE")] - [OldValue("1")] - Aeronave = 1, - [Category("Aero")] - [Description("BALÃO")] - [OldValue("2")] - Balao = 2, - [Category("Aero")] - [Description("PLANADOR")] - [OldValue("3")] - Planador = 3, - [Category("Aero")] - [Description("ULTRALEVE")] - [OldValue("4")] - Ultraleve = 4, - [Category("Aero")] - [Description("HELICÓPTERO")] - [OldValue("5")] - Helicoptero = 5, - [Category("Aero")] - [Description("HIDROAVIÃO")] - [OldValue("6")] - Hidroaviao = 6, - [Category("Aero")] - [Description("ECRANOPLANO")] - [OldValue("7")] - Ecranoplano = 7, - [Category("Aero")] - [Description("AVIÃO ANFÍBIO")] - [OldValue("8")] - AviãoAnfibio = 8, - [Category("Aero")] - [Description("GIROCÓPTERO")] - [OldValue("9")] - Girocoptero = 9, - [Category("Nautico")] - [Description("LANCHA")] - [OldValue("10")] - Lancha = 10, - [Category("Nautico")] - [Description("VELEIRO")] - [OldValue("11")] - Veleiro = 11, - [Category("Nautico")] - [Description("ESCUNA")] - [OldValue("12")] - Escuna = 12, - [Category("Nautico")] - [Description("TRANEIRA/PESQUEIRO")] - [OldValue("13")] - TraneiraPesqueiro = 13, - [Category("Nautico")] - [Description("TRAWLER")] - [OldValue("14")] - Trawler = 14, - [Category("Nautico")] - [Description("BARCO ALUMÍNEO")] - [OldValue("15")] - BarcoAlumineo = 15, - [Category("Nautico")] - [Description("BOTE INFLÁVEL")] - [OldValue("16")] - BoteInflavel = 16, - [Category("Nautico")] - [Description("JET-SKI")] - [OldValue("17")] - JetSki = 17, - [Category("Nautico")] - [Description("JET BOAT")] - [OldValue("18")] - JetBoat = 18, - [Category("Nautico")] - [Description("CAIAQUE")] - [OldValue("19")] - Caiaque = 19, - [Category("Nautico")] - [Description("CANOA")] - [OldValue("20")] - Canoa = 20, - [Category("Nautico")] - [Description("ALVARENGA")] - [OldValue("21")] - Alvarenga = 21, - [Category("Nautico")] - [Description("BARCAÇA")] - [OldValue("22")] - Barcaca = 22, - [Category("Nautico")] - [Description("CARGUEIRO")] - [OldValue("23")] - Cargueiro = 23, - [Category("Nautico")] - [Description("DRAGA")] - [OldValue("24")] - Draga = 24, - [Category("Nautico")] - [Description("IATE")] - [OldValue("25")] - Iate = 25, - [Category("Nautico")] - [Description("REBOCADOR")] - [OldValue("26")] - Rebocador = 26, - [Category("Aero")] - [Description("DRONE")] - [OldValue("27")] - Drone = 27 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoArquivoDigital.cs b/Gestor.Model/Model.Common/TipoArquivoDigital.cs deleted file mode 100644 index 1a6f269..0000000 --- a/Gestor.Model/Model.Common/TipoArquivoDigital.cs +++ /dev/null @@ -1,47 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -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 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoArquivoVinculo.cs b/Gestor.Model/Model.Common/TipoArquivoVinculo.cs deleted file mode 100644 index c66bdc0..0000000 --- a/Gestor.Model/Model.Common/TipoArquivoVinculo.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; - -namespace Gestor.Model.Common -{ - public enum TipoArquivoVinculo - { - Proposta, - Apolice - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoCobertura.cs b/Gestor.Model/Model.Common/TipoCobertura.cs deleted file mode 100644 index 663288e..0000000 --- a/Gestor.Model/Model.Common/TipoCobertura.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoCobertura - { - [Description("COMPREENSIVA")] - [OldValue("1")] - Compreensiva = 1, - [Description("INCÊNDIO E ROUBO/FURTO")] - [OldValue("2")] - IncendioRouboFurto = 2, - [Description("DANOS A TERCEIROS")] - [OldValue("3")] - DanosTerceiros = 3, - [Description("PASSAGEIROS")] - [OldValue("4")] - Passageiros = 4, - [Description("ROUBO/FURTO")] - [OldValue("5")] - RouboFurto = 5 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoConstrucao.cs b/Gestor.Model/Model.Common/TipoConstrucao.cs deleted file mode 100644 index 8b4c387..0000000 --- a/Gestor.Model/Model.Common/TipoConstrucao.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoConstrucao - { - [Description("SUPERIOR")] - [OldValue("1")] - SUPERIOR, - [Description("SÓLIDA")] - [OldValue("2")] - SOLIDA, - [Description("MISTA")] - [OldValue("3")] - MISTA, - [Description("INFERIOR")] - [OldValue("4")] - INFERIOR - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoConta.cs b/Gestor.Model/Model.Common/TipoConta.cs deleted file mode 100644 index 821da42..0000000 --- a/Gestor.Model/Model.Common/TipoConta.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoConta - { - [Description("NENHUM")] - Nenhum, - [Description("POUPANÇA")] - Poupanca, - [Description("CORRENTE")] - Corrente - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoContato.cs b/Gestor.Model/Model.Common/TipoContato.cs deleted file mode 100644 index d2599a4..0000000 --- a/Gestor.Model/Model.Common/TipoContato.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System; - -namespace Gestor.Model.Common -{ - public enum TipoContato - { - Telefone, - Email - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoContatoSeguradora.cs b/Gestor.Model/Model.Common/TipoContatoSeguradora.cs deleted file mode 100644 index 760066a..0000000 --- a/Gestor.Model/Model.Common/TipoContatoSeguradora.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoContatoSeguradora - { - [Description("CONTATO")] - Contato, - [Description("ASSISTÊNCIA 24HS")] - Assistencia, - [Description("EMAIL")] - Email - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoDocumento.cs b/Gestor.Model/Model.Common/TipoDocumento.cs deleted file mode 100644 index 5de497b..0000000 --- a/Gestor.Model/Model.Common/TipoDocumento.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoDocumento - { - [Description("CPF/CNPJ")] - [OldValue("0")] - Cpf, - [Description("RNE")] - [OldValue("1")] - Rne, - [Description("CEI")] - [OldValue("2")] - Cei, - [Description("CAEPF")] - [OldValue("3")] - Caepf - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoEmail.cs b/Gestor.Model/Model.Common/TipoEmail.cs deleted file mode 100644 index 3dfb317..0000000 --- a/Gestor.Model/Model.Common/TipoEmail.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoEmail - { - [Description("OUTROS")] - Outros, - [Description("GOOGLE")] - Google, - [Description("MS OFFICE 365")] - Office365 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoEndereco.cs b/Gestor.Model/Model.Common/TipoEndereco.cs deleted file mode 100644 index 452cdde..0000000 --- a/Gestor.Model/Model.Common/TipoEndereco.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoEndereco - { - [Description("OUTROS")] - [OldValue("1")] - Outros = 1, - [Description("CORRESPONDÊNCIA")] - [OldValue("2")] - Correspondencia = 2, - [Description("RESIDENCIAL")] - [OldValue("3")] - Residencial = 3, - [Description("COMERCIAL")] - [OldValue("4")] - Comercial = 4, - [Description("RECADO")] - [OldValue("5")] - Recado = 5, - [Description("COBRANÇA")] - [OldValue("6")] - Cobranca = 6, - [Description("FINANCEIRO")] - [OldValue("7")] - Financeiro = 7 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoEndosso.cs b/Gestor.Model/Model.Common/TipoEndosso.cs deleted file mode 100644 index 6f83f7f..0000000 --- a/Gestor.Model/Model.Common/TipoEndosso.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoEndosso - { - [Description("COM MOVIMENTO DE PRÊMIO")] - [OldValue("0")] - ComMovimento, - [Description("SEM MOVIMENTO DE PRÊMIO")] - [OldValue("1")] - SemMovimento, - [Description("CANCELAMENTO DA APÓLICE")] - [OldValue("2")] - Cancelamento, - [Description("REABILITAÇÃO DA APÓLICE")] - [OldValue("3")] - Reabilitacao, - [Description("PRORROGAÇÃO DE VIGÊNCIA")] - [OldValue("4")] - Prorrogacao - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoExtrato.cs b/Gestor.Model/Model.Common/TipoExtrato.cs deleted file mode 100644 index 635277c..0000000 --- a/Gestor.Model/Model.Common/TipoExtrato.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -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 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoFiltroBusca.cs b/Gestor.Model/Model.Common/TipoFiltroBusca.cs deleted file mode 100644 index 1fdb02d..0000000 --- a/Gestor.Model/Model.Common/TipoFiltroBusca.cs +++ /dev/null @@ -1,15 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoFiltroBusca - { - [Description("APROXIMADO")] - Aproximado, - [Description("IGUAL")] - Igual - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoFiltroCliente.cs b/Gestor.Model/Model.Common/TipoFiltroCliente.cs deleted file mode 100644 index a0eb153..0000000 --- a/Gestor.Model/Model.Common/TipoFiltroCliente.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoFiltroCliente - { - [Description("NOME OU SOBRENOME")] - NomeSobrenome, - [Description("NOME APENAS")] - Nome, - [Description("NOME E DOCS")] - NomeDocumentos - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoFiltroFinanceiro.cs b/Gestor.Model/Model.Common/TipoFiltroFinanceiro.cs deleted file mode 100644 index 8ca6af3..0000000 --- a/Gestor.Model/Model.Common/TipoFiltroFinanceiro.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -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 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoFiltroRelatorio.cs b/Gestor.Model/Model.Common/TipoFiltroRelatorio.cs deleted file mode 100644 index 3e40c0a..0000000 --- a/Gestor.Model/Model.Common/TipoFiltroRelatorio.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -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 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoIncidencia.cs b/Gestor.Model/Model.Common/TipoIncidencia.cs deleted file mode 100644 index 2722b65..0000000 --- a/Gestor.Model/Model.Common/TipoIncidencia.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoIncidencia - { - [Description("SOBRE A COMISSÃO")] - [OldValue("1")] - SobreComissao = 1, - [Description("SOBRE O PRÊMIO LÍQUIDO")] - [OldValue("2")] - SobrePremioLiquido = 2 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoIncidenciaDesconto.cs b/Gestor.Model/Model.Common/TipoIncidenciaDesconto.cs deleted file mode 100644 index d2c1d18..0000000 --- a/Gestor.Model/Model.Common/TipoIncidenciaDesconto.cs +++ /dev/null @@ -1,15 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoIncidenciaDesconto - { - [Description("AMBOS")] - Ambos, - [Description("SOMENTE POSITIVOS")] - Positivos - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoManutencao.cs b/Gestor.Model/Model.Common/TipoManutencao.cs deleted file mode 100644 index 61fb240..0000000 --- a/Gestor.Model/Model.Common/TipoManutencao.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoManutencao - { - [Description("RENOVAÇÃO")] - Renovacao, - [Description("ENDOSSO")] - Endosso, - [Description("REATIVAR")] - Reativar, - [Description("CANCELAR")] - Cancelar - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoMoradia.cs b/Gestor.Model/Model.Common/TipoMoradia.cs deleted file mode 100644 index 2375491..0000000 --- a/Gestor.Model/Model.Common/TipoMoradia.cs +++ /dev/null @@ -1,15 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoMoradia - { - [Description("APARTAMENTO")] - Apartamento = 1, - [Description("CASA")] - Casa = 2 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoPagamento.cs b/Gestor.Model/Model.Common/TipoPagamento.cs deleted file mode 100644 index 110188c..0000000 --- a/Gestor.Model/Model.Common/TipoPagamento.cs +++ /dev/null @@ -1,63 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoPagamento - { - [Description("NENHUM")] - [OldValue("0")] - Nenhum = 0, - [Description("CAIXA")] - [OldValue("2")] - Caixa = 2, - [Description("CARTÃO DE CRÉDITO")] - [OldValue("3")] - Cartao = 3, - [Description("CHEQUE")] - [OldValue("4")] - Cheque = 4, - [Description("CRÉDITO EM CONTA")] - [OldValue("5")] - Credito = 5, - [Description("DÉBITO AUTOMÁTICO")] - [OldValue("6")] - DebitoAuto = 6, - [Description("DÉBITO EM CONTA")] - [OldValue("7")] - DebitoConta = 7, - [Description("DEPÓSITO")] - [OldValue("8")] - Deposito = 8, - [Description("DINHEIRO")] - [OldValue("9")] - Dinheiro = 9, - [Description("SAQUE")] - [OldValue("10")] - Saque = 10, - [Description("TRANSFERÊNCIA")] - [OldValue("11")] - Transferencia = 11, - [Description("OUTROS")] - [OldValue("12")] - Outros = 12, - [Description("REEMBOLSO")] - [OldValue("13")] - Reembolso = 13, - [Description("CARNÊ")] - [OldValue("14")] - Carne = 14, - [Description("BOLETO BANCÁRIO")] - [OldValue("15")] - Boleto = 15, - [Description("PIX")] - [OldValue("18")] - Pix = 18, - [Description("VOUCHER")] - [OldValue("19")] - Voucher = 19 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoPavimentacao.cs b/Gestor.Model/Model.Common/TipoPavimentacao.cs deleted file mode 100644 index 1b98f92..0000000 --- a/Gestor.Model/Model.Common/TipoPavimentacao.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoPavimentacao - { - [Description("TÉRREO")] - [OldValue("1")] - Terreo, - [Description("PRIMEIRO")] - [OldValue("2")] - Primeiro, - [Description("SEGUNDO EM DIANTE")] - [OldValue("3")] - SegundoEmDiante - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoPerda.cs b/Gestor.Model/Model.Common/TipoPerda.cs deleted file mode 100644 index 722be67..0000000 --- a/Gestor.Model/Model.Common/TipoPerda.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoPerda - { - [Description("CONSTATAÇÃO")] - Constatacao = 1, - [Description("PARCIAL")] - Parcial = 2, - [Description("TOTAL")] - Total = 3, - [Description("ROUBO/FURTO")] - RouboFurto = 4, - [Description("MORTE")] - Morte = 5, - [Description("INVALIDEZ")] - Invalidez = 6, - [Description("PERDA DE RENDA")] - PerdaRenda = 7, - [Description("OUTROS")] - Outros = 8 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoPesquisa.cs b/Gestor.Model/Model.Common/TipoPesquisa.cs deleted file mode 100644 index fdf12e6..0000000 --- a/Gestor.Model/Model.Common/TipoPesquisa.cs +++ /dev/null @@ -1,49 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -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 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoProtocoloEtiqueta.cs b/Gestor.Model/Model.Common/TipoProtocoloEtiqueta.cs deleted file mode 100644 index 14b3692..0000000 --- a/Gestor.Model/Model.Common/TipoProtocoloEtiqueta.cs +++ /dev/null @@ -1,15 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoProtocoloEtiqueta - { - [Description("PROTOCOLO")] - Protocolo, - [Description("ETIQUETA")] - Etiqueta - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoRecebimento.cs b/Gestor.Model/Model.Common/TipoRecebimento.cs deleted file mode 100644 index 249d6d6..0000000 --- a/Gestor.Model/Model.Common/TipoRecebimento.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoRecebimento - { - [Description("PARCELA")] - [OldValue("1")] - Parcela = 1, - [Description("FATURA")] - [OldValue("2")] - Fatura = 2 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoRecibo.cs b/Gestor.Model/Model.Common/TipoRecibo.cs deleted file mode 100644 index 0f451f9..0000000 --- a/Gestor.Model/Model.Common/TipoRecibo.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoRecibo - { - [Description("PAGAMENTO")] - [OldValue("0")] - Pagamento, - [Description("RECEBIMENTO")] - [OldValue("1")] - Recebimento - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoRepasse.cs b/Gestor.Model/Model.Common/TipoRepasse.cs deleted file mode 100644 index e2d528a..0000000 --- a/Gestor.Model/Model.Common/TipoRepasse.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoRepasse - { - [Description("VALOR FIXO")] - [OldValue("1")] - [Tipo("0")] - ValorFixo = 1, - [Description("PERCENTUAL")] - [OldValue("2")] - [Tipo("0")] - Percentual = 2, - [Description("CO-CORRETAGEM")] - [OldValue("3")] - [Tipo("1")] - CoCorretagem = 3 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoResidencia.cs b/Gestor.Model/Model.Common/TipoResidencia.cs deleted file mode 100644 index 06ece42..0000000 --- a/Gestor.Model/Model.Common/TipoResidencia.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoResidencia - { - [Description("CASA")] - [OldValue("1")] - Casa, - [Description("APARTAMENTO")] - [OldValue("2")] - Apartamento, - [Description("CONDOMÍNIO")] - [OldValue("3")] - Condominio, - [Description("OUTROS")] - [OldValue("4")] - Outros - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoRestricao.cs b/Gestor.Model/Model.Common/TipoRestricao.cs deleted file mode 100644 index 6822f3b..0000000 --- a/Gestor.Model/Model.Common/TipoRestricao.cs +++ /dev/null @@ -1,528 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -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")] - [Description("RESTRINGIR ACESSO AO EXTRATO DO CLIENTE")] - [Help("IMPEDE USUÁRIO DE ACESSAR EXTRATO DE CLIENTE.")] - ExtratoCliente, - [Category("Seguros")] - [Description("OCULTAR COMISSÃO")] - [Help("OCULTA TUDO RELACIONADO A COMISSÃO.")] - Comissao, - [Category("Seguros")] - [Description("RESTRINGIR ACESSO À BAIXA DE COMISSÃO MANUAL")] - [Help("IMPEDE USUÁRIO DE REALIZAR BAIXA DE COMISSÃO MANUALMENTE.")] - BaixaManual, - [Category("Seguros")] - [Description("RESTRINGIR ACESSO AO IMPORTADOR PDF")] - [Help("IMPEDE USUÁRIO DE ACESSAR A PLATAFORMA DE IMPORTAÇÃO DE PDF DO GESTOR AGGER.")] - Importacao, - [Category("Seguros")] - [Description("RESTRINGIR ACESSO À RENOVAR")] - [Help("IMPEDE USUÁRIO DE RENOVAR UM DOCUMENTO.")] - Renovar, - [Category("Seguros")] - [Description("RESTRINGIR ACESSO À RECUSAR")] - [Help("IMPEDE USUÁRIO DE RECUSAR UM DOCUMENTO.")] - Recusar, - Tarefas, - [Category("Seguros")] - [Description("RESTRINGIR ACESSO AO ENVIO DE E-MAIL")] - [Help("IMPEDE USUÁRIO DE ENVIAR E-MAIL.")] - EnvioEmail, - [Category("Seguros")] - [Description("RESTRINGIR ACESSO À TROCAR CLIENTE")] - [Help("IMPEDE USUÁRIO DE TROCAR UM CLIENTE POR OUTRO MANTENDO AS MESMAS INFORMAÇÕES DO DOCUMENTO.")] - TrocarCliente, - [Category("Seguros")] - [Description("RESTRINGIR ACESSO À MANUTENÇÃO DOS ITENS")] - [Help("IMPEDE USUÁRIO DE REALIZAR MANUTENÇÃO DE ITENS.")] - ManutencaoItens, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE PRODUÇÃO")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE PRODUÇÃO.")] - [OldValue("0")] - [Tipo("RELATORIOS")] - RelatorioProducao, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE RENOVAÇÕES")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE RENOVAÇÕES.")] - [OldValue("1")] - [Tipo("RELATORIOS")] - RelatorioRenovacao, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE SINISTRO PENDENTE")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE SINISTRO PENDENTE.")] - [OldValue("2")] - [Tipo("RELATORIOS")] - RelatorioSinistroPendente, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE SINISTRO")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE SINISTRO.")] - [OldValue("3")] - [Tipo("RELATORIOS")] - RelatorioSinistro, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE RECEBIMENTO DE COMISSÃO")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE RECEBIMENTO DE COMISSÃO.")] - [OldValue("4")] - [Tipo("RELATORIOS")] - RelatorioRecebimentoComissao, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE PAGAMENTO DE COMISSÃO")] - [OldValue("5")] - [Tipo("RELATORIOS")] - RelatorioPagamentoComissao, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE COMISSÃO A RECEBER")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE COMISSÃO A RECEBER.")] - [OldValue("6")] - [Tipo("RELATORIOS")] - RelatorioParcelaPendente, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE CLIENTE")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE CLIENTE.")] - [OldValue("7")] - [Tipo("RELATORIOS")] - RelatorioCliente, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE TAREFAS")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE TAREFAS.")] - [OldValue("8")] - [Tipo("RELATORIOS")] - RelatorioTarefa, - [Category("Seguros")] - [Description("RESTRINGIR ACESSO AO WHATSAPP DO CLIENTE")] - [Help("IMPEDE USUÁRIO DE ACESSAR O WHATSAOO DO CLIENTE PARA ENVIO DE DOCUMENTAÇÃO.")] - Whatsapp, - [Category("Seguros")] - [Description("RESTRINGIR ACESSO A OPÇÃO DE ENDOSSAR")] - [Help("IMPEDE USUÁRIO DE TER ACESSO PARA REALIZAR UM ENDOSSO.")] - Endossar, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE APÓLICES PENDENTES")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE APÓLICES PENDENTES.")] - [Tipo("RELATORIOS")] - RelatorioApolicePendente, - [Category("Financeiro")] - [Description("RESTRINGIR ACESSO AO FINANCEIRO")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O 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, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE FECHAMENTO")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE FECHAMENTO.")] - [Tipo("RELATORIOS")] - RelatorioFechamento, - [Category("Seguros")] - [Description("RESTRINGIR ACESSO À CRÍTICA PDF")] - [Help("IMPEDE USUÁRIO DE ACESSAR A TELA DE CRÍTICA PDF.")] - CriticaApolice, - [Category("Seguros")] - [Description("RESTRINGIR ACESSO À COMISSÃO AUTOMÁTICA")] - [Help("IMPEDE USUÁRIO DE ACESSAR A TELA DE COMISSÃO AUTOMÁTICA.")] - BaixaAutomatica, - [Category("B.I.")] - [Description("RESTRINGIR ACESSO À PROSPECÇÃO")] - [Help("IMPEDE O USUÁRIO DE ACESSAR A TELA DE PROSPECÇÃO")] - Prospeccao, - [Description("RESTRINGIR ACESSO À TRILHA")] - Trilha, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE AUDITORIA")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE AUDITORIA.")] - [Tipo("RELATORIOS")] - RelatorioAuditoria, - [Category("B.I.")] - [Description("RESTRINGIR ACESSO AO PAINEL B.I.")] - [Help("IMPEDE O USUÁRIO DE ACESSAR A TELA DO PAINEL B.I.")] - Bi, - [Category("Ferramentas")] - [Description("RESTRINGIR ACESSO ÀS ETIQUETAS")] - [Help("IMPEDE O USUÁRIO DE ACESSAR ÀS ETIQUETAS.")] - Etiquetas, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE ANIVERSARIANTES")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE ANIVERSARIANTES")] - [OldValue("8")] - [Tipo("RELATORIOS")] - RelatorioAniversariante, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE EXTRATOS BAIXADOS")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE EXTRATOS BAIXADOS.")] - [Tipo("RELATORIOS")] - RelatorioExtratosBaixados, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE FATURAS PENDENTES")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE FATURAS PENDENTES.")] - [Tipo("RELATORIOS")] - RelatorioFaturaPendente, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE METAS DE SEGURADORAS")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE METAS DE SEGURADORAS.")] - [Tipo("RELATORIOS")] - RelatorioMetaSeguradora, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE METAS DE VENDEDORES")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE METAS DE VENDEDORES.")] - [Tipo("RELATORIOS")] - RelatorioMetaVendedor, - [Category("Ajuda")] - [Description("RESTRINGIR ACESSO AOS ATENDIMENTOS")] - [Help("IMPEDE O USUÁRIO DE ACESSAR OS ATENDIMENTOS DO GESTOR")] - Atendimentos, - [Category("Ajuda")] - [Description("RESTRINGIR ACESSO AOS BOLETOS E NOTAS")] - [Help("IMPEDE O USUÁRIO DE ACESSAR OS BOLETOS E NOTAS DO GESTOR")] - BoletosNotas, - [Category("Ajuda")] - [Description("RESTRINGIR ACESSO AOS CONTRATOS")] - [Help("IMPEDE O USUÁRIO DE ACESSAR OS CONTRATOS DO GESTOR")] - Contratos, - [Category("Ajuda")] - [Description("RESTRINGIR ACESSO À INSTALAÇÕES")] - [Help("IMPEDE O USUÁRIO DE ACESSAR INSTALAÇÕES DO GESTOR")] - Instalacoes, - [Category("Ajuda")] - [Description("RESTRINGIR ACESSO AO ACESSO REMOTO")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O ACESSO REMOTO DO GESTOR")] - AcessoRemoto, - [Category("Seguros")] - [Description("RESTRINGIR ACESSO À AGGER EPIC")] - [Help("IMPEDE USUÁRIO DE ACESSAR A PLATAFORMA AGGER EPIC.")] - Epic, - [Category("Seguros")] - [Description("RESTRINGIR ACESSO AO AGGER SIGGNER")] - [Help("IMPEDE O USUÁRIO DE ACESSAR A PLATAFORMA AGGER SIGGNER E TER ACESSO A ASSINATURA ELETRÔNICA QUE SE ENCONTRA NOS ARQUIVOS DIGITAIS.")] - AssinaturaEletronica, - [Category("Ajuda")] - [Description("OCULTAR VIDEOS DE AJUDA")] - [Help("IMPEDE O USUÁRIO DE ACESSAR OS VÍDEOS DE AJUDA DO GESTOR")] - Videos, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE VENCIMENTO DE PARCELAS")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE VENCIMENTO DE PARCELAS.")] - [Tipo("RELATORIOS")] - RelatorioParcelasVencendo, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO LICENCIAMENTO")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE LICENCIAMENTO.")] - [Tipo("RELATORIOS")] - RelatorioLicenciamento, - [Category("Ferramentas")] - [Description("RESTRINGIR ACESSO AS CONFIGURAÇÕES DO SISTEMA")] - [Help("IMPEDE O USUÁRIO DE ACESSAR AS CONFIGURAÇÕES DO SISTEMA.")] - Configuracoes, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE PRÊMIO TOTAL")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE PRÊMIO TOTAL DO RELATÓRIO.")] - [OldValue("9")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoPremioTotal, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE TOTAIS DE CLIENTES")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE TOTAIS DE CLIENTES DO RELATÓRIO.")] - [OldValue("10")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoTotalCliente, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE PRÊMIO LÍQUIDO")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE PRÊMIO LÍQUIDO DO RELATÓRIO.")] - [OldValue("11")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoPremioLiquido, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE MÉDIAS DE COMISSÕES")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE MÉDIAS DE COMISSÕES DO RELATÓRIO.")] - [OldValue("12")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoMediaComissao, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE QUANTIDADE DE NOVOS NEGÓCIOS")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE QUANTIDADE DE NOVOS NEGÓCIOS DO RELATÓRIO.")] - [OldValue("13")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoQuantidadeNovoNegocio, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE QUANTIDADE DE RENOVAÇÕES")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE QUANTIDADE DE RENOVAÇÕES DO RELATÓRIO.")] - [OldValue("14")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoQuantidadeRenovacoes, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE QUANTIDADE DE CANCELAMENTOS")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE QUANTIDADE DE CANCELAMENTOS DO RELATÓRIO.")] - [OldValue("15")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoQuantidadeCancelamentos, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE QUANTIDADE DE APÓLICES")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE QUANTIDADE DE AÓLICES DO RELATÓRIO.")] - [OldValue("16")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoQuantidadeApolices, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE QUANTIDADE DE ENDOSSOS")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE QUANTIDADE DE ENDOSSOS DO RELATÓRIO.")] - [OldValue("17")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoQuantidadeEndossos, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE QUANTIDADE DE FATURAS")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE QUANTIDADE DE FATURAS DO RELATÓRIO.")] - [OldValue("18")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoQuantidadeFaturas, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE TOTAL GERAL")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE TOTAL GERAL DO RELATÓRIO.")] - [OldValue("19")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoTotalGeral, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE TOTAL DE LÍQUIDO")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE TOTAL DE LÍQUIDO DO RELATÓRIO.")] - [OldValue("20")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoTotalLiquido, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE QUANTIDADE DE PROSPECÇÕES")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE QUANTIDADE DE PROSPECÇÕES DO RELATÓRIO.")] - [OldValue("21")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoQuantidadeProspeccoes, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE TOTAL DE COMISSÃO GERADA")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE TOTAL DE COMISSÃO GERADA DO RELATÓRIO.")] - [OldValue("22")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoTotalComissaoGerada, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE COMISSÃO RECEBIDA BRUTA")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE COMISSÃO RECEBIDA BRUTA DO RELATÓRIO.")] - [OldValue("23")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoComissaoRecebidaBruta, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE COMISSÃO PREVISTA")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE COMISSÃO PREVISTA DO RELATÓRIO.")] - [OldValue("24")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoComissaoPrevisata, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE REPASSE")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE REPASSE DO RELATÓRIO.")] - [OldValue("25")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoRepasse, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE TOTAL PREVISTO")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE TOTAL PREVISTO DO RELATÓRIO.")] - [OldValue("26")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoTotalPrevisto, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE TOTAL DE TERCEIROS")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE TOTAL DE TERCEIROS DO RELATÓRIO.")] - [OldValue("27")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoTotalTerceiros, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE QUANTIDADE LIQUIDADO")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE QUANTIDADE DE LIQUIDADOS DO RELATÓRIO.")] - [OldValue("28")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoQuantidadeLiquidado, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE QUANTIDADE PENDENTE")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE QUANTIDADE DE PENDENTES DO RELATÓRIO.")] - [OldValue("29")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoQuantidadePendente, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE VALOR LIQUIDADO")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE VALOR LIQUIDADO DO RELATÓRIO.")] - [OldValue("30")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoValorLiquidado, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE COMISSÃO PENDENTE")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE COMISSÃO PENDENTE DO RELATÓRIO.")] - [OldValue("31")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoComissaoPendente, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE META ATINGIR")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE META A ATINGIR DO RELATÓRIO.")] - [OldValue("32")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoMetaAtingir, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE META CUMPRIDA")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE META CUMPRIDA DO RELATÓRIO.")] - [OldValue("33")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoMetaCumprida, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE NOTAS FISCAIS")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE NOTAS FISCAIS.")] - [Tipo("RELATORIOS")] - RelatorioNotaFiscal, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE PREVISÃO DE PAGAMENTO DE COMISSÃO")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE PREVISÃO DE PAGAMENTO DE COMISSÃO.")] - [Tipo("RELATORIOS")] - RelatorioPrevisaoPagamentoComissao, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE COMISSÃO RECEBIDA LÍQUIDA")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE COMISSÃO RECEBIDA LÍQUIDA DO RELATÓRIO.")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoComissaoRecebidaLiquida, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE IMPOSTOS")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE IMPOSTOS DO RELATÓRIO.")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoImpostos, - [Category("Ferramentas")] - [Description("RESTRINGIR VISUALIZAÇÃO DO HORÁRIO DE ACESSO DO USUÁRIO")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR OS HORÁRIOS DE ACESSO AO GESTOR.")] - HorarioAcesso, - [Category("Seguros")] - [Description("OCULTAR COMISSÃO (MENOS PORCENTAGEM)")] - [Help("OCULTA OS VALORES RELACIONADOS A COMISSÃO MAS A PORCENTAGEM DE COMISSÃO FICA VISÍVEL.")] - ComissaoPorcentagem, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE LOGS DE ENVIO DE E-MAIL")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE LOGS DE ENVIO DE E-MAIL.")] - [Tipo("RELATORIOS")] - RelatorioLogsEnvio, - [Category("Seguros")] - [Description("RESTRINGIR INFORMAÇÕES VALORES")] - [Help("RESTRINGIR AS INFORMAÇÕES DE VALORES NA CONSULTA")] - MaisValores, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE LOGS DE UTILIZAÇÃO DO SISTEMA")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE LOGS DE UTILIZAÇÃO DO SISTEMA.")] - [Tipo("RELATORIOS")] - RelatorioLogsAcao, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO PLANILHA COMPLETA")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O PLANILHA COMPLETA NOS RELATÓRIOS DE PRODUÇÃO E FECHAMENTO.")] - [Tipo("RELATORIOS")] - RelatorioPlanilhaCompleta, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE VALOR")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE VALOR DO RELATÓRIO.")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoValor, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE VALOR ORÇADO")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE VALOR ORÇADO DO RELATÓRIO.")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoValorOrcado, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE VALOR DAS PARCELAS")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE VALOR DAS PARCELAS RELATÓRIO.")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoValorParcelas, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE VALOR LIBERADO")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE VALOR LIBERADO DO RELATÓRIO.")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoValorLiberado, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE VALOR PAGO")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE VALOR PAGO DO RELATÓRIO.")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoValorPago, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE VALOR SALVADO")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE VALOR SALVADO DO RELATÓRIO.")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoValorSalvado, - [Category("TotalizacoesRelatorios")] - [Description("RESTRINGIR VISUALIZAÇÃO DA TOTALIZAÇÃO DE VALOR FRANQUIA")] - [Help("IMPEDE O USUÁRIO DE VISUALIZAR A TOTALIZAÇÃO DE VALOR FRANQUIA DO RELATÓRIO.")] - [Tipo("RELATORIOS")] - RelatorioTotalizacaoValorFranquia, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE IMPORTAÇÃO")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE IMPORTAÇÃO.")] - [OldValue("0")] - [Tipo("RELATORIOS")] - RelatorioImportacao, - [Category("B.I.")] - [Description("RESTRINGIR ACESSO À DASHBOARD DO USUÁRIO")] - [Help("IMPEDE QUE O USUÁRIO ACESSE SUA DASHBOARD.")] - Dashboard, - [Category("Seguros")] - [Description("RESTRINGIR ACESSO AOS LOGS")] - [Help("IMPEDE USUÁRIO DE ACESSAR OS LOGS.")] - Ocultarlogs, - [Category("Seguros")] - [Description("RESTRINGIR ALTERAÇÃO DE REMETENTE (MALA DIRETA)")] - [Help("IMPEDE QUE O USUÁRIO REALIZE ENVIOS E E-MAIL UTILIZANDO REMETENTES NÃO CADASTRADOS POR ELE.")] - RestringirRemetente, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE PLACA")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE PLACAS.")] - [Tipo("RELATORIOS")] - RelatorioPlaca, - [Category("Relatorios")] - [Description("RESTRINGIR ACESSO AO RELATÓRIO DE ENDOSSOS")] - [Help("IMPEDE O USUÁRIO DE ACESSAR O RELATÓRIO DE ENDOSSOS.")] - [Tipo("RELATORIOS")] - RelatorioEndosso, - [Category("Seguros")] - [Description("RESTRINGIR ACESSO À CONTRATAÇÃO DE LICENÇAS AGGER SIGGNER")] - [Help("IMPEDE O USUÁRIO DE CONTRATAR MAIS LICENÇAS DE ASSINATURA DIGITAL NA PLATAFORMA AGGER SIGGNER.")] - AdquirirLicencasSiggner - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoSeguro.cs b/Gestor.Model/Model.Common/TipoSeguro.cs deleted file mode 100644 index 7f32927..0000000 --- a/Gestor.Model/Model.Common/TipoSeguro.cs +++ /dev/null @@ -1,33 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoSeguro - { - [Description("SEGURO NOVO")] - [OldValue("1")] - Novo = 1, - [Description("RENOVAÇÃO")] - [OldValue("2")] - Renovacao = 2, - [Description("CANCELADO")] - [OldValue("3")] - Cancelado = 3, - [Description("REABILITADO")] - [OldValue("4")] - Reabilitado = 4, - [Description("RENOVADO")] - [OldValue("5")] - Renovado = 5, - [Description("PERDIDO")] - [OldValue("6")] - Perdido = 6, - [Description("RECUSADO")] - [OldValue("7")] - Recusado = 7 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoSinistro.cs b/Gestor.Model/Model.Common/TipoSinistro.cs deleted file mode 100644 index bd053b3..0000000 --- a/Gestor.Model/Model.Common/TipoSinistro.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoSinistro - { - [Description("CLIENTE")] - [OldValue("0")] - Cliente, - [Description("TERCEIRO")] - [OldValue("1")] - Terceiro - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoTarefa.cs b/Gestor.Model/Model.Common/TipoTarefa.cs deleted file mode 100644 index dad17ef..0000000 --- a/Gestor.Model/Model.Common/TipoTarefa.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -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 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoTela.cs b/Gestor.Model/Model.Common/TipoTela.cs deleted file mode 100644 index cc95878..0000000 --- a/Gestor.Model/Model.Common/TipoTela.cs +++ /dev/null @@ -1,216 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -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 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoTelaInicial.cs b/Gestor.Model/Model.Common/TipoTelaInicial.cs deleted file mode 100644 index 336835b..0000000 --- a/Gestor.Model/Model.Common/TipoTelaInicial.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoTelaInicial - { - [Description("CONSULTA GERAL")] - [OldValue("0")] - Consulta, - [Description("PAINEL B.I.")] - [OldValue("1")] - PainelBi, - [Description("FINANCEIRO")] - [OldValue("2")] - Financeiro - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoTelefone.cs b/Gestor.Model/Model.Common/TipoTelefone.cs deleted file mode 100644 index 74e4bae..0000000 --- a/Gestor.Model/Model.Common/TipoTelefone.cs +++ /dev/null @@ -1,56 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoTelefone - { - [Description("RESIDENCIAL")] - [OldValue("1")] - [Tipo("1")] - Residencial = 1, - [Description("COMERCIAL")] - [OldValue("2")] - [Tipo("1")] - Comercial = 2, - [Description("CELULAR")] - [OldValue("3")] - [Tipo("1")] - Celular = 3, - [Description("RADIO")] - [OldValue("4")] - [Tipo("1")] - Radio = 4, - [Description("RECADO")] - [OldValue("5")] - [Tipo("1")] - Recado = 5, - [Description("FAX")] - [OldValue("6")] - [Tipo("1")] - Fax = 6, - [Description("OUTROS")] - [OldValue("7")] - [Tipo("1")] - Outros = 7, - [Description("INTERNACIONAL")] - [OldValue("8")] - [Tipo("0")] - Internacional = 8, - [Description("WHATSAPP")] - [OldValue("9")] - [Tipo("2")] - Whatsapp = 9, - [Description("0800")] - [OldValue("10")] - [Tipo("0")] - Gratuita = 10, - [Description("0300")] - [OldValue("11")] - [Tipo("0")] - TarifaUnica = 11 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoTitular.cs b/Gestor.Model/Model.Common/TipoTitular.cs deleted file mode 100644 index 2684f3f..0000000 --- a/Gestor.Model/Model.Common/TipoTitular.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoTitular - { - [Description("SÓCIO")] - [OldValue("0")] - Socio, - [Description("FUNCIONÁRIO")] - [OldValue("1")] - Funcionario, - [Description("DEPENDENTE")] - [OldValue("2")] - Dependente - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TipoTrilha.cs b/Gestor.Model/Model.Common/TipoTrilha.cs deleted file mode 100644 index 8a7c7fd..0000000 --- a/Gestor.Model/Model.Common/TipoTrilha.cs +++ /dev/null @@ -1,12 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TipoTrilha - { - Acompanhamento - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/TpoSituacaoSinistro.cs b/Gestor.Model/Model.Common/TpoSituacaoSinistro.cs deleted file mode 100644 index 6e79ebb..0000000 --- a/Gestor.Model/Model.Common/TpoSituacaoSinistro.cs +++ /dev/null @@ -1,21 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum TpoSituacaoSinistro - { - [Description("EM ANDAMENTO")] - Andamento = 1, - [Description("LIQUIDADO")] - Liquidado = 2, - [Description("LIQUIDADO SEM INDENIZAÇÃO")] - LiquidadoSemIndenizacao = 3, - [Description("NEGADO")] - Negado = 4, - [Description("ATENDIDO COMO TERCEIRO")] - Terceiro = 5 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/UsoDependetes.cs b/Gestor.Model/Model.Common/UsoDependetes.cs deleted file mode 100644 index a6966c1..0000000 --- a/Gestor.Model/Model.Common/UsoDependetes.cs +++ /dev/null @@ -1,27 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum UsoDependetes - { - [Description("NÃO POSSUI")] - [OldValue("0")] - NaoPossui, - [Description("SIM, DO SEXO MASCULINO")] - [OldValue("1")] - SimMasculino, - [Description("SIM, DO SEXO FEMININO")] - [OldValue("2")] - SimFeminino, - [Description("SIM, DE AMBOS OS SEXOS")] - [OldValue("3")] - SimAmbos, - [Description("NÃO UTILIZAM")] - [OldValue("4")] - NaoUtilizam - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/UsoVeiculo.cs b/Gestor.Model/Model.Common/UsoVeiculo.cs deleted file mode 100644 index ed52257..0000000 --- a/Gestor.Model/Model.Common/UsoVeiculo.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum UsoVeiculo - { - [Description("PARTICULAR")] - [OldValue("0")] - Particular, - [Description("PROFISSIONAL")] - [OldValue("1")] - Profissional, - [Description("TAXI")] - [OldValue("2")] - Taxi, - [Description("MOTORISTA DE APP")] - [OldValue("3")] - Aplicativo - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/Utilizacao.cs b/Gestor.Model/Model.Common/Utilizacao.cs deleted file mode 100644 index 17860c0..0000000 --- a/Gestor.Model/Model.Common/Utilizacao.cs +++ /dev/null @@ -1,18 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Common -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum Utilizacao - { - [Description("RESIDENCIAL")] - [OldValue("1")] - Residencial = 1, - [Description("COMERCIAL")] - [OldValue("2")] - Comercial = 2 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Common/ValidationStates.cs b/Gestor.Model/Model.Common/ValidationStates.cs deleted file mode 100644 index e9b84e4..0000000 --- a/Gestor.Model/Model.Common/ValidationStates.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; - -namespace Gestor.Model.Common -{ - public enum ValidationStates - { - Ok, - Error, - Warning - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Converter/EnumDescriptionTypeConverter.cs b/Gestor.Model/Model.Converter/EnumDescriptionTypeConverter.cs deleted file mode 100644 index 8524561..0000000 --- a/Gestor.Model/Model.Converter/EnumDescriptionTypeConverter.cs +++ /dev/null @@ -1,37 +0,0 @@ -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[] customAttributes = (DescriptionAttribute[])field.GetCustomAttributes(typeof(DescriptionAttribute), false); - if (customAttributes.Length == 0 || string.IsNullOrEmpty(customAttributes[0].Description)) - { - return value.ToString(); - } - return customAttributes[0].Description; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Aggilizador/ArquivoVinculo.cs b/Gestor.Model/Model.Domain.Aggilizador/ArquivoVinculo.cs deleted file mode 100644 index b899c13..0000000 --- a/Gestor.Model/Model.Domain.Aggilizador/ArquivoVinculo.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Aggilizador -{ - public class ArquivoVinculo - { - public int Ano - { - get; - set; - } - - public byte[] Arquivo - { - get; - set; - } - - public string Chave - { - get; - set; - } - - public long Id - { - get; - set; - } - - public long IdVinculo - { - get; - set; - } - - public string Storage - { - get; - set; - } - - public ArquivoVinculo() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Aggilizador/Calculo.cs b/Gestor.Model/Model.Domain.Aggilizador/Calculo.cs deleted file mode 100644 index 27a20d8..0000000 --- a/Gestor.Model/Model.Domain.Aggilizador/Calculo.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Domain.Seguros; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Aggilizador -{ - public class Calculo : DomainBase - { - public DateTime DataAtualizacao - { - get; - set; - } - - public long DocumentId - { - get; - set; - } - - public StatusCalculo Status - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Usuario Usuario - { - get; - set; - } - - public Calculo() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Aggilizador/LocalArquivo.cs b/Gestor.Model/Model.Domain.Aggilizador/LocalArquivo.cs deleted file mode 100644 index ca974a6..0000000 --- a/Gestor.Model/Model.Domain.Aggilizador/LocalArquivo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Aggilizador -{ - public class LocalArquivo - { - public string Arquivo - { - get; - set; - } - - public long IdApoliceDigital - { - get; - set; - } - - public long IdExtratoDigital - { - get; - set; - } - - public long IdPropostaDigital - { - get; - set; - } - - public LocalArquivo() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Aggilizador/ParcelaPendente.cs b/Gestor.Model/Model.Domain.Aggilizador/ParcelaPendente.cs deleted file mode 100644 index c56f34d..0000000 --- a/Gestor.Model/Model.Domain.Aggilizador/ParcelaPendente.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Aggilizador -{ - public class ParcelaPendente - { - public string Apolice - { - get; - set; - } - - public string Cliente - { - get; - set; - } - - public long Id - { - get; - set; - } - - public long IdParcela - { - get; - set; - } - - public int Parcela - { - get; - set; - } - - public string Seguradora - { - get; - set; - } - - public decimal Valor - { - get; - set; - } - - public DateTime Vencimento - { - get; - set; - } - - public ParcelaPendente() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Aggilizador/VinculoDocumento.cs b/Gestor.Model/Model.Domain.Aggilizador/VinculoDocumento.cs deleted file mode 100644 index 6f9f470..0000000 --- a/Gestor.Model/Model.Domain.Aggilizador/VinculoDocumento.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Aggilizador -{ - public class VinculoDocumento - { - public long Id - { - get; - set; - } - - public long IdApoliceDigital - { - get; - set; - } - - public long IdDocumento - { - get; - set; - } - - public long IdPropostaDigital - { - get; - set; - } - - public VinculoDocumento() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.BI/Analitico.cs b/Gestor.Model/Model.Domain.BI/Analitico.cs deleted file mode 100644 index e425100..0000000 --- a/Gestor.Model/Model.Domain.BI/Analitico.cs +++ /dev/null @@ -1,240 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Relatorios.ClientesAtivosInativos; -using Gestor.Model.Domain.Seguros; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.BI -{ - public class Analitico - { - [Description("APÓLICE")] - public string Apolice - { - get; - set; - } - - public string Cep - { - get; - set; - } - - public string Cidade - { - get; - set; - } - - public ClientesAtivosInativos Cliente - { - get; - set; - } - - [Description("COMISSÃO")] - [Tipo("PERCENTUAL")] - public decimal Comissao - { - get; - set; - } - - public string DiaMes - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Documento Documento - { - get; - set; - } - - [Description("DOCUMENTO")] - public string DocumentoCliente - { - get; - set; - } - - public string Email - { - get; - set; - } - - [Description("ENDOSSO")] - public string Endosso - { - get; - set; - } - - [Description("NASCIMENTO")] - [Tipo("DATA?")] - public DateTime? Nascimento - { - get; - set; - } - - [Description("NEGÓCIO CORRETORA")] - public string Negocio - { - get; - set; - } - - [Description("NOME")] - public string Nome - { - get; - set; - } - - [Description("PARCELA")] - public int NumeroParcela - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Parcela Parcela - { - get; - set; - } - - [Description("PRÊMIO LÍQUIDO")] - [Tipo("VALOR")] - public decimal PremioLiquido - { - get; - set; - } - - [Description("PRÊMIO TOTAL")] - [Tipo("VALOR")] - public decimal PremioTotal - { - get; - set; - } - - public string Profissao - { - get; - set; - } - - [Description("RAMO")] - public string Ramo - { - get; - set; - } - - [Description("RECEBIMENTO")] - [Tipo("DATA?")] - public DateTime? Recebimento - { - get; - set; - } - - [Description("SEGURADORA")] - public string Seguradora - { - get; - set; - } - - public bool Selecionado - { - get; - set; - } - - [Description("STATUS")] - public string Status - { - get; - set; - } - - public string Telefone - { - get; - set; - } - - [Description("TIPO DE PESSOA")] - public string TipoPessoa - { - get; - set; - } - - public string Uf - { - get; - set; - } - - [Description("VALOR")] - [Tipo("VALOR")] - public decimal Valor - { - get; - set; - } - - [Description("VALOR COMISSÃO")] - [Tipo("VALOR")] - public decimal ValorComissao - { - get; - set; - } - - [Description("VENCIMENTO")] - [Tipo("DATA")] - public DateTime Vencimento - { - get; - set; - } - - [Description("VENCIMENTO CNH")] - [Tipo("DATA?")] - public DateTime? VencimentoHabilitacao - { - get; - set; - } - - [Description("VIGÊNCIA FINAL")] - [Tipo("DATA?")] - public DateTime? VigenciaFinal - { - get; - set; - } - - [Description("VIGÊNCIA INICIAL")] - [Tipo("DATA")] - public DateTime VigenciaInicial - { - get; - set; - } - - public Analitico() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.BI/AtalhosApolice.cs b/Gestor.Model/Model.Domain.BI/AtalhosApolice.cs deleted file mode 100644 index 6344463..0000000 --- a/Gestor.Model/Model.Domain.BI/AtalhosApolice.cs +++ /dev/null @@ -1,112 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Seguros; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.BI -{ - public class AtalhosApolice - { - public string Agrupamento - { - get; - set; - } - - [Description("CANCELADOS")] - [Tipo("VALOR")] - public Tuple> Cancelados - { - get; - set; - } - - public DateTime Fim - { - get; - set; - } - - [Description("COMISSÃO GERADA")] - [Tipo("VALOR")] - public Tuple> Gerada - { - get; - set; - } - - public long Id - { - get; - set; - } - - public DateTime Inicio - { - get; - set; - } - - [Description("NOVOS NEGÓCIOS")] - [Tipo("VALOR")] - public Tuple> NovosNegocios - { - get; - set; - } - - [Description("APÓLICES PENDENTES")] - [Tipo("QUANTIDADE")] - public Tuple> Pendencia - { - get; - set; - } - - [Description("PERDIDOS")] - [Tipo("VALOR")] - public Tuple> Perdidos - { - get; - set; - } - - [Description("PRODUÇÃO")] - [Tipo("VALOR")] - public Tuple> Producao - { - get; - set; - } - - [Description("RENOVADOS")] - [Tipo("VALOR")] - public Tuple> Renovados - { - get; - set; - } - - [Description("SEGUROS VENCIDOS")] - [Tipo("QUANTIDADE")] - public Tuple> Vencidos - { - get; - set; - } - - [Description("SEGUROS VENCENDO")] - [Tipo("QUANTIDADE")] - public Tuple> Vencimento - { - get; - set; - } - - public AtalhosApolice() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.BI/AtalhosCalculo.cs b/Gestor.Model/Model.Domain.BI/AtalhosCalculo.cs deleted file mode 100644 index c1a0ec4..0000000 --- a/Gestor.Model/Model.Domain.BI/AtalhosCalculo.cs +++ /dev/null @@ -1,28 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.BI -{ - public class AtalhosCalculo - { - public string Agrupamento - { - get; - set; - } - - [Description("COTAÇÕES")] - [Tipo("QUANTIDADE")] - public int Cotacoes - { - get; - set; - } - - public AtalhosCalculo() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.BI/AtalhosCliente.cs b/Gestor.Model/Model.Domain.BI/AtalhosCliente.cs deleted file mode 100644 index 89d1287..0000000 --- a/Gestor.Model/Model.Domain.BI/AtalhosCliente.cs +++ /dev/null @@ -1,50 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Seguros; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.BI -{ - public class AtalhosCliente - { - [Description("ANIVERSARIANTES")] - [Tipo("QUANTIDADE")] - public int Aniversariantes - { - get; - set; - } - - public List Clientes - { - get; - set; - } - - public DateTime Fim - { - get; - set; - } - - public DateTime Inicio - { - get; - set; - } - - [Description("VENCIMENTO CNH")] - [Tipo("QUANTIDADE")] - public int VencimentoCnh - { - get; - set; - } - - public AtalhosCliente() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.BI/AtalhosComissao.cs b/Gestor.Model/Model.Domain.BI/AtalhosComissao.cs deleted file mode 100644 index 1098202..0000000 --- a/Gestor.Model/Model.Domain.BI/AtalhosComissao.cs +++ /dev/null @@ -1,36 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.BI -{ - public class AtalhosComissao - { - public string Agrupamento - { - get; - set; - } - - [Description("AUDITORIA DE COMISSÃO")] - [Tipo("VALOR")] - public decimal Auditoria - { - get; - set; - } - - [Description("COMISSÃO RECEBIDA")] - [Tipo("VALOR")] - public decimal Recebida - { - get; - set; - } - - public AtalhosComissao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.BI/AtalhosParcela.cs b/Gestor.Model/Model.Domain.BI/AtalhosParcela.cs deleted file mode 100644 index c992a69..0000000 --- a/Gestor.Model/Model.Domain.BI/AtalhosParcela.cs +++ /dev/null @@ -1,72 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Seguros; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.BI -{ - public class AtalhosParcela - { - public string Agrupamento - { - get; - set; - } - - public DateTime Fim - { - get; - set; - } - - public long Id - { - get; - set; - } - - public DateTime Inicio - { - get; - set; - } - - [Description("PARCELAS PAGAS")] - [Tipo("QUANTIDADE")] - public Tuple> Pagas - { - get; - set; - } - - [Description("PARCELAS PENDENTES")] - [Tipo("QUANTIDADE")] - public Tuple> Pendente - { - get; - set; - } - - [Description("COMISSÃO RECEBIDA")] - [Tipo("VALOR")] - public Tuple> Recebida - { - get; - set; - } - - [Description("PARCELAS À VENCER")] - [Tipo("QUANTIDADE")] - public Tuple> Vencimento - { - get; - set; - } - - public AtalhosParcela() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.BI/AtalhosSinistro.cs b/Gestor.Model/Model.Domain.BI/AtalhosSinistro.cs deleted file mode 100644 index d5f5a0d..0000000 --- a/Gestor.Model/Model.Domain.BI/AtalhosSinistro.cs +++ /dev/null @@ -1,28 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.BI -{ - public class AtalhosSinistro - { - public string Agrupamento - { - get; - set; - } - - [Description("SINISTROS")] - [Tipo("QUANTIDADE")] - public int Sinistros - { - get; - set; - } - - public AtalhosSinistro() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Card/Assistance.cs b/Gestor.Model/Model.Domain.Card/Assistance.cs deleted file mode 100644 index 79c8696..0000000 --- a/Gestor.Model/Model.Domain.Card/Assistance.cs +++ /dev/null @@ -1,180 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Card -{ - public class Assistance - { - public string Apolice - { - get; - set; - } - - public string Assistencia1 - { - get; - set; - } - - public string Assistencia1Obs - { - get; - set; - } - - public int Assistencia1Tipo - { - get; - set; - } - - public string Assistencia2 - { - get; - set; - } - - public string Assistencia2Obs - { - get; - set; - } - - public int Assistencia2Tipo - { - get; - set; - } - - public string Assistencia3 - { - get; - set; - } - - public string Assistencia3Obs - { - get; - set; - } - - public int Assistencia3Tipo - { - get; - set; - } - - public string Assistencia4 - { - get; - set; - } - - public string Assistencia4Obs - { - get; - set; - } - - public int Assistencia4Tipo - { - get; - set; - } - - public string Corretora - { - get; - set; - } - - public string CustomId - { - get; - set; - } - - public long IdRamo - { - get; - set; - } - - public long IdSeguradora - { - get; - set; - } - - public string Item - { - get; - set; - } - - public string LinkAppAndroid - { - get; - set; - } - - public string LinkAppIos - { - get; - set; - } - - public byte[] Logo - { - get; - set; - } - - public string Nome - { - get; - set; - } - - public string Obs - { - get; - set; - } - - public decimal Premio - { - get; - set; - } - - public string Seguradora - { - get; - set; - } - - public DateTime VigenciaFinal - { - get; - set; - } - - public DateTime VigenciaInicial - { - get; - set; - } - - public string WhatsappSinistro - { - get; - set; - } - - public Assistance() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Card/AssistenciaCia.cs b/Gestor.Model/Model.Domain.Card/AssistenciaCia.cs deleted file mode 100644 index 1ca33a5..0000000 --- a/Gestor.Model/Model.Domain.Card/AssistenciaCia.cs +++ /dev/null @@ -1,114 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Card -{ - public class AssistenciaCia - { - public string Assistencia1 - { - get; - set; - } - - public string Assistencia1Obs - { - get; - set; - } - - public int Assistencia1Tipo - { - get; - set; - } - - public string Assistencia2 - { - get; - set; - } - - public string Assistencia2Obs - { - get; - set; - } - - public int Assistencia2Tipo - { - get; - set; - } - - public string Assistencia3 - { - get; - set; - } - - public string Assistencia3Obs - { - get; - set; - } - - public int Assistencia3Tipo - { - get; - set; - } - - public string Assistencia4 - { - get; - set; - } - - public string Assistencia4Obs - { - get; - set; - } - - public int Assistencia4Tipo - { - get; - set; - } - - public string CustomId - { - get; - set; - } - - public long IdSeguradora - { - get; - set; - } - - public string LinkAppAndroid - { - get; - set; - } - - public string LinkAppIos - { - get; - set; - } - - public string Seguradora - { - get; - set; - } - - public AssistenciaCia() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Card/Card.cs b/Gestor.Model/Model.Domain.Card/Card.cs deleted file mode 100644 index 0e364c6..0000000 --- a/Gestor.Model/Model.Domain.Card/Card.cs +++ /dev/null @@ -1,120 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Card -{ - public class Card - { - public string Cargo - { - get; - set; - } - - public string Corretora - { - get; - set; - } - - public string CustomId - { - get; - set; - } - - public string Email - { - get; - set; - } - - public string Endereco - { - get; - set; - } - - public string Facebook - { - get; - set; - } - - public string Instagram - { - get; - set; - } - - public string LinkAggilizador - { - get; - set; - } - - public string Linkdin - { - get; - set; - } - - public string Localizacao - { - get; - set; - } - - public byte[] Logo - { - get; - set; - } - - public string Nome - { - get; - set; - } - - public string Obs - { - get; - set; - } - - public string Site - { - get; - set; - } - - public string Telefone1 - { - get; - set; - } - - public string Telefone2 - { - get; - set; - } - - public string Twitter - { - get; - set; - } - - public string Whatsapp - { - get; - set; - } - - public Card() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Card/Logo.cs b/Gestor.Model/Model.Domain.Card/Logo.cs deleted file mode 100644 index 9c1596c..0000000 --- a/Gestor.Model/Model.Domain.Card/Logo.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Card -{ - public class Logo - { - public string Corretora - { - get; - set; - } - - public string CustomId - { - get; - set; - } - - public byte[] Data - { - get; - set; - } - - public string Whatsapp - { - get; - set; - } - - public string WhatsappSinistro - { - get; - set; - } - - public Logo() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Common/ArquivoDigital.cs b/Gestor.Model/Model.Domain.Common/ArquivoDigital.cs deleted file mode 100644 index d0fb6a1..0000000 --- a/Gestor.Model/Model.Domain.Common/ArquivoDigital.cs +++ /dev/null @@ -1,213 +0,0 @@ -using Gestor.Model.Domain.Generic; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Common -{ - public class ArquivoDigital : DomainBase - { - private string _descricao; - - private string _extensao; - - public byte[] Arquivo - { - get; - set; - } - - public Guid? AzureGuid - { - get; - set; - } - - public string AzureStorage - { - get; - set; - } - - public DateTime? DataAtualizacao - { - get; - set; - } - - public DateTime? DataCriacao - { - get; - set; - } - - public string Descricao - { - get - { - string str = this._descricao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._descricao = value; - } - } - - public bool Excluido - { - get; - set; - } - - public string Extensao - { - get - { - string str = this._extensao; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._extensao = value; - } - } - - public long IdCliente - { - get; - set; - } - - public long IdDocumento - { - get; - set; - } - - public long IdEmpresa - { - get; - set; - } - - public long IdEstipulante - { - get; - set; - } - - public long IdExtrato - { - get; - set; - } - - public long IdFornecedor - { - get; - set; - } - - public long IdItem - { - get; - set; - } - - public long IdLancamento - { - get; - set; - } - - public long IdNotaFiscal - { - get; - set; - } - - public long IdParcela - { - get; - set; - } - - public long IdProspeccao - { - get; - set; - } - - public long IdSeguradora - { - get; - set; - } - - public long IdSinistro - { - get; - set; - } - - public long IdSocio - { - get; - set; - } - - public long IdTarefa - { - get; - set; - } - - public long IdUsuario - { - get; - set; - } - - public long IdVendedor - { - get; - set; - } - - public int QuantidadeAcesso - { - get; - set; - } - - public DateTime? UltimoAcesso - { - get; - set; - } - - public long UsuarioAtualizacao - { - get; - set; - } - - public long UsuarioCriacao - { - get; - set; - } - - public ArquivoDigital() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Common/Atividade.cs b/Gestor.Model/Model.Domain.Common/Atividade.cs deleted file mode 100644 index d5a67d7..0000000 --- a/Gestor.Model/Model.Domain.Common/Atividade.cs +++ /dev/null @@ -1,50 +0,0 @@ -using Gestor.Model.Domain.Generic; -using System; - -namespace Gestor.Model.Domain.Common -{ - public class Atividade : DomainBase - { - private string _cnac; - - private string _nome; - - public string Cnac - { - get - { - string str = this._cnac; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._cnac = value; - } - } - - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - public Atividade() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Common/Banco.cs b/Gestor.Model/Model.Domain.Common/Banco.cs deleted file mode 100644 index b74b1d4..0000000 --- a/Gestor.Model/Model.Domain.Common/Banco.cs +++ /dev/null @@ -1,87 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Generic; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Common -{ - public class Banco : IDomain - { - private string _nome; - - private string _site; - - [Log(true)] - public int Codigo - { - get; - set; - } - - public int Id - { - get; - set; - } - - [Description("BANCO")] - [Log(true)] - [Name(true)] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - [Log(true)] - public string Site - { - get - { - string str = this._site; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._site = value; - } - } - - [JsonIgnore] - public Func>> ValidationEvent - { - get - { - Banco banco = this; - return new Func>>(banco.Validate); - } - } - - public Banco() - { - } - - public List> Validate() - { - return new List>(); - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Common/Contato.cs b/Gestor.Model/Model.Domain.Common/Contato.cs deleted file mode 100644 index 5691e6e..0000000 --- a/Gestor.Model/Model.Domain.Common/Contato.cs +++ /dev/null @@ -1,31 +0,0 @@ -using Gestor.Model.Common; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Common -{ - public class Contato - { - public string Numero - { - get; - set; - } - - public TipoContato Tipo - { - get; - set; - } - - public Gestor.Model.Common.TipoTelefone? TipoTelefone - { - get; - set; - } - - public Contato() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Common/ControleArquivoDigital.cs b/Gestor.Model/Model.Domain.Common/ControleArquivoDigital.cs deleted file mode 100644 index de0c050..0000000 --- a/Gestor.Model/Model.Domain.Common/ControleArquivoDigital.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Gestor.Model.Domain.Generic; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Common -{ - public class ControleArquivoDigital : DomainBase - { - public string Catalogo - { - get; - set; - } - - public string Tabela - { - get; - set; - } - - public ControleArquivoDigital() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Common/Empresa.cs b/Gestor.Model/Model.Domain.Common/Empresa.cs deleted file mode 100644 index 46a001c..0000000 --- a/Gestor.Model/Model.Domain.Common/Empresa.cs +++ /dev/null @@ -1,546 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -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 Documento - { - get - { - string str = this._documento; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._documento = value; - } - } - - public string Email - { - get - { - string str = this._email; - if (str == null) - { - return null; - } - return str.ToLower().Trim(); - } - set - { - this._email = value; - } - } - - public string EmailResponsavel - { - get - { - string str = this._emailResponsavel; - if (str == null) - { - return null; - } - return str.ToLower().Trim(); - } - set - { - this._emailResponsavel = value; - } - } - - public string Facebook - { - get; - set; - } - - public string Instagram - { - get; - set; - } - - public string Linkdin - { - get; - set; - } - - public string Localizacao - { - get; - set; - } - - public byte[] Logo - { - get; - set; - } - - public string LogoId - { - get; - set; - } - - public int MaxFileSize - { - get; - set; - } - - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - public string NomeSocial - { - get; - set; - } - - public string PrimeiroPrefixo - { - get - { - string str = this._primeiroPrefixo; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._primeiroPrefixo = value; - } - } - - public string PrimeiroTelefone - { - get - { - string str = this._primeiroTelefone; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._primeiroTelefone = value; - } - } - - public string QuantidadeFiliais - { - get - { - string str = this._quantidadeFiliais; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._quantidadeFiliais = value; - } - } - - public long QuantidadeFuncionarios - { - get; - set; - } - - public string Responsavel - { - get - { - string str = this._responsavel; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._responsavel = value; - } - } - - public string SegundoPrefixo - { - get - { - string str = this._segundoPrefixo; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._segundoPrefixo = value; - } - } - - public string SegundoTelefone - { - get - { - string str = this._segundoTelefone; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._segundoTelefone = value; - } - } - - public string SenhaAdmin - { - get; - set; - } - - public string Serial - { - get - { - string str = this._serial; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._serial = value; - } - } - - public string Site - { - get - { - string str = this._site; - if (str != null) - { - return str.Trim(); - } - return null; - } - set - { - this._site = value; - } - } - - public TipoTelefone TipoTelefone1 - { - get - { - if (this._tipo1.HasValue) - { - TipoTelefone? nullable = this._tipo1; - if (!((int)nullable.GetValueOrDefault() == 0 & nullable.HasValue)) - { - return this._tipo1.Value; - } - } - return TipoTelefone.Comercial; - } - set - { - this._tipo1 = new TipoTelefone?(value); - } - } - - public TipoTelefone TipoTelefone2 - { - get - { - if (this._tipo2.HasValue) - { - TipoTelefone? nullable = this._tipo2; - if (!((int)nullable.GetValueOrDefault() == 0 & nullable.HasValue)) - { - return this._tipo2.Value; - } - } - return TipoTelefone.Comercial; - } - set - { - this._tipo2 = new TipoTelefone?(value); - } - } - - public string Twitter - { - get; - set; - } - - [JsonIgnore] - public Func>> ValidationEvent - { - get - { - Empresa empresa = this; - return new Func>>(empresa.Validate); - } - } - - public string Whatsapp - { - get; - set; - } - - public string WhatsappSinistro - { - get; - set; - } - - public Empresa() - { - } - - public List Log() - { - List tupleLists = new List(); - TupleList tupleList = new TupleList(); - ObservableCollection> observableCollection = new ObservableCollection>() - { - new Tuple("DOCUMENTO (CPF/CNPJ)", (string.IsNullOrWhiteSpace(this.Documento) ? "" : this.Documento), ""), - new Tuple("NÚMERO DE SÉRIE", (string.IsNullOrWhiteSpace(this.Serial) ? "" : this.Serial), ""), - new Tuple("NOME", (string.IsNullOrWhiteSpace(this.Nome) ? "" : this.Nome), ""), - new Tuple("CEP", (string.IsNullOrWhiteSpace(base.Cep) ? "" : base.Cep), ""), - new Tuple("ENDEREÇO", (string.IsNullOrWhiteSpace(base.Endereco) ? "" : base.Endereco), ""), - new Tuple("NÚMERO", (string.IsNullOrWhiteSpace(base.Numero) ? "" : base.Numero), ""), - new Tuple("BAIRRO", (string.IsNullOrWhiteSpace(base.Bairro) ? "" : base.Bairro), ""), - new Tuple("CIDADE", (string.IsNullOrWhiteSpace(base.Cidade) ? "" : base.Cidade), ""), - new Tuple("ESTADO", (string.IsNullOrWhiteSpace(base.Estado) ? "" : base.Estado), ""), - new Tuple("SITE", (string.IsNullOrWhiteSpace(this.Site) ? "" : this.Site), ""), - new Tuple("E-MAIL", (string.IsNullOrWhiteSpace(this.Email) ? "" : this.Email), ""), - new Tuple("PRIMEIRO PREFIXO", (string.IsNullOrWhiteSpace(this.PrimeiroPrefixo) ? "" : this.PrimeiroPrefixo), ""), - new Tuple("PRIMEIRO TELEFONE", (string.IsNullOrWhiteSpace(this.PrimeiroTelefone) ? "" : this.PrimeiroTelefone), ""), - new Tuple("SEGUNDO PREFIXO", (string.IsNullOrWhiteSpace(this.SegundoPrefixo) ? "" : this.SegundoPrefixo), ""), - new Tuple("SEGUNDO TELEFONE", (string.IsNullOrWhiteSpace(this.SegundoTelefone) ? "" : this.SegundoTelefone), ""), - new Tuple("E-MAIL", (string.IsNullOrWhiteSpace(this.Email) ? "" : this.Email), "") - }; - long quantidadeFuncionarios = this.QuantidadeFuncionarios; - observableCollection.Add(new Tuple("NÚMERO DE FUNCIONÁRIOS", quantidadeFuncionarios.ToString(), "")); - observableCollection.Add(new Tuple("RESPONSÁVEL FINANCEIRO", (string.IsNullOrWhiteSpace(this.Responsavel) ? "" : this.Responsavel), "")); - observableCollection.Add(new Tuple("E-MAIL DO RESPONSÁVEL", (string.IsNullOrWhiteSpace(this.EmailResponsavel) ? "" : this.EmailResponsavel), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - return tupleLists; - } - - public List> Validate() - { - List> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Documento)) - { - keyValuePairs.AddValue("Documento", Messages.Obrigatorio, true); - } - else if (!this.Documento.ValidacaoDocumento()) - { - keyValuePairs.AddValue("Documento", Messages.Invalido, true); - } - if (string.IsNullOrWhiteSpace(this.Serial)) - { - keyValuePairs.AddValue("Serial", Messages.Obrigatorio, true); - } - else if (this.Serial.Length > 18) - { - keyValuePairs.AddValue("Serial", string.Format(Messages.MaiorQueLimite, 18), true); - } - if (!string.IsNullOrWhiteSpace(this.Site) && this.Site.Length > 80) - { - keyValuePairs.AddValue("Site", string.Format(Messages.MaiorQueLimite, 80), true); - } - if (!string.IsNullOrWhiteSpace(this.SenhaAdmin) && this.SenhaAdmin.Length > 90) - { - keyValuePairs.AddValue("SenhaAdmin", string.Format(Messages.MaiorQueLimite, 90), true); - } - if (string.IsNullOrWhiteSpace(this.Nome)) - { - keyValuePairs.AddValue("Nome", Messages.Obrigatorio, true); - } - else if (this.Nome.Length > 60) - { - keyValuePairs.AddValue("Nome", string.Format(Messages.MaiorQueLimite, 60), true); - } - if (string.IsNullOrWhiteSpace(base.Cep)) - { - keyValuePairs.AddValue("Cep", Messages.Obrigatorio, true); - } - else if (!base.Cep.ValidacaoCep()) - { - keyValuePairs.AddValue("Cep", Messages.Invalido, true); - } - if (string.IsNullOrWhiteSpace(base.Endereco)) - { - keyValuePairs.AddValue("Endereco", Messages.Obrigatorio, true); - } - else if (base.Endereco.Length > 60) - { - keyValuePairs.AddValue("Endereco", string.Format(Messages.MaiorQueLimite, 60), true); - } - if (string.IsNullOrWhiteSpace(base.Numero)) - { - keyValuePairs.AddValue("Numero", Messages.Obrigatorio, true); - } - else if (base.Numero.Length > 10) - { - keyValuePairs.AddValue("Numero", string.Format(Messages.MaiorQueLimite, 10), true); - } - if (!string.IsNullOrWhiteSpace(base.Complemento) && base.Complemento.Length > 100) - { - keyValuePairs.AddValue("Complemento", string.Format(Messages.MaiorQueLimite, 100), true); - } - if (string.IsNullOrWhiteSpace(base.Bairro)) - { - keyValuePairs.AddValue("Bairro", Messages.Obrigatorio, true); - } - else if (base.Bairro.Length > 150) - { - keyValuePairs.AddValue("Bairro", string.Format(Messages.MaiorQueLimite, 150), true); - } - if (string.IsNullOrWhiteSpace(base.Cidade)) - { - keyValuePairs.AddValue("Cidade", Messages.Obrigatorio, true); - } - else if (base.Cidade.Length > 30) - { - keyValuePairs.AddValue("Cidade", string.Format(Messages.MaiorQueLimite, 30), true); - } - if (string.IsNullOrWhiteSpace(base.Estado)) - { - keyValuePairs.AddValue("Estado", Messages.Obrigatorio, true); - } - else if (!base.Estado.ValidacaoEstado()) - { - keyValuePairs.AddValue("Estado", Messages.Invalido, true); - } - if (string.IsNullOrWhiteSpace(this.Email)) - { - keyValuePairs.AddValue("Email", Messages.Obrigatorio, true); - } - else if (!this.Email.ValidacaoEmail()) - { - keyValuePairs.AddValue("Email", Messages.Invalido, true); - } - else if (this.Email.Length > 50) - { - keyValuePairs.AddValue("Email", string.Format(Messages.MaiorQueLimite, 50), true); - } - if (string.IsNullOrWhiteSpace(this.EmailResponsavel)) - { - keyValuePairs.AddValue("EmailResponsavel", Messages.Obrigatorio, true); - } - else if (!this.EmailResponsavel.ValidacaoEmail()) - { - keyValuePairs.AddValue("EmailResponsavel", Messages.Invalido, true); - } - else if (this.EmailResponsavel.Length > 50) - { - keyValuePairs.AddValue("EmailResponsavel", string.Format(Messages.MaiorQueLimite, 50), true); - } - if (!string.IsNullOrEmpty(this.Facebook) && !this.Facebook.Contains("http")) - { - this.Facebook = string.Concat("https://", this.Facebook.Trim()); - } - if (!string.IsNullOrEmpty(this.Instagram) && !this.Instagram.Contains("http")) - { - this.Instagram = string.Concat("https://", this.Instagram.Trim()); - } - if (!string.IsNullOrEmpty(this.Linkdin) && !this.Linkdin.Contains("http")) - { - this.Linkdin = string.Concat("https://", this.Linkdin.Trim()); - } - if (!string.IsNullOrEmpty(this.Twitter) && !this.Twitter.Contains("http")) - { - this.Twitter = string.Concat("https://", this.Twitter.Trim()); - } - if (!string.IsNullOrEmpty(this.Site) && !this.Site.Contains("http")) - { - this.Site = string.Concat("http://", this.Site.Trim()); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Common/Fipe.cs b/Gestor.Model/Model.Domain.Common/Fipe.cs deleted file mode 100644 index 3a3accc..0000000 --- a/Gestor.Model/Model.Domain.Common/Fipe.cs +++ /dev/null @@ -1,138 +0,0 @@ -using Gestor.Model.Helper; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.CompilerServices; - -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 (this.Detalhes == null || this.Detalhes.Count == 0) - { - return this._anoMaximo; - } - return ( - from d in this.Detalhes - orderby d.AnoModelo descending - select d).First().AnoModelo.ToInt(); - } - set - { - if (this.Detalhes == null || this.Detalhes.Count == 0) - { - this._anoMaximo = value; - } - } - } - - public int AnoMinimo - { - get - { - if (this.Detalhes == null || this.Detalhes.Count == 0) - { - return this._anoMinimo; - } - return ( - from d in this.Detalhes - orderby d.AnoModelo - select d).First().AnoModelo.ToInt(); - } - set - { - if (this.Detalhes == null || this.Detalhes.Count == 0) - { - this._anoMinimo = value; - } - } - } - - public string Codigo - { - get - { - string str = this._codigo; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._codigo = value; - } - } - - public List Detalhes - { - get; - set; - } - - public int? IdFabricante - { - get; - set; - } - - public string Marca - { - get - { - string str = this._marca; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._marca = value; - } - } - - public string Modelo - { - get - { - string str = this._modelo; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._modelo = value; - } - } - - public int TipoVeiculo - { - get; - set; - } - - public Fipe() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Common/FipeDetalhe.cs b/Gestor.Model/Model.Domain.Common/FipeDetalhe.cs deleted file mode 100644 index c3a2803..0000000 --- a/Gestor.Model/Model.Domain.Common/FipeDetalhe.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Common -{ - public class FipeDetalhe - { - public string AnoModelo - { - get; - set; - } - - public decimal Valor - { - get; - set; - } - - public FipeDetalhe() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Common/IndiceArquivoDigital.cs b/Gestor.Model/Model.Domain.Common/IndiceArquivoDigital.cs deleted file mode 100644 index b50be29..0000000 --- a/Gestor.Model/Model.Domain.Common/IndiceArquivoDigital.cs +++ /dev/null @@ -1,246 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Generic; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Common -{ - public class IndiceArquivoDigital : DomainBase - { - private string _descricao; - - private string _extensao; - - public bool Assinado - { - get; - set; - } - - public bool Assinar - { - get; - set; - } - - public Guid? AzureGuid - { - get; - set; - } - - public string AzureStorage - { - get; - set; - } - - public string Bd - { - get; - set; - } - - public DateTime? DataAtualizacao - { - get; - set; - } - - public DateTime? DataCriacao - { - get; - set; - } - - [Log(true)] - [Name(true)] - public string Descricao - { - get - { - string str = this._descricao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._descricao = value; - } - } - - public bool EnviadoAssinatura - { - get; - set; - } - - public bool Excluido - { - get; - set; - } - - public string Extensao - { - get - { - string str = this._extensao; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._extensao = value; - } - } - - public long IdArquivoDigital - { - get; - set; - } - - public long IdCliente - { - get; - set; - } - - public long IdDocumento - { - get; - set; - } - - public long IdEmpresa - { - get; - set; - } - - public long IdEstipulante - { - get; - set; - } - - public long IdExtrato - { - get; - set; - } - - public long IdFornecedor - { - get; - set; - } - - public long IdItem - { - get; - set; - } - - public long IdLancamento - { - get; - set; - } - - public long IdNotaFiscal - { - get; - set; - } - - public long IdParcela - { - get; - set; - } - - public long IdProspeccao - { - get; - set; - } - - public long IdSeguradora - { - get; - set; - } - - public long IdSinistro - { - get; - set; - } - - public long IdSocio - { - get; - set; - } - - public long IdTarefa - { - get; - set; - } - - public long IdUsuario - { - get; - set; - } - - public long IdVendedor - { - get; - set; - } - - public bool NaoExcluir - { - get; - set; - } - - public bool Selecionado - { - get; - set; - } - - public string UrlAssinatura - { - get; - set; - } - - public long UsuarioAtualizacao - { - get; - set; - } - - public long UsuarioCriacao - { - get; - set; - } - - public IndiceArquivoDigital() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Common/PesquisaAvancada.cs b/Gestor.Model/Model.Domain.Common/PesquisaAvancada.cs deleted file mode 100644 index 452988b..0000000 --- a/Gestor.Model/Model.Domain.Common/PesquisaAvancada.cs +++ /dev/null @@ -1,55 +0,0 @@ -using Gestor.Model.Common; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Common -{ - public class PesquisaAvancada - { - 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; - } - - public FiltroStatusDocumento Status - { - get; - set; - } - - public PesquisaAvancada() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Common/Profissao.cs b/Gestor.Model/Model.Domain.Common/Profissao.cs deleted file mode 100644 index d4b6380..0000000 --- a/Gestor.Model/Model.Domain.Common/Profissao.cs +++ /dev/null @@ -1,69 +0,0 @@ -using Gestor.Model.Domain.Generic; -using System; - -namespace Gestor.Model.Domain.Common -{ - public class Profissao : DomainBase - { - private string _codigo; - - private string _nome; - - private string _aniversario; - - public string Aniversario - { - get - { - string str = this._aniversario; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._aniversario = value; - } - } - - public string Codigo - { - get - { - string str = this._codigo; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._codigo = value; - } - } - - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - public Profissao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Common/RegistroAcao.cs b/Gestor.Model/Model.Domain.Common/RegistroAcao.cs deleted file mode 100644 index d89a8d4..0000000 --- a/Gestor.Model/Model.Domain.Common/RegistroAcao.cs +++ /dev/null @@ -1,81 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Domain.Seguros; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Common -{ - public class RegistroAcao : DomainBase - { - public DateTime DataHora - { - get; - set; - } - - public string Descricao - { - get; - set; - } - - public long EntidadeId - { - get; - set; - } - - public string Ip - { - get; - set; - } - - public string NomeMaquina - { - get; - set; - } - - public string Observacao - { - get; - set; - } - - public Gestor.Model.Common.Relatorio? Relatorio - { - get; - set; - } - - public TipoTela? Tela - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Usuario Usuario - { - get; - set; - } - - public string UsuarioMaquina - { - get; - set; - } - - public string Versao - { - get; - set; - } - - public RegistroAcao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Common/RegistroLog.cs b/Gestor.Model/Model.Domain.Common/RegistroLog.cs deleted file mode 100644 index 4fd1044..0000000 --- a/Gestor.Model/Model.Domain.Common/RegistroLog.cs +++ /dev/null @@ -1,81 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Domain.Seguros; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Common -{ - public class RegistroLog : DomainBase - { - public TipoAcao Acao - { - get; - set; - } - - public DateTime DataHora - { - get; - set; - } - - public string Descricao - { - get; - set; - } - - public long EntidadeId - { - get; - set; - } - - public string Ip - { - get; - set; - } - - public bool ModeloNovo - { - get; - set; - } - - public string NomeMaquina - { - get; - set; - } - - public TipoTela Tela - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Usuario Usuario - { - get; - set; - } - - public string UsuarioMaquina - { - get; - set; - } - - public string Versao - { - get; - set; - } - - public RegistroLog() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Common/Socio.cs b/Gestor.Model/Model.Domain.Common/Socio.cs deleted file mode 100644 index bf1da0c..0000000 --- a/Gestor.Model/Model.Domain.Common/Socio.cs +++ /dev/null @@ -1,159 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Common -{ - public class Socio : EnderecoBase, IDomain - { - private string _nome; - - private string _email; - - private string _prefixo; - - private string _telefone; - - [Description("E-MAIL")] - [Log(true)] - public string Email - { - get - { - string str = this._email; - if (str == null) - { - return null; - } - return str.ToLower().Trim(); - } - set - { - this._email = value; - } - } - - public bool Excluido - { - get; - set; - } - - public long IdEmpresa - { - get; - set; - } - - [Log(true)] - [Name(true)] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - [Description("PREFIXO")] - [Log(true)] - public string Prefixo - { - get - { - string str = this._prefixo; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._prefixo = value; - } - } - - [Description("TELEFONE")] - [Log(true)] - public string Telefone - { - get - { - string str = this._telefone; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._telefone = value; - } - } - - [JsonIgnore] - public Func>> ValidationEvent - { - get - { - Socio socio = this; - return new Func>>(socio.Validate); - } - } - - public Socio() - { - } - - public List Log() - { - return new List() - { - new TupleList() - { - Tuples = new ObservableCollection>() - { - new Tuple("NOME", (string.IsNullOrWhiteSpace(this.Nome) ? "" : this.Nome), ""), - new Tuple("E-MAIL", (string.IsNullOrWhiteSpace(this.Email) ? "" : this.Email), ""), - new Tuple("PREFIXO", (string.IsNullOrWhiteSpace(this.Prefixo) ? "" : this.Prefixo), ""), - new Tuple("TELEFONE", (string.IsNullOrWhiteSpace(this.Telefone) ? "" : this.Telefone), ""), - new Tuple("E-MAIL", (string.IsNullOrWhiteSpace(this.Email) ? "" : this.Email), "") - } - } - }; - } - - public List> Validate() - { - List> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Nome)) - { - keyValuePairs.AddValue("Nome", Messages.Obrigatorio, true); - } - else if (this.Nome.Length > 60) - { - keyValuePairs.AddValue("Nome", string.Format(Messages.MaiorQueLimite, 60), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Common/TrocaCliente.cs b/Gestor.Model/Model.Domain.Common/TrocaCliente.cs deleted file mode 100644 index 00b03e1..0000000 --- a/Gestor.Model/Model.Domain.Common/TrocaCliente.cs +++ /dev/null @@ -1,117 +0,0 @@ -using Gestor.Model.Domain.Seguros; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; - -namespace Gestor.Model.Domain.Common -{ - public class TrocaCliente - { - private string _descricao; - - private long _idClienteTrocado; - - private string _nomeClienteTrocado; - - private long _idclienteNovo; - - private string _nomeClienteNovo; - - private Gestor.Model.Domain.Seguros.Documento _documento; - - public string Descricao - { - get - { - string str = this._descricao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._descricao = value; - } - } - - public Gestor.Model.Domain.Seguros.Documento Documento - { - get - { - return this._documento; - } - set - { - this._documento = value; - } - } - - public long IdClienteNovo - { - get - { - return this._idclienteNovo; - } - set - { - this._idclienteNovo = value; - } - } - - public long IdClienteTrocado - { - get - { - return this._idClienteTrocado; - } - set - { - this._idClienteTrocado = value; - } - } - - public string NomeClienteNovo - { - get - { - return this._nomeClienteNovo; - } - set - { - this._nomeClienteNovo = value; - } - } - - public string NomeClienteTrocado - { - get - { - return this._nomeClienteTrocado; - } - set - { - this._nomeClienteTrocado = value; - } - } - - public TrocaCliente() - { - } - - public List Log() - { - return new List() - { - new TupleList() - { - Tuples = new ObservableCollection>() - { - new Tuple("DESCRICAO", (string.IsNullOrWhiteSpace(this.Descricao) ? "" : this.Descricao), "") - } - } - }; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Configuracoes/ConfiguracaoSistema.cs b/Gestor.Model/Model.Domain.Configuracoes/ConfiguracaoSistema.cs deleted file mode 100644 index 511bdfc..0000000 --- a/Gestor.Model/Model.Domain.Configuracoes/ConfiguracaoSistema.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Configuracoes -{ - public class ConfiguracaoSistema : DomainBase - { - public Gestor.Model.Common.Configuracao Configuracao - { - get; - set; - } - - public ConfiguracaoSistema() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/Agenda.cs b/Gestor.Model/Model.Domain.Ferramentas/Agenda.cs deleted file mode 100644 index 263f0bc..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/Agenda.cs +++ /dev/null @@ -1,178 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Ferramentas -{ - public class Agenda : DomainBase, IDomain - { - public string Bairro - { - get; - set; - } - - public string Cep - { - get; - set; - } - - public string Cidade - { - get; - set; - } - - public string Complemento - { - get; - set; - } - - public ObservableCollection Emails - { - get; - set; - } - - public string Endereco - { - get; - set; - } - - public string Estado - { - get; - set; - } - - public string Nome - { - get; - set; - } - - public string Numero - { - get; - set; - } - - public string Observacao - { - get; - set; - } - - public ObservableCollection Telefones - { - get; - set; - } - - [JsonIgnore] - public Func>> ValidationEvent - { - get - { - Agenda agenda = this; - return new Func>>(agenda.Validate); - } - } - - public Agenda() - { - } - - public List Log() - { - string description; - List tupleLists = new List() - { - new TupleList() - { - Tuples = new ObservableCollection>() - { - new Tuple("NOME", (string.IsNullOrWhiteSpace(this.Nome) ? "" : this.Nome), ""), - new Tuple("CEP", (string.IsNullOrWhiteSpace(this.Cep) ? "" : this.Cep), ""), - new Tuple("ENDEREÇO", (string.IsNullOrWhiteSpace(this.Endereco) ? "" : this.Endereco), ""), - new Tuple("NÚMERO", (string.IsNullOrWhiteSpace(this.Numero) ? "" : this.Numero), ""), - new Tuple("COMPLEMENTO", (string.IsNullOrWhiteSpace(this.Complemento) ? "" : this.Complemento), ""), - new Tuple("BAIRRO", (string.IsNullOrWhiteSpace(this.Bairro) ? "" : this.Bairro), ""), - new Tuple("CIDADE", (string.IsNullOrWhiteSpace(this.Cidade) ? "" : this.Cidade), ""), - new Tuple("ESTADO", (string.IsNullOrWhiteSpace(this.Estado) ? "" : this.Estado), ""), - new Tuple("OBSERVAÇÕES", (string.IsNullOrWhiteSpace(this.Observacao) ? "" : this.Observacao), "") - } - } - }; - ObservableCollection> observableCollection = new ObservableCollection>() - { - new Tuple("TELEFONES$", "", "") - }; - foreach (AgendaTelefone telefone in this.Telefones) - { - observableCollection.Add(new Tuple(string.Format(" TELEFONE {0}$", this.Telefones.IndexOf(telefone) + 1), "", "")); - ObservableCollection> observableCollection1 = observableCollection; - TipoTelefone? tipo = telefone.Tipo; - if (!tipo.HasValue) - { - description = ""; - } - else - { - tipo = telefone.Tipo; - if (tipo.HasValue) - { - description = tipo.GetValueOrDefault().GetDescription(); - } - else - { - description = null; - } - } - observableCollection1.Add(new Tuple(" TIPO", description, "")); - observableCollection.Add(new Tuple(" PREFIXO", (string.IsNullOrWhiteSpace(telefone.Prefixo) ? "" : telefone.Prefixo.ToUpper()), "")); - observableCollection.Add(new Tuple(" NÚMERO", (string.IsNullOrWhiteSpace(telefone.Numero) ? "" : telefone.Numero), "")); - observableCollection.Add(new Tuple(" DESCRIÇÃO", (string.IsNullOrWhiteSpace(telefone.Observacao) ? "" : telefone.Observacao), "")); - } - tupleLists.Add(new TupleList() - { - Tuples = observableCollection - }); - ObservableCollection> observableCollection2 = new ObservableCollection>() - { - new Tuple("EMAILS$", "", "") - }; - foreach (AgendaEmail email in this.Emails) - { - observableCollection2.Add(new Tuple(string.Format(" EMAIL {0}$", this.Emails.IndexOf(email) + 1), "", "")); - observableCollection2.Add(new Tuple(" ENDEREÇO DE EMAIL", (string.IsNullOrWhiteSpace(email.Email) ? "" : email.Email), "")); - } - tupleLists.Add(new TupleList() - { - Tuples = observableCollection2 - }); - return tupleLists; - } - - public List> Validate() - { - List> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Nome)) - { - keyValuePairs.AddValue("Nome", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/AgendaEmail.cs b/Gestor.Model/Model.Domain.Ferramentas/AgendaEmail.cs deleted file mode 100644 index b3cfd4c..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/AgendaEmail.cs +++ /dev/null @@ -1,57 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Ferramentas -{ - public class AgendaEmail : EmailBase, IDomain - { - public Gestor.Model.Domain.Ferramentas.Agenda Agenda - { - get; - set; - } - - public bool Selecionado - { - get; - set; - } - - [JsonIgnore] - public Func>> ValidationEvent - { - get - { - AgendaEmail agendaEmail = this; - return new Func>>(agendaEmail.Validate); - } - } - - public AgendaEmail() - { - } - - public List> Validate() - { - List> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(base.Email)) - { - keyValuePairs.AddValue("Email", Messages.Obrigatorio, true); - } - else if (base.Email.Length > 80) - { - keyValuePairs.AddValue("Email", string.Format(Messages.MaiorQueLimite, 80), true); - } - else if (!base.Email.ValidacaoEmail()) - { - keyValuePairs.AddValue("Email", Messages.Invalido, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/AgendaTelefone.cs b/Gestor.Model/Model.Domain.Ferramentas/AgendaTelefone.cs deleted file mode 100644 index 49d2c6d..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/AgendaTelefone.cs +++ /dev/null @@ -1,42 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Ferramentas -{ - public class AgendaTelefone : TelefoneBase, IDomain - { - public Gestor.Model.Domain.Ferramentas.Agenda Agenda - { - get; - set; - } - - public string Observacao - { - get; - set; - } - - [JsonIgnore] - public Func>> ValidationEvent - { - get - { - AgendaTelefone agendaTelefone = this; - return new Func>>(agendaTelefone.Validate); - } - } - - public AgendaTelefone() - { - } - - public List> Validate() - { - return base.ValidateBase(true); - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/CategoriaTarefa.cs b/Gestor.Model/Model.Domain.Ferramentas/CategoriaTarefa.cs deleted file mode 100644 index 7fbc293..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/CategoriaTarefa.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Gestor.Model.Domain.Generic; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Ferramentas -{ - public class CategoriaTarefa : DomainBase - { - public string Descricao - { - get; - set; - } - - public CategoriaTarefa() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/Credencial.cs b/Gestor.Model/Model.Domain.Ferramentas/Credencial.cs deleted file mode 100644 index a6e7464..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/Credencial.cs +++ /dev/null @@ -1,278 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using System.Text.RegularExpressions; - -namespace Gestor.Model.Domain.Ferramentas -{ - public class Credencial : DomainBase, IDomain - { - private string _descricao; - - private string _assinatura; - - private string _header; - - private string _cabecalho; - - [Description("ASSINATURA")] - [Log(true)] - public string Assinatura - { - get - { - return this._assinatura; - } - set - { - this._assinatura = value ?? ""; - } - } - - public string Cabecalho - { - get - { - return this._cabecalho; - } - set - { - this._cabecalho = value ?? ""; - } - } - - [Description("DESCRIÇÃO")] - [Log(true)] - public string Descricao - { - get - { - string str = this._descricao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._descricao = value; - } - } - - [Description("DOMÍNIO")] - [Log(true)] - public string Dominio - { - get; - set; - } - - [Description("E-MAIL")] - [Log(true)] - public string Email - { - get; - set; - } - - public bool Excluido - { - get; - set; - } - - [Log(true)] - public string Header - { - get - { - return this._header; - } - set - { - this._header = value; - } - } - - public long IdEmpresa - { - get; - set; - } - - public long IdUsuario - { - get; - set; - } - - [Description("PORTA")] - [Log(true)] - public int? Porta - { - get; - set; - } - - public string Replyto - { - get; - set; - } - - [Description("SEGURO")] - [Log(true)] - public bool Seguro - { - get; - set; - } - - [Description("SENHA")] - [Log(true)] - public string Senha - { - get; - set; - } - - [Log(true)] - public TipoEmail Tipo - { - get; - set; - } - - [Description("USUÁRIO")] - [Log(true)] - public string Usuario - { - get; - set; - } - - [JsonIgnore] - public Func>> ValidationEvent - { - get - { - Credencial credencial = this; - return new Func>>(credencial.Validate); - } - } - - public Credencial() - { - } - - public List Log() - { - string str; - List tupleLists = new List(); - this.Assinatura = (new Regex(".*<\\/title>")).Replace(this.Assinatura, "").Trim(); - this.Assinatura = (new Regex("(<[^>]*>)|(p\\s?{[^}]*})|(\\r)|(\\n)")).Replace(this.Assinatura, "").Trim(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("DESCRIÇÃO", (string.IsNullOrWhiteSpace(this.Descricao) ? "" : this.Descricao), "") - }; - int? porta = this.Porta; - if (!porta.HasValue) - { - str = ""; - } - else - { - porta = this.Porta; - if (porta.HasValue) - { - str = porta.GetValueOrDefault().ToString(); - } - else - { - str = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("PORTA", str, "")); - observableCollection.Add(new Tuple<string, string, string>("DOMÍNIO", (string.IsNullOrWhiteSpace(this.Dominio) ? "" : this.Dominio), "")); - observableCollection.Add(new Tuple<string, string, string>("E-MAIL", (string.IsNullOrWhiteSpace(this.Email) ? "" : this.Email), "")); - observableCollection.Add(new Tuple<string, string, string>("LOGIN", (string.IsNullOrWhiteSpace(this.Usuario) ? "" : this.Usuario), "")); - observableCollection.Add(new Tuple<string, string, string>("CERTIFICADO DE SEGURANÇA", (this.Seguro ? "SIM" : "NÃO"), "")); - observableCollection.Add(new Tuple<string, string, string>("ASSINATURA", (string.IsNullOrWhiteSpace(this.Assinatura) ? "" : this.Assinatura), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - return tupleLists; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrEmpty(this.Descricao)) - { - keyValuePairs.AddValue<string, string>("Descricao|DESCRIÇÃO", Messages.Obrigatorio, true); - } - else if (this.Descricao.Length > 50) - { - keyValuePairs.AddValue<string, string>("Descricao|DESCRIÇÃO", string.Format(Messages.MaiorQueLimite, 50), true); - } - if (this.Tipo == TipoEmail.Outros) - { - if (!this.Porta.HasValue) - { - keyValuePairs.AddValue<string, string>("Porta", Messages.Invalido, true); - } - if (string.IsNullOrWhiteSpace(this.Dominio)) - { - keyValuePairs.AddValue<string, string>("Dominio|DOMÍNIO", Messages.Obrigatorio, true); - } - else if (this.Dominio.Length > 80) - { - keyValuePairs.AddValue<string, string>("Dominio|DOMÍNIO", string.Format(Messages.MaiorQueLimite, 80), true); - } - if (string.IsNullOrEmpty(this.Usuario)) - { - keyValuePairs.AddValue<string, string>("Usuario|USUÁRIO", Messages.Obrigatorio, true); - } - else if (this.Usuario.Length > 50) - { - keyValuePairs.AddValue<string, string>("Usuario|USUÁRIO", string.Format(Messages.MaiorQueLimite, 50), true); - } - if (string.IsNullOrEmpty(this.Senha)) - { - keyValuePairs.AddValue<string, string>("Senha", Messages.Obrigatorio, true); - } - else if (this.Senha.Length > 50) - { - keyValuePairs.AddValue<string, string>("Senha", string.Format(Messages.MaiorQueLimite, 50), true); - } - } - if (string.IsNullOrWhiteSpace(this.Email)) - { - keyValuePairs.AddValue<string, string>("Email|E-MAIL", Messages.Obrigatorio, true); - } - else if (this.Email.Length > 80) - { - keyValuePairs.AddValue<string, string>("Email|E-MAIL", string.Format(Messages.MaiorQueLimite, 80), true); - } - else if (!this.Email.ValidacaoEmail()) - { - keyValuePairs.AddValue<string, string>("Email|E-MAIL", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.Replyto) && !this.Replyto.ValidacaoEmail()) - { - keyValuePairs.AddValue<string, string>("Replyto|RESPONDER PARA", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/Destinatario.cs b/Gestor.Model/Model.Domain.Ferramentas/Destinatario.cs deleted file mode 100644 index c3fad19..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/Destinatario.cs +++ /dev/null @@ -1,63 +0,0 @@ -using Gestor.Model.Domain.Common; -using Gestor.Model.Domain.Generic; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Ferramentas -{ - public class Destinatario : DomainBase - { - public List<ArquivoDigital> Anexos - { - get; - set; - } - - public string Assunto - { - get; - set; - } - - public string Corpo - { - get; - set; - } - - public string Email - { - get; - set; - } - - public List<string> Encaminhar - { - get; - set; - } - - public List<string> EncaminharOculto - { - get; - set; - } - - public string Nome - { - get; - set; - } - - public string Sobrenome - { - get; - set; - } - - public Destinatario() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/Fase.cs b/Gestor.Model/Model.Domain.Ferramentas/Fase.cs deleted file mode 100644 index 1694170..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/Fase.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Gestor.Model.Domain.Generic; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Ferramentas -{ - public class Fase : DomainBase - { - public string Descricao - { - get; - set; - } - - public DateTime? Expiracao - { - get; - set; - } - - public List<Tarefa> Tarefas - { - get; - set; - } - - public string Titulo - { - get; - set; - } - - public Gestor.Model.Domain.Ferramentas.Trilha Trilha - { - get; - set; - } - - public Fase() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/Imposto.cs b/Gestor.Model/Model.Domain.Ferramentas/Imposto.cs deleted file mode 100644 index 7a65e49..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/Imposto.cs +++ /dev/null @@ -1,177 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Domain.Seguros; -using Gestor.Model.Helper; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Ferramentas -{ - public class Imposto : DomainBase, IDomain - { - public bool Ativo - { - get; - set; - } - - public decimal Desconto - { - get; - set; - } - - public decimal Ir - { - get; - set; - } - - public decimal Iss - { - get; - set; - } - - public decimal Outros - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Ramo Ramo - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Seguradora Seguradora - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Imposto imposto = this; - return new Func<List<KeyValuePair<string, string>>>(imposto.Validate); - } - } - - public Imposto() - { - } - - public List<TupleList> Log() - { - object nome; - object nomeSocial; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>(); - Gestor.Model.Domain.Seguros.Ramo ramo = this.Ramo; - if (ramo != null) - { - nome = ramo.Nome; - } - else - { - nome = null; - } - if (nome == null) - { - nome = ""; - } - observableCollection.Add(new Tuple<string, string, string>("RAMO", nome, "")); - Gestor.Model.Domain.Seguros.Seguradora seguradora = this.Seguradora; - if (seguradora != null) - { - nomeSocial = seguradora.NomeSocial; - } - else - { - nomeSocial = null; - } - if (nomeSocial == null) - { - Gestor.Model.Domain.Seguros.Seguradora seguradora1 = this.Seguradora; - if (seguradora1 != null) - { - nomeSocial = seguradora1.Nome; - } - else - { - nomeSocial = null; - } - if (nomeSocial == null) - { - nomeSocial = ""; - } - } - observableCollection.Add(new Tuple<string, string, string>("SEGURADORA", nomeSocial, "")); - decimal ir = this.Ir; - observableCollection.Add(new Tuple<string, string, string>("IR", ir.ToString("p"), "")); - ir = this.Iss; - observableCollection.Add(new Tuple<string, string, string>("ISS", ir.ToString("p"), "")); - ir = this.Outros; - observableCollection.Add(new Tuple<string, string, string>("OUTROS", ir.ToString("p"), "")); - ir = this.Desconto; - observableCollection.Add(new Tuple<string, string, string>("DESCONTO", ir.ToString("p"), "")); - observableCollection.Add(new Tuple<string, string, string>("ATIVO", (this.Ativo ? "SIM" : "NÃO"), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - return tupleLists; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.Ir > decimal.One) - { - keyValuePairs.AddValue<string, string>("Ir|PORCENTAGEM IR", "O VALOR DE IR NÃO PODE SER MAIOR QUE 100%.", true); - } - if (this.Iss > decimal.One) - { - keyValuePairs.AddValue<string, string>("Iss|PORCENTAGEM ISS", "O VALOR DE ISS NÃO PODE SER MAIOR QUE 100%.", true); - } - if (this.Outros > decimal.One) - { - keyValuePairs.AddValue<string, string>("Outros|PORCENTAGEM OUTROS", "O VALOR DOS OUTROS DESCONTOS NÃO PODE SER MAIOR QUE 100%.", true); - } - if (this.Desconto > decimal.One) - { - keyValuePairs.AddValue<string, string>("Desconto|PORCENTAGEM DESCONTO", "O VALOR DE DESCONTO NÃO PODE SER MAIOR QUE 100%.", true); - } - if (this.Ir < decimal.Zero) - { - keyValuePairs.AddValue<string, string>("Ir|PORCENTAGEM IR", "O VALOR DE IR NÃO PODE SER MENOR QUE 0%.", true); - } - if (this.Iss < decimal.Zero) - { - keyValuePairs.AddValue<string, string>("Iss|PORCENTAGEM ISS", "O VALOR DE ISS NÃO PODE SER MENOR QUE 0%.", true); - } - if (this.Outros < decimal.Zero) - { - keyValuePairs.AddValue<string, string>("Outros|PORCENTAGEM OUTROS", "O VALOR DOS OUTROS DESCONTOS NÃO PODE SER MENOR QUE 0%.", true); - } - if (this.Desconto < decimal.Zero) - { - keyValuePairs.AddValue<string, string>("Desconto|PORCENTAGEM DESCONTO", "O VALOR DE DESCONTO NÃO PODE SER MENOR QUE 0%.", true); - } - if ((((this.Ir + this.Iss) + this.Outros) + this.Desconto) > decimal.One) - { - keyValuePairs.AddValue<string, string>("Ir|PORCENTAGEM TOTAL", "NÃO É POSSÍVEL DEDUZIR MAIS QUE 100% DO TOTAL RECEBIDO.", true); - } - if ((((this.Ir + this.Iss) + this.Outros) + this.Desconto) == decimal.Zero) - { - keyValuePairs.AddValue<string, string>("Ir|PORCENTAGEM TOTAL", "A SOMA DOS IMPOSTOS DEVEM SER MAIOR QUE 0 (ZERO).", true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/LogEmail.cs b/Gestor.Model/Model.Domain.Ferramentas/LogEmail.cs deleted file mode 100644 index a884b02..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/LogEmail.cs +++ /dev/null @@ -1,157 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Domain.Seguros; -using Gestor.Model.Validation; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; -using System.Text.RegularExpressions; - -namespace Gestor.Model.Domain.Ferramentas -{ - public class LogEmail : DomainBase - { - public string Anexos - { - get; - set; - } - - public string Assunto - { - get; - set; - } - - public string Cco - { - get; - set; - } - - public string Corpo - { - get; - set; - } - - public Gestor.Model.Domain.Ferramentas.Credencial Credencial - { - get; - set; - } - - public DateTime Data - { - get; - set; - } - - public string Destinatarios - { - get; - set; - } - - public long EntityId - { - get; - set; - } - - public string Ip - { - get; - set; - } - - public string NomeMaquina - { - get; - set; - } - - public Gestor.Model.Common.Relatorio Relatorio - { - get; - set; - } - - public TipoTela Tela - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Usuario Usuario - { - get; - set; - } - - public string UsuarioMaquina - { - get; - set; - } - - public string Versao - { - get; - set; - } - - public LogEmail() - { - } - - public List<TupleList> CriarLogEmail() - { - string email; - string str; - this.Corpo = (new Regex("<title>.*<\\/title>")).Replace(this.Corpo, "").Trim(); - this.Corpo = (new Regex("(<[^>]*>)|(p\\s?{[^}]*})|(\\r)|(\\n)")).Replace(this.Corpo, "").Trim(); - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("ASSUNTO", (string.IsNullOrWhiteSpace(this.Assunto) ? "" : this.Assunto), ""), - new Tuple<string, string, string>("CORPO", (string.IsNullOrWhiteSpace(this.Corpo) ? "" : this.Corpo), "") - }; - Gestor.Model.Domain.Ferramentas.Credencial credencial = this.Credencial; - if (credencial != null) - { - email = credencial.Email; - } - else - { - email = null; - } - if (string.IsNullOrWhiteSpace(email)) - { - str = ""; - } - else - { - Gestor.Model.Domain.Ferramentas.Credencial credencial1 = this.Credencial; - if (credencial1 != null) - { - str = credencial1.Email; - } - else - { - str = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("E-MAIL DE ENVIO", str, "")); - observableCollection.Add(new Tuple<string, string, string>("DESTINATÁRIOS", (string.IsNullOrWhiteSpace(this.Destinatarios) ? "" : this.Destinatarios), "")); - observableCollection.Add(new Tuple<string, string, string>("ANEXOS", (string.IsNullOrWhiteSpace(this.Anexos) ? "" : this.Anexos), "")); - observableCollection.Add(new Tuple<string, string, string>("CCO", (string.IsNullOrWhiteSpace(this.Cco) ? "" : this.Cco), "")); - observableCollection.Add(new Tuple<string, string, string>("RELATORIO", (string.IsNullOrWhiteSpace(this.Relatorio.GetDescription()) ? "" : this.Relatorio.GetDescription()), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - return tupleLists; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/LogEnvio.cs b/Gestor.Model/Model.Domain.Ferramentas/LogEnvio.cs deleted file mode 100644 index c01bfee..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/LogEnvio.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Ferramentas -{ - public class LogEnvio - { - public Gestor.Model.Domain.Ferramentas.Credencial Credencial - { - get; - set; - } - - public Gestor.Model.Domain.Ferramentas.Destinatario Destinatario - { - get; - set; - } - - public bool Enviado - { - get; - set; - } - - public string Erro - { - get; - set; - } - - public LogEnvio() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/ManutencaoPagamentos.cs b/Gestor.Model/Model.Domain.Ferramentas/ManutencaoPagamentos.cs deleted file mode 100644 index 5690621..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/ManutencaoPagamentos.cs +++ /dev/null @@ -1,361 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using System.Threading; - -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; - - [Description("APÓLICE")] - public string Apolice - { - get - { - string str = this._apolice; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._apolice = value; - this.OnPropertyChanged("Apolice"); - } - } - - [Description("EMPRESA")] - public string Empresa - { - get - { - string str = this._empresa; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._empresa = value; - this.OnPropertyChanged("Empresa"); - } - } - - [Description("ENDOSSO")] - public string Endosso - { - get - { - string str = this._endosso; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._endosso = value; - this.OnPropertyChanged("Endosso"); - } - } - - [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 this._isExpanded; - } - set - { - this._isExpanded = value; - this.OnPropertyChanged("IsExpanded"); - } - } - - [Description("CLIENTE")] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - this.OnPropertyChanged("Nome"); - } - } - - [Description("DATA DE PAGAMENTO")] - public DateTime Pagamento - { - get - { - return this._pagamento; - } - set - { - this._pagamento = value; - this.OnPropertyChanged("Pagamento"); - } - } - - [Description("PARCELA")] - public int Parcela - { - get - { - return this._parcela; - } - set - { - this._parcela = value; - this.OnPropertyChanged("Parcela"); - } - } - - [Description("PREVISÃO DE PAGAMENTO")] - public DateTime PrevisaoPagamento - { - get - { - return this._previsaoPagamento; - } - set - { - this._previsaoPagamento = value; - this.OnPropertyChanged("PrevisaoPagamento"); - } - } - - [Description("PRODUTO")] - public string Produto - { - get - { - string str = this._produto; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._produto = value; - this.OnPropertyChanged("Produto"); - } - } - - [Description("RAMO")] - public string Ramo - { - get - { - string str = this._ramo; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._ramo = value; - this.OnPropertyChanged("Ramo"); - } - } - - [Description("RECEBIMENTO")] - public DateTime? Recebimento - { - get - { - return this._recebimento; - } - set - { - this._recebimento = value; - this.OnPropertyChanged("Recebimento"); - } - } - - [Description("SEGURADORA")] - public string Seguradora - { - get - { - string str = this._seguradora; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._seguradora = value; - this.OnPropertyChanged("Seguradora"); - } - } - - [Tipo("INVALID")] - public bool Selecionado - { - get - { - return this._selecionado; - } - set - { - this._selecionado = value; - this.OnPropertyChanged("Selecionado"); - } - } - - [Description("TIPO DA PARCELA")] - public SubTipo Tipo - { - get - { - return this._tipo; - } - set - { - this._tipo = value; - this.OnPropertyChanged("Tipo"); - } - } - - [Description("VALOR DA PARCELA")] - public decimal Valor - { - get - { - return this._valor; - } - set - { - this._valor = value; - this.OnPropertyChanged("Valor"); - } - } - - [Description("VALOR DE REPASSE")] - public decimal ValorRepasse - { - get - { - return this._valorRepasse; - } - set - { - this._valorRepasse = value; - this.OnPropertyChanged("ValorRepasse"); - } - } - - [Description("VENDEDOR")] - public string Vendedor - { - get - { - string str = this._vendedor; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._vendedor = value; - this.OnPropertyChanged("Vendedor"); - } - } - - public ManutencaoPagamentos() - { - } - - protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) - { - PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged; - if (propertyChangedEventHandler == null) - { - return; - } - propertyChangedEventHandler(this, new PropertyChangedEventArgs(propertyName)); - } - - public event PropertyChangedEventHandler PropertyChanged; - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/NotaFiscal.cs b/Gestor.Model/Model.Domain.Ferramentas/NotaFiscal.cs deleted file mode 100644 index 40d9e92..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/NotaFiscal.cs +++ /dev/null @@ -1,217 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Globalization; -using System.Runtime.CompilerServices; -using System.Threading; - -namespace Gestor.Model.Domain.Ferramentas -{ - public class NotaFiscal : DomainBase - { - private bool _selecionado; - - [Description("DATA")] - [Log(true)] - public DateTime? Data - { - get; - set; - } - - [Description("ESTIPULANTE")] - [Log(true)] - public Gestor.Model.Domain.Seguros.Estipulante Estipulante - { - get; - set; - } - - [Description("EXTRATO")] - [Log(true)] - public string Extrato - { - get; - set; - } - - [Log(true)] - public long? IdExtrato - { - get; - set; - } - - [Description("IR")] - [Log(true)] - public decimal Ir - { - get; - set; - } - - [Description("ISS")] - [Log(true)] - public decimal Iss - { - get; - set; - } - - [Description("OBS")] - [Log(true)] - public string Obs - { - get; - set; - } - - [Log(true)] - public Gestor.Model.Domain.Seguros.Seguradora Seguradora - { - get; - set; - } - - public bool Selecionado - { - get - { - return this._selecionado; - } - set - { - if (value == this._selecionado) - { - return; - } - this._selecionado = value; - this.OnPropertyChanged("Selecionado"); - } - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - return new Func<List<KeyValuePair<string, string>>>(this.Validate); - } - } - - [Description("VALOR BRUTO")] - [Log(true)] - public decimal ValorBruto - { - get; - set; - } - - [Description("VALOR LÍQUIDO")] - [Log(true)] - public decimal ValorLiquido - { - get; - set; - } - - public NotaFiscal() - { - } - - public List<TupleList> Log() - { - string nome; - string str; - string shortDateString; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("SEGURADORA", (string.IsNullOrWhiteSpace(this.Seguradora.Nome) ? "" : this.Seguradora.Nome), "") - }; - Gestor.Model.Domain.Seguros.Estipulante estipulante = this.Estipulante; - if (estipulante != null) - { - nome = estipulante.Nome; - } - else - { - nome = null; - } - if (string.IsNullOrWhiteSpace(nome)) - { - str = ""; - } - else - { - Gestor.Model.Domain.Seguros.Estipulante estipulante1 = this.Estipulante; - if (estipulante1 != null) - { - str = estipulante1.Nome; - } - else - { - str = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("ESTIPULANTE", str, "")); - decimal iss = this.Iss; - observableCollection.Add(new Tuple<string, string, string>("ISS", iss.ToString("C", new CultureInfo("pt-BR", false)), "")); - iss = this.ValorLiquido; - observableCollection.Add(new Tuple<string, string, string>("VALOR LÍQUIDO", iss.ToString("C", new CultureInfo("pt-BR", false)), "")); - iss = this.ValorBruto; - observableCollection.Add(new Tuple<string, string, string>("VALOR BRUTO", iss.ToString("C", new CultureInfo("pt-BR", false)), "")); - DateTime? data = this.Data; - if (!data.HasValue) - { - shortDateString = ""; - } - else - { - data = this.Data; - if (data.HasValue) - { - shortDateString = data.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("DATA", shortDateString, "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - return tupleLists; - } - - protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) - { - PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged; - if (propertyChangedEventHandler == null) - { - return; - } - propertyChangedEventHandler(this, new PropertyChangedEventArgs(propertyName)); - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.Seguradora == null || string.IsNullOrEmpty(this.Seguradora.Nome)) - { - keyValuePairs.AddValue<string, string>("Seguradora", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - - public event PropertyChangedEventHandler PropertyChanged; - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/OrigemCliente.cs b/Gestor.Model/Model.Domain.Ferramentas/OrigemCliente.cs deleted file mode 100644 index dc47d63..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/OrigemCliente.cs +++ /dev/null @@ -1,35 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Domain.Seguros; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Ferramentas -{ - public class OrigemCliente : DomainBase - { - public Gestor.Model.Domain.Seguros.Cliente Cliente - { - get; - set; - } - - [Log(true)] - [Name(true)] - public string Nome - { - get; - set; - } - - public long TipoOrigem - { - get; - set; - } - - public OrigemCliente() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/Recibo.cs b/Gestor.Model/Model.Domain.Ferramentas/Recibo.cs deleted file mode 100644 index c598a07..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/Recibo.cs +++ /dev/null @@ -1,202 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Globalization; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Ferramentas -{ - public class Recibo : DomainBase, IDomain - { - [Description("DATA DO RECIBO")] - [Log(true)] - public DateTime? DataRecibo - { - get; - set; - } - - [Description("DOCUMENTO PAGANTE")] - [Log(true)] - public string DocumentoPagante - { - get; - set; - } - - [Description("DOCUMENTO RECEBEDOR")] - [Log(true)] - public string DocumentoRecebedor - { - get; - set; - } - - [Log(true)] - public TipoPagamento? Pagamento - { - get; - set; - } - - [Log(true)] - public string Pagante - { - get; - set; - } - - [Log(true)] - public string Recebedor - { - get; - set; - } - - [Log(true)] - public string Referente - { - get; - set; - } - - [Log(true)] - public TipoRecibo? Tipo - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Recibo recibo = this; - return new Func<List<KeyValuePair<string, string>>>(recibo.Validate); - } - } - - [Log(true)] - public decimal Valor - { - get; - set; - } - - public Recibo() - { - } - - public List<TupleList> Log() - { - string description; - string shortDateString; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("PAGANTE", (string.IsNullOrWhiteSpace(this.Pagante) ? "" : this.Pagante), ""), - new Tuple<string, string, string>("DOCUMENTO PAGANTE", (string.IsNullOrWhiteSpace(this.DocumentoPagante) ? "" : this.DocumentoPagante), ""), - new Tuple<string, string, string>("RECEBEDOR", (string.IsNullOrWhiteSpace(this.Recebedor) ? "" : this.Recebedor), ""), - new Tuple<string, string, string>("DOCUMENTO", (string.IsNullOrWhiteSpace(this.DocumentoRecebedor) ? "" : this.DocumentoRecebedor), ""), - new Tuple<string, string, string>("TIPO DO RECIBO", this.Tipo.GetDescription(), "") - }; - TipoPagamento? pagamento = this.Pagamento; - if (!pagamento.HasValue) - { - description = ""; - } - else - { - pagamento = this.Pagamento; - if (pagamento.HasValue) - { - description = pagamento.GetValueOrDefault().GetDescription(); - } - else - { - description = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("PAGAMENTO", description, "")); - decimal valor = this.Valor; - observableCollection.Add(new Tuple<string, string, string>("VALOR", valor.ToString(new CultureInfo("pt-BR")), "")); - DateTime? dataRecibo = this.DataRecibo; - if (dataRecibo.HasValue) - { - shortDateString = dataRecibo.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString = null; - } - observableCollection.Add(new Tuple<string, string, string>("DATA DO RECIBO", shortDateString, "")); - observableCollection.Add(new Tuple<string, string, string>("PAGANTE", (string.IsNullOrWhiteSpace(this.Pagante) ? "" : this.Pagante), "")); - observableCollection.Add(new Tuple<string, string, string>("RECEBEDOR", (string.IsNullOrWhiteSpace(this.Recebedor) ? "" : this.Recebedor), "")); - observableCollection.Add(new Tuple<string, string, string>("REFERENTE", (string.IsNullOrWhiteSpace(this.Referente) ? "" : this.Referente), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - return tupleLists; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Referente)) - { - keyValuePairs.AddValue<string, string>("Referente|REFERENTE À(AO)", Messages.Obrigatorio, true); - } - if (this.DataRecibo.HasValue && (DateTime.Compare(this.DataRecibo.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.DataRecibo.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("DataRecibo|DATA DO RECIBO", Messages.Obrigatorio, true); - } - if (!this.DataRecibo.HasValue) - { - keyValuePairs.AddValue<string, string>("DataRecibo|DATA DO RECIBO", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(this.DocumentoPagante)) - { - keyValuePairs.AddValue<string, string>("DocumentoPagante|DOCUMENTO DO PAGANTE", Messages.Obrigatorio, true); - } - else if (!this.DocumentoPagante.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("DocumentoPagante|DOCUMENTO DO PAGANTE", Messages.Invalido, true); - } - if (string.IsNullOrWhiteSpace(this.DocumentoRecebedor)) - { - keyValuePairs.AddValue<string, string>("DocumentoRecebedor|DOCUMENTO DO RECEBEDOR", Messages.Obrigatorio, true); - } - else if (!this.DocumentoRecebedor.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("DocumentoRecebedor|DOCUMENTO DO RECEBEDOR", Messages.Invalido, true); - } - if (string.IsNullOrWhiteSpace(this.Recebedor)) - { - keyValuePairs.AddValue<string, string>("Recebedor", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(this.Pagante)) - { - keyValuePairs.AddValue<string, string>("Pagante", Messages.Obrigatorio, true); - } - if (!this.Pagamento.HasValue) - { - keyValuePairs.AddValue<string, string>("Pagamento|FORMA DE PAGAMENTO", Messages.Obrigatorio, true); - } - if (!string.IsNullOrWhiteSpace(this.Referente) && this.Referente.Length >= 255) - { - keyValuePairs.AddValue<string, string>("Referente|REFERENTE À(AO)", string.Format(Messages.MaiorQueLimite, 255), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/ResponsavelTarefa.cs b/Gestor.Model/Model.Domain.Ferramentas/ResponsavelTarefa.cs deleted file mode 100644 index 1418879..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/ResponsavelTarefa.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Domain.Seguros; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Ferramentas -{ - public class ResponsavelTarefa : DomainBase, IDomain - { - public long IdTarefa - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Usuario Usuario - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - ResponsavelTarefa responsavelTarefa = this; - return new Func<List<KeyValuePair<string, string>>>(responsavelTarefa.Validate); - } - } - - public ResponsavelTarefa() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.Usuario == null || this.Usuario.Id == 0) - { - keyValuePairs.AddValue<string, string>("Usuario", Messages.Obrigatorio, true); - } - if (this.IdTarefa == 0) - { - keyValuePairs.AddValue<string, string>("IdTarefa", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/StatusDeProspeccao.cs b/Gestor.Model/Model.Domain.Ferramentas/StatusDeProspeccao.cs deleted file mode 100644 index 6c258c7..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/StatusDeProspeccao.cs +++ /dev/null @@ -1,103 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Ferramentas -{ - public class StatusDeProspeccao : DomainBase - { - private string _nome; - - [Log(true)] - public bool Ativo - { - get; - set; - } - - [Description("DESCRIÇÃO")] - [Log(true)] - public string Descricao - { - get; - set; - } - - public bool Excluido - { - get; - set; - } - - [Log(true)] - [Name(true)] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - return new Func<List<KeyValuePair<string, string>>>(this.Validate); - } - } - - public StatusDeProspeccao() - { - } - - 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(this.Nome) ? "" : this.Nome), ""), - new Tuple<string, string, string>("DESCRIÇÃO", (string.IsNullOrWhiteSpace(this.Descricao) ? "" : this.Descricao), ""), - new Tuple<string, string, string>("ATIVO", (this.Ativo ? "SIM" : "NÃO"), ""), - new Tuple<string, string, string>("EXCLUÍDO", (this.Excluido ? "SIM" : "NÃO"), "") - } - } - }; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Nome)) - { - keyValuePairs.AddValue<string, string>("Nome", Messages.Obrigatorio, true); - } - else if (this.Nome.Length > 60) - { - keyValuePairs.AddValue<string, string>("Nome", string.Format(Messages.MaiorQueLimite, 60), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/Tarefa.cs b/Gestor.Model/Model.Domain.Ferramentas/Tarefa.cs deleted file mode 100644 index 165b244..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/Tarefa.cs +++ /dev/null @@ -1,264 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; -using System.Text.RegularExpressions; - -namespace Gestor.Model.Domain.Ferramentas -{ - public class Tarefa : DomainBase, IDomain - { - public bool Aberto - { - get; - set; - } - - public DateTime Agendamento - { - get; - set; - } - - public bool AgendamentoRetroativo - { - get; - set; - } - - public string Anotacoes - { - get; - set; - } - - public string AnotacoesInternas - { - get; - set; - } - - public CategoriaTarefa Categoria - { - get; - set; - } - - public string Cliente - { - get; - set; - } - - public DateTime? Conclusao - { - get; - set; - } - - public string Descricao - { - get; - set; - } - - public string DescricaoInterna - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Documento Documento - { - get; - set; - } - - public TipoTarefa Entidade - { - get; - set; - } - - public Gestor.Model.Domain.Ferramentas.Fase Fase - { - get; - set; - } - - public bool HabilitarPublica - { - get; - set; - } - - public long IdCliente - { - get; - set; - } - - public long IdEntidade - { - get; - set; - } - - public bool Publica - { - get; - set; - } - - public string Referencia - { - get; - set; - } - - public List<ResponsavelTarefa> Responsaveis - { - get; - set; - } - - public bool? Restrito - { - get; - set; - } - - public StatusTarefa Status - { - get; - set; - } - - public Gestor.Model.Domain.Ferramentas.TipoDeTarefa TipoDeTarefa - { - get; - set; - } - - public string Titulo - { - get; - set; - } - - public Gestor.Model.Domain.Ferramentas.Trilha Trilha - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Usuario Usuario - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Usuario UsuarioCadastro - { - get; - set; - } - - public List<Gestor.Model.Domain.Seguros.Usuario> UsuariosVinculados - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Tarefa tarefa = this; - return new Func<List<KeyValuePair<string, string>>>(tarefa.Validate); - } - } - - public Tarefa() - { - } - - public List<TupleList> Log() - { - string nome; - this.Descricao = (new Regex("<title>.*<\\/title>")).Replace(this.Descricao, "").Trim(); - this.Descricao = (new Regex("(<[^>]*>)|(p\\s?{[^}]*})|(\\r)|(\\n)")).Replace(this.Descricao, "").Trim(); - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("TÍTULO", (string.IsNullOrWhiteSpace(this.Titulo) ? "" : this.Titulo), "") - }; - DateTime agendamento = this.Agendamento; - observableCollection.Add(new Tuple<string, string, string>("AGENDAMENTO", agendamento.ToShortDateString(), "")); - agendamento = this.Agendamento; - observableCollection.Add(new Tuple<string, string, string>("HORA", agendamento.ToShortTimeString(), "")); - observableCollection.Add(new Tuple<string, string, string>("RESPONSÁVEL", (string.IsNullOrWhiteSpace(this.Usuario.Nome) ? "" : this.Usuario.Nome), "")); - observableCollection.Add(new Tuple<string, string, string>("STATUS", this.Status.GetDescription(), "")); - Gestor.Model.Domain.Ferramentas.TipoDeTarefa tipoDeTarefa = this.TipoDeTarefa; - if (tipoDeTarefa != null) - { - nome = tipoDeTarefa.Nome; - } - else - { - nome = null; - } - observableCollection.Add(new Tuple<string, string, string>("TIPO DE TAREFA", nome, "")); - observableCollection.Add(new Tuple<string, string, string>("ANOTAÇÕES", (string.IsNullOrWhiteSpace(this.Descricao) ? "" : this.Descricao), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - return tupleLists; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.Entidade != TipoTarefa.Notas) - { - if (this.IdEntidade == 0 && this.Trilha == null) - { - keyValuePairs.AddValue<string, string>("IdEntidade", Messages.Obrigatorio, true); - } - if (!this.AgendamentoRetroativo && this.Status != StatusTarefa.Realizado && this.Agendamento < Funcoes.GetNetworkTime().AddMinutes(-15) && this.Trilha == null) - { - keyValuePairs.AddValue<string, string>("Agendamento", Messages.Invalido, true); - } - } - if (this.Usuario == null) - { - keyValuePairs.AddValue<string, string>("Usuario|RESPONSÁVEL", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(this.Titulo)) - { - keyValuePairs.AddValue<string, string>("Titulo|TÍTULO", Messages.Obrigatorio, true); - } - if (DateTime.Compare(this.Agendamento, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Agendamento, new DateTime(9999, 12, 31)) > 0) - { - keyValuePairs.AddValue<string, string>("Agendamento", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.Conclusao.HasValue && (DateTime.Compare(this.Conclusao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Conclusao.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("Conclusao|CONCLUSÃO", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.Status == StatusTarefa.Realizado && !this.Conclusao.HasValue) - { - keyValuePairs.AddValue<string, string>("Conclusao|CONCLUSÃO", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/TipoDeTarefa.cs b/Gestor.Model/Model.Domain.Ferramentas/TipoDeTarefa.cs deleted file mode 100644 index 16a0d2a..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/TipoDeTarefa.cs +++ /dev/null @@ -1,103 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Ferramentas -{ - public class TipoDeTarefa : DomainBase - { - private string _nome; - - [Log(true)] - public bool Ativo - { - get; - set; - } - - [Description("DESCRIÇÃO")] - [Log(true)] - public string Descricao - { - get; - set; - } - - public bool Excluido - { - get; - set; - } - - [Log(true)] - [Name(true)] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - return new Func<List<KeyValuePair<string, string>>>(this.Validate); - } - } - - public TipoDeTarefa() - { - } - - 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(this.Nome) ? "" : this.Nome), ""), - new Tuple<string, string, string>("DESCRIÇÃO", (string.IsNullOrWhiteSpace(this.Descricao) ? "" : this.Descricao), ""), - new Tuple<string, string, string>("ATIVO", (this.Ativo ? "SIM" : "NÃO"), ""), - new Tuple<string, string, string>("EXCLUÍDO", (this.Excluido ? "SIM" : "NÃO"), "") - } - } - }; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Nome)) - { - keyValuePairs.AddValue<string, string>("Nome", Messages.Obrigatorio, true); - } - else if (this.Nome.Length > 60) - { - keyValuePairs.AddValue<string, string>("Nome", string.Format(Messages.MaiorQueLimite, 60), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Ferramentas/Trilha.cs b/Gestor.Model/Model.Domain.Ferramentas/Trilha.cs deleted file mode 100644 index cf4e075..0000000 --- a/Gestor.Model/Model.Domain.Ferramentas/Trilha.cs +++ /dev/null @@ -1,122 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Ferramentas -{ - public class Trilha : DomainBase, IDomain - { - public bool Ativo - { - get; - set; - } - - public string Descricao - { - get; - set; - } - - public List<Fase> Fases - { - get; - set; - } - - public TipoTrilha Tipo - { - get; - set; - } - - public string Titulo - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Trilha trilha = this; - return new Func<List<KeyValuePair<string, string>>>(trilha.Validate); - } - } - - public Trilha() - { - } - - public List<TupleList> Log() - { - List<TupleList> tupleLists = new List<TupleList>() - { - new TupleList() - { - Tuples = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("TÍTULO DA TRILHA", (string.IsNullOrWhiteSpace(this.Titulo) ? "" : this.Titulo), ""), - new Tuple<string, string, string>("DESCRIÇÃO DA TRILHA", (string.IsNullOrWhiteSpace(this.Descricao) ? "" : this.Descricao), ""), - new Tuple<string, string, string>("ATIVO", (this.Ativo ? "SIM" : "NÃO"), "") - } - } - }; - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("FASES$", "", "") - }; - if (this.Fases != null) - { - foreach (Fase fase in this.Fases) - { - observableCollection.Add(new Tuple<string, string, string>(string.Format(" FASE {0}$", this.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>(string.Format(" TAREFA {0}$", fase.Tarefas.IndexOf(tarefa) + 1), "", "")); - observableCollection.Add(new Tuple<string, string, string>(" TÍTULO DA TAREFA", (string.IsNullOrWhiteSpace(tarefa.Titulo) ? "" : tarefa.Titulo), "")); - DateTime agendamento = tarefa.Agendamento; - DateTime dateTime = tarefa.Agendamento; - observableCollection.Add(new Tuple<string, string, string>(" AGENDAMENTO DA TAREFA", dateTime.ToShortDateString(), "")); - DateTime agendamento1 = tarefa.Agendamento; - dateTime = tarefa.Agendamento; - observableCollection.Add(new Tuple<string, string, string>(" HORA DA TAREFA", dateTime.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(), "")); - } - } - tupleLists.Add(new TupleList() - { - Tuples = observableCollection - }); - } - return tupleLists; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Titulo)) - { - keyValuePairs.AddValue<string, string>("Titulo", Messages.Obrigatorio, true); - } - if (this.Fases == null || this.Fases.Count == 0) - { - keyValuePairs.AddValue<string, string>("Fases", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/BancosContas.cs b/Gestor.Model/Model.Domain.Financeiro/BancosContas.cs deleted file mode 100644 index 06eade3..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/BancosContas.cs +++ /dev/null @@ -1,195 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro -{ - public class BancosContas : DomainBase, IDomain - { - private string _descricao; - - private string _agencia; - - private string _conta; - - private string _observacao; - - [Description("AGÊNCIA")] - [Log(true)] - public string Agencia - { - get - { - string str = this._agencia; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._agencia = value; - } - } - - [Log(true)] - public bool Ativo - { - get; - set; - } - - [Log(true)] - public Gestor.Model.Domain.Common.Banco Banco - { - get; - set; - } - - [Log(true)] - public string Conta - { - get - { - string str = this._conta; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._conta = value; - } - } - - [Description("DESCRIÇÃO")] - [Log(true)] - [Name(true)] - public string Descricao - { - get - { - string str = this._descricao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._descricao = value; - } - } - - public long IdEmpresa { get; set; } = (long)1; - - [Description("OBSERVAÇÃO")] - [Log(true)] - public string Observacao - { - get - { - string str = this._observacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._observacao = value; - } - } - - public bool Selecionado - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - BancosContas bancosConta = this; - return new Func<List<KeyValuePair<string, string>>>(bancosConta.Validate); - } - } - - public BancosContas() - { - } - - public List<TupleList> Log() - { - string nome; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("DESCRIÇÃO", (string.IsNullOrWhiteSpace(this.Descricao) ? "" : this.Descricao), ""), - new Tuple<string, string, string>("AGÊNCIA", (string.IsNullOrWhiteSpace(this.Agencia) ? "" : this.Agencia), "") - }; - if (this.Banco == null) - { - nome = ""; - } - else - { - Gestor.Model.Domain.Common.Banco banco = this.Banco; - if (banco != null) - { - nome = banco.Nome; - } - else - { - nome = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("BANCO", nome, "")); - observableCollection.Add(new Tuple<string, string, string>("CONTA CORRENTE/POUPANÇA", (string.IsNullOrWhiteSpace(this.Conta) ? "" : this.Conta), "")); - observableCollection.Add(new Tuple<string, string, string>("ATIVO", (this.Ativo ? "SIM" : "NÃO"), "")); - observableCollection.Add(new Tuple<string, string, string>("OBSERVAÇÕES", (string.IsNullOrWhiteSpace(this.Observacao) ? "" : this.Observacao), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - return tupleLists; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = new List<KeyValuePair<string, string>>(); - if (string.IsNullOrWhiteSpace(this.Descricao)) - { - keyValuePairs.AddValue<string, string>("Descricao|DESCRIÇÃO", Messages.Obrigatorio, true); - } - if (this.Banco == null) - { - keyValuePairs.AddValue<string, string>("Banco", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(this.Agencia)) - { - keyValuePairs.AddValue<string, string>("Agencia|AGÊNCIA", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(this.Conta)) - { - keyValuePairs.AddValue<string, string>("Conta", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/Centro.cs b/Gestor.Model/Model.Domain.Financeiro/Centro.cs deleted file mode 100644 index 0236082..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/Centro.cs +++ /dev/null @@ -1,93 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro -{ - public class Centro : DomainBase, IDomain - { - private string _descricao; - - [Log(true)] - public bool Ativo - { - get; - set; - } - - [Description("DESCRIÇÃO")] - [Log(true)] - [Name(true)] - public string Descricao - { - get - { - string str = this._descricao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._descricao = value; - } - } - - public long IdEmpresa { get; set; } = (long)1; - - public bool Selecionado - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Centro centro = this; - return new Func<List<KeyValuePair<string, string>>>(centro.Validate); - } - } - - public Centro() - { - } - - 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(this.Descricao) ? "" : this.Descricao), ""), - new Tuple<string, string, string>("ATIVO", (this.Ativo ? "SIM" : "NÃO"), "") - } - } - }; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Descricao)) - { - keyValuePairs.AddValue<string, string>("Descricao", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/ControleFinanceiro.cs b/Gestor.Model/Model.Domain.Financeiro/ControleFinanceiro.cs deleted file mode 100644 index ad425c0..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/ControleFinanceiro.cs +++ /dev/null @@ -1,143 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro -{ - public class ControleFinanceiro : DomainBase, IDomain - { - private string _historico; - - [Description("CENTRO DE CUSTO")] - [Log(true)] - [Name(true)] - public Gestor.Model.Domain.Financeiro.Centro Centro - { - get; - set; - } - - [Description("FORNECEDOR")] - [Log(true)] - [Name(true)] - public Gestor.Model.Domain.Financeiro.Fornecedor Fornecedor - { - get; - set; - } - - public string Historico - { - get - { - string str = this._historico; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._historico = value; - } - } - - [Description("QUANTIDADE DE PARCELAS")] - [Log(true)] - public int Parcelas - { - get; - set; - } - - [Description("PLANO DE CONTAS")] - [Log(true)] - [Name(true)] - public Planos Plano - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - ControleFinanceiro controleFinanceiro = this; - return new Func<List<KeyValuePair<string, string>>>(controleFinanceiro.Validate); - } - } - - public ControleFinanceiro() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - bool id; - bool flag; - bool id1; - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.Fornecedor == null) - { - keyValuePairs.AddValue<string, string>("Fornecedor", Messages.Obrigatorio, true); - } - Gestor.Model.Domain.Financeiro.Fornecedor fornecedor = this.Fornecedor; - if (fornecedor != null) - { - id = fornecedor.Id == (long)0; - } - else - { - id = false; - } - if (id) - { - keyValuePairs.AddValue<string, string>("Fornecedor|FORNECEDOR", string.Concat(Messages.Obrigatorio, "\nPROVAVELMENTE NÃO HÁ NENHUM FORNECEDOR INCLUÍDO\nACESSE A TELA DE CADASTRO DE FORNECEDORES PARA INCLUIR"), true); - } - if (this.Plano == null) - { - keyValuePairs.AddValue<string, string>("Plano|PLANO DE CONTAS", string.Concat(Messages.Obrigatorio, "\nPROVAVELMENTE NÃO HÁ NENHUM PLANO DE CONTAS INCLUÍDO\nACESSE A TELA PLANO DE CONTAS PARA INCLUIR"), true); - } - Planos plano = this.Plano; - if (plano != null) - { - flag = plano.Id == (long)0; - } - else - { - flag = false; - } - if (flag) - { - keyValuePairs.AddValue<string, string>("Plano|PLANO DE CONTAS", string.Concat(Messages.Obrigatorio, "\nPROVAVELMENTE NÃO HÁ NENHUM PLANO DE CONTAS INCLUÍDO\nACESSE A TELA PLANO DE CONTAS PARA INCLUIR"), true); - } - if (this.Centro == null) - { - keyValuePairs.AddValue<string, string>("Centro|CENTRO DE CUSTOS", string.Concat(Messages.Obrigatorio, "\nPROVAVELMENTE NÃO HÁ NENHUM CENTRO DE CUSTOS INCLUÍDO\nACESSE A TELA CENTRO DE CUSTOS PARA INCLUIR"), true); - } - Gestor.Model.Domain.Financeiro.Centro centro = this.Centro; - if (centro != null) - { - id1 = centro.Id == (long)0; - } - else - { - id1 = false; - } - if (id1) - { - keyValuePairs.AddValue<string, string>("Centro|CENTRO DE CUSTOS", string.Concat(Messages.Obrigatorio, "\nPROVAVELMENTE NÃO HÁ NENHUM CENTRO DE CUSTOS INCLUÍDO\nACESSE A TELA CENTRO DE CUSTOS PARA INCLUIR"), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/ExtratoConta.cs b/Gestor.Model/Model.Domain.Financeiro/ExtratoConta.cs deleted file mode 100644 index 7bfc742..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/ExtratoConta.cs +++ /dev/null @@ -1,97 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro -{ - public class ExtratoConta - { - private string _fornecedor; - - private string _historico; - - [Description("DATA BAIXA")] - [Tipo("DATA?")] - public DateTime? Baixa - { - get; - set; - } - - public bool Bold - { - get; - set; - } - - [Description("FORNECEDOR")] - public string Fornecedor - { - get - { - string str = this._fornecedor; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._fornecedor = value; - } - } - - [Description("HISTÓRICO")] - public string Historico - { - get - { - string str = this._historico; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._historico = value; - } - } - - public long IdLancamento - { - get; - set; - } - - public Gestor.Model.Common.Sinal Sinal - { - get; - set; - } - - [Description("TIPO PAGAMENTO")] - [Tipo("ENUM")] - public Gestor.Model.Common.TipoPagamento? TipoPagamento - { - get; - set; - } - - [Description("VALOR")] - [Tipo("VALOR?")] - public decimal? Valor - { - get; - set; - } - - public ExtratoConta() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/FiltroPersonalizado.cs b/Gestor.Model/Model.Domain.Financeiro/FiltroPersonalizado.cs deleted file mode 100644 index 897bab4..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/FiltroPersonalizado.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro -{ - public class FiltroPersonalizado - { - private string _descricao; - - [Description("DESCRIÇÃO DO FILTRO")] - public string Descricao - { - get - { - return this._descricao; - } - set - { - this._descricao = value; - if (!string.IsNullOrWhiteSpace(value)) - { - this.Icone = value.Substring(0, 1); - } - } - } - - public string Icone - { - get; - set; - } - - public long Id - { - get; - set; - } - - [Description("TIPO DO FILTRO")] - [Tipo("ENUM")] - public TipoFiltroFinanceiro Tipo - { - get; - set; - } - - public FiltroPersonalizado() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/Fornecedor.cs b/Gestor.Model/Model.Domain.Financeiro/Fornecedor.cs deleted file mode 100644 index 7bc6e4b..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/Fornecedor.cs +++ /dev/null @@ -1,430 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro -{ - public class Fornecedor : EnderecoBase, IDomain - { - private string _nome; - - private string _documento; - - private string _email; - - private string _observacao; - - [Description("ATIVO")] - [Log(true)] - public bool Ativo - { - get; - set; - } - - [Log(true)] - public string Documento - { - get - { - string str = this._documento; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._documento = value; - } - } - - [Description("E-MAIL")] - [Log(true)] - public string Email - { - get - { - string str = this._email; - if (str != null) - { - return str.ToLower(); - } - return null; - } - set - { - this._email = value; - } - } - - public new long Id - { - get; - set; - } - - public long? IdCentro - { - get; - set; - } - - public long? IdConta - { - get; - set; - } - - public long IdEmpresa - { - get; - set; - } - - public long? IdPlano - { - get; - set; - } - - [Log(true)] - [Name(true)] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - object upper; - this._nome = value; - if (value != null) - { - upper = value.ToUpper(); - } - else - { - upper = null; - } - this.NomeSocial = string.Format("{0} - {1}", upper, this.Id); - } - } - - [Description("NOME SOCIAL")] - [Log(true)] - public string NomeSocial - { - get; - set; - } - - [Description("OBSERVAÇÃO")] - [Log(true)] - public string Observacao - { - get - { - string str = this._observacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._observacao = value; - } - } - - [Description("PREFIXO 1")] - [Log(true)] - public string Prefixo1 - { - get; - set; - } - - [Description("PREFIXO 2")] - [Log(true)] - public string Prefixo2 - { - get; - set; - } - - [Description("TELEFONE 1")] - [Log(true)] - public string Telefone1 - { - get; - set; - } - - [Description("TELEFONE 2")] - [Log(true)] - public string Telefone2 - { - get; - set; - } - - public Gestor.Model.Common.TipoPagamento? TipoPagamento - { - get; - set; - } - - [Description("TIPO TELEFONE")] - [Log(true)] - public TipoTelefone? TipoTelefone1 - { - get; - set; - } - - [Description("TIPO TELEFONE 2")] - [Log(true)] - public TipoTelefone? TipoTelefone2 - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Fornecedor fornecedor = this; - return new Func<List<KeyValuePair<string, string>>>(fornecedor.Validate); - } - } - - public Fornecedor() - { - } - - public List<TupleList> Log() - { - string description; - string str; - string str1; - string str2; - string str3; - string description1; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("NOME DO FORNECEDOR", (string.IsNullOrWhiteSpace(this.Nome) ? "" : this.Nome), ""), - new Tuple<string, string, string>("DOCUMENTO", (string.IsNullOrWhiteSpace(this.Documento) ? "" : this.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), "") - }; - TipoTelefone? tipoTelefone1 = this.TipoTelefone1; - if (!tipoTelefone1.HasValue) - { - description = ""; - } - else - { - tipoTelefone1 = this.TipoTelefone1; - if (tipoTelefone1.HasValue) - { - description = tipoTelefone1.GetValueOrDefault().GetDescription(); - } - else - { - description = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("TIPO DO PRIMEIRO TELEFONE", description, "")); - observableCollection.Add(new Tuple<string, string, string>("PRIMEIRO PREFIXO", (string.IsNullOrWhiteSpace(this.Prefixo1) ? "" : this.Prefixo1), "")); - observableCollection.Add(new Tuple<string, string, string>("PRIMEIRO TELEFONE", (string.IsNullOrWhiteSpace(this.Telefone1) ? "" : this.Telefone1), "")); - tipoTelefone1 = this.TipoTelefone2; - if (!tipoTelefone1.HasValue) - { - str = ""; - } - else - { - tipoTelefone1 = this.TipoTelefone2; - if (tipoTelefone1.HasValue) - { - str = tipoTelefone1.GetValueOrDefault().GetDescription(); - } - else - { - str = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("TIPO DO SEGUNDO TELEFONE", str, "")); - observableCollection.Add(new Tuple<string, string, string>("SEGUNDO PREFIXO", (string.IsNullOrWhiteSpace(this.Prefixo2) ? "" : this.Prefixo2), "")); - observableCollection.Add(new Tuple<string, string, string>("SEGUNDO TELEFONE", (string.IsNullOrWhiteSpace(this.Telefone2) ? "" : this.Telefone2), "")); - observableCollection.Add(new Tuple<string, string, string>("E-MAIL", (string.IsNullOrWhiteSpace(this.Email) ? "" : this.Email), "")); - long? idPlano = this.IdPlano; - if (!idPlano.HasValue) - { - str1 = ""; - } - else - { - idPlano = this.IdPlano; - if (idPlano.HasValue) - { - str1 = idPlano.GetValueOrDefault().ToString(); - } - else - { - str1 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("PLANO DE CONTAS", str1, "")); - idPlano = this.IdCentro; - if (!idPlano.HasValue) - { - str2 = ""; - } - else - { - idPlano = this.IdCentro; - if (idPlano.HasValue) - { - str2 = idPlano.GetValueOrDefault().ToString(); - } - else - { - str2 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("CENTRO DE CUSTO", str2, "")); - idPlano = this.IdConta; - if (!idPlano.HasValue) - { - str3 = ""; - } - else - { - idPlano = this.IdConta; - if (idPlano.HasValue) - { - str3 = idPlano.GetValueOrDefault().ToString(); - } - else - { - str3 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("CONTA CORRENTE", str3, "")); - Gestor.Model.Common.TipoPagamento? tipoPagamento = this.TipoPagamento; - if (!tipoPagamento.HasValue) - { - description1 = ""; - } - else - { - tipoPagamento = this.TipoPagamento; - if (tipoPagamento.HasValue) - { - description1 = tipoPagamento.GetValueOrDefault().GetDescription(); - } - else - { - description1 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("TIPO DE PAGAMENTO", description1, "")); - observableCollection.Add(new Tuple<string, string, string>("OBSERVAÇÕES", (string.IsNullOrWhiteSpace(this.Observacao) ? "" : this.Observacao), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - return tupleLists; - } - - public List<KeyValuePair<string, string>> Validate() - { - int? nullable; - int? nullable1; - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - string nome = this.Nome; - if (nome != null) - { - nullable1 = new int?((int)nome.Trim().Split(new char[] { ' ' }).Length); - } - else - { - nullable = null; - nullable1 = nullable; - } - int? nullable2 = nullable1; - if (nullable2.HasValue) - { - nullable = nullable2; - if (nullable.GetValueOrDefault() <= 1 & nullable.HasValue) - { - keyValuePairs.AddValue<string, string>("Nome", Messages.NomeInvalido, true); - } - } - else - { - keyValuePairs.AddValue<string, string>("Nome", Messages.Obrigatorio, true); - } - if (!string.IsNullOrWhiteSpace(this.Nome) && this.Nome.Length > 60) - { - keyValuePairs.AddValue<string, string>("Nome", string.Format(Messages.MaiorQueLimite, 60), true); - } - if (!string.IsNullOrWhiteSpace(this.Documento) && !this.Documento.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("Documento", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.Prefixo1) && !this.Prefixo1.ValidacaoPrefixo()) - { - keyValuePairs.AddValue<string, string>("Prefixo1", Messages.Obrigatorio, true); - } - if (!string.IsNullOrWhiteSpace(this.Telefone1) && !this.Telefone1.ValidacaoTelefone()) - { - keyValuePairs.AddValue<string, string>("Telefone1", Messages.Obrigatorio, true); - } - if (!string.IsNullOrWhiteSpace(this.Email) && !this.Email.ValidacaoEmail()) - { - keyValuePairs.AddValue<string, string>("Email", Messages.Obrigatorio, true); - } - if (!string.IsNullOrWhiteSpace(base.Cidade) && base.Cidade.Length > 30) - { - keyValuePairs.AddValue<string, string>("Cidade", string.Format(Messages.MaiorQueLimite, 30), true); - } - if (!string.IsNullOrWhiteSpace(base.Bairro) && base.Bairro.Length > 60) - { - keyValuePairs.AddValue<string, string>("Bairro", string.Format(Messages.MaiorQueLimite, 60), true); - } - if (!string.IsNullOrWhiteSpace(base.Complemento) && base.Complemento.Length > 40) - { - keyValuePairs.AddValue<string, string>("Complemento", string.Format(Messages.MaiorQueLimite, 40), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/Lancamento.cs b/Gestor.Model/Model.Domain.Financeiro/Lancamento.cs deleted file mode 100644 index 2bdd404..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/Lancamento.cs +++ /dev/null @@ -1,285 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro -{ - public class Lancamento : DomainBase, IDomain - { - private decimal? _valorPago; - - private string _historico; - - private string _documento; - - private string _complemento; - - private string _competencia; - - [Description("DATA DA BAIXA")] - [Log(true)] - public DateTime? Baixa - { - get; - set; - } - - public bool Baixado - { - get; - set; - } - - [Description("CÓDIGO BANCO")] - [Log(true)] - public string CodigoBanco - { - get; - set; - } - - [Description("COMPETÊNCIA")] - [Log(true)] - public string Competencia - { - get - { - string str = this._competencia; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._competencia = value; - } - } - - [Log(true)] - public string Complemento - { - get - { - string str = this._complemento; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._complemento = value; - } - } - - [Log(true)] - public BancosContas Conta - { - get; - set; - } - - public ControleFinanceiro Controle - { - get; - set; - } - - [Description("DATA LANÇAMENTO")] - [Log(true)] - public DateTime? DataLancamento - { - get; - set; - } - - [Log(true)] - public string Documento - { - get - { - string str = this._documento; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._documento = value; - } - } - - [Description("HISTÓRICO")] - [Log(true)] - public string Historico - { - get - { - string str = this._historico; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._historico = value; - } - } - - [Description("OBSERVAÇÃO")] - [Log(true)] - public string Observacao - { - get; - set; - } - - [Log(true)] - public DateTime? Pagamento - { - get; - set; - } - - [Log(true)] - public int Parcela - { - get; - set; - } - - public bool Selecionado - { - get; - set; - } - - [Log(true)] - public Gestor.Model.Common.Sinal Sinal - { - get; - set; - } - - [Description("TIPO PAGAMENTO")] - [Log(true)] - public Gestor.Model.Common.TipoPagamento TipoPagamento - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Lancamento lancamento = this; - return new Func<List<KeyValuePair<string, string>>>(lancamento.Validate); - } - } - - [Log(true)] - public decimal Valor - { - get; - set; - } - - [Description("VALOR PAGO")] - [Log(true)] - public decimal? ValorPago - { - get - { - return new decimal?(this._valorPago.GetValueOrDefault()); - } - set - { - this._valorPago = value; - } - } - - [Log(true)] - public DateTime Vencimento - { - get; - set; - } - - public Lancamento() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - keyValuePairs.AddRange(this.Controle.Validate()); - if (string.IsNullOrWhiteSpace(this.Historico)) - { - keyValuePairs.AddValue<string, string>("Historico", Messages.Obrigatorio, true); - } - else if (this.Historico.Length > 100) - { - keyValuePairs.AddValue<string, string>("Historico", string.Format(Messages.MaiorQueLimite, 100), true); - } - if (this.Valor <= decimal.Zero) - { - keyValuePairs.AddValue<string, string>("Valor", Messages.Obrigatorio, true); - } - decimal? valorPago = this.ValorPago; - decimal num = new decimal(); - if ((valorPago.GetValueOrDefault() < num) & valorPago.HasValue) - { - keyValuePairs.AddValue<string, string>("ValorPago", Messages.Obrigatorio, true); - } - if (this.Conta == null) - { - keyValuePairs.AddValue<string, string>("Conta|CONTA CORRENTE", string.Concat(Messages.Obrigatorio, "\nSE NÃO HOUVER NENHUMA CONTA CORRENTE CADASTRADA\nACESSE A TELA BANCOS E CONTAS PARA INCLUIR"), true); - } - if (!string.IsNullOrWhiteSpace(this.Documento) && this.Documento.Length > 50) - { - keyValuePairs.AddValue<string, string>("Documento", string.Format(Messages.MaiorQueLimite, 50), true); - } - if (!string.IsNullOrWhiteSpace(this.Competencia) && this.Competencia.Length > 8) - { - keyValuePairs.AddValue<string, string>("Competencia|COMPETÊNCIA", string.Format(Messages.MaiorQueLimite, 8), true); - } - if (!string.IsNullOrWhiteSpace(this.Complemento) && this.Complemento.Length > 50) - { - keyValuePairs.AddValue<string, string>("Complemento", string.Format(Messages.MaiorQueLimite, 50), true); - } - if (this.Baixa.HasValue && (DateTime.Compare(this.Baixa.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Baixa.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("Baixa", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (DateTime.Compare(this.Vencimento, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Vencimento, new DateTime(9999, 12, 31)) > 0) - { - keyValuePairs.AddValue<string, string>("Vencimento", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.Pagamento.HasValue && (DateTime.Compare(this.Pagamento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Pagamento.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("Pagamento", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (!this.Baixa.HasValue && this.Baixado) - { - keyValuePairs.AddValue<string, string>("Baixa", "NÃO É POSSÍVEL SALVAR UM DOCUMENTO SEM DATA DE BAIXA QUANDO O LANÇAMENTO POSSUÍ BAIXA", true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/Plano.cs b/Gestor.Model/Model.Domain.Financeiro/Plano.cs deleted file mode 100644 index 9e9ab97..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/Plano.cs +++ /dev/null @@ -1,68 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro -{ - public class Plano : DomainBase, IDomain - { - private string _descricao; - - public bool Ativo - { - get; - set; - } - - public string Descricao - { - get - { - string str = this._descricao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._descricao = value; - } - } - - public bool Selecionado - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Plano plano = this; - return new Func<List<KeyValuePair<string, string>>>(plano.Validate); - } - } - - public Plano() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Descricao)) - { - keyValuePairs.AddValue<string, string>("Descricao", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/Planos.cs b/Gestor.Model/Model.Domain.Financeiro/Planos.cs deleted file mode 100644 index 94e7528..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/Planos.cs +++ /dev/null @@ -1,165 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro -{ - public class Planos : DomainBase, IDomain - { - private string _descricao; - - private Gestor.Model.Common.Sinal _sinal; - - private string _nome; - - [Log(true)] - public bool Ativo - { - get; - set; - } - - [Description("DESCRIÇÃO")] - [Log(true)] - [Name(true)] - public string Descricao - { - get - { - string str = this._descricao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._descricao = value; - string str = (this.Sinal == Gestor.Model.Common.Sinal.Credito ? "(+)" : "(-)"); - this.Nome = string.Concat(value.ToUpper(), " ", str); - } - } - - [Log(true)] - public string Nome - { - get - { - return this._nome.ToUpper(); - } - set - { - this._nome = value; - } - } - - [Log(true)] - public Gestor.Model.Domain.Financeiro.Plano Plano - { - get; - set; - } - - public bool Selecionado - { - get; - set; - } - - [Log(true)] - public Gestor.Model.Common.Sinal Sinal - { - get - { - return this._sinal; - } - set - { - this._sinal = value; - string str = (value == Gestor.Model.Common.Sinal.Credito ? "(+)" : "(-)"); - this.Nome = string.Concat(this.Descricao, " ", str); - } - } - - [Description("TIPO CONTA")] - [Log(true)] - public Gestor.Model.Domain.Financeiro.TipoConta TipoConta - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Planos plano = this; - return new Func<List<KeyValuePair<string, string>>>(plano.Validate); - } - } - - public Planos() - { - } - - public List<TupleList> Log() - { - string descricao; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("NOME", (string.IsNullOrWhiteSpace(this.Nome) ? "" : this.Nome), "") - }; - if (this.Plano == null) - { - descricao = ""; - } - else - { - Gestor.Model.Domain.Financeiro.Plano plano = this.Plano; - if (plano != null) - { - descricao = plano.Descricao; - } - else - { - descricao = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("PLANO", descricao, "")); - observableCollection.Add(new Tuple<string, string, string>("ATIVO", (this.Ativo ? "SIM" : "NÃO"), "")); - Gestor.Model.Common.Sinal sinal = this.Sinal; - observableCollection.Add(new Tuple<string, string, string>("SINAL", this.Sinal.GetDescription(), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - return tupleLists; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Descricao)) - { - keyValuePairs.AddValue<string, string>("Descricao", Messages.Obrigatorio, true); - } - if (this.Plano == null) - { - keyValuePairs.AddValue<string, string>("Plano", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/RelatorioLancamentos.cs b/Gestor.Model/Model.Domain.Financeiro/RelatorioLancamentos.cs deleted file mode 100644 index 6caa83a..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/RelatorioLancamentos.cs +++ /dev/null @@ -1,132 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro -{ - public class RelatorioLancamentos - { - [Description("DATA BAIXA")] - [Tipo("DATA?")] - public DateTime? Baixa - { - get; - set; - } - - [Description("CENTRO DE CUSTO")] - public string Centro - { - get; - set; - } - - [Description("COMPETÊNCIA")] - public string Competencia - { - get; - set; - } - - [Description("CONTA")] - public string Conta - { - get; - set; - } - - [Description("DOCUMENTO")] - public string Documento - { - get; - set; - } - - [Description("FORNECEDOR")] - public string Fornecedor - { - get; - set; - } - - [Description("HISTORICO")] - public string Historico - { - get; - set; - } - - [Description("OBSERVAÇÃO")] - public string Observacao - { - get; - set; - } - - [Description("PAGAMENTO")] - [Tipo("DATA?")] - public DateTime? Pagamento - { - get; - set; - } - - [Description("PARCELA")] - [Tipo("QUANTIDADE")] - public int Parcela - { - get; - set; - } - - [Description("PLANO DE CONTAS")] - public string Plano - { - get; - set; - } - - [Description("PLANOS")] - public string Planos - { - get; - set; - } - - [Description("SINAL")] - public string Sinal - { - get; - set; - } - - [Description("VALOR")] - [Tipo("VALOR")] - public decimal Valor - { - get; - set; - } - - [Description("VALOR PAGO")] - [Tipo("VALOR")] - public decimal? ValorPago - { - get; - set; - } - - [Description("VENCIMENTO")] - [Tipo("DATA")] - public DateTime Vencimento - { - get; - set; - } - - public RelatorioLancamentos() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/Relatorios/DadosFechamento.cs b/Gestor.Model/Model.Domain.Financeiro/Relatorios/DadosFechamento.cs deleted file mode 100644 index fdaa81c..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/Relatorios/DadosFechamento.cs +++ /dev/null @@ -1,82 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro.Relatorios -{ - public class DadosFechamento - { - private string _planos; - - [Description("TOTAL CRÉDITO")] - [Tipo("VALOR")] - public decimal Credito - { - get; - set; - } - - [Description("TOTAL DÉBITO")] - [Tipo("VALOR")] - public decimal Debito - { - get; - set; - } - - [Description("% CRÉDITO")] - [Tipo("PERCENTUAL")] - public decimal PercentualCredito - { - get; - set; - } - - [Description("% DÉBITO")] - [Tipo("PERCENTUAL")] - public decimal PercentualDebito - { - get; - set; - } - - [Description("PLANO DE CONTAS")] - public string Planos - { - get - { - string str = this._planos; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._planos = value; - } - } - - [Description("TOTAL CRÉDITO - TOTAL DÉBITO")] - [Tipo("VALOR")] - public decimal Soma - { - get; - set; - } - - [Description("% TOTAL DE CRÉDITO - % TOTAL DE DÉBITO")] - [Tipo("PERCENTUAL")] - public decimal SomaPercentual - { - get; - set; - } - - public DadosFechamento() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/Relatorios/DadosFechamentoAnalitico.cs b/Gestor.Model/Model.Domain.Financeiro/Relatorios/DadosFechamentoAnalitico.cs deleted file mode 100644 index 110118c..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/Relatorios/DadosFechamentoAnalitico.cs +++ /dev/null @@ -1,154 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro.Relatorios -{ - public class DadosFechamentoAnalitico - { - private string _nome; - - [Description("ABR")] - [Tipo("VALOR")] - public decimal? Abr - { - get; - set; - } - - [Description("AGO")] - [Tipo("VALOR")] - public decimal? Ago - { - get; - set; - } - - [Description("DEZ")] - [Tipo("VALOR")] - public decimal? Dez - { - get; - set; - } - - [Description("FEV")] - [Tipo("VALOR")] - public decimal? Fev - { - get; - set; - } - - [Description("JAN")] - [Tipo("VALOR")] - public decimal? Jan - { - get; - set; - } - - [Description("JUL")] - [Tipo("VALOR")] - public decimal? Jul - { - get; - set; - } - - [Description("JUN")] - [Tipo("VALOR")] - public decimal? Jun - { - get; - set; - } - - [Description("MAI")] - [Tipo("VALOR")] - public decimal? Mai - { - get; - set; - } - - [Description("MAR")] - [Tipo("VALOR")] - public decimal? Mar - { - get; - set; - } - - [Description("NOME")] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - [Description("NOV")] - [Tipo("VALOR")] - public decimal? Nov - { - get; - set; - } - - [Description("OUT")] - [Tipo("VALOR")] - public decimal? Out - { - get; - set; - } - - [Description("% CRÉDITO")] - [Tipo("PERCENTUAL")] - public decimal PercentualCredito - { - get; - set; - } - - [Description("% DÉBITO")] - [Tipo("PERCENTUAL")] - public decimal PercentualDebito - { - get; - set; - } - - [Description("SET")] - [Tipo("VALOR")] - public decimal? Set - { - get; - set; - } - - [Description("TOTAL")] - [Tipo("VALOR")] - public decimal? Total - { - get; - set; - } - - public DadosFechamentoAnalitico() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/Relatorios/FechamentoFinanceiro.cs b/Gestor.Model/Model.Domain.Financeiro/Relatorios/FechamentoFinanceiro.cs deleted file mode 100644 index 53c72ad..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/Relatorios/FechamentoFinanceiro.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro.Relatorios -{ - public class FechamentoFinanceiro - { - public List<DadosFechamento> Dados - { - get; - set; - } - - public string Plano - { - get; - set; - } - - public FechamentoFinanceiro() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/Relatorios/FechamentoFinanceiroAnalitico.cs b/Gestor.Model/Model.Domain.Financeiro/Relatorios/FechamentoFinanceiroAnalitico.cs deleted file mode 100644 index 73998d1..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/Relatorios/FechamentoFinanceiroAnalitico.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro.Relatorios -{ - public class FechamentoFinanceiroAnalitico - { - public List<DadosFechamentoAnalitico> Dados - { - get; - set; - } - - public string NomeConta - { - get; - set; - } - - public FechamentoFinanceiroAnalitico() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/Relatorios/FiltroFinanceiro.cs b/Gestor.Model/Model.Domain.Financeiro/Relatorios/FiltroFinanceiro.cs deleted file mode 100644 index 2f79ff0..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/Relatorios/FiltroFinanceiro.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro.Relatorios -{ - public class FiltroFinanceiro - { - public List<long> Centro - { - get; - set; - } - - public List<long> Conta - { - get; - set; - } - - public DateTime Fim - { - get; - set; - } - - public DateTime Inicio - { - get; - set; - } - - public List<long> Plano - { - get; - set; - } - - public List<long> Planos - { - get; - set; - } - - public string Referencia - { - get; - set; - } - - public FiltroFinanceiro() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/Saldo.cs b/Gestor.Model/Model.Domain.Financeiro/Saldo.cs deleted file mode 100644 index 59731d3..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/Saldo.cs +++ /dev/null @@ -1,89 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro -{ - public class Saldo : DomainBase, IDomain - { - [Log(true)] - public BancosContas Conta - { - get; - set; - } - - [Description("DATA FINAL")] - [Log(true)] - public DateTime? DataFinal - { - get; - set; - } - - [Description("DATA INÍCIO")] - [Log(true)] - public DateTime? DataInicio - { - get; - set; - } - - [Log(true)] - public string Extrato - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Saldo saldo = this; - return new Func<List<KeyValuePair<string, string>>>(saldo.Validate); - } - } - - [Description("VALOR FINAL")] - [Log(true)] - public decimal? ValorFinal - { - get; - set; - } - - [Description("VALOR INÍCIO")] - [Log(true)] - public decimal ValorInicio - { - get; - set; - } - - public Saldo() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.DataInicio.HasValue && (DateTime.Compare(this.DataInicio.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.DataInicio.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("DataInicio|ABERTURA", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.DataFinal.HasValue && (DateTime.Compare(this.DataFinal.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.DataFinal.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("DataFinal|FECHAMENTO", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/SinteticoFinanceiro.cs b/Gestor.Model/Model.Domain.Financeiro/SinteticoFinanceiro.cs deleted file mode 100644 index 190d4ea..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/SinteticoFinanceiro.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro -{ - public class SinteticoFinanceiro - { - public BancosContas Conta - { - get; - set; - } - - public decimal Credito - { - get; - set; - } - - public decimal Debito - { - get; - set; - } - - public int Filtrados - { - get; - set; - } - - public decimal Liquido - { - get; - set; - } - - public decimal LiquidoPago - { - get; - set; - } - - public decimal LiquidoSelecionados - { - get; - set; - } - - public int Selecionados - { - get; - set; - } - - public SinteticoFinanceiro() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/TipoConta.cs b/Gestor.Model/Model.Domain.Financeiro/TipoConta.cs deleted file mode 100644 index 8e8cb6c..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/TipoConta.cs +++ /dev/null @@ -1,62 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro -{ - public class TipoConta : DomainBase, IDomain - { - private string _descricao; - - public bool Ativo - { - get; - set; - } - - public string Descricao - { - get - { - string str = this._descricao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._descricao = value; - } - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - TipoConta tipoContum = this; - return new Func<List<KeyValuePair<string, string>>>(tipoContum.Validate); - } - } - - public TipoConta() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Descricao)) - { - keyValuePairs.AddValue<string, string>("Descricao", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Financeiro/Transferencia.cs b/Gestor.Model/Model.Domain.Financeiro/Transferencia.cs deleted file mode 100644 index 8a12c2c..0000000 --- a/Gestor.Model/Model.Domain.Financeiro/Transferencia.cs +++ /dev/null @@ -1,76 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Financeiro -{ - public class Transferencia - { - public DateTime Data - { - get; - set; - } - - public BancosContas Destino - { - get; - set; - } - - public BancosContas Origem - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - return new Func<List<KeyValuePair<string, string>>>(this.Validate); - } - } - - public decimal Valor - { - get; - set; - } - - public Transferencia() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.Origem == null) - { - keyValuePairs.AddValue<string, string>("Origem", Messages.Obrigatorio, true); - } - if (this.Destino == null) - { - keyValuePairs.AddValue<string, string>("Destino", Messages.Obrigatorio, true); - } - if (this.Origem != null && this.Destino != null && this.Origem.Id == this.Destino.Id) - { - keyValuePairs.AddValue<string, string>("CONTAS", "A CONTA DE ORIGEM NÃO PODE SER A MESMA QUE A DESTINO.", true); - } - if (DateTime.Compare(this.Data, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Data, new DateTime(9999, 12, 31)) > 0) - { - keyValuePairs.AddValue<string, string>("Data", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.Valor <= decimal.Zero) - { - keyValuePairs.AddValue<string, string>("Valor", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Generic/Diferenca.cs b/Gestor.Model/Model.Domain.Generic/Diferenca.cs deleted file mode 100644 index 1d0765f..0000000 --- a/Gestor.Model/Model.Domain.Generic/Diferenca.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -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; - } - - public Diferenca() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Generic/DomainBase.cs b/Gestor.Model/Model.Domain.Generic/DomainBase.cs deleted file mode 100644 index beef091..0000000 --- a/Gestor.Model/Model.Domain.Generic/DomainBase.cs +++ /dev/null @@ -1,1067 +0,0 @@ -using Gestor.Model.Attributes; -using Microsoft.CSharp.RuntimeBinder; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Linq.Expressions; -using System.Reflection; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Generic -{ - public abstract class DomainBase : ICloneable - { - private List<FieldInformation> _originalValues = new List<FieldInformation>(); - - public long Id - { - get; - set; - } - - protected DomainBase() - { - } - - public object Clone() - { - return this.MemberwiseClone(); - } - - public List<Diferenca> Compare() - { - List<FieldInformation> properties = this.GetProperties(); - List<Diferenca> diferencas3 = new List<Diferenca>(); - PropertyInfo[] propertyInfoArray = this.GetType().GetProperties(); - this._originalValues.ToList<FieldInformation>().ForEach((FieldInformation x) => { - Diferenca diferenca; - object target; - object obj; - object target1; - object obj1; - object target2; - object obj2; - object target3; - object obj3; - Diferenca diferenca1; - object target4; - object obj4; - FieldInformation fieldInformation = properties.FirstOrDefault<FieldInformation>((FieldInformation k) => k.Description == x.Description); - if (DomainBase.u003cu003eo__18.u003cu003ep__4 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__4 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsTrue, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 _u00210 = DomainBase.u003cu003eo__18.u003cu003ep__4.Target; - CallSite<Func<CallSite, object, bool>> u003cu003ep_4 = DomainBase.u003cu003eo__18.u003cu003ep__4; - if (DomainBase.u003cu003eo__18.u003cu003ep__0 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__0 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.None, ExpressionType.Equal, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.Constant, null) }))); - } - !0 _u002101 = DomainBase.u003cu003eo__18.u003cu003ep__0.Target; - CallSite<Func<CallSite, object, object, object>> u003cu003ep_0 = DomainBase.u003cu003eo__18.u003cu003ep__0; - FieldInformation fieldInformation1 = fieldInformation; - object value = _u002101(u003cu003ep_0, (fieldInformation1 != null ? fieldInformation1.Value : null), null); - if (DomainBase.u003cu003eo__18.u003cu003ep__3 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__3 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsFalse, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - if (DomainBase.u003cu003eo__18.u003cu003ep__3.Target(DomainBase.u003cu003eo__18.u003cu003ep__3, value)) - { - target = value; - } - else - { - if (DomainBase.u003cu003eo__18.u003cu003ep__2 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__2 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.BinaryOperationLogical, ExpressionType.And, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 _u002102 = DomainBase.u003cu003eo__18.u003cu003ep__2.Target; - CallSite<Func<CallSite, object, object, object>> u003cu003ep_2 = DomainBase.u003cu003eo__18.u003cu003ep__2; - object obj5 = value; - if (DomainBase.u003cu003eo__18.u003cu003ep__1 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__1 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.None, ExpressionType.Equal, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.Constant, null) }))); - } - target = _u002102(u003cu003ep_2, obj5, DomainBase.u003cu003eo__18.u003cu003ep__1.Target(DomainBase.u003cu003eo__18.u003cu003ep__1, x.Value, null)); - } - if (_u00210(u003cu003ep_4, target)) - { - return; - } - PropertyInfo propertyInfo = propertyInfoArray.FirstOrDefault<PropertyInfo>((PropertyInfo p) => p.Name == x.Name); - bool flag = (propertyInfo == null ? false : propertyInfo.GetCustomAttributes(typeof(ForceLogAttribute), true).Length != 0); - if (DomainBase.u003cu003eo__18.u003cu003ep__14 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__14 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsTrue, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 _u002103 = DomainBase.u003cu003eo__18.u003cu003ep__14.Target; - CallSite<Func<CallSite, object, bool>> u003cu003ep_14 = DomainBase.u003cu003eo__18.u003cu003ep__14; - if (DomainBase.u003cu003eo__18.u003cu003ep__5 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__5 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.None, ExpressionType.Equal, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.Constant, null) }))); - } - !0 _u002104 = DomainBase.u003cu003eo__18.u003cu003ep__5.Target; - CallSite<Func<CallSite, object, object, object>> u003cu003ep_5 = DomainBase.u003cu003eo__18.u003cu003ep__5; - fieldInformation1 = fieldInformation; - object target5 = _u002104(u003cu003ep_5, (fieldInformation1 != null ? fieldInformation1.Value : null), null); - if (DomainBase.u003cu003eo__18.u003cu003ep__8 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__8 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsFalse, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - if (DomainBase.u003cu003eo__18.u003cu003ep__8.Target(DomainBase.u003cu003eo__18.u003cu003ep__8, target5)) - { - obj = target5; - } - else - { - if (DomainBase.u003cu003eo__18.u003cu003ep__7 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__7 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.BinaryOperationLogical, ExpressionType.And, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 _u002105 = DomainBase.u003cu003eo__18.u003cu003ep__7.Target; - CallSite<Func<CallSite, object, object, object>> u003cu003ep_7 = DomainBase.u003cu003eo__18.u003cu003ep__7; - object obj6 = target5; - if (DomainBase.u003cu003eo__18.u003cu003ep__6 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__6 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.None, ExpressionType.NotEqual, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.Constant, null) }))); - } - obj = _u002105(u003cu003ep_7, obj6, DomainBase.u003cu003eo__18.u003cu003ep__6.Target(DomainBase.u003cu003eo__18.u003cu003ep__6, x.Value, null)); - } - value = obj; - if (DomainBase.u003cu003eo__18.u003cu003ep__13 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__13 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsFalse, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - if (DomainBase.u003cu003eo__18.u003cu003ep__13.Target(DomainBase.u003cu003eo__18.u003cu003ep__13, value)) - { - target1 = value; - } - else - { - if (DomainBase.u003cu003eo__18.u003cu003ep__12 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__12 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.BinaryOperationLogical, ExpressionType.And, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 target6 = DomainBase.u003cu003eo__18.u003cu003ep__12.Target; - CallSite<Func<CallSite, object, object, object>> u003cu003ep_12 = DomainBase.u003cu003eo__18.u003cu003ep__12; - object obj7 = value; - if (DomainBase.u003cu003eo__18.u003cu003ep__11 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__11 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.Not, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 _u002106 = DomainBase.u003cu003eo__18.u003cu003ep__11.Target; - CallSite<Func<CallSite, object, object>> u003cu003ep_11 = DomainBase.u003cu003eo__18.u003cu003ep__11; - if (DomainBase.u003cu003eo__18.u003cu003ep__10 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__10 = CallSite<Func<CallSite, Type, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "IsNullOrWhiteSpace", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.IsStaticType, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 target7 = DomainBase.u003cu003eo__18.u003cu003ep__10.Target; - CallSite<Func<CallSite, Type, object, object>> u003cu003ep_10 = DomainBase.u003cu003eo__18.u003cu003ep__10; - Type type = typeof(string); - if (DomainBase.u003cu003eo__18.u003cu003ep__9 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__9 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - target1 = target6(u003cu003ep_12, obj7, _u002106(u003cu003ep_11, target7(u003cu003ep_10, type, DomainBase.u003cu003eo__18.u003cu003ep__9.Target(DomainBase.u003cu003eo__18.u003cu003ep__9, x.Value)))); - } - if (_u002103(u003cu003ep_14, target1)) - { - List<Diferenca> diferencas = diferencas3; - diferenca = new Diferenca() - { - Campo = x.Name, - Descricao = x.Description - }; - Diferenca diferenca2 = diferenca; - if (DomainBase.u003cu003eo__18.u003cu003ep__16 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__16 = CallSite<Func<CallSite, object, string>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(DomainBase))); - } - !0 _u002107 = DomainBase.u003cu003eo__18.u003cu003ep__16.Target; - CallSite<Func<CallSite, object, string>> u003cu003ep_16 = DomainBase.u003cu003eo__18.u003cu003ep__16; - if (DomainBase.u003cu003eo__18.u003cu003ep__15 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__15 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - diferenca2.ValorAnterior = _u002107(u003cu003ep_16, DomainBase.u003cu003eo__18.u003cu003ep__15.Target(DomainBase.u003cu003eo__18.u003cu003ep__15, x.Value)); - diferenca.ValorAtual = null; - diferencas.Add(diferenca); - return; - } - if (DomainBase.u003cu003eo__18.u003cu003ep__26 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__26 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsTrue, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 target8 = DomainBase.u003cu003eo__18.u003cu003ep__26.Target; - CallSite<Func<CallSite, object, bool>> u003cu003ep_26 = DomainBase.u003cu003eo__18.u003cu003ep__26; - if (DomainBase.u003cu003eo__18.u003cu003ep__17 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__17 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.None, ExpressionType.NotEqual, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.Constant, null) }))); - } - target5 = DomainBase.u003cu003eo__18.u003cu003ep__17.Target(DomainBase.u003cu003eo__18.u003cu003ep__17, fieldInformation.Value, null); - if (DomainBase.u003cu003eo__18.u003cu003ep__20 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__20 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsFalse, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - if (DomainBase.u003cu003eo__18.u003cu003ep__20.Target(DomainBase.u003cu003eo__18.u003cu003ep__20, target5)) - { - obj1 = target5; - } - else - { - if (DomainBase.u003cu003eo__18.u003cu003ep__19 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__19 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.BinaryOperationLogical, ExpressionType.And, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 _u002108 = DomainBase.u003cu003eo__18.u003cu003ep__19.Target; - CallSite<Func<CallSite, object, object, object>> u003cu003ep_19 = DomainBase.u003cu003eo__18.u003cu003ep__19; - object obj8 = target5; - if (DomainBase.u003cu003eo__18.u003cu003ep__18 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__18 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.None, ExpressionType.Equal, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.Constant, null) }))); - } - obj1 = _u002108(u003cu003ep_19, obj8, DomainBase.u003cu003eo__18.u003cu003ep__18.Target(DomainBase.u003cu003eo__18.u003cu003ep__18, x.Value, null)); - } - value = obj1; - if (DomainBase.u003cu003eo__18.u003cu003ep__25 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__25 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsFalse, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - if (DomainBase.u003cu003eo__18.u003cu003ep__25.Target(DomainBase.u003cu003eo__18.u003cu003ep__25, value)) - { - target2 = value; - } - else - { - if (DomainBase.u003cu003eo__18.u003cu003ep__24 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__24 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.BinaryOperationLogical, ExpressionType.And, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 target9 = DomainBase.u003cu003eo__18.u003cu003ep__24.Target; - CallSite<Func<CallSite, object, object, object>> u003cu003ep_24 = DomainBase.u003cu003eo__18.u003cu003ep__24; - object obj9 = value; - if (DomainBase.u003cu003eo__18.u003cu003ep__23 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__23 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.Not, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 _u002109 = DomainBase.u003cu003eo__18.u003cu003ep__23.Target; - CallSite<Func<CallSite, object, object>> u003cu003ep_23 = DomainBase.u003cu003eo__18.u003cu003ep__23; - if (DomainBase.u003cu003eo__18.u003cu003ep__22 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__22 = CallSite<Func<CallSite, Type, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "IsNullOrWhiteSpace", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.IsStaticType, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 target10 = DomainBase.u003cu003eo__18.u003cu003ep__22.Target; - CallSite<Func<CallSite, Type, object, object>> u003cu003ep_22 = DomainBase.u003cu003eo__18.u003cu003ep__22; - Type type1 = typeof(string); - if (DomainBase.u003cu003eo__18.u003cu003ep__21 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__21 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - target2 = target9(u003cu003ep_24, obj9, _u002109(u003cu003ep_23, target10(u003cu003ep_22, type1, DomainBase.u003cu003eo__18.u003cu003ep__21.Target(DomainBase.u003cu003eo__18.u003cu003ep__21, fieldInformation.Value)))); - } - if (target8(u003cu003ep_26, target2)) - { - List<Diferenca> diferencas1 = diferencas3; - diferenca = new Diferenca() - { - Campo = x.Name, - Descricao = x.Description, - ValorAnterior = null - }; - Diferenca diferenca3 = diferenca; - if (DomainBase.u003cu003eo__18.u003cu003ep__28 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__28 = CallSite<Func<CallSite, object, string>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(DomainBase))); - } - !0 _u0021010 = DomainBase.u003cu003eo__18.u003cu003ep__28.Target; - CallSite<Func<CallSite, object, string>> u003cu003ep_28 = DomainBase.u003cu003eo__18.u003cu003ep__28; - if (DomainBase.u003cu003eo__18.u003cu003ep__27 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__27 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - diferenca3.ValorAtual = _u0021010(u003cu003ep_28, DomainBase.u003cu003eo__18.u003cu003ep__27.Target(DomainBase.u003cu003eo__18.u003cu003ep__27, fieldInformation.Value)); - diferencas1.Add(diferenca); - return; - } - if (DomainBase.u003cu003eo__18.u003cu003ep__34 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__34 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsTrue, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 target11 = DomainBase.u003cu003eo__18.u003cu003ep__34.Target; - CallSite<Func<CallSite, object, bool>> u003cu003ep_34 = DomainBase.u003cu003eo__18.u003cu003ep__34; - if (DomainBase.u003cu003eo__18.u003cu003ep__31 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__31 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.None, ExpressionType.Equal, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 _u0021011 = DomainBase.u003cu003eo__18.u003cu003ep__31.Target; - CallSite<Func<CallSite, object, object, object>> u003cu003ep_31 = DomainBase.u003cu003eo__18.u003cu003ep__31; - if (DomainBase.u003cu003eo__18.u003cu003ep__29 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__29 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - object obj10 = DomainBase.u003cu003eo__18.u003cu003ep__29.Target(DomainBase.u003cu003eo__18.u003cu003ep__29, fieldInformation.Value); - if (DomainBase.u003cu003eo__18.u003cu003ep__30 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__30 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - value = _u0021011(u003cu003ep_31, obj10, DomainBase.u003cu003eo__18.u003cu003ep__30.Target(DomainBase.u003cu003eo__18.u003cu003ep__30, x.Value)); - if (DomainBase.u003cu003eo__18.u003cu003ep__33 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__33 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsFalse, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - if (DomainBase.u003cu003eo__18.u003cu003ep__33.Target(DomainBase.u003cu003eo__18.u003cu003ep__33, value)) - { - obj2 = value; - } - else - { - if (DomainBase.u003cu003eo__18.u003cu003ep__32 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__32 = CallSite<Func<CallSite, object, bool, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.BinaryOperationLogical, ExpressionType.And, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null) }))); - } - obj2 = DomainBase.u003cu003eo__18.u003cu003ep__32.Target(DomainBase.u003cu003eo__18.u003cu003ep__32, value, !flag); - } - if (target11(u003cu003ep_34, obj2)) - { - return; - } - List<Diferenca> diferencas2 = diferencas3; - if (DomainBase.u003cu003eo__18.u003cu003ep__35 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__35 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "GetType", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - if (DomainBase.u003cu003eo__18.u003cu003ep__35.Target(DomainBase.u003cu003eo__18.u003cu003ep__35, x.Value) is DateTime) - { - diferenca = new Diferenca() - { - Campo = x.Name, - Descricao = x.Description - }; - Diferenca diferenca4 = diferenca; - if (DomainBase.u003cu003eo__18.u003cu003ep__37 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__37 = CallSite<Func<CallSite, object, string>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(DomainBase))); - } - !0 target12 = DomainBase.u003cu003eo__18.u003cu003ep__37.Target; - CallSite<Func<CallSite, object, string>> u003cu003ep_37 = DomainBase.u003cu003eo__18.u003cu003ep__37; - value = x.Value; - if (value != null) - { - if (DomainBase.u003cu003eo__18.u003cu003ep__36 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__36 = CallSite<Func<CallSite, object, string, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null) }))); - } - target3 = DomainBase.u003cu003eo__18.u003cu003ep__36.Target(DomainBase.u003cu003eo__18.u003cu003ep__36, value, "G"); - } - else - { - target3 = null; - } - diferenca4.ValorAnterior = target12(u003cu003ep_37, target3); - Diferenca diferenca5 = diferenca; - if (DomainBase.u003cu003eo__18.u003cu003ep__39 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__39 = CallSite<Func<CallSite, object, string>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(DomainBase))); - } - !0 _u0021012 = DomainBase.u003cu003eo__18.u003cu003ep__39.Target; - CallSite<Func<CallSite, object, string>> u003cu003ep_39 = DomainBase.u003cu003eo__18.u003cu003ep__39; - value = fieldInformation.Value; - if (value != null) - { - if (DomainBase.u003cu003eo__18.u003cu003ep__38 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__38 = CallSite<Func<CallSite, object, string, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null) }))); - } - obj3 = DomainBase.u003cu003eo__18.u003cu003ep__38.Target(DomainBase.u003cu003eo__18.u003cu003ep__38, value, "G"); - } - else - { - obj3 = null; - } - diferenca5.ValorAtual = _u0021012(u003cu003ep_39, obj3); - diferenca1 = diferenca; - } - else - { - diferenca = new Diferenca() - { - Campo = x.Name, - Descricao = x.Description - }; - Diferenca diferenca6 = diferenca; - if (DomainBase.u003cu003eo__18.u003cu003ep__41 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__41 = CallSite<Func<CallSite, object, string>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(DomainBase))); - } - !0 target13 = DomainBase.u003cu003eo__18.u003cu003ep__41.Target; - CallSite<Func<CallSite, object, string>> u003cu003ep_41 = DomainBase.u003cu003eo__18.u003cu003ep__41; - value = x.Value; - if (value != null) - { - if (DomainBase.u003cu003eo__18.u003cu003ep__40 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__40 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - target4 = DomainBase.u003cu003eo__18.u003cu003ep__40.Target(DomainBase.u003cu003eo__18.u003cu003ep__40, value); - } - else - { - target4 = null; - } - diferenca6.ValorAnterior = target13(u003cu003ep_41, target4); - Diferenca diferenca7 = diferenca; - if (DomainBase.u003cu003eo__18.u003cu003ep__43 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__43 = CallSite<Func<CallSite, object, string>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(DomainBase))); - } - !0 _u0021013 = DomainBase.u003cu003eo__18.u003cu003ep__43.Target; - CallSite<Func<CallSite, object, string>> u003cu003ep_43 = DomainBase.u003cu003eo__18.u003cu003ep__43; - value = fieldInformation.Value; - if (value != null) - { - if (DomainBase.u003cu003eo__18.u003cu003ep__42 == null) - { - DomainBase.u003cu003eo__18.u003cu003ep__42 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - obj4 = DomainBase.u003cu003eo__18.u003cu003ep__42.Target(DomainBase.u003cu003eo__18.u003cu003ep__42, value); - } - else - { - obj4 = null; - } - diferenca7.ValorAtual = _u0021013(u003cu003ep_43, obj4); - diferenca1 = diferenca; - } - diferencas2.Add(diferenca1); - }); - return diferencas3; - } - - public List<Diferenca> Compare(List<ValorOriginal> valoresOriginais) - { - List<FieldInformation> properties = this.GetProperties(); - List<Diferenca> diferencas2 = new List<Diferenca>(); - PropertyInfo[] propertyInfoArray = this.GetType().GetProperties(); - valoresOriginais.ForEach((ValorOriginal x) => { - Diferenca diferenca; - object target; - object obj; - object target1; - object obj1; - object target2; - object obj2; - object target3; - object obj3; - object target4; - Diferenca diferenca1; - string str; - object obj4; - FieldInformation fieldInformation = properties.First<FieldInformation>((FieldInformation k) => k.Name == x.Campo); - if (DomainBase.u003cu003eo__19.u003cu003ep__3 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__3 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsTrue, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 _u00210 = DomainBase.u003cu003eo__19.u003cu003ep__3.Target; - CallSite<Func<CallSite, object, bool>> u003cu003ep_3 = DomainBase.u003cu003eo__19.u003cu003ep__3; - if (DomainBase.u003cu003eo__19.u003cu003ep__0 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__0 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.None, ExpressionType.Equal, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.Constant, null) }))); - } - object value = DomainBase.u003cu003eo__19.u003cu003ep__0.Target(DomainBase.u003cu003eo__19.u003cu003ep__0, fieldInformation.Value, null); - if (DomainBase.u003cu003eo__19.u003cu003ep__2 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__2 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsFalse, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - if (DomainBase.u003cu003eo__19.u003cu003ep__2.Target(DomainBase.u003cu003eo__19.u003cu003ep__2, value)) - { - target = value; - } - else - { - if (DomainBase.u003cu003eo__19.u003cu003ep__1 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__1 = CallSite<Func<CallSite, object, bool, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.BinaryOperationLogical, ExpressionType.And, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null) }))); - } - target = DomainBase.u003cu003eo__19.u003cu003ep__1.Target(DomainBase.u003cu003eo__19.u003cu003ep__1, value, x.ValorAtual == null); - } - if (_u00210(u003cu003ep_3, target)) - { - return; - } - PropertyInfo propertyInfo = propertyInfoArray.FirstOrDefault<PropertyInfo>((PropertyInfo p) => p.Name == x.Campo); - bool flag = (propertyInfo == null ? false : propertyInfo.GetCustomAttributes(typeof(ForceLogAttribute), true).Length != 0); - if (DomainBase.u003cu003eo__19.u003cu003ep__9 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__9 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsTrue, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 _u002101 = DomainBase.u003cu003eo__19.u003cu003ep__9.Target; - CallSite<Func<CallSite, object, bool>> u003cu003ep_9 = DomainBase.u003cu003eo__19.u003cu003ep__9; - if (DomainBase.u003cu003eo__19.u003cu003ep__4 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__4 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.None, ExpressionType.Equal, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.Constant, null) }))); - } - object target5 = DomainBase.u003cu003eo__19.u003cu003ep__4.Target(DomainBase.u003cu003eo__19.u003cu003ep__4, fieldInformation.Value, null); - if (DomainBase.u003cu003eo__19.u003cu003ep__6 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__6 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsFalse, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - if (DomainBase.u003cu003eo__19.u003cu003ep__6.Target(DomainBase.u003cu003eo__19.u003cu003ep__6, target5)) - { - obj = target5; - } - else - { - if (DomainBase.u003cu003eo__19.u003cu003ep__5 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__5 = CallSite<Func<CallSite, object, bool, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.BinaryOperationLogical, ExpressionType.And, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null) }))); - } - obj = DomainBase.u003cu003eo__19.u003cu003ep__5.Target(DomainBase.u003cu003eo__19.u003cu003ep__5, target5, x.ValorAtual != null); - } - value = obj; - if (DomainBase.u003cu003eo__19.u003cu003ep__8 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__8 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsFalse, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - if (DomainBase.u003cu003eo__19.u003cu003ep__8.Target(DomainBase.u003cu003eo__19.u003cu003ep__8, value)) - { - target1 = value; - } - else - { - if (DomainBase.u003cu003eo__19.u003cu003ep__7 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__7 = CallSite<Func<CallSite, object, bool, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.BinaryOperationLogical, ExpressionType.And, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null) }))); - } - target1 = DomainBase.u003cu003eo__19.u003cu003ep__7.Target(DomainBase.u003cu003eo__19.u003cu003ep__7, value, !string.IsNullOrWhiteSpace(x.ValorAtual)); - } - if (_u002101(u003cu003ep_9, target1)) - { - diferencas2.Add(new Diferenca() - { - Campo = x.Campo, - Descricao = fieldInformation.Description, - ValorAnterior = x.ValorAtual, - ValorAtual = null - }); - return; - } - if (DomainBase.u003cu003eo__19.u003cu003ep__18 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__18 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsTrue, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 _u002102 = DomainBase.u003cu003eo__19.u003cu003ep__18.Target; - CallSite<Func<CallSite, object, bool>> u003cu003ep_18 = DomainBase.u003cu003eo__19.u003cu003ep__18; - if (DomainBase.u003cu003eo__19.u003cu003ep__10 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__10 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.None, ExpressionType.NotEqual, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.Constant, null) }))); - } - target5 = DomainBase.u003cu003eo__19.u003cu003ep__10.Target(DomainBase.u003cu003eo__19.u003cu003ep__10, fieldInformation.Value, null); - if (DomainBase.u003cu003eo__19.u003cu003ep__12 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__12 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsFalse, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - if (DomainBase.u003cu003eo__19.u003cu003ep__12.Target(DomainBase.u003cu003eo__19.u003cu003ep__12, target5)) - { - obj1 = target5; - } - else - { - if (DomainBase.u003cu003eo__19.u003cu003ep__11 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__11 = CallSite<Func<CallSite, object, bool, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.BinaryOperationLogical, ExpressionType.And, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null) }))); - } - obj1 = DomainBase.u003cu003eo__19.u003cu003ep__11.Target(DomainBase.u003cu003eo__19.u003cu003ep__11, target5, x.ValorAtual == null); - } - value = obj1; - if (DomainBase.u003cu003eo__19.u003cu003ep__17 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__17 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsFalse, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - if (DomainBase.u003cu003eo__19.u003cu003ep__17.Target(DomainBase.u003cu003eo__19.u003cu003ep__17, value)) - { - target2 = value; - } - else - { - if (DomainBase.u003cu003eo__19.u003cu003ep__16 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__16 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.BinaryOperationLogical, ExpressionType.And, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 _u002103 = DomainBase.u003cu003eo__19.u003cu003ep__16.Target; - CallSite<Func<CallSite, object, object, object>> u003cu003ep_16 = DomainBase.u003cu003eo__19.u003cu003ep__16; - object obj5 = value; - if (DomainBase.u003cu003eo__19.u003cu003ep__15 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__15 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.Not, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 _u002104 = DomainBase.u003cu003eo__19.u003cu003ep__15.Target; - CallSite<Func<CallSite, object, object>> u003cu003ep_15 = DomainBase.u003cu003eo__19.u003cu003ep__15; - if (DomainBase.u003cu003eo__19.u003cu003ep__14 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__14 = CallSite<Func<CallSite, Type, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "IsNullOrWhiteSpace", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.IsStaticType, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 _u002105 = DomainBase.u003cu003eo__19.u003cu003ep__14.Target; - CallSite<Func<CallSite, Type, object, object>> u003cu003ep_14 = DomainBase.u003cu003eo__19.u003cu003ep__14; - Type type = typeof(string); - if (DomainBase.u003cu003eo__19.u003cu003ep__13 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__13 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - target2 = _u002103(u003cu003ep_16, obj5, _u002104(u003cu003ep_15, _u002105(u003cu003ep_14, type, DomainBase.u003cu003eo__19.u003cu003ep__13.Target(DomainBase.u003cu003eo__19.u003cu003ep__13, fieldInformation.Value)))); - } - if (_u002102(u003cu003ep_18, target2)) - { - List<Diferenca> diferencas = diferencas2; - diferenca = new Diferenca() - { - Campo = x.Campo, - Descricao = fieldInformation.Description, - ValorAnterior = null - }; - Diferenca diferenca2 = diferenca; - if (DomainBase.u003cu003eo__19.u003cu003ep__20 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__20 = CallSite<Func<CallSite, object, string>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(DomainBase))); - } - !0 target6 = DomainBase.u003cu003eo__19.u003cu003ep__20.Target; - CallSite<Func<CallSite, object, string>> u003cu003ep_20 = DomainBase.u003cu003eo__19.u003cu003ep__20; - if (DomainBase.u003cu003eo__19.u003cu003ep__19 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__19 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - diferenca2.ValorAtual = target6(u003cu003ep_20, DomainBase.u003cu003eo__19.u003cu003ep__19.Target(DomainBase.u003cu003eo__19.u003cu003ep__19, fieldInformation.Value)); - diferencas.Add(diferenca); - return; - } - if (DomainBase.u003cu003eo__19.u003cu003ep__28 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__28 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsTrue, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 _u002106 = DomainBase.u003cu003eo__19.u003cu003ep__28.Target; - CallSite<Func<CallSite, object, bool>> u003cu003ep_28 = DomainBase.u003cu003eo__19.u003cu003ep__28; - if (DomainBase.u003cu003eo__19.u003cu003ep__21 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__21 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.None, ExpressionType.NotEqual, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.Constant, null) }))); - } - target5 = DomainBase.u003cu003eo__19.u003cu003ep__21.Target(DomainBase.u003cu003eo__19.u003cu003ep__21, fieldInformation.Value, null); - if (DomainBase.u003cu003eo__19.u003cu003ep__25 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__25 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsFalse, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - if (DomainBase.u003cu003eo__19.u003cu003ep__25.Target(DomainBase.u003cu003eo__19.u003cu003ep__25, target5)) - { - obj2 = target5; - } - else - { - if (DomainBase.u003cu003eo__19.u003cu003ep__24 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__24 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.BinaryOperationLogical, ExpressionType.And, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 target7 = DomainBase.u003cu003eo__19.u003cu003ep__24.Target; - CallSite<Func<CallSite, object, object, object>> u003cu003ep_24 = DomainBase.u003cu003eo__19.u003cu003ep__24; - object obj6 = target5; - if (DomainBase.u003cu003eo__19.u003cu003ep__23 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__23 = CallSite<Func<CallSite, object, string, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.None, ExpressionType.Equal, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null) }))); - } - !0 _u002107 = DomainBase.u003cu003eo__19.u003cu003ep__23.Target; - CallSite<Func<CallSite, object, string, object>> u003cu003ep_23 = DomainBase.u003cu003eo__19.u003cu003ep__23; - if (DomainBase.u003cu003eo__19.u003cu003ep__22 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__22 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - obj2 = target7(u003cu003ep_24, obj6, _u002107(u003cu003ep_23, DomainBase.u003cu003eo__19.u003cu003ep__22.Target(DomainBase.u003cu003eo__19.u003cu003ep__22, fieldInformation.Value), x.ValorAtual)); - } - value = obj2; - if (DomainBase.u003cu003eo__19.u003cu003ep__27 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__27 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsFalse, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - if (DomainBase.u003cu003eo__19.u003cu003ep__27.Target(DomainBase.u003cu003eo__19.u003cu003ep__27, value)) - { - target3 = value; - } - else - { - if (DomainBase.u003cu003eo__19.u003cu003ep__26 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__26 = CallSite<Func<CallSite, object, bool, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.BinaryOperationLogical, ExpressionType.And, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null) }))); - } - target3 = DomainBase.u003cu003eo__19.u003cu003ep__26.Target(DomainBase.u003cu003eo__19.u003cu003ep__26, value, !flag); - } - if (_u002106(u003cu003ep_28, target3)) - { - return; - } - List<Diferenca> diferencas1 = diferencas2; - value = fieldInformation.Value; - if (value != null) - { - if (DomainBase.u003cu003eo__19.u003cu003ep__29 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__29 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "GetType", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - obj3 = DomainBase.u003cu003eo__19.u003cu003ep__29.Target(DomainBase.u003cu003eo__19.u003cu003ep__29, value); - } - else - { - obj3 = null; - } - if (obj3 is DateTime) - { - diferenca = new Diferenca() - { - Campo = x.Campo, - Descricao = x.Descricao, - ValorAnterior = x.ValorAtual - }; - Diferenca diferenca3 = diferenca; - if (DomainBase.u003cu003eo__19.u003cu003ep__31 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__31 = CallSite<Func<CallSite, object, string>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(DomainBase))); - } - !0 target8 = DomainBase.u003cu003eo__19.u003cu003ep__31.Target; - CallSite<Func<CallSite, object, string>> u003cu003ep_31 = DomainBase.u003cu003eo__19.u003cu003ep__31; - value = fieldInformation.Value; - if (value != null) - { - if (DomainBase.u003cu003eo__19.u003cu003ep__30 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__30 = CallSite<Func<CallSite, object, string, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null) }))); - } - target4 = DomainBase.u003cu003eo__19.u003cu003ep__30.Target(DomainBase.u003cu003eo__19.u003cu003ep__30, value, "G"); - } - else - { - target4 = null; - } - diferenca3.ValorAtual = target8(u003cu003ep_31, target4); - diferenca1 = diferenca; - } - else - { - diferenca = new Diferenca() - { - Campo = x.Campo, - Descricao = x.Descricao - }; - Diferenca diferenca4 = diferenca; - string valorAtual = x.ValorAtual; - if (valorAtual != null) - { - str = valorAtual.ToString(); - } - else - { - str = null; - } - diferenca4.ValorAnterior = str; - Diferenca diferenca5 = diferenca; - if (DomainBase.u003cu003eo__19.u003cu003ep__33 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__33 = CallSite<Func<CallSite, object, string>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(DomainBase))); - } - !0 _u002108 = DomainBase.u003cu003eo__19.u003cu003ep__33.Target; - CallSite<Func<CallSite, object, string>> u003cu003ep_33 = DomainBase.u003cu003eo__19.u003cu003ep__33; - value = fieldInformation.Value; - if (value != null) - { - if (DomainBase.u003cu003eo__19.u003cu003ep__32 == null) - { - DomainBase.u003cu003eo__19.u003cu003ep__32 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - obj4 = DomainBase.u003cu003eo__19.u003cu003ep__32.Target(DomainBase.u003cu003eo__19.u003cu003ep__32, value); - } - else - { - obj4 = null; - } - diferenca5.ValorAtual = _u002108(u003cu003ep_33, obj4); - diferenca1 = diferenca; - } - diferencas1.Add(diferenca1); - }); - return diferencas2; - } - - public static void Copy<TU, T>(TU dest, T source) - { - List<PropertyInfo> list = ( - from in (IEnumerable<PropertyInfo>)typeof(T).GetProperties() - where x.CanRead - select ).ToList<PropertyInfo>(); - List<PropertyInfo> propertyInfos = ( - from in (IEnumerable<PropertyInfo>)typeof(TU).GetProperties() - where x.CanWrite - select ).ToList<PropertyInfo>(); - foreach (PropertyInfo propertyInfo in list) - { - if (!propertyInfos.Any<PropertyInfo>((PropertyInfo x) => x.Name == propertyInfo.Name)) - { - continue; - } - propertyInfos.First<PropertyInfo>((PropertyInfo x) => x.Name == propertyInfo.Name).SetValue(dest, propertyInfo.GetValue(source, null), null); - } - } - - private bool GetDefaultAttribute(PropertyInfo info) - { - return info.GetCustomAttributes(typeof(NameAttribute), true).Length != 0; - } - - private string GetDescriptionAttribute(PropertyInfo info) - { - if (info == null) - { - return ""; - } - object[] customAttributes = info.GetCustomAttributes(typeof(DescriptionAttribute), true); - if (customAttributes.Length == 0) - { - return info.Name.ToUpper(); - } - return ((DescriptionAttribute)customAttributes[0]).Description; - } - - private bool? GetLogAttribute(PropertyInfo info) - { - object[] customAttributes = info.GetCustomAttributes(typeof(LogAttribute), true); - if (customAttributes.Length == 0) - { - return null; - } - return new bool?(((LogAttribute)customAttributes[0]).Description); - } - - public List<FieldInformation> GetProperties(object obj) - { - return obj.GetType().GetProperties().Where<PropertyInfo>((PropertyInfo x) => { - if (this.HasValidate(x.GetValue(obj))) - { - return false; - } - return this.GetLogAttribute(x).GetValueOrDefault(); - }).Select<PropertyInfo, FieldInformation>((PropertyInfo key) => new FieldInformation() - { - Name = key.Name, - Description = this.GetDescriptionAttribute(key), - Value = key.GetValue(obj) - }).ToList<FieldInformation>(); - } - - public List<FieldInformation> GetProperties() - { - List<FieldInformation> fieldInformations = new List<FieldInformation>(); - this.GetType().GetProperties().ToList<PropertyInfo>().ForEach((PropertyInfo x) => { - if (x.Name == "ValidationEvent") - { - return; - } - bool? logAttribute = this.GetLogAttribute(x); - if (logAttribute.HasValue) - { - bool? nullable = logAttribute; - if (!nullable.GetValueOrDefault() & nullable.HasValue) - { - return; - } - } - object value = x.GetValue(this); - if (this.HasValidate(value)) - { - fieldInformations.AddRange(this.GetPropertiesChield(value, this.GetDescriptionAttribute(x), logAttribute, true)); - } - else - { - FieldInformation property = this.GetProperty(x, value, logAttribute, null); - if (property != null) - { - fieldInformations.Add(property); - return; - } - } - }); - return fieldInformations; - } - - private List<FieldInformation> GetPropertiesChield(dynamic obj, string description, bool? log, bool defaultInfo = false) - { - List<FieldInformation> fieldInformations = new List<FieldInformation>(); - if (obj == (dynamic)null) - { - return fieldInformations; - } - foreach (dynamic obj1 in (IEnumerable)obj.GetType().GetProperties()) - { - if (obj1.Name == "ValidationEvent") - { - continue; - } - if ((!defaultInfo ? defaultInfo : defaultInfo & (dynamic)(!this.GetDefaultAttribute(obj1)))) - { - continue; - } - log = (bool?)this.GetLogAttribute(obj1); - if (log.HasValue) - { - bool? nullable = log; - if (!nullable.GetValueOrDefault() & nullable.HasValue) - { - continue; - } - } - dynamic obj2 = obj1.GetValue(obj); - dynamic obj3 = obj2 != (dynamic)null; - if ((!obj3 ? obj3 == null : (obj3 & this.HasValidate(obj2)) == 0)) - { - dynamic obj4 = this.GetProperty(obj1, obj2, log, description); - if (obj4 == (dynamic)null) - { - continue; - } - fieldInformations.Add(obj4); - } - else - { - fieldInformations.AddRange(this.GetPropertiesChield(obj2, this.GetDescriptionAttribute(obj1), log, true)); - } - } - return fieldInformations; - } - - public FieldInformation GetProperty(PropertyInfo property, dynamic value, bool? log, string description = null) - { - if (log.HasValue) - { - bool? nullable = log; - if (!(!nullable.GetValueOrDefault() & nullable.HasValue)) - { - return new FieldInformation() - { - Name = property.Name, - Description = description ?? this.GetDescriptionAttribute(property), - Value = value - }; - } - } - return null; - } - - public List<ValorOriginal> GetValorOriginal() - { - return this.GetProperties().Select<FieldInformation, ValorOriginal>((FieldInformation x) => { - object value; - object target; - ValorOriginal valorOriginal = new ValorOriginal() - { - Campo = x.Name, - Descricao = x.Description - }; - ValorOriginal valorOriginal1 = valorOriginal; - if (DomainBase.u003cu003eo__17.u003cu003ep__5 == null) - { - DomainBase.u003cu003eo__17.u003cu003ep__5 = CallSite<Func<CallSite, object, string>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(DomainBase))); - } - !0 _u00210 = DomainBase.u003cu003eo__17.u003cu003ep__5.Target; - CallSite<Func<CallSite, object, string>> u003cu003ep_5 = DomainBase.u003cu003eo__17.u003cu003ep__5; - if (DomainBase.u003cu003eo__17.u003cu003ep__1 == null) - { - DomainBase.u003cu003eo__17.u003cu003ep__1 = CallSite<Func<CallSite, object, bool>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsTrue, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - !0 target1 = DomainBase.u003cu003eo__17.u003cu003ep__1.Target; - CallSite<Func<CallSite, object, bool>> u003cu003ep_1 = DomainBase.u003cu003eo__17.u003cu003ep__1; - if (DomainBase.u003cu003eo__17.u003cu003ep__0 == null) - { - DomainBase.u003cu003eo__17.u003cu003ep__0 = CallSite<Func<CallSite, object, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.BinaryOperation(CSharpBinderFlags.None, ExpressionType.NotEqual, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.Constant, null) }))); - } - if (target1(u003cu003ep_1, DomainBase.u003cu003eo__17.u003cu003ep__0.Target(DomainBase.u003cu003eo__17.u003cu003ep__0, x.Value, null))) - { - if (DomainBase.u003cu003eo__17.u003cu003ep__2 == null) - { - DomainBase.u003cu003eo__17.u003cu003ep__2 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "GetType", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - if (DomainBase.u003cu003eo__17.u003cu003ep__2.Target(DomainBase.u003cu003eo__17.u003cu003ep__2, x.Value) is DateTime) - { - value = x.Value; - if (value != null) - { - if (DomainBase.u003cu003eo__17.u003cu003ep__3 == null) - { - DomainBase.u003cu003eo__17.u003cu003ep__3 = CallSite<Func<CallSite, object, string, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null) }))); - } - target = DomainBase.u003cu003eo__17.u003cu003ep__3.Target(DomainBase.u003cu003eo__17.u003cu003ep__3, value, "G"); - } - else - { - target = null; - } - } - else - { - value = x.Value; - if (value != null) - { - if (DomainBase.u003cu003eo__17.u003cu003ep__4 == null) - { - DomainBase.u003cu003eo__17.u003cu003ep__4 = CallSite<Func<CallSite, object, object>>.Create(Microsoft.CSharp.RuntimeBinder.Binder.InvokeMember(CSharpBinderFlags.None, "ToString", null, typeof(DomainBase), (IEnumerable<CSharpArgumentInfo>)(new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) }))); - } - target = DomainBase.u003cu003eo__17.u003cu003ep__4.Target(DomainBase.u003cu003eo__17.u003cu003ep__4, value); - } - else - { - target = null; - } - } - } - else - { - target = null; - } - valorOriginal1.ValorAtual = _u00210(u003cu003ep_5, target); - return valorOriginal; - }).ToList<ValorOriginal>(); - } - - public bool HasChange() - { - List<FieldInformation> properties = this.GetProperties(); - List<FieldInformation> fieldInformations = this._originalValues; - return !properties.All<FieldInformation>(new Func<FieldInformation, bool>(fieldInformations.Contains)); - } - - public bool HasChange(string property) - { - IEnumerable<FieldInformation> name = - from x in this._originalValues - where x.Name == property - select x; - return !this.GetProperties().All<FieldInformation>(new Func<FieldInformation, bool>(name.Contains<FieldInformation>)); - } - - public bool HasProperty(object objectToCheck, string propertyName) - { - if (objectToCheck == null) - { - return false; - } - return objectToCheck.GetType().GetProperty(propertyName) != null; - } - - public bool HasValidate(object objectToCheck) - { - if (objectToCheck == null) - { - return false; - } - return objectToCheck.GetType().GetProperty("ValidationEvent") != null; - } - - public void Initialize() - { - this._originalValues = this.GetProperties(); - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Generic/EmailBase.cs b/Gestor.Model/Model.Domain.Generic/EmailBase.cs deleted file mode 100644 index 96eccc8..0000000 --- a/Gestor.Model/Model.Domain.Generic/EmailBase.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Gestor.Model.Attributes; -using System; - -namespace Gestor.Model.Domain.Generic -{ - public class EmailBase : DomainBase - { - private string _email; - - [Log(true)] - public string Email - { - get - { - string str = this._email; - if (str == null) - { - return null; - } - return str.ToLower().Trim(); - } - set - { - this._email = value; - } - } - - public EmailBase() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Generic/EnderecoBase.cs b/Gestor.Model/Model.Domain.Generic/EnderecoBase.cs deleted file mode 100644 index 964fb70..0000000 --- a/Gestor.Model/Model.Domain.Generic/EnderecoBase.cs +++ /dev/null @@ -1,128 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using System.Text.RegularExpressions; - -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 Bairro - { - get - { - return this._bairro; - } - set - { - this._bairro = value; - } - } - - [Log(true)] - public string Cep - { - get - { - if (this._cep == null || !Regex.IsMatch(this._cep, "[0-9]+")) - { - return ""; - } - return this._cep.Trim(); - } - set - { - this._cep = value; - } - } - - [Log(true)] - public string Cidade - { - get - { - return this._cidade; - } - set - { - this._cidade = value; - } - } - - [Log(true)] - public string Complemento - { - get; - set; - } - - [Description("ENDEREÇO")] - [Log(true)] - public string Endereco - { - get - { - return this._endereco; - } - set - { - this._endereco = value; - } - } - - [Log(true)] - public string Estado - { - get - { - string str = this._estado; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._estado = value; - } - } - - [Description("NÚMERO")] - [Log(true)] - public string Numero - { - get - { - string str = this._numero; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._numero = value; - } - } - - public EnderecoBase() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Generic/FieldInformation.cs b/Gestor.Model/Model.Domain.Generic/FieldInformation.cs deleted file mode 100644 index de124b5..0000000 --- a/Gestor.Model/Model.Domain.Generic/FieldInformation.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Generic -{ - public class FieldInformation - { - public string Description - { - get; - set; - } - - public string Name - { - get; - set; - } - - public dynamic Value - { - get; - set; - } - - public FieldInformation() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Generic/IDomain.cs b/Gestor.Model/Model.Domain.Generic/IDomain.cs deleted file mode 100644 index c6a2ca0..0000000 --- a/Gestor.Model/Model.Domain.Generic/IDomain.cs +++ /dev/null @@ -1,15 +0,0 @@ -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(); - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Generic/TelefoneBase.cs b/Gestor.Model/Model.Domain.Generic/TelefoneBase.cs deleted file mode 100644 index 23f0cbe..0000000 --- a/Gestor.Model/Model.Domain.Generic/TelefoneBase.cs +++ /dev/null @@ -1,82 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Generic -{ - public class TelefoneBase : DomainBase - { - private string _numero; - - private string _prefixo; - - [Log(true)] - public string Numero - { - get - { - string str = this._numero; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._numero = value; - } - } - - [Log(true)] - public string Prefixo - { - get - { - string str = this._prefixo; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._prefixo = value; - } - } - - [Log(true)] - public TipoTelefone? Tipo - { - get; - set; - } - - public TelefoneBase() - { - } - - public List<KeyValuePair<string, string>> ValidateBase(bool obrigatorio = true) - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (!this.Tipo.HasValue || this.Tipo.GetValueOrDefault() == TipoTelefone.Gratuita || this.Tipo.GetValueOrDefault() == TipoTelefone.Internacional || this.Tipo.GetValueOrDefault() == TipoTelefone.Outros || this.Tipo.GetValueOrDefault() == TipoTelefone.Whatsapp || this.Tipo.GetValueOrDefault() == TipoTelefone.TarifaUnica || this.Tipo.GetValueOrDefault() == TipoTelefone.Comercial) - { - return keyValuePairs; - } - if (!string.IsNullOrWhiteSpace(this.Prefixo) && !this.Prefixo.ValidacaoPrefixo()) - { - keyValuePairs.AddValue<string, string>("Prefixo|DDD", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.Numero) && !this.Numero.ValidacaoTelefone()) - { - keyValuePairs.AddValue<string, string>("Numero|TELEFONE", Messages.Invalido, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Generic/ValorOriginal.cs b/Gestor.Model/Model.Domain.Generic/ValorOriginal.cs deleted file mode 100644 index 7e2dbb3..0000000 --- a/Gestor.Model/Model.Domain.Generic/ValorOriginal.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Generic -{ - public class ValorOriginal - { - public string Campo - { - get; - set; - } - - public string Descricao - { - get; - set; - } - - public string ValorAtual - { - get; - set; - } - - public ValorOriginal() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.MalaDireta/Copia.cs b/Gestor.Model/Model.Domain.MalaDireta/Copia.cs deleted file mode 100644 index 6701405..0000000 --- a/Gestor.Model/Model.Domain.MalaDireta/Copia.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.MalaDireta -{ - public class Copia - { - public List<string> CopiaComum - { - get; - set; - } - - public List<string> CopiaOculta - { - get; - set; - } - - public Copia() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.MalaDireta/MalaDireta.cs b/Gestor.Model/Model.Domain.MalaDireta/MalaDireta.cs deleted file mode 100644 index 67f8dcd..0000000 --- a/Gestor.Model/Model.Domain.MalaDireta/MalaDireta.cs +++ /dev/null @@ -1,118 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Common; -using Gestor.Model.Domain.Seguros; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.MalaDireta -{ - public class MalaDireta - { - public Documento Apolice - { - get; - set; - } - - public List<IndiceArquivoDigital> ArquivoDigital - { - get; - set; - } - - public string Assunto - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Cliente Cliente - { - get; - set; - } - - public Gestor.Model.Domain.MalaDireta.Copia Copia - { - get; - set; - } - - public string Corpo - { - get; - set; - } - - public string Email - { - get; - set; - } - - public bool? Enviado - { - get; - set; - } - - public string InfoEnvio - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Item Item - { - get; - set; - } - - public int Ordem - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Parcela Parcela - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Prospeccao Prospeccao - { - get; - set; - } - - public Gestor.Model.Common.Relatorio Relatorio - { - get; - set; - } - - public bool Selecionado - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Sinistro Sinistro - { - get; - set; - } - - public TipoTela Tela - { - get; - set; - } - - public MalaDireta() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.MalaDireta/ModeloMalaDireta.cs b/Gestor.Model/Model.Domain.MalaDireta/ModeloMalaDireta.cs deleted file mode 100644 index 1a3ce4a..0000000 --- a/Gestor.Model/Model.Domain.MalaDireta/ModeloMalaDireta.cs +++ /dev/null @@ -1,53 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.MalaDireta -{ - public class ModeloMalaDireta : DomainBase, IDomain - { - public string Assunto - { - get; - set; - } - - public string Corpo - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - ModeloMalaDireta modeloMalaDiretum = this; - return new Func<List<KeyValuePair<string, string>>>(modeloMalaDiretum.Validate); - } - } - - public ModeloMalaDireta() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Assunto)) - { - keyValuePairs.AddValue<string, string>("Assunto", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(this.Corpo)) - { - keyValuePairs.AddValue<string, string>("Corpo", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.MalaDireta/VariaveisMalaDireta.cs b/Gestor.Model/Model.Domain.MalaDireta/VariaveisMalaDireta.cs deleted file mode 100644 index 8794d13..0000000 --- a/Gestor.Model/Model.Domain.MalaDireta/VariaveisMalaDireta.cs +++ /dev/null @@ -1,87 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.Domain.MalaDireta -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum VariaveisMalaDireta - { - [Description("DATA ATUAL")] - [Entity("<|DATA|>")] - Data, - [Description("NOME DO CLIENTE")] - [Entity("<|CLIENTE|>")] - Cliente, - [Description("CPF/CNPJ")] - [Entity("<|CPFCNPJ|>")] - Documento, - [Description("NÚMERO PROPOSTA")] - [Entity("<|PROPOSTA|>")] - Proposta, - [Description("NÚMERO APÓLICE")] - [Entity("<|APOLICE|>")] - Apolice, - [Description("RAMO")] - [Entity("<|RAMO|>")] - Ramo, - [Description("SEGURADORA")] - [Entity("<|SEGURADORA|>")] - Seguradora, - [Description("VIGÊNCIA INICIAL")] - [Entity("<|VIGENCIA1|>")] - Vigencia1, - [Description("VIGÊNCIA FINAL")] - [Entity("<|VIGENCIA2|>")] - Vigencia2, - [Description("VENCIMENTO PARCELA")] - [Entity("<|VENCIMENTO|>")] - Vencimento, - [Description("VALOR PARCELA")] - [Entity("<|VALOR|>")] - Valor, - [Description("DESCRIÇÃO ITEM")] - [Entity("<|ITEM|>")] - Item, - [Description("NÚMERO SINISTRO")] - [Entity("<|SINISTRO|>")] - Sinistro, - [Description("NÚMERO DA PARCELA")] - [Entity("<|NUMPARCELA|>")] - NumParcela, - [Description("ANIVERSÁRIO")] - [Entity("<|ANIVERSARIO|>")] - Aniversario, - [Description("NASCIMENTO")] - [Entity("<|NASCIMENTO|>")] - Nascimento, - [Description("VENCIMENTO CNH")] - [Entity("<|VENCTOCNH|>")] - VencimentoCnh, - [Description("LINK ASSINATURA ELETRÔNICA")] - [Entity("<|LINKASSINATURA|>")] - LinkAssinatura, - [Description("LINK CARTÃO ELETRÔNICO")] - [Entity("<|LINKVISITA|>")] - LinkVisita, - [Description("LINK CARTÃO ASSISTÊNCIA")] - [Entity("<|LINKASSISTENCIA|>")] - LinkAssistencia, - [Description("PRÊMIO LIQUIDO")] - [Entity("<|LIQUIDO|>")] - Liquido, - [Description("PRÊMIO TOTAL")] - [Entity("<|TOTAL|>")] - Total, - [Description("FORMA DE PAGAMENTO")] - [Entity("<|PAGAMENTO|>")] - Pagamento, - [Description("NÚMERO DE PARCELAS")] - [Entity("<|NUMERODEPARCELAS|>")] - NumDeParcelas, - [Description("VALOR DAS PARCELAS")] - [Entity("<|VALORDASPARCELAS|>")] - ValorDasParcelas - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/ApolicePendente/ApolicePendente.cs b/Gestor.Model/Model.Domain.Relatorios/ApolicePendente/ApolicePendente.cs deleted file mode 100644 index 76c9930..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/ApolicePendente/ApolicePendente.cs +++ /dev/null @@ -1,244 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Seguros; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.ApolicePendente -{ - public class ApolicePendente - { - [Description("AGÊNCIA")] - public string Agencia - { - get; - set; - } - - [Description("BANCO")] - public string Banco - { - get; - set; - } - - [Description("CLIENTE")] - public string Cliente - { - get; - set; - } - - [Description("COMISSÃO")] - [Tipo("PERCENTUAL")] - public decimal Comissao - { - get; - set; - } - - [Description("CONTA")] - public string Conta - { - get; - set; - } - - [Description("DATA CONTROLE")] - public DateTime? DataControle - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Documento Documento - { - get; - set; - } - - [Description("DOCUMENTO DO CLIENTE")] - public string DocumentoCli - { - get; - set; - } - - [Description("FILIAL")] - public string Empresa - { - get; - set; - } - - [Description("ESTIPULANTE")] - public string Estipulante - { - get; - set; - } - - [Tipo("INVALID")] - public long IdEmpresa - { - get; - set; - } - - [Description("ITEM")] - public string Item - { - get; - set; - } - - [Description("TIPO RENOVAÇÃO")] - public string Negocio - { - get; - set; - } - - [Description("PASTA")] - public string Pasta - { - get; - set; - } - - [Description("PASTA CLIENTE")] - public string PastaCliente - { - get; - set; - } - - [Description("PEDIDO ENDOSSO")] - public string PedidoEndosso - { - get; - set; - } - - [Description("PENDÊNCIA (DIAS)")] - public int Pendencia - { - get; - set; - } - - [Description("PRÊMIO LÍQUIDO")] - [Tipo("VALOR")] - public decimal PremioLiquido - { - get; - set; - } - - [Description("PRÊMIO TOTAL")] - [Tipo("VALOR")] - public decimal PremioTotal - { - get; - set; - } - - [Description("PRODUTO")] - public string Produto - { - get; - set; - } - - [Description("PROPOSTA")] - public string Proposta - { - get; - set; - } - - [Description("RAMO")] - public string Ramo - { - get; - set; - } - - [Description("SEGURADORA")] - public string Seguradora - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("STATUS")] - public string Status - { - get; - set; - } - - [Description("STATUS APÓLICE")] - public string StatusApolice - { - get; - set; - } - - [Tipo("INVALID")] - public int Tipo - { - get; - set; - } - - [Description("TODOS VENDEDORES")] - public string TodosVendedores - { - get; - set; - } - - [Description("VENDEDOR PRINCIPAL")] - public string Vendedor - { - get; - set; - } - - [Description("VIGÊNCIA FINAL")] - [Tipo("DATA?")] - public DateTime? VigenciaFinal - { - get; - set; - } - - [Description("VIGÊNCIA INICIAL")] - [Tipo("DATA")] - public DateTime VigenciaInicial - { - get; - set; - } - - [Tipo("INVALID")] - public bool Vinculo - { - get; - set; - } - - public ApolicePendente() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/ApolicePendente/ContainerApolicePendente.cs b/Gestor.Model/Model.Domain.Relatorios/ApolicePendente/ContainerApolicePendente.cs deleted file mode 100644 index fe24dcf..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/ApolicePendente/ContainerApolicePendente.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Gestor.Model.Domain.Relatorios; -using System; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.ApolicePendente -{ - public class ContainerApolicePendente - { - public string Agrupamento - { - get; - set; - } - - public ObservableCollection<Gestor.Model.Domain.Relatorios.ApolicePendente.ApolicePendente> Analitico - { - get; - set; - } - - public ObservableCollection<Gestor.Model.Domain.Relatorios.Sintetico> Sintetico - { - get; - set; - } - - public ContainerApolicePendente() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Auditoria/Auditoria.cs b/Gestor.Model/Model.Domain.Relatorios/Auditoria/Auditoria.cs deleted file mode 100644 index cd00b0e..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Auditoria/Auditoria.cs +++ /dev/null @@ -1,221 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Seguros; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Auditoria -{ - public class Auditoria - { - [Description("APÓLICE")] - public string Apolice - { - get; - set; - } - - [Description("CLIENTE")] - public string Cliente - { - get; - set; - } - - [Description("COMISSÃO")] - [Tipo("PERCENTUAL")] - public decimal Comissao - { - get; - set; - } - - [Description("COMISSÃO PENDENTE")] - [Tipo("VALOR")] - public decimal ComissaoPendente - { - get; - set; - } - - [Description("COMISSÃO PREVISTA")] - [Tipo("VALOR")] - public decimal ComissaoPrevista - { - get; - set; - } - - [Description("COMISSÃO RECEBIDA")] - [Tipo("VALOR")] - public decimal ComissaoRecebida - { - get; - set; - } - - [Description("RECEBIDO POR COMPLETO")] - public string Completo - { - get; - set; - } - - [Description("DATA CONTROLE")] - [Tipo("DATA?")] - public DateTime? DataControle - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Documento Documento - { - get; - set; - } - - [Description("ENDOSSO")] - public string Endosso - { - get; - set; - } - - [Description("ESTIPULANTE")] - public string Estipulante - { - get; - set; - } - - [Description("ITEM")] - public string Item - { - get; - set; - } - - [Description("PASTA")] - public string Pasta - { - get; - set; - } - - [Description("PASTA CLIENTE")] - public string PastaCliente - { - get; - set; - } - - [Description("PRÊMIO ADICIONAL")] - [Tipo("VALOR")] - public decimal PremioAdicional - { - get; - set; - } - - [Description("PRÊMIO LÍQUIDO")] - [Tipo("VALOR")] - public decimal PremioLiquido - { - get; - set; - } - - [Description("PRÊMIO TOTAL")] - [Tipo("VALOR")] - public decimal PremioTotal - { - get; - set; - } - - [Description("PRODUTO")] - public string Produto - { - get; - set; - } - - [Description("RAMO")] - public string Ramo - { - get; - set; - } - - [Description("SEGURADORA")] - public string Seguradora - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("STATUS")] - public string Status - { - get; - set; - } - - [Description("STATUS APÓLICE")] - public string StatusApolice - { - get; - set; - } - - [Tipo("INVALID")] - public int Tipo - { - get; - set; - } - - [Description("TODOS VENDEDORES")] - public string TodosVendedores - { - get; - set; - } - - [Description("VENDEDOR PRINCIPAL")] - public string Vendedor - { - get; - set; - } - - [Description("VIGÊNCIA FINAL")] - [Tipo("DATA?")] - public DateTime? VigenciaFinal - { - get; - set; - } - - [Description("VIGÊNCIA INICIAL")] - [Tipo("DATA")] - public DateTime VigenciaInicial - { - get; - set; - } - - public Auditoria() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/CartaoSegurado.cs b/Gestor.Model/Model.Domain.Relatorios/CartaoSegurado.cs deleted file mode 100644 index e0edb18..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/CartaoSegurado.cs +++ /dev/null @@ -1,60 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios -{ - public class CartaoSegurado - { - public string Apolice - { - get; - set; - } - - public string Assistencia - { - get; - set; - } - - public string Item - { - get; - set; - } - - public string LinkApolice - { - get; - set; - } - - public string Nome - { - get; - set; - } - - public string Seguradora - { - get; - set; - } - - public string TelefoneCorretor - { - get; - set; - } - - public string Vigencia - { - get; - set; - } - - public CartaoSegurado() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Classificacao/Classificacao.cs b/Gestor.Model/Model.Domain.Relatorios/Classificacao/Classificacao.cs deleted file mode 100644 index adc8ba7..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Classificacao/Classificacao.cs +++ /dev/null @@ -1,71 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Seguros; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Classificacao -{ - public class Classificacao - { - [Description("ATIVO")] - public string Ativo - { - get; - set; - } - - [Description("COMISSÃO")] - public string Comissao - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Cliente EntidadeCliente - { - get; - set; - } - - [Description("GERAL")] - public string Geral - { - get; - set; - } - - [Description("NOME")] - public string Nome - { - get; - set; - } - - [Description("PREMIO LIQUIDO")] - public string Premioliquido - { - get; - set; - } - - [Description("RESULTADO")] - public string Resultado - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - public Classificacao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Cliente/SinteticoClientes.cs b/Gestor.Model/Model.Domain.Relatorios/Cliente/SinteticoClientes.cs deleted file mode 100644 index a3ca90d..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Cliente/SinteticoClientes.cs +++ /dev/null @@ -1,28 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Cliente -{ - public class SinteticoClientes - { - public string Descricao - { - get; - set; - } - - [Description("TOTAL DE CLIENTES")] - [Tipo("QUANTIDADE")] - public decimal Total - { - get; - set; - } - - public SinteticoClientes() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/ClientesAtivosInativos/ClientesAtivosInativos.cs b/Gestor.Model/Model.Domain.Relatorios/ClientesAtivosInativos/ClientesAtivosInativos.cs deleted file mode 100644 index 26cf93b..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/ClientesAtivosInativos/ClientesAtivosInativos.cs +++ /dev/null @@ -1,477 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Seguros; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -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; - - [Description("ANIVERSÁRIO")] - public string Aniversario - { - get; - set; - } - - [Description("ATIVO")] - public string Ativo - { - get; - set; - } - - [Description("BAIRRO")] - public string Bairro - { - get - { - return this._bairro; - } - set - { - string upper; - if (value != null) - { - string str = value.Trim(); - if (str != null) - { - upper = str.ToUpper(); - } - else - { - upper = null; - } - } - else - { - upper = null; - } - this._bairro = upper; - } - } - - [Description("CEP")] - public string Cep - { - get; - set; - } - - [Description("CIDADE")] - public string Cidade - { - get - { - return this._cidade; - } - set - { - string upper; - if (value != null) - { - string str = value.Trim(); - if (str != null) - { - upper = str.ToUpper(); - } - else - { - upper = null; - } - } - else - { - upper = null; - } - this._cidade = upper; - } - } - - [Description("CLIENTE DESDE")] - [Tipo("DATA?")] - public DateTime? ClienteDesde - { - get; - set; - } - - [Description("COMPLEMENTO")] - public string Complemento - { - get - { - return this._complemento; - } - set - { - string upper; - if (value != null) - { - string str = value.Trim(); - if (str != null) - { - upper = str.ToUpper(); - } - else - { - upper = null; - } - } - else - { - upper = null; - } - this._complemento = upper; - } - } - - [Description("CPF/CNPJ")] - public string Documento - { - get; - set; - } - - [Description("E-MAIL")] - public string Email - { - get - { - return this._email; - } - set - { - string lower; - if (value != null) - { - string str = value.Trim(); - if (str != null) - { - lower = str.ToLower(); - } - else - { - lower = null; - } - } - else - { - lower = null; - } - this._email = lower; - } - } - - [Description("FILIAL")] - public string Empresa - { - get; - set; - } - - [Description("ENDEREÇO")] - public string Endereco - { - get - { - return this._endereco; - } - set - { - string upper; - if (value != null) - { - string str = value.Trim(); - if (str != null) - { - upper = str.ToUpper(); - } - else - { - upper = null; - } - } - else - { - upper = null; - } - this._endereco = upper; - } - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Cliente EntidadeCliente - { - get; - set; - } - - [Description("ESTADO")] - public string Estado - { - get - { - return this._estado; - } - set - { - string upper; - if (value != null) - { - string str = value.Trim(); - if (str != null) - { - upper = str.ToUpper(); - } - else - { - upper = null; - } - } - else - { - upper = null; - } - this._estado = upper; - } - } - - [Description("ESTADO CIVIL")] - public string EstadoCivil - { - get; - set; - } - - [Description("ESTIPULANTES")] - public string Estipulantes - { - get; - set; - } - - [Description("ID")] - [Tipo("INVALID")] - public long Id - { - get; - set; - } - - [Description("ANOS DE IDADE")] - [Tipo("QUANTIDADE?")] - public int? Idade - { - get; - set; - } - - [Tipo("INVALID")] - public long IdEmpresa - { - get; - set; - } - - [Description("NASCIMENTO")] - [Tipo("DATA?")] - public DateTime? Nascimento - { - get; - set; - } - - [Description("CLIENTE")] - public string Nome - { - get - { - return this._nome; - } - set - { - string upper; - if (value != null) - { - string str = value.Trim(); - if (str != null) - { - upper = str.ToUpper(); - } - else - { - upper = null; - } - } - else - { - upper = null; - } - this._nome = upper; - } - } - - [Description("NÚMERO")] - public string Numero - { - get; - set; - } - - [Description("PARENTESCO")] - public string Parentesco - { - get; - set; - } - - [Description("PASTA CLIENTE")] - public string PastaCliente - { - get; - set; - } - - [Description("PROFISSÃO")] - public string Profissao - { - get; - set; - } - - [Description("RAMO")] - public string Ramo - { - get - { - return this._ramo; - } - set - { - string upper; - if (value != null) - { - string str = value.Trim(); - if (str != null) - { - upper = str.ToUpper(); - } - else - { - upper = null; - } - } - else - { - upper = null; - } - this._ramo = upper; - } - } - - [Description("RECEBER E-MAIL")] - public string RecebeEmail - { - get; - set; - } - - [Description("RENDA MENSAL")] - [Tipo("VALOR")] - public decimal RendaMensal - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("SEXO")] - public string Sexo - { - get; - set; - } - - [Description("TELEFONE")] - public string Telefone - { - get; - set; - } - - [Description("TIPO DE PESSOA")] - public string TipoPessoa - { - get; - set; - } - - [Description("VENCIMENTO CNH")] - [Tipo("DATA?")] - public DateTime? VencimentoCnh - { - get; - set; - } - - [Description("VENDEDOR")] - public string Vendedor - { - get - { - return this._vendedor; - } - set - { - string upper; - if (value != null) - { - string str = value.Trim(); - if (str != null) - { - upper = str.ToUpper(); - } - else - { - upper = null; - } - } - else - { - upper = null; - } - this._vendedor = upper; - } - } - - public ClientesAtivosInativos() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/ClientesAtivosInativos/SinteticoClientesAtivosInativos.cs b/Gestor.Model/Model.Domain.Relatorios/ClientesAtivosInativos/SinteticoClientesAtivosInativos.cs deleted file mode 100644 index 78dabab..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/ClientesAtivosInativos/SinteticoClientesAtivosInativos.cs +++ /dev/null @@ -1,44 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.ClientesAtivosInativos -{ - public class SinteticoClientesAtivosInativos - { - [Description("TOTAL DE CLIENTES ATIVOS")] - [Tipo("QUANTIDADE")] - public decimal Ativos - { - get; - set; - } - - public string Descricao - { - get; - set; - } - - [Description("TOTAL DE CLIENTES INATIVOS")] - [Tipo("QUANTIDADE")] - public decimal Inativos - { - get; - set; - } - - [Description("TOTAL DE CLIENTES")] - [Tipo("QUANTIDADE")] - public decimal Total - { - get; - set; - } - - public SinteticoClientesAtivosInativos() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Comissao/Comissao.cs b/Gestor.Model/Model.Domain.Relatorios/Comissao/Comissao.cs deleted file mode 100644 index 2c756f1..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Comissao/Comissao.cs +++ /dev/null @@ -1,345 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Seguros; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Comissao -{ - public class Comissao - { - [Description("APÓLICE")] - public string Apolice - { - get; - set; - } - - [Description("CLIENTE")] - public string Cliente - { - get; - set; - } - - [Description("COMISSÃO APÓLICE")] - [Tipo("PERCENTUAL")] - public decimal ComissaoApolice - { - get; - set; - } - - [Description("RECEBIMENTO BRUTO")] - [Tipo("VALOR")] - public decimal ComissaoBruta - { - get; - set; - } - - [Description("COMISSÃO PARCELA")] - [Tipo("PERCENTUAL")] - public decimal ComissaoPerc - { - get; - set; - } - - [Description("COMISSÃO RECEBIDA")] - [Tipo("VALOR")] - public decimal ComissaoRecebida - { - get; - set; - } - - [Description("DATA PARCELA CONTROLE")] - [Tipo("DATA?")] - public DateTime? Controle - { - get; - set; - } - - [Description("DATA CONTROLE")] - [Tipo("DATA?")] - public DateTime? DataControle - { - get; - set; - } - - [Description("DESCONTO")] - [Tipo("VALOR")] - public decimal Desconto - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Documento Documento - { - get; - set; - } - - [Description("FILIAL")] - public string Empresa - { - get; - set; - } - - [Description("ENDOSSO")] - public string Endosso - { - get; - set; - } - - [Description("ESTIPULANTE")] - public string Estipulante - { - get; - set; - } - - public long IdEmpresa - { - get; - set; - } - - [Description("VALOR IR")] - [Tipo("VALOR")] - public decimal Ir - { - get; - set; - } - - [Description("VALOR ISS")] - [Tipo("VALOR")] - public decimal Iss - { - get; - set; - } - - [Description("ITEM")] - public string Item - { - get; - set; - } - - [Description("TIPO RENOVAÇÃO")] - public string Negocio - { - get; - set; - } - - [Description("OUTROS")] - [Tipo("VALOR")] - public decimal Outros - { - get; - set; - } - - [Description("PARCELA")] - public string Parcela - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Parcela ParcelaEntity - { - get; - set; - } - - [Description("PASTA")] - public string Pasta - { - get; - set; - } - - [Description("PASTA CLIENTE")] - public string PastaCliente - { - get; - set; - } - - [Description("PRÊMIO LÍQUIDO")] - [Tipo("VALOR")] - public decimal PremioLiquido - { - get; - set; - } - - [Description("PRÊMIO TOTAL")] - [Tipo("VALOR")] - public decimal PremioTotal - { - get; - set; - } - - [Description("PRODUTO")] - public string Produto - { - get; - set; - } - - [Description("DATA QUITAÇÃO")] - [Tipo("DATA?")] - public DateTime? Quitacao - { - get; - set; - } - - [Description("RAMO")] - public string Ramo - { - get; - set; - } - - [Description("RECEBIMENTO")] - [Tipo("DATA?")] - public DateTime? Recebimento - { - get; - set; - } - - [Description("REPASSE")] - [Tipo("VALOR")] - public decimal Repasse - { - get; - set; - } - - [Description("SEGURADORA")] - public string Seguradora - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("STATUS")] - public string Status - { - get; - set; - } - - [Description("STATUS APÓLICE")] - public string StatusApolice - { - get; - set; - } - - [Description("TIPO DE PARCELA")] - [Tipo("ENUM")] - public Gestor.Model.Common.SubTipo SubTipo - { - get; - set; - } - - [Description("TIPO")] - public string TipoDocumento - { - get; - set; - } - - [Description("TODOS VENDEDORES")] - public string TodosVendedores - { - get; - set; - } - - [Description("COMISSÃO GERADA")] - [Tipo("VALOR")] - public decimal ValorComissao - { - get; - set; - } - - [Description("VALOR LÍQUIDO PARCELA")] - [Tipo("VALOR")] - public decimal ValorLiquido - { - get; - set; - } - - [Description("VALOR REALIZADO")] - [Tipo("VALOR")] - public decimal ValorRealizado - { - get; - set; - } - - [Description("VENCIMENTO")] - [Tipo("DATA")] - public DateTime Vencimento - { - get; - set; - } - - [Description("VENDEDOR PRINCIPAL")] - public string Vendedor - { - get; - set; - } - - [Description("VIGÊNCIA FINAL")] - [Tipo("DATA?")] - public DateTime? VigenciaFinal - { - get; - set; - } - - [Description("VIGÊNCIA INICIAL")] - [Tipo("DATA")] - public DateTime VigenciaInicial - { - get; - set; - } - - public Comissao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Comissao/SinteticoComissao.cs b/Gestor.Model/Model.Domain.Relatorios/Comissao/SinteticoComissao.cs deleted file mode 100644 index 91b39a2..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Comissao/SinteticoComissao.cs +++ /dev/null @@ -1,68 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Comissao -{ - public class SinteticoComissao - { - [Description("QUANTIDADE DE APÓLICES")] - [Tipo("QUANTIDADE")] - public int Apolices - { - get; - set; - } - - [Description("SOMA COMISSÃO RECEBIDA")] - [Tipo("VALOR")] - public decimal Comissao - { - get; - set; - } - - public string Descricao - { - get; - set; - } - - [Description("QUANTIDADE DE ENDOSSOS")] - [Tipo("QUANTIDADE")] - public int Endossos - { - get; - set; - } - - [Description("SOMA REPASSE")] - [Tipo("VALOR")] - public decimal Repasse - { - get; - set; - } - - [Description("TOTAL DE DOCUMENTOS")] - [Tipo("QUANTIDADE")] - public int Total - { - get; - set; - } - - [Description("SOMA VALOR LÍQUIDO")] - [Tipo("VALOR")] - public decimal ValorLiquido - { - get; - set; - } - - public SinteticoComissao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/CriticaApolice/ApoliceCritica.cs b/Gestor.Model/Model.Domain.Relatorios/CriticaApolice/ApoliceCritica.cs deleted file mode 100644 index 07c87d7..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/CriticaApolice/ApoliceCritica.cs +++ /dev/null @@ -1,123 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Seguros; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.CriticaApolice -{ - public class ApoliceCritica - { - [Description("APÓLICE")] - public string Apolice - { - get; - set; - } - - [Description("CLIENTE")] - public string Cliente - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.CriticaApolice Critica - { - get; - set; - } - - [Description("DATA CRÍTICA")] - [Tipo("DATA?")] - public DateTime? Criticado - { - get; - set; - } - - [Description("DATA IMPORTAÇÃO")] - [Tipo("DATA")] - public DateTime Importado - { - get; - set; - } - - [Description("PENDÊNCIA")] - public string Pendencia - { - get; - set; - } - - [Description("PROPOSTA")] - public string Proposta - { - get; - set; - } - - [Description("PROPOSTA ENDOSSO")] - public string PropostaEndosso - { - get; - set; - } - - [Description("RAMO")] - public string Ramo - { - get; - set; - } - - [Description("SEGURADORA")] - public string Seguradora - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("TIPO DOCUMENTO")] - public string Tipo - { - get; - set; - } - - [Description("USUÁRIO CRÍTICA")] - public string UsuarioCritica - { - get; - set; - } - - [Description("USUÁRIO IMPORTAÇÃO")] - public string UsuarioImportacao - { - get; - set; - } - - [Description("VIGÊNCIA INICIAL")] - [Tipo("DATA")] - public DateTime VigenciaInicial - { - get; - set; - } - - public ApoliceCritica() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/DadosRelatorio.cs b/Gestor.Model/Model.Domain.Relatorios/DadosRelatorio.cs deleted file mode 100644 index 693a344..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/DadosRelatorio.cs +++ /dev/null @@ -1,312 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Seguros; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios -{ - public class DadosRelatorio - { - [Description("Nº AGÊNCIA")] - public string Agencia - { - get; - set; - } - - [Description("APÓLICE")] - [Width("150")] - public string Apolice - { - get; - set; - } - - [Description("BANCO")] - public string Banco - { - get; - set; - } - - [Description("CLIENTE")] - [Width("200")] - public string Cliente - { - get; - set; - } - - [Description("COMISSÃO")] - [Tipo("PERCENTUAL")] - [Width("70")] - public decimal? Comissao - { - get; - set; - } - - [Description("% REPASSE")] - [Tipo("PERCENTUAL")] - [Width("70")] - public decimal? ComissaoRepasse - { - get; - set; - } - - [Description("Nº CONTA")] - public string Conta - { - get; - set; - } - - [Tipo("INVALID")] - public string CPFVendedor - { - get; - set; - } - - [Description("DATA DE CADASTRO DO DOCUMENTO")] - [Tipo("DATA?")] - public DateTime? DataCriacao - { - get; - set; - } - - [Description("DATA PAGAMENTO")] - [Tipo("DATA?")] - [Width("120")] - public DateTime? DataPagamento - { - get; - set; - } - - [Description("EMITIDO")] - public string DocumentoEmitido - { - get; - set; - } - - [Description("ENDOSSO")] - [Width("100")] - public string Endosso - { - get; - set; - } - - [Tipo("INVALID")] - public Adiantamento EntidadeAdiantamento - { - get; - set; - } - - [Tipo("INVALID")] - public Documento EntidadeDocumento - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Parcela EntidadeParcela - { - get; - set; - } - - [Tipo("INVALID")] - public VendedorParcela EntidadeVendedorParcela - { - get; - set; - } - - [Description("ESTIPULANTE")] - public string Estipulante - { - get; - set; - } - - [Description("HOUVE RECEBIMENTO")] - public string HouveRecebimento - { - get; - set; - } - - [Tipo("INVALID")] - public long Id - { - get; - set; - } - - [Description("TIPO RENOVAÇÃO")] - public string Negocio - { - get; - set; - } - - [Description("PARCELA")] - [Width("60")] - public string Parcela - { - get; - set; - } - - [Description("PEDIDO ENDOSSO")] - public string PedidoEndosso - { - get; - set; - } - - [Description("PRÊMIO LÍQUIDO")] - [Tipo("VALOR?")] - [Width("110")] - public decimal? PremioLiquido - { - get; - set; - } - - [Description("PRÊMIO TOTAL")] - [Tipo("VALOR?")] - public decimal? PremioTotal - { - get; - set; - } - - [Description("PRODUTO")] - public string Produto - { - get; - set; - } - - [Description("PROPOSTA")] - public string Proposta - { - get; - set; - } - - [Description("RAMO")] - public string Ramo - { - get; - set; - } - - [Description("RECEBIDO POR COMPLETO")] - public string RecebidoPorCompleto - { - get; - set; - } - - [Description("RECEBIMENTO")] - [Tipo("DATA?")] - [Width("90")] - public DateTime? Recebimento - { - get; - set; - } - - [Description("REPASSE")] - [Tipo("VALOR")] - [Width("120")] - public decimal Repasse - { - get; - set; - } - - [Description("SEGURADORA")] - public string Seguradora - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("STATUS")] - public string Status - { - get; - set; - } - - [Tipo("INVALID")] - public int Tipo - { - get; - set; - } - - [Description("VALOR LÍQUIDO")] - [Tipo("VALOR")] - [Width("110")] - public decimal ValorLiquido - { - get; - set; - } - - [Description("VALOR PARCELA")] - [Tipo("VALOR?")] - public decimal? ValorParcela - { - get; - set; - } - - [Description("VENDEDOR")] - public string Vendedor - { - get; - set; - } - - [Description("VIGÊNCIA FINAL")] - [Tipo("DATA?")] - public DateTime? VigenciaFinal - { - get; - set; - } - - [Description("VIGÊNCIA INICIAL")] - [Tipo("DATA?")] - [Width("115")] - public DateTime? VigenciaIncial - { - get; - set; - } - - public DadosRelatorio() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/DadosVinculo.cs b/Gestor.Model/Model.Domain.Relatorios/DadosVinculo.cs deleted file mode 100644 index db83501..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/DadosVinculo.cs +++ /dev/null @@ -1,67 +0,0 @@ -using Gestor.Model.Domain.Aggilizador; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios -{ - public class DadosVinculo - { - public string Apolice - { - get; - set; - } - - public string Documento - { - get; - set; - } - - public string Endosso - { - get; - set; - } - - public long Id - { - get; - set; - } - - public long IdSeguradora - { - get; - set; - } - - public string Proposta - { - get; - set; - } - - public DateTime? Vigenciafinal - { - get; - set; - } - - public DateTime VigenciaInicial - { - get; - set; - } - - public VinculoDocumento Vinculo - { - get; - set; - } - - public DadosVinculo() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Dashboard/Prospectar.cs b/Gestor.Model/Model.Domain.Relatorios/Dashboard/Prospectar.cs deleted file mode 100644 index 6c3059f..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Dashboard/Prospectar.cs +++ /dev/null @@ -1,112 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Seguros; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Dashboard -{ - public class Prospectar - { - private string _nome; - - private string _email; - - [Description("CPF/CNPJ")] - public string Documento - { - get; - set; - } - - [Description("E-MAIL")] - public string Email - { - get - { - string str = this._email; - if (str == null) - { - return null; - } - return str.ToLower().Trim(); - } - set - { - this._email = value; - } - } - - [Description("FILIAL")] - public string Empresa - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Cliente EntidadeCliente - { - get; - set; - } - - [Description("ID")] - [Tipo("INVALID")] - public long Id - { - get; - set; - } - - [Tipo("INVALID")] - public long IdEmpresa - { - get; - set; - } - - [Description("CLIENTE")] - public string Nome - { - get - { - string str = this._nome; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._nome = value; - } - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("TELEFONE")] - public string Telefone - { - get; - set; - } - - [Description("TIPO DE PESSOA")] - public string TipoPessoa - { - get; - set; - } - - public Prospectar() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/EndossoCancelamento/Endosso.cs b/Gestor.Model/Model.Domain.Relatorios/EndossoCancelamento/Endosso.cs deleted file mode 100644 index c0fdadf..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/EndossoCancelamento/Endosso.cs +++ /dev/null @@ -1,323 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Seguros; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.EndossoCancelamento -{ - public class Endosso - { - [Description("APÓLICE")] - public string Apolice - { - get; - set; - } - - [Description("APÓLICE CONFERIDA")] - public string ApoliceConferida - { - get; - set; - } - - [Description("PROP. ASSINADA SIGGNER")] - public string AssinadaSiggner - { - get; - set; - } - - [Tipo("INVALID")] - public List<StatusDocumentoAssinado> Assinaturas - { - get; - set; - } - - [Description("CLIENTE")] - public string Cliente - { - get; - set; - } - - [Description("COMISSÃO")] - [Tipo("PERCENTUAL")] - public decimal Comissao - { - get; - set; - } - - [Description("COMISSÃO GERADA")] - [Tipo("VALOR")] - public decimal ComissaoGerada - { - get; - set; - } - - [Description("DATA CONTROLE")] - public DateTime? DataControle - { - get; - set; - } - - [Description("DATA DE CADASTRO")] - [Tipo("DATA?")] - public DateTime? DataCriacao - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Documento Documento - { - get; - set; - } - - [Description("DOCUMENTO DO CLIENTE")] - public string DocumentoCliente - { - get; - set; - } - - [Description("EMISSÃO")] - [Tipo("DATA?")] - public DateTime? Emissao - { - get; - set; - } - - [Description("FILIAL")] - public string Empresa - { - get; - set; - } - - [Description("ESTIPULANTE")] - public string Estipulante - { - get; - set; - } - - [Tipo("INVALID")] - public long IdEmpresa - { - get; - set; - } - - [Description("ITEM")] - public string Item - { - get; - set; - } - - [Description("NEGÓCIO CORRETORA")] - public string Negocio - { - get; - set; - } - - [Description("ENDOSSO")] - public string NumEndosso - { - get; - set; - } - - [Description("QUANTIDADE PARCELAS")] - [Tipo("QUANTIDADE")] - public decimal NumeroParcelas - { - get; - set; - } - - [Description("PASTA")] - public string Pasta - { - get; - set; - } - - [Description("PASTA CLIENTE")] - public string PastaCliente - { - get; - set; - } - - [Description("PRÊMIO LÍQUIDO")] - [Tipo("VALOR")] - public decimal PremioLiquido - { - get; - set; - } - - [Description("PRÊMIO TOTAL")] - [Tipo("VALOR")] - public decimal PremioTotal - { - get; - set; - } - - [Description("PRODUTO")] - public string Produto - { - get; - set; - } - - [Description("PROPOSTA ASSINADA")] - public string PropAssinada - { - get; - set; - } - - [Description("PROPOSTA")] - public string Proposta - { - get; - set; - } - - [Description("PROPOSTA ENDOSSO")] - public string PropostaEndosso - { - get; - set; - } - - [Description("RAMO")] - public string Ramo - { - get; - set; - } - - [Description("TRANSMISSÃO")] - [Tipo("DATA?")] - public DateTime? Remessa - { - get; - set; - } - - [Description("REPASSE VENDEDOR")] - [Tipo("VALORDECIMAL2")] - public decimal? RepasseVendedor - { - get; - set; - } - - [Description("SEGURADORA")] - public string Seguradora - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("STATUS")] - public string Status - { - get; - set; - } - - [Description("STATUS APÓLICE")] - public string StatusApolice - { - get; - set; - } - - [Description("STATUS ASSINATURA")] - [Tipo("ENUM")] - public Gestor.Model.Common.StatusAssinatura StatusAssinatura - { - get; - set; - } - - [Tipo("INVALID")] - public int Tipo - { - get; - set; - } - - [Description("TIPO DOCUMENTO")] - public string TipoDocumento - { - get; - set; - } - - [Description("TIPO PAGAMENTO")] - public string TipoPagamento - { - get; - set; - } - - [Description("TODOS VENDEDORES")] - public string TodosVendedores - { - get; - set; - } - - [Description("VENDEDOR PRINCIPAL")] - public string Vendedor - { - get; - set; - } - - [Description("VIGÊNCIA FINAL")] - [Tipo("DATA?")] - public DateTime? VigenciaFinal - { - get; - set; - } - - [Description("VIGÊNCIA INICIAL")] - [Tipo("DATA")] - public DateTime VigenciaInicial - { - get; - set; - } - - public Endosso() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Extrato/DetalhesExtrato.cs b/Gestor.Model/Model.Domain.Relatorios/Extrato/DetalhesExtrato.cs deleted file mode 100644 index d59635e..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Extrato/DetalhesExtrato.cs +++ /dev/null @@ -1,73 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Extrato -{ - public class DetalhesExtrato - { - [Description("APÓLICE")] - public string Apolice - { - get; - set; - } - - [Description("CLIENTE")] - public string Cliente - { - get; - set; - } - - [Description("% COMISSÃO")] - [Tipo("PERCENTUAL")] - public decimal? Comissao - { - get; - set; - } - - [Description("ENDOSSO")] - public string Endosso - { - get; - set; - } - - [Description("VALOR PAGTO")] - [Tipo("VALOR")] - public decimal? Pagto - { - get; - set; - } - - [Description("PARCELA")] - public string Parcela - { - get; - set; - } - - [Description("STATUS")] - public string Status - { - get; - set; - } - - [Description("COMISSÃO")] - [Tipo("VALOR")] - public decimal? ValorComissao - { - get; - set; - } - - public DetalhesExtrato() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Extrato/Extrato.cs b/Gestor.Model/Model.Domain.Relatorios/Extrato/Extrato.cs deleted file mode 100644 index 5017fb7..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Extrato/Extrato.cs +++ /dev/null @@ -1,120 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Common; -using Gestor.Model.Domain.Seguros; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Extrato -{ - public class Extrato - { - [Description("BRUTO")] - public decimal? Bruto - { - get; - set; - } - - [Description("DATA")] - public DateTime? Data - { - get; - set; - } - - [Description("DATA DE CRÉDITO")] - public DateTime? DataCredito - { - get; - set; - } - - public Gestor.Model.Domain.Common.Empresa Empresa - { - get; - set; - } - - [Description("HISTORICO")] - public string Historico - { - get; - set; - } - - [Description("ID")] - public long Id - { - 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; - } - - public Gestor.Model.Domain.Seguros.Seguradora Seguradora - { - get; - set; - } - - public bool Selecionado - { - get; - set; - } - - [Description("STATUS")] - [Tipo("ENUM")] - public StatusExtrato Status - { - get; - set; - } - - public Extrato() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Extrato/ExtratoComissao.cs b/Gestor.Model/Model.Domain.Relatorios/Extrato/ExtratoComissao.cs deleted file mode 100644 index 605c15d..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Extrato/ExtratoComissao.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Extrato -{ - public class ExtratoComissao - { - public ObservableCollection<Gestor.Model.Domain.Relatorios.Extrato.DetalhesExtrato> DetalhesExtrato - { - get; - set; - } - - public ObservableCollection<Gestor.Model.Domain.Relatorios.Extrato.InformacoesExtrato> InformacoesExtrato - { - get; - set; - } - - public string Seguradora - { - get; - set; - } - - public string Usuario - { - get; - set; - } - - public ExtratoComissao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Extrato/InformacoesExtrato.cs b/Gestor.Model/Model.Domain.Relatorios/Extrato/InformacoesExtrato.cs deleted file mode 100644 index c7ac663..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Extrato/InformacoesExtrato.cs +++ /dev/null @@ -1,93 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Extrato -{ - public class InformacoesExtrato - { - [Description("BRUTO")] - [Tipo("VALOR")] - public decimal Bruto - { - get; - set; - } - - [Description("DATA EXTRATO")] - [Tipo("DATA?")] - public DateTime? DataExtrato - { - get; - set; - } - - [Description("IR")] - [Tipo("VALOR")] - public decimal Ir - { - get; - set; - } - - [Description("ISS")] - [Tipo("VALOR")] - public decimal Iss - { - get; - set; - } - - [Description("LÍQUIDO")] - [Tipo("VALOR")] - public decimal Liquido - { - get; - set; - } - - [Description("NÚMERO EXTRATO")] - public string NumeroExtrato - { - get; - set; - } - - [Description("OUTROS")] - [Tipo("VALOR")] - public decimal Outros - { - get; - set; - } - - [Description("QUANTIDADE")] - [Tipo("INT")] - public int Quantidade - { - get; - set; - } - - [Description("TOTAL BAIXADO")] - [Tipo("VALOR")] - public decimal TotalBaixado - { - get; - set; - } - - [Description("TOTAL PENDENTE")] - [Tipo("VALOR")] - public decimal TotalPendente - { - get; - set; - } - - public InformacoesExtrato() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Extrato/SinteticoExtrato.cs b/Gestor.Model/Model.Domain.Relatorios/Extrato/SinteticoExtrato.cs deleted file mode 100644 index b23bf99..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Extrato/SinteticoExtrato.cs +++ /dev/null @@ -1,28 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Extrato -{ - public class SinteticoExtrato - { - public string Descricao - { - get; - set; - } - - [Description("TOTAL DE DOCUMENTOS")] - [Tipo("QUANTIDADE")] - public int Total - { - get; - set; - } - - public SinteticoExtrato() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/ExtratoBaixado/ExtratoBaixadoRelatorio.cs b/Gestor.Model/Model.Domain.Relatorios/ExtratoBaixado/ExtratoBaixadoRelatorio.cs deleted file mode 100644 index 0f72aa9..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/ExtratoBaixado/ExtratoBaixadoRelatorio.cs +++ /dev/null @@ -1,127 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Seguros; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.ExtratoBaixado -{ - public class ExtratoBaixadoRelatorio - { - [Description("BRUTO")] - [Tipo("VALOR")] - public decimal? Bruto - { - get; - set; - } - - [Description("DATA")] - [Tipo("DATA?")] - public DateTime? Data - { - get; - set; - } - - [Description("DATA DE CRÉDITO")] - [Tipo("DATA?")] - public DateTime? DataCredito - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Extrato Extrato - { - get; - set; - } - - [Description("HISTÓRICO")] - public string Historico - { - get; - set; - } - - [Tipo("INVALID")] - public long Id - { - get; - set; - } - - [Description("IR")] - [Tipo("VALOR")] - public decimal? Ir - { - get; - set; - } - - [Description("ISS")] - [Tipo("VALOR")] - public decimal? Iss - { - get; - set; - } - - [Description("LÍQUIDO")] - [Tipo("VALOR")] - public decimal? Liquido - { - get; - set; - } - - [Description("NÚMERO")] - public string Numero - { - get; - set; - } - - [Description("OBSERVAÇÃO")] - public string Observacao - { - get; - set; - } - - [Description("OUTRO")] - [Tipo("VALOR")] - public decimal? Outro - { - get; - set; - } - - [Description("SEGURADORA")] - public string Seguradora - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("STATUS")] - public string Status - { - get; - set; - } - - public ExtratoBaixadoRelatorio() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/FaturaPendente/FaturaPendente.cs b/Gestor.Model/Model.Domain.Relatorios/FaturaPendente/FaturaPendente.cs deleted file mode 100644 index 2ca0d41..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/FaturaPendente/FaturaPendente.cs +++ /dev/null @@ -1,189 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Seguros; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.FaturaPendente -{ - public class FaturaPendente - { - [Description("APÓLICE")] - public string Apolice - { - get; - set; - } - - [Description("CLIENTE")] - public string Cliente - { - get; - set; - } - - [Description("DATA CONTROLE")] - [Tipo("DATA?")] - public DateTime? DataControle - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Documento Documento - { - get; - set; - } - - [Description("ENDOSSO")] - public string Endosso - { - get; - set; - } - - [Description("ESTIPULANTE")] - public string Estipulante - { - get; - set; - } - - [Description("ULTIMA FATURA")] - public string Fatura - { - get; - set; - } - - [Description("ITEM")] - public string Item - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Parcela Parcela - { - get; - set; - } - - [Description("PASTA")] - public string Pasta - { - get; - set; - } - - [Description("PASTA CLIENTE")] - public string PastaCliente - { - get; - set; - } - - [Description("PENDÊNCIA")] - public int Pendencia - { - get; - set; - } - - [Description("PRODUTO")] - public string Produto - { - get; - set; - } - - [Description("RAMO")] - public string Ramo - { - get; - set; - } - - [Description("SEGURADORA")] - public string Seguradora - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("STATUS")] - public string Status - { - get; - set; - } - - [Description("STATUS APÓLICE")] - public string StatusApolice - { - get; - set; - } - - [Description("VENCIMENTO")] - [Tipo("DATA?")] - public DateTime? Vencimento - { - get; - set; - } - - [Description("VENDEDOR PRINCIPAL")] - public string Vendedor - { - get; - set; - } - - [Description("VIGÊNCIA FINAL")] - [Tipo("DATA?")] - public DateTime? VigenciaFinal - { - get; - set; - } - - [Description("FINAL FATURA")] - [Tipo("DATA?")] - public DateTime? VigenciaFinalFatura - { - get; - set; - } - - [Description("INICIO FATURA")] - [Tipo("DATA?")] - public DateTime? VigenciaIncialFatura - { - get; - set; - } - - [Description("VIGÊNCIA INICIAL")] - [Tipo("DATA")] - public DateTime VigenciaInicial - { - get; - set; - } - - public FaturaPendente() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Fechamento/Fechamento.cs b/Gestor.Model/Model.Domain.Relatorios/Fechamento/Fechamento.cs deleted file mode 100644 index 39e894d..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Fechamento/Fechamento.cs +++ /dev/null @@ -1,319 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Fechamento -{ - public class Fechamento - { - [Description("ANO ANTERIOR")] - [Tipo("INVALID")] - public string AnoAnterior - { - get; - set; - } - - [Description("QTD APÓLICE")] - [Tipo("QUANTIDADE")] - public int Apolice - { - get; - set; - } - - [Description("QTD APÓLICE ANTERIOR")] - [Tipo("QUANTIDADE")] - public int ApoliceAnterior - { - get; - set; - } - - [Description("COMPARATIVO QTD APÓLICE")] - public string ApoliceAnteriorComparativo - { - get; - set; - } - - [Description("QTD ENDOSSO")] - [Tipo("QUANTIDADE")] - public int Endosso - { - get; - set; - } - - [Description("QTD ENDOSSO ANTERIOR")] - [Tipo("QUANTIDADE")] - public int EndossoAnterior - { - get; - set; - } - - [Description("COMPARATIVO QTD ENDOSSO")] - public string EndossoAnteriorComparativo - { - get; - set; - } - - [Tipo("INVALID")] - public int Entidade - { - get; - set; - } - - [Description("QTD FATURA")] - [Tipo("QUANTIDADE")] - public int Fatura - { - get; - set; - } - - [Description("QTD FATURA ANTERIOR")] - [Tipo("QUANTIDADE")] - public int FaturaAnterior - { - get; - set; - } - - [Description("COMPARATIVO QTD FATURA")] - public string FaturaAnteriorComparativo - { - get; - set; - } - - [Description("MÉDIA FECHADA")] - [Tipo("PERCENTUAL")] - public decimal Fechada - { - get; - set; - } - - [Description("MÉDIA FECHADA ANTERIOR")] - [Tipo("PERCENTUAL")] - public decimal FechadaAnterior - { - get; - set; - } - - [Description("COMPARATIVO MÉDIA FECHADA")] - public string FechadaAnteriorComparativo - { - get; - set; - } - - [Description("COMISSÃO GERADA")] - [Tipo("VALOR")] - public decimal Gerada - { - get; - set; - } - - [Description("COMISSÃO GERADA ANTERIOR")] - [Tipo("VALOR")] - public decimal GeradaAnterior - { - get; - set; - } - - [Description("COMPARATIVO COMISSÃO GERADA")] - public string GeradaAnteriorComparativo - { - get; - set; - } - - [Tipo("INVALID")] - public long Id - { - get; - set; - } - - [Description("QTD ITENS")] - [Tipo("QUANTIDADE")] - public int Itens - { - get; - set; - } - - [Description("QTD ITENS ANTERIOR")] - [Tipo("QUANTIDADE")] - public int ItensAnterior - { - get; - set; - } - - [Description("COMPARATIVO QTD ITENS")] - public string ItensAnteriorComparativo - { - get; - set; - } - - [Description("MÉDIA MIX %")] - [Tipo("PERCENTUAL")] - public decimal Mix - { - get; - set; - } - - [Description("MÉDIA MIX % ANTERIOR")] - [Tipo("PERCENTUAL")] - public decimal MixAnterior - { - get; - set; - } - - [Description("COMPARATIVO MÉDIA MIX %")] - public string MixAnteriorComparativo - { - get; - set; - } - - [Description("NOME")] - public string Nome - { - get; - set; - } - - [Description("COMISSÃO PAGA")] - [Tipo("VALOR")] - public decimal Paga - { - get; - set; - } - - [Description("COMISSÃO PAGA ANTERIOR")] - [Tipo("VALOR")] - public decimal PagaAnterior - { - get; - set; - } - - [Description("COMPARATIVO COMISSÃO PAGA")] - public string PagaAnteriorComparativo - { - get; - set; - } - - [Description("COMISSÃO PENDENTE")] - [Tipo("VALOR")] - public decimal Pendente - { - get; - set; - } - - [Description("COMISSÃO PENDENTE ANTERIOR")] - [Tipo("VALOR")] - public decimal PendenteAnterior - { - get; - set; - } - - [Description("COMPARATIVO COMISSÃO PENDENTE")] - public string PendenteAnteriorComparativo - { - get; - set; - } - - [Description("PRÊMIO LÍQUIDO")] - [Tipo("VALOR")] - public decimal PremioLiquido - { - get; - set; - } - - [Description("PRÊMIO LÍQUIDO ANTERIOR")] - [Tipo("VALOR")] - public decimal PremioLiquidoAnterior - { - get; - set; - } - - [Description("COMPARATIVO PRÊMIO LÍQUIDO")] - public string PremioLiquidoComparativo - { - get; - set; - } - - [Description("PRÊMIO TOTAL")] - [Tipo("VALOR")] - public decimal PremioTotal - { - get; - set; - } - - [Description("PRÊMIO TOTAL ANTERIOR")] - [Tipo("VALOR")] - public decimal PremioTotalAnterior - { - get; - set; - } - - [Description("COMPARATIVO PRÊMIO TOTAL")] - public string PremioTotalComparativo - { - get; - set; - } - - [Description("COMISSÃO RECEBIDA")] - [Tipo("VALOR")] - public decimal Recebida - { - get; - set; - } - - [Description("COMISSÃO RECEBIDA ANTERIOR")] - [Tipo("VALOR")] - public decimal RecebidaAnterior - { - get; - set; - } - - [Description("COMPARATIVO COMISSÃO RECEBIDA")] - public string RecebidaAnteriorComparativo - { - get; - set; - } - - public Fechamento() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Fechamento/Fechamentos.cs b/Gestor.Model/Model.Domain.Relatorios/Fechamento/Fechamentos.cs deleted file mode 100644 index d917005..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Fechamento/Fechamentos.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Fechamento -{ - public class Fechamentos - { - public bool Comparativo - { - get; - set; - } - - public ObservableCollection<Gestor.Model.Domain.Relatorios.Fechamento.Fechamento> Fechamento - { - get; - set; - } - - public string Title - { - get; - set; - } - - public Fechamentos() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Fechamento/SinteticoFechamento.cs b/Gestor.Model/Model.Domain.Relatorios/Fechamento/SinteticoFechamento.cs deleted file mode 100644 index 5703d5e..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Fechamento/SinteticoFechamento.cs +++ /dev/null @@ -1,94 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Fechamento -{ - public class SinteticoFechamento - { - [Description("QUANTIDADE APÓLICE")] - [Tipo("QUANTIDADE")] - public int Apolice - { - get; - set; - } - - [Description("QUANTIDADE ENDOSSO")] - [Tipo("QUANTIDADE")] - public int Endosso - { - get; - set; - } - - [Description("QUANTIDADE FATURA")] - [Tipo("QUANTIDADE")] - public int Fatura - { - get; - set; - } - - [Description("MÉDIA FECHADA")] - [Tipo("PERCENTUAL")] - public decimal Fechada - { - get; - set; - } - - [Description("COMISSÃO GERADA")] - [Tipo("VALOR")] - public decimal Gerada - { - get; - set; - } - - [Description("QUANTIDADE ITENS")] - [Tipo("QUANTIDADE")] - public int Itens - { - get; - set; - } - - [Description("MÉDIA MIX %")] - [Tipo("PERCENTUAL")] - public decimal Mix - { - get; - set; - } - - [Description("SOMA PRÊMIO LÍQUIDO")] - [Tipo("VALOR")] - public decimal PremioLiquido - { - get; - set; - } - - [Description("SOMA PRÊMIO TOTAL")] - [Tipo("VALOR")] - public decimal PremioTotal - { - get; - set; - } - - [Description("COMISSÃO RECEBIDA")] - [Tipo("VALOR")] - public decimal Recebida - { - get; - set; - } - - public SinteticoFechamento() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/FiltroPersonalizado.cs b/Gestor.Model/Model.Domain.Relatorios/FiltroPersonalizado.cs deleted file mode 100644 index 3de767e..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/FiltroPersonalizado.cs +++ /dev/null @@ -1,66 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios -{ - public class FiltroPersonalizado - { - public string Descricao - { - get; - set; - } - - public bool Diferente - { - get; - set; - } - - public int Id - { - get; - set; - } - - public string Nome - { - get; - set; - } - - public string Propriedade - { - get; - set; - } - - public bool SemValor - { - get; - set; - } - - public Type Tipo - { - get; - set; - } - - public string ValorFinal - { - get; - set; - } - - public string ValorIncial - { - get; - set; - } - - public FiltroPersonalizado() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/FiltroRelatorio.cs b/Gestor.Model/Model.Domain.Relatorios/FiltroRelatorio.cs deleted file mode 100644 index 99b9fab..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/FiltroRelatorio.cs +++ /dev/null @@ -1,54 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios -{ - public class FiltroRelatorio - { - private string _descricao; - - [Description("DESCRIÇÃO DO FILTRO")] - public string Descricao - { - get - { - return this._descricao; - } - set - { - this._descricao = value; - if (!string.IsNullOrWhiteSpace(value)) - { - this.Icone = value.Substring(0, 1); - } - } - } - - public string Icone - { - get; - set; - } - - public long Id - { - get; - set; - } - - [Description("TIPO DO FILTRO")] - [Tipo("ENUM")] - public TipoFiltroRelatorio Tipo - { - get; - set; - } - - public FiltroRelatorio() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/FiltroTipoParcela.cs b/Gestor.Model/Model.Domain.Relatorios/FiltroTipoParcela.cs deleted file mode 100644 index 7deef39..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/FiltroTipoParcela.cs +++ /dev/null @@ -1,38 +0,0 @@ -using Gestor.Model.Common; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios -{ - public class FiltroTipoParcela - { - private bool _selecionado; - - public bool IsEnable { get; set; } = true; - - public bool Selecionado - { - get - { - return this._selecionado; - } - set - { - if (this.IsEnable) - { - this._selecionado = value; - } - } - } - - public SubTipo Tipo - { - get; - set; - } - - public FiltroTipoParcela() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Filtros.cs b/Gestor.Model/Model.Domain.Relatorios/Filtros.cs deleted file mode 100644 index ef24f44..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Filtros.cs +++ /dev/null @@ -1,138 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios -{ - public class Filtros : ICloneable - { - public List<long> Estipulantes - { - get; - set; - } - - public string FiltrarDocumento - { - get; - set; - } - - public DateTime Fim - { - get; - set; - } - - public long IdEmpresa - { - get; - set; - } - - public DateTime Inicio - { - get; - set; - } - - public List<long> Negocio - { - get; - set; - } - - public List<FiltroTipoParcela> ParcelasEspeciais - { - get; - set; - } - - public List<long> Produtos - { - get; - set; - } - - public List<long> Ramos - { - get; - set; - } - - public string Referencia - { - get; - set; - } - - public List<long> Relatorios - { - get; - set; - } - - public List<long> Seguradoras - { - get; - set; - } - - public List<long> Status - { - get; - set; - } - - public List<long> Telas - { - get; - set; - } - - public List<long> TipoVendedor - { - get; - set; - } - - public List<long> Usuarios - { - get; - set; - } - - public int ValorFim - { - get; - set; - } - - public int ValorInicio - { - get; - set; - } - - public List<long> Vendedores - { - get; - set; - } - - public List<long> VinculoVendedores - { - get; - set; - } - - public Filtros() - { - } - - public object Clone() - { - return (Filtros)this.MemberwiseClone(); - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Licenciamento/Licenciamento.cs b/Gestor.Model/Model.Domain.Relatorios/Licenciamento/Licenciamento.cs deleted file mode 100644 index 7343bae..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Licenciamento/Licenciamento.cs +++ /dev/null @@ -1,174 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Seguros; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Licenciamento -{ - public class Licenciamento - { - private string _cliente; - - private string _email; - - [Description("CATEGORIA")] - public string Categoria - { - get; - set; - } - - [Description("CLIENTE")] - public string Cliente - { - get - { - string str = this._cliente; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._cliente = value; - } - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Documento Documento - { - get; - set; - } - - [Description("E-MAIL")] - public string Email - { - get - { - string str = this._email; - if (str == null) - { - return null; - } - return str.ToLower().Trim(); - } - set - { - this._email = value; - } - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Item EntidadeItem - { - get; - set; - } - - [Description("ESTIPULANTE")] - public string Estipulante - { - get; - set; - } - - [Tipo("INVALID")] - public long Id - { - get; - set; - } - - [Tipo("INVALID")] - public long IdCliente - { - get; - set; - } - - [Description("ITEM")] - public string Item - { - get; - set; - } - - [Description("PASTA CLIENTE")] - public string PastaCliente - { - get; - set; - } - - [Description("PLACA")] - public string Placa - { - get; - set; - } - - [Description("PRODUTO")] - public string Produto - { - get; - set; - } - - [Description("RAMO")] - public string Ramo - { - get; - set; - } - - [Description("SEGURADORA")] - public string Seguradora - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("TELEFONE")] - public string Telefone - { - get; - set; - } - - [Description("TODOS VENDEDORES")] - public string TodosVendedores - { - get; - set; - } - - [Tipo("INVALID")] - public string Vencimento - { - get; - set; - } - - [Description("VENDEDOR PRINCIPAL")] - public string Vendedor - { - get; - set; - } - - public Licenciamento() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Listagem.cs b/Gestor.Model/Model.Domain.Relatorios/Listagem.cs deleted file mode 100644 index 4386cbd..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Listagem.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios -{ - public class Listagem - { - [Description("AGRUPAMENTO")] - public string Agrupamento - { - get; - set; - } - - public string NomeRelatorio - { - get; - set; - } - - [Description("VALOR")] - public string Valor - { - get; - set; - } - - public Listagem() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Log/LogAcaoRelatorio.cs b/Gestor.Model/Model.Domain.Relatorios/Log/LogAcaoRelatorio.cs deleted file mode 100644 index 70d529b..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Log/LogAcaoRelatorio.cs +++ /dev/null @@ -1,145 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Common; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Log -{ - public class LogAcaoRelatorio - { - private string _maquina; - - private string _usuarioAgger; - - private string _usuarioMaquina; - - private string _acesso; - - [Description("ACESSO")] - public string Acesso - { - get - { - string str = this._acesso; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._acesso = value; - } - } - - [Description("DATA")] - [Tipo("DATA/TIME")] - public DateTime Data - { - get; - set; - } - - [Description("DESCRIÇÃO")] - public string Descricao - { - get; - set; - } - - [Description("CÓDIGO")] - public long EntidadeId - { - get; - set; - } - - [Description("IP")] - public string Ip - { - get; - set; - } - - [Description("MÁQUINA")] - public string Maquina - { - get - { - string str = this._maquina; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._maquina = value; - } - } - - [Tipo("INVALID")] - public RegistroAcao RegistroEntity - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("USUÁRIO AGGER")] - public string UsuarioAgger - { - get - { - string str = this._usuarioAgger; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._usuarioAgger = value; - } - } - - [Description("USUÁRIO DA MÁQUINA")] - public string UsuarioMaquina - { - get - { - string str = this._usuarioMaquina; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._usuarioMaquina = value; - } - } - - [Description("VERSÃO SISTEMA")] - public string Versao - { - get; - set; - } - - public LogAcaoRelatorio() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/LogsEnvio/LogsEnvio.cs b/Gestor.Model/Model.Domain.Relatorios/LogsEnvio/LogsEnvio.cs deleted file mode 100644 index d0a713f..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/LogsEnvio/LogsEnvio.cs +++ /dev/null @@ -1,211 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -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; - - [Description("ASSUNTO")] - public string Assunto - { - get - { - string str = this._assunto; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._assunto = value; - } - } - - [Description("CCO")] - public string Cco - { - get - { - string str = this._cco; - if (str != null) - { - return str.ToLower(); - } - return null; - } - set - { - this._cco = value; - } - } - - [Description("DATA")] - [Tipo("DATA")] - public DateTime Data - { - get; - set; - } - - [Description("DESTINATÁRIOS")] - public string Destinatarios - { - get - { - string str = this._destinatarios; - if (str != null) - { - return str.ToLower(); - } - return null; - } - set - { - this._destinatarios = value; - } - } - - [Description("ID")] - [Tipo("INVALID")] - public long Id - { - get; - set; - } - - [Description("IP")] - public string Ip - { - get; - set; - } - - [Description("MÁQUINA")] - public string Maquina - { - get - { - string str = this._maquina; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._maquina = value; - } - } - - [Description("REMETENTE")] - public string Remetente - { - get - { - string str = this._remetente; - if (str != null) - { - return str.ToLower(); - } - return null; - } - set - { - this._remetente = value; - } - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("TELA")] - public string Tela - { - get - { - string str = this._tela; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._tela = value; - } - } - - [Description("USUÁRIO AGGER")] - public string UsuarioAgger - { - get - { - string str = this._usuarioAgger; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._usuarioAgger = value; - } - } - - [Description("USUÁRIO DA MÁQUINA")] - public string UsuarioMaquina - { - get - { - string str = this._usuarioMaquina; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._usuarioMaquina = value; - } - } - - [Description("VERSÃO")] - public string Versao - { - get; - set; - } - - public LogsEnvio() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/MetaSeguradora/MetaSeguradoraRelatorio.cs b/Gestor.Model/Model.Domain.Relatorios/MetaSeguradora/MetaSeguradoraRelatorio.cs deleted file mode 100644 index e48f927..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/MetaSeguradora/MetaSeguradoraRelatorio.cs +++ /dev/null @@ -1,51 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.MetaSeguradora -{ - public class MetaSeguradoraRelatorio - { - [Tipo("INVALID")] - public long Id - { - get; - set; - } - - [Description("META ATINGIR")] - [Tipo("VALOR")] - public decimal MetaAtingir - { - get; - set; - } - - [Description("META CUMPRIDA")] - [Tipo("VALOR")] - public decimal MetaCumprida - { - get; - set; - } - - [Description("SEGURADORA")] - public string Seguradora - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - public MetaSeguradoraRelatorio() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/MetaSeguradora/SinteticoMetaSeguradora.cs b/Gestor.Model/Model.Domain.Relatorios/MetaSeguradora/SinteticoMetaSeguradora.cs deleted file mode 100644 index c196b87..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/MetaSeguradora/SinteticoMetaSeguradora.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -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; - } - - public SinteticoMetaSeguradora() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/MetaVendedor/MetaVendedorRelatorio.cs b/Gestor.Model/Model.Domain.Relatorios/MetaVendedor/MetaVendedorRelatorio.cs deleted file mode 100644 index 8a6a169..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/MetaVendedor/MetaVendedorRelatorio.cs +++ /dev/null @@ -1,51 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.MetaVendedor -{ - public class MetaVendedorRelatorio - { - [Tipo("INVALID")] - public long Id - { - get; - set; - } - - [Description("META ATINGIR")] - [Tipo("VALOR")] - public decimal MetaAtingir - { - get; - set; - } - - [Description("META CUMPRIDA")] - [Tipo("VALOR")] - public decimal MetaCumprida - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("VENDEDOR")] - public string Vendedor - { - get; - set; - } - - public MetaVendedorRelatorio() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/MetaVendedor/SinteticoMetaVendedor.cs b/Gestor.Model/Model.Domain.Relatorios/MetaVendedor/SinteticoMetaVendedor.cs deleted file mode 100644 index 8a26b43..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/MetaVendedor/SinteticoMetaVendedor.cs +++ /dev/null @@ -1,27 +0,0 @@ -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -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; - } - - public SinteticoMetaVendedor() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/NegocioRelatorio.cs b/Gestor.Model/Model.Domain.Relatorios/NegocioRelatorio.cs deleted file mode 100644 index ebd59d3..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/NegocioRelatorio.cs +++ /dev/null @@ -1,58 +0,0 @@ -using Gestor.Model.Common; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using System.Threading; - -namespace Gestor.Model.Domain.Relatorios -{ - public class NegocioRelatorio : INotifyPropertyChanged - { - private bool _selecionado; - - public int Id - { - get; - set; - } - - public NegocioCorretora Negocio - { - get; - set; - } - - public bool Selecionado - { - get - { - return this._selecionado; - } - set - { - if (value == this._selecionado) - { - return; - } - this._selecionado = value; - this.OnPropertyChanged("Selecionado"); - } - } - - public NegocioRelatorio() - { - } - - protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) - { - PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged; - if (propertyChangedEventHandler == null) - { - return; - } - propertyChangedEventHandler(this, new PropertyChangedEventArgs(propertyName)); - } - - public event PropertyChangedEventHandler PropertyChanged; - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/NotaFiscal/NotaFiscalRelatorio.cs b/Gestor.Model/Model.Domain.Relatorios/NotaFiscal/NotaFiscalRelatorio.cs deleted file mode 100644 index 4868650..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/NotaFiscal/NotaFiscalRelatorio.cs +++ /dev/null @@ -1,96 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.NotaFiscal -{ - public class NotaFiscalRelatorio - { - [Description("VALOR BRUTO")] - [Tipo("VALOR")] - public decimal Bruto - { - get; - set; - } - - [Description("CNPJ")] - public string Cnpj - { - get; - set; - } - - [Description("DATA")] - [Tipo("DATA?")] - public DateTime? Data - { - get; - set; - } - - [Description("ESTIPULANTE")] - public string Estipulante - { - get; - set; - } - - [Description("EXTRATO")] - public string Extrato - { - get; - set; - } - - [Tipo("INVALID")] - public long Id - { - get; - set; - } - - [Description("IR")] - [Tipo("VALOR")] - public decimal Ir - { - get; - set; - } - - [Description("ISS")] - [Tipo("VALOR")] - public decimal Iss - { - get; - set; - } - - [Description("VALOR LÍQUIDO")] - [Tipo("VALOR")] - public decimal Liquido - { - get; - set; - } - - [Description("SEGURADORA")] - public string Seguradora - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - public NotaFiscalRelatorio() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Pagamento/AgrupamentoPagamentoSintetico.cs b/Gestor.Model/Model.Domain.Relatorios/Pagamento/AgrupamentoPagamentoSintetico.cs deleted file mode 100644 index 49bdf53..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Pagamento/AgrupamentoPagamentoSintetico.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Pagamento -{ - public class AgrupamentoPagamentoSintetico - { - [Description("NOME")] - public string Nome - { - get; - set; - } - - [Description("REPASSE")] - [Tipo("VALOR")] - public decimal Repasse - { - get; - set; - } - - [Description("VALOR LÍQUIDO")] - [Tipo("VALOR")] - public decimal VlrLiquido - { - get; - set; - } - - public AgrupamentoPagamentoSintetico() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Pagamento/AgrupamentoVendedor.cs b/Gestor.Model/Model.Domain.Relatorios/Pagamento/AgrupamentoVendedor.cs deleted file mode 100644 index 6b4a47f..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Pagamento/AgrupamentoVendedor.cs +++ /dev/null @@ -1,113 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Pagamento -{ - public class AgrupamentoVendedor - { - [Description("ADIANTAMENTO LÍQUIDO")] - [Tipo("VALOR")] - public decimal Adiantamento - { - get; - set; - } - - [Description("Nº AGÊNCIA")] - public string Agencia - { - get; - set; - } - - [Description("BANCO")] - public string Banco - { - get; - set; - } - - [Description("Nº CONTA")] - public string Conta - { - get; - set; - } - - [Description("CPF")] - public string CPF - { - get; - set; - } - - [Description("ADIANTAMENTOS (+)")] - [Tipo("VALOR")] - public decimal Credito - { - get; - set; - } - - [Description("ADIANTAMENTOS (-)")] - [Tipo("VALOR")] - public decimal Debito - { - get; - set; - } - - [Description("DESCONTO")] - [Tipo("VALOR")] - public decimal Desconto - { - get; - set; - } - - [Description("ESTORNOS (-)")] - [Tipo("VALOR")] - public decimal Estorno - { - get; - set; - } - - [Description("REPASSE (+)")] - [Tipo("VALOR")] - public decimal Repasse - { - get; - set; - } - - [Description("REPASSE BRUTO")] - [Tipo("VALOR")] - public decimal RepasseBruto - { - get; - set; - } - - [Description("REPASSE LÍQUIDO")] - [Tipo("VALOR")] - public decimal ValorLiquido - { - get; - set; - } - - [Description("VENDEDOR")] - public string Vendedor - { - get; - set; - } - - public AgrupamentoVendedor() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Pagamento/Pagamento.cs b/Gestor.Model/Model.Domain.Relatorios/Pagamento/Pagamento.cs deleted file mode 100644 index 2d8a0b3..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Pagamento/Pagamento.cs +++ /dev/null @@ -1,38 +0,0 @@ -using Gestor.Model.Domain.Relatorios; -using System; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Pagamento -{ - public class Pagamento - { - public ObservableCollection<DadosRelatorio> Dados - { - get; - set; - } - - public ObservableCollection<Gestor.Model.Domain.Relatorios.Sintetico> Sintetico - { - get; - set; - } - - public string Title - { - get; - set; - } - - public AgrupamentoVendedor Vendedores - { - get; - set; - } - - public Pagamento() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Pagamento/PagamentoSintetico.cs b/Gestor.Model/Model.Domain.Relatorios/Pagamento/PagamentoSintetico.cs deleted file mode 100644 index ef78ddc..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Pagamento/PagamentoSintetico.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Pagamento -{ - public class PagamentoSintetico - { - public ObservableCollection<AgrupamentoPagamentoSintetico> Agrupamento - { - get; - set; - } - - public string Titulo - { - get; - set; - } - - public PagamentoSintetico() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Pagamento/SinteticoPagamento.cs b/Gestor.Model/Model.Domain.Relatorios/Pagamento/SinteticoPagamento.cs deleted file mode 100644 index a3e3604..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Pagamento/SinteticoPagamento.cs +++ /dev/null @@ -1,60 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Pagamento -{ - public class SinteticoPagamento - { - [Description("QUANTIDADE DE APÓLICES")] - [Tipo("QUANTIDADE")] - public int Apolices - { - get; - set; - } - - public string Descricao - { - get; - set; - } - - [Description("QUANTIDADE DE ENDOSSOS")] - [Tipo("QUANTIDADE")] - public int Endossos - { - get; - set; - } - - [Description("SOMA REPASSE BRUTO")] - [Tipo("VALOR")] - public decimal RepasseBruto - { - get; - set; - } - - [Description("SOMA REPASSE LIQUIDO")] - [Tipo("VALOR")] - public decimal RepasseLiquido - { - get; - set; - } - - [Description("TOTAL DE DOCUMENTOS")] - [Tipo("QUANTIDADE")] - public int Total - { - get; - set; - } - - public SinteticoPagamento() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/ParametrosRelatorio.cs b/Gestor.Model/Model.Domain.Relatorios/ParametrosRelatorio.cs deleted file mode 100644 index 5cd4470..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/ParametrosRelatorio.cs +++ /dev/null @@ -1,90 +0,0 @@ -using Gestor.Model.Common; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using System.Threading; - -namespace Gestor.Model.Domain.Relatorios -{ - public class ParametrosRelatorio : INotifyPropertyChanged - { - private bool _selecionado; - - public string Campo - { - get; - set; - } - - public string Header - { - get; - set; - } - - public long Id - { - get; - set; - } - - public long IdUsuario - { - get; - set; - } - - public int Ordem - { - get; - set; - } - - public Gestor.Model.Common.Relatorio Relatorio - { - get; - set; - } - - public bool Selecionado - { - get - { - return this._selecionado; - } - set - { - this._selecionado = value; - this.OnPropertyChanged("Selecionado"); - } - } - - public string Tipo - { - get; - set; - } - - public int Width - { - get; - set; - } - - public ParametrosRelatorio() - { - } - - protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) - { - PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged; - if (propertyChangedEventHandler == null) - { - return; - } - propertyChangedEventHandler(this, new PropertyChangedEventArgs(propertyName)); - } - - public event PropertyChangedEventHandler PropertyChanged; - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/ParametrosTotalizacao.cs b/Gestor.Model/Model.Domain.Relatorios/ParametrosTotalizacao.cs deleted file mode 100644 index b176382..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/ParametrosTotalizacao.cs +++ /dev/null @@ -1,49 +0,0 @@ -using Gestor.Model.Common; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios -{ - public class ParametrosTotalizacao - { - public bool Ativa - { - get; - set; - } - - public string Campo - { - get; - set; - } - - public string Header - { - get; - set; - } - - public long Id - { - get; - set; - } - - public long IdUsuario - { - get; - set; - } - - public Gestor.Model.Common.Relatorio Relatorio - { - get; - set; - } - - public ParametrosTotalizacao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Pendente/Pendente.cs b/Gestor.Model/Model.Domain.Relatorios/Pendente/Pendente.cs deleted file mode 100644 index 3e11b11..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Pendente/Pendente.cs +++ /dev/null @@ -1,308 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Seguros; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Pendente -{ - public class Pendente - { - [Description("APÓLICE")] - public string Apolice - { - get; - set; - } - - [Description("CLIENTE")] - public string Cliente - { - get; - set; - } - - [Description("COMISSÃO GERADA")] - [Tipo("VALOR")] - public decimal ComissaoGerada - { - get; - set; - } - - [Description("COMISSÃO")] - [Tipo("PERCENTUAL")] - public decimal ComissaoPerc - { - get; - set; - } - - [Description("COMISSÃO PREVISTA")] - [Tipo("VALOR")] - public decimal ComissaoPrevista - { - get; - set; - } - - [Description("DATA CONTROLE")] - [Tipo("DATA?")] - public DateTime? Controle - { - get; - set; - } - - [Description("DATA CONTROLE")] - [Tipo("DATA?")] - public DateTime? DataControle - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Documento Documento - { - get; - set; - } - - [Description("DOCUMENTO DO CLIENTE")] - public string DocumentoCliente - { - get; - set; - } - - [Description("FILIAL")] - public string Empresa - { - get; - set; - } - - [Description("ENDOSSO")] - public string Endosso - { - get; - set; - } - - [Description("ESTIPULANTE")] - public string Estipulante - { - get; - set; - } - - [Description("FORMA DE PAGAMENTO")] - public string FormaPagamento - { - get; - set; - } - - [Tipo("INVALID")] - public long IdEmpresa - { - get; - set; - } - - [Description("ITEM")] - public string Item - { - get; - set; - } - - [Description("TIPO RENOVAÇÃO")] - public string Negocio - { - get; - set; - } - - [Tipo("INVALID")] - public Parcela ParcelaEntity - { - get; - set; - } - - [Description("PASTA")] - public string Pasta - { - get; - set; - } - - [Description("PASTA CLIENTE")] - public string PastaCliente - { - get; - set; - } - - [Description("PENDÊNCIA")] - public int Pendencia - { - get; - set; - } - - [Description("PARCELA")] - public string Pendentes - { - get; - set; - } - - [Description("PRODUTO")] - public string Produto - { - get; - set; - } - - [Description("PROPOSTA")] - public string Proposta - { - get; - set; - } - - [Description("DATA QUITAÇÃO")] - [Tipo("DATA?")] - public DateTime? Quitacao - { - get; - set; - } - - [Description("RAMO")] - public string Ramo - { - get; - set; - } - - [Description("SEGURADORA")] - public string Seguradora - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("STATUS")] - public string Status - { - get; - set; - } - - [Description("STATUS APÓLICE")] - public string StatusApolice - { - get; - set; - } - - [Description("STATUS PAGAMENTO")] - public string StatusPagamento - { - get; - set; - } - - [Description("TIPO DE PARCELA")] - [Tipo("ENUM")] - public Gestor.Model.Common.SubTipo SubTipo - { - get; - set; - } - - [Description("TELEFONES")] - public string Telefones - { - get; - set; - } - - [Description("TIPO DOCUMENTO")] - public string TipoDocumento - { - get; - set; - } - - [Description("TODOS VENDEDORES")] - public string TodosVendedores - { - get; - set; - } - - [Description("TOTAL PREVISTO")] - [Tipo("VALOR")] - public decimal TotalPrevisto - { - get; - set; - } - - [Description("VALOR PARCELA")] - [Tipo("VALOR")] - public decimal ValorParcela - { - get; - set; - } - - [Description("VENCIMENTO")] - [Tipo("DATA")] - public DateTime Vencimento - { - get; - set; - } - - [Description("VENDEDOR PRINCIPAL")] - public string Vendedor - { - get; - set; - } - - [Description("VIGÊNCIA FINAL")] - [Tipo("DATA?")] - public DateTime? VigenciaFinal - { - get; - set; - } - - [Description("VIGÊNCIA INICIAL")] - [Tipo("DATA")] - public DateTime VigenciaInicial - { - get; - set; - } - - public Pendente() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Pendente/SinteticoPendente.cs b/Gestor.Model/Model.Domain.Relatorios/Pendente/SinteticoPendente.cs deleted file mode 100644 index 6017cea..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Pendente/SinteticoPendente.cs +++ /dev/null @@ -1,52 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Pendente -{ - public class SinteticoPendente - { - [Description("QUANTIDADE DE APÓLICES")] - [Tipo("QUANTIDADE")] - public int Apolices - { - get; - set; - } - - [Description("SOMA COMISSÃO PREVISTA")] - [Tipo("VALOR")] - public decimal Comissao - { - get; - set; - } - - public string Descricao - { - get; - set; - } - - [Description("QUANTIDADE DE ENDOSSOS")] - [Tipo("QUANTIDADE")] - public int Endossos - { - get; - set; - } - - [Description("TOTAL DE DOCUMENTOS")] - [Tipo("QUANTIDADE")] - public int Total - { - get; - set; - } - - public SinteticoPendente() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Placa/Placas.cs b/Gestor.Model/Model.Domain.Relatorios/Placa/Placas.cs deleted file mode 100644 index 76b327c..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Placa/Placas.cs +++ /dev/null @@ -1,167 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Seguros; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Placa -{ - public class Placas - { - private string _cliente; - - private string _email; - - [Description("CATEGORIA")] - public string Categoria - { - get; - set; - } - - [Description("CLIENTE")] - public string Cliente - { - get - { - string str = this._cliente; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._cliente = value; - } - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Documento Documento - { - get; - set; - } - - [Description("E-MAIL")] - public string Email - { - get - { - string str = this._email; - if (str == null) - { - return null; - } - return str.ToLower().Trim(); - } - set - { - this._email = value; - } - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Item EntidadeItem - { - get; - set; - } - - [Description("ESTIPULANTE")] - public string Estipulante - { - get; - set; - } - - [Tipo("INVALID")] - public long Id - { - get; - set; - } - - [Tipo("INVALID")] - public long IdCliente - { - get; - set; - } - - [Description("ITEM")] - public string Item - { - get; - set; - } - - [Description("PASTA CLIENTE")] - public string PastaCliente - { - get; - set; - } - - [Description("PLACA")] - public string Placa - { - get; - set; - } - - [Description("PRODUTO")] - public string Produto - { - get; - set; - } - - [Description("RAMO")] - public string Ramo - { - get; - set; - } - - [Description("SEGURADORA")] - public string Seguradora - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("TELEFONE")] - public string Telefone - { - get; - set; - } - - [Description("TODOS VENDEDORES")] - public string TodosVendedores - { - get; - set; - } - - [Description("VENDEDOR PRINCIPAL")] - public string Vendedor - { - get; - set; - } - - public Placas() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/PlanilhaCompleta.cs b/Gestor.Model/Model.Domain.Relatorios/PlanilhaCompleta.cs deleted file mode 100644 index 8d79dd3..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/PlanilhaCompleta.cs +++ /dev/null @@ -1,1595 +0,0 @@ -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios -{ - public class PlanilhaCompleta - { - [Description("COMISSÃO ADICIONAL")] - public bool AdicionalComiss - { - get; - set; - } - - [Description("AGÊNCIA")] - public string AgenciaCliente - { - get; - set; - } - - [Description("AGÊNCIA DO CONTATO")] - public string AgenciaContato - { - get; - set; - } - - [Description("AGENDAMENTO DA TAREFA")] - public DateTime? AgendamentoTarefa - { - get; - set; - } - - [Description("ANO DE FABRICAÇÃO")] - public string AnoFab - { - get; - set; - } - - [Description("ANO DE FABRICAÇÃO")] - public int? AnoFabAero - { - get; - set; - } - - [Description("ANO DO MODELO")] - public string AnoMod - { - get; - set; - } - - [Description("ACIDENTES PASSAGEIRO FRANQUIA")] - public decimal? AppFranquia - { - get; - set; - } - - [Description("ACIDENTES PASSAGEIRO LMI")] - public decimal? AppLmi - { - get; - set; - } - - [Description("ACIDENTES PASSAGEIRO PREMIO")] - public decimal? AppPremios - { - get; - set; - } - - [Description("ÁREA")] - public string AreaGranizo - { - get; - set; - } - - [Description("ÁREA")] - public string AreaRiscos - { - get; - set; - } - - [Description("ATIVIDADE")] - public string AtividadeCliente - { - get; - set; - } - - [Description("BAIRRO")] - public string Bairro - { - get; - set; - } - - [Description("BAIRRO DO ITEM")] - public string BairroItem - { - get; - set; - } - - [Description("BANCO")] - public string BancoCliente - { - get; - set; - } - - [Description("BANCO DO CONTATO")] - public string BancoContato - { - get; - set; - } - - [Description("BENS/CONSORCIO")] - public string BensConsorcio - { - get; - set; - } - - [Description("BENS DO ITEM")] - public string BensPatrimonial - { - get; - set; - } - - [Description("BÔNUS")] - public decimal? Bonus - { - get; - set; - } - - [Description("CAPACIDADE")] - public string Capacidade - { - get; - set; - } - - [Description("CAPITAL FUNCIONÁRIOS")] - public decimal? CapitalFuncionariosVida - { - get; - set; - } - - [Description("CAPITAL SÓCIO")] - public decimal? CapitalSociosVida - { - get; - set; - } - - [Description("CARRO RESERVA FRANQUIA")] - public decimal? CarroReservaFranquia - { - get; - set; - } - - [Description("CARRO RESERVA LMI")] - public decimal? CarroReservaLmi - { - get; - set; - } - - [Description("CARRO RESERVA OBS")] - public string CarroReservaObs - { - get; - set; - } - - [Description("CARRO RESERVA PREMIO")] - public decimal? CarroReservaPremios - { - get; - set; - } - - [Description("CASCO")] - public string CascoAero - { - get; - set; - } - - [Description("CATEGORIA")] - public string Categoria - { - get; - set; - } - - [Description("CATEGORIA DA HABILITAÇÃO")] - public string CategoriaHabilitacaoCliente - { - get; - set; - } - - [Description("C.E.I.")] - public string CeiCliente - { - get; - set; - } - - [Description("CEP")] - public string Cep - { - get; - set; - } - - [Description("CEP CIRCULAÇÃO PERFIL")] - public string CEPCirculacaoPerfil - { - get; - set; - } - - [Description("CEP DO ITEM")] - public string CepItem - { - get; - set; - } - - [Description("CEP PERNOITE")] - public string CepPernoite - { - get; - set; - } - - [Description("CEP PERNOITE PERFIL")] - public string CEPPernoitePerfil - { - get; - set; - } - - [Description("CERTIFICADO")] - public string CertificadoAero - { - get; - set; - } - - [Description("CHASSI")] - public string Chassi - { - get; - set; - } - - [Description("CI")] - public string Ci - { - get; - set; - } - - [Description("CIDADE")] - public string Cidade - { - get; - set; - } - - [Description("CIDADE DO ITEM")] - public string CidadeItem - { - get; - set; - } - - [Description("CLIENTE DESDE")] - public DateTime? ClienteDesde - { - get; - set; - } - - [Description("CÓDIGO FIPE")] - public string CodFipe - { - get; - set; - } - - [Description("COMBUSTÍVEL")] - public string Combustivel - { - get; - set; - } - - [Description("COMISSÃO")] - public decimal? Comissao - { - get; - set; - } - - [Description("COMISSÃO GERADA")] - public decimal? ComissaoGerada - { - get; - set; - } - - [Description("COMPLEMENTO")] - public string Complemento - { - get; - set; - } - - [Description("COMPLEMENTO DO ITEM")] - public string ComplementoItem - { - get; - set; - } - - [Description("CONTA")] - public string ContaCliente - { - get; - set; - } - - [Description("CONTA DO CONTATO")] - public string ContaContato - { - get; - set; - } - - [Description("CONTATO DO ITEM")] - public string ContatoPatrimonial - { - get; - set; - } - - [Description("COR")] - public string Cor - { - get; - set; - } - - [Description("CORREÇÃO")] - public string Correcao - { - get; - set; - } - - [Description("COTA")] - public string Cota - { - get; - set; - } - - [Description("CPF PERFIL")] - public string CpfPerfil - { - get; - set; - } - - [Description("CULTURA DO GRANIZO")] - public string CulturaGranizo - { - get; - set; - } - - [Description("DANOS CORPORAIS FRANQUIA")] - public decimal? DanosCorporaisFranquia - { - get; - set; - } - - [Description("DANOS CORPORAIS LMI")] - public decimal? DanosCorporaisLmi - { - get; - set; - } - - [Description("DANOS CORPORAIS PREMIO")] - public decimal? DanosCorporaisPremios - { - get; - set; - } - - [Description("DANOS MATERIAIS FRANQUIA")] - public decimal? DanosMateriasFranquia - { - get; - set; - } - - [Description("DANOS MATERIAIS LMI")] - public decimal? DanosMateriasLmi - { - get; - set; - } - - [Description("DANOS MATERIAIS PREMIO")] - public decimal? DanosMateriasPremios - { - get; - set; - } - - [Description("DANOS MORAIS FRANQUIA")] - public decimal? DanosMoraisFranquia - { - get; - set; - } - - [Description("DANOS MORAIS LMI")] - public decimal? DanosMoraisLmi - { - get; - set; - } - - [Description("DANOS MORAIS PREMIO")] - public decimal? DanosMoraisPremios - { - get; - set; - } - - [Description("DATA CONTROLE")] - public DateTime? DataControle - { - get; - set; - } - - [Description("DATA LIQUIDAÇÃO")] - public DateTime? DataLiquidacao - { - get; - set; - } - - [Description("DATA RECLAMAÇÃO")] - public DateTime? DataReclamacao - { - get; - set; - } - - [Description("DATA DO SINISTRO")] - public DateTime? DataSinistro - { - get; - set; - } - - [Description("DDD 2 PRIMEIRO LOCATÁRIO")] - public string Ddd2Locatario - { - get; - set; - } - - [Description("DDD PRIMEIRO LOCATÁRIO")] - public string DddLocatario - { - get; - set; - } - - [Description("DDD SEGUNDO LOCATÁRIO")] - public string DddLocatario2 - { - get; - set; - } - - [Description("DDD TERCEIRO LOCATÁRIO")] - public string DddLocatario3 - { - get; - set; - } - - [Description("DESCRIÇÃO DO ITEM")] - public string DescricaoItem - { - get; - set; - } - - [Description("DESCRIÇÃO DO SINISTRO")] - public string DescricaoSinistro - { - get; - set; - } - - [Description("DESCRIÇÃO DA TAREFA")] - public string DescricaoTarefa - { - get; - set; - } - - [Description("DOCUMENTO PRINCIPAL")] - public string DocumentoCliente - { - get; - set; - } - - [Description("DOCUMENTO DO CONTATO")] - public string DocumentoContato - { - get; - set; - } - - [Description("DOCUMENTO PRIMEIRO LOCATÁRIO")] - public string DocumentoLocatario - { - get; - set; - } - - [Description("DOCUMENTO SEGUNDO LOCATÁRIO")] - public string DocumentoLocatario2 - { - get; - set; - } - - [Description("DOCUMENTO TERCEIRO LOCATÁRIO")] - public string DocumentoLocatario3 - { - get; - set; - } - - [Description("DOCUMENTO SINISTRADO")] - public string DocumentoSinistrado - { - get; - set; - } - - [Description("E-MAIL1")] - public string Email1 - { - get; - set; - } - - [Description("E-MAIL2")] - public string Email2 - { - get; - set; - } - - [Description("E-MAIL DO CONTATO")] - public string EmailContato - { - get; - set; - } - - [Description("EMISSÃO")] - public DateTime? Emissao - { - get; - set; - } - - [Description("EMISSOR")] - public string EmissorCliente - { - get; - set; - } - - [Description("ENDEREÇO")] - public string Endereco - { - get; - set; - } - - [Description("ENDEREÇO DO ITEM")] - public string EnderecoItem - { - get; - set; - } - - [Description("ESTADO")] - public string Estado - { - get; - set; - } - - [Description("ESTADO CIVIL")] - public string EstadoCivilCliente - { - get; - set; - } - - [Description("ESTADO CIVIL PERFIL")] - public string EstadoCivilPerfil - { - get; - set; - } - - [Description("ESTADO EMISSOR")] - public string EstadoEmissorCliente - { - 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("EXPEDIÇÃO")] - public DateTime? ExpedicaoCliente - { - get; - set; - } - - [Description("EXPEDIÇÃO DO CONTATO")] - public DateTime? ExpedicaoContato - { - get; - set; - } - - [Description("FABRICANTE")] - public string Fabricante - { - get; - set; - } - - [Description("FABRICANTE AERONÁUTICO")] - public string FabricanteAero - { - get; - set; - } - - [Description("FALECIDO")] - public string FalecidoCliente - { - get; - set; - } - - [Description("FINANCIADO")] - public string Financiado - { - get; - set; - } - - [Description("FORMA DE PAGAMENTO")] - public string FormaPagamento - { - get; - set; - } - - [Description("FROTA")] - public string Frota - { - get; - set; - } - - [Description("FUNCIONÁRIOS")] - public int? FuncionariosVida - { - get; - set; - } - - [Description("GRUPO")] - public string Grupo - { - get; - set; - } - - [Description("HIBILITAÇÃO")] - public string HabilitacaoCliente - { - get; - set; - } - - [Description("HABILITAÇÃO DO CONTATO")] - public string HabilitacaoContato - { - get; - set; - } - - [Description("CÓDIGO DOCUMENTO")] - public long IdDocumento - { - get; - set; - } - - [Description("IDENTIDADE")] - public string IdentidadeCliente - { - get; - set; - } - - [Description("IDENTIDADE DO CONTATO")] - public string IdentidadeContato - { - get; - set; - } - - [Description("IMOBILIÁRIA DO ITEM")] - public string ImobiliariaPatrimonial - { - get; - set; - } - - [Description("IOF")] - public decimal? Iof - { - get; - set; - } - - [Description("INSENÇÃO")] - public string Isencao - { - get; - set; - } - - [Description("LÍQUIDO FATURA")] - public decimal? LiquidoFatura - { - get; - set; - } - - [Description("PRIMEIRO LOCATÁRIO")] - public string Locatario - { - get; - set; - } - - [Description("SEGUNDO LOCATÁRIO")] - public string Locatario2 - { - get; - set; - } - - [Description("TERCEIRO LOCATÁRIO")] - public string Locatario3 - { - get; - set; - } - - [Description("MARINA AÉREO")] - public string MarinaAero - { - get; - set; - } - - [Description("MODELO")] - public string Modelo - { - get; - set; - } - - [Description("MODELO")] - public string ModeloAero - { - get; - set; - } - - [Description("MOTIVO DO SINISTRO")] - public string MotivoSinistro - { - get; - set; - } - - [Description("NASCIMENTO")] - public DateTime? NascimentoCliente - { - get; - set; - } - - [Description("NASCIMENTO DO CONTATO")] - public DateTime? NascimentoContato - { - get; - set; - } - - [Description("NASCIMENTO PERFIL")] - public DateTime? NascimentoPerfil - { - get; - set; - } - - [Description("NAVEGAÇÃO")] - public string NavegacaoAero - { - get; - set; - } - - [Description("NEGÓCIO CORRETORA")] - public string Negocio - { - get; - set; - } - - [Description("NOME PREFIXO")] - public string NomeAero - { - get; - set; - } - - [Description("NOME DO CLIENTE")] - public string NomeCliente - { - get; - set; - } - - [Description("NOME DO CONTATO")] - public string NomeContato - { - get; - set; - } - - [Description("NOME PERFIL")] - public string NomePerfil - { - get; - set; - } - - [Description("NÚMERO")] - public string Numero - { - get; - set; - } - - [Description("APÓLICE")] - public string NumeroApolice - { - get; - set; - } - - [Description("ENDOSSO")] - public string NumeroEndosso - { - get; - set; - } - - [Description("NÚMERO DO ITEM")] - public string NumeroItem - { - get; - set; - } - - [Description("PEDIDO ENDOSSO")] - public string NumeroPedidoEndosso - { - get; - set; - } - - [Description("PROPOSTA")] - public string NumeroProposta - { - get; - set; - } - - [Description("NÚMERO DO SINISTRO")] - public string NumeroSinistro - { - get; - set; - } - - [Description("NÚMERO DE PARCELAS")] - public int? NumParcelas - { - get; - set; - } - - [Description("OBSERVAÇÃO DO AERO")] - public string ObsAero - { - get; - set; - } - - [Description("OBSERVAÇÃO DO AUTO")] - public string ObsAuto - { - get; - set; - } - - [Description("OBSERVAÇÃO")] - public string ObservacaoCliente - { - get; - set; - } - - [Description("OBSERVAÇÃO DOCUMENTO")] - public string ObservacaoDocumento - { - get; - set; - } - - [Description("OBSERVAÇÃO DO ITEM")] - public string ObsGranizo - { - get; - set; - } - - [Description("OBSERVAÇÃO DO ITEM")] - public string ObsItem - { - get; - set; - } - - [Description("OBSERVAÇÃO DO ITEM")] - public string ObsPatrimonial - { - get; - set; - } - - [Description("OBSERVAÇÕES DA PROSPECÇÃO")] - public string ObsProspeccao - { - get; - set; - } - - [Description("OBSERVAÇÃO RISCOS DIVERSOS")] - public string ObsRiscos - { - get; - set; - } - - [Description("OBSERVAÇÃO DO SINISTRO")] - public string ObsSinistro - { - get; - set; - } - - [Description("OBSERVAÇÃO DE VIDA")] - public string ObsVida - { - get; - set; - } - - [Description("PARENTESCO")] - public string Parentesco - { - get; - set; - } - - [Description("PASSAGEIROS")] - public int? PassageirosAero - { - get; - set; - } - - [Description("PASTA")] - public string PastaCliente - { - get; - set; - } - - [Description("PCD")] - public string Pcd - { - get; - set; - } - - [Description("PESO")] - public decimal? PesoAero - { - get; - set; - } - - [Description("PLACA")] - public string Placa - { - get; - set; - } - - [Description("PLANO")] - public string PlanoVida - { - get; - set; - } - - [Description("PORCENTAGEM DE REFERÊNCIA")] - public decimal? PorcRef - { - get; - set; - } - - [Description("PORTAS")] - public string Portas - { - get; - set; - } - - [Description("PREFIXO1")] - public string Prefixo1 - { - get; - set; - } - - [Description("PREFIXO2")] - public string Prefixo2 - { - get; - set; - } - - [Description("PREFIXO3")] - public string Prefixo3 - { - get; - set; - } - - [Description("PREFIXO DO CONTATO")] - public string PrefixoContato - { - get; - set; - } - - [Description("PRÊMIO ADICIONAL")] - public decimal? PremioAdicional - { - get; - set; - } - - [Description("PRÊMIO CUSTO")] - public decimal? PremioCusto - { - get; - set; - } - - [Description("PRÊMIO LÍQUIDO")] - public decimal? PremioLiquido - { - get; - set; - } - - [Description("PRÊMIO TOTAL")] - public decimal? PremioTotal - { - get; - set; - } - - [Description("PRIMEIRA HABILITAÇÃO")] - public DateTime? PrimeiraHabilitacaoCliente - { - get; - set; - } - - [Description("PRIMEIRA HABILITAÇÃO DO CONTATO")] - public DateTime? PrimeiraHabilitacaoContato - { - get; - set; - } - - [Description("PRODUTO")] - public string Produto - { - get; - set; - } - - [Description("PROFISSÃO")] - public string ProfissaoCliente - { - get; - set; - } - - [Description("QUANTIDADE DE ENDOSSOS")] - public int QtdeEndosso - { - get; - set; - } - - [Description("QUANTIDADE DE SINISTROS")] - public int QtdeSinistro - { - get; - set; - } - - [Description("RAMO")] - public string Ramo - { - get; - set; - } - - [Description("REGIÃO DE CIRCULAÇÃO")] - public string RegCirc - { - get; - set; - } - - [Description("TRANSMISSÃO")] - public DateTime? Remessa - { - get; - set; - } - - [Description("RENAVAM")] - public string Renavam - { - get; - set; - } - - [Description("R.N.E.")] - public string RneCliente - { - get; - set; - } - - [Description("SEGURADORA")] - public string Seguradora - { - get; - set; - } - - [Description("SEGURADORA ANTERIOR")] - public string SeguradoraAnterior - { - get; - set; - } - - [Description("SÉRIE DE REGISTRO")] - public string SerieAero - { - get; - set; - } - - [Description("SEXO")] - public string SexoCliente - { - get; - set; - } - - [Description("SEXO PERFIL")] - public string SexoPerfil - { - get; - set; - } - - [Description("ITEM SINISTRADO")] - public string SinistradoItem - { - get; - set; - } - - [Description("SÍTIO DO GRANIZO")] - public string SitioGranizo - { - get; - set; - } - - [Description("SÓCIOS")] - public int? SociosVida - { - get; - set; - } - - [Description("STATUS")] - public string Status - { - get; - set; - } - - [Description("STATUS DO ITEM")] - public string StatusItem - { - get; - set; - } - - [Description("SUBSÍDIO ESTADUAL DO GRANIZO")] - public decimal? SubEstGranizo - { - get; - set; - } - - [Description("SUBSÍDIO ESTADUAL RISCOS DIVERSOS")] - public decimal? SubEstRiscos - { - get; - set; - } - - [Description("SUBSÍDIO FEDERAL DO GRANIZO")] - public decimal? SubFedGranizo - { - get; - set; - } - - [Description("SUBSÍDIO FEDERAL RISCOS DIVERSOS")] - public decimal? SubFedRiscos - { - get; - set; - } - - [Description("TABELA DE REFERÊNCIA")] - public string TabelaRef - { - get; - set; - } - - [Description("TELEFONE1")] - public string Telefone1 - { - get; - set; - } - - [Description("TELEFONE2")] - public string Telefone2 - { - get; - set; - } - - [Description("TELEFONE 2 PRIMEIRO LOCATÁRIO")] - public string Telefone2Locatario - { - get; - set; - } - - [Description("TELEFONE3")] - public string Telefone3 - { - get; - set; - } - - [Description("TELEFONE DO CONTATO")] - public string TelefoneContato - { - get; - set; - } - - [Description("TELEFONE PRIMEIRO LOCATÁRIO")] - public string TelefoneLocatario - { - get; - set; - } - - [Description("TELEFONE SEGUNDO LOCATÁRIO")] - public string TelefoneLocatario2 - { - get; - set; - } - - [Description("TELEFONE TERCEIRO LOCATÁRIO")] - public string TelefoneLocatario3 - { - get; - set; - } - - [Description("TIPO DA PROSPECÇÃO")] - public string TipoProspeccao - { - get; - set; - } - - [Description("TIPO DO RECEBIMENTO")] - public string TipoRecebimento - { - get; - set; - } - - [Description("TIPO DE RESIDÊNCIA DO ITEM")] - public string TipoResidenciaPatrimonial - { - get; - set; - } - - [Description("TITULO DA TAREFA")] - public string TituloTarefa - { - get; - set; - } - - [Description("TOTAL FATURA")] - public decimal? TotalFatura - { - get; - set; - } - - [Description("TRIPULANTES")] - public int? TripulantesAero - { - get; - set; - } - - [Description("UF DO ITEM")] - public string UfItem - { - get; - set; - } - - [Description("VALOR CRÉDITO")] - public decimal? ValorCredito - { - get; - set; - } - - [Description("VALOR DETERMINADO")] - public decimal? ValorDeterminado - { - get; - set; - } - - [Description("FRANQUIA DA APÓLICE")] - public decimal? ValorFranquiaApolice - { - get; - set; - } - - [Description("VALOR FRANQUIA")] - public decimal? ValorFranquiaSinistro - { - get; - set; - } - - [Description("VALOR LIBERADO")] - public decimal? ValorLiberado - { - get; - set; - } - - [Description("VALOR ORÇADO")] - public decimal? ValorOrcado - { - get; - set; - } - - [Description("VALOR PAGO")] - public decimal? ValorPago - { - get; - set; - } - - [Description("VALOR PARCELAS")] - public decimal? ValorParcela - { - get; - set; - } - - [Description("VALOR SALVO")] - public decimal? ValorSalvo - { - get; - set; - } - - [Description("VALOR DO SINISTRO")] - public decimal? ValorSinistro - { - get; - set; - } - - [Description("VENCIMENTO DA HABILITAÇÃO")] - public DateTime? VencimentoHabilitacaoCliente - { - get; - set; - } - - [Description("VENDEDOR PRINCIPAL")] - public string Vendedor - { - get; - set; - } - - [Description("VIGÊNCIA FINAL")] - public DateTime? VigenciaFinal - { - get; - set; - } - - [Description("VIGÊNCIA INICIAL")] - public DateTime? VigenciaInicial - { - get; - set; - } - - [Description("VISTORIA")] - public DateTime? VistoriaAero - { - get; - set; - } - - [Description("ZERO KM")] - public string ZeroKm - { - get; - set; - } - - public PlanilhaCompleta() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/PrevisaoPagamentoComissao/AgrupamentoSintetico.cs b/Gestor.Model/Model.Domain.Relatorios/PrevisaoPagamentoComissao/AgrupamentoSintetico.cs deleted file mode 100644 index 2ca7a64..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/PrevisaoPagamentoComissao/AgrupamentoSintetico.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao -{ - public class AgrupamentoSintetico - { - [Description("NOME")] - public string Nome - { - get; - set; - } - - [Description("PREVISÃO LÍQUIDA")] - [Tipo("VALOR")] - public decimal PrevisaoLiquida - { - get; - set; - } - - [Description("PREVISÃO DE PAGAMENTO")] - [Tipo("VALOR")] - public decimal PrevisaoPagamento - { - get; - set; - } - - public AgrupamentoSintetico() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/PrevisaoPagamentoComissao/PrevisaoPagamento.cs b/Gestor.Model/Model.Domain.Relatorios/PrevisaoPagamentoComissao/PrevisaoPagamento.cs deleted file mode 100644 index f811010..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/PrevisaoPagamentoComissao/PrevisaoPagamento.cs +++ /dev/null @@ -1,132 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Seguros; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao -{ - public class PrevisaoPagamento - { - [Description("APÓLICE")] - public string Apolice - { - get; - set; - } - - [Description("ENDOSSO")] - public string Endosso - { - get; - set; - } - - [Description("NOME")] - public string Nome - { - get; - set; - } - - [Description("RAMO")] - public string NomeRamo - { - get; - set; - } - - [Description("SEGURADORA")] - public string NomeSeguradora - { - get; - set; - } - - [Description("PARCELA")] - public string Parcela - { - get; - set; - } - - [Description("PRÊMIO LÍQUIDO")] - [Tipo("VALOR")] - public decimal PremioLiquido - { - get; - set; - } - - [Tipo("INVALID")] - public string Ramo - { - get; - set; - } - - [Description("REPASSE")] - [Tipo("VALOR")] - public decimal Repasse - { - get; - set; - } - - [Description("REPASSE LÍQUIDO")] - [Tipo("VALOR")] - public decimal RepasseLiquido - { - get; - set; - } - - [Tipo("INVALID")] - public string Seguradora - { - get; - set; - } - - [Description("STATUS")] - public string Status - { - get; - set; - } - - [Description("TIPO DOCUMENTO")] - public string TipoDocumento - { - get; - set; - } - - [Description("VENCIMENTO PARCELA")] - [Tipo("DATA")] - public DateTime VencimentoParcela - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Vendedor Vendedor - { - get; - set; - } - - [Description("VIGÊNCIA INICIAL")] - [Tipo("DATA")] - public DateTime VigenciaInicial - { - get; - set; - } - - public PrevisaoPagamento() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/PrevisaoPagamentoComissao/PrevisaoPagamentoComissao.cs b/Gestor.Model/Model.Domain.Relatorios/PrevisaoPagamentoComissao/PrevisaoPagamentoComissao.cs deleted file mode 100644 index af70774..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/PrevisaoPagamentoComissao/PrevisaoPagamentoComissao.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao -{ - public class PrevisaoPagamentoComissao - { - public ObservableCollection<Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao.PrevisaoPagamento> PrevisaoPagamento - { - get; - set; - } - - public string Vendedor - { - get; - set; - } - - public PrevisaoPagamentoComissao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/PrevisaoPagamentoComissao/PrevisaoPagamentoComissaoSintetico.cs b/Gestor.Model/Model.Domain.Relatorios/PrevisaoPagamentoComissao/PrevisaoPagamentoComissaoSintetico.cs deleted file mode 100644 index 823aa88..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/PrevisaoPagamentoComissao/PrevisaoPagamentoComissaoSintetico.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao -{ - public class PrevisaoPagamentoComissaoSintetico - { - public ObservableCollection<AgrupamentoSintetico> Agrupamento - { - get; - set; - } - - public string Titulo - { - get; - set; - } - - public PrevisaoPagamentoComissaoSintetico() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Producao/Producao.cs b/Gestor.Model/Model.Domain.Relatorios/Producao/Producao.cs deleted file mode 100644 index 9202bb8..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Producao/Producao.cs +++ /dev/null @@ -1,372 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Seguros; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Producao -{ - public class Producao - { - [Description("AGÊNCIA")] - public string Agencia - { - get; - set; - } - - [Description("APÓLICE")] - public string Apolice - { - get; - set; - } - - [Description("APÓLICE CONFERIDA")] - public string ApoliceConferida - { - get; - set; - } - - [Description("PROP. ASSINADA SIGGNER")] - public string AssinadaSiggner - { - get; - set; - } - - [Tipo("INVALID")] - public List<StatusDocumentoAssinado> Assinaturas - { - get; - set; - } - - [Description("BANCO")] - public string Banco - { - get; - set; - } - - [Description("CLIENTE")] - public string Cliente - { - get; - set; - } - - [Description("COMISSÃO")] - [Tipo("PERCENTUAL")] - public decimal Comissao - { - get; - set; - } - - [Description("COMISSÃO GERADA")] - [Tipo("VALOR")] - public decimal ComissaoGerada - { - get; - set; - } - - [Description("CONTA")] - public string Conta - { - get; - set; - } - - [Description("DATA CONTROLE")] - public DateTime? DataControle - { - get; - set; - } - - [Description("DATA DE CADASTRO")] - [Tipo("DATA?")] - public DateTime? DataCriacao - { - get; - set; - } - - [Description("TIPO VENDEDORES")] - public string DescricaoTipoVendedor - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Documento Documento - { - get; - set; - } - - [Description("DOCUMENTO DO CLIENTE")] - public string DocumentoCliente - { - get; - set; - } - - [Description("EMAILS")] - public string Emails - { - get; - set; - } - - [Description("EMISSÃO")] - [Tipo("DATA?")] - public DateTime? Emissao - { - get; - set; - } - - [Description("FILIAL")] - public string Empresa - { - get; - set; - } - - [Description("ENDOSSO")] - public string Endosso - { - get; - set; - } - - [Description("ESTIPULANTE")] - public string Estipulante - { - get; - set; - } - - [Tipo("INVALID")] - public long IdEmpresa - { - get; - set; - } - - [Description("ITEM")] - public string Item - { - get; - set; - } - - [Description("NEGÓCIO CORRETORA")] - public string Negocio - { - get; - set; - } - - [Description("QUANTIDADE PARCELAS")] - [Tipo("QUANTIDADE")] - public decimal NumeroParcelas - { - get; - set; - } - - [Description("PASTA")] - public string Pasta - { - get; - set; - } - - [Description("PASTA CLIENTE")] - public string PastaCliente - { - get; - set; - } - - [Description("PRÊMIO LÍQUIDO")] - [Tipo("VALOR")] - public decimal PremioLiquido - { - get; - set; - } - - [Description("PRÊMIO TOTAL")] - [Tipo("VALOR")] - public decimal PremioTotal - { - get; - set; - } - - [Description("PRODUTO")] - public string Produto - { - get; - set; - } - - [Description("PROPOSTA ASSINADA")] - public string PropAssinada - { - get; - set; - } - - [Description("PROPOSTA")] - public string Proposta - { - get; - set; - } - - [Description("PROPOSTA ENDOSSO")] - public string PropostaEndosso - { - get; - set; - } - - [Description("RAMO")] - public string Ramo - { - get; - set; - } - - [Description("TRANSMISSÃO")] - [Tipo("DATA?")] - public DateTime? Remessa - { - get; - set; - } - - [Description("REPASSE VENDEDOR")] - [Tipo("VALORDECIMAL2")] - public decimal? RepasseVendedor - { - get; - set; - } - - [Description("SEGURADORA")] - public string Seguradora - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("STATUS")] - public string Status - { - get; - set; - } - - [Description("STATUS APÓLICE")] - public string StatusApolice - { - get; - set; - } - - [Description("STATUS ASSINATURA")] - [Tipo("ENUM")] - public Gestor.Model.Common.StatusAssinatura StatusAssinatura - { - get; - set; - } - - [Description("TELEFONES")] - public string Telefones - { - get; - set; - } - - [Tipo("INVALID")] - public int Tipo - { - get; - set; - } - - [Description("TIPO DOCUMENTO")] - public string TipoDocumento - { - get; - set; - } - - [Description("TIPO PAGAMENTO")] - public string TipoPagamento - { - get; - set; - } - - [Description("TIPO PESSOA")] - public string TipoPessoa - { - get; - set; - } - - [Description("TODOS VENDEDORES")] - public string TodosVendedores - { - get; - set; - } - - [Description("VENDEDOR")] - public string Vendedor - { - get; - set; - } - - [Description("VIGÊNCIA FINAL")] - [Tipo("DATA?")] - public DateTime? VigenciaFinal - { - get; - set; - } - - [Description("VIGÊNCIA INICIAL")] - [Tipo("DATA")] - public DateTime VigenciaInicial - { - get; - set; - } - - public Producao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Producao/SinteticoProducao.cs b/Gestor.Model/Model.Domain.Relatorios/Producao/SinteticoProducao.cs deleted file mode 100644 index 534ddc0..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Producao/SinteticoProducao.cs +++ /dev/null @@ -1,68 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Producao -{ - public class SinteticoProducao - { - [Description("QUANTIDADE DE APÓLICES")] - [Tipo("QUANTIDADE")] - public int Apolices - { - get; - set; - } - - public string Descricao - { - get; - set; - } - - [Description("QUANTIDADE DE ENDOSSOS")] - [Tipo("QUANTIDADE")] - public int Endossos - { - get; - set; - } - - [Description("MÉDIA DE COMISSÃO")] - [Tipo("PERCENTUAL")] - public decimal MediaComissao - { - get; - set; - } - - [Description("SOMA PRÊMIO LÍQUIDO")] - [Tipo("VALOR")] - public decimal PremioLiquido - { - get; - set; - } - - [Description("SOMA PRÊMIO TOTAL")] - [Tipo("VALOR")] - public decimal PremioTotal - { - get; - set; - } - - [Description("TOTAL DE DOCUMENTOS")] - [Tipo("QUANTIDADE")] - public int Total - { - get; - set; - } - - public SinteticoProducao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Renovacao/Renovacao.cs b/Gestor.Model/Model.Domain.Relatorios/Renovacao/Renovacao.cs deleted file mode 100644 index 2c2c547..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Renovacao/Renovacao.cs +++ /dev/null @@ -1,296 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Aggilizador; -using Gestor.Model.Domain.Seguros; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Renovacao -{ - public class Renovacao - { - [Description("AGÊNCIA")] - public string Agencia - { - get; - set; - } - - [Description("APÓLICE")] - public string Apolice - { - get; - set; - } - - [Description("BANCO")] - public string Banco - { - get; - set; - } - - [Tipo("INVALID")] - public List<Calculo> Calculos - { - get; - set; - } - - [Description("CLIENTE")] - public string Cliente - { - get; - set; - } - - [Description("COMISSÃO")] - [Tipo("PERCENTUAL")] - public decimal Comissao - { - get; - set; - } - - [Description("COMISSÃO GERADA")] - [Tipo("VALOR")] - public decimal ComissaoGerada - { - get; - set; - } - - [Description("CONTA")] - public string Conta - { - get; - set; - } - - [Description("DATA CONTROLE")] - [Tipo("DATA?")] - public DateTime? DataControle - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Documento Documento - { - get; - set; - } - - [Description("DOCUMENTO DO CLIENTE")] - public string DocumentoCliente - { - get; - set; - } - - [Description("E-MAIL")] - public string Email - { - get; - set; - } - - [Description("FILIAL")] - public string Empresa - { - get; - set; - } - - [Description("ENDOSSO")] - public string Endosso - { - get; - set; - } - - [Description("ESTIPULANTE")] - public string Estipulante - { - get; - set; - } - - public long IdEmpresa - { - get; - set; - } - - [Description("ITEM")] - public string Item - { - get; - set; - } - - [Description("TIPO RENOVAÇÃO")] - public string Negocio - { - get; - set; - } - - [Description("PASTA")] - public string Pasta - { - get; - set; - } - - [Description("PASTA CLIENTE")] - public string PastaCliente - { - get; - set; - } - - [Description("PRÊMIO LÍQUIDO")] - [Tipo("VALOR")] - public decimal PremioLiquido - { - get; - set; - } - - [Description("PRÊMIO TOTAL")] - [Tipo("VALOR")] - public decimal PremioTotal - { - get; - set; - } - - [Description("PRODUTO")] - public string Produto - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Prospeccao Prospeccao - { - get; - set; - } - - [Description("SINISTROS ITENS ATIVOS")] - [Tipo("INT")] - public int QtdSinistro - { - get; - set; - } - - [Description("RAMO")] - public string Ramo - { - get; - set; - } - - [Description("SEGURADORA")] - public string Seguradora - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("SINISTRO")] - public string Sinistro - { - get; - set; - } - - [Description("STATUS")] - public string Status - { - get; - set; - } - - [Description("STATUS APÓLICE")] - public string StatusApolice - { - get; - set; - } - - [Description("TELEFONE")] - public string Telefone - { - get; - set; - } - - [Tipo("INVALID")] - public int Tipo - { - get; - set; - } - - [Description("TIPO DOCUMENTO")] - public string TipoDocumento - { - get; - set; - } - - [Description("TIPO PAGAMENTO")] - public string TipoPagamento - { - get; - set; - } - - [Description("TIPO DE PESSOA")] - public string TipoPessoa - { - get; - set; - } - - [Description("TODOS VENDEDORES")] - public string TodosVendedores - { - get; - set; - } - - [Description("VENDEDOR PRINCIPAL")] - public string Vendedor - { - get; - set; - } - - [Description("VIGÊNCIA FINAL")] - [Tipo("DATA?")] - public DateTime? VigenciaFinal - { - get; - set; - } - - public Renovacao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Renovacao/SinteticoRenovacao.cs b/Gestor.Model/Model.Domain.Relatorios/Renovacao/SinteticoRenovacao.cs deleted file mode 100644 index c2c3cb7..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Renovacao/SinteticoRenovacao.cs +++ /dev/null @@ -1,76 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Renovacao -{ - public class SinteticoRenovacao - { - [Description("CANCELADOS")] - [Tipo("QUANTIDADE")] - public int Cancelados - { - get; - set; - } - - public string Descricao - { - get; - set; - } - - [Description("NÃO TRABALHADOS")] - [Tipo("QUANTIDADE")] - public int NaoTrabalhados - { - get; - set; - } - - [Description("PERDIDOS")] - [Tipo("QUANTIDADE")] - public int Perdidos - { - get; - set; - } - - [Description("REABILITADOS")] - [Tipo("QUANTIDADE")] - public int Reabilitados - { - get; - set; - } - - [Description("RECUSADOS")] - [Tipo("QUANTIDADE")] - public int Recusados - { - get; - set; - } - - [Description("RENOVADOS")] - [Tipo("QUANTIDADE")] - public int Renovados - { - get; - set; - } - - [Description("TOTAL DE RENOVAÇÕES")] - [Tipo("QUANTIDADE")] - public int Total - { - get; - set; - } - - public SinteticoRenovacao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Sinistro/Sinistro.cs b/Gestor.Model/Model.Domain.Relatorios/Sinistro/Sinistro.cs deleted file mode 100644 index 67f9c76..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Sinistro/Sinistro.cs +++ /dev/null @@ -1,359 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Seguros; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Sinistro -{ - public class Sinistro - { - [Description("APÓLICE")] - public string Apolice - { - get; - set; - } - - [Description("AUXILIAR")] - public string Auxiliar - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Cliente Cliente - { - get; - set; - } - - [Description("CPF/CNPJ")] - public string CpfCnpj - { - get; - set; - } - - [Description("DATA ALTERAÇÃO")] - public DateTime? DataAlteracao - { - get; - set; - } - - [Description("DATA CONTROLE")] - [Tipo("DATA?")] - public DateTime? DataControle - { - get; - set; - } - - [Description("DATA CRIAÇÃO")] - public DateTime? DataCriacao - { - get; - set; - } - - [Description("DATA OCORRÊNCIA")] - [Tipo("DATA/TIME")] - public DateTime DataSinistro - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Documento Documento - { - get; - set; - } - - [Description("E-MAIL")] - public string Email - { - get; - set; - } - - [Description("FILIAL")] - public string Empresa - { - get; - set; - } - - [Description("ENDOSSO")] - public string Endosso - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Item EntidadeItem - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Domain.Seguros.Sinistro EntidadeSinistro - { - get; - set; - } - - [Description("ESTIPULANTE")] - public string Estipulante - { - get; - set; - } - - [Description("FUNILARIA")] - public string Funilaria - { - get; - set; - } - - [Tipo("INVALID")] - public long IdEmpresa - { - get; - set; - } - - [Description("ITEM")] - public string Item - { - get; - set; - } - - [Description("LIQUIDAÇÃO")] - [Tipo("DATA?")] - public DateTime? Liquidacao - { - get; - set; - } - - [Description("MECÂNICA")] - public string Mecanica - { - get; - set; - } - - [Description("MOTIVO")] - public string Motivo - { - get; - set; - } - - [Description("NOME")] - public string Nome - { - get; - set; - } - - [Description("NÚMERO SINISTRO")] - public string NumeroSinistro - { - get; - set; - } - - [Description("PASTA")] - public string Pasta - { - get; - set; - } - - [Description("PASTA CLIENTE")] - public string PastaCliente - { - get; - set; - } - - [Description("PENDÊNCIA")] - public int Pendencia - { - get; - set; - } - - [Description("RAMO")] - public string Ramo - { - get; - set; - } - - [Description("RECLAMAÇÃO")] - [Tipo("DATA/TIME")] - public DateTime Reclamacao - { - get; - set; - } - - [Description("SEGURADORA")] - public string Seguradora - { - get; - set; - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("STATUS APÓLICE")] - public string StatusApolice - { - get; - set; - } - - [Description("STATUS INTERNO")] - public string StatusPersonalizado - { - get; - set; - } - - [Description("STATUS")] - [Tipo("ENUM")] - public Gestor.Model.Common.StatusSinistro StatusSinistro - { - get; - set; - } - - [Description("TELEFONE")] - public string Telefone - { - get; - set; - } - - [Description("TIPO PERDA")] - public string TipoPerda - { - get; - set; - } - - [Description("TIPO")] - [Tipo("ENUM")] - public Gestor.Model.Common.TipoSinistro TipoSinistro - { - get; - set; - } - - [Description("USUÁRIO ALTERAÇÃO")] - public string UsuarioAlteracao - { - get; - set; - } - - [Description("USUÁRIO CRIAÇÃO")] - public string UsuarioCriacao - { - get; - set; - } - - [Description("VALOR")] - [Tipo("VALOR")] - public decimal Valor - { - get; - set; - } - - [Description("VALOR FRANQUIA")] - [Tipo("VALOR")] - public decimal ValorFranquia - { - get; - set; - } - - [Description("VALOR LIBERADO")] - [Tipo("VALOR")] - public decimal ValorLiberado - { - get; - set; - } - - [Description("VALOR ORÇADO")] - [Tipo("VALOR")] - public decimal ValorOrcado - { - get; - set; - } - - [Description("VALOR PAGO")] - [Tipo("VALOR")] - public decimal ValorPago - { - get; - set; - } - - [Description("VALOR SALVADO")] - [Tipo("VALOR")] - public decimal ValorSalvado - { - get; - set; - } - - [Description("VENDEDOR PRINCIPAL")] - public string Vendedor - { - get; - set; - } - - [Description("VIGÊNCIA FINAL")] - [Tipo("DATA?")] - public DateTime? VigenciaFinal - { - get; - set; - } - - [Description("VIGÊNCIA INICIAL")] - [Tipo("DATA?")] - public DateTime? VigenciaInicial - { - get; - set; - } - - public Sinistro() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Sinistro/SinteticoSinistro.cs b/Gestor.Model/Model.Domain.Relatorios/Sinistro/SinteticoSinistro.cs deleted file mode 100644 index 51c4025..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Sinistro/SinteticoSinistro.cs +++ /dev/null @@ -1,68 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Sinistro -{ - public class SinteticoSinistro - { - public string Descricao - { - get; - set; - } - - [Description("QUANTIDADE LIQUIDADO")] - [Tipo("QUANTIDADE")] - public int Liquidado - { - get; - set; - } - - [Description("QUANTIDADE PENDENTE")] - [Tipo("QUANTIDADE")] - public int Pendente - { - get; - set; - } - - [Description("TOTAL")] - [Tipo("QUANTIDADE")] - public int Total - { - get; - set; - } - - [Description("VALOR LIQUIDADO")] - [Tipo("VALOR")] - public decimal ValorLiquidado - { - get; - set; - } - - [Description("VALOR PENDENTE")] - [Tipo("VALOR")] - public decimal ValorPendente - { - get; - set; - } - - [Description("VALOR TOTAL")] - [Tipo("VALOR")] - public decimal ValorTotal - { - get; - set; - } - - public SinteticoSinistro() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/SinteticModel.cs b/Gestor.Model/Model.Domain.Relatorios/SinteticModel.cs deleted file mode 100644 index 6542ac7..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/SinteticModel.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios -{ - public class SinteticModel - { - public string DescriptionField - { - get; - set; - } - - public string Hint - { - get; - set; - } - - public object Value - { - get; - set; - } - - public SinteticModel() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/SinteticModelList.cs b/Gestor.Model/Model.Domain.Relatorios/SinteticModelList.cs deleted file mode 100644 index 1f0cc2a..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/SinteticModelList.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios -{ - public class SinteticModelList - { - public string Hint - { - get; - set; - } - - public List<object> Value - { - get; - set; - } - - public SinteticModelList() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Sintetico.cs b/Gestor.Model/Model.Domain.Relatorios/Sintetico.cs deleted file mode 100644 index 021791a..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Sintetico.cs +++ /dev/null @@ -1,448 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -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")] - [Description("QUANTIDADE DE APÓLICES")] - [Tipo("QUANTIDADE")] - public int? Apolices - { - get; - set; - } - - [Category("SEGUROS")] - [Description("QUANTIDADE DE CANCELAMENTOS")] - [Tipo("QUANTIDADE")] - public int? Cancelamentos - { - get; - set; - } - - [Category("SEGUROS")] - [Description("TOTAL DE COMISSÃO GERADA")] - [Tipo("VALOR")] - public decimal? ComissaoGerada - { - get; - set; - } - - [Category("SEGUROS")] - [Description("COMISSÃO PENDENTE")] - [Tipo("VALOR")] - public decimal? ComissaoPendente - { - get; - set; - } - - [Category("SEGUROS")] - [Description("COMISSÃO PREVISTA")] - [Tipo("VALOR")] - public decimal? ComissaoPrevista - { - get; - set; - } - - [Category("SEGUROS")] - [Description("COMISSÃO RECEBIDA BRUTA")] - [Tipo("VALOR")] - public decimal? ComissaoRecebidaBruta - { - get; - set; - } - - [Category("SEGUROS")] - [Description("COMISSÃO RECEBIDA LÍQUIDA")] - [Tipo("VALOR")] - public decimal? ComissaoRecebidaLiquida - { - get; - set; - } - - [Category("SEGUROS")] - [Description("QUANTIDADE DE ENDOSSOS")] - [Tipo("QUANTIDADE")] - public int? Endossos - { - get; - set; - } - - [Category("SEGUROS")] - [Description("QUANTIDADE DE FATURAS (DOCUMENTOS)")] - [Tipo("QUANTIDADE")] - public int? Faturas - { - get; - set; - } - - [Category("SEGUROS")] - [Description("IMPOSTOS")] - [Tipo("VALOR")] - public decimal? Impostos - { - get; - set; - } - - [Category("SEGUROS")] - [Description("ISS")] - [Tipo("VALOR")] - public decimal? Iss - { - get; - set; - } - - [Category("SEGUROS")] - [Description("QUANTIDADE LIQUIDADO")] - [Tipo("QUANTIDADE")] - public int? Liquidado - { - get; - set; - } - - [Category("SEGUROS")] - [Description("MÉDIA DE COMISSÃO FECHADA")] - [Tipo("PERCENTUAL")] - public decimal? MediaComissao - { - get; - set; - } - - [Category("SEGUROS")] - [Description("MÉDIA DE COMISSÃO PONDERADA")] - [Tipo("PERCENTUAL")] - public decimal? MediaPonderada - { - get; - set; - } - - [Category("SEGUROS")] - [Description("% CUMPRIDA")] - [Tipo("PERCENTUAL")] - public decimal? Meta - { - get; - set; - } - - [Category("SEGUROS")] - [Description("META ATINGIR")] - [Tipo("VALOR")] - public decimal? MetaAtingir - { - get; - set; - } - - [Category("SEGUROS")] - [Description("META CUMPRIDA")] - [Tipo("VALOR")] - public decimal? MetaCumprida - { - get; - set; - } - - [Category("SEGUROS")] - [Description("QUANTIDADE DE NEGÓCIOS PRÓPRIOS")] - [Tipo("QUANTIDADE")] - public int? NegociosProprios - { - get; - set; - } - - [Category("SEGUROS")] - [Description("QUANTIDADE DE NOVOS NEGÓCIOS")] - [Tipo("QUANTIDADE")] - public int? Novos - { - get; - set; - } - - [Category("SEGUROS")] - [Description("QUANTIDADE PENDENTE")] - [Tipo("QUANTIDADE")] - public int? Pendente - { - get; - set; - } - - [Category("SEGUROS")] - [Description("PRÊMIO LÍQUIDO")] - [Tipo("VALOR")] - public decimal? PremioLiquido - { - get; - set; - } - - [Category("SEGUROS")] - [Description("PRÊMIO TOTAL")] - [Tipo("VALOR")] - public decimal? PremioTotal - { - get; - set; - } - - [Category("SEGUROS")] - [Description("QUANTIDADE DE RENOVAÇÕES")] - [Tipo("QUANTIDADE")] - public int? Renovacoes - { - get; - set; - } - - [Category("SEGUROS")] - [Description("REPASSE")] - [Tipo("VALOR")] - public decimal? Repasse - { - get; - set; - } - - [Category("SEGUROS")] - [Description("QUANTIDADE DE SEGUROS NOVOS")] - [Tipo("QUANTIDADE")] - public int? SegurosNovos - { - get; - set; - } - - [Category("SEGUROS")] - [Description("TOTAL DE CLIENTES")] - [Tipo("QUANTIDADE")] - public int? TotalClientes - { - get; - set; - } - - [Category("SEGUROS")] - [Description("TOTAL DE CLIENTES ATIVOS")] - [Tipo("QUANTIDADE")] - public int? TotalClientesAtivos - { - get; - set; - } - - [Category("SEGUROS")] - [Description("TOTAL DE CLIENTES INATIVOS")] - [Tipo("QUANTIDADE")] - public int? TotalClientesInativos - { - get; - set; - } - - [Category("SEGUROS")] - [Description("TOTAL GERAL")] - [Tipo("QUANTIDADE")] - public int? TotalGeral - { - get; - set; - } - - [Category("SEGUROS")] - [Description("TOTAL DE LÍQUIDO")] - [Tipo("QUANTIDADE")] - public int? TotalLiquido - { - get; - set; - } - - [Category("SEGUROS")] - [Description("TOTAL PARCELAS")] - [Tipo("VALOR")] - public decimal? TotalParcela - { - get; - set; - } - - [Category("SEGUROS")] - [Description("TOTAL PREVISTO")] - [Tipo("VALOR")] - public decimal? TotalPrevista - { - get; - set; - } - - [Category("SEGUROS")] - [Description("QUANTIDADE DE PROSPECÇÕES")] - [Tipo("QUANTIDADE")] - public int? TotalProspeccao - { - get; - set; - } - - [Category("SEGUROS")] - [Description("TOTAL DE TAREFAS")] - [Tipo("QUANTIDADE")] - public int? TotalTarefas - { - get; - set; - } - - [Category("SEGUROS")] - [Description("TOTAL DE TERCEIROS")] - [Tipo("QUANTIDADE")] - public int? TotalTerceiros - { - get; - set; - } - - [Category("FINANCEIRO")] - [Description("VALOR")] - [Tipo("VALOR")] - public decimal? Valor - { - get; - set; - } - - [Category("FINANCEIRO")] - [Description("VALOR BRUTO")] - [Tipo("VALOR")] - public decimal? ValorBruto - { - get; - set; - } - - [Category("FINANCEIRO")] - [Description("VALOR FRANQUIA")] - [Tipo("VALOR")] - public decimal? ValorFranquia - { - get; - set; - } - - [Category("FINANCEIRO")] - [Description("ISS")] - [Tipo("VALOR")] - public decimal? ValorIss - { - get; - set; - } - - [Category("FINANCEIRO")] - [Description("VALOR LIBERADO")] - [Tipo("VALOR")] - public decimal? ValorLiberado - { - get; - set; - } - - [Category("SEGUROS")] - [Description("VALOR LIQUIDADO")] - [Tipo("VALOR")] - public decimal? ValorLiquidado - { - get; - set; - } - - [Category("SEGUROS")] - [Description("VALOR LÍQUIDO")] - [Tipo("VALOR")] - public decimal? ValorLiquido - { - get; - set; - } - - [Category("FINANCEIRO")] - [Description("VALOR ORÇADO")] - [Tipo("VALOR")] - public decimal? ValorOrcado - { - get; - set; - } - - [Category("FINANCEIRO")] - [Description("VALOR PAGO")] - [Tipo("VALOR")] - public decimal? ValorPago - { - get; - set; - } - - [Category("SEGUROS")] - [Description("VALOR PARCELA")] - [Tipo("VALOR")] - public decimal? ValorParcela - { - get; - set; - } - - [Category("FINANCEIRO")] - [Description("VALOR SALVADO")] - [Tipo("VALOR")] - public decimal? ValorSalvado - { - get; - set; - } - - public Sintetico() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/SinteticoFinanceiro.cs b/Gestor.Model/Model.Domain.Relatorios/SinteticoFinanceiro.cs deleted file mode 100644 index 4518ff3..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/SinteticoFinanceiro.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Gestor.Model.Attributes; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios -{ - public class SinteticoFinanceiro - { - [Description("AGRUPAMENTO")] - public string Agrupamento - { - get; - set; - } - - [Description("VALOR")] - [Tipo("VALOR")] - public decimal? Valor - { - get; - set; - } - - [Description("VALOR PAGO")] - [Tipo("VALOR")] - public decimal? ValorPago - { - get; - set; - } - - public SinteticoFinanceiro() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/StatusRelatorio.cs b/Gestor.Model/Model.Domain.Relatorios/StatusRelatorio.cs deleted file mode 100644 index e93e9ff..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/StatusRelatorio.cs +++ /dev/null @@ -1,58 +0,0 @@ -using Gestor.Model.Common; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using System.Threading; - -namespace Gestor.Model.Domain.Relatorios -{ - public class StatusRelatorio : INotifyPropertyChanged - { - private bool _selecionado; - - public int Id - { - get; - set; - } - - public bool Selecionado - { - get - { - return this._selecionado; - } - set - { - if (value == this._selecionado) - { - return; - } - this._selecionado = value; - this.OnPropertyChanged("Selecionado"); - } - } - - public TipoSeguro Status - { - get; - set; - } - - public StatusRelatorio() - { - } - - protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) - { - PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged; - if (propertyChangedEventHandler == null) - { - return; - } - propertyChangedEventHandler(this, new PropertyChangedEventArgs(propertyName)); - } - - public event PropertyChangedEventHandler PropertyChanged; - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/Tarefa/Tarefa.cs b/Gestor.Model/Model.Domain.Relatorios/Tarefa/Tarefa.cs deleted file mode 100644 index 856081d..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/Tarefa/Tarefa.cs +++ /dev/null @@ -1,160 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios.Tarefa -{ - public class Tarefa - { - private string _usuario; - - private string _cliente; - - private string _referencia; - - private string _tipoTarefa; - - [Description("AGENDAMENTO")] - [Tipo("DATA/TIME")] - public DateTime Agendamento - { - get; - set; - } - - [Description("CLIENTE")] - public string Cliente - { - get - { - string str = this._cliente; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._cliente = value; - } - } - - [Description("CONCLUSÃO")] - [Tipo("DATA/TIME?")] - public DateTime? Conclusao - { - get; - set; - } - - [Tipo("INVALID")] - public Gestor.Model.Common.TipoTarefa Entidade - { - get; - set; - } - - [Tipo("INVALID")] - public long Id - { - get; - set; - } - - [Tipo("INVALID")] - public long IdCliente - { - get; - set; - } - - [Tipo("INVALID")] - public long IdEntidade - { - get; - set; - } - - [Description("REFERÊNCIA")] - public string Referencia - { - get - { - string str = this._referencia; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._referencia = value; - } - } - - [Tipo("INVALID")] - public bool Selecionado - { - get; - set; - } - - [Description("STATUS")] - public string Status - { - get; - set; - } - - [Description("TIPO DE TAREFA")] - public string TipoTarefa - { - get - { - string str = this._tipoTarefa; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._tipoTarefa = value; - } - } - - [Description("TÍTULO")] - public string Titulo - { - get; - set; - } - - [Description("USUÁRIO")] - public string Usuario - { - get - { - string str = this._usuario; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._usuario = value; - } - } - - public Tarefa() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/TipoRelatorio.cs b/Gestor.Model/Model.Domain.Relatorios/TipoRelatorio.cs deleted file mode 100644 index 660d675..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/TipoRelatorio.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios -{ - public class TipoRelatorio - { - public DateTime Fim - { - get; - set; - } - - public DateTime Inicio - { - get; - set; - } - - public string Nome - { - get; - set; - } - - public TipoRelatorio() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Relatorios/ValorSintetico.cs b/Gestor.Model/Model.Domain.Relatorios/ValorSintetico.cs deleted file mode 100644 index 10004d7..0000000 --- a/Gestor.Model/Model.Domain.Relatorios/ValorSintetico.cs +++ /dev/null @@ -1,55 +0,0 @@ -using Gestor.Model.Common; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Relatorios -{ - public class ValorSintetico - { - public string Formato - { - get; - set; - } - - public string Indice - { - get; - set; - } - - public string NomeRelatorio - { - get; - set; - } - - public string Porcentagem - { - get; - set; - } - - public Gestor.Model.Common.Sinal Sinal - { - get; - set; - } - - public string Unidate - { - get; - set; - } - - public decimal Valor - { - get; - set; - } - - public ValorSintetico() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Adiantamento.cs b/Gestor.Model/Model.Domain.Seguros/Adiantamento.cs deleted file mode 100644 index 979ce16..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Adiantamento.cs +++ /dev/null @@ -1,145 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Validation; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class Adiantamento : DomainBase - { - private string _historico; - - public DateTime? Data - { - get; - set; - } - - public string Historico - { - get - { - string str = this._historico; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._historico = value; - } - } - - public DateTime? Pagamento - { - get; - set; - } - - public bool Pago - { - get; - set; - } - - public Gestor.Model.Common.TipoPagamento? TipoPagamento - { - get; - set; - } - - public decimal Valor - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Vendedor Vendedor - { - get; - set; - } - - public Adiantamento() - { - } - - public List<TupleList> Log() - { - string shortDateString; - string description; - string str; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("HISTÓRICO", (string.IsNullOrWhiteSpace(this.Historico) ? "" : this.Historico), "") - }; - DateTime? data = this.Data; - if (!data.HasValue) - { - shortDateString = ""; - } - else - { - data = this.Data; - if (data.HasValue) - { - shortDateString = data.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("DATA DO ADIANTAMENTO", shortDateString, "")); - decimal valor = this.Valor; - observableCollection.Add(new Tuple<string, string, string>("VALOR DO ADIANTAMENTO", valor.ToString("c2"), "")); - Gestor.Model.Common.TipoPagamento? tipoPagamento = this.TipoPagamento; - if (!tipoPagamento.HasValue) - { - description = ""; - } - else - { - tipoPagamento = this.TipoPagamento; - if (tipoPagamento.HasValue) - { - description = tipoPagamento.GetValueOrDefault().GetDescription(); - } - else - { - description = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("TIPO DO PAGAMENTO", description, "")); - observableCollection.Add(new Tuple<string, string, string>("PAGO", (this.Pago ? "SIM" : "NÃO"), "")); - data = this.Pagamento; - if (!data.HasValue) - { - str = ""; - } - else - { - data = this.Pagamento; - if (data.HasValue) - { - str = data.GetValueOrDefault().ToShortDateString(); - } - else - { - str = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("DATA DO PAGAMENTO", str, "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - return tupleLists; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Aeronautico.cs b/Gestor.Model/Model.Domain.Seguros/Aeronautico.cs deleted file mode 100644 index 09f19f9..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Aeronautico.cs +++ /dev/null @@ -1,475 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Gestor.Model.Validation; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Globalization; -using System.Runtime.CompilerServices; - -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 string Casco - { - get - { - string str = this._casco; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._casco = value; - } - } - - public string Certificado - { - get - { - string str = this._certificado; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._certificado = value; - } - } - - public int? Fabricacao - { - get; - set; - } - - public string Fabricante - { - get - { - string str = this._fabricante; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._fabricante = value; - } - } - - public Gestor.Model.Domain.Seguros.Item Item - { - get; - set; - } - - public string MarinaAero - { - get - { - string str = this._marinaAero; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._marinaAero = value; - } - } - - public string Modelo - { - get - { - string str = this._modelo; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._modelo = value; - } - } - - public string Navegacao - { - get - { - string str = this._navegacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._navegacao = value; - } - } - - public string Observacao - { - get - { - string str = this._observacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._observacao = value; - } - } - - public int? Passageiros - { - get; - set; - } - - public long? Peso - { - get; - set; - } - - public string Prefixo - { - get - { - string str = this._prefixo; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._prefixo = value; - } - } - - public string Serie - { - get - { - string str = this._serie; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._serie = value; - } - } - - public TipoAeronautico Tipo - { - get; - set; - } - - public int? Tripulantes - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Aeronautico aeronautico = this; - return new Func<List<KeyValuePair<string, string>>>(aeronautico.Validate); - } - } - - public DateTime? Vistoria - { - get; - set; - } - - public Aeronautico() - { - } - - public static List<TupleList> Log(Gestor.Model.Domain.Seguros.Item item) - { - string str; - string str1; - string str2; - string str3; - string shortDateString; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = 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()), "") - }; - int? fabricacao = item.Aeronautico.Fabricacao; - if (!fabricacao.HasValue) - { - str = ""; - } - else - { - fabricacao = item.Aeronautico.Fabricacao; - if (fabricacao.HasValue) - { - str = fabricacao.GetValueOrDefault().ToString(); - } - else - { - str = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("ANO DE FABRICAÇÃO", str, "")); - fabricacao = item.Aeronautico.Tripulantes; - if (!fabricacao.HasValue) - { - str1 = ""; - } - else - { - fabricacao = item.Aeronautico.Tripulantes; - if (fabricacao.HasValue) - { - str1 = fabricacao.GetValueOrDefault().ToString(); - } - else - { - str1 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("TRIPULANTES", str1, "")); - fabricacao = item.Aeronautico.Passageiros; - if (!fabricacao.HasValue) - { - str2 = ""; - } - else - { - fabricacao = item.Aeronautico.Passageiros; - if (fabricacao.HasValue) - { - str2 = fabricacao.GetValueOrDefault().ToString(); - } - else - { - str2 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("PASSAGEIROS", str2, "")); - observableCollection.Add(new Tuple<string, string, string>("AERÓDROMO", (string.IsNullOrWhiteSpace(item.Aeronautico.MarinaAero) ? "" : item.Aeronautico.MarinaAero.ToUpper()), "")); - long? peso = item.Aeronautico.Peso; - if (!peso.HasValue) - { - str3 = ""; - } - else - { - peso = item.Aeronautico.Peso; - if (peso.HasValue) - { - str3 = peso.GetValueOrDefault().ToString(); - } - else - { - str3 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("PESO", str3, "")); - observableCollection.Add(new Tuple<string, string, string>("NAVEGAÇÃO", (string.IsNullOrWhiteSpace(item.Aeronautico.Navegacao) ? "" : item.Aeronautico.Navegacao.ToUpper()), "")); - observableCollection.Add(new Tuple<string, string, string>("CERTIFICADO", (string.IsNullOrWhiteSpace(item.Aeronautico.Certificado) ? "" : item.Aeronautico.Certificado.ToUpper()), "")); - observableCollection.Add(new Tuple<string, string, string>("MATERIAL DO CASCO", (string.IsNullOrWhiteSpace(item.Aeronautico.Casco) ? "" : item.Aeronautico.Casco.ToUpper()), "")); - DateTime? vistoria = item.Aeronautico.Vistoria; - if (!vistoria.HasValue) - { - shortDateString = ""; - } - else - { - vistoria = item.Aeronautico.Vistoria; - if (vistoria.HasValue) - { - shortDateString = vistoria.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("VALIDADE DA VISTORIA", shortDateString, "")); - observableCollection.Add(new Tuple<string, string, string>("OBSERVAÇÃO", (string.IsNullOrWhiteSpace(item.Aeronautico.Observacao) ? "" : item.Aeronautico.Observacao.ToUpper()), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - List<TupleList> tupleLists1 = tupleLists; - ObservableCollection<Tuple<string, string, string>> observableCollection1 = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("COBERTURAS$", "", "") - }; - foreach (Cobertura cobertura in item.Coberturas) - { - observableCollection1.Add(new Tuple<string, string, string>(string.Format(" COBERTURA {0}$", item.Coberturas.IndexOf(cobertura) + 1), "", "")); - observableCollection1.Add(new Tuple<string, string, string>(" OBSERVAÇÃO", (string.IsNullOrWhiteSpace(cobertura.Observacao) ? "" : cobertura.Observacao.ToUpper()), "")); - decimal premio = cobertura.Premio; - observableCollection1.Add(new Tuple<string, string, string>(" PRÊMIO", premio.ToString("C", new CultureInfo("pt-BR", false)), "")); - premio = cobertura.Franquia; - observableCollection1.Add(new Tuple<string, string, string>(" FRANQUIA", premio.ToString("C", new CultureInfo("pt-BR", false)), "")); - premio = cobertura.Lmi; - observableCollection1.Add(new Tuple<string, string, string>(" L.M.I.", premio.ToString("C", new CultureInfo("pt-BR", false)), "")); - } - tupleLists1.Add(new TupleList() - { - Tuples = observableCollection1 - }); - return tupleLists1; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Fabricante)) - { - keyValuePairs.AddValue<string, string>("Fabricante", Messages.Obrigatorio, true); - } - else if (this.Fabricante != null && this.Fabricante.Length > 60) - { - keyValuePairs.AddValue<string, string>("Fabricante", string.Format(Messages.MaiorQueLimite, 60), true); - } - if ((int)this.Tipo == 0) - { - keyValuePairs.AddValue<string, string>("Tipo", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(this.Modelo)) - { - keyValuePairs.AddValue<string, string>("Modelo", Messages.Obrigatorio, true); - } - else if (this.Modelo.Length > 60) - { - keyValuePairs.AddValue<string, string>("Modelo", string.Format(Messages.MaiorQueLimite, 60), true); - } - if (this.Vistoria.HasValue && (DateTime.Compare(this.Vistoria.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Vistoria.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("Vistoria", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (string.IsNullOrWhiteSpace(this.Serie)) - { - keyValuePairs.AddValue<string, string>("Serie", Messages.Obrigatorio, true); - } - else if (this.Serie.Length > 30) - { - keyValuePairs.AddValue<string, string>("Serie", string.Format(Messages.MaiorQueLimite, 30), true); - } - if (string.IsNullOrWhiteSpace(this.Prefixo)) - { - keyValuePairs.AddValue<string, string>("Prefixo", Messages.Obrigatorio, true); - } - else if (this.Prefixo.Length > 30) - { - keyValuePairs.AddValue<string, string>("Prefixo", string.Format(Messages.MaiorQueLimite, 30), true); - } - if (!this.Fabricacao.HasValue) - { - keyValuePairs.AddValue<string, string>("Fabricacao", Messages.Obrigatorio, true); - } - else if (!this.Fabricacao.Value.ToString().ValidacaoFabricacao()) - { - keyValuePairs.AddValue<string, string>("Fabricacao", Messages.Invalido, true); - } - if (!this.Tripulantes.HasValue) - { - keyValuePairs.AddValue<string, string>("Tripulantes", Messages.Obrigatorio, true); - } - if (!this.Passageiros.HasValue) - { - keyValuePairs.AddValue<string, string>("Passageiros", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(this.MarinaAero)) - { - keyValuePairs.AddValue<string, string>("MarinaAero", Messages.Obrigatorio, true); - } - else if (this.MarinaAero.Length > 60) - { - keyValuePairs.AddValue<string, string>("MarinaAero", string.Format(Messages.MaiorQueLimite, 60), true); - } - if (!string.IsNullOrWhiteSpace(this.Certificado) && this.Certificado.Length > 60) - { - keyValuePairs.AddValue<string, string>("Certificado", string.Format(Messages.MaiorQueLimite, 60), true); - } - if (string.IsNullOrWhiteSpace(this.Casco) && this.Tipo.Categoria() == "Aero") - { - keyValuePairs.AddValue<string, string>("Casco", Messages.Obrigatorio, true); - } - else if (this.Tipo.Categoria() != "Aero" && this.Casco != null && this.Casco.Length > 60) - { - keyValuePairs.AddValue<string, string>("Casco", string.Format(Messages.MaiorQueLimite, 60), true); - } - if (!string.IsNullOrWhiteSpace(this.Navegacao) && this.Tipo.Categoria() != "Aero" && this.Navegacao.Length > 60) - { - keyValuePairs.AddValue<string, string>("Navegacao", string.Format(Messages.MaiorQueLimite, 60), true); - } - if (!this.Vistoria.HasValue && this.Tipo.Categoria() == "Aero") - { - keyValuePairs.AddValue<string, string>("Vistoria", Messages.Obrigatorio, true); - } - if (!this.Peso.HasValue && this.Tipo.Categoria() == "Aero") - { - keyValuePairs.AddValue<string, string>("Peso", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/AggilizadorPermissao.cs b/Gestor.Model/Model.Domain.Seguros/AggilizadorPermissao.cs deleted file mode 100644 index 686e669..0000000 --- a/Gestor.Model/Model.Domain.Seguros/AggilizadorPermissao.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Gestor.Model.Common; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class AggilizadorPermissao - { - public PermissaoAggilizador Aggilizador - { - get; - set; - } - - public bool Permissao - { - get; - set; - } - - public AggilizadorPermissao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Auto.cs b/Gestor.Model/Model.Domain.Seguros/Auto.cs deleted file mode 100644 index 25b7903..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Auto.cs +++ /dev/null @@ -1,793 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Gestor.Model.Validation; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Globalization; -using System.Runtime.CompilerServices; -using System.Text.RegularExpressions; - -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 Gestor.Model.Common.Categoria? _categoria; - - private bool _fabricanteBranco = true; - - private bool _chassiInvalido; - - public string AnoFabricacao - { - get - { - string str = this._anoFabricacao; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._anoFabricacao = value; - } - } - - public string AnoModelo - { - get - { - string str = this._anoModelo; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._anoModelo = value; - } - } - - public bool? Blindagem - { - get; - set; - } - - public int? Bonus - { - get; - set; - } - - public string Capacidade - { - get - { - string str = this._capacidade; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._capacidade = value; - } - } - - public Gestor.Model.Common.Categoria? Categoria - { - get - { - return this._categoria; - } - set - { - this._categoria = value; - if (value.GetValueOrDefault() == Gestor.Model.Common.Categoria.Motocicleta) - { - this.Portas = "0"; - } - } - } - - public string CepPernoite - { - get - { - if (this._cepPernoite == null || !Regex.IsMatch(this._cepPernoite, "[0-9]+")) - { - return string.Empty; - } - return this._cepPernoite.FormataCep().Trim(); - } - set - { - this._cepPernoite = value; - } - } - - public string Chassi - { - get - { - string str = this._chassi; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._chassi = value; - } - } - - public string Ci - { - get - { - string str = this._ci; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._ci = value; - } - } - - public Gestor.Model.Common.Combustivel? Combustivel - { - get; - set; - } - - public Gestor.Model.Common.Cor? Cor - { - get; - set; - } - - public Gestor.Model.Common.Correcao? Correcao - { - get; - set; - } - - public bool Excluido - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Fabricante Fabricante - { - get; - set; - } - - public bool? Financiado - { - get; - set; - } - - public string Fipe - { - get - { - if (this._fipe == null || !Regex.IsMatch(this._fipe, "[0-9]+")) - { - return ""; - } - return this._fipe.Trim(); - } - set - { - this._fipe = value; - } - } - - public Gestor.Model.Common.Isencao? Isencao - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Item Item - { - get; - set; - } - - public bool? KitGas - { - get; - set; - } - - public string Modelo - { - get - { - string str = this._modelo; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._modelo = value; - } - } - - public string Observacao - { - get - { - string str = this._observacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._observacao = value; - } - } - - public bool? Pcd - { - get; - set; - } - - public string Placa - { - get - { - string str = this._placa; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._placa = value; - } - } - - public decimal PorcentagemReferencia - { - get; - set; - } - - public string Portas - { - get - { - string str = this._portas; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._portas = value; - } - } - - public Gestor.Model.Common.Rastreador Rastreador - { - get; - set; - } - - public string RegiaoCirculacao - { - get - { - if (this._regiaoCirculacao == null || !Regex.IsMatch(this._regiaoCirculacao, "[0-9]+")) - { - return ""; - } - return this._regiaoCirculacao.FormataCep().Trim(); - } - set - { - this._regiaoCirculacao = value; - } - } - - public string Renavam - { - get - { - string str = this._renavam; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._renavam = value; - } - } - - public Gestor.Model.Common.TabelaReferencia? TabelaReferencia - { - get; - set; - } - - public Gestor.Model.Common.TipoCobertura? TipoCobertura - { - get; - set; - } - - public Gestor.Model.Common.UsoVeiculo? UsoVeiculo - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Auto auto = this; - return new Func<List<KeyValuePair<string, string>>>(auto.Validate); - } - } - - public decimal ValorDeterminado - { - get; - set; - } - - public bool? ZeroKm - { - get; - set; - } - - public Auto() - { - } - - public static List<TupleList> Log(Gestor.Model.Domain.Seguros.Item item) - { - string description; - string str; - string description1; - string str1; - string str2; - string description2; - string description3; - string str3; - string str4; - string str5; - string description4; - string description5; - string str6; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = 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()), "") - }; - Gestor.Model.Common.UsoVeiculo? usoVeiculo = item.Auto.UsoVeiculo; - if (!usoVeiculo.HasValue) - { - description = ""; - } - else - { - Auto auto = item.Auto; - if (auto != null) - { - usoVeiculo = auto.UsoVeiculo; - if (usoVeiculo.HasValue) - { - description = usoVeiculo.GetValueOrDefault().GetDescription(); - } - else - { - description = null; - } - } - else - { - description = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("USO VEICULO", description, "")); - Gestor.Model.Common.Categoria? categoria = item.Auto.Categoria; - if (!categoria.HasValue) - { - str = ""; - } - else - { - categoria = item.Auto.Categoria; - if (categoria.HasValue) - { - str = categoria.GetValueOrDefault().GetDescription(); - } - else - { - str = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("CATEGORIA", str, "")); - Gestor.Model.Common.Combustivel? combustivel = item.Auto.Combustivel; - if (!combustivel.HasValue) - { - description1 = ""; - } - else - { - combustivel = item.Auto.Combustivel; - if (combustivel.HasValue) - { - description1 = combustivel.GetValueOrDefault().GetDescription(); - } - else - { - description1 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("COMBUSTÍVEL", description1, "")); - Gestor.Model.Common.Cor? cor = item.Auto.Cor; - if (!cor.HasValue) - { - str1 = ""; - } - else - { - cor = item.Auto.Cor; - if (cor.HasValue) - { - str1 = cor.GetValueOrDefault().GetDescription(); - } - else - { - str1 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("COR", str1, "")); - observableCollection.Add(new Tuple<string, string, string>("RENAVAM", (string.IsNullOrWhiteSpace(item.Auto.Renavam) ? "" : item.Auto.Renavam.ToUpper()), "")); - if (!item.Auto.ZeroKm.HasValue) - { - str2 = ""; - } - else - { - str2 = (item.Auto.ZeroKm.Value ? "SIM" : "NÃO"); - } - observableCollection.Add(new Tuple<string, string, string>("ZERO KM", str2, "")); - observableCollection.Add(new Tuple<string, string, string>("ANO DE FABRICAÇÃO", (string.IsNullOrWhiteSpace(item.Auto.AnoFabricacao) ? "" : item.Auto.AnoFabricacao.ToUpper()), "")); - observableCollection.Add(new Tuple<string, string, string>("ANO DO MODELO", (string.IsNullOrWhiteSpace(item.Auto.AnoModelo) ? "" : item.Auto.AnoModelo.ToUpper()), "")); - observableCollection.Add(new Tuple<string, string, string>("PORTAS", (string.IsNullOrWhiteSpace(item.Auto.Portas) ? "" : item.Auto.Portas), "")); - observableCollection.Add(new Tuple<string, string, string>("CAPACIDADE", (string.IsNullOrWhiteSpace(item.Auto.Capacidade) ? "" : item.Auto.Capacidade), "")); - observableCollection.Add(new Tuple<string, string, string>("CEP DE CIRCULAÇÃO", (string.IsNullOrWhiteSpace(item.Auto.RegiaoCirculacao) ? "" : item.Auto.RegiaoCirculacao.ToUpper()), "")); - observableCollection.Add(new Tuple<string, string, string>("CEP PERNOITE", (string.IsNullOrWhiteSpace(item.Auto.CepPernoite) ? "" : item.Auto.CepPernoite.ToUpper()), "")); - Gestor.Model.Common.Correcao? correcao = item.Auto.Correcao; - if (!correcao.HasValue) - { - description2 = ""; - } - else - { - correcao = item.Auto.Correcao; - if (correcao.HasValue) - { - description2 = correcao.GetValueOrDefault().GetDescription(); - } - else - { - description2 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("CORREÇÃO", description2, "")); - Gestor.Model.Common.TabelaReferencia? tabelaReferencia = item.Auto.TabelaReferencia; - if (!tabelaReferencia.HasValue) - { - description3 = ""; - } - else - { - tabelaReferencia = item.Auto.TabelaReferencia; - if (tabelaReferencia.HasValue) - { - description3 = tabelaReferencia.GetValueOrDefault().GetDescription(); - } - else - { - description3 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("REFERÊNCIA", description3, "")); - decimal porcentagemReferencia = item.Auto.PorcentagemReferencia; - observableCollection.Add(new Tuple<string, string, string>("PORCENTAGEM DE REFERÊNCIA", porcentagemReferencia.ToString(new CultureInfo("pt-BR")), "")); - observableCollection.Add(new Tuple<string, string, string>("C.I.", (string.IsNullOrWhiteSpace(item.Auto.Ci) ? "" : item.Auto.Ci.ToUpper()), "")); - if (!item.Auto.Financiado.HasValue) - { - str3 = ""; - } - else - { - str3 = (item.Auto.Financiado.Value ? "SIM" : "NÃO"); - } - observableCollection.Add(new Tuple<string, string, string>("FINANCEIRO/ALIENADO", str3, "")); - if (!item.Auto.Pcd.HasValue) - { - str4 = ""; - } - else - { - str4 = (item.Auto.Pcd.Value ? "SIM" : "NÃO"); - } - observableCollection.Add(new Tuple<string, string, string>("PCD", str4, "")); - if (!item.Auto.Blindagem.HasValue) - { - str5 = ""; - } - else - { - str5 = (item.Auto.Blindagem.Value ? "SIM" : "NÃO"); - } - observableCollection.Add(new Tuple<string, string, string>("BLINDAGEM", str5, "")); - Gestor.Model.Common.Isencao? isencao = item.Auto.Isencao; - if (!isencao.HasValue) - { - description4 = ""; - } - else - { - isencao = item.Auto.Isencao; - if (isencao.HasValue) - { - description4 = isencao.GetValueOrDefault().GetDescription(); - } - else - { - description4 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("ISENÇÃO", description4, "")); - observableCollection.Add(new Tuple<string, string, string>("BÔNUS", (!item.Auto.Bonus.HasValue ? "" : item.Auto.Bonus.Value.ToString()), "")); - Gestor.Model.Common.TipoCobertura? tipoCobertura = item.Auto.TipoCobertura; - if (!tipoCobertura.HasValue) - { - description5 = ""; - } - else - { - tipoCobertura = item.Auto.TipoCobertura; - if (tipoCobertura.HasValue) - { - description5 = tipoCobertura.GetValueOrDefault().GetDescription(); - } - else - { - description5 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("TIPO DE COBERTURA", description5, "")); - if (!item.Auto.Pcd.HasValue) - { - str6 = ""; - } - else - { - str6 = (item.Auto.KitGas.Value ? "SIM" : "NÃO"); - } - observableCollection.Add(new Tuple<string, string, string>("KIT GÁS", str6, "")); - observableCollection.Add(new Tuple<string, string, string>("OBSERVAÇÕES", (string.IsNullOrWhiteSpace(item.Auto.Observacao) ? "" : item.Auto.Observacao.ToUpper()), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - List<TupleList> tupleLists1 = tupleLists; - ObservableCollection<Tuple<string, string, string>> observableCollection1 = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("COBERTURAS$", "", "") - }; - foreach (Cobertura cobertura in item.Coberturas) - { - observableCollection1.Add(new Tuple<string, string, string>(string.Format(" COBERTURA {0}$", item.Coberturas.IndexOf(cobertura) + 1), "", "")); - observableCollection1.Add(new Tuple<string, string, string>(" OBSERVAÇÃO", (string.IsNullOrWhiteSpace(cobertura.Observacao) ? "" : cobertura.Observacao.ToUpper()), "")); - porcentagemReferencia = cobertura.Premio; - observableCollection1.Add(new Tuple<string, string, string>(" PRÊMIO", porcentagemReferencia.ToString("C", new CultureInfo("pt-BR", false)), "")); - porcentagemReferencia = cobertura.Franquia; - observableCollection1.Add(new Tuple<string, string, string>(" FRANQUIA", porcentagemReferencia.ToString("C", new CultureInfo("pt-BR", false)), "")); - porcentagemReferencia = cobertura.Lmi; - observableCollection1.Add(new Tuple<string, string, string>(" L.M.I.", porcentagemReferencia.ToString("C", new CultureInfo("pt-BR", false)), "")); - } - tupleLists1.Add(new TupleList() - { - Tuples = observableCollection1 - }); - return tupleLists1; - } - - public List<KeyValuePair<string, string>> Validate(bool chassiInvalido, bool fabricanteBranco) - { - this._chassiInvalido = chassiInvalido; - this._fabricanteBranco = fabricanteBranco; - return this.Validate(); - } - - public List<KeyValuePair<string, string>> Validate() - { - int num; - int num1; - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Chassi)) - { - keyValuePairs.AddValue<string, string>("Chassi", Messages.Obrigatorio, true); - } - else if (!this._chassiInvalido && !this.Chassi.ValidacaoChassi()) - { - keyValuePairs.AddValue<string, string>("Chassi", Messages.Invalido, true); - } - if (!this._fabricanteBranco && (this.Fabricante == null || this.Fabricante.Id == 0)) - { - keyValuePairs.AddValue<string, string>("Fabricante", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(this.Modelo)) - { - keyValuePairs.AddValue<string, string>("Modelo", Messages.Obrigatorio, true); - } - else if (this.Modelo.Length > 250) - { - keyValuePairs.AddValue<string, string>("Modelo", string.Format(Messages.MaiorQueLimite, 250), true); - } - if (!this.Categoria.HasValue) - { - keyValuePairs.AddValue<string, string>("Categoria", Messages.Obrigatorio, true); - } - if (!this.Combustivel.HasValue) - { - keyValuePairs.AddValue<string, string>("Combustivel|COMBUSTÍVEL", Messages.Obrigatorio, true); - } - if (!this.ZeroKm.HasValue) - { - keyValuePairs.AddValue<string, string>("ZeroKm|ZERO KM", Messages.Obrigatorio, true); - } - if (this.ZeroKm.HasValue && !this.ZeroKm.Value && string.IsNullOrWhiteSpace(this.Placa)) - { - keyValuePairs.AddValue<string, string>("Placa", Messages.Obrigatorio, true); - } - else if (this.ZeroKm.HasValue && !this.ZeroKm.Value && !this.Placa.ValidacaoPlaca()) - { - keyValuePairs.AddValue<string, string>("Placa", Messages.Invalido, true); - } - if (string.IsNullOrWhiteSpace(this.AnoFabricacao)) - { - keyValuePairs.AddValue<string, string>("AnoFabricacao|ANO DE FABRICAÇÃO", Messages.Obrigatorio, true); - } - else if (!this.AnoFabricacao.ValidacaoFabricacao()) - { - keyValuePairs.AddValue<string, string>("AnoFabricacao|ANO DE FABRICAÇÃO", Messages.Invalido, true); - } - if (string.IsNullOrWhiteSpace(this.AnoModelo)) - { - keyValuePairs.AddValue<string, string>("AnoModelo|ANO DO MODELO", Messages.Obrigatorio, true); - } - else if (!this.AnoModelo.ValidacaoModelo()) - { - keyValuePairs.AddValue<string, string>("AnoModelo|ANO DO MODELO", Messages.Invalido, true); - } - if (string.IsNullOrWhiteSpace(this.Portas)) - { - if (this.Categoria.GetValueOrDefault() != Gestor.Model.Common.Categoria.Motocicleta) - { - keyValuePairs.AddValue<string, string>("Portas", Messages.Obrigatorio, true); - } - else - { - this.Portas = "0"; - } - } - else if (!int.TryParse(this.Portas, out num1)) - { - keyValuePairs.AddValue<string, string>("Portas", Messages.Invalido, true); - } - if (string.IsNullOrWhiteSpace(this.Capacidade)) - { - keyValuePairs.AddValue<string, string>("Capacidade", Messages.Obrigatorio, true); - } - else if (!int.TryParse(this.Capacidade, out num1)) - { - keyValuePairs.AddValue<string, string>("Capacidade", Messages.Invalido, true); - } - if (!this.Financiado.HasValue) - { - keyValuePairs.AddValue<string, string>("Financiado", Messages.Obrigatorio, true); - } - if (!string.IsNullOrWhiteSpace(this.Ci) && this.Ci.Length > 20) - { - keyValuePairs.AddValue<string, string>("Ci|C.I.", string.Format(Messages.MaiorQueLimite, 20), true); - } - if (string.IsNullOrWhiteSpace(this.Fipe)) - { - keyValuePairs.AddValue<string, string>("Fipe|CÓDIGO FIPE", Messages.Obrigatorio, true); - } - else if (!this.Fipe.ValidaFipe()) - { - keyValuePairs.AddValue<string, string>("Fipe|CÓDIGO FIPE", Messages.Invalido, true); - } - if (int.TryParse(this.Capacidade, out num) && num > 99) - { - keyValuePairs.AddValue<string, string>("Capacidade", Messages.Invalido, true); - } - if (!this.UsoVeiculo.HasValue) - { - keyValuePairs.AddValue<string, string>("UsoVeiculo", Messages.Obrigatorio, true); - } - if (!string.IsNullOrEmpty(this.Renavam) && this.Renavam.Replace(".", "").Length > 11) - { - keyValuePairs.AddValue<string, string>("Renavam", Messages.Invalido, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Cliente.cs b/Gestor.Model/Model.Domain.Seguros/Cliente.cs deleted file mode 100644 index 7da5b5d..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Cliente.cs +++ /dev/null @@ -1,1193 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Globalization; -using System.Runtime.CompilerServices; - -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 = new bool?(true); - - private string _nomeSocialRg; - - [Description("AGÊNCIA")] - [Log(true)] - public string Agencia - { - get - { - string str = this._agencia; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._agencia = value; - } - } - - public Gestor.Model.Domain.Common.Atividade Atividade - { - get; - set; - } - - public Gestor.Model.Domain.Common.Banco Banco - { - get; - set; - } - - [Log(true)] - public string Caepf - { - get - { - string str = this._caepf; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._caepf = value; - } - } - - [Description("CATEGORIA HABILITAÇÃO")] - [Log(true)] - public string CategoriaHabilitacao - { - get - { - string str = this._categoriaHabilitacao; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._categoriaHabilitacao = value; - } - } - - [Log(true)] - public string Cei - { - get - { - string str = this._cei; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._cei = value; - } - } - - [Description("CLIENTE DESDE")] - [Log(true)] - public DateTime? ClienteDesde - { - get; - set; - } - - [Log(true)] - public string Conta - { - get - { - string str = this._conta; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._conta = value; - } - } - - public ObservableCollection<MaisContato> Contatos - { - get; - set; - } - - [Log(true)] - public string Documento - { - get - { - string str = this._documento; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._documento = value; - } - } - - [Description("DOCUMENTO PRINCIPAL")] - [Log(true)] - public TipoDocumento? DocumentoPrincipal - { - get; - set; - } - - public ObservableCollection<ClienteEmail> Emails - { - get; - set; - } - - [Log(true)] - public string Emissor - { - get - { - string str = this._emissor; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._emissor = value; - } - } - - public ObservableCollection<ClienteEndereco> Enderecos - { - get; - set; - } - - [Description("ESTADO CIVIL")] - [Log(true)] - public Gestor.Model.Common.EstadoCivil? EstadoCivil - { - get; - set; - } - - [Description("ESTADO EMISSOR")] - [Log(true)] - public string EstadoEmissor - { - get - { - string str = this._estadoEmissor; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._estadoEmissor = value; - } - } - - public bool EstaNaCentralSegurado - { - get; - set; - } - - [Log(true)] - public bool Excluido - { - get; - set; - } - - [Description("EXPEDIÇÃO")] - [Log(true)] - public DateTime? Expedicao - { - get; - set; - } - - [Log(true)] - public bool Falecido - { - get; - set; - } - - [Description("HABILITAÇÃO")] - [Log(true)] - public string Habilitacao - { - get - { - string str = this._habilitacao; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._habilitacao = value; - } - } - - public long IdEmpresa - { - get; - set; - } - - [Log(true)] - public string Identidade - { - get - { - string str = this._identidade; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._identidade = value; - } - } - - [Description("DESEJA RECEBER MALA DIRETA")] - [Log(true)] - public bool? MalaDireta - { - get - { - return new bool?(this._malaDireta.GetValueOrDefault(true)); - } - set - { - this._malaDireta = new bool?(value.GetValueOrDefault(true)); - } - } - - [Log(true)] - public DateTime? Nascimento - { - get; - set; - } - - [Log(true)] - [Name(true)] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - object upper; - this._nome = value; - if (value != null) - { - upper = value.ToUpper(); - } - else - { - upper = null; - } - this.NomeSocial = string.Format("{0} - {1}", upper, base.Id); - } - } - - public string NomeSocial - { - get; - set; - } - - public string NomeSocialRg - { - get - { - string str = this._nomeSocialRg; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nomeSocialRg = value; - } - } - - [Description("OBSERVAÇÃO")] - [Log(true)] - public string Observacao - { - get; - set; - } - - public List<OrigemCliente> Origens - { - get; - set; - } - - [Log(true)] - public string Pasta - { - get - { - string str = this._pasta; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._pasta = value; - } - } - - public bool PessoaFisica - { - get - { - return this.Documento.Clear().Length < 12; - } - } - - [Description("PRIMEIRA HABILITAÇÃO")] - [Log(true)] - public DateTime? PrimeiraHabilitacao - { - get; - set; - } - - [Description("PROFISSÃO")] - public Gestor.Model.Domain.Common.Profissao Profissao - { - get; - set; - } - - [Description("RENDA MENSAL")] - [Log(true)] - public decimal RendaMensal - { - get; - set; - } - - [Log(true)] - public Gestor.Model.Domain.Seguros.ResponsavelAssinatura ResponsavelAssinatura - { - get; - set; - } - - [Log(true)] - public string Rne - { - get - { - string str = this._rne; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._rne = value; - } - } - - [Log(true)] - public Gestor.Model.Common.Sexo? Sexo - { - get; - set; - } - - [Log(true)] - public string Status - { - get; - set; - } - - public ObservableCollection<ClienteTelefone> Telefones - { - get; - set; - } - - [Description("TIPO CONTA")] - [Log(true)] - public string TipoConta - { - get - { - string str = this._tipoConta; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._tipoConta = value; - } - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Cliente cliente = this; - return new Func<List<KeyValuePair<string, string>>>(cliente.Validate); - } - } - - [Description("VENCIMENTO HABILITAÇÃO")] - [Log(true)] - public DateTime? VencimentoHabilitacao - { - get; - set; - } - - public ObservableCollection<ClienteVinculo> Vinculos - { - get; - set; - } - - public Cliente() - { - } - - public List<TupleList> Log() - { - TipoTelefone? tipo; - string description; - string str; - string shortDateString; - string shortDateString1; - string str1; - string shortDateString2; - string description1; - string description2; - string str2; - string shortDateString3; - string description3; - string str3; - string description4; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>(); - TipoDocumento? documentoPrincipal = this.DocumentoPrincipal; - if (!documentoPrincipal.HasValue) - { - description = ""; - } - else - { - documentoPrincipal = this.DocumentoPrincipal; - if (documentoPrincipal.HasValue) - { - description = documentoPrincipal.GetValueOrDefault().GetDescription(); - } - else - { - description = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("TIPO DO DOCUMENTO PRINCIPAL", description, "")); - observableCollection.Add(new Tuple<string, string, string>("DOCUMENTO PRINCIPAL", (string.IsNullOrWhiteSpace(this.Documento) ? "" : this.Documento), "")); - observableCollection.Add(new Tuple<string, string, string>("CLIENTE", (string.IsNullOrWhiteSpace(this.Nome) ? "" : this.Nome.ToUpper()), "")); - str = (this.Documento.OnlyNumber().Length > 11 ? "FUNDAÇÃO" : "NASCIMENTO"); - DateTime? nascimento = this.Nascimento; - if (!nascimento.HasValue) - { - shortDateString = ""; - } - else - { - nascimento = this.Nascimento; - if (nascimento.HasValue) - { - shortDateString = nascimento.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString = null; - } - } - observableCollection.Add(new Tuple<string, string, string>(str, shortDateString, "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - List<TupleList> tupleLists1 = tupleLists; - if (this.Documento == null || this.Documento.OnlyNumber().Length <= 11) - { - tupleLists1[0].Tuples.Add(new Tuple<string, string, string>("IDENTIDADE", (string.IsNullOrWhiteSpace(this.Identidade) ? "" : this.Identidade), "")); - tupleLists1[0].Tuples.Add(new Tuple<string, string, string>("ÓRGÃO EMISSOR", (string.IsNullOrWhiteSpace(this.Emissor) ? "" : this.Emissor.ToUpper()), "")); - tupleLists1[0].Tuples.Add(new Tuple<string, string, string>("ESTADO EMISSOR", (string.IsNullOrWhiteSpace(this.EstadoEmissor) ? "" : this.EstadoEmissor.ToUpper()), "")); - ObservableCollection<Tuple<string, string, string>> tuples = tupleLists1[0].Tuples; - nascimento = this.Expedicao; - if (!nascimento.HasValue) - { - shortDateString1 = ""; - } - else - { - nascimento = this.Expedicao; - if (nascimento.HasValue) - { - shortDateString1 = nascimento.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString1 = null; - } - } - tuples.Add(new Tuple<string, string, string>("DATA DE EXPEDIÇÃO", shortDateString1, "")); - tupleLists1[0].Tuples.Add(new Tuple<string, string, string>("HABILITAÇÃO", (string.IsNullOrWhiteSpace(this.Habilitacao) ? "" : this.Habilitacao.ToUpper()), "")); - tupleLists1[0].Tuples.Add(new Tuple<string, string, string>("CATEGORIA", (string.IsNullOrWhiteSpace(this.CategoriaHabilitacao) ? "" : this.CategoriaHabilitacao.ToUpper()), "")); - ObservableCollection<Tuple<string, string, string>> tuples1 = tupleLists1[0].Tuples; - nascimento = this.PrimeiraHabilitacao; - if (!nascimento.HasValue) - { - str1 = ""; - } - else - { - nascimento = this.PrimeiraHabilitacao; - if (nascimento.HasValue) - { - str1 = nascimento.GetValueOrDefault().ToShortDateString(); - } - else - { - str1 = null; - } - } - tuples1.Add(new Tuple<string, string, string>("PRIMEIRA HABILITAÇÃO", str1, "")); - ObservableCollection<Tuple<string, string, string>> observableCollection1 = tupleLists1[0].Tuples; - nascimento = this.VencimentoHabilitacao; - if (!nascimento.HasValue) - { - shortDateString2 = ""; - } - else - { - nascimento = this.VencimentoHabilitacao; - if (nascimento.HasValue) - { - shortDateString2 = nascimento.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString2 = null; - } - } - observableCollection1.Add(new Tuple<string, string, string>("VENCIMENTO DA HABILITAÇÃO", shortDateString2, "")); - ObservableCollection<Tuple<string, string, string>> tuples2 = tupleLists1[0].Tuples; - Gestor.Model.Common.Sexo? sexo = this.Sexo; - if (!sexo.HasValue) - { - description1 = ""; - } - else - { - sexo = this.Sexo; - if (sexo.HasValue) - { - description1 = sexo.GetValueOrDefault().GetDescription(); - } - else - { - description1 = null; - } - } - tuples2.Add(new Tuple<string, string, string>("SEXO", description1, "")); - ObservableCollection<Tuple<string, string, string>> observableCollection2 = tupleLists1[0].Tuples; - Gestor.Model.Common.EstadoCivil? estadoCivil = this.EstadoCivil; - if (!estadoCivil.HasValue) - { - description2 = ""; - } - else - { - estadoCivil = this.EstadoCivil; - if (estadoCivil.HasValue) - { - description2 = estadoCivil.GetValueOrDefault().GetDescription(); - } - else - { - description2 = null; - } - } - observableCollection2.Add(new Tuple<string, string, string>("ESTADO CIVIL", description2, "")); - tupleLists1[0].Tuples.Add(new Tuple<string, string, string>("PROFISSÃO DO CLIENTE", (this.Profissao == null ? "" : this.Profissao.Nome.ToUpper()), "")); - } - else - { - tupleLists1[0].Tuples.Add(new Tuple<string, string, string>("RAMO DE ATIVIDADE", (string.IsNullOrWhiteSpace(this.Atividade.Nome) ? "" : this.Atividade.Nome), "")); - } - ObservableCollection<Tuple<string, string, string>> tuples3 = tupleLists1[0].Tuples; - nascimento = this.ClienteDesde; - if (!nascimento.HasValue) - { - str2 = ""; - } - else - { - nascimento = this.ClienteDesde; - if (nascimento.HasValue) - { - str2 = nascimento.GetValueOrDefault().ToShortDateString(); - } - else - { - str2 = null; - } - } - tuples3.Add(new Tuple<string, string, string>("CLIENTE DESDE", str2, "")); - tupleLists1[0].Tuples.Add(new Tuple<string, string, string>("PASTA", (string.IsNullOrWhiteSpace(this.Pasta) ? "" : this.Pasta.ToUpper()), "")); - tupleLists1[0].Tuples.Add(new Tuple<string, string, string>("BANCO", (this.Banco == null ? "" : this.Banco.Nome.ToUpper()), "")); - tupleLists1[0].Tuples.Add(new Tuple<string, string, string>("AGÊNCIA", (string.IsNullOrWhiteSpace(this.Agencia) ? "" : this.Agencia.ToUpper()), "")); - tupleLists1[0].Tuples.Add(new Tuple<string, string, string>("TIPO DE CONTA", (string.IsNullOrWhiteSpace(this.TipoConta) ? "" : this.TipoConta.ToUpper()), "")); - tupleLists1[0].Tuples.Add(new Tuple<string, string, string>("NÚMERO DA CONTA", (string.IsNullOrWhiteSpace(this.Conta) ? "" : this.Conta.ToUpper()), "")); - tupleLists1[0].Tuples.Add(new Tuple<string, string, string>("FALECIDO", (this.Falecido ? "SIM" : "NÃO"), "")); - tupleLists1[0].Tuples.Add(new Tuple<string, string, string>("ÓRGÃO EMISSOR", (string.IsNullOrWhiteSpace(this.Emissor) ? "" : this.Emissor.ToUpper()), "")); - ObservableCollection<Tuple<string, string, string>> observableCollection3 = tupleLists1[0].Tuples; - decimal rendaMensal = this.RendaMensal; - observableCollection3.Add(new Tuple<string, string, string>("RENDA MENSAL", rendaMensal.ToString("C", new CultureInfo("pt-BR", false)), "")); - ObservableCollection<Tuple<string, string, string>> observableCollection4 = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("TELEFONES$", "", "") - }; - if (this.Telefones != null && this.Telefones.Count > 0) - { - foreach (ClienteTelefone telefone in this.Telefones) - { - observableCollection4.Add(new Tuple<string, string, string>(string.Format(" TELEFONE {0}$", this.Telefones.IndexOf(telefone) + 1), "", "")); - ObservableCollection<Tuple<string, string, string>> observableCollection5 = observableCollection4; - tipo = telefone.Tipo; - if (!tipo.HasValue) - { - description4 = ""; - } - else - { - tipo = telefone.Tipo; - if (tipo.HasValue) - { - description4 = tipo.GetValueOrDefault().GetDescription(); - } - else - { - description4 = null; - } - } - observableCollection5.Add(new Tuple<string, string, string>(" TIPO", description4, "")); - observableCollection4.Add(new Tuple<string, string, string>(" PREFIXO", (string.IsNullOrWhiteSpace(telefone.Prefixo) ? "" : telefone.Prefixo.ToUpper()), "")); - observableCollection4.Add(new Tuple<string, string, string>(" NÚMERO", (string.IsNullOrWhiteSpace(telefone.Numero) ? "" : telefone.Numero), "")); - observableCollection4.Add(new Tuple<string, string, string>(" ORDEM", (!telefone.Ordem.HasValue ? "" : telefone.Ordem.ToString()), "")); - } - } - tupleLists1.Add(new TupleList() - { - Tuples = observableCollection4 - }); - ObservableCollection<Tuple<string, string, string>> observableCollection6 = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("EMAILS$", "", "") - }; - if (this.Emails != null && this.Emails.Count > 0) - { - foreach (ClienteEmail email in this.Emails) - { - observableCollection6.Add(new Tuple<string, string, string>(string.Format(" EMAIL {0}$", this.Emails.IndexOf(email) + 1), "", "")); - observableCollection6.Add(new Tuple<string, string, string>(" ENDEREÇO DE EMAIL", (string.IsNullOrWhiteSpace(email.Email) ? "" : email.Email), "")); - observableCollection6.Add(new Tuple<string, string, string>(" ORDEM", (!email.Ordem.HasValue ? "" : email.Ordem.ToString()), "")); - } - } - tupleLists1.Add(new TupleList() - { - Tuples = observableCollection6 - }); - ObservableCollection<Tuple<string, string, string>> observableCollection7 = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("ENDEREÇOS$", "", "") - }; - if (this.Enderecos != null && this.Enderecos.Count > 0) - { - foreach (ClienteEndereco endereco in this.Enderecos) - { - observableCollection7.Add(new Tuple<string, string, string>(string.Format(" ENDEREÇO {0}$", this.Enderecos.IndexOf(endereco) + 1), "", "")); - observableCollection7.Add(new Tuple<string, string, string>(" LOGRADOURO", (string.IsNullOrWhiteSpace(endereco.Endereco) ? "" : endereco.Endereco), "")); - observableCollection7.Add(new Tuple<string, string, string>(" NÚMERO", (string.IsNullOrWhiteSpace(endereco.Numero) ? "" : endereco.Numero), "")); - observableCollection7.Add(new Tuple<string, string, string>(" COMPLEMENTO", (string.IsNullOrWhiteSpace(endereco.Complemento) ? "" : endereco.Complemento), "")); - observableCollection7.Add(new Tuple<string, string, string>(" BAIRRO", (string.IsNullOrWhiteSpace(endereco.Bairro) ? "" : endereco.Bairro), "")); - observableCollection7.Add(new Tuple<string, string, string>(" CIDADE", (string.IsNullOrWhiteSpace(endereco.Cidade) ? "" : endereco.Cidade), "")); - observableCollection7.Add(new Tuple<string, string, string>(" ESTADO", (string.IsNullOrWhiteSpace(endereco.Estado) ? "" : endereco.Estado), "")); - observableCollection7.Add(new Tuple<string, string, string>(" CEP", (string.IsNullOrWhiteSpace(endereco.Cep) ? "" : endereco.Cep), "")); - observableCollection7.Add(new Tuple<string, string, string>(" ORDEM", (!endereco.Ordem.HasValue ? "" : endereco.Ordem.ToString()), "")); - } - } - tupleLists1.Add(new TupleList() - { - Tuples = observableCollection7 - }); - ObservableCollection<Tuple<string, string, string>> observableCollection8 = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("CONTATOS$", "", "") - }; - if (this.Contatos != null && this.Contatos.Count > 0) - { - foreach (MaisContato contato in this.Contatos) - { - observableCollection8.Add(new Tuple<string, string, string>(string.Format(" CONTATO {0}$", this.Contatos.IndexOf(contato) + 1), "", "")); - observableCollection8.Add(new Tuple<string, string, string>(" DOCUMENTO", (string.IsNullOrWhiteSpace(contato.Documento) ? "" : contato.Documento), "")); - ObservableCollection<Tuple<string, string, string>> observableCollection9 = observableCollection8; - nascimento = contato.Nascimento; - if (!nascimento.HasValue) - { - shortDateString3 = ""; - } - else - { - nascimento = contato.Nascimento; - if (nascimento.HasValue) - { - shortDateString3 = nascimento.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString3 = null; - } - } - observableCollection9.Add(new Tuple<string, string, string>(" NASCIMENTO", shortDateString3, "")); - ObservableCollection<Tuple<string, string, string>> observableCollection10 = observableCollection8; - Parentesco? parentesco = contato.Parentesco; - if (!parentesco.HasValue) - { - description3 = ""; - } - else - { - parentesco = contato.Parentesco; - if (parentesco.HasValue) - { - description3 = parentesco.GetValueOrDefault().GetDescription(); - } - else - { - description3 = null; - } - } - observableCollection10.Add(new Tuple<string, string, string>(" PARENTESCO", description3, "")); - observableCollection8.Add(new Tuple<string, string, string>(" BANCO", (string.IsNullOrWhiteSpace(contato.Banco) ? "" : contato.Banco), "")); - observableCollection8.Add(new Tuple<string, string, string>(" AGÊNCIA", (string.IsNullOrWhiteSpace(contato.Agencia) ? "" : contato.Agencia), "")); - observableCollection8.Add(new Tuple<string, string, string>(" CONTA", (string.IsNullOrWhiteSpace(contato.Conta) ? "" : contato.Conta), "")); - ObservableCollection<Tuple<string, string, string>> observableCollection11 = observableCollection8; - tipo = contato.Tipo; - if (!tipo.HasValue) - { - str3 = ""; - } - else - { - tipo = contato.Tipo; - if (tipo.HasValue) - { - str3 = tipo.GetValueOrDefault().GetDescription(); - } - else - { - str3 = null; - } - } - observableCollection11.Add(new Tuple<string, string, string>(" TIPO DO TELEFONE", str3, "")); - observableCollection8.Add(new Tuple<string, string, string>(" PREFIXO", (string.IsNullOrWhiteSpace(contato.Prefixo) ? "" : contato.Prefixo), "")); - observableCollection8.Add(new Tuple<string, string, string>(" NÚMERO", (string.IsNullOrWhiteSpace(contato.Telefone) ? "" : contato.Telefone), "")); - observableCollection8.Add(new Tuple<string, string, string>(" EMAIL", (string.IsNullOrWhiteSpace(contato.Email) ? "" : contato.Email), "")); - } - } - tupleLists1.Add(new TupleList() - { - Tuples = observableCollection8 - }); - ObservableCollection<Tuple<string, string, string>> observableCollection12 = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("VÍNCULOS$", "", "") - }; - if (this.Vinculos == null) - { - this.Vinculos = new ObservableCollection<ClienteVinculo>(); - } - if (this.Vinculos != null && this.Vinculos.Count > 0) - { - foreach (ClienteVinculo vinculo in this.Vinculos) - { - observableCollection12.Add(new Tuple<string, string, string>(string.Format(" VÍNCULO {0}$", this.Vinculos.IndexOf(vinculo) + 1), "", "")); - observableCollection12.Add(new Tuple<string, string, string>(" COM CLIENTE", (vinculo.Cliente1.Id != base.Id ? vinculo.Cliente1.Nome : vinculo.Cliente2.Nome), "")); - observableCollection12.Add(new Tuple<string, string, string>(" PARENTESCO", (vinculo.Cliente1.Id == base.Id ? vinculo.Parentesco.GetDescription() : Funcoes.ParentescoInverso(vinculo.Parentesco).GetDescription()), "")); - } - } - tupleLists1.Add(new TupleList() - { - Tuples = observableCollection12 - }); - return tupleLists1; - } - - public List<KeyValuePair<string, string>> Validate() - { - int? nullable; - DateTime? primeiraHabilitacao; - int? nullable1; - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - string nome = this.Nome; - if (nome != null) - { - nullable1 = new int?((int)nome.Trim().Split(new char[] { ' ' }).Length); - } - else - { - nullable = null; - nullable1 = nullable; - } - int? nullable2 = nullable1; - if (nullable2.HasValue) - { - nullable = nullable2; - if (nullable.GetValueOrDefault() <= 1 & nullable.HasValue) - { - keyValuePairs.AddValue<string, string>("Nome", Messages.NomeInvalido, true); - } - } - else - { - keyValuePairs.AddValue<string, string>("Nome", Messages.Obrigatorio, true); - } - TipoDocumento? documentoPrincipal = this.DocumentoPrincipal; - if (!documentoPrincipal.HasValue) - { - keyValuePairs.AddValue<string, string>("DocumentoPrincipal|DOCUMENTO PRINCIPAL", string.Format(Messages.Obrigatorio, Array.Empty<object>()), true); - } - DateTime? clienteDesde = this.ClienteDesde; - if (clienteDesde.HasValue) - { - clienteDesde = this.ClienteDesde; - if (DateTime.Compare(clienteDesde.Value, new DateTime(1753, 1, 1)) >= 0) - { - clienteDesde = this.ClienteDesde; - if (DateTime.Compare(clienteDesde.Value, new DateTime(9999, 12, 31)) <= 0) - { - goto Label0; - } - } - keyValuePairs.AddValue<string, string>("ClienteDesde|CLIENTE DESDE", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - Label0: - DateTime networkTime = Funcoes.GetNetworkTime(); - DateTime date = networkTime.Date; - clienteDesde = this.Nascimento; - if (clienteDesde.HasValue) - { - clienteDesde = this.Nascimento; - networkTime = date; - if ((clienteDesde.HasValue ? clienteDesde.GetValueOrDefault() > networkTime : false)) - { - keyValuePairs.AddValue<string, string>(string.Concat("Nascimento|", (this.Documento.OnlyNumber().Length > 11 ? "FUNDAÇÃO" : "NASCIMENTO")), Messages.Invalido, true); - } - } - clienteDesde = this.Nascimento; - if (clienteDesde.HasValue) - { - clienteDesde = this.Nascimento; - if (DateTime.Compare(clienteDesde.Value, new DateTime(1753, 1, 1)) >= 0) - { - clienteDesde = this.Nascimento; - if (DateTime.Compare(clienteDesde.Value, new DateTime(9999, 12, 31)) <= 0) - { - goto Label1; - } - } - keyValuePairs.AddValue<string, string>(string.Concat("Nascimento|", (this.Documento.OnlyNumber().Length > 11 ? "FUNDAÇÃO" : "NASCIMENTO")), string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (string.IsNullOrWhiteSpace(this.Documento)) - { - keyValuePairs.AddValue<string, string>("Documento", Messages.Obrigatorio, true); - } - else if (!this.Documento.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("Documento", Messages.Invalido, true); - } - documentoPrincipal = this.DocumentoPrincipal; - if (documentoPrincipal.HasValue) - { - switch (documentoPrincipal.GetValueOrDefault()) - { - case TipoDocumento.Rne: - { - if (!string.IsNullOrWhiteSpace(this.Rne)) - { - if (this.Rne.ValidacaoRne()) - { - break; - } - keyValuePairs.AddValue<string, string>("Rne", Messages.Invalido, true); - break; - } - else - { - keyValuePairs.AddValue<string, string>("Rne", Messages.Obrigatorio, true); - break; - } - } - case TipoDocumento.Cei: - { - if (!string.IsNullOrWhiteSpace(this.Cei)) - { - if (this.Cei.ValidacaoCei()) - { - break; - } - keyValuePairs.AddValue<string, string>("Cei", Messages.Invalido, true); - break; - } - else - { - keyValuePairs.AddValue<string, string>("Cei", Messages.Obrigatorio, true); - break; - } - } - case TipoDocumento.Caepf: - { - if (!string.IsNullOrWhiteSpace(this.Caepf)) - { - if (this.Caepf.ValidateCaepf()) - { - break; - } - keyValuePairs.AddValue<string, string>("Caepf", Messages.Invalido, true); - break; - } - else - { - keyValuePairs.AddValue<string, string>("Caepf", Messages.Obrigatorio, true); - break; - } - } - } - } - if (this.Documento == null || this.Documento.OnlyNumber().Length <= 11) - { - clienteDesde = this.PrimeiraHabilitacao; - if (clienteDesde.HasValue) - { - clienteDesde = this.PrimeiraHabilitacao; - networkTime = date; - if ((clienteDesde.HasValue ? clienteDesde.GetValueOrDefault() > networkTime : false)) - { - keyValuePairs.AddValue<string, string>("PrimeiraHabilitacao|PRIMEIRA HABILITAÇÃO", Messages.Invalido, true); - } - } - clienteDesde = this.PrimeiraHabilitacao; - if (clienteDesde.HasValue) - { - clienteDesde = this.PrimeiraHabilitacao; - if (DateTime.Compare(clienteDesde.Value, new DateTime(1753, 1, 1)) >= 0) - { - clienteDesde = this.PrimeiraHabilitacao; - if (DateTime.Compare(clienteDesde.Value, new DateTime(9999, 12, 31)) <= 0) - { - goto Label2; - } - } - keyValuePairs.AddValue<string, string>("PrimeiraHabilitacao|PRIMEIRA HABILITAÇÃO", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - Label2: - clienteDesde = this.VencimentoHabilitacao; - if (clienteDesde.HasValue) - { - clienteDesde = this.VencimentoHabilitacao; - primeiraHabilitacao = this.PrimeiraHabilitacao; - if ((clienteDesde.HasValue & primeiraHabilitacao.HasValue ? clienteDesde.GetValueOrDefault() <= primeiraHabilitacao.GetValueOrDefault() : false)) - { - keyValuePairs.AddValue<string, string>("VencimentoHabilitacao|VENCIMENTO HABILITAÇÃO", Messages.Invalido, true); - } - } - primeiraHabilitacao = this.VencimentoHabilitacao; - if (primeiraHabilitacao.HasValue) - { - primeiraHabilitacao = this.VencimentoHabilitacao; - if (DateTime.Compare(primeiraHabilitacao.Value, new DateTime(1753, 1, 1)) >= 0) - { - primeiraHabilitacao = this.VencimentoHabilitacao; - if (DateTime.Compare(primeiraHabilitacao.Value, new DateTime(9999, 12, 31)) <= 0) - { - goto Label3; - } - } - keyValuePairs.AddValue<string, string>("VencimentoHabilitacao|VENCIMENTO HABILITAÇÃO", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - Label3: - primeiraHabilitacao = this.Expedicao; - if (primeiraHabilitacao.HasValue) - { - primeiraHabilitacao = this.Expedicao; - if (DateTime.Compare(primeiraHabilitacao.Value, new DateTime(1753, 1, 1)) >= 0) - { - primeiraHabilitacao = this.Expedicao; - if (DateTime.Compare(primeiraHabilitacao.Value, new DateTime(9999, 12, 31)) <= 0) - { - goto Label4; - } - } - keyValuePairs.AddValue<string, string>("Expedicao|EXPEDIÇÃO", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - Label4: - primeiraHabilitacao = this.Expedicao; - if (primeiraHabilitacao.HasValue) - { - primeiraHabilitacao = this.Expedicao; - networkTime = date; - if ((primeiraHabilitacao.HasValue ? primeiraHabilitacao.GetValueOrDefault() > networkTime : false)) - { - keyValuePairs.AddValue<string, string>("Expedicao|EXPEDIÇÃO", Messages.Invalido, true); - } - } - if (!string.IsNullOrWhiteSpace(this.Identidade) && this.Identidade.Length > 14) - { - keyValuePairs.AddValue<string, string>("Identidade", string.Format(Messages.MaiorQueLimite, 14), true); - } - if (!string.IsNullOrWhiteSpace(this.Habilitacao) && this.Habilitacao.Length > 15) - { - keyValuePairs.AddValue<string, string>("Habilitacao|HABILITAÇÃO", string.Format(Messages.MaiorQueLimite, 15), true); - } - if (!string.IsNullOrWhiteSpace(this.CategoriaHabilitacao) && this.CategoriaHabilitacao.Length > 10) - { - keyValuePairs.AddValue<string, string>("CategoriaHabilitacao|CATEGORIA HABILITAÇÃO", string.Format(Messages.MaiorQueLimite, 10), true); - } - if (!string.IsNullOrWhiteSpace(this.Emissor) && !this.Emissor.ValidacaoOrgao()) - { - keyValuePairs.AddValue<string, string>("Emissor|EMISSOR", string.Format(Messages.MaiorQueLimite, 6), true); - } - if (!string.IsNullOrWhiteSpace(this.EstadoEmissor) && !this.EstadoEmissor.ValidacaoEstado()) - { - keyValuePairs.AddValue<string, string>("EstadoEmissor|ESTADO EMISSOR", Messages.Invalido, true); - } - } - if (!string.IsNullOrWhiteSpace(this.Pasta) && this.Pasta.Length > 8) - { - keyValuePairs.AddValue<string, string>("Pasta", string.Format(Messages.MaiorQueLimite, 8), true); - } - if (!string.IsNullOrWhiteSpace(this.Agencia) && this.Agencia.Length > 8) - { - keyValuePairs.AddValue<string, string>("Agencia|AGÊNCIA", string.Format(Messages.MaiorQueLimite, 8), true); - } - if (!string.IsNullOrWhiteSpace(this.TipoConta) && this.TipoConta.Length > 20) - { - keyValuePairs.AddValue<string, string>("TipoConta|TIPO CONTA", string.Format(Messages.MaiorQueLimite, 20), true); - } - if (!string.IsNullOrWhiteSpace(this.Conta) && this.Conta.Length > 12) - { - keyValuePairs.AddValue<string, string>("Conta", string.Format(Messages.MaiorQueLimite, 12), true); - } - if (this.ResponsavelAssinatura != null) - { - keyValuePairs.AddRange(this.ResponsavelAssinatura.Validate()); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/ClienteEmail.cs b/Gestor.Model/Model.Domain.Seguros/ClienteEmail.cs deleted file mode 100644 index 0175f31..0000000 --- a/Gestor.Model/Model.Domain.Seguros/ClienteEmail.cs +++ /dev/null @@ -1,88 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class ClienteEmail : EmailBase, IDomain - { - private string _observacao; - - public Gestor.Model.Domain.Seguros.Cliente Cliente - { - get; - set; - } - - [Log(true)] - public string Observacao - { - get - { - string str = this._observacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._observacao = value; - } - } - - public int? Ordem - { - get; - set; - } - - public bool Selecionado - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - ClienteEmail clienteEmail = this; - return new Func<List<KeyValuePair<string, string>>>(clienteEmail.Validate); - } - } - - public ClienteEmail() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(base.Email)) - { - keyValuePairs.AddValue<string, string>("Email", Messages.Obrigatorio, true); - } - else if (base.Email.Length > 80) - { - keyValuePairs.AddValue<string, string>("Email", string.Format(Messages.MaiorQueLimite, 80), true); - } - else if (!base.Email.ValidacaoEmail()) - { - keyValuePairs.AddValue<string, string>("Email", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.Observacao) && this.Observacao.Length > 255) - { - keyValuePairs.AddValue<string, string>("Observacao", string.Format(Messages.MaiorQueLimite, 255), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/ClienteEndereco.cs b/Gestor.Model/Model.Domain.Seguros/ClienteEndereco.cs deleted file mode 100644 index 5085632..0000000 --- a/Gestor.Model/Model.Domain.Seguros/ClienteEndereco.cs +++ /dev/null @@ -1,155 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using System.Threading; - -namespace Gestor.Model.Domain.Seguros -{ - public class ClienteEndereco : EnderecoBase, IDomain, INotifyPropertyChanged - { - private bool _selecionado; - - private string _observacao; - - public Gestor.Model.Domain.Seguros.Cliente Cliente - { - get; - set; - } - - [Log(true)] - public string Observacao - { - get - { - string str = this._observacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._observacao = value; - } - } - - public int? Ordem - { - get; - set; - } - - public bool Selecionado - { - get - { - return this._selecionado; - } - set - { - if (value == this._selecionado) - { - return; - } - this._selecionado = value; - this.OnPropertyChanged("Selecionado"); - } - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - ClienteEndereco clienteEndereco = this; - return new Func<List<KeyValuePair<string, string>>>(clienteEndereco.Validate); - } - } - - public ClienteEndereco() - { - } - - protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) - { - PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged; - if (propertyChangedEventHandler == null) - { - return; - } - propertyChangedEventHandler(this, new PropertyChangedEventArgs(propertyName)); - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(base.Cep)) - { - keyValuePairs.AddValue<string, string>("Cep", Messages.Obrigatorio, true); - } - else if (!base.Cep.ValidacaoCep()) - { - keyValuePairs.AddValue<string, string>("Cep", Messages.Invalido, true); - } - if (string.IsNullOrWhiteSpace(base.Endereco)) - { - keyValuePairs.AddValue<string, string>("Endereco", Messages.Obrigatorio, true); - } - else if (base.Endereco.Length > 150) - { - keyValuePairs.AddValue<string, string>("Endereco", string.Format(Messages.MaiorQueLimite, 150), true); - } - if (string.IsNullOrWhiteSpace(base.Numero)) - { - keyValuePairs.AddValue<string, string>("Numero", Messages.Obrigatorio, true); - } - else if (base.Numero.Length > 6) - { - keyValuePairs.AddValue<string, string>("Numero", string.Format(Messages.MaiorQueLimite, 6), true); - } - if (!string.IsNullOrWhiteSpace(base.Complemento) && base.Complemento.Length > 45) - { - keyValuePairs.AddValue<string, string>("Complemento", string.Format(Messages.MaiorQueLimite, 45), true); - } - if (string.IsNullOrWhiteSpace(base.Bairro)) - { - keyValuePairs.AddValue<string, string>("Bairro", Messages.Obrigatorio, true); - } - else if (base.Bairro.Length > 100) - { - keyValuePairs.AddValue<string, string>("Bairro", string.Format(Messages.MaiorQueLimite, 100), true); - } - if (string.IsNullOrWhiteSpace(base.Cidade)) - { - keyValuePairs.AddValue<string, string>("Cidade", Messages.Obrigatorio, true); - } - else if (base.Cidade.Length > 50) - { - keyValuePairs.AddValue<string, string>("Cidade", string.Format(Messages.MaiorQueLimite, 50), true); - } - if (string.IsNullOrWhiteSpace(base.Estado)) - { - keyValuePairs.AddValue<string, string>("Estado", Messages.Obrigatorio, true); - } - else if (!base.Estado.ValidacaoEstado()) - { - keyValuePairs.AddValue<string, string>("Estado", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.Observacao) && this.Observacao.Length > 255) - { - keyValuePairs.AddValue<string, string>("Observacao", string.Format(Messages.MaiorQueLimite, 255), true); - } - return keyValuePairs; - } - - public event PropertyChangedEventHandler PropertyChanged; - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/ClienteTelefone.cs b/Gestor.Model/Model.Domain.Seguros/ClienteTelefone.cs deleted file mode 100644 index 794790b..0000000 --- a/Gestor.Model/Model.Domain.Seguros/ClienteTelefone.cs +++ /dev/null @@ -1,82 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class ClienteTelefone : TelefoneBase, IDomain - { - private string _observacao; - - public Gestor.Model.Domain.Seguros.Cliente Cliente - { - get; - set; - } - - [Log(true)] - public string Observacao - { - get - { - string str = this._observacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._observacao = value; - } - } - - public int? Ordem - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - ClienteTelefone clienteTelefone = this; - return new Func<List<KeyValuePair<string, string>>>(clienteTelefone.Validate); - } - } - - public ClienteTelefone() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = base.ValidateBase(true); - if (!string.IsNullOrWhiteSpace(this.Observacao) && this.Observacao.Length > 30) - { - keyValuePairs.AddValue<string, string>("Observacao", string.Format(Messages.MaiorQueLimite, 30), true); - } - if (string.IsNullOrWhiteSpace(base.Numero)) - { - keyValuePairs.AddValue<string, string>("Numero", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(base.Prefixo)) - { - keyValuePairs.AddValue<string, string>("Prefixo", Messages.Obrigatorio, true); - } - if (!base.Tipo.HasValue) - { - keyValuePairs.AddValue<string, string>("Tipo", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/ClienteVinculo.cs b/Gestor.Model/Model.Domain.Seguros/ClienteVinculo.cs deleted file mode 100644 index c8065fe..0000000 --- a/Gestor.Model/Model.Domain.Seguros/ClienteVinculo.cs +++ /dev/null @@ -1,56 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -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 - { - get - { - ClienteVinculo clienteVinculo = this; - return new Func<List<KeyValuePair<string, string>>>(clienteVinculo.Validate); - } - } - - public ClienteVinculo() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (!this.Parentesco.HasValue) - { - keyValuePairs.AddValue<string, string>("Parentesco", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Cobertura.cs b/Gestor.Model/Model.Domain.Seguros/Cobertura.cs deleted file mode 100644 index f0b8c66..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Cobertura.cs +++ /dev/null @@ -1,86 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class Cobertura : DomainBase, IDomain - { - private string _observacao; - - public Gestor.Model.Domain.Seguros.CoberturaPadrao CoberturaPadrao - { - get; - set; - } - - public decimal Franquia - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Item Item - { - get; - set; - } - - public decimal Lmi - { - get; - set; - } - - public string Observacao - { - get - { - string str = this._observacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._observacao = (!string.IsNullOrWhiteSpace(value) || this.CoberturaPadrao == null ? value : this.CoberturaPadrao.Descricao); - } - } - - public decimal Premio - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Cobertura cobertura = this; - return new Func<List<KeyValuePair<string, string>>>(cobertura.Validate); - } - } - - public Cobertura() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if ((this.Lmi != decimal.Zero || this.Premio != decimal.Zero || this.Franquia != decimal.Zero) && string.IsNullOrWhiteSpace(this.Observacao)) - { - keyValuePairs.AddValue<string, string>("Observacao", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/CoberturaGranizo.cs b/Gestor.Model/Model.Domain.Seguros/CoberturaGranizo.cs deleted file mode 100644 index c2af1c3..0000000 --- a/Gestor.Model/Model.Domain.Seguros/CoberturaGranizo.cs +++ /dev/null @@ -1,125 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class CoberturaGranizo : DomainBase, IDomain - { - private string _variedade; - - private string _quadra; - - public decimal? Area - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Granizo Granizo - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Item Item - { - get; - set; - } - - public decimal? Lmi - { - get; - set; - } - - public DateTime? Plantio - { - get; - set; - } - - public decimal? Premio - { - get; - set; - } - - public decimal? Produtividade - { - get; - set; - } - - public string Quadra - { - get - { - string str = this._quadra; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._quadra = value; - } - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - CoberturaGranizo coberturaGranizo = this; - return new Func<List<KeyValuePair<string, string>>>(coberturaGranizo.Validate); - } - } - - public string Variedade - { - get - { - string str = this._variedade; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._variedade = value; - } - } - - public CoberturaGranizo() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.Plantio.HasValue && (DateTime.Compare(this.Plantio.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Plantio.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("Plantio", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (string.IsNullOrWhiteSpace(this.Variedade) && this.Variedade.Length > 60) - { - keyValuePairs.AddValue<string, string>("Variedade", string.Format(Messages.MaiorQueLimite, 60), true); - } - if (string.IsNullOrWhiteSpace(this.Quadra) && this.Quadra.Length > 30) - { - keyValuePairs.AddValue<string, string>("Quadra", string.Format(Messages.MaiorQueLimite, 30), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/CoberturaPadrao.cs b/Gestor.Model/Model.Domain.Seguros/CoberturaPadrao.cs deleted file mode 100644 index 81a4e23..0000000 --- a/Gestor.Model/Model.Domain.Seguros/CoberturaPadrao.cs +++ /dev/null @@ -1,67 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; -using System.Text.RegularExpressions; - -namespace Gestor.Model.Domain.Seguros -{ - public class CoberturaPadrao : DomainBase, IDomain - { - private string _descricao; - - public string Descricao - { - get - { - if (!string.IsNullOrWhiteSpace(this._descricao)) - { - this._descricao = Regex.Replace(this._descricao, "[\n\r]", ""); - } - string str = this._descricao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._descricao = value; - } - } - - public long IdRamo - { - get; - set; - } - - public bool Padrao - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - CoberturaPadrao coberturaPadrao = this; - return new Func<List<KeyValuePair<string, string>>>(coberturaPadrao.Validate); - } - } - - public CoberturaPadrao() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - return ValidationHelper.AddValue(); - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/CondicaoRepasse.cs b/Gestor.Model/Model.Domain.Seguros/CondicaoRepasse.cs deleted file mode 100644 index c921485..0000000 --- a/Gestor.Model/Model.Domain.Seguros/CondicaoRepasse.cs +++ /dev/null @@ -1,49 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class CondicaoRepasse : DomainBase, IDomain - { - public int Parcela - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Ramo Ramo - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Seguradora Seguradora - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - CondicaoRepasse condicaoRepasse = this; - return new Func<List<KeyValuePair<string, string>>>(condicaoRepasse.Validate); - } - } - - public CondicaoRepasse() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - return ValidationHelper.AddValue(); - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/ConfigExtratoImport.cs b/Gestor.Model/Model.Domain.Seguros/ConfigExtratoImport.cs deleted file mode 100644 index 8a4cbbf..0000000 --- a/Gestor.Model/Model.Domain.Seguros/ConfigExtratoImport.cs +++ /dev/null @@ -1,50 +0,0 @@ -using Gestor.Model.Domain.Generic; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class ConfigExtratoImport : DomainBase - { - private string _descricao; - - public bool Ativo - { - get; - set; - } - - public string Codigo - { - get; - set; - } - - public string Descricao - { - get - { - string str = this._descricao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._descricao = value; - } - } - - public long IdSeguradora - { - get; - set; - } - - public ConfigExtratoImport() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Consorcio.cs b/Gestor.Model/Model.Domain.Seguros/Consorcio.cs deleted file mode 100644 index 3efd5ad..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Consorcio.cs +++ /dev/null @@ -1,191 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Globalization; -using System.Runtime.CompilerServices; - -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 string BensConsorcio - { - get - { - string str = this._bensConsorcio; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._bensConsorcio = value; - } - } - - public string Cota - { - get - { - string str = this._cota; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._cota = value; - } - } - - public string Grupo - { - get - { - string str = this._grupo; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._grupo = value; - } - } - - public Gestor.Model.Domain.Seguros.Item Item - { - get; - set; - } - - public string Observacao - { - get - { - string str = this._observacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._observacao = value; - } - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Consorcio consorcio = this; - return new Func<List<KeyValuePair<string, string>>>(consorcio.Validate); - } - } - - public decimal? ValorCredito - { - get - { - return this._valorCredito; - } - set - { - this._valorCredito = value; - } - } - - public Consorcio() - { - } - - public static List<TupleList> Log(Gestor.Model.Domain.Seguros.Item item) - { - decimal valueOrDefault; - string str; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = 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), "") - }; - decimal? valorCredito = item.Consorcio.ValorCredito; - if (!valorCredito.HasValue) - { - str = ""; - } - else - { - valorCredito = item.Consorcio.ValorCredito; - if (valorCredito.HasValue) - { - valueOrDefault = valorCredito.GetValueOrDefault(); - str = valueOrDefault.ToString("C", new CultureInfo("pt-BR", false)); - } - else - { - str = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("GRUPO", str, "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - List<TupleList> tupleLists1 = tupleLists; - ObservableCollection<Tuple<string, string, string>> observableCollection1 = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("COBERTURAS$", "", "") - }; - foreach (Cobertura cobertura in item.Coberturas) - { - observableCollection1.Add(new Tuple<string, string, string>(string.Format(" COBERTURA {0}$", item.Coberturas.IndexOf(cobertura) + 1), "", "")); - observableCollection1.Add(new Tuple<string, string, string>(" OBSERVAÇÃO", (string.IsNullOrWhiteSpace(cobertura.Observacao) ? "" : cobertura.Observacao.ToUpper()), "")); - valueOrDefault = cobertura.Premio; - observableCollection1.Add(new Tuple<string, string, string>(" PRÊMIO", valueOrDefault.ToString("C", new CultureInfo("pt-BR", false)), "")); - valueOrDefault = cobertura.Franquia; - observableCollection1.Add(new Tuple<string, string, string>(" FRANQUIA", valueOrDefault.ToString("C", new CultureInfo("pt-BR", false)), "")); - valueOrDefault = cobertura.Lmi; - observableCollection1.Add(new Tuple<string, string, string>(" L.M.I.", valueOrDefault.ToString("C", new CultureInfo("pt-BR", false)), "")); - } - tupleLists1.Add(new TupleList() - { - Tuples = observableCollection1 - }); - return tupleLists1; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.BensConsorcio)) - { - keyValuePairs.AddValue<string, string>("BensConsorcio", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Controle.cs b/Gestor.Model/Model.Domain.Seguros/Controle.cs deleted file mode 100644 index 3ae91c6..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Controle.cs +++ /dev/null @@ -1,128 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class Controle : DomainBase, IDomain - { - private long _idEmpresa; - - public string AssistenciaId - { - get; - set; - } - - [Log(false)] - public Gestor.Model.Domain.Seguros.Cliente Cliente - { - get; - set; - } - - [Log(false)] - public IList<Documento> Documentos - { - get; - set; - } - - public long IdEmpresa - { - get - { - return this._idEmpresa; - } - set - { - this._idEmpresa = (value == 0 ? (long)1 : value); - } - } - - [Log(false)] - public Gestor.Model.Domain.Seguros.Item Item - { - get; - set; - } - - [Description("PRODUTO")] - [Log(true)] - [Name(true)] - public Gestor.Model.Domain.Seguros.Produto Produto - { - get; - set; - } - - [Description("RAMO")] - [Log(true)] - [Name(true)] - public Gestor.Model.Domain.Seguros.Ramo Ramo - { - get; - set; - } - - [Description("SEGURADORA")] - [Log(true)] - [Name(true)] - public Gestor.Model.Domain.Seguros.Seguradora Seguradora - { - get; - set; - } - - [Description("SEGURADORA ANTERIOR")] - [Log(true)] - [Name(true)] - public Gestor.Model.Domain.Seguros.Seguradora SeguradoraAnterior - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Controle controle = this; - return new Func<List<KeyValuePair<string, string>>>(controle.Validate); - } - } - - public Controle() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.Cliente == null || this.Cliente.Id == 0) - { - keyValuePairs.AddValue<string, string>("Cliente", Messages.Obrigatorio, true); - } - if (this.Seguradora == null || this.Seguradora.Id == 0) - { - keyValuePairs.AddValue<string, string>("Seguradora", Messages.Obrigatorio, true); - } - if (this.Ramo == null || this.Ramo.Id == 0) - { - keyValuePairs.AddValue<string, string>("Ramo", Messages.Obrigatorio, true); - } - if (this.IdEmpresa == 0) - { - keyValuePairs.AddValue<string, string>("Empresa", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/ControleSinistro.cs b/Gestor.Model/Model.Domain.Seguros/ControleSinistro.cs deleted file mode 100644 index 13207b6..0000000 --- a/Gestor.Model/Model.Domain.Seguros/ControleSinistro.cs +++ /dev/null @@ -1,118 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class ControleSinistro : DomainBase, IDomain - { - private DateTime? _dataSinistro; - - private DateTime? _horaSinistro; - - [Description("DATA SINISTRO")] - [Log(true)] - [Name(true)] - public DateTime? DataSinistro - { - get - { - return this._dataSinistro; - } - set - { - if (!value.HasValue) - { - this._dataSinistro = null; - return; - } - if (!this.HoraSinistro.HasValue) - { - this.HoraSinistro = value; - } - object obj = value.Value; - DateTime? horaSinistro = this.HoraSinistro; - this._dataSinistro = new DateTime?(DateTime.Parse(string.Format("{0:d} {1:T}", obj, horaSinistro.Value))); - } - } - - public DateTime? HoraSinistro - { - get - { - return this._horaSinistro; - } - set - { - DateTime? nullable; - this._horaSinistro = value; - if (!value.HasValue) - { - return; - } - DateTime? dataSinistro = this.DataSinistro; - if (!dataSinistro.HasValue || !value.HasValue) - { - dataSinistro = null; - nullable = dataSinistro; - } - else - { - dataSinistro = this.DataSinistro; - nullable = new DateTime?(DateTime.Parse(string.Format("{0:d} {1:T}", dataSinistro.Value, value))); - } - this.DataSinistro = nullable; - } - } - - public Gestor.Model.Domain.Seguros.Item Item - { - get; - set; - } - - public List<Sinistro> Sinistros - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - ControleSinistro controleSinistro = this; - return new Func<List<KeyValuePair<string, string>>>(controleSinistro.Validate); - } - } - - public ControleSinistro() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (!this.DataSinistro.HasValue) - { - keyValuePairs.AddValue<string, string>("DataSinistro", Messages.Obrigatorio, true); - } - if (this.DataSinistro.HasValue && (DateTime.Compare(this.DataSinistro.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.DataSinistro.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("DataSinistro", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.HoraSinistro.HasValue && (DateTime.Compare(this.HoraSinistro.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.HoraSinistro.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("HoraSinistro", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/CriticaApolice.cs b/Gestor.Model/Model.Domain.Seguros/CriticaApolice.cs deleted file mode 100644 index efdfa8c..0000000 --- a/Gestor.Model/Model.Domain.Seguros/CriticaApolice.cs +++ /dev/null @@ -1,116 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class CriticaApolice : DomainBase, IDomain - { - private string _naoEncontrados; - - private bool? _critica; - - public bool? Aggilizador - { - get; - set; - } - - public bool? Critica - { - get - { - return this._critica; - } - set - { - this._critica = new bool?(value.GetValueOrDefault()); - } - } - - public DateTime? DataCritica - { - get; - set; - } - - public DateTime? DataImportacao - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Documento Documento - { - get; - set; - } - - public string NaoEncontrados - { - get - { - string str = this._naoEncontrados; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._naoEncontrados = value; - } - } - - public string Tipo - { - get; - set; - } - - public long? UsuarioCritica - { - get; - set; - } - - public Usuario UsuarioImportacao - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - CriticaApolice criticaApolouse = this; - return new Func<List<KeyValuePair<string, string>>>(criticaApolouse.Validate); - } - } - - public CriticaApolice() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.DataImportacao.HasValue && (DateTime.Compare(this.DataImportacao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.DataImportacao.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("DataImportacao", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.DataCritica.HasValue && (DateTime.Compare(this.DataCritica.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.DataCritica.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("DataCritica", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/DetalheExtrato.cs b/Gestor.Model/Model.Domain.Seguros/DetalheExtrato.cs deleted file mode 100644 index c03bd40..0000000 --- a/Gestor.Model/Model.Domain.Seguros/DetalheExtrato.cs +++ /dev/null @@ -1,250 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using System.Threading; - -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 string Apolice - { - get - { - string str = this._apolice; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._apolice = value; - } - } - - public string Cliente - { - get - { - string str = this._cliente; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._cliente = value; - } - } - - public decimal? Comissao - { - get; - set; - } - - public bool Corrigir - { - get; - set; - } - - public DateTime? Credito - { - get; - set; - } - - public long? Documento - { - get; - set; - } - - public string Endosso - { - get - { - string str = this._endosso; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._endosso = value; - } - } - - public Gestor.Model.Domain.Seguros.Extrato Extrato - { - get; - set; - } - - public string Historico - { - get - { - string str = this._historico; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._historico = value; - } - } - - public string NumeroParcela - { - get - { - string str = this._numeroParcela; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._numeroParcela = value; - } - } - - public long? Parcela - { - get; - set; - } - - public DateTime? Recebimento - { - get; - set; - } - - public bool Selecionado - { - get - { - return this._selecionado; - } - set - { - this._selecionado = value; - this.OnPropertyChanged("Selecionado"); - } - } - - public StatusParcela? Status - { - get; - set; - } - - public Gestor.Model.Common.SubTipo? SubTipo - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - DetalheExtrato detalheExtrato = this; - return new Func<List<KeyValuePair<string, string>>>(detalheExtrato.Validate); - } - } - - public decimal? Valor - { - get; - set; - } - - public decimal? ValorComissao - { - get; - set; - } - - public DetalheExtrato() - { - } - - protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) - { - PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged; - if (propertyChangedEventHandler == null) - { - return; - } - propertyChangedEventHandler(this, new PropertyChangedEventArgs(propertyName)); - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.Recebimento.HasValue && (DateTime.Compare(this.Recebimento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Recebimento.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("Recebimento", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.Credito.HasValue && (DateTime.Compare(this.Credito.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Credito.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("Credito", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (string.IsNullOrWhiteSpace(this.Cliente) && this.Cliente.Length > 100) - { - keyValuePairs.AddValue<string, string>("Cliente", string.Format(Messages.MaiorQueLimite, 100), true); - } - if (string.IsNullOrWhiteSpace(this.Apolice) && this.Apolice.Length > 30) - { - keyValuePairs.AddValue<string, string>("Apolice", string.Format(Messages.MaiorQueLimite, 30), true); - } - if (string.IsNullOrWhiteSpace(this.Endosso) && this.Endosso.Length > 20) - { - keyValuePairs.AddValue<string, string>("Endosso", string.Format(Messages.MaiorQueLimite, 20), true); - } - if (string.IsNullOrWhiteSpace(this.NumeroParcela) && this.NumeroParcela.Length > 4) - { - keyValuePairs.AddValue<string, string>("NumeroParcela", string.Format(Messages.MaiorQueLimite, 4), true); - } - return keyValuePairs; - } - - public event PropertyChangedEventHandler PropertyChanged; - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Documento.cs b/Gestor.Model/Model.Domain.Seguros/Documento.cs deleted file mode 100644 index 00ae7de..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Documento.cs +++ /dev/null @@ -1,1426 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Globalization; -using System.Runtime.CompilerServices; -using System.Threading; - -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; - - [Description("ADICIONAL DE COMISSÃO")] - [Log(true)] - public bool AdicionalComiss - { - get; - set; - } - - [Description("AGÊNCIA")] - [Log(true)] - public string Agencia - { - get - { - string str = this._agencia; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._agencia = value; - } - } - - [Description("APÓLICE")] - [Log(true)] - public string Apolice - { - get - { - string str = this._apolice; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._apolice = value; - } - } - - [Description("APÓLICE ANTERIOR")] - [Log(true)] - public string ApoliceAnterior - { - get - { - string str = this._apoliceAnterior; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._apoliceAnterior = value; - } - } - - [Description("APÓLICE CONFERIDA")] - [Log(true)] - public bool ApoliceConferida - { - get; - set; - } - - public bool AssinadaSiggner - { - get; - set; - } - - [Log(false)] - public List<StatusDocumentoAssinado> Assinaturas - { - get; - set; - } - - [Log(true)] - public Gestor.Model.Domain.Common.Banco Banco - { - get; - set; - } - - [Log(true)] - public BandeiraCartao? Bandeira - { - get; - set; - } - - [Log(false)] - public List<Calculo> Calculos - { - get; - set; - } - - [Description("COMISSÃO")] - [Log(true)] - public decimal Comissao - { - get; - set; - } - - public decimal? ComissaoTotal - { - get; - set; - } - - [Log(true)] - public string Conta - { - get - { - string str = this._conta; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._conta = value; - } - } - - public Gestor.Model.Domain.Seguros.Controle Controle - { - get; - set; - } - - [Description("CUSTO DE EMISSÃO")] - [Log(true)] - public decimal Custo - { - get; - set; - } - - [Description("DATA DE CONTROLE")] - [Log(true)] - public DateTime? DataControle - { - get; - set; - } - - public DateTime? DataCriacao - { - get; - set; - } - - [Description("DIFERENÇA")] - [Log(true)] - public decimal Diferenca - { - get; - set; - } - - [Description("EMISSÃO")] - [Log(true)] - public DateTime? Emissao - { - get; - set; - } - - [Log(true)] - public string Endosso - { - get - { - string str = this._endosso; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._endosso = value; - } - } - - [Description("ESTIPULANTE 1")] - [Log(true)] - public Estipulante Estipulante1 - { - get; - set; - } - - [Description("ESTIPULANTE 2")] - [Log(true)] - public Estipulante Estipulante2 - { - get; - set; - } - - [Description("ESTIPULANTE 3")] - [Log(true)] - public Estipulante Estipulante3 - { - get; - set; - } - - [Description("ESTIPULANTE 4")] - [Log(true)] - public Estipulante Estipulante4 - { - get; - set; - } - - [Description("ESTIPULANTE 5")] - [Log(true)] - public Estipulante Estipulante5 - { - get; - set; - } - - public string Estipulantes - { - get; - set; - } - - public bool Excluido - { - get; - set; - } - - public bool FinalVigencia - { - get; - set; - } - - [Description("FORMA DE PAGAMENTO")] - [Log(true)] - public Gestor.Model.Common.FormaPagamento? FormaPagamento - { - get; - set; - } - - [Description("IOF")] - [Log(true)] - public decimal Iof - { - get; - set; - } - - [Log(false)] - public List<Item> ItensAtivo - { - get; - set; - } - - [Log(false)] - public Gestor.Model.Common.Negocio? Negocio - { - get; - set; - } - - [Description("NEGÓCIO CORRETORA")] - [Log(true)] - public Gestor.Model.Common.NegocioCorretora? NegocioCorretora - { - get; - set; - } - - [Description("PROPONENTE")] - [Log(true)] - public string NomeProponente - { - get - { - string str = this._nomeProponente; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nomeProponente = value; - } - } - - [Description("NÚMERO CARTÃO")] - [Log(true)] - public string NumeroCartao - { - get - { - string str = this._numeroCartao; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._numeroCartao = value; - } - } - - [Description("QUANTIDADE DE PARCELAS")] - [Log(true)] - public decimal NumeroParcelas - { - get; - set; - } - - [Log(true)] - public string Observacao - { - get; - set; - } - - public string ObsProtocolo - { - get; - set; - } - - public int Ordem - { - get; - set; - } - - [Log(false)] - public List<VendedorParcela> Pagamentos - { - get; - set; - } - - [Log(false)] - public ObservableCollection<Parcela> Parcelas - { - get; - set; - } - - [Log(true)] - public string Pasta - { - get - { - string str = this._pasta; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._pasta = value; - } - } - - [Log(false)] - public decimal? PercentualRepasse - { - get; - set; - } - - [Description("PRÊMIO ADICIONAL")] - [Log(true)] - public decimal PremioAdicional - { - get; - set; - } - - [Description("PRÊMIO LÍQUIDO")] - [Log(true)] - public decimal PremioLiquido - { - get; - set; - } - - [Description("PRÊMIO TOTAL")] - [Log(true)] - public decimal PremioTotal - { - get; - set; - } - - [Log(true)] - public string Proposta - { - get - { - string str = this._proposta; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._proposta = value; - } - } - - [Log(true)] - public bool PropostaAssinada - { - get; - set; - } - - [Description("PROPOSTA DE ENDOSSO")] - [Log(true)] - public string PropostaEndosso - { - get - { - string str = this._propostaEndosso; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._propostaEndosso = value; - } - } - - public bool ProtocoloEmail - { - get; - set; - } - - public bool ProtocoloEndereco - { - get; - set; - } - - public bool ProtocoloParcela - { - get; - set; - } - - public bool ProtocoloTelefone - { - get; - set; - } - - public bool ProtocoloVendedor - { - get; - set; - } - - [Description("TRANSMISSÃO DA PROPOSTA")] - [Log(true)] - public DateTime? Remessa - { - get; - set; - } - - public bool Selecionado - { - get - { - return this._selecionado; - } - set - { - if (value == this._selecionado) - { - return; - } - this._selecionado = value; - this.OnPropertyChanged("Selecionado"); - } - } - - [Log(false)] - public bool Sinistro - { - get; - set; - } - - [Description("SITUAÇÃO")] - [Log(true)] - public TipoSeguro Situacao - { - get; - set; - } - - [Log(false)] - public TipoSeguro? SituacaoAnterior - { - get; - set; - } - - [Description("STATUS INTERNO")] - [Log(true)] - public Gestor.Model.Domain.Seguros.Status Status - { - get; - set; - } - - public Gestor.Model.Common.StatusAssinatura StatusAssinatura - { - get; - set; - } - - [Log(false)] - public bool TemEndosso - { - get; - set; - } - - public int Tipo - { - get; - set; - } - - [Description("TIPO DO ENDOSSO")] - [Log(true)] - public Gestor.Model.Common.TipoEndosso? TipoEndosso - { - get; - set; - } - - [Description("TIPO RECEBIMENTO")] - [Log(true)] - public Gestor.Model.Common.TipoRecebimento? TipoRecebimento - { - get; - set; - } - - [Log(false)] - public Usuario UsuarioCriacao - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Documento documento = this; - return new Func<List<KeyValuePair<string, string>>>(documento.Validate); - } - } - - [Description("VENCIMENTO CARTÃO")] - [Log(true)] - public string VencimentoCartao - { - get - { - string str = this._vencimentoCartao; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._vencimentoCartao = value; - } - } - - [Log(false)] - public List<Vendedor> Vendedores - { - get; - set; - } - - [Log(false)] - public Vendedor VendedorPrincipal - { - get; - set; - } - - [Description("VIGÊNCIA INICIAL")] - [Log(true)] - public DateTime Vigencia1 - { - get; - set; - } - - [Description("VIGÊNCIA FINAL")] - [Log(true)] - public DateTime? Vigencia2 - { - get; - set; - } - - [Log(false)] - public VinculoDocumento Vinculo - { - get; - set; - } - - public Documento() - { - } - - public Documento DeepCopy() - { - return JsonConvert.DeserializeObject<Documento>(JsonConvert.SerializeObject(this)); - } - - public List<TupleList> Log(bool restricaoComissao) - { - decimal comissao; - string nome; - string str; - string nome1; - string description; - string description1; - string str1; - string shortDateString; - string shortDateString1; - string shortDateString2; - string nome2; - string description2; - string str2; - string str3; - string shortDateString3; - List<Tuple<string, string, string>> tuples = new List<Tuple<string, string, string>>(); - Gestor.Model.Domain.Seguros.Controle controle = this.Controle; - if (controle != null) - { - Seguradora seguradora = controle.Seguradora; - if (seguradora != null) - { - nome = seguradora.Nome; - } - else - { - nome = null; - } - } - else - { - nome = null; - } - tuples.Add(new Tuple<string, string, string>("SEGURADORA", (string.IsNullOrWhiteSpace(nome) ? "" : this.Controle.Seguradora.Nome.ToUpper()), "")); - Gestor.Model.Domain.Seguros.Controle controle1 = this.Controle; - if (controle1 != null) - { - Ramo ramo = controle1.Ramo; - if (ramo != null) - { - str = ramo.Nome; - } - else - { - str = null; - } - } - else - { - str = null; - } - tuples.Add(new Tuple<string, string, string>("RAMO", (string.IsNullOrWhiteSpace(str) ? "" : this.Controle.Ramo.Nome.ToUpper()), "")); - Gestor.Model.Domain.Seguros.Controle controle2 = this.Controle; - if (controle2 != null) - { - Produto produto = controle2.Produto; - if (produto != null) - { - nome1 = produto.Nome; - } - else - { - nome1 = null; - } - } - else - { - nome1 = null; - } - tuples.Add(new Tuple<string, string, string>("PRODUTO", (string.IsNullOrWhiteSpace(nome1) ? "" : this.Controle.Produto.Nome.ToUpper()), "")); - Gestor.Model.Common.NegocioCorretora? negocioCorretora = this.NegocioCorretora; - if (!negocioCorretora.HasValue) - { - description = ""; - } - else - { - negocioCorretora = this.NegocioCorretora; - if (negocioCorretora.HasValue) - { - description = negocioCorretora.GetValueOrDefault().GetDescription(); - } - else - { - description = null; - } - } - tuples.Add(new Tuple<string, string, string>("NEGÓCIO CORRETORA", description, "")); - tuples.Add(new Tuple<string, string, string>("STATUS DO SEGURO", this.Situacao.GetDescription(), "")); - Gestor.Model.Common.TipoRecebimento? tipoRecebimento = this.TipoRecebimento; - if (!tipoRecebimento.HasValue) - { - description1 = ""; - } - else - { - tipoRecebimento = this.TipoRecebimento; - if (tipoRecebimento.HasValue) - { - description1 = tipoRecebimento.GetValueOrDefault().GetDescription(); - } - else - { - description1 = null; - } - } - tuples.Add(new Tuple<string, string, string>("TIPO DE RECEBIMENTO", description1, "")); - Gestor.Model.Common.TipoEndosso? tipoEndosso = this.TipoEndosso; - if (!tipoEndosso.HasValue) - { - str1 = ""; - } - else - { - tipoEndosso = this.TipoEndosso; - if (tipoEndosso.HasValue) - { - str1 = tipoEndosso.GetValueOrDefault().GetDescription(); - } - else - { - str1 = null; - } - } - tuples.Add(new Tuple<string, string, string>("TIPO ENDOSSO", str1, "")); - tuples.Add(new Tuple<string, string, string>("PROPOSTA", (string.IsNullOrWhiteSpace(this.Proposta) ? "" : this.Proposta.ToUpper()), "")); - tuples.Add(new Tuple<string, string, string>("PROPOSTA ENDOSSO", (string.IsNullOrWhiteSpace(this.PropostaEndosso) ? "" : this.PropostaEndosso.ToUpper()), "")); - tuples.Add(new Tuple<string, string, string>("APÓLICE", (string.IsNullOrWhiteSpace(this.Apolice) ? "" : this.Apolice.ToUpper()), "")); - tuples.Add(new Tuple<string, string, string>("ENDOSSO", (string.IsNullOrWhiteSpace(this.Endosso) ? "" : this.Endosso.ToUpper()), "")); - DateTime vigencia1 = this.Vigencia1; - tuples.Add(new Tuple<string, string, string>("VIGÊNCIA INICIAL", vigencia1.ToShortDateString(), "")); - DateTime? vigencia2 = this.Vigencia2; - if (!vigencia2.HasValue) - { - shortDateString = ""; - } - else - { - vigencia2 = this.Vigencia2; - if (vigencia2.HasValue) - { - shortDateString = vigencia2.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString = null; - } - } - tuples.Add(new Tuple<string, string, string>("VIGÊNCIA FINAL", shortDateString, "")); - vigencia2 = this.Remessa; - if (!vigencia2.HasValue) - { - shortDateString1 = ""; - } - else - { - vigencia2 = this.Remessa; - if (vigencia2.HasValue) - { - shortDateString1 = vigencia2.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString1 = null; - } - } - tuples.Add(new Tuple<string, string, string>("TRANSMISSÃO DA PROPOSTA", shortDateString1, "")); - vigencia2 = this.Emissao; - if (!vigencia2.HasValue) - { - shortDateString2 = ""; - } - else - { - vigencia2 = this.Emissao; - if (vigencia2.HasValue) - { - shortDateString2 = vigencia2.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString2 = null; - } - } - tuples.Add(new Tuple<string, string, string>("EMISSÃO DA APÓLICE", shortDateString2, "")); - Gestor.Model.Domain.Seguros.Controle controle3 = this.Controle; - if (controle3 != null) - { - Seguradora seguradoraAnterior = controle3.SeguradoraAnterior; - if (seguradoraAnterior != null) - { - nome2 = seguradoraAnterior.Nome; - } - else - { - nome2 = null; - } - } - else - { - nome2 = null; - } - tuples.Add(new Tuple<string, string, string>("SEGURADORA ANTERIOR", (string.IsNullOrWhiteSpace(nome2) ? "" : this.Controle.SeguradoraAnterior.Nome.ToUpper()), "")); - tuples.Add(new Tuple<string, string, string>("APÓLICE ANTERIOR", (string.IsNullOrWhiteSpace(this.ApoliceAnterior) ? "" : this.ApoliceAnterior.ToUpper()), "")); - Gestor.Model.Common.FormaPagamento? formaPagamento = this.FormaPagamento; - if (!formaPagamento.HasValue) - { - description2 = ""; - } - else - { - formaPagamento = this.FormaPagamento; - if (formaPagamento.HasValue) - { - description2 = formaPagamento.GetValueOrDefault().GetDescription(); - } - else - { - description2 = null; - } - } - tuples.Add(new Tuple<string, string, string>("FORMA DE PAGAMENTO", description2, "")); - tuples.Add(new Tuple<string, string, string>("PROPOSTA ASSINADA", (this.PropostaAssinada ? "SIM" : "NÃO"), "")); - tuples.Add(new Tuple<string, string, string>("APÓLICE CONFERIDA", (this.ApoliceConferida ? "SIM" : "NÃO"), "")); - tuples.Add(new Tuple<string, string, string>("ADICIONAL DE COMISSÃO", (this.AdicionalComiss ? "SIM" : "NÃO"), "")); - List<Tuple<string, string, string>> tuples1 = tuples; - if (!restricaoComissao) - { - comissao = this.Comissao / new decimal(100); - tuples1.Add(new Tuple<string, string, string>("COMISSÃO", comissao.ToString("P", new CultureInfo("pt-BR", false)), "")); - } - List<Tuple<string, string, string>> tuples2 = tuples1; - List<Tuple<string, string, string>> tuples3 = new List<Tuple<string, string, string>>(); - comissao = this.Comissao / new decimal(100); - tuples3.Add(new Tuple<string, string, string>("COMISSÃO", comissao.ToString("P", new CultureInfo("pt-BR", false)), "")); - comissao = this.PremioLiquido; - tuples3.Add(new Tuple<string, string, string>("PRÊMIO LÍQUIDO", comissao.ToString("C", new CultureInfo("pt-BR", false)), "")); - comissao = this.PremioAdicional; - tuples3.Add(new Tuple<string, string, string>("PRÊMIO ADICIONAL", comissao.ToString("C", new CultureInfo("pt-BR", false)), "")); - comissao = this.Iof; - tuples3.Add(new Tuple<string, string, string>("I.O.F.", comissao.ToString("C", new CultureInfo("pt-BR", false)), "")); - comissao = this.Diferenca; - tuples3.Add(new Tuple<string, string, string>("DIFERENÇA", comissao.ToString("C", new CultureInfo("pt-BR", false)), "")); - comissao = this.PremioTotal; - tuples3.Add(new Tuple<string, string, string>("PRÊMIO TOTAL", comissao.ToString("C", new CultureInfo("pt-BR", false)), "")); - int num = decimal.ToInt32(this.NumeroParcelas); - tuples3.Add(new Tuple<string, string, string>("NÚMERO DE PARCELAS", num.ToString(), "")); - tuples3.Add(new Tuple<string, string, string>("BANCO", (this.Banco == null ? "" : this.Banco.Nome.ToUpper()), "")); - tuples3.Add(new Tuple<string, string, string>("AGÊNCIA", (string.IsNullOrWhiteSpace(this.Agencia) ? "" : this.Agencia.ToUpper()), "")); - tuples3.Add(new Tuple<string, string, string>("CONTA", (string.IsNullOrWhiteSpace(this.Conta) ? "" : this.Conta.ToUpper()), "")); - tuples3.Add(new Tuple<string, string, string>("CARTÃO DE CRÉDITO", (string.IsNullOrWhiteSpace(this.NumeroCartao) ? "" : this.NumeroCartao.ToUpper()), "")); - BandeiraCartao? bandeira = this.Bandeira; - if (!bandeira.HasValue) - { - str2 = ""; - } - else - { - bandeira = this.Bandeira; - if (bandeira.HasValue) - { - str2 = bandeira.GetValueOrDefault().GetDescription(); - } - else - { - str2 = null; - } - } - tuples3.Add(new Tuple<string, string, string>("BANDEIRA", str2, "")); - tuples3.Add(new Tuple<string, string, string>("PROPONENTE", (string.IsNullOrWhiteSpace(this.NomeProponente) ? "" : this.NomeProponente.ToUpper()), "")); - string vencimentoCartao = this.VencimentoCartao; - if (vencimentoCartao != null) - { - str3 = vencimentoCartao.Replace("/", ""); - } - else - { - str3 = null; - } - tuples3.Add(new Tuple<string, string, string>("VENCIMENTO DO CARTÃO", (string.IsNullOrWhiteSpace(str3) ? "" : this.VencimentoCartao.ToUpper()), "")); - tuples3.Add(new Tuple<string, string, string>("PASTA", (string.IsNullOrWhiteSpace(this.Pasta) ? "" : this.Pasta.ToUpper()), "")); - tuples3.Add(new Tuple<string, string, string>("ESTIPULANTE 1", (this.Estipulante1 == null ? "" : this.Estipulante1.Nome.ToUpper()), "")); - tuples3.Add(new Tuple<string, string, string>("ESTIPULANTE 2", (this.Estipulante2 == null ? "" : this.Estipulante2.Nome.ToUpper()), "")); - tuples3.Add(new Tuple<string, string, string>("ESTIPULANTE 3", (this.Estipulante3 == null ? "" : this.Estipulante3.Nome.ToUpper()), "")); - tuples3.Add(new Tuple<string, string, string>("ESTIPULANTE 4", (this.Estipulante4 == null ? "" : this.Estipulante4.Nome.ToUpper()), "")); - tuples3.Add(new Tuple<string, string, string>("ESTIPULANTE 5", (this.Estipulante5 == null ? "" : this.Estipulante5.Nome.ToUpper()), "")); - tuples3.Add(new Tuple<string, string, string>("STATUS", (this.Status == null ? "" : this.Status.Nome.ToUpper()), "")); - vigencia2 = this.DataControle; - if (!vigencia2.HasValue) - { - shortDateString3 = ""; - } - else - { - vigencia2 = this.DataControle; - if (vigencia2.HasValue) - { - shortDateString3 = vigencia2.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString3 = null; - } - } - tuples3.Add(new Tuple<string, string, string>("DATA DE CONTROLE", shortDateString3, "")); - tuples3.Add(new Tuple<string, string, string>("ANOTAÇÕES", (string.IsNullOrWhiteSpace(this.Observacao) ? "" : this.Observacao.ToUpper()), "")); - tuples2.AddRange(tuples3); - return new List<TupleList>() - { - new TupleList() - { - Tuples = new ObservableCollection<Tuple<string, string, string>>(tuples1) - } - }; - } - - private List<KeyValuePair<string, string>> ObrigarValores(bool valores = true) - { - DateTime dateTime; - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (valores) - { - if (this.Comissao <= decimal.Zero) - { - keyValuePairs.AddValue<string, string>("Comissao|COMISSÃO", Messages.Obrigatorio, true); - } - if (this.PremioLiquido == decimal.Zero) - { - keyValuePairs.AddValue<string, string>("PremioLiquido|PRÊMIO LÍQUIDO", Messages.Obrigatorio, true); - } - if (this.PremioTotal == decimal.Zero) - { - keyValuePairs.AddValue<string, string>("PremioTotal|PRÊMIO TOTAL", Messages.Obrigatorio, true); - } - if (this.NumeroParcelas <= decimal.Zero) - { - keyValuePairs.AddValue<string, string>("NumeroParcelas|NÚMERO DE PARCELAS", Messages.Obrigatorio, true); - } - if (!this._vencimentoParcela) - { - if (this.NumeroParcelas > decimal.Zero && this.NumeroParcelas < new decimal(998)) - { - DateTime vigencia1 = this.Vigencia1; - if (this.NumeroParcelas == decimal.One || vigencia1 == DateTime.MinValue) - { - dateTime = vigencia1; - } - else - { - decimal numeroParcelas = this.NumeroParcelas; - dateTime = vigencia1.AddMonths(int.Parse(numeroParcelas.ToString(new CultureInfo("pt-BR"))) - 1); - } - DateTime dateTime1 = dateTime; - DateTime? vigencia2 = this.Vigencia2; - if ((vigencia2.HasValue ? dateTime1 > vigencia2.GetValueOrDefault() : false) && (this.Controle.Ramo == null || this.Controle.Ramo.Id != (long)23)) - { - keyValuePairs.AddValue<string, string>("NumeroParcelas|NÚMERO DE PARCELAS", Messages.VencimentoParcela, true); - } - } - else if (this.NumeroParcelas > new decimal(1000)) - { - keyValuePairs.AddValue<string, string>("NumeroParcelas|NÚMERO DE PARCELAS", "NUMERO DE PARCELAS ESTA NO FORMATO INCORRETO", true); - } - } - } - if (!valores) - { - if (this.PremioLiquido != decimal.Zero) - { - keyValuePairs.AddValue<string, string>("PremioLiquido|PRÊMIO LÍQUIDO", Messages.Invalido, true); - } - if (this.PremioAdicional != decimal.Zero) - { - keyValuePairs.AddValue<string, string>("PremioAdicional|PRÊMIO ADICIONAL", Messages.Invalido, true); - } - if (this.Iof != decimal.Zero) - { - keyValuePairs.AddValue<string, string>("Iof", Messages.Invalido, true); - } - if (this.Diferenca != decimal.Zero) - { - keyValuePairs.AddValue<string, string>("Diferenca|DIFERÊNÇA", Messages.Invalido, true); - } - if (this.PremioTotal != decimal.Zero) - { - keyValuePairs.AddValue<string, string>("PremioTotal|PRÊMIO TOTAL", Messages.Invalido, true); - } - if (this.NumeroParcelas != decimal.Zero) - { - keyValuePairs.AddValue<string, string>("NumeroParcelas|NÚMERO DE PARCELAS", Messages.Invalido, true); - } - } - return keyValuePairs; - } - - protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) - { - PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged; - if (propertyChangedEventHandler == null) - { - return; - } - propertyChangedEventHandler(this, new PropertyChangedEventArgs(propertyName)); - } - - public List<KeyValuePair<string, string>> Validate(bool isEndosso, bool vencimentoParcela) - { - this._isEndosso = isEndosso; - this._vencimentoParcela = vencimentoParcela; - return this.Validate(); - } - - public List<KeyValuePair<string, string>> Validate() - { - Gestor.Model.Common.TipoEndosso? tipoEndosso; - Gestor.Model.Common.TipoEndosso valueOrDefault; - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - keyValuePairs.AddRange(this.Controle.Validate()); - if (!this.NegocioCorretora.HasValue) - { - keyValuePairs.AddValue<string, string>("NegocioCorretora|NEGÓCIO CORRETORA", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(this.Proposta) && !this._isEndosso) - { - keyValuePairs.AddValue<string, string>("Proposta", Messages.Obrigatorio, true); - } - else if (!string.IsNullOrEmpty(this.Proposta) && this.Proposta.Length > 50) - { - keyValuePairs.AddValue<string, string>("Proposta", string.Format(Messages.MaiorQueLimite, 50), true); - } - if (!string.IsNullOrWhiteSpace(this.PropostaEndosso) && this.PropostaEndosso.Length > 50) - { - keyValuePairs.AddValue<string, string>("PropostaEndosso|PROPOSTA DE ENDOSSO", string.Format(Messages.MaiorQueLimite, 50), true); - } - if (!string.IsNullOrWhiteSpace(this.ApoliceAnterior) && this.ApoliceAnterior.Length > 50) - { - keyValuePairs.AddValue<string, string>("ApoliceAnterior|APÓLICE ANTERIOR", string.Format(Messages.MaiorQueLimite, 50), true); - } - if (!string.IsNullOrWhiteSpace(this.Endosso) && this.Endosso.Length > 30) - { - keyValuePairs.AddValue<string, string>("Endosso", string.Format(Messages.MaiorQueLimite, 30), true); - } - if (!string.IsNullOrWhiteSpace(this.Pasta) && this.Pasta.Length > 15) - { - keyValuePairs.AddValue<string, string>("Pasta", string.Format(Messages.MaiorQueLimite, 15), true); - } - if (!string.IsNullOrWhiteSpace(this.Agencia) && this.Agencia.Length > 10) - { - keyValuePairs.AddValue<string, string>("Agencia|AGÊNCIA", string.Format(Messages.MaiorQueLimite, 10), true); - } - if (!string.IsNullOrWhiteSpace(this.Conta) && this.Conta.Length > 15) - { - keyValuePairs.AddValue<string, string>("Conta", string.Format(Messages.MaiorQueLimite, 15), true); - } - if (!string.IsNullOrWhiteSpace(this.NumeroCartao) && this.NumeroCartao.Length > 20) - { - keyValuePairs.AddValue<string, string>("NumeroCartao|NÚMERO DO CARTÃO", string.Format(Messages.MaiorQueLimite, 20), true); - } - if (!string.IsNullOrWhiteSpace(this.VencimentoCartao) && this.VencimentoCartao.Length > 5) - { - keyValuePairs.AddValue<string, string>("VencimentoCartao|VENCIMENTO DO CARTÃO", string.Format(Messages.MaiorQueLimite, 5), true); - } - if (!string.IsNullOrWhiteSpace(this.NomeProponente) && this.NomeProponente.Length > 100) - { - keyValuePairs.AddValue<string, string>("NomeProponente|PROPONENTE", string.Format(Messages.MaiorQueLimite, 100), true); - } - DateTime? emissao = this.Emissao; - if (emissao.HasValue) - { - emissao = this.Emissao; - if (DateTime.Compare(emissao.Value, new DateTime(1753, 1, 1)) >= 0) - { - emissao = this.Emissao; - if (DateTime.Compare(emissao.Value, new DateTime(9999, 12, 31)) <= 0) - { - goto Label0; - } - } - keyValuePairs.AddValue<string, string>(string.Concat("Emissao|", (this._isEndosso ? "EMISSÃO DO ENDOSSO" : "EMISSÃO DA APÓLICE")), string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - Label0: - emissao = this.Remessa; - if (emissao.HasValue) - { - emissao = this.Remessa; - if (DateTime.Compare(emissao.Value, new DateTime(1753, 1, 1)) >= 0) - { - emissao = this.Remessa; - if (DateTime.Compare(emissao.Value, new DateTime(9999, 12, 31)) <= 0) - { - goto Label1; - } - } - keyValuePairs.AddValue<string, string>(string.Concat("Remessa|", (this._isEndosso ? "TRANSMISSÃO DA PROPOSTA DE ENDOSSO" : "TRANSMISSÃO DA PROPOSTA")), string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - Label1: - DateTime vigencia1 = this.Vigencia1; - if (DateTime.Compare(this.Vigencia1, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Vigencia1, new DateTime(9999, 12, 31)) > 0) - { - keyValuePairs.AddValue<string, string>("Vigencia1|VIGÊNCIA INICIAL", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - emissao = this.Vigencia2; - if (emissao.HasValue) - { - emissao = this.Vigencia2; - if (DateTime.Compare(emissao.Value, new DateTime(1753, 1, 1)) >= 0) - { - emissao = this.Vigencia2; - if (DateTime.Compare(emissao.Value, new DateTime(9999, 12, 31)) <= 0) - { - goto Label2; - } - } - keyValuePairs.AddValue<string, string>("Vigencia2|VIGÊNCIA FINAL", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - Label2: - DateTime dateTime = this.Vigencia1; - emissao = this.Vigencia2; - if (emissao.HasValue) - { - DateTime vigencia11 = this.Vigencia1; - emissao = this.Vigencia2; - if ((emissao.HasValue ? vigencia11 > emissao.GetValueOrDefault() : false)) - { - keyValuePairs.AddValue<string, string>("Vigencia2|VIGÊNCIA FINAL", "A DATA DE VIGÊNCIA FINAL NÃO PODE SER ANTERIOR A DATA DE VIGÊNCIA INCIAL", true); - } - } - if (this.Tipo == 0) - { - if (string.IsNullOrWhiteSpace(this.Apolice)) - { - emissao = this.Emissao; - if (emissao.HasValue) - { - keyValuePairs.AddValue<string, string>("Apolice|APÓLICE", Messages.Obrigatorio, true); - } - } - if (!string.IsNullOrWhiteSpace(this.Apolice)) - { - emissao = this.Emissao; - if (!emissao.HasValue) - { - keyValuePairs.AddValue<string, string>(string.Concat("Emissao|", (this._isEndosso ? "EMISSÃO DO ENDOSSO" : "EMISSÃO DA APÓLICE")), Messages.Obrigatorio, true); - } - } - if (!string.IsNullOrWhiteSpace(this.Apolice) && this.Apolice.Length > 50) - { - keyValuePairs.AddValue<string, string>("Apolice|APÓLICE", string.Format(Messages.MaiorQueLimite, 50), true); - } - } - if (this.Tipo > 0) - { - if (string.IsNullOrWhiteSpace(this.PropostaEndosso)) - { - keyValuePairs.AddValue<string, string>("PropostaEndosso|PROPOSTA DE ENDOSSO", Messages.Obrigatorio, true); - } - else if (this.PropostaEndosso.Length > 30) - { - keyValuePairs.AddValue<string, string>("PropostaEndosso|PROPOSTA DE ENDOSSO", string.Format(Messages.MaiorQueLimite, 30), true); - } - if (!string.IsNullOrWhiteSpace(this.Endosso)) - { - if (this.Endosso.Length > 30) - { - keyValuePairs.AddValue<string, string>("Endosso", string.Format(Messages.MaiorQueLimite, 30), true); - } - emissao = this.Emissao; - if (!emissao.HasValue && this.Tipo > 0) - { - keyValuePairs.AddValue<string, string>(string.Concat("Emissao|", (this._isEndosso ? "EMISSÃO DO ENDOSSO" : "EMISSÃO DA APÓLICE")), Messages.Obrigatorio, true); - } - } - else - { - emissao = this.Emissao; - if (emissao.HasValue) - { - keyValuePairs.AddValue<string, string>("Endosso", Messages.Obrigatorio, true); - } - } - } - if (this.Tipo > 0) - { - tipoEndosso = this.TipoEndosso; - if (!tipoEndosso.HasValue) - { - keyValuePairs.AddValue<string, string>("TipoEndosso|TIPO DE ENDOSSO", Messages.Obrigatorio, true); - } - } - if (this.TipoRecebimento.GetValueOrDefault() == Gestor.Model.Common.TipoRecebimento.Parcela) - { - emissao = this.Vigencia2; - if (!emissao.HasValue) - { - keyValuePairs.AddValue<string, string>("Vigencia2|VIGÊNCIA FINAL", Messages.Obrigatorio, true); - } - } - if (this.TipoRecebimento.GetValueOrDefault() == Gestor.Model.Common.TipoRecebimento.Parcela && this.Tipo == 0) - { - keyValuePairs.AddRange(this.ObrigarValores(true)); - } - if (this.TipoRecebimento.GetValueOrDefault() == Gestor.Model.Common.TipoRecebimento.Fatura && this.Tipo == 0) - { - keyValuePairs.AddRange(this.ObrigarValores(false)); - } - tipoEndosso = this.TipoEndosso; - if (tipoEndosso.GetValueOrDefault() == Gestor.Model.Common.TipoEndosso.Cancelamento && (this.PremioLiquido != decimal.Zero || this.Comissao != decimal.Zero) && this.NumeroParcelas == decimal.Zero) - { - keyValuePairs.AddValue<string, string>("NumeroParcelas|NÚMERO DE PARCELAS", Messages.Obrigatorio, true); - } - tipoEndosso = this.TipoEndosso; - if (tipoEndosso.GetValueOrDefault() == Gestor.Model.Common.TipoEndosso.Cancelamento && (this.PremioLiquido != new decimal(0, 0, 0, false, 1) || this.NumeroParcelas != decimal.Zero)) - { - if (this.Comissao == decimal.Zero) - { - keyValuePairs.AddValue<string, string>("Comissao|COMISSÃO", Messages.Obrigatorio, true); - } - if (this.NumeroParcelas == decimal.Zero) - { - keyValuePairs.AddValue<string, string>("NumeroParcelas|NÚMERO DE PARCELAS", Messages.Obrigatorio, true); - } - if (this.PremioLiquido == decimal.Zero) - { - keyValuePairs.AddValue<string, string>("PremioLiquido|PRÊMIO LÍQUID", Messages.Obrigatorio, true); - } - } - long num = 10000000000L; - if (this.PremioTotal > num) - { - keyValuePairs.AddValue<string, string>("PremioTotal|PRÊMIO TOTAL", Messages.Invalido, true); - } - if (this.PremioLiquido > num) - { - keyValuePairs.AddValue<string, string>("PremioLiquido|PRÊMIO LÍQUIDO", Messages.Invalido, true); - } - if (this.NumeroParcelas > new decimal(1000)) - { - keyValuePairs.AddValue<string, string>("NumeroParcelas|NÚMERO DE PARCELAS", "NUMERO DE PARCELAS ESTA NO FORMATO INCORRETO", true); - } - if (this.Tipo > 0) - { - tipoEndosso = this.TipoEndosso; - if (tipoEndosso.HasValue) - { - valueOrDefault = tipoEndosso.GetValueOrDefault(); - if (valueOrDefault != Gestor.Model.Common.TipoEndosso.ComMovimento) - { - goto Label4; - } - keyValuePairs.AddRange(this.ObrigarValores(true)); - return keyValuePairs; - } - Label5: - if (this.PremioTotal == decimal.Zero && this.Comissao == decimal.Zero) - { - return keyValuePairs; - } - keyValuePairs.AddRange(this.ObrigarValores(true)); - } - return keyValuePairs; - Label4: - if ((int)valueOrDefault - (int)Gestor.Model.Common.TipoEndosso.SemMovimento <= (int)Gestor.Model.Common.TipoEndosso.SemMovimento) - { - return keyValuePairs; - } - else - { - goto Label5; - } - } - - public List<KeyValuePair<string, string>> ValidateEndossar() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Proposta)) - { - keyValuePairs.AddValue<string, string>("Proposta", Messages.Obrigatorio, true); - } - if (this.Emissao.HasValue && (DateTime.Compare(this.Emissao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Emissao.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("Emissao|EMISSÃO DA APÓLICE", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.Remessa.HasValue && (DateTime.Compare(this.Remessa.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Remessa.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("Remessa|TRANSMISSÃO DA PROPOSTA", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (string.IsNullOrWhiteSpace(this.Apolice) && this.Emissao.HasValue) - { - keyValuePairs.AddValue<string, string>("Apolice|APÓLICE", Messages.Obrigatorio, true); - } - if (!string.IsNullOrWhiteSpace(this.Apolice) && !this.Emissao.HasValue) - { - keyValuePairs.AddValue<string, string>(string.Concat("Emissao|", (this._isEndosso ? "EMISSÃO DO ENDOSSO" : "EMISSÃO DA APÓLICE")), Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(this.Apolice) && !this.Emissao.HasValue) - { - keyValuePairs.AddValue<string, string>("Apolice|EMISSÃO DA APÓLICE", "NÃO É POSSÍVEL ENDOSSAR UM DOCUMENTO SEM EMISSÃO DE APÓLICE", true); - } - return keyValuePairs; - } - - public event PropertyChangedEventHandler PropertyChanged; - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Estipulante.cs b/Gestor.Model/Model.Domain.Seguros/Estipulante.cs deleted file mode 100644 index 76976ea..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Estipulante.cs +++ /dev/null @@ -1,373 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using System.Threading; - -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; - - [Log(true)] - public bool Ativo - { - get; - set; - } - - [Log(true)] - public string Documento - { - get - { - string str = this._documento; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._documento = value; - } - } - - [Log(true)] - public string Email - { - get - { - string str = this._email; - if (str == null) - { - return null; - } - return str.ToLower().Trim(); - } - set - { - this._email = value; - } - } - - public long IdEmpresa - { - get; - set; - } - - [Log(true)] - [Name(true)] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - [Log(true)] - public string Observacao - { - get - { - string str = this._observacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._observacao = value; - } - } - - [Description("PREFIXO")] - [Log(true)] - public string PrimeiroPrefixo - { - get - { - string str = this._primeiroPrefixo; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._primeiroPrefixo = value; - } - } - - [Description("TELEFONE")] - [Log(true)] - public string PrimeiroTelefone - { - get - { - string str = this._primeiroTelefone; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._primeiroTelefone = value; - } - } - - [Description("TIPO TELEFONE")] - [Log(true)] - public TipoTelefone? PrimeiroTipo - { - get; - set; - } - - [Description("PREFIXO")] - [Log(true)] - public string SegundoPrefixo - { - get - { - string str = this._segundoPrefixo; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._segundoPrefixo = value; - } - } - - [Description("TELEFONE")] - [Log(true)] - public string SegundoTelefone - { - get - { - string str = this._segundoTelefone; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._segundoTelefone = value; - } - } - - [Description("TIPO TELEFONE")] - [Log(true)] - public TipoTelefone? SegundoTipo - { - get; - set; - } - - public bool Selecionado - { - get - { - return this._selecionado; - } - set - { - if (value == this._selecionado) - { - return; - } - this._selecionado = value; - this.OnPropertyChanged("Selecionado"); - } - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Estipulante estipulante = this; - return new Func<List<KeyValuePair<string, string>>>(estipulante.Validate); - } - } - - public Estipulante() - { - } - - public List<TupleList> Log() - { - string description; - string str; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("NOME", (string.IsNullOrWhiteSpace(this.Nome) ? "" : this.Nome), ""), - new Tuple<string, string, string>("CPF", (string.IsNullOrWhiteSpace(this.Documento) ? "" : this.Documento), ""), - new Tuple<string, string, string>("ATIVO", (this.Ativo ? "SIM" : "NÃO"), "") - }; - TipoTelefone? primeiroTipo = this.PrimeiroTipo; - if (!primeiroTipo.HasValue) - { - description = ""; - } - else - { - primeiroTipo = this.PrimeiroTipo; - if (primeiroTipo.HasValue) - { - description = primeiroTipo.GetValueOrDefault().GetDescription(); - } - else - { - description = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("PRIMEIRO TIPO", description, "")); - observableCollection.Add(new Tuple<string, string, string>("PRIMEIRO PREFIXO", (string.IsNullOrWhiteSpace(this.PrimeiroPrefixo) ? "" : this.PrimeiroPrefixo), "")); - observableCollection.Add(new Tuple<string, string, string>("PRIMEIRO TELEFONE", (string.IsNullOrWhiteSpace(this.PrimeiroTelefone) ? "" : this.PrimeiroTelefone), "")); - primeiroTipo = this.SegundoTipo; - if (!primeiroTipo.HasValue) - { - str = ""; - } - else - { - primeiroTipo = this.SegundoTipo; - if (primeiroTipo.HasValue) - { - str = primeiroTipo.GetValueOrDefault().GetDescription(); - } - else - { - str = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("SEGUNDO TIPO", str, "")); - observableCollection.Add(new Tuple<string, string, string>("SEGUNDO PREFIXO", (string.IsNullOrWhiteSpace(this.SegundoPrefixo) ? "" : this.SegundoPrefixo), "")); - observableCollection.Add(new Tuple<string, string, string>("SEGUNDO TELEFONE", (string.IsNullOrWhiteSpace(this.SegundoTelefone) ? "" : this.SegundoTelefone), "")); - observableCollection.Add(new Tuple<string, string, string>("E-MAIL", (string.IsNullOrWhiteSpace(this.Email) ? "" : this.Email), "")); - observableCollection.Add(new Tuple<string, string, string>("CEP", (string.IsNullOrWhiteSpace(base.Cep) ? "" : base.Cep), "")); - observableCollection.Add(new Tuple<string, string, string>("ENDEREÇO", (string.IsNullOrWhiteSpace(base.Endereco) ? "" : base.Endereco), "")); - observableCollection.Add(new Tuple<string, string, string>("NÚMERO", (string.IsNullOrWhiteSpace(base.Numero) ? "" : base.Numero), "")); - observableCollection.Add(new Tuple<string, string, string>("COMPLEMENTO", (string.IsNullOrWhiteSpace(base.Complemento) ? "" : base.Complemento), "")); - observableCollection.Add(new Tuple<string, string, string>("BAIRRO", (string.IsNullOrWhiteSpace(base.Bairro) ? "" : base.Bairro), "")); - observableCollection.Add(new Tuple<string, string, string>("CIDADE", (string.IsNullOrWhiteSpace(base.Cidade) ? "" : base.Cidade), "")); - observableCollection.Add(new Tuple<string, string, string>("ESTADO", (string.IsNullOrWhiteSpace(base.Estado) ? "" : base.Estado), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - return tupleLists; - } - - protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) - { - PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged; - if (propertyChangedEventHandler == null) - { - return; - } - propertyChangedEventHandler(this, new PropertyChangedEventArgs(propertyName)); - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrEmpty(this.Nome)) - { - keyValuePairs.AddValue<string, string>("Nome", Messages.Obrigatorio, true); - } - else if (this.Nome.Length > 100) - { - keyValuePairs.AddValue<string, string>("Nome", string.Format(Messages.MaiorQueLimite, 100), true); - } - if (!string.IsNullOrEmpty(this.Documento) && !this.Documento.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("Documento", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.PrimeiroPrefixo) && !this.PrimeiroPrefixo.ValidacaoPrefixo()) - { - keyValuePairs.AddValue<string, string>("PrimeiroPrefixo|PRIMEIRO DDD", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.PrimeiroTelefone) && !this.PrimeiroTelefone.ValidacaoTelefone()) - { - keyValuePairs.AddValue<string, string>("PrimeiroTelefone|PRIMEIRO TELEFONE", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.SegundoPrefixo) && !this.SegundoPrefixo.ValidacaoPrefixo()) - { - keyValuePairs.AddValue<string, string>("SegundoPrefixo|SEGUNDO DDD", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.SegundoTelefone) && !this.SegundoTelefone.ValidacaoTelefone()) - { - keyValuePairs.AddValue<string, string>("SegundoTelefone|SEGUNDO TELEFONE", Messages.Invalido, true); - } - if (!string.IsNullOrEmpty(this.Email) && this.Email.Length > 100) - { - keyValuePairs.AddValue<string, string>("Email|E-MAIL", string.Format(Messages.MaiorQueLimite, 100), true); - } - if (!string.IsNullOrEmpty(this.Email) && !this.Email.ValidacaoEmail()) - { - keyValuePairs.AddValue<string, string>("Email|E-MAIL", Messages.Invalido, true); - } - if (!string.IsNullOrEmpty(base.Cep) && !base.Cep.ValidacaoCep()) - { - keyValuePairs.AddValue<string, string>("Cep|CEP", Messages.Invalido, true); - } - if (!string.IsNullOrEmpty(base.Estado) && !base.Estado.ValidacaoEstado()) - { - keyValuePairs.AddValue<string, string>("Estado|ESTADO", Messages.Invalido, true); - } - return keyValuePairs; - } - - public event PropertyChangedEventHandler PropertyChanged; - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Expedicao.cs b/Gestor.Model/Model.Domain.Seguros/Expedicao.cs deleted file mode 100644 index 5dbd8f3..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Expedicao.cs +++ /dev/null @@ -1,94 +0,0 @@ -using Gestor.Model.Domain.Generic; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class Expedicao : DomainBase - { - public Gestor.Model.Domain.Seguros.Documento Apolice - { - get; - set; - } - - public DateTime? DataAlteracao - { - get; - set; - } - - public DateTime? DataCriacao - { - get; - set; - } - - public DateTime? DataEnvio - { - get; - set; - } - - public DateTime? DataRecebimento - { - get; - set; - } - - public string Destino - { - get; - set; - } - - public string Documento - { - get; - set; - } - - public string Responsavel - { - get; - set; - } - - public long? UsuarioAlteracao - { - get; - set; - } - - public long? UsuarioCriacao - { - get; - set; - } - - public Expedicao() - { - } - - public List<TupleList> Log() - { - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("DOCUMENTO", this.Documento, ""), - new Tuple<string, string, string>("DESTINO", this.Destino, "") - }; - DateTime? dataEnvio = this.DataEnvio; - observableCollection.Add(new Tuple<string, string, string>("DATA ENVIO", dataEnvio.ToString(), "")); - dataEnvio = this.DataRecebimento; - observableCollection.Add(new Tuple<string, string, string>("DATA RECEBIMENTO", dataEnvio.ToString(), "")); - observableCollection.Add(new Tuple<string, string, string>("RESPONSÁVEL", this.Responsavel, "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - return tupleLists; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Extrato.cs b/Gestor.Model/Model.Domain.Seguros/Extrato.cs deleted file mode 100644 index fcf3ccd..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Extrato.cs +++ /dev/null @@ -1,177 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class Extrato : DomainBase, IDomain - { - private string _numero; - - private string _historico; - - private string _observacao; - - public decimal? Bruto - { - get; - set; - } - - public bool Completo - { - get; - set; - } - - public DateTime? Data - { - get; - set; - } - - public DateTime? DataCredito - { - get; - set; - } - - public string Historico - { - get - { - string str = this._historico; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._historico = value; - } - } - - public long IdEmpresa - { - get; - set; - } - - public virtual long IdUsuario - { - get; - set; - } - - public decimal? Ir - { - get; - set; - } - - public decimal? Iss - { - get; - set; - } - - public decimal? Liquido - { - get; - set; - } - - public string Numero - { - get - { - string str = this._numero; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._numero = value; - } - } - - public string Observacao - { - get - { - string str = this._observacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._observacao = value; - } - } - - public decimal? Outro - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Seguradora Seguradora - { - get; - set; - } - - public bool Selecionado - { - get; - set; - } - - public StatusExtrato Status - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Extrato extrato = this; - return new Func<List<KeyValuePair<string, string>>>(extrato.Validate); - } - } - - public Extrato() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (!string.IsNullOrWhiteSpace(this.Numero) && this.Numero.Length > 50) - { - keyValuePairs.AddValue<string, string>("Numero", string.Format(Messages.MaiorQueLimite, 50), true); - } - if (this.Data.HasValue && (DateTime.Compare(this.Data.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Data.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("Data", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Fabricante.cs b/Gestor.Model/Model.Domain.Seguros/Fabricante.cs deleted file mode 100644 index b20207d..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Fabricante.cs +++ /dev/null @@ -1,62 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class Fabricante : IDomain - { - private string _descricao; - - public string Descricao - { - get - { - string str = this._descricao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._descricao = value; - } - } - - public int Id - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Fabricante fabricante = this; - return new Func<List<KeyValuePair<string, string>>>(fabricante.Validate); - } - } - - public Fabricante() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (!string.IsNullOrWhiteSpace(this.Descricao) && this.Descricao.Length > 150) - { - keyValuePairs.AddValue<string, string>("Descricao", string.Format(Messages.MaiorQueLimite, 150), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Granizo.cs b/Gestor.Model/Model.Domain.Seguros/Granizo.cs deleted file mode 100644 index 8f6036c..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Granizo.cs +++ /dev/null @@ -1,247 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Globalization; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class Granizo : EnderecoBase, IDomain - { - private string _cultura; - - private string _sitio; - - private string _observacao; - - public string Area - { - get; - set; - } - - public string Cultura - { - get - { - string str = this._cultura; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._cultura = value; - } - } - - public Gestor.Model.Domain.Seguros.Item Item - { - get; - set; - } - - public string Observacao - { - get - { - string str = this._observacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._observacao = value; - } - } - - public string Sitio - { - get - { - string str = this._sitio; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._sitio = value; - } - } - - public decimal? SubsidioEstadual - { - get; - set; - } - - public decimal? SubsidioFederal - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Granizo granizo = this; - return new Func<List<KeyValuePair<string, string>>>(granizo.Validate); - } - } - - public Granizo() - { - } - - public static List<TupleList> Log(Gestor.Model.Domain.Seguros.Item item) - { - decimal valueOrDefault; - string str; - string str1; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = 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()), "") - }; - decimal? subsidioFederal = item.Granizo.SubsidioFederal; - if (!subsidioFederal.HasValue) - { - str = ""; - } - else - { - subsidioFederal = item.Granizo.SubsidioFederal; - if (subsidioFederal.HasValue) - { - valueOrDefault = subsidioFederal.GetValueOrDefault(); - str = valueOrDefault.ToString("C", new CultureInfo("pt-BR", false)); - } - else - { - str = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("SUBSÍDIO FEDERAL", str, "")); - subsidioFederal = item.Granizo.SubsidioEstadual; - if (!subsidioFederal.HasValue) - { - str1 = ""; - } - else - { - subsidioFederal = item.Granizo.SubsidioEstadual; - if (subsidioFederal.HasValue) - { - valueOrDefault = subsidioFederal.GetValueOrDefault(); - str1 = valueOrDefault.ToString("C", new CultureInfo("pt-BR", false)); - } - else - { - str1 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("SUBSÍDIO ESTADUAL", str1, "")); - observableCollection.Add(new Tuple<string, string, string>("OBSERVAÇÕES", (string.IsNullOrWhiteSpace(item.Granizo.Observacao) ? "" : item.Granizo.Observacao.ToUpper()), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - List<TupleList> tupleLists1 = tupleLists; - ObservableCollection<Tuple<string, string, string>> observableCollection1 = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("COBERTURAS$", "", "") - }; - foreach (Cobertura cobertura in item.Coberturas) - { - observableCollection1.Add(new Tuple<string, string, string>(string.Format(" COBERTURA {0}$", item.Coberturas.IndexOf(cobertura) + 1), "", "")); - observableCollection1.Add(new Tuple<string, string, string>(" OBSERVAÇÃO", (string.IsNullOrWhiteSpace(cobertura.Observacao) ? "" : cobertura.Observacao.ToUpper()), "")); - valueOrDefault = cobertura.Premio; - observableCollection1.Add(new Tuple<string, string, string>(" PRÊMIO", valueOrDefault.ToString("C", new CultureInfo("pt-BR", false)), "")); - valueOrDefault = cobertura.Franquia; - observableCollection1.Add(new Tuple<string, string, string>(" FRANQUIA", valueOrDefault.ToString("C", new CultureInfo("pt-BR", false)), "")); - valueOrDefault = cobertura.Lmi; - observableCollection1.Add(new Tuple<string, string, string>(" L.M.I.", valueOrDefault.ToString("C", new CultureInfo("pt-BR", false)), "")); - } - tupleLists1.Add(new TupleList() - { - Tuples = observableCollection1 - }); - return tupleLists1; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(base.Cep)) - { - keyValuePairs.AddValue<string, string>("Cep", Messages.Obrigatorio, true); - } - else if (!base.Cep.ValidacaoCep()) - { - keyValuePairs.AddValue<string, string>("Cep", Messages.Invalido, true); - } - if (string.IsNullOrWhiteSpace(this.Cultura)) - { - keyValuePairs.AddValue<string, string>("Cultura", Messages.Obrigatorio, true); - } - if (!string.IsNullOrWhiteSpace(this.Cultura) && this.Cultura.Length > 60) - { - keyValuePairs.AddValue<string, string>("Cultura", string.Format(Messages.MaiorQueLimite, 60), true); - } - if (string.IsNullOrWhiteSpace(this.Sitio)) - { - keyValuePairs.AddValue<string, string>("Sitio", Messages.Obrigatorio, true); - } - if (!string.IsNullOrWhiteSpace(this.Sitio) && this.Sitio.Length > 100) - { - keyValuePairs.AddValue<string, string>("Sitio", string.Format(Messages.MaiorQueLimite, 100), true); - } - if (string.IsNullOrWhiteSpace(base.Endereco)) - { - keyValuePairs.AddValue<string, string>("Endereco", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(base.Numero)) - { - keyValuePairs.AddValue<string, string>("Numero", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(base.Bairro)) - { - keyValuePairs.AddValue<string, string>("Bairro", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(base.Cidade)) - { - keyValuePairs.AddValue<string, string>("Cidade", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(base.Estado)) - { - keyValuePairs.AddValue<string, string>("Estado", Messages.Obrigatorio, true); - } - else if (!base.Estado.ValidacaoEstado()) - { - keyValuePairs.AddValue<string, string>("Estado", Messages.Invalido, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Item.cs b/Gestor.Model/Model.Domain.Seguros/Item.cs deleted file mode 100644 index 7adcea9..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Item.cs +++ /dev/null @@ -1,505 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using System.Threading; - -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 Gestor.Model.Domain.Seguros.Aeronautico Aeronautico - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Auto Auto - { - get; - set; - } - - public bool Cancelado - { - get; - set; - } - - public IList<Cobertura> Coberturas - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Consorcio Consorcio - { - get; - set; - } - - public string Descricao - { - get - { - string str = this._descricao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._descricao = value; - } - } - - public Gestor.Model.Domain.Seguros.Documento Documento - { - get; - set; - } - - public long? Endosso - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Granizo Granizo - { - get; - set; - } - - public long? IdDocumentoCancelado - { - get; - set; - } - - public string Observacao - { - get - { - string str = this._observacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._observacao = value; - } - } - - public int? Ordem - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Patrimonial Patrimonial - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.RiscosDiversos RiscosDiversos - { - get; - set; - } - - public bool Selecionado - { - get - { - return this._selecionado; - } - set - { - if (value == this._selecionado) - { - return; - } - this._selecionado = value; - this.OnPropertyChanged("Selecionado"); - } - } - - public bool Sinistrado - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Sinistro Sinistro - { - get; - set; - } - - public IList<ControleSinistro> Sinistros - { - get; - set; - } - - public string Status - { - get - { - string str = this._status; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._status = value; - } - } - - public string StatusInclusao - { - get - { - string str = this._statusInclusao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._statusInclusao = value; - } - } - - public long? Substituicao - { - get; - set; - } - - public long? Substituido - { - get; - set; - } - - public Gestor.Model.Common.TipoEndosso? TipoEndosso - { - get; - set; - } - - public IList<TitularesVida> Titulares - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Item item = this; - return new Func<List<KeyValuePair<string, string>>>(item.Validate); - } - } - - public Gestor.Model.Domain.Seguros.Vida Vida - { - get; - set; - } - - public Item() - { - } - - protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) - { - PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged; - if (propertyChangedEventHandler == null) - { - return; - } - propertyChangedEventHandler(this, new PropertyChangedEventArgs(propertyName)); - } - - public List<KeyValuePair<string, string>> Validate(bool config, bool fabricanteBranco = false) - { - this._config = config; - this._fabricanteBranco = fabricanteBranco; - return this.Validate(); - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - int? ordem = this.Ordem; - if (ordem.HasValue) - { - ordem = this.Ordem; - if (!(ordem.GetValueOrDefault() == 0 & ordem.HasValue)) - { - goto Label0; - } - } - keyValuePairs.AddValue<string, string>("Ordem", Messages.Invalido, true); - if (string.IsNullOrWhiteSpace(this.Descricao)) - { - keyValuePairs.AddValue<string, string>("Descricao", Messages.Obrigatorio, true); - } - else if (this.Descricao.Length > 250) - { - keyValuePairs.AddValue<string, string>("Descricao", string.Format(Messages.MaiorQueLimite, 250), true); - } - if (this.Documento == null) - { - return keyValuePairs; - } - long id = this.Documento.Controle.Ramo.Id; - if (id > (long)38) - { - if (id == (long)47 || id == (long)53 || id == (long)66) - { - goto Label1; - } - goto Label2; - } - else - { - long num = id - (long)1; - if (num <= (long)19) - { - switch ((uint)num) - { - case 0: - case 1: - case 2: - case 14: - case 17: - { - goto Label4; - } - case 3: - case 7: - case 10: - case 11: - case 13: - case 15: - case 16: - case 18: - { - goto Label2; - } - case 4: - { - goto Label5; - } - case 5: - case 6: - case 8: - case 9: - { - goto Label1; - } - case 12: - { - if (this.Aeronautico != null) - { - keyValuePairs.AddRange(this.Aeronautico.Validate()); - return keyValuePairs; - } - else - { - keyValuePairs.AddValue<string, string>("Aeronautico", Messages.Obrigatorio, true); - return keyValuePairs; - } - } - case 19: - { - if (this.Granizo != null) - { - keyValuePairs.AddRange(this.Granizo.Validate()); - return keyValuePairs; - } - else - { - keyValuePairs.AddValue<string, string>("Granizo", Messages.Obrigatorio, true); - return keyValuePairs; - } - } - } - } - else - { - } - long num1 = id - (long)30; - if (num1 <= (long)8) - { - switch ((uint)num1) - { - case 0: - { - break; - } - case 1: - { - if (this.RiscosDiversos != null) - { - keyValuePairs.AddRange(this.RiscosDiversos.Validate()); - } - else - { - keyValuePairs.AddValue<string, string>("RiscosDiversos", Messages.Obrigatorio, true); - } - if (this.Titulares == null || this.Titulares.Count <= 0) - { - return keyValuePairs; - } - using (IEnumerator<TitularesVida> enumerator = this.Titulares.GetEnumerator()) - { - while (enumerator.MoveNext()) - { - keyValuePairs.AddRange(enumerator.Current.Validate()); - } - return keyValuePairs; - } - break; - } - case 6: - { - if (this.Consorcio != null) - { - keyValuePairs.AddRange(this.Consorcio.Validate()); - return keyValuePairs; - } - else - { - keyValuePairs.AddValue<string, string>("Consorcio", Messages.Obrigatorio, true); - return keyValuePairs; - } - } - case 7: - { - goto Label5; - } - case 8: - { - if (this.Patrimonial != null) - { - keyValuePairs.AddRange(this.Patrimonial.ValidateGarantia()); - return keyValuePairs; - } - else - { - keyValuePairs.AddValue<string, string>("Patrimonial", Messages.Obrigatorio, true); - return keyValuePairs; - } - } - default: - { - goto Label2; - } - } - } - else - { - goto Label2; - } - Label4: - if (this.Patrimonial != null) - { - keyValuePairs.AddRange(this.Patrimonial.Validate()); - } - else - { - keyValuePairs.AddValue<string, string>("Patrimonial", Messages.Obrigatorio, true); - } - } - return keyValuePairs; - Label1: - if (this.Vida != null) - { - keyValuePairs.AddRange(this.Vida.Validate()); - } - else - { - keyValuePairs.AddValue<string, string>("Vida", Messages.Obrigatorio, true); - } - if (this.Titulares != null && this.Titulares.Count > 0 && this.Documento.Controle.Ramo.Id != (long)6) - { - using (enumerator = this.Titulares.GetEnumerator()) - { - while (enumerator.MoveNext()) - { - keyValuePairs.AddRange(enumerator.Current.Validate()); - } - return keyValuePairs; - } - } - else - { - return keyValuePairs; - } - Label2: - if (this.RiscosDiversos != null) - { - keyValuePairs.AddRange(this.RiscosDiversos.Validate()); - return keyValuePairs; - } - else - { - keyValuePairs.AddValue<string, string>("RiscosDiversos", Messages.Obrigatorio, true); - return keyValuePairs; - } - Label5: - if (this.Auto != null) - { - keyValuePairs.AddRange(this.Auto.Validate(this._config, this._fabricanteBranco)); - return keyValuePairs; - } - else - { - keyValuePairs.AddValue<string, string>("Auto", Messages.Obrigatorio, true); - return keyValuePairs; - } - } - - public event PropertyChangedEventHandler PropertyChanged; - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/MaisContato.cs b/Gestor.Model/Model.Domain.Seguros/MaisContato.cs deleted file mode 100644 index 6266547..0000000 --- a/Gestor.Model/Model.Domain.Seguros/MaisContato.cs +++ /dev/null @@ -1,340 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class MaisContato : DomainBase, IDomain - { - private string _nome; - - private string _documento; - - private string _identidade; - - private string _prefixo; - - private string _telefone; - - private string _email; - - private string _habilitacao; - - private string _banco; - - private string _agencia; - - private string _conta; - - [Log(true)] - public string Agencia - { - get - { - string str = this._agencia; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._agencia = value; - } - } - - public string Banco - { - get - { - string str = this._banco; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._banco = value; - } - } - - public Gestor.Model.Domain.Seguros.Cliente Cliente - { - get; - set; - } - - [Log(true)] - public string Conta - { - get - { - string str = this._conta; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._conta = value; - } - } - - [Log(true)] - public string Documento - { - get - { - string str = this._documento; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._documento = value; - } - } - - [Log(true)] - public string Email - { - get - { - string str = this._email; - if (str == null) - { - return null; - } - return str.ToLower().Trim(); - } - set - { - this._email = value; - } - } - - public bool Excluido - { - get; - set; - } - - [Log(true)] - public DateTime? Expedicao - { - get; - set; - } - - [Log(true)] - public string Habilitacao - { - get - { - string str = this._habilitacao; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._habilitacao = value; - } - } - - [Log(true)] - public string Identidade - { - get - { - string str = this._identidade; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._identidade = value; - } - } - - [Log(true)] - public DateTime? Nascimento - { - get; - set; - } - - [Log(true)] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - [Log(true)] - public Gestor.Model.Common.Parentesco? Parentesco - { - get; - set; - } - - [Log(true)] - public string Prefixo - { - get - { - string str = this._prefixo; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._prefixo = value; - } - } - - [Log(true)] - public DateTime? PrimeiraHabilitacao - { - get; - set; - } - - [Log(true)] - public Gestor.Model.Domain.Common.Profissao Profissao - { - get; - set; - } - - [Log(true)] - public string Telefone - { - get - { - string str = this._telefone; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._telefone = value; - } - } - - public TipoTelefone? Tipo - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - MaisContato maisContato = this; - return new Func<List<KeyValuePair<string, string>>>(maisContato.Validate); - } - } - - public MaisContato() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (!string.IsNullOrWhiteSpace(this.Nome) && this.Nome.Length > 90) - { - keyValuePairs.AddValue<string, string>("Nome", string.Format(Messages.MaiorQueLimite, 90), true); - } - if (this.PrimeiraHabilitacao.HasValue && (DateTime.Compare(this.PrimeiraHabilitacao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.PrimeiraHabilitacao.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("PrimeiraHabilitacao|PRIMEIRA HABILITAÇÃO", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.Expedicao.HasValue && (DateTime.Compare(this.Expedicao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Expedicao.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("Expedicao|EXPEDIÇÃO", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.Nascimento.HasValue && (DateTime.Compare(this.Nascimento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Nascimento.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("Nascimento", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (!string.IsNullOrWhiteSpace(this.Documento) && this.Documento.Length > 30) - { - keyValuePairs.AddValue<string, string>("Documento", string.Format(Messages.MaiorQueLimite, 30), true); - } - if (!string.IsNullOrWhiteSpace(this.Identidade) && this.Identidade.Length > 40) - { - keyValuePairs.AddValue<string, string>("Identidade", string.Format(Messages.MaiorQueLimite, 40), true); - } - if (!string.IsNullOrWhiteSpace(this.Prefixo) && this.Prefixo.Length > 6) - { - keyValuePairs.AddValue<string, string>("Prefixo", string.Format(Messages.MaiorQueLimite, 6), true); - } - if (!string.IsNullOrWhiteSpace(this.Telefone) && this.Telefone.Length > 11) - { - keyValuePairs.AddValue<string, string>("Telefone", string.Format(Messages.MaiorQueLimite, 11), true); - } - if (!string.IsNullOrWhiteSpace(this.Email) && this.Email.Length > 80) - { - keyValuePairs.AddValue<string, string>("Email|E-MAIL", string.Format(Messages.MaiorQueLimite, 80), true); - } - if (!string.IsNullOrWhiteSpace(this.Habilitacao) && this.Habilitacao.Length > 40) - { - keyValuePairs.AddValue<string, string>("Habilitacao|HABILITAÇÃO", string.Format(Messages.MaiorQueLimite, 40), true); - } - if (!string.IsNullOrWhiteSpace(this.Banco) && this.Banco.Length > 15) - { - keyValuePairs.AddValue<string, string>("Banco", string.Format(Messages.MaiorQueLimite, 15), true); - } - if (!string.IsNullOrWhiteSpace(this.Agencia) && this.Agencia.Length > 15) - { - keyValuePairs.AddValue<string, string>("Agencia|AGÊNCIA", string.Format(Messages.MaiorQueLimite, 15), true); - } - if (!string.IsNullOrWhiteSpace(this.Conta) && this.Conta.Length > 20) - { - keyValuePairs.AddValue<string, string>("Conta", string.Format(Messages.MaiorQueLimite, 20), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/MetaSeguradora.cs b/Gestor.Model/Model.Domain.Seguros/MetaSeguradora.cs deleted file mode 100644 index 4b628e7..0000000 --- a/Gestor.Model/Model.Domain.Seguros/MetaSeguradora.cs +++ /dev/null @@ -1,60 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class MetaSeguradora : DomainBase - { - public long Ano - { - get; - set; - } - - public Gestor.Model.Common.Mes Mes - { - get; - set; - } - - public bool Recorrente { get; set; } = true; - - public Gestor.Model.Domain.Seguros.Seguradora Seguradora - { - get; - set; - } - - public int TipoCalculo { get; set; } = 1; - - public decimal Valor - { - get; - set; - } - - public MetaSeguradora() - { - } - - public List<TupleList> Log() - { - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>(); - decimal valor = this.Valor; - observableCollection.Add(new Tuple<string, string, string>("VALOR DA META", valor.ToString(), "")); - Gestor.Model.Common.Mes mes = this.Mes; - observableCollection.Add(new Tuple<string, string, string>("MÊS", mes.ToString(), "")); - long ano = this.Ano; - observableCollection.Add(new Tuple<string, string, string>("ANO", ano.ToString(), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - return tupleLists; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/MetaVendedor.cs b/Gestor.Model/Model.Domain.Seguros/MetaVendedor.cs deleted file mode 100644 index 6483feb..0000000 --- a/Gestor.Model/Model.Domain.Seguros/MetaVendedor.cs +++ /dev/null @@ -1,56 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class MetaVendedor : DomainBase - { - public long Ano - { - get; - set; - } - - public Gestor.Model.Common.Mes Mes - { - get; - set; - } - - public decimal Valor - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Vendedor Vendedor - { - get; - set; - } - - public MetaVendedor() - { - } - - public List<TupleList> Log() - { - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>(); - decimal valor = this.Valor; - observableCollection.Add(new Tuple<string, string, string>("VALOR DA META", valor.ToString("c2"), "")); - Gestor.Model.Common.Mes mes = this.Mes; - observableCollection.Add(new Tuple<string, string, string>("MÊS", mes.ToString(), "")); - long ano = this.Ano; - observableCollection.Add(new Tuple<string, string, string>("ANO", ano.ToString(), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - return tupleLists; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Parceiro.cs b/Gestor.Model/Model.Domain.Seguros/Parceiro.cs deleted file mode 100644 index 16bbdaf..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Parceiro.cs +++ /dev/null @@ -1,528 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Linq; -using System.Runtime.CompilerServices; -using System.Text.RegularExpressions; - -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; - - [Log(true)] - public string Bairro - { - get - { - string str = this._bairro; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._bairro = value; - } - } - - [Log(true)] - public string Cep - { - get - { - if (this._cep == null || !Regex.IsMatch(this._cep, "[0-9]+")) - { - return ""; - } - return this._cep.Trim(); - } - set - { - this._cep = value; - } - } - - [Description("DOCUMENTO")] - [Log(true)] - public string Cgccpf - { - get - { - string str = this._cgccpf; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._cgccpf = value; - } - } - - [Log(true)] - public string Cidade - { - get - { - string str = this._cidade; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._cidade = value; - } - } - - [Log(true)] - public string Complemento - { - get - { - string str = this._complemento; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._complemento = value; - } - } - - [Log(true)] - public string Contato - { - get - { - string str = this._contato; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._contato = value; - } - } - - [Description("PREFIXO 1")] - [Log(true)] - public string Ddd1 - { - get - { - string str = this._ddd1; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._ddd1 = value; - } - } - - [Description("PREFIXO 2")] - [Log(true)] - public string Ddd2 - { - get - { - string str = this._ddd2; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._ddd2 = value; - } - } - - [Description("PREFIXO 3")] - [Log(true)] - public string Ddd3 - { - get - { - string str = this._ddd3; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._ddd3 = value; - } - } - - [Log(true)] - public string Email - { - get - { - string str = this._email; - if (str == null) - { - return null; - } - return str.ToLower().Trim(); - } - set - { - this._email = value; - } - } - - [Log(true)] - public string Endereco - { - get - { - string str = this._endereco; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._endereco = value; - } - } - - [Log(true)] - [Name(true)] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - [Description("NÚMERO")] - [Log(true)] - public string Numero - { - get - { - string str = this._numero; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._numero = value; - } - } - - [Description("OBSERVAÇÃO")] - [Log(true)] - public string Obs - { - get - { - string str = this._obs; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._obs = value; - } - } - - [Description("TELEFONE 1")] - [Log(true)] - public string Telefone1 - { - get - { - string str = this._telefone1; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._telefone1 = value; - } - } - - [Description("TELEFONE 2")] - [Log(true)] - public string Telefone2 - { - get - { - string str = this._telefone2; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._telefone2 = value; - } - } - - [Description("TELEFONE 3")] - [Log(true)] - public string Telefone3 - { - get - { - string str = this._telefone3; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._telefone3 = value; - } - } - - public Gestor.Model.Common.TipoPerda? TipoPerda - { - get; - set; - } - - [Description("ESTADO")] - [Log(true)] - public string Uf - { - get - { - string str = this._uf; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._uf = value; - } - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Parceiro parceiro = this; - return new Func<List<KeyValuePair<string, string>>>(parceiro.Validate); - } - } - - public Parceiro() - { - } - - 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(this.Nome) ? "" : this.Nome), ""), - new Tuple<string, string, string>("DOCUMENTO", (string.IsNullOrWhiteSpace(this.Cgccpf) ? "" : this.Cgccpf), ""), - new Tuple<string, string, string>("PRIMEIRO PREFIXO", (string.IsNullOrWhiteSpace(this.Ddd1) ? "" : this.Ddd1), ""), - new Tuple<string, string, string>("PRIMEIRO TELEFONE", (string.IsNullOrWhiteSpace(this.Telefone1) ? "" : this.Telefone1), ""), - new Tuple<string, string, string>("SEGUNDO PREFIXO", (string.IsNullOrWhiteSpace(this.Ddd2) ? "" : this.Ddd2), ""), - new Tuple<string, string, string>("SEGUNDO TELEFONE", (string.IsNullOrWhiteSpace(this.Telefone2) ? "" : this.Telefone2), ""), - new Tuple<string, string, string>("TERCEIRO PREFIXO", (string.IsNullOrWhiteSpace(this.Ddd3) ? "" : this.Ddd3), ""), - new Tuple<string, string, string>("TERCEIRO TELEFONE", (string.IsNullOrWhiteSpace(this.Telefone3) ? "" : this.Telefone3), ""), - new Tuple<string, string, string>("E-MAIL", (string.IsNullOrWhiteSpace(this.Email) ? "" : this.Email), ""), - new Tuple<string, string, string>("CEP", (string.IsNullOrWhiteSpace(this.Cep) ? "" : this.Cep), ""), - new Tuple<string, string, string>("ENDEREÇO", (string.IsNullOrWhiteSpace(this.Endereco) ? "" : this.Endereco), ""), - new Tuple<string, string, string>("NÚMERO", (string.IsNullOrWhiteSpace(this.Numero) ? "" : this.Numero), ""), - new Tuple<string, string, string>("COMPLEMENTO", (string.IsNullOrWhiteSpace(this.Complemento) ? "" : this.Complemento), ""), - new Tuple<string, string, string>("BAIRRO", (string.IsNullOrWhiteSpace(this.Bairro) ? "" : this.Bairro), ""), - new Tuple<string, string, string>("CIDADE", (string.IsNullOrWhiteSpace(this.Cidade) ? "" : this.Cidade), ""), - new Tuple<string, string, string>("ESTADO", (string.IsNullOrWhiteSpace(this.Uf) ? "" : this.Uf), "") - } - } - }; - } - - public List<KeyValuePair<string, string>> Validate() - { - int num; - int? nullable; - bool flag; - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - string nome = this.Nome; - if (nome != null) - { - nullable = new int?((int)nome.Trim().Split(new char[] { ' ' }).Length); - } - else - { - nullable = null; - } - if (!nullable.HasValue) - { - keyValuePairs.AddValue<string, string>("Nome", Messages.Obrigatorio, true); - } - else if (this.Nome.Length > 100) - { - keyValuePairs.AddValue<string, string>("Nome", string.Format(Messages.MaiorQueLimite, 100), true); - } - if (!string.IsNullOrEmpty(this.Cgccpf) && !this.Cgccpf.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("Cgccpf", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.Ddd1) && !this.Ddd1.ValidacaoPrefixo()) - { - keyValuePairs.AddValue<string, string>("Ddd1|PRIMEIRO DDD", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.Telefone1) && !this.Telefone1.ValidacaoTelefone()) - { - keyValuePairs.AddValue<string, string>("Telefone1|PRIMEIRO TELEFONE", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.Ddd2) && !this.Ddd2.ValidacaoPrefixo()) - { - keyValuePairs.AddValue<string, string>("Ddd2|SEGUNDO DDD", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.Telefone2) && !this.Telefone2.ValidacaoTelefone()) - { - keyValuePairs.AddValue<string, string>("Telefone2|SEGUNDO TELEFONE", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.Ddd3) && !this.Ddd3.ValidacaoPrefixo()) - { - keyValuePairs.AddValue<string, string>("Ddd3|TERCEIRO DDD", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.Telefone3) && !this.Telefone3.ValidacaoTelefone()) - { - keyValuePairs.AddValue<string, string>("Telefone3|TERCEIRO TELEFONE", Messages.Invalido, true); - } - if (!string.IsNullOrEmpty(this.Email) && this.Email.Length > 100) - { - keyValuePairs.AddValue<string, string>("Email|E-MAIL", string.Format(Messages.MaiorQueLimite, 100), true); - } - if (!string.IsNullOrEmpty(this.Email) && !this.Email.ValidacaoEmail()) - { - keyValuePairs.AddValue<string, string>("Email|E-MAIL", Messages.Invalido, true); - } - if (!string.IsNullOrEmpty(this.Cep) && !this.Cep.ValidacaoCep()) - { - keyValuePairs.AddValue<string, string>("Cep|CEP", Messages.Invalido, true); - } - if (!string.IsNullOrEmpty(this.Uf) && !this.Uf.ValidacaoEstado()) - { - keyValuePairs.AddValue<string, string>("Uf|ESTADO", Messages.Invalido, true); - } - if (!string.IsNullOrEmpty(this.Numero) && !int.TryParse(this.Numero, out num)) - { - keyValuePairs.AddValue<string, string>("Numero|NÚMERO", Messages.Invalido, true); - } - if (!string.IsNullOrEmpty(this.Numero)) - { - string numero = this.Numero; - if (numero != null) - { - flag = numero.Count<char>() > 5; - } - else - { - flag = false; - } - if (flag) - { - keyValuePairs.AddValue<string, string>("Numero|NÚMERO", Messages.Invalido, true); - } - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Parcela.cs b/Gestor.Model/Model.Domain.Seguros/Parcela.cs deleted file mode 100644 index d97f5c8..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Parcela.cs +++ /dev/null @@ -1,789 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class Parcela : DomainBase, IDomain - { - private string _extrato; - - private string _fatura; - - [Description("STATUS PAGAMENTO")] - [ForceLog(true)] - [Log(true)] - private Gestor.Model.Common.StatusPagamento? _statusPagamento; - - private bool _percentualmaiorque100; - - private bool _alteracao; - - private bool _permitirVencimentoMenor; - - private bool _permitirVencimentoMaior; - - public bool Baixando - { - get; - set; - } - - [Description("COMISSÃO")] - [ForceLog(true)] - [Log(true)] - public decimal Comissao - { - get; - set; - } - - [Description("CONTROLE")] - [ForceLog(true)] - [Log(true)] - public DateTime? DataControle - { - get; - set; - } - - [Description("CRÉDITO")] - [ForceLog(true)] - [Log(true)] - public DateTime? DataCredito - { - get; - set; - } - - [Log(false)] - public DateTime? DataCriacao - { - get; - set; - } - - [Description("QUITAÇÃO")] - [ForceLog(true)] - [Log(true)] - public DateTime? DataQuitacao - { - get; - set; - } - - [Description("RECEBIMENTO")] - [ForceLog(true)] - [Log(true)] - public DateTime? DataRecebimento - { - get; - set; - } - - [Description("DESCONTO")] - [ForceLog(true)] - [Log(true)] - public decimal Desconto - { - get; - set; - } - - [ForceLog(true)] - [Log(false)] - public Gestor.Model.Domain.Seguros.Documento Documento - { - get; - set; - } - - [Description("EMISSÃO FATURA")] - [ForceLog(true)] - [Log(true)] - public DateTime? Emissao - { - get; - set; - } - - [Description("EXTRATO")] - [ForceLog(true)] - [Log(true)] - public string Extrato - { - get - { - string str = this._extrato; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._extrato = value; - } - } - - [Description("FATURA")] - [ForceLog(true)] - [Log(true)] - public string Fatura - { - get - { - string str = this._fatura; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._fatura = value; - } - } - - public long IdEmpresa - { - get; - set; - } - - [Log(false)] - public long IdParcelaPendente - { - get; - set; - } - - [Description("IR")] - [ForceLog(true)] - [Log(true)] - public decimal Irr - { - get; - set; - } - - [Description("ISS")] - [ForceLog(true)] - [Log(true)] - public decimal Iss - { - get; - set; - } - - [Description("PARCELA")] - [ForceLog(true)] - [Log(true)] - public int NumeroParcela - { - get; - set; - } - - public string Observacao - { - get; - set; - } - - [Description("OUTROS")] - [ForceLog(true)] - [Log(true)] - public decimal Outros - { - get; - set; - } - - [Log(false)] - public Gestor.Model.Common.StatusPagamento? StatusPagamento - { - get - { - return this._statusPagamento; - } - set - { - this._statusPagamento = new Gestor.Model.Common.StatusPagamento?(value.GetValueOrDefault()); - } - } - - [Description("TIPO DA PARCELA")] - [ForceLog(true)] - [Log(true)] - public Gestor.Model.Common.SubTipo SubTipo - { - get; - set; - } - - public Gestor.Model.Common.TipoPagamento TipoPagamento - { - get; - set; - } - - [Log(false)] - public long UsuarioCriacao - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Parcela parcela = this; - return new Func<List<KeyValuePair<string, string>>>(parcela.Validate); - } - } - - [Description("VALOR")] - [ForceLog(true)] - [Log(true)] - public decimal Valor - { - get; - set; - } - - [Description("COMISSÃO LÍQUIDA")] - [ForceLog(true)] - [Log(true)] - public decimal ValorComDesconto - { - get; - set; - } - - [Description("VALOR DE COMISSÃO")] - [ForceLog(true)] - [Log(true)] - public decimal ValorComissao - { - get; - set; - } - - public decimal ValorExtrato - { - get; - set; - } - - [Description("VALOR LÍQUIDO FATURA")] - [ForceLog(true)] - [Log(true)] - public decimal ValorLiquidoFatura - { - get; - set; - } - - public decimal ValorPago - { - get; - set; - } - - [Description("VALOR PARCELA EXTRATO")] - [ForceLog(true)] - [Log(true)] - public decimal ValorRealizado - { - get; - set; - } - - [Description("VENCIMENTO")] - [ForceLog(true)] - [Log(true)] - public DateTime Vencimento - { - get; - set; - } - - [Log(false)] - public ObservableCollection<VendedorParcela> Vendedores - { - get; - set; - } - - [Description("FIM FATURA")] - [ForceLog(true)] - [Log(true)] - public DateTime? VigenciaFinal - { - get; - set; - } - - [Description("INÍCIO FATURA")] - [ForceLog(true)] - [Log(true)] - public DateTime? VigenciaIncial - { - get; - set; - } - - public Parcela() - { - } - - public List<KeyValuePair<string, string>> Validate(bool permitirVencimentoMenor, bool permitirVencimentoMaior, bool alteracao = false, bool percentualmaiorque100 = false) - { - this._permitirVencimentoMenor = permitirVencimentoMenor; - this._permitirVencimentoMaior = permitirVencimentoMaior; - this._alteracao = alteracao; - this._percentualmaiorque100 = percentualmaiorque100; - return this.Validate(); - } - - public List<KeyValuePair<string, string>> Validate() - { - decimal? nullable; - decimal numeroParcelas; - decimal? nullable1; - decimal? nullable2; - decimal? nullable3; - DateTime vencimento; - DateTime? vigencia2; - int num; - decimal? tolerancia; - decimal? tolerancia1; - decimal? nullable4; - decimal? nullable5; - decimal? tolerancia2; - decimal? tolerancia3; - decimal? nullable6; - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - DateTime? emissao = this.Emissao; - if (emissao.HasValue) - { - emissao = this.Emissao; - if (DateTime.Compare(emissao.Value, new DateTime(1753, 1, 1)) >= 0) - { - emissao = this.Emissao; - if (DateTime.Compare(emissao.Value, new DateTime(9999, 12, 31)) <= 0) - { - goto Label0; - } - } - keyValuePairs.AddValue<string, string>("Emissao|EMISSÃO", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - Label0: - emissao = this.VigenciaFinal; - if (emissao.HasValue) - { - emissao = this.VigenciaFinal; - if (DateTime.Compare(emissao.Value, new DateTime(1753, 1, 1)) >= 0) - { - emissao = this.VigenciaFinal; - if (DateTime.Compare(emissao.Value, new DateTime(9999, 12, 31)) <= 0) - { - goto Label1; - } - } - keyValuePairs.AddValue<string, string>("VigenciaFinal|VIGÊNCIA FINAL", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - Label1: - emissao = this.VigenciaIncial; - if (emissao.HasValue) - { - emissao = this.VigenciaIncial; - if (DateTime.Compare(emissao.Value, new DateTime(1753, 1, 1)) >= 0) - { - emissao = this.VigenciaIncial; - if (DateTime.Compare(emissao.Value, new DateTime(9999, 12, 31)) <= 0) - { - goto Label2; - } - } - keyValuePairs.AddValue<string, string>("VigenciaIncial|VIGÊNCIA INICIAL", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - Label2: - emissao = this.DataCredito; - if (emissao.HasValue) - { - emissao = this.DataCredito; - if (DateTime.Compare(emissao.Value, new DateTime(1753, 1, 1)) >= 0) - { - emissao = this.DataCredito; - if (DateTime.Compare(emissao.Value, new DateTime(9999, 12, 31)) <= 0) - { - goto Label3; - } - } - keyValuePairs.AddValue<string, string>("DataCredito|DATA DE CRÉDITO", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - Label3: - emissao = this.DataRecebimento; - if (emissao.HasValue) - { - emissao = this.DataRecebimento; - if (DateTime.Compare(emissao.Value, new DateTime(1753, 1, 1)) >= 0) - { - emissao = this.DataRecebimento; - if (DateTime.Compare(emissao.Value, new DateTime(9999, 12, 31)) <= 0) - { - goto Label4; - } - } - keyValuePairs.AddValue<string, string>("DataRecebimento|DATA RECEBIMENTO", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - Label4: - if (DateTime.Compare(this.Vencimento, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Vencimento, new DateTime(9999, 12, 31)) > 0) - { - keyValuePairs.AddValue<string, string>("Vencimento", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.NumeroParcela == 0) - { - keyValuePairs.AddValue<string, string>("NumeroParcela|NÚMERO DA PARCELA", Messages.Obrigatorio, true); - } - if (this.Valor == decimal.Zero) - { - keyValuePairs.AddValue<string, string>("Valor", Messages.Obrigatorio, true); - } - if (this.Comissao == decimal.Zero && this.Documento.TipoRecebimento.GetValueOrDefault() != TipoRecebimento.Fatura) - { - keyValuePairs.AddValue<string, string>("Comissao|COMISSÃO", Messages.Obrigatorio, true); - } - if (this.Comissao > new decimal(100) && (this.Documento.TipoRecebimento.GetValueOrDefault() != TipoRecebimento.Fatura || !this._percentualmaiorque100)) - { - keyValuePairs.AddValue<string, string>("Comissao|% COMISSÃO", "MAIOR QUE 100%", true); - } - emissao = this.DataRecebimento; - if (emissao.HasValue) - { - emissao = this.DataCredito; - if (!emissao.HasValue) - { - keyValuePairs.AddValue<string, string>("DataCredito|DATA DE CRÉDITO", Messages.Obrigatorio, true); - } - } - emissao = this.DataCredito; - if (emissao.HasValue) - { - emissao = this.DataRecebimento; - if (!emissao.HasValue) - { - keyValuePairs.AddValue<string, string>("DataRecebimento|DATA RECEBIMENTO", Messages.Obrigatorio, true); - } - } - if (this.Baixando) - { - emissao = this.DataRecebimento; - if (!emissao.HasValue) - { - keyValuePairs.AddValue<string, string>("DataRecebimento|DATA DE RECEBIMENTO", Messages.Obrigatorio, true); - } - emissao = this.DataCredito; - if (!emissao.HasValue) - { - keyValuePairs.AddValue<string, string>("DataCredito|DATA DE CRÉDITO", Messages.Obrigatorio, true); - } - } - if (!this._alteracao) - { - emissao = this.DataCredito; - if (!emissao.HasValue) - { - emissao = this.DataRecebimento; - if (!emissao.HasValue) - { - goto Label5; - } - } - if (this.ValorRealizado == decimal.Zero) - { - keyValuePairs.AddValue<string, string>("ValorRealizado|VALOR REALIZADO", Messages.Obrigatorio, true); - } - } - Label5: - if (this.Documento.TipoRecebimento.GetValueOrDefault() != TipoRecebimento.Fatura && this.SubTipo == Gestor.Model.Common.SubTipo.ParcelaNormal) - { - if (this.Documento.NumeroParcelas != decimal.One) - { - decimal num1 = Math.Abs(this.Valor); - decimal num2 = Math.Abs(this.Documento.PremioTotal); - Controle controle = this.Documento.Controle; - if (controle != null) - { - Seguradora seguradora = controle.Seguradora; - if (seguradora != null) - { - tolerancia1 = seguradora.Tolerancia; - } - else - { - nullable3 = null; - tolerancia1 = nullable3; - } - } - else - { - nullable3 = null; - tolerancia1 = nullable3; - } - nullable2 = tolerancia1; - if (nullable2.HasValue) - { - nullable4 = new decimal?(num2 + nullable2.GetValueOrDefault()); - } - else - { - nullable3 = null; - nullable4 = nullable3; - } - nullable1 = nullable4; - numeroParcelas = this.Documento.NumeroParcelas; - if (nullable1.HasValue) - { - nullable5 = new decimal?(nullable1.GetValueOrDefault() - numeroParcelas); - } - else - { - nullable2 = null; - nullable5 = nullable2; - } - nullable = nullable5; - if ((num1 > nullable.GetValueOrDefault()) & nullable.HasValue) - { - decimal valor = this.Valor; - Controle controle1 = this.Documento.Controle; - if (controle1 != null) - { - Seguradora seguradora1 = controle1.Seguradora; - if (seguradora1 != null) - { - tolerancia2 = seguradora1.Tolerancia; - } - else - { - nullable1 = null; - tolerancia2 = nullable1; - } - } - else - { - nullable1 = null; - tolerancia2 = nullable1; - } - nullable = tolerancia2; - if ((valor > nullable.GetValueOrDefault()) & nullable.HasValue) - { - keyValuePairs.AddValue<string, string>("Valor", Messages.ValorParcelaInvalido, true); - } - } - } - else - { - decimal num3 = Math.Abs(this.Valor); - numeroParcelas = Math.Abs(this.Documento.PremioTotal); - Controle controle2 = this.Documento.Controle; - if (controle2 != null) - { - Seguradora seguradora2 = controle2.Seguradora; - if (seguradora2 != null) - { - tolerancia3 = seguradora2.Tolerancia; - } - else - { - nullable2 = null; - tolerancia3 = nullable2; - } - } - else - { - nullable2 = null; - tolerancia3 = nullable2; - } - nullable1 = tolerancia3; - if (nullable1.HasValue) - { - nullable6 = new decimal?(numeroParcelas + nullable1.GetValueOrDefault()); - } - else - { - nullable2 = null; - nullable6 = nullable2; - } - nullable = nullable6; - if ((num3 > nullable.GetValueOrDefault()) & nullable.HasValue) - { - keyValuePairs.AddValue<string, string>("Valor", Messages.ValorParcelaInvalido, true); - } - } - } - if (this.Documento.TipoRecebimento.GetValueOrDefault() != TipoRecebimento.Fatura && this.SubTipo == Gestor.Model.Common.SubTipo.ParcelaNormal && this.Documento.Parcelas != null && this.Documento.NumeroParcelas == this.Documento.Parcelas.Count) - { - decimal num4 = Math.Abs(( - from x in this.Documento.Parcelas - where x.SubTipo == Gestor.Model.Common.SubTipo.ParcelaNormal - select x).Sum<Parcela>((Parcela x) => x.Valor)); - decimal num5 = Math.Abs(this.Documento.PremioTotal); - Controle controle3 = this.Documento.Controle; - if (controle3 != null) - { - Seguradora seguradora3 = controle3.Seguradora; - if (seguradora3 != null) - { - tolerancia = seguradora3.Tolerancia; - } - else - { - nullable = null; - tolerancia = nullable; - } - } - else - { - nullable = null; - tolerancia = nullable; - } - nullable = tolerancia; - if (num4 > (num5 + nullable.GetValueOrDefault()) && this.NumeroParcela == this.Documento.NumeroParcelas) - { - keyValuePairs.AddValue<string, string>("Valor", Messages.ValorParcelaInvalido, true); - } - } - if (!this._permitirVencimentoMaior) - { - emissao = this.Documento.Vigencia2; - if (emissao.HasValue) - { - vencimento = this.Vencimento; - emissao = this.Documento.Vigencia2; - if ((emissao.HasValue ? vencimento > emissao.GetValueOrDefault() : false) && this.Documento.Controle.Ramo.Id != (long)23) - { - keyValuePairs.AddValue<string, string>("Vencimento", Messages.VencimentoMaior, true); - } - } - } - if (!this._permitirVencimentoMenor) - { - if (this.Documento.Vigencia1 > DateTime.MinValue && this.NumeroParcela == 1) - { - DateTime dateTime = this.Vencimento; - vencimento = this.Documento.Vigencia1; - if (dateTime < vencimento.AddDays(-30)) - { - goto Label6; - } - } - if (this.NumeroParcela == 1 || !(this.Vencimento < this.Documento.Vigencia1)) - { - goto Label7; - } - Label6: - keyValuePairs.AddValue<string, string>("Vencimento", Messages.VencimentoMenor, true); - } - Label7: - if (this.Documento == null || this.Documento.TipoRecebimento.GetValueOrDefault() != TipoRecebimento.Fatura) - { - return keyValuePairs; - } - if (string.IsNullOrWhiteSpace(this.Fatura)) - { - keyValuePairs.AddValue<string, string>("Fatura", Messages.Obrigatorio, true); - } - else if (this.Fatura.Length > 50) - { - keyValuePairs.AddValue<string, string>("Fatura", string.Format(Messages.MaiorQueLimite, 255), true); - } - if (this.ValorLiquidoFatura == decimal.Zero) - { - keyValuePairs.AddValue<string, string>("ValorLiquidoFatura|VALOR LÍQUIDO DA FATURA", Messages.Obrigatorio, true); - } - emissao = this.VigenciaIncial; - if (!emissao.HasValue) - { - keyValuePairs.AddValue<string, string>("VigenciaIncial|VIGÊNCIA INICIAL", Messages.Obrigatorio, true); - } - emissao = this.VigenciaFinal; - if (!emissao.HasValue) - { - keyValuePairs.AddValue<string, string>("VigenciaFinal|VIGÊNCIA FINAL", Messages.Obrigatorio, true); - } - emissao = this.Emissao; - if (!emissao.HasValue) - { - keyValuePairs.AddValue<string, string>("Emissao|EMISSÃO", Messages.Obrigatorio, true); - } - if (!string.IsNullOrWhiteSpace(this.Extrato) && this.Extrato.Length > 50) - { - keyValuePairs.AddValue<string, string>("Extrato", string.Format(Messages.MaiorQueLimite, 50), true); - } - emissao = this.VigenciaFinal; - if (emissao.HasValue) - { - emissao = this.Documento.Vigencia2; - if (emissao.HasValue) - { - emissao = this.VigenciaFinal; - vigencia2 = this.Documento.Vigencia2; - if ((emissao.HasValue & vigencia2.HasValue ? emissao.GetValueOrDefault() > vigencia2.GetValueOrDefault() : false) && !this._permitirVencimentoMaior) - { - keyValuePairs.AddValue<string, string>("VigenciaFinal|VIGÊNCIA FINAL", Messages.VencimentoMaior, true); - } - } - } - vigencia2 = this.DataRecebimento; - if (!vigencia2.HasValue && this.ValorComissao != decimal.Zero && this.Documento.TipoRecebimento.GetValueOrDefault() == TipoRecebimento.Fatura) - { - keyValuePairs.AddValue<string, string>("DataRecebimento|DATA RECEBIMENTO", Messages.Obrigatorio, true); - } - if (this.Documento.TipoRecebimento.GetValueOrDefault() != TipoRecebimento.Fatura && this.Documento.Parcelas != null && this.Documento.Parcelas.Any<Parcela>((Parcela x) => { - if (x.NumeroParcela >= this.NumeroParcela) - { - return false; - } - return !x.DataRecebimento.HasValue; - })) - { - keyValuePairs.AddValue<string, string>("DataRecebimento|DATA RECEBIMENTO", Messages.BaixaInvalida, true); - } - vigencia2 = this.DataRecebimento; - if (vigencia2.HasValue && this.ValorComissao != decimal.Zero && this.Documento.TipoRecebimento.GetValueOrDefault() == TipoRecebimento.Fatura) - { - decimal num6 = (this.ValorExtrato == decimal.Zero ? this.ValorLiquidoFatura : this.ValorExtrato); - if (num6 > decimal.Zero) - { - num = num6.CompareTo(this.ValorComissao); - } - else - { - numeroParcelas = this.ValorComissao; - num = numeroParcelas.CompareTo(num6); - } - if (num < 0) - { - keyValuePairs.AddValue<string, string>("ValorComissao|RECEBIDO", "VALOR RECEBIDO MAIOR QUE VALOR PARCELA", true); - } - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Parcelas.cs b/Gestor.Model/Model.Domain.Seguros/Parcelas.cs deleted file mode 100644 index aa31cbb..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Parcelas.cs +++ /dev/null @@ -1,204 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Globalization; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class Parcelas : DomainBase - { - public ObservableCollection<Parcela> ParcelasList - { - get; - set; - } - - public Gestor.Model.Common.TipoRecebimento? TipoRecebimento - { - get; - set; - } - - public Parcelas() - { - } - - public List<TupleList> Log(bool restricaoComissao, bool restricaoComissaoPorcentagem) - { - DateTime? vigenciaIncial; - string shortDateString; - string str; - string shortDateString1; - string str1; - string shortDateString2; - string str2; - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("PARCELAS$", "", "") - }; - if (this.ParcelasList != null) - { - foreach (Parcela parcelasList in this.ParcelasList) - { - observableCollection.Add(new Tuple<string, string, string>(string.Format(" PARCELA {0}$", parcelasList.NumeroParcela), "", "")); - if (this.TipoRecebimento.GetValueOrDefault() == Gestor.Model.Common.TipoRecebimento.Fatura) - { - observableCollection.Add(new Tuple<string, string, string>(" FATURA", (string.IsNullOrWhiteSpace(parcelasList.Fatura) ? "" : parcelasList.Fatura.ToUpper()), "")); - ObservableCollection<Tuple<string, string, string>> observableCollection1 = observableCollection; - vigenciaIncial = parcelasList.VigenciaIncial; - if (!vigenciaIncial.HasValue) - { - str1 = ""; - } - else - { - vigenciaIncial = parcelasList.VigenciaIncial; - if (vigenciaIncial.HasValue) - { - str1 = vigenciaIncial.GetValueOrDefault().ToShortDateString(); - } - else - { - str1 = null; - } - } - observableCollection1.Add(new Tuple<string, string, string>(" INÍCIO", str1, "")); - ObservableCollection<Tuple<string, string, string>> observableCollection2 = observableCollection; - vigenciaIncial = parcelasList.VigenciaFinal; - if (!vigenciaIncial.HasValue) - { - shortDateString2 = ""; - } - else - { - vigenciaIncial = parcelasList.VigenciaFinal; - if (vigenciaIncial.HasValue) - { - shortDateString2 = vigenciaIncial.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString2 = null; - } - } - observableCollection2.Add(new Tuple<string, string, string>(" FIM", shortDateString2, "")); - ObservableCollection<Tuple<string, string, string>> observableCollection3 = observableCollection; - vigenciaIncial = parcelasList.Emissao; - if (!vigenciaIncial.HasValue) - { - str2 = ""; - } - else - { - vigenciaIncial = parcelasList.Emissao; - if (vigenciaIncial.HasValue) - { - str2 = vigenciaIncial.GetValueOrDefault().ToShortDateString(); - } - else - { - str2 = null; - } - } - observableCollection3.Add(new Tuple<string, string, string>(" EMISSÃO", str2, "")); - } - DateTime vencimento = parcelasList.Vencimento; - observableCollection.Add(new Tuple<string, string, string>(" VENCIMENTO", vencimento.ToShortDateString(), "")); - ObservableCollection<Tuple<string, string, string>> observableCollection4 = observableCollection; - vigenciaIncial = parcelasList.DataRecebimento; - if (!vigenciaIncial.HasValue) - { - shortDateString = ""; - } - else - { - vigenciaIncial = parcelasList.DataRecebimento; - if (vigenciaIncial.HasValue) - { - shortDateString = vigenciaIncial.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString = null; - } - } - observableCollection4.Add(new Tuple<string, string, string>(" RECEBIMENTO", shortDateString, "")); - ObservableCollection<Tuple<string, string, string>> observableCollection5 = observableCollection; - vigenciaIncial = parcelasList.DataQuitacao; - if (!vigenciaIncial.HasValue) - { - str = ""; - } - else - { - vigenciaIncial = parcelasList.DataQuitacao; - if (vigenciaIncial.HasValue) - { - str = vigenciaIncial.GetValueOrDefault().ToShortDateString(); - } - else - { - str = null; - } - } - observableCollection5.Add(new Tuple<string, string, string>(" QUITAÇÃO", str, "")); - ObservableCollection<Tuple<string, string, string>> observableCollection6 = observableCollection; - vigenciaIncial = parcelasList.DataControle; - if (!vigenciaIncial.HasValue) - { - shortDateString1 = ""; - } - else - { - vigenciaIncial = parcelasList.DataControle; - if (vigenciaIncial.HasValue) - { - shortDateString1 = vigenciaIncial.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString1 = null; - } - } - observableCollection6.Add(new Tuple<string, string, string>(" DATA PARCELA CONTROLE", shortDateString1, "")); - decimal valor = parcelasList.Valor; - observableCollection.Add(new Tuple<string, string, string>(" VALOR", valor.ToString("C", new CultureInfo("pt-BR", false)), "")); - valor = parcelasList.ValorLiquidoFatura; - observableCollection.Add(new Tuple<string, string, string>(" LÍQUIDO", valor.ToString("C", new CultureInfo("pt-BR", false)), "")); - if (!restricaoComissao) - { - valor = parcelasList.ValorRealizado; - observableCollection.Add(new Tuple<string, string, string>(" REALIZADO", valor.ToString("C", new CultureInfo("pt-BR", false)), "")); - valor = parcelasList.Comissao / new decimal(100); - observableCollection.Add(new Tuple<string, string, string>(" COMISSÃO", valor.ToString("P", new CultureInfo("pt-BR", false)), "")); - valor = parcelasList.ValorComissao; - observableCollection.Add(new Tuple<string, string, string>(" RECEBIDO", valor.ToString("C", new CultureInfo("pt-BR", false)), "")); - } - else if (!restricaoComissaoPorcentagem) - { - 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", "", "")); - } - else - { - observableCollection.Add(new Tuple<string, string, string>(" REALIZADO", "", "")); - valor = parcelasList.Comissao / new decimal(100); - observableCollection.Add(new Tuple<string, string, string>(" COMISSÃO", valor.ToString("P", new CultureInfo("pt-BR", false)), "")); - observableCollection.Add(new Tuple<string, string, string>(" RECEBIDO", "", "")); - } - } - } - return new List<TupleList>() - { - new TupleList() - { - Tuples = observableCollection - } - }; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Patrimonial.cs b/Gestor.Model/Model.Domain.Seguros/Patrimonial.cs deleted file mode 100644 index c54f32b..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Patrimonial.cs +++ /dev/null @@ -1,574 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Gestor.Model.Validation; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Globalization; -using System.Runtime.CompilerServices; - -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 Gestor.Model.Common.TipoMoradia _tipoResidencia; - - public string Bens - { - get - { - string str = this._bens; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._bens = value; - } - } - - public string Contato - { - get - { - string str = this._contato; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._contato = value; - } - } - - public string CpfLocatario1 - { - get - { - string str = this._cpfLocatario1; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._cpfLocatario1 = value; - } - } - - public string CpfLocatario2 - { - get - { - string str = this._cpfLocatario2; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._cpfLocatario2 = value; - } - } - - public string CpfLocatario3 - { - get - { - string str = this._cpfLocatario3; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._cpfLocatario3 = value; - } - } - - public string Imobiliaria - { - get - { - string str = this._imobiliaria; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._imobiliaria = value; - } - } - - public Gestor.Model.Domain.Seguros.Item Item - { - get; - set; - } - - public string Locatario1 - { - get - { - string str = this._locatario; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._locatario = value; - } - } - - public string Locatario2 - { - get - { - string str = this._locatario2; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._locatario2 = value; - } - } - - public string Locatario3 - { - get - { - string str = this._locatario3; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._locatario3 = value; - } - } - - public string Prefixo - { - get - { - string str = this._prefixo; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._prefixo = value; - } - } - - public string PrefixoLocatario1 - { - get; - set; - } - - public string PrefixoLocatario2 - { - get; - set; - } - - public string PrefixoLocatario3 - { - get; - set; - } - - public string Telefone - { - get - { - string str = this._telefone; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._telefone = value; - } - } - - public string TelefoneLocatario1 - { - get; - set; - } - - public string TelefoneLocatario2 - { - get; - set; - } - - public string TelefoneLocatario3 - { - get; - set; - } - - public TipoTelefone? Tipo - { - get; - set; - } - - public Gestor.Model.Common.TipoMoradia TipoMoradia - { - get - { - return this._tipoResidencia; - } - set - { - this._tipoResidencia = value; - } - } - - public Gestor.Model.Common.Utilizacao? Utilizacao - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Patrimonial patrimonial = this; - return new Func<List<KeyValuePair<string, string>>>(patrimonial.Validate); - } - } - - public Patrimonial() - { - } - - public static List<TupleList> Log(Gestor.Model.Domain.Seguros.Item item) - { - string description; - string str; - List<TupleList> tupleLists = 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 == (long)15) - { - ObservableCollection<Tuple<string, string, string>> tuples = tupleLists[0].Tuples; - Gestor.Model.Common.Utilizacao? utilizacao = item.Patrimonial.Utilizacao; - if (!utilizacao.HasValue) - { - description = ""; - } - else - { - utilizacao = item.Patrimonial.Utilizacao; - if (utilizacao.HasValue) - { - description = utilizacao.GetValueOrDefault().GetDescription(); - } - else - { - description = null; - } - } - tuples.Add(new Tuple<string, string, string>("UTILIZAÇÃO", description, "")); - tupleLists[0].Tuples.Add(new Tuple<string, string, string>("IMOBILIÁRIA", (string.IsNullOrWhiteSpace(item.Patrimonial.Imobiliaria) ? "" : item.Patrimonial.Imobiliaria.ToUpper()), "")); - tupleLists[0].Tuples.Add(new Tuple<string, string, string>("CONTATO", (string.IsNullOrWhiteSpace(item.Patrimonial.Contato) ? "" : item.Patrimonial.Contato.ToUpper()), "")); - ObservableCollection<Tuple<string, string, string>> observableCollection = tupleLists[0].Tuples; - TipoTelefone? tipo = item.Patrimonial.Tipo; - if (!tipo.HasValue) - { - str = ""; - } - else - { - tipo = item.Patrimonial.Tipo; - if (tipo.HasValue) - { - str = tipo.GetValueOrDefault().GetDescription(); - } - else - { - str = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("TIPO TELEFONE", str, "")); - tupleLists[0].Tuples.Add(new Tuple<string, string, string>("PREFIXO", (string.IsNullOrWhiteSpace(item.Patrimonial.Prefixo) ? "" : item.Patrimonial.Prefixo.ToUpper()), "")); - tupleLists[0].Tuples.Add(new Tuple<string, string, string>("NÚMERO", (string.IsNullOrWhiteSpace(item.Patrimonial.Telefone) ? "" : item.Patrimonial.Telefone.ToUpper()), "")); - tupleLists[0].Tuples.Add(new Tuple<string, string, string>("LOCATÁRIO 1", (string.IsNullOrWhiteSpace(item.Patrimonial.Locatario1) ? "" : item.Patrimonial.Locatario1.ToUpper()), "")); - tupleLists[0].Tuples.Add(new Tuple<string, string, string>("PREFIXO LOCATÁRIO 1", (string.IsNullOrWhiteSpace(item.Patrimonial.PrefixoLocatario1) ? "" : item.Patrimonial.PrefixoLocatario1), "")); - tupleLists[0].Tuples.Add(new Tuple<string, string, string>("NÚMERO LOCATÁRIO 1", (string.IsNullOrWhiteSpace(item.Patrimonial.TelefoneLocatario1) ? "" : item.Patrimonial.TelefoneLocatario1), "")); - tupleLists[0].Tuples.Add(new Tuple<string, string, string>("LOCATÁRIO 2", (string.IsNullOrWhiteSpace(item.Patrimonial.Locatario2) ? "" : item.Patrimonial.Locatario2.ToUpper()), "")); - tupleLists[0].Tuples.Add(new Tuple<string, string, string>("PREFIXO LOCATÁRIO 2", (string.IsNullOrWhiteSpace(item.Patrimonial.PrefixoLocatario2) ? "" : item.Patrimonial.PrefixoLocatario2), "")); - tupleLists[0].Tuples.Add(new Tuple<string, string, string>("NÚMERO LOCATÁRIO 2", (string.IsNullOrWhiteSpace(item.Patrimonial.TelefoneLocatario2) ? "" : item.Patrimonial.TelefoneLocatario2), "")); - tupleLists[0].Tuples.Add(new Tuple<string, string, string>("LOCATÁRIO 3", (string.IsNullOrWhiteSpace(item.Patrimonial.Locatario3) ? "" : item.Patrimonial.Locatario3.ToUpper()), "")); - tupleLists[0].Tuples.Add(new Tuple<string, string, string>("PREFIXO LOCATÁRIO 3", (string.IsNullOrWhiteSpace(item.Patrimonial.PrefixoLocatario3) ? "" : item.Patrimonial.PrefixoLocatario3), "")); - tupleLists[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>> observableCollection1 = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("COBERTURAS$", "", "") - }; - foreach (Cobertura cobertura in item.Coberturas) - { - observableCollection1.Add(new Tuple<string, string, string>(string.Format(" COBERTURA {0}$", item.Coberturas.IndexOf(cobertura) + 1), "", "")); - observableCollection1.Add(new Tuple<string, string, string>(" OBSERVAÇÃO", (string.IsNullOrWhiteSpace(cobertura.Observacao) ? "" : cobertura.Observacao.ToUpper()), "")); - decimal premio = cobertura.Premio; - observableCollection1.Add(new Tuple<string, string, string>(" PRÊMIO", premio.ToString("C", new CultureInfo("pt-BR", false)), "")); - premio = cobertura.Franquia; - observableCollection1.Add(new Tuple<string, string, string>(" FRANQUIA", premio.ToString("C", new CultureInfo("pt-BR", false)), "")); - premio = cobertura.Lmi; - observableCollection1.Add(new Tuple<string, string, string>(" L.M.I.", premio.ToString("C", new CultureInfo("pt-BR", false)), "")); - } - tupleLists.Add(new TupleList() - { - Tuples = observableCollection1 - }); - return tupleLists; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (!string.IsNullOrWhiteSpace(this.Imobiliaria) && this.Imobiliaria.Length > 60) - { - keyValuePairs.AddValue<string, string>("Imobiliaria", string.Format(Messages.MaiorQueLimite, 60), true); - } - if (!string.IsNullOrWhiteSpace(this.Locatario1) && this.Locatario1.Length > 100) - { - keyValuePairs.AddValue<string, string>("Locatario1", string.Format(Messages.MaiorQueLimite, 100), true); - } - if (!string.IsNullOrWhiteSpace(this.Locatario2) && this.Locatario2.Length > 100) - { - keyValuePairs.AddValue<string, string>("Locatario2", string.Format(Messages.MaiorQueLimite, 100), true); - } - if (!string.IsNullOrWhiteSpace(this.Locatario3) && this.Locatario3.Length > 100) - { - keyValuePairs.AddValue<string, string>("Locatario3", string.Format(Messages.MaiorQueLimite, 100), true); - } - if (!string.IsNullOrWhiteSpace(this.CpfLocatario1) && !this.CpfLocatario1.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("CpfLocatario1", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.CpfLocatario2) && !this.CpfLocatario2.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("CpfLocatario2", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.CpfLocatario3) && !this.CpfLocatario3.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("CpfLocatario3", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.Contato) && this.Contato.Length > 60) - { - keyValuePairs.AddValue<string, string>("Contato", string.Format(Messages.MaiorQueLimite, 60), true); - } - if (!string.IsNullOrWhiteSpace(this.Prefixo) && !this.Prefixo.ValidacaoPrefixo()) - { - keyValuePairs.AddValue<string, string>("Prefixo", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.Telefone) && !this.Telefone.ValidacaoTelefone()) - { - keyValuePairs.AddValue<string, string>("Telefone", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.PrefixoLocatario1) && !this.PrefixoLocatario1.ValidacaoPrefixo()) - { - keyValuePairs.AddValue<string, string>("PrefixoLocatario1", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.TelefoneLocatario1) && !this.TelefoneLocatario1.ValidacaoTelefone()) - { - keyValuePairs.AddValue<string, string>("TelefoneLocatario1", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.PrefixoLocatario2) && !this.PrefixoLocatario2.ValidacaoPrefixo()) - { - keyValuePairs.AddValue<string, string>("PrefixoLocatario2", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.TelefoneLocatario2) && !this.TelefoneLocatario2.ValidacaoTelefone()) - { - keyValuePairs.AddValue<string, string>("TelefoneLocatario2", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.PrefixoLocatario3) && !this.PrefixoLocatario3.ValidacaoPrefixo()) - { - keyValuePairs.AddValue<string, string>("PrefixoLocatario3", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.TelefoneLocatario3) && !this.TelefoneLocatario3.ValidacaoTelefone()) - { - keyValuePairs.AddValue<string, string>("TelefoneLocatario3", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(base.Bairro) && base.Bairro.Length > 60) - { - keyValuePairs.AddValue<string, string>("Bairro", string.Format(Messages.MaiorQueLimite, 60), true); - } - if (!string.IsNullOrWhiteSpace(base.Cidade) && base.Cidade.Length > 30) - { - keyValuePairs.AddValue<string, string>("Cidade", string.Format(Messages.MaiorQueLimite, 30), true); - } - if (!string.IsNullOrWhiteSpace(base.Numero) && base.Numero.Length > 10) - { - keyValuePairs.AddValue<string, string>("Numero", string.Format(Messages.MaiorQueLimite, 10), true); - } - if (string.IsNullOrWhiteSpace(base.Cep)) - { - keyValuePairs.AddValue<string, string>("Cep", Messages.Obrigatorio, true); - } - else if (!base.Cep.ValidacaoCep()) - { - keyValuePairs.AddValue<string, string>("Cep", Messages.Invalido, true); - } - if (string.IsNullOrWhiteSpace(base.Endereco)) - { - keyValuePairs.AddValue<string, string>("Endereco", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(base.Numero)) - { - keyValuePairs.AddValue<string, string>("Numero", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(base.Bairro)) - { - keyValuePairs.AddValue<string, string>("Bairro", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(base.Cidade)) - { - keyValuePairs.AddValue<string, string>("Cidade", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(base.Estado)) - { - keyValuePairs.AddValue<string, string>("Estado", Messages.Obrigatorio, true); - } - else if (!base.Estado.ValidacaoEstado()) - { - keyValuePairs.AddValue<string, string>("Estado", Messages.Invalido, true); - } - return keyValuePairs; - } - - public List<KeyValuePair<string, string>> ValidateGarantia() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (!string.IsNullOrWhiteSpace(this.Locatario1) && this.Locatario1.Length > 100) - { - keyValuePairs.AddValue<string, string>("Locatario1", string.Format(Messages.MaiorQueLimite, 100), true); - } - if (!string.IsNullOrWhiteSpace(this.Locatario2) && this.Locatario2.Length > 100) - { - keyValuePairs.AddValue<string, string>("Locatario2", string.Format(Messages.MaiorQueLimite, 100), true); - } - if (!string.IsNullOrWhiteSpace(this.Locatario3) && this.Locatario3.Length > 100) - { - keyValuePairs.AddValue<string, string>("Locatario3", string.Format(Messages.MaiorQueLimite, 100), true); - } - if (!string.IsNullOrWhiteSpace(this.CpfLocatario1) && !this.CpfLocatario1.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("CpfLocatario1", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.CpfLocatario2) && !this.CpfLocatario2.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("CpfLocatario2", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.CpfLocatario3) && !this.CpfLocatario3.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("CpfLocatario3", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.PrefixoLocatario1) && !this.PrefixoLocatario1.ValidacaoPrefixo()) - { - keyValuePairs.AddValue<string, string>("PrefixoLocatario1", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.TelefoneLocatario1) && !this.TelefoneLocatario1.ValidacaoTelefone()) - { - keyValuePairs.AddValue<string, string>("TelefoneLocatario1", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.PrefixoLocatario2) && !this.PrefixoLocatario2.ValidacaoPrefixo()) - { - keyValuePairs.AddValue<string, string>("PrefixoLocatario2", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.TelefoneLocatario2) && !this.TelefoneLocatario2.ValidacaoTelefone()) - { - keyValuePairs.AddValue<string, string>("TelefoneLocatario2", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.PrefixoLocatario3) && !this.PrefixoLocatario3.ValidacaoPrefixo()) - { - keyValuePairs.AddValue<string, string>("PrefixoLocatario3", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.TelefoneLocatario3) && !this.TelefoneLocatario3.ValidacaoTelefone()) - { - keyValuePairs.AddValue<string, string>("TelefoneLocatario3", Messages.Invalido, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Perfil.cs b/Gestor.Model/Model.Domain.Seguros/Perfil.cs deleted file mode 100644 index e9113b8..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Perfil.cs +++ /dev/null @@ -1,275 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class Perfil : DomainBase, IDomain - { - private string _nome; - - private string _cepCirculacao; - - private string _cepPernoite; - - public Antifurto? AntiFurto - { - get; - set; - } - - public string CepCirculacao - { - get - { - return this._cepCirculacao; - } - set - { - this._cepCirculacao = value; - } - } - - public string CepPernoite - { - get - { - return this._cepPernoite; - } - set - { - this._cepPernoite = value; - } - } - - public Gestor.Model.Domain.Seguros.Cliente Cliente - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Controle Controle - { - get; - set; - } - - public string Cpf - { - get; - set; - } - - public DistanciaTrabalho? DistanciaResidenciaTrabalho - { - get; - set; - } - - public Gestor.Model.Common.EstadoCivil? EstadoCivil - { - get; - set; - } - - public bool? EstenderCobertura - { - get; - set; - } - - public GaragemTrabalhoEstudo? GaragemEstudo - { - get; - set; - } - - public Gestor.Model.Common.GaragemResidencia? GaragemResidencia - { - get; - set; - } - - public GaragemTrabalhoEstudo? GaragemTrabalho - { - get; - set; - } - - public string Habilitacao - { - get; - set; - } - - public bool? Isencao - { - get; - set; - } - - public string KmMensal - { - get; - set; - } - - public DateTime? Nascimento - { - get; - set; - } - - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - public Gestor.Model.Common.Ocupacao? Ocupacao - { - get; - set; - } - - public Gestor.Model.Common.Relacao? Relacao - { - get; - set; - } - - public bool? SeguroVida - { - get; - set; - } - - public Gestor.Model.Common.Sexo? Sexo - { - get; - set; - } - - public Gestor.Model.Common.TempoHabilitacao? TempoHabilitacao - { - get; - set; - } - - public Gestor.Model.Common.TipoResidencia? TipoResidencia - { - get; - set; - } - - public UsoDependetes? UsoDependentes - { - get; - set; - } - - public bool? UsoProfissional - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Perfil perfil = this; - return new Func<List<KeyValuePair<string, string>>>(perfil.Validate); - } - } - - public int? VeiculoResidencia - { - get; - set; - } - - public Perfil() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - bool length; - bool flag; - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.Nascimento.HasValue && (DateTime.Compare(this.Nascimento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Nascimento.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("Nascimento", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (string.IsNullOrWhiteSpace(this.Nome)) - { - keyValuePairs.AddValue<string, string>("Nome", Messages.Obrigatorio, true); - } - else if (this.Nome.Length > 255) - { - keyValuePairs.AddValue<string, string>("Nome", string.Format(Messages.MaiorQueLimite, 255), true); - } - string kmMensal = this.KmMensal; - if (kmMensal != null) - { - length = kmMensal.Length > 5; - } - else - { - length = false; - } - if (length) - { - keyValuePairs.AddValue<string, string>("KmMensal", string.Format(Messages.MaiorQueLimite, 5), true); - } - string habilitacao = this.Habilitacao; - if (habilitacao != null) - { - flag = habilitacao.Length > 15; - } - else - { - flag = false; - } - if (flag) - { - keyValuePairs.AddValue<string, string>("Habilitacao", string.Format(Messages.MaiorQueLimite, 15), true); - } - if (!this.Relacao.HasValue) - { - keyValuePairs.AddValue<string, string>("Relacao", Messages.Obrigatorio, true); - } - if (!string.IsNullOrWhiteSpace(this.Cpf) && !this.Cpf.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("Cpf", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.CepPernoite) && !this.CepPernoite.FormataCep().ValidacaoCep()) - { - keyValuePairs.AddValue<string, string>("CepPernoite", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.CepCirculacao) && !this.CepCirculacao.FormataCep().ValidacaoCep()) - { - keyValuePairs.AddValue<string, string>("CepCirculacao", Messages.Invalido, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/PerfilEmpresa.cs b/Gestor.Model/Model.Domain.Seguros/PerfilEmpresa.cs deleted file mode 100644 index e772c5d..0000000 --- a/Gestor.Model/Model.Domain.Seguros/PerfilEmpresa.cs +++ /dev/null @@ -1,141 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class PerfilEmpresa : DomainBase, IDomain - { - public DateTime? AnoConstrucao - { - get; - set; - } - - public Gestor.Model.Common.AtividadeEmpresa? AtividadeEmpresa - { - get; - set; - } - - public string AtividadePrincipal - { - get; - set; - } - - public bool? CaixasEletronicos - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Cliente Cliente - { - get; - set; - } - - public bool? ConstrucaoReforma - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Controle Controle - { - get; - set; - } - - public bool? DivisaTerrenoBaldio - { - get; - set; - } - - public string EquipamentoIncendio - { - get; - set; - } - - public string EquipamentoSeguranca - { - get; - set; - } - - public bool? ExclusivoDeposito - { - get; - set; - } - - public bool? Isopainel - { - get; - set; - } - - public Gestor.Model.Common.Localizacao? Localizacao - { - get; - set; - } - - public bool? PatrimonioHistorio - { - get; - set; - } - - public bool? PossuiTelhado - { - get; - set; - } - - public Gestor.Model.Common.TipoConstrucao? TipoConstrucao - { - get; - set; - } - - public TipoPavimentacao? TipoPavimento - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - PerfilEmpresa perfilEmpresa = this; - return new Func<List<KeyValuePair<string, string>>>(perfilEmpresa.Validate); - } - } - - public PerfilEmpresa() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - Gestor.Model.Common.AtividadeEmpresa? atividadeEmpresa = this.AtividadeEmpresa; - if (atividadeEmpresa.GetValueOrDefault() == Gestor.Model.Common.AtividadeEmpresa.Outro & atividadeEmpresa.HasValue && (this.AtividadePrincipal == null || this.AtividadePrincipal == "")) - { - keyValuePairs.AddValue<string, string>("Atividade Empresa", Messages.Invalido, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/PermissaoArquivoDigital.cs b/Gestor.Model/Model.Domain.Seguros/PermissaoArquivoDigital.cs deleted file mode 100644 index 39ab35a..0000000 --- a/Gestor.Model/Model.Domain.Seguros/PermissaoArquivoDigital.cs +++ /dev/null @@ -1,69 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Validation; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class PermissaoArquivoDigital : DomainBase - { - [Log(true)] - public bool Consultar - { - get; - set; - } - - [Log(true)] - public bool Excluir - { - get; - set; - } - - [Log(true)] - public bool Incluir - { - get; - set; - } - - [ForceLog(true)] - [Log(true)] - public TipoArquivoDigital Tela - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Usuario Usuario - { - get; - set; - } - - public PermissaoArquivoDigital() - { - } - - public List<TupleList> Log() - { - return new List<TupleList>() - { - new TupleList() - { - Tuples = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("$TELA", this.Tela.GetDescription(), ""), - new Tuple<string, string, string>(" INCLUIR", (this.Incluir ? "SIM" : "NÃO"), ""), - new Tuple<string, string, string>(" EXCLUIR", (this.Excluir ? "SIM" : "NÃO"), "") - } - } - }; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/PermissaoUsuario.cs b/Gestor.Model/Model.Domain.Seguros/PermissaoUsuario.cs deleted file mode 100644 index 92ea6f6..0000000 --- a/Gestor.Model/Model.Domain.Seguros/PermissaoUsuario.cs +++ /dev/null @@ -1,57 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class PermissaoUsuario : DomainBase - { - [Log(true)] - public bool Alterar - { - get; - set; - } - - [Log(true)] - public bool Consultar - { - get; - set; - } - - [Log(true)] - public bool Excluir - { - get; - set; - } - - [Log(true)] - public bool Incluir - { - get; - set; - } - - [ForceLog(true)] - [Log(true)] - public TipoTela Tela - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Usuario Usuario - { - get; - set; - } - - public PermissaoUsuario() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Produto.cs b/Gestor.Model/Model.Domain.Seguros/Produto.cs deleted file mode 100644 index 85f07c5..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Produto.cs +++ /dev/null @@ -1,120 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using System.Threading; - -namespace Gestor.Model.Domain.Seguros -{ - public class Produto : DomainBase, IDomain, INotifyPropertyChanged - { - private bool _selecionado; - - private string _nome; - - [Log(true)] - public bool Ativo - { - get; - set; - } - - [Description("PRODUTO")] - [Log(true)] - [Name(true)] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - public bool Selecionado - { - get - { - return this._selecionado; - } - set - { - if (value == this._selecionado) - { - return; - } - this._selecionado = value; - this.OnPropertyChanged("Selecionado"); - } - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Produto produto = this; - return new Func<List<KeyValuePair<string, string>>>(produto.Validate); - } - } - - public Produto() - { - } - - 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(this.Nome) ? "" : this.Nome), ""), - new Tuple<string, string, string>("ATIVO", (this.Ativo ? "SIM" : "NÃO"), "") - } - } - }; - } - - protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) - { - PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged; - if (propertyChangedEventHandler == null) - { - return; - } - propertyChangedEventHandler(this, new PropertyChangedEventArgs(propertyName)); - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Nome)) - { - keyValuePairs.AddValue<string, string>("Nome", Messages.Obrigatorio, true); - } - else if (this.Nome.Length > 60) - { - keyValuePairs.AddValue<string, string>("Nome", string.Format(Messages.MaiorQueLimite, 60), true); - } - return keyValuePairs; - } - - public event PropertyChangedEventHandler PropertyChanged; - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Prospeccao.cs b/Gestor.Model/Model.Domain.Seguros/Prospeccao.cs deleted file mode 100644 index 059b612..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Prospeccao.cs +++ /dev/null @@ -1,400 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class Prospeccao : DomainBase, IDomain - { - private string _nome; - - private string _item; - - private string _observacao; - - public bool AbrirTarefa - { - get; - set; - } - - public List<ArquivoDigital> Anexos - { - get; - set; - } - - public bool CriarTarefa - { - get; - set; - } - - public DateTime? DataCriacao - { - get; - set; - } - - [Description("DOCUMENTO")] - public string Documento - { - get; - set; - } - - [Description("E-MAIL")] - public string Email - { - get; - set; - } - - public bool Excluido - { - get; - set; - } - - public long IdEmpresa - { - get; - set; - } - - [Description("ITEM")] - public string Item - { - get - { - string str = this._item; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._item = value; - } - } - - [Description("NASCIMENTO")] - [Tipo("DATA?")] - public DateTime? Nascimento - { - get; - set; - } - - [Description("CLIENTE")] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - public string Observacao - { - get - { - string str = this._observacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._observacao = value; - } - } - - [Description("DDD")] - public string Prefixo1 - { - get; - set; - } - - [Description("DDD")] - public string Prefixo2 - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Produto Produto - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Ramo Ramo - { - get; - set; - } - - public bool Renovacao - { - get; - set; - } - - [Description("STATUS")] - [Tipo("ENUM?")] - public StatusProspeccao? Status - { - get; - set; - } - - [Description("STATUS PERSONALIZADO")] - public StatusDeProspeccao StatusPersonalizado - { - get; - set; - } - - public Gestor.Model.Domain.Ferramentas.Tarefa Tarefa - { - get; - set; - } - - [Description("TELEFONE")] - public string Telefone1 - { - get; - set; - } - - [Description("TELEFONE")] - public string Telefone2 - { - get; - set; - } - - [Description("TIPO")] - public string Tipo - { - get; - set; - } - - public long UsuarioCriacao - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Prospeccao prospeccao = this; - return new Func<List<KeyValuePair<string, string>>>(prospeccao.Validate); - } - } - - [Description("VALOR")] - public decimal Valor - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Vendedor Vendedor - { - get; - set; - } - - [Description("VIGÊNCIA FINAL")] - [Tipo("DATA?")] - public DateTime? VigenciaFinal - { - get; - set; - } - - public Prospeccao() - { - } - - public List<TupleList> Log() - { - string shortDateString; - string nome; - string str; - string nome1; - string description; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("NOME", (string.IsNullOrWhiteSpace(this.Nome) ? "" : this.Nome), ""), - new Tuple<string, string, string>("DOCUMENTO", (string.IsNullOrWhiteSpace(this.Documento) ? "" : this.Documento), "") - }; - DateTime? nascimento = this.Nascimento; - if (!nascimento.HasValue) - { - shortDateString = ""; - } - else - { - nascimento = this.Nascimento; - if (nascimento.HasValue) - { - shortDateString = nascimento.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("NASCIMENTO", shortDateString, "")); - observableCollection.Add(new Tuple<string, string, string>("PRIMEIRO PREFIXO", (string.IsNullOrWhiteSpace(this.Prefixo1) ? "" : this.Prefixo1), "")); - observableCollection.Add(new Tuple<string, string, string>("PRIMEIRO TELEFONE", (string.IsNullOrWhiteSpace(this.Telefone1) ? "" : this.Telefone1), "")); - observableCollection.Add(new Tuple<string, string, string>("SEGUNDO PREFIXO", (string.IsNullOrWhiteSpace(this.Prefixo2) ? "" : this.Prefixo2), "")); - observableCollection.Add(new Tuple<string, string, string>("SEGUNDO TELEFONE", (string.IsNullOrWhiteSpace(this.Telefone2) ? "" : this.Telefone2), "")); - observableCollection.Add(new Tuple<string, string, string>("E-MAIL", (string.IsNullOrWhiteSpace(this.Email) ? "" : this.Email), "")); - observableCollection.Add(new Tuple<string, string, string>("ITEM", (string.IsNullOrWhiteSpace(this.Item) ? "" : this.Item), "")); - Gestor.Model.Domain.Seguros.Produto produto = this.Produto; - if (produto != null) - { - nome = produto.Nome; - } - else - { - nome = null; - } - observableCollection.Add(new Tuple<string, string, string>("PRODUTO", (string.IsNullOrWhiteSpace(nome) ? "" : this.Produto.Nome), "")); - nascimento = this.VigenciaFinal; - if (!nascimento.HasValue) - { - str = ""; - } - else - { - nascimento = this.VigenciaFinal; - if (nascimento.HasValue) - { - str = nascimento.GetValueOrDefault().ToShortDateString(); - } - else - { - str = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("VENCIMENTO", str, "")); - Gestor.Model.Domain.Seguros.Vendedor vendedor = this.Vendedor; - if (vendedor != null) - { - nome1 = vendedor.Nome; - } - else - { - nome1 = null; - } - observableCollection.Add(new Tuple<string, string, string>("VENDEDOR", (string.IsNullOrWhiteSpace(nome1) ? "" : this.Vendedor.Nome), "")); - StatusProspeccao? status = this.Status; - if (!status.HasValue) - { - description = ""; - } - else - { - status = this.Status; - if (status.HasValue) - { - description = status.GetValueOrDefault().GetDescription(); - } - else - { - description = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("STATUS", description, "")); - observableCollection.Add(new Tuple<string, string, string>("STATUS PERSONALIZADO", (this.StatusPersonalizado == null ? "" : this.StatusPersonalizado.Nome), "")); - observableCollection.Add(new Tuple<string, string, string>("OBSERVAÇÃO", (string.IsNullOrWhiteSpace(this.Observacao) ? "" : this.Observacao), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - List<TupleList> tupleLists1 = tupleLists; - if (this.Tarefa != null) - { - ObservableCollection<Tuple<string, string, string>> observableCollection1 = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("TAREFA$", "", ""), - new Tuple<string, string, string>(" RESPONSÁVEL", (string.IsNullOrWhiteSpace(this.Tarefa.Usuario.Nome) ? "" : this.Tarefa.Usuario.Nome), "") - }; - DateTime agendamento = this.Tarefa.Agendamento; - observableCollection1.Add(new Tuple<string, string, string>(" DATA DO AGENDAMENTO", agendamento.ToShortDateString(), "")); - agendamento = this.Tarefa.Agendamento; - observableCollection1.Add(new Tuple<string, string, string>(" HORA DO AGENDAMENTO", agendamento.ToShortTimeString(), "")); - tupleLists1.Add(new TupleList() - { - Tuples = observableCollection1 - }); - } - return tupleLists1; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.Nascimento.HasValue && (DateTime.Compare(this.Nascimento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Nascimento.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("Nascimento", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.VigenciaFinal.HasValue && (DateTime.Compare(this.VigenciaFinal.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.VigenciaFinal.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("VigenciaFinal|VENCIMENTO", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (string.IsNullOrWhiteSpace(this.Nome)) - { - keyValuePairs.AddValue<string, string>("Nome", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(this.Telefone1) && string.IsNullOrWhiteSpace(this.Telefone2) && string.IsNullOrWhiteSpace(this.Email)) - { - keyValuePairs.AddValue<string, string>("Telefone1|TELEFONE 1", Messages.Obrigatorio, true); - } - if (!this.VigenciaFinal.HasValue) - { - keyValuePairs.AddValue<string, string>("VigenciaFinal|VENCIMENTO", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(this.Item)) - { - keyValuePairs.AddValue<string, string>("Item", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/ProspeccaoToPrint.cs b/Gestor.Model/Model.Domain.Seguros/ProspeccaoToPrint.cs deleted file mode 100644 index 389234b..0000000 --- a/Gestor.Model/Model.Domain.Seguros/ProspeccaoToPrint.cs +++ /dev/null @@ -1,149 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using System; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class ProspeccaoToPrint - { - private string _nome; - - private string _item; - - [Description("DOCUMENTO")] - public string Documento - { - get; - set; - } - - [Description("E-MAIL")] - public string Email - { - get; - set; - } - - [Description("ITEM")] - public string Item - { - get - { - string str = this._item; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._item = value; - } - } - - [Description("NASCIMENTO")] - [Tipo("DATA?")] - public DateTime? Nascimento - { - get; - set; - } - - [Description("CLIENTE")] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - [Description("DDD")] - public string Prefixo1 - { - get; - set; - } - - [Description("DDD")] - public string Prefixo2 - { - get; - set; - } - - [Description("STATUS")] - [Tipo("ENUM?")] - public StatusProspeccao? Status - { - get; - set; - } - - [Description("STATUS PERSONALIZADO")] - public string StatusPersonalizadotoPrint - { - get; - set; - } - - [Description("TELEFONE")] - public string Telefone1 - { - get; - set; - } - - [Description("TELEFONE")] - public string Telefone2 - { - get; - set; - } - - [Description("TIPO")] - public string Tipo - { - get; - set; - } - - [Description("VALOR")] - public decimal Valor - { - get; - set; - } - - [Description("VENDEDOR")] - public string Vendedor - { - get; - set; - } - - [Description("VIGÊNCIA FINAL")] - [Tipo("DATA?")] - public DateTime? VigenciaFinal - { - get; - set; - } - - public ProspeccaoToPrint() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Qualificacao.cs b/Gestor.Model/Model.Domain.Seguros/Qualificacao.cs deleted file mode 100644 index 06e84ed..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Qualificacao.cs +++ /dev/null @@ -1,152 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Globalization; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class Qualificacao : DomainBase, IDomain - { - [Description("MÉDIA DE COMISSÃO BRONZE")] - [Log(true)] - public decimal Comissao1 - { - get; - set; - } - - [Description("MÉDIA DE COMISSÃO PRATA")] - [Log(true)] - public decimal Comissao2 - { - get; - set; - } - - [Description("MÉDIA DE COMISSÃO OURO")] - [Log(true)] - public decimal Comissao3 - { - get; - set; - } - - [Description("PRÊMIO LÍQUIDO BROZE")] - [Log(true)] - public decimal Liquido1 - { - get; - set; - } - - [Description("PRÊMIO LÍQUIDO PRATA")] - [Log(true)] - public decimal Liquido2 - { - get; - set; - } - - [Description("PRÊMIO LÍQUIDO OURO")] - [Log(true)] - public decimal Liquido3 - { - get; - set; - } - - [Description("RESULTADO BRONZE")] - [Log(true)] - public decimal Resultado1 - { - get; - set; - } - - [Description("RESULTADO PRATA")] - [Log(true)] - public decimal Resultado2 - { - get; - set; - } - - [Description("RESULTADO OURO")] - [Log(true)] - public decimal Resultado3 - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Qualificacao qualificacao = this; - return new Func<List<KeyValuePair<string, string>>>(qualificacao.Validate); - } - } - - public Qualificacao() - { - } - - public List<TupleList> Log() - { - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("PRÊMIO LÍQUIDO$", "", "") - }; - decimal liquido1 = this.Liquido1; - observableCollection.Add(new Tuple<string, string, string>(" BRONZE", liquido1.ToString(new CultureInfo("pt-BR")), "")); - liquido1 = this.Liquido2; - observableCollection.Add(new Tuple<string, string, string>(" PRATA", liquido1.ToString(new CultureInfo("pt-BR")), "")); - liquido1 = this.Liquido3; - observableCollection.Add(new Tuple<string, string, string>(" OURO", liquido1.ToString(new CultureInfo("pt-BR")), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - TupleList tupleList1 = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection1 = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("MÉDIA DE COMISSÃO$", "", "") - }; - liquido1 = this.Comissao1; - observableCollection1.Add(new Tuple<string, string, string>(" BRONZE", liquido1.ToString(new CultureInfo("pt-BR")), "")); - liquido1 = this.Comissao2; - observableCollection1.Add(new Tuple<string, string, string>(" PRATA", liquido1.ToString(new CultureInfo("pt-BR")), "")); - liquido1 = this.Comissao3; - observableCollection1.Add(new Tuple<string, string, string>(" OURO", liquido1.ToString(new CultureInfo("pt-BR")), "")); - tupleList1.Tuples = observableCollection1; - tupleLists.Add(tupleList1); - TupleList tupleList2 = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection2 = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("RESULTADO$", "", "") - }; - liquido1 = this.Resultado1; - observableCollection2.Add(new Tuple<string, string, string>(" BRONZE", liquido1.ToString(new CultureInfo("pt-BR")), "")); - liquido1 = this.Resultado2; - observableCollection2.Add(new Tuple<string, string, string>(" PRATA", liquido1.ToString(new CultureInfo("pt-BR")), "")); - liquido1 = this.Resultado3; - observableCollection2.Add(new Tuple<string, string, string>(" OURO", liquido1.ToString(new CultureInfo("pt-BR")), "")); - tupleList2.Tuples = observableCollection2; - tupleLists.Add(tupleList2); - return tupleLists; - } - - public List<KeyValuePair<string, string>> Validate() - { - return ValidationHelper.AddValue(); - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Ramo.cs b/Gestor.Model/Model.Domain.Seguros/Ramo.cs deleted file mode 100644 index 32f3099..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Ramo.cs +++ /dev/null @@ -1,165 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Globalization; -using System.Runtime.CompilerServices; -using System.Threading; - -namespace Gestor.Model.Domain.Seguros -{ - public class Ramo : DomainBase, IDomain, INotifyPropertyChanged - { - private bool _selecionado; - - private string _nome; - - private string _ramoSusep; - - [Log(true)] - public bool Ativo - { - get; - set; - } - - public long CodigoSusep - { - get; - set; - } - - public bool Fatura - { - get; - set; - } - - [Log(true)] - public decimal Iof - { - get; - set; - } - - [Description("RAMO")] - [Log(true)] - [Name(true)] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - public string RamoSusep - { - get - { - string str = this._ramoSusep; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._ramoSusep = value; - } - } - - public bool Selecionado - { - get - { - return this._selecionado; - } - set - { - if (value == this._selecionado) - { - return; - } - this._selecionado = value; - this.OnPropertyChanged("Selecionado"); - } - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Ramo ramo = this; - return new Func<List<KeyValuePair<string, string>>>(ramo.Validate); - } - } - - public Ramo() - { - } - - public List<TupleList> Log(List<CoberturaPadrao> listCoberturas) - { - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("NOME", (string.IsNullOrWhiteSpace(this.Nome) ? "" : this.Nome), "") - }; - decimal iof = this.Iof / new decimal(100); - observableCollection.Add(new Tuple<string, string, string>("I.O.F.", iof.ToString("P", new CultureInfo("pt-BR", false)), "")); - observableCollection.Add(new Tuple<string, string, string>("ATIVO", (this.Ativo ? "SIM" : "NÃO"), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - List<TupleList> tupleLists1 = tupleLists; - ObservableCollection<Tuple<string, string, string>> observableCollection1 = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("COBERTURAS$", "", "") - }; - foreach (CoberturaPadrao listCobertura in listCoberturas) - { - observableCollection1.Add(new Tuple<string, string, string>(string.Format(" COBERTURA {0}$", listCoberturas.IndexOf(listCobertura) + 1), "", "")); - observableCollection1.Add(new Tuple<string, string, string>(" DESCRIÇÃO", (string.IsNullOrWhiteSpace(listCobertura.Descricao) ? "" : listCobertura.Descricao.ToUpper()), "")); - observableCollection1.Add(new Tuple<string, string, string>(" PADRÃO", (listCobertura.Padrao ? "SIM" : "NÃO"), "")); - } - tupleLists1.Add(new TupleList() - { - Tuples = observableCollection1 - }); - return tupleLists1; - } - - protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) - { - PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged; - if (propertyChangedEventHandler == null) - { - return; - } - propertyChangedEventHandler(this, new PropertyChangedEventArgs(propertyName)); - } - - public List<KeyValuePair<string, string>> Validate() - { - return ValidationHelper.AddValue(); - } - - public event PropertyChangedEventHandler PropertyChanged; - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Repasse.cs b/Gestor.Model/Model.Domain.Seguros/Repasse.cs deleted file mode 100644 index 691586a..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Repasse.cs +++ /dev/null @@ -1,187 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Gestor.Model.Validation; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class Repasse : DomainBase, IDomain - { - private string _incidenciaVendedor = ""; - - private string _pgtoVendedor = ""; - - public bool Ativo - { - get; - set; - } - - public BaseRepasse? Base - { - get; - set; - } - - public FormaRepasse? Forma - { - get; - set; - } - - public TipoIncidencia? Incidencia - { - get; - set; - } - - public string IncidenciaVendedor - { - get - { - string description = this.Incidencia.GetDescription(); - string str = description; - this._incidenciaVendedor = description; - return str; - } - } - - public string PagtoVendedor - { - get - { - string description = this.Forma.GetDescription(); - string str = description; - this._pgtoVendedor = description; - return str; - } - } - - public Gestor.Model.Domain.Seguros.Ramo Ramo - { - get; - set; - } - - public long? Seguradora - { - get; - set; - } - - public TipoRepasse? Tipo - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Repasse repasse = this; - return new Func<List<KeyValuePair<string, string>>>(repasse.Validate); - } - } - - public decimal ValorNovo - { - get; - set; - } - - public decimal ValorRenovacao - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Vendedor Vendedor - { - get; - set; - } - - public List<VinculoRepasse> Vinculo - { - get; - set; - } - - public Repasse() - { - } - - public List<TupleList> Log() - { - return new List<TupleList>() - { - new TupleList() - { - Tuples = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("TIPO", this.Tipo.GetDescription(), ""), - new Tuple<string, string, string>("VALOR NOVO", string.Format("{0:##.00}", this.ValorNovo), ""), - new Tuple<string, string, string>("VALOR RENOVAÇÃO", string.Format("{0:##.00}", this.ValorRenovacao), ""), - new Tuple<string, string, string>("INCIDÊNCIA", this.Incidencia.GetDescription(), ""), - new Tuple<string, string, string>("FORMA PAGAMENTO", this.Forma.GetDescription(), ""), - new Tuple<string, string, string>("BASE PAGAMENTO", this.Base.GetDescription(), ""), - new Tuple<string, string, string>("ATIVO", (this.Ativo ? "SIM" : "NÃO"), "") - } - } - }; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.Vendedor == null) - { - keyValuePairs.AddValue<string, string>("Vendedor", Messages.Obrigatorio, true); - } - if (TipoRepasse.CoCorretagem != this.Tipo.GetValueOrDefault() && this.ValorNovo == decimal.Zero) - { - keyValuePairs.AddValue<string, string>("ValorNovo", Messages.Obrigatorio, true); - } - if (TipoRepasse.CoCorretagem != this.Tipo.GetValueOrDefault() && this.ValorRenovacao == decimal.Zero) - { - keyValuePairs.AddValue<string, string>("ValorRenovacao", Messages.Obrigatorio, true); - } - if (!this.Tipo.HasValue) - { - keyValuePairs.AddValue<string, string>("Tipo", Messages.Obrigatorio, true); - } - if (!this.Incidencia.HasValue && this.Forma.HasValue && this.Forma.GetValueOrDefault() == FormaRepasse.Recebimento) - { - keyValuePairs.AddValue<string, string>("Incidencia", Messages.Obrigatorio, true); - } - if (!this.Forma.HasValue) - { - keyValuePairs.AddValue<string, string>("Forma", Messages.Obrigatorio, true); - } - if (this.Forma.HasValue && this.Forma.GetValueOrDefault() != FormaRepasse.Recebimento) - { - if (!this.Base.HasValue) - { - keyValuePairs.AddValue<string, string>("Base", Messages.Obrigatorio, true); - } - if (this.Forma.GetValueOrDefault() == FormaRepasse.Prazo && this.Base.GetValueOrDefault() != BaseRepasse.Vencimento) - { - keyValuePairs.AddValue<string, string>("Base", Messages.Invalido, true); - } - } - if (this.Forma.HasValue && this.Forma.GetValueOrDefault() == FormaRepasse.Recebimento && this.Base.HasValue) - { - keyValuePairs.AddValue<string, string>("Base", Messages.Invalido, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/ResponsavelAssinatura.cs b/Gestor.Model/Model.Domain.Seguros/ResponsavelAssinatura.cs deleted file mode 100644 index 6896680..0000000 --- a/Gestor.Model/Model.Domain.Seguros/ResponsavelAssinatura.cs +++ /dev/null @@ -1,109 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class ResponsavelAssinatura : DomainBase, IDomain - { - public string DocumentoResponsavel - { - get; - set; - } - - public string EmailResponsavel - { - get; - set; - } - - public long IdCliente - { - get; - set; - } - - public string NomeResponsavel - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - ResponsavelAssinatura responsavelAssinatura = this; - return new Func<List<KeyValuePair<string, string>>>(responsavelAssinatura.Validate); - } - } - - public ResponsavelAssinatura() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - int? nullable; - int? nullable1; - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.NomeResponsavel)) - { - nullable = null; - nullable1 = nullable; - } - else - { - string nomeResponsavel = this.NomeResponsavel; - if (nomeResponsavel != null) - { - nullable1 = new int?((int)nomeResponsavel.Trim().Split(new char[] { ' ' }).Length); - } - else - { - nullable = null; - nullable1 = nullable; - } - } - int? nullable2 = nullable1; - if (nullable2.HasValue) - { - nullable = nullable2; - if (nullable.GetValueOrDefault() <= 1 & nullable.HasValue) - { - keyValuePairs.AddValue<string, string>("NomeResponsavel", Messages.NomeInvalido, true); - } - } - if (!string.IsNullOrWhiteSpace(this.DocumentoResponsavel) && !this.DocumentoResponsavel.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("DocumentoResponsavel", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.EmailResponsavel) && !this.EmailResponsavel.ValidacaoEmail()) - { - keyValuePairs.AddValue<string, string>("EmailResponsavel", Messages.Invalido, true); - } - if (nullable2.HasValue || !string.IsNullOrWhiteSpace(this.DocumentoResponsavel) || !string.IsNullOrWhiteSpace(this.EmailResponsavel)) - { - if (!nullable2.HasValue) - { - keyValuePairs.AddValue<string, string>("NomeResponsavel", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(this.DocumentoResponsavel)) - { - keyValuePairs.AddValue<string, string>("DocumentoResponsavel", Messages.Obrigatorio, true); - } - if (string.IsNullOrWhiteSpace(this.EmailResponsavel)) - { - keyValuePairs.AddValue<string, string>("EmailResponsavel", Messages.Obrigatorio, true); - } - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/RestricaoUsuario.cs b/Gestor.Model/Model.Domain.Seguros/RestricaoUsuario.cs deleted file mode 100644 index 0912cb2..0000000 --- a/Gestor.Model/Model.Domain.Seguros/RestricaoUsuario.cs +++ /dev/null @@ -1,60 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Validation; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class RestricaoUsuario : DomainBase - { - public string Ajuda - { - get; - set; - } - - [Log(true)] - public bool Restricao - { - get; - set; - } - - [ForceLog(true)] - [Log(true)] - public TipoRestricao Tipo - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Usuario Usuario - { - get; - set; - } - - public RestricaoUsuario() - { - } - - 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", this.Tipo.GetDescription(), ""), - new Tuple<string, string, string>(" RESTRIÇÃO ATIVA?", (this.Restricao ? "SIM" : "NÃO"), "") - } - } - }; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/RestricaoUsuarioCamposRelatorios.cs b/Gestor.Model/Model.Domain.Seguros/RestricaoUsuarioCamposRelatorios.cs deleted file mode 100644 index 450780e..0000000 --- a/Gestor.Model/Model.Domain.Seguros/RestricaoUsuarioCamposRelatorios.cs +++ /dev/null @@ -1,61 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class RestricaoUsuarioCamposRelatorios : DomainBase - { - [ForceLog(true)] - [Log(true)] - public string Campo - { - get; - set; - } - - [ForceLog(true)] - [Log(true)] - public Gestor.Model.Common.Relatorio Relatorio - { - get; - set; - } - - [Log(true)] - public bool Restricao - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Usuario Usuario - { - get; - set; - } - - public RestricaoUsuarioCamposRelatorios() - { - } - - 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", this.Campo, ""), - new Tuple<string, string, string>(" RESTRIÇÃO ATIVA?", (this.Restricao ? "SIM" : "NÃO"), "") - } - } - }; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/RiscosDiversos.cs b/Gestor.Model/Model.Domain.Seguros/RiscosDiversos.cs deleted file mode 100644 index 1f8772f..0000000 --- a/Gestor.Model/Model.Domain.Seguros/RiscosDiversos.cs +++ /dev/null @@ -1,130 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Globalization; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class RiscosDiversos : DomainBase, IDomain - { - private string _observacao; - - public string Area - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Item Item - { - get; - set; - } - - public string Observacao - { - get - { - string str = this._observacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._observacao = value; - } - } - - public decimal? SubsidioEstadual - { - get; - set; - } - - public decimal? SubsidioFederal - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - RiscosDiversos riscosDiverso = this; - return new Func<List<KeyValuePair<string, string>>>(riscosDiverso.Validate); - } - } - - public RiscosDiversos() - { - } - - public static List<TupleList> Log(Gestor.Model.Domain.Seguros.Item item) - { - List<TupleList> tupleLists = 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>(string.Format(" COBERTURA {0}$", item.Coberturas.IndexOf(cobertura) + 1), "", "")); - observableCollection.Add(new Tuple<string, string, string>(" OBSERVAÇÃO", (string.IsNullOrWhiteSpace(cobertura.Observacao) ? "" : cobertura.Observacao.ToUpper()), "")); - decimal premio = cobertura.Premio; - observableCollection.Add(new Tuple<string, string, string>(" PRÊMIO", premio.ToString("C", new CultureInfo("pt-BR", false)), "")); - premio = cobertura.Franquia; - observableCollection.Add(new Tuple<string, string, string>(" FRANQUIA", premio.ToString("C", new CultureInfo("pt-BR", false)), "")); - premio = cobertura.Lmi; - observableCollection.Add(new Tuple<string, string, string>(" L.M.I.", premio.ToString("C", new CultureInfo("pt-BR", false)), "")); - } - tupleLists.Add(new TupleList() - { - Tuples = observableCollection - }); - return tupleLists; - } - - public List<KeyValuePair<string, string>> Validate() - { - bool id; - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Observacao)) - { - Gestor.Model.Domain.Seguros.Item item = this.Item; - if (item != null) - { - id = item.Documento.Controle.Ramo.Id != (long)23; - } - else - { - id = true; - } - if (id) - { - keyValuePairs.AddValue<string, string>("Observacao", Messages.Obrigatorio, true); - } - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Seguradora.cs b/Gestor.Model/Model.Domain.Seguros/Seguradora.cs deleted file mode 100644 index d036a66..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Seguradora.cs +++ /dev/null @@ -1,1804 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using System.Threading; - -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; - - [Log(true)] - public string Assistencia - { - get - { - string str = this._assistencia; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._assistencia = value; - } - } - - [Log(true)] - public bool Ativo - { - get; - set; - } - - public string Codigo - { - get - { - string str = this._codigo; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._codigo = value; - } - } - - public string CodigoSeguradora - { - get - { - string str = this._codigoSeguradora; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._codigoSeguradora = value; - } - } - - public string CodigoSusep - { - get - { - string str = this._codigoSusep; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._codigoSusep = value; - } - } - - public List<SeguradoraContato> Contatos - { - get; - set; - } - - public string CustomId - { - get; - set; - } - - [Log(true)] - public string Documento - { - get - { - string str = this._documento; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._documento = value; - } - } - - public List<SeguradoraEndereco> Enderecos - { - get; - set; - } - - public long? IdAggilizador - { - get; - set; - } - - [Description("LINK APP ANDROID")] - [Log(true)] - public string LinkAppAndroid - { - get; - set; - } - - [Description("LINK APP IOS")] - [Log(true)] - public string LinkAppIos - { - get; - set; - } - - [Description("SEGURADORA")] - [Log(true)] - [Name(true)] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - public string NomeSocial - { - get - { - string str = this._nomeSocial; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - string str; - string nome; - this._nomeSocial = value; - if (!string.IsNullOrWhiteSpace(value)) - { - this.NomeSocialBanco = (this.NomeSocialBanco == " " ? "" : value); - return; - } - long id = base.Id; - if (id <= (long)694) - { - if (id <= (long)678) - { - long num = id - (long)1; - if (num <= (long)606) - { - switch ((uint)num) - { - case 0: - { - this.NomeSocial = "ABSOLUTA"; - return; - } - case 1: - case 2: - case 3: - case 4: - { - this.NomeSocial = "ACE"; - return; - } - case 5: - case 6: - case 7: - case 19: - case 20: - case 21: - case 22: - case 23: - case 28: - case 29: - case 30: - case 31: - case 35: - case 36: - case 37: - case 38: - case 42: - case 43: - case 44: - case 45: - case 46: - case 47: - case 49: - case 50: - case 51: - case 57: - case 58: - case 61: - case 62: - case 66: - case 67: - case 68: - case 70: - case 71: - case 72: - case 73: - case 74: - case 75: - case 76: - case 77: - case 78: - case 79: - case 80: - case 81: - case 82: - case 83: - case 84: - case 85: - case 86: - case 87: - case 97: - case 101: - case 102: - case 103: - case 104: - case 109: - case 110: - case 113: - case 114: - case 118: - case 121: - case 122: - case 123: - case 124: - case 127: - case 131: - case 132: - case 133: - case 134: - case 135: - case 136: - case 137: - case 138: - case 139: - case 140: - case 141: - case 142: - case 143: - case 146: - case 147: - case 148: - case 149: - case 150: - case 153: - case 154: - case 155: - case 156: - case 157: - case 158: - case 159: - case 162: - case 163: - case 164: - case 165: - case 166: - case 167: - case 168: - case 169: - case 170: - case 171: - case 172: - case 173: - case 174: - case 175: - case 179: - case 182: - case 183: - case 186: - case 187: - case 189: - case 190: - case 191: - case 192: - case 193: - case 194: - case 195: - case 198: - case 199: - case 202: - case 203: - case 204: - case 207: - case 208: - case 209: - case 210: - case 211: - case 214: - case 219: - case 220: - case 223: - case 224: - case 227: - case 228: - case 229: - case 233: - case 234: - case 237: - case 238: - case 239: - case 240: - case 244: - case 245: - case 246: - case 247: - case 250: - case 252: - case 253: - case 256: - case 261: - case 262: - case 263: - case 270: - case 276: - case 277: - case 278: - case 279: - case 280: - case 281: - case 282: - case 286: - case 287: - case 288: - case 300: - case 301: - case 302: - case 303: - case 304: - case 305: - case 306: - case 312: - case 313: - case 314: - case 315: - case 316: - case 329: - case 331: - case 332: - case 333: - case 334: - case 335: - case 338: - case 339: - case 341: - case 342: - case 343: - case 344: - case 350: - case 357: - case 358: - case 359: - case 360: - case 361: - case 362: - case 363: - case 366: - case 367: - case 368: - case 369: - case 370: - case 371: - case 373: - case 376: - case 377: - case 381: - case 382: - case 383: - case 388: - case 389: - case 390: - case 391: - case 392: - case 393: - case 396: - case 397: - case 402: - case 403: - case 404: - case 405: - case 406: - case 407: - case 408: - case 409: - case 410: - case 413: - case 414: - case 415: - case 419: - case 420: - case 421: - case 422: - case 425: - case 433: - case 434: - case 442: - case 443: - case 444: - case 451: - case 452: - case 453: - case 454: - case 457: - case 460: - case 461: - case 462: - case 463: - case 464: - case 467: - case 468: - case 469: - case 470: - case 472: - case 473: - case 488: - case 495: - case 496: - case 502: - case 504: - case 505: - case 506: - case 510: - case 511: - case 512: - case 519: - case 524: - case 525: - case 526: - case 529: - case 530: - case 531: - case 532: - case 533: - case 534: - case 535: - case 536: - case 552: - case 555: - case 562: - case 563: - case 564: - case 565: - case 566: - case 567: - case 568: - case 575: - case 576: - case 577: - case 578: - case 580: - case 585: - case 586: - case 587: - case 588: - case 589: - case 592: - case 596: - case 598: - case 599: - case 600: - case 601: - { - str = (base.Id == 0 ? " " : this.NomeSocial); - this.NomeSocialBanco = str; - nome = this.Nome ?? ""; - this.NomeSocial = nome; - return; - } - case 8: - case 9: - case 517: - case 518: - { - this.NomeSocial = "AIG"; - return; - } - case 10: - { - this.NomeSocial = "AJAX"; - return; - } - case 11: - case 12: - case 13: - { - this.NomeSocial = "ALFA"; - return; - } - case 14: - case 15: - case 16: - case 176: - case 177: - { - this.NomeSocial = "ALIANÇA"; - return; - } - case 17: - case 18: - { - this.NomeSocial = "ALLIANZ"; - return; - } - case 24: - case 25: - case 26: - case 180: - { - this.NomeSocial = "ALLSEG"; - return; - } - case 27: - case 590: - case 591: - case 593: - { - this.NomeSocial = "AMIL"; - return; - } - case 32: - case 33: - case 34: - { - this.NomeSocial = "APLUB"; - return; - } - case 39: - case 40: - { - this.NomeSocial = "ARCH"; - return; - } - case 41: - { - this.NomeSocial = "ARGO"; - return; - } - case 48: - case 243: - { - this.NomeSocial = "GENERALI"; - return; - } - case 52: - case 53: - case 54: - case 55: - case 56: - { - this.NomeSocial = "ATLANTICA"; - return; - } - case 59: - case 60: - { - this.NomeSocial = "AUSTRAL"; - return; - } - case 63: - case 64: - case 65: - case 602: - { - this.NomeSocial = "AXA"; - return; - } - case 69: - { - this.NomeSocial = "AZUL"; - return; - } - case 88: - case 89: - case 90: - case 91: - case 92: - case 583: - { - this.NomeSocial = "BRADESCO"; - return; - } - case 93: - { - this.NomeSocial = "BRASIL LIBANO"; - return; - } - case 94: - { - this.NomeSocial = "BRASILCAP"; - return; - } - case 95: - case 96: - { - this.NomeSocial = "BRASILPREV"; - return; - } - case 98: - case 100: - { - this.NomeSocial = "BRASILUSITANA"; - return; - } - case 99: - { - this.NomeSocial = "BRASIL VEÍCULOS"; - return; - } - case 105: - case 106: - case 107: - case 108: - case 372: - { - this.NomeSocial = "CAIXA"; - return; - } - case 111: - case 112: - { - this.NomeSocial = "CAPEMISA"; - return; - } - case 115: - case 116: - case 117: - { - this.NomeSocial = "CARDIF"; - return; - } - case 119: - case 120: - { - this.NomeSocial = "CASTELLO"; - return; - } - case 125: - case 126: - { - this.NomeSocial = "CESCEBRASIL"; - return; - } - case 128: - case 129: - { - this.NomeSocial = "CHARTIS"; - return; - } - case 130: - { - this.NomeSocial = "CHUBB"; - return; - } - case 144: - case 184: - case 185: - { - this.NomeSocial = "INTERNACIONAL"; - return; - } - case 145: - case 289: - case 292: - case 293: - case 294: - { - this.NomeSocial = "ITAÉ"; - return; - } - case 151: - case 152: - case 188: - case 416: - case 417: - case 418: - { - this.NomeSocial = "REAL"; - return; - } - case 160: - case 161: - { - this.NomeSocial = "URBANIA"; - return; - } - case 178: - case 251: - { - this.NomeSocial = "GRALHA AZUL"; - return; - } - case 181: - { - this.NomeSocial = "EXCELSIOR"; - return; - } - case 196: - case 197: - { - this.NomeSocial = "CREDITO Y CAUCIAN"; - return; - } - case 200: - case 201: - { - this.NomeSocial = "CRUZEIRO DO SUL"; - return; - } - case 205: - case 206: - { - this.NomeSocial = "ECC"; - return; - } - case 212: - case 213: - { - this.NomeSocial = "EQUITATIVA"; - return; - } - case 215: - { - this.NomeSocial = "ESSOR"; - return; - } - case 216: - case 217: - case 218: - { - this.NomeSocial = "EULER HERMES"; - return; - } - case 221: - case 222: - { - this.NomeSocial = "EVEREST"; - return; - } - case 225: - case 226: - { - this.NomeSocial = "FACTORY"; - return; - } - case 230: - case 231: - case 232: - { - this.NomeSocial = "FEDERAL"; - return; - } - case 235: - case 236: - { - this.NomeSocial = "FINANCIAL"; - return; - } - case 241: - case 242: - { - this.NomeSocial = "GENERAL"; - return; - } - case 248: - case 249: - { - this.NomeSocial = "GNPP"; - return; - } - case 254: - case 255: - { - this.NomeSocial = "HANNOVER"; - return; - } - case 257: - case 258: - case 259: - case 260: - case 569: - case 597: - { - this.NomeSocial = "HDI"; - return; - } - case 264: - case 265: - case 266: - case 267: - case 268: - case 269: - { - this.NomeSocial = "HSBC"; - return; - } - case 271: - case 272: - { - this.NomeSocial = "ICATU"; - return; - } - case 273: - case 274: - { - this.NomeSocial = "IF P&C INSURANCE"; - return; - } - case 275: - { - this.NomeSocial = "INDIANA"; - return; - } - case 283: - case 284: - case 285: - case 603: - { - this.NomeSocial = "KOVR"; - return; - } - case 290: - case 291: - case 295: - case 296: - { - this.NomeSocial = "ITAÚ"; - return; - } - case 297: - case 298: - case 299: - { - this.NomeSocial = "J. MALUCELLI"; - return; - } - case 307: - case 308: - case 309: - { - this.NomeSocial = "YELUM"; - return; - } - case 310: - case 311: - { - this.NomeSocial = "LIDERANÇA"; - return; - } - case 317: - case 318: - case 319: - case 320: - case 321: - case 322: - case 323: - case 324: - case 325: - case 326: - case 327: - case 328: - { - this.NomeSocial = "MAPFRE"; - return; - } - case 330: - case 542: - case 561: - { - this.NomeSocial = "YASUDA MARITIMA"; - return; - } - case 336: - case 337: - { - this.NomeSocial = "MBM"; - return; - } - case 340: - { - this.NomeSocial = "METLIFE"; - return; - } - case 345: - case 346: - case 347: - { - this.NomeSocial = "MITSUI"; - return; - } - case 348: - case 349: - { - this.NomeSocial = "MONGERAL"; - return; - } - case 351: - case 352: - case 353: - case 354: - case 355: - case 356: - { - this.NomeSocial = "MONTEPIO"; - return; - } - case 364: - case 365: - case 380: - { - this.NomeSocial = "NATIONAL"; - return; - } - case 374: - case 375: - { - this.NomeSocial = "NOVA YORK"; - return; - } - case 378: - case 379: - { - this.NomeSocial = "ODYSSEY"; - return; - } - case 384: - case 385: - { - this.NomeSocial = "PARANÁ"; - return; - } - case 386: - case 387: - { - this.NomeSocial = "PARIS"; - return; - } - case 394: - case 395: - { - this.NomeSocial = "PLANALTO"; - return; - } - case 398: - case 399: - case 400: - case 401: - case 553: - case 554: - case 573: - { - this.NomeSocial = "PORTO SEGURO"; - return; - } - case 411: - case 412: - { - this.NomeSocial = "PRUDENTIAL"; - return; - } - case 423: - case 424: - { - this.NomeSocial = "ROYAL & SUN ALLIANCE"; - return; - } - case 426: - case 427: - case 428: - { - this.NomeSocial = "SABEMI"; - return; - } - case 429: - case 430: - case 431: - case 432: - { - this.NomeSocial = "SAFRA"; - return; - } - case 435: - case 436: - case 437: - { - this.NomeSocial = "SANTANDER"; - return; - } - case 438: - case 439: - { - this.NomeSocial = "SANTOS"; - return; - } - case 440: - case 441: - { - this.NomeSocial = "SANTOS"; - return; - } - case 445: - case 446: - case 447: - case 448: - { - this.NomeSocial = "SCOR"; - return; - } - case 449: - case 450: - { - this.NomeSocial = "SDB"; - return; - } - case 455: - case 456: - { - this.NomeSocial = "MINEIRA"; - return; - } - case 458: - case 459: - { - this.NomeSocial = "PONTUAL"; - return; - } - case 465: - case 466: - { - this.NomeSocial = "SIRIUS"; - return; - } - case 471: - case 594: - { - this.NomeSocial = "SOMPO"; - return; - } - case 474: - case 475: - case 476: - case 477: - case 478: - case 479: - case 480: - case 481: - case 482: - case 483: - case 484: - case 485: - case 486: - case 487: - case 557: - case 579: - { - this.NomeSocial = "SULAMERICA"; - return; - } - case 489: - case 490: - case 491: - case 492: - case 493: - case 494: - { - this.NomeSocial = "SWISS"; - return; - } - case 497: - case 498: - case 499: - case 500: - case 501: - { - this.NomeSocial = "TOKIO"; - return; - } - case 503: - { - this.NomeSocial = "TOTAL"; - return; - } - case 507: - case 508: - case 509: - { - this.NomeSocial = "TREVO"; - return; - } - case 513: - case 514: - case 515: - case 516: - { - this.NomeSocial = "UNIÃO"; - return; - } - case 520: - case 521: - case 584: - case 595: - { - this.NomeSocial = "UNIMED"; - return; - } - case 522: - case 523: - { - this.NomeSocial = "UNIVERSAL"; - return; - } - case 527: - case 528: - { - this.NomeSocial = "VALOR CAPITALIZAÇÃO"; - return; - } - case 537: - case 538: - case 539: - case 540: - case 541: - { - this.NomeSocial = "XL"; - return; - } - case 543: - case 544: - case 545: - case 546: - case 547: - case 548: - case 549: - case 550: - case 551: - { - this.NomeSocial = "ZURICH"; - return; - } - case 556: - { - this.NomeSocial = "SUHAI"; - return; - } - case 558: - { - this.NomeSocial = "SANCOR"; - return; - } - case 559: - { - this.NomeSocial = "AGROBRASIL"; - return; - } - case 560: - case 570: - { - this.NomeSocial = "SURA"; - return; - } - case 571: - case 572: - case 574: - case 605: - case 606: - { - this.NomeSocial = "SÃO FRANCISCO"; - return; - } - case 581: - { - this.NomeSocial = "SANTA CASA"; - return; - } - case 582: - { - this.NomeSocial = "AMEX"; - return; - } - case 604: - { - this.NomeSocial = "BANCO DO BRASIL"; - return; - } - } - } - else - { - } - long num1 = id - (long)621; - if (num1 <= (long)57) - { - switch ((uint)num1) - { - case 0: - case 3: - case 24: - case 32: - case 33: - case 34: - case 35: - case 36: - case 37: - case 41: - case 42: - { - this.NomeSocial = "UNIMED"; - return; - } - case 1: - case 2: - case 4: - case 5: - case 6: - case 7: - case 8: - case 12: - case 13: - case 16: - case 17: - case 19: - case 23: - case 25: - case 26: - case 27: - case 30: - case 31: - case 38: - case 39: - case 40: - case 44: - case 47: - case 48: - case 49: - case 50: - case 51: - case 54: - { - str = (base.Id == 0 ? " " : this.NomeSocial); - this.NomeSocialBanco = str; - nome = this.Nome ?? ""; - this.NomeSocial = nome; - return; - } - case 9: - case 18: - { - this.NomeSocial = "ALIRO"; - return; - } - case 10: - { - break; - } - case 11: - { - this.NomeSocial = "VR"; - return; - } - case 14: - { - this.NomeSocial = "ALLIANZ"; - return; - } - case 15: - { - this.NomeSocial = "HS"; - return; - } - case 20: - case 22: - case 53: - { - this.NomeSocial = "PORTO SEGURO"; - return; - } - case 21: - { - this.NomeSocial = "SURA"; - return; - } - case 28: - { - this.NomeSocial = "AMIL"; - return; - } - case 29: - { - this.NomeSocial = "YELUM"; - return; - } - case 43: - { - this.NomeSocial = "SULAMERICA"; - return; - } - case 45: - { - this.NomeSocial = "AFFINITY"; - return; - } - case 46: - { - this.NomeSocial = "BR"; - return; - } - case 52: - { - this.NomeSocial = "YAMAHA"; - return; - } - case 55: - { - this.NomeSocial = "SÃO FRANCISCO"; - return; - } - case 56: - { - this.NomeSocial = "EMBRACON"; - return; - } - case 57: - { - this.NomeSocial = "MAPFRE"; - return; - } - default: - { - str = (base.Id == 0 ? " " : this.NomeSocial); - this.NomeSocialBanco = str; - nome = this.Nome ?? ""; - this.NomeSocial = nome; - return; - } - } - } - else - { - str = (base.Id == 0 ? " " : this.NomeSocial); - this.NomeSocialBanco = str; - nome = this.Nome ?? ""; - this.NomeSocial = nome; - return; - } - this.NomeSocial = "METLIFE"; - return; - } - else if (id != (long)683) - { - long num2 = id - (long)687; - if (num2 <= (long)3) - { - switch ((uint)num2) - { - case 0: - { - this.NomeSocial = "ITAÚ"; - return; - } - case 1: - { - str = (base.Id == 0 ? " " : this.NomeSocial); - this.NomeSocialBanco = str; - nome = this.Nome ?? ""; - this.NomeSocial = nome; - return; - } - case 2: - { - this.NomeSocial = "SÃO LUCAS"; - return; - } - case 3: - { - this.NomeSocial = "UNIMED"; - return; - } - } - } - else - { - } - if (id == (long)694) - { - this.NomeSocial = "PORTO SEGURO"; - return; - } - str = (base.Id == 0 ? " " : this.NomeSocial); - this.NomeSocialBanco = str; - nome = this.Nome ?? ""; - this.NomeSocial = nome; - return; - } - else - { - this.NomeSocial = "UNIMED"; - return; - } - this.NomeSocial = "PORTO SEGURO"; - return; - } - else if (id > (long)716) - { - if (id == (long)717) - { - this.NomeSocial = "CHUBB"; - return; - } - if (id == (long)734) - { - this.NomeSocial = "RC"; - return; - } - if (id == (long)741) - { - this.NomeSocial = "SOMPO"; - return; - } - } - else - { - long num3 = id - (long)703; - if (num3 <= (long)8) - { - switch ((uint)num3) - { - case 0: - case 6: - { - this.NomeSocial = "UNIMED"; - return; - } - case 1: - case 4: - case 8: - { - this.NomeSocial = "MAPFRE"; - return; - } - case 2: - case 3: - case 5: - case 7: - { - str = (base.Id == 0 ? " " : this.NomeSocial); - this.NomeSocialBanco = str; - nome = this.Nome ?? ""; - this.NomeSocial = nome; - return; - } - } - } - else - { - } - if (id == (long)716) - { - this.NomeSocial = "UNIMED"; - return; - } - } - str = (base.Id == 0 ? " " : this.NomeSocial); - this.NomeSocialBanco = str; - nome = this.Nome ?? ""; - this.NomeSocial = nome; - } - } - - [Description("APELIDO")] - [Log(true)] - public string NomeSocialBanco - { - get - { - string str = this._nomeSocialBanco; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nomeSocialBanco = value; - } - } - - [Log(true)] - public string Observacao - { - get - { - return this._observacao; - } - set - { - this._observacao = value; - } - } - - public bool Selecionado - { - get - { - return this._selecionado; - } - set - { - if (value == this._selecionado) - { - return; - } - this._selecionado = value; - this.OnPropertyChanged("Selecionado"); - } - } - - public string Senha - { - get; - set; - } - - [Log(true)] - public string Susep - { - get - { - string str = this._susep; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._susep = value; - } - } - - [Log(true)] - public decimal? Tolerancia - { - get; - set; - } - - [Log(true)] - public decimal? ToleranciaPremio - { - get; - set; - } - - public string Usuario - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Seguradora seguradora = this; - return new Func<List<KeyValuePair<string, string>>>(seguradora.Validate); - } - } - - public Seguradora() - { - } - - public List<TupleList> Log() - { - string str; - string str1; - string description; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("SEGURADORA", (string.IsNullOrWhiteSpace(this.Nome) ? "" : this.Nome), ""), - new Tuple<string, string, string>("CNPJ", (string.IsNullOrWhiteSpace(this.Documento) ? "" : this.Documento), ""), - new Tuple<string, string, string>("ASSISTÊNCIA 24 HORAS", (string.IsNullOrWhiteSpace(this.Assistencia) ? "" : this.Assistencia), ""), - new Tuple<string, string, string>("SUSEP", (string.IsNullOrWhiteSpace(this.Susep) ? "" : this.Susep), ""), - new Tuple<string, string, string>("CÓDIGO COMPANHIA", (string.IsNullOrWhiteSpace(this.Codigo) ? "" : this.Codigo), "") - }; - decimal? tolerancia = this.Tolerancia; - if (!tolerancia.HasValue) - { - str = ""; - } - else - { - tolerancia = this.Tolerancia; - if (tolerancia.HasValue) - { - str = tolerancia.GetValueOrDefault().ToString(); - } - else - { - str = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("TOLERÂNCIA DE COMISSÃO", str, "")); - tolerancia = this.ToleranciaPremio; - if (!tolerancia.HasValue) - { - str1 = ""; - } - else - { - tolerancia = this.ToleranciaPremio; - if (tolerancia.HasValue) - { - str1 = tolerancia.GetValueOrDefault().ToString(); - } - else - { - str1 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("TOLERÂNCIA DE PRÊMIO", str1, "")); - observableCollection.Add(new Tuple<string, string, string>("SEGURADORA ATIVA", (this.Ativo ? "SIM" : "NÃO"), "")); - observableCollection.Add(new Tuple<string, string, string>("OBSERVAÇÃO", (string.IsNullOrWhiteSpace(this.Observacao) ? "" : this.Observacao), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - List<TupleList> tupleLists1 = tupleLists; - if (this.Contatos != null) - { - ObservableCollection<Tuple<string, string, string>> observableCollection1 = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("CONTATOS$", "", "") - }; - foreach (SeguradoraContato contato in this.Contatos) - { - observableCollection1.Add(new Tuple<string, string, string>(string.Format(" CONTATO {0}$", this.Contatos.IndexOf(contato) + 1), "", "")); - observableCollection1.Add(new Tuple<string, string, string>(" NOME", (string.IsNullOrWhiteSpace(contato.NomeContato) ? "" : contato.NomeContato.ToUpper()), "")); - ObservableCollection<Tuple<string, string, string>> observableCollection2 = observableCollection1; - TipoTelefone? tipo = contato.Tipo; - if (!tipo.HasValue) - { - description = ""; - } - else - { - tipo = contato.Tipo; - if (tipo.HasValue) - { - description = tipo.GetValueOrDefault().GetDescription(); - } - else - { - description = null; - } - } - observableCollection2.Add(new Tuple<string, string, string>(" TIPO TELEFONE", description, "")); - observableCollection1.Add(new Tuple<string, string, string>(" PREFIXO", (string.IsNullOrWhiteSpace(contato.Prefixo) ? "" : contato.Prefixo), "")); - observableCollection1.Add(new Tuple<string, string, string>(" TELEFONE", (string.IsNullOrWhiteSpace(contato.Numero) ? "" : contato.Numero), "")); - } - tupleLists1.Add(new TupleList() - { - Tuples = observableCollection1 - }); - } - if (this.Enderecos != null) - { - ObservableCollection<Tuple<string, string, string>> observableCollection3 = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("ENDEREÇOS$", "", "") - }; - foreach (SeguradoraEndereco endereco in this.Enderecos) - { - observableCollection3.Add(new Tuple<string, string, string>(string.Format(" ENDEREÇO {0}$", this.Enderecos.IndexOf(endereco) + 1), "", "")); - observableCollection3.Add(new Tuple<string, string, string>(" TIPO DO ENDEREÇO", endereco.Tipo.GetDescription(), "")); - observableCollection3.Add(new Tuple<string, string, string>(" CEP", (string.IsNullOrWhiteSpace(endereco.Cep) ? "" : endereco.Cep), "")); - observableCollection3.Add(new Tuple<string, string, string>(" ENDEREÇO", (string.IsNullOrWhiteSpace(endereco.Endereco) ? "" : endereco.Endereco), "")); - observableCollection3.Add(new Tuple<string, string, string>(" NÚMERO", (string.IsNullOrWhiteSpace(endereco.Numero) ? "" : endereco.Numero), "")); - observableCollection3.Add(new Tuple<string, string, string>(" COMPLEMENTO", (string.IsNullOrWhiteSpace(endereco.Complemento) ? "" : endereco.Complemento), "")); - observableCollection3.Add(new Tuple<string, string, string>(" BAIRRO", (string.IsNullOrWhiteSpace(endereco.Bairro) ? "" : endereco.Bairro), "")); - observableCollection3.Add(new Tuple<string, string, string>(" CIDADE", (string.IsNullOrWhiteSpace(endereco.Cidade) ? "" : endereco.Cidade), "")); - observableCollection3.Add(new Tuple<string, string, string>(" ESTADO", (string.IsNullOrWhiteSpace(endereco.Estado) ? "" : endereco.Estado), "")); - } - tupleLists1.Add(new TupleList() - { - Tuples = observableCollection3 - }); - } - return tupleLists1; - } - - protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) - { - PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged; - if (propertyChangedEventHandler == null) - { - return; - } - propertyChangedEventHandler(this, new PropertyChangedEventArgs(propertyName)); - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (!string.IsNullOrWhiteSpace(this.Documento) && !this.Documento.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("Documento", Messages.Invalido, true); - } - decimal? tolerancia = this.Tolerancia; - decimal num = 999; - if ((tolerancia.GetValueOrDefault() > num) & tolerancia.HasValue) - { - keyValuePairs.AddValue<string, string>("Tolerancia", Messages.Invalido, true); - } - tolerancia = this.ToleranciaPremio; - num = 999999; - if ((tolerancia.GetValueOrDefault() > num) & tolerancia.HasValue) - { - keyValuePairs.AddValue<string, string>("ToleranciaPremio", Messages.Invalido, true); - } - return keyValuePairs; - } - - public event PropertyChangedEventHandler PropertyChanged; - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/SeguradoraContato.cs b/Gestor.Model/Model.Domain.Seguros/SeguradoraContato.cs deleted file mode 100644 index 61caa17..0000000 --- a/Gestor.Model/Model.Domain.Seguros/SeguradoraContato.cs +++ /dev/null @@ -1,90 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class SeguradoraContato : TelefoneBase, IDomain - { - private string _nome; - - private string _email; - - public string Email - { - get - { - string str = this._email; - if (str != null) - { - return str.ToLower(); - } - return null; - } - set - { - this._email = value; - } - } - - public Gestor.Model.Domain.Common.Empresa Empresa - { - get; - set; - } - - public string NomeContato - { - get - { - return this._nome; - } - set - { - this._nome = value; - } - } - - public Gestor.Model.Domain.Seguros.Seguradora Seguradora - { - get; - set; - } - - public TipoContatoSeguradora TipoContato - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - SeguradoraContato seguradoraContato = this; - return new Func<List<KeyValuePair<string, string>>>(seguradoraContato.Validate); - } - } - - public SeguradoraContato() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = base.ValidateBase(true); - if (string.IsNullOrWhiteSpace(this.NomeContato) && this.TipoContato == TipoContatoSeguradora.Contato) - { - keyValuePairs.AddValue<string, string>("NomeContato|NOME CONTATO", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/SeguradoraEndereco.cs b/Gestor.Model/Model.Domain.Seguros/SeguradoraEndereco.cs deleted file mode 100644 index f103e05..0000000 --- a/Gestor.Model/Model.Domain.Seguros/SeguradoraEndereco.cs +++ /dev/null @@ -1,115 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class SeguradoraEndereco : EnderecoBase, IDomain - { - public Gestor.Model.Domain.Common.Empresa Empresa - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Seguradora Seguradora - { - get; - set; - } - - public TipoEndereco Tipo - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - SeguradoraEndereco seguradoraEndereco = this; - return new Func<List<KeyValuePair<string, string>>>(seguradoraEndereco.Validate); - } - } - - public SeguradoraEndereco() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - bool length; - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(base.Cep)) - { - keyValuePairs.AddValue<string, string>("Cep", Messages.Obrigatorio, true); - } - else if (!base.Cep.ValidacaoCep()) - { - keyValuePairs.AddValue<string, string>("Cep", Messages.Invalido, true); - } - if (string.IsNullOrWhiteSpace(base.Estado)) - { - keyValuePairs.AddValue<string, string>("Estado", Messages.Obrigatorio, true); - } - else if (!base.Estado.ValidacaoEstado()) - { - keyValuePairs.AddValue<string, string>("Estado", Messages.Invalido, true); - } - if (string.IsNullOrWhiteSpace(base.Endereco)) - { - keyValuePairs.AddValue<string, string>("Endereco", Messages.Obrigatorio, true); - } - else if (base.Endereco.Length > 60) - { - keyValuePairs.AddValue<string, string>("Endereco", string.Format(Messages.MaiorQueLimite, 60), true); - } - if (string.IsNullOrWhiteSpace(base.Numero)) - { - keyValuePairs.AddValue<string, string>("Numero", Messages.Obrigatorio, true); - } - else if (base.Numero.Length > 5) - { - keyValuePairs.AddValue<string, string>("Numero", string.Format(Messages.MaiorQueLimite, 5), true); - } - if (string.IsNullOrWhiteSpace(base.Bairro)) - { - keyValuePairs.AddValue<string, string>("Bairro", Messages.Obrigatorio, true); - } - else if (base.Bairro.Length > 60) - { - keyValuePairs.AddValue<string, string>("Bairro", string.Format(Messages.MaiorQueLimite, 60), true); - } - if (string.IsNullOrWhiteSpace(base.Cidade)) - { - keyValuePairs.AddValue<string, string>("Cidade", Messages.Obrigatorio, true); - } - else if (base.Cidade.Length > 30) - { - keyValuePairs.AddValue<string, string>("Cidade", string.Format(Messages.MaiorQueLimite, 30), true); - } - string complemento = base.Complemento; - if (complemento != null) - { - length = complemento.Length > 30; - } - else - { - length = false; - } - if (length) - { - keyValuePairs.AddValue<string, string>("Complemento", string.Format(Messages.MaiorQueLimite, 30), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Sinistro.cs b/Gestor.Model/Model.Domain.Seguros/Sinistro.cs deleted file mode 100644 index 21cb5c2..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Sinistro.cs +++ /dev/null @@ -1,1132 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Globalization; -using System.Runtime.CompilerServices; - -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 bool Ativo - { - get; - set; - } - - [Description("AUXILIAR")] - [Log(true)] - public string Auxiliar - { - get - { - string str = this._auxiliar; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._auxiliar = value; - } - } - - public Gestor.Model.Domain.Seguros.ControleSinistro ControleSinistro - { - get; - set; - } - - [Description("DATA CRIAÇÃO")] - [Log(true)] - public DateTime? DataAlteracao - { - get; - set; - } - - [Description("DATA CRIACAO")] - [Log(true)] - public DateTime? DataCriacao - { - get; - set; - } - - [Description("DATA LIQUIDAÇÃO")] - [Log(true)] - public DateTime? DataLiquidacao - { - get; - set; - } - - [Description("DATA RECLAMAÇÃO")] - [Log(true)] - public DateTime? DataReclamacao - { - get - { - return this._dataReclamacao; - } - set - { - if (!value.HasValue) - { - this._dataReclamacao = null; - return; - } - if (!this.HoraReclamacao.HasValue) - { - this.HoraReclamacao = value; - } - object obj = value.Value; - DateTime? horaReclamacao = this.HoraReclamacao; - this._dataReclamacao = new DateTime?(DateTime.Parse(string.Format("{0:d} {1:T}", obj, horaReclamacao.Value))); - } - } - - [Description("DESCRIÇÃO")] - [Log(true)] - public string Descricao - { - get - { - string str = this._descricao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._descricao = value; - } - } - - public DateTime? HoraReclamacao - { - get - { - return this._horaReclamacao; - } - set - { - DateTime? nullable; - this._horaReclamacao = value; - if (!value.HasValue) - { - return; - } - DateTime? dataReclamacao = this.DataReclamacao; - if (dataReclamacao.HasValue) - { - dataReclamacao = this.DataReclamacao; - nullable = new DateTime?(DateTime.Parse(string.Format("{0:d} {1:T}", dataReclamacao.Value, value))); - } - else - { - dataReclamacao = null; - nullable = dataReclamacao; - } - this.DataReclamacao = nullable; - } - } - - [Description("USUARIO ALTERACAO")] - [Log(true)] - public long IdUsuarioAlteracao - { - get; - set; - } - - [Description("USUARIO CRIACAO")] - [Log(true)] - public long IdUsuarioCriacao - { - get; - set; - } - - [Description("ITEM SINISTRADO")] - [Log(true)] - public string ItemSinistrado - { - get - { - string str = this._itemSinistrado; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._itemSinistrado = value; - } - } - - [Description("MOTIVO")] - [Log(true)] - public string Motivo - { - get - { - string str = this._motivo; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._motivo = value; - } - } - - [Log(true)] - public string Numero - { - get - { - string str = this._numero; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._numero = value; - } - } - - public string Observacao - { - get - { - return this._observacao; - } - set - { - this._observacao = value; - } - } - - public string ObservacaoInterna - { - get - { - return this._observacaoInterna; - } - set - { - this._observacaoInterna = value; - } - } - - [Log(true)] - public Gestor.Model.Domain.Seguros.SinistroAuto SinistroAuto - { - get; - set; - } - - [Log(true)] - public Gestor.Model.Domain.Seguros.SinistroVida SinistroVida - { - get; - set; - } - - [Description("STATUS PERSONALIZADO")] - [Log(true)] - public string StatusPersonalizado - { - get; - set; - } - - [Description("STATUS")] - [Log(true)] - public Gestor.Model.Common.StatusSinistro? StatusSinistro - { - get; - set; - } - - [Description("TIPO")] - [Log(true)] - public Gestor.Model.Common.TipoSinistro? TipoSinistro - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Sinistro sinistro = this; - return new Func<List<KeyValuePair<string, string>>>(sinistro.Validate); - } - } - - [Description("VALOR")] - [Log(true)] - public decimal Valor - { - get; - set; - } - - [Description("VALOR FRANQUIA")] - [Log(true)] - public decimal ValorFranquia - { - get; - set; - } - - [Description("VALOR LIBERADO")] - [Log(true)] - public decimal ValorLiberado - { - get; - set; - } - - [Description("VALOR ORÇADO")] - [Log(true)] - public decimal ValorOrcado - { - get; - set; - } - - [Description("VALOR PAGO")] - [Log(true)] - public decimal ValorPago - { - get; - set; - } - - [Description("VALOR SALVADO")] - [Log(true)] - public decimal? ValorSalvado - { - get; - set; - } - - public Sinistro() - { - } - - public List<TupleList> Log() - { - DateTime? dataSinistro; - TipoPerda? tipoPerda; - bool? culpado; - EstadoCivil? estadoCivil; - string description; - string shortDateString; - string shortTimeString; - string str; - string shortTimeString1; - string shortDateString1; - string description1; - bool hasValue; - string str1; - bool flag; - string str2; - bool hasValue1; - string description2; - string certObito; - string certObito1; - string beneficiario; - string beneficiario1; - bool? nullable; - string numeroBo; - string numeroBo1; - string description3; - string str3; - string shortDateString2; - string endereco; - string endereco1; - string envolvido; - string envolvido1; - string motorista; - string motorista1; - string ddd; - string ddd1; - string telefone; - string telefone1; - string email; - string email1; - string str4; - bool parceiroMecanica; - string nome; - string str5; - bool parceiroFunilaria; - string nome1; - bool valueOrDefault; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>(); - Gestor.Model.Common.TipoSinistro? tipoSinistro = this.TipoSinistro; - if (!tipoSinistro.HasValue) - { - description = ""; - } - else - { - tipoSinistro = this.TipoSinistro; - if (tipoSinistro.HasValue) - { - description = tipoSinistro.GetValueOrDefault().GetDescription(); - } - else - { - description = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("TIPO DO SINISTRO", description, "")); - observableCollection.Add(new Tuple<string, string, string>("ITEM SINISTRADO", (string.IsNullOrWhiteSpace(this.ItemSinistrado) ? "" : this.ItemSinistrado), "")); - observableCollection.Add(new Tuple<string, string, string>("NÚMERO DO SINISTRO", (string.IsNullOrWhiteSpace(this.Numero) ? "" : this.Numero), "")); - if (this.ControleSinistro == null) - { - shortDateString = ""; - } - else - { - Gestor.Model.Domain.Seguros.ControleSinistro controleSinistro = this.ControleSinistro; - if (controleSinistro != null) - { - dataSinistro = controleSinistro.DataSinistro; - if (dataSinistro.HasValue) - { - shortDateString = dataSinistro.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString = null; - } - } - else - { - shortDateString = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("DATA DO SINISTRO", shortDateString, "")); - if (this.ControleSinistro == null) - { - shortTimeString = ""; - } - else - { - Gestor.Model.Domain.Seguros.ControleSinistro controleSinistro1 = this.ControleSinistro; - if (controleSinistro1 != null) - { - dataSinistro = controleSinistro1.HoraSinistro; - if (dataSinistro.HasValue) - { - shortTimeString = dataSinistro.GetValueOrDefault().ToShortTimeString(); - } - else - { - shortTimeString = null; - } - } - else - { - shortTimeString = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("HORA DO SINISTRO", shortTimeString, "")); - dataSinistro = this.DataReclamacao; - if (!dataSinistro.HasValue) - { - str = ""; - } - else - { - dataSinistro = this.DataReclamacao; - if (dataSinistro.HasValue) - { - str = dataSinistro.GetValueOrDefault().ToShortDateString(); - } - else - { - str = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("DATA DA RECLAMAÇÃO", str, "")); - dataSinistro = this.HoraReclamacao; - if (!dataSinistro.HasValue) - { - shortTimeString1 = ""; - } - else - { - dataSinistro = this.HoraReclamacao; - if (dataSinistro.HasValue) - { - shortTimeString1 = dataSinistro.GetValueOrDefault().ToShortTimeString(); - } - else - { - shortTimeString1 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("HORA DA RECLAMAÇÃO", shortTimeString1, "")); - dataSinistro = this.DataLiquidacao; - if (!dataSinistro.HasValue) - { - shortDateString1 = ""; - } - else - { - dataSinistro = this.DataLiquidacao; - if (dataSinistro.HasValue) - { - shortDateString1 = dataSinistro.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString1 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("DATA DE LIQUIDAÇÃO", shortDateString1, "")); - Gestor.Model.Common.StatusSinistro? statusSinistro = this.StatusSinistro; - if (!statusSinistro.HasValue) - { - description1 = ""; - } - else - { - statusSinistro = this.StatusSinistro; - if (statusSinistro.HasValue) - { - description1 = statusSinistro.GetValueOrDefault().GetDescription(); - } - else - { - description1 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("SITUAÇÃO", description1, "")); - decimal valor = this.Valor; - observableCollection.Add(new Tuple<string, string, string>("VALOR", valor.ToString(new CultureInfo("pt-BR")), "")); - valor = this.ValorOrcado; - observableCollection.Add(new Tuple<string, string, string>("VALOR ORÇADO", valor.ToString(new CultureInfo("pt-BR")), "")); - valor = this.ValorLiberado; - observableCollection.Add(new Tuple<string, string, string>("VALOR LIBERADO", valor.ToString(new CultureInfo("pt-BR")), "")); - valor = this.ValorPago; - observableCollection.Add(new Tuple<string, string, string>("VALOR PAGO", valor.ToString(new CultureInfo("pt-BR")), "")); - decimal? valorSalvado = this.ValorSalvado; - observableCollection.Add(new Tuple<string, string, string>("VALOR SALVADO", valorSalvado.ToString(), "")); - valor = this.ValorFranquia; - observableCollection.Add(new Tuple<string, string, string>("VALOR FRANQUIA", valor.ToString(new CultureInfo("pt-BR")), "")); - observableCollection.Add(new Tuple<string, string, string>("MOTIVO", (string.IsNullOrWhiteSpace(this.Motivo) ? "" : this.Motivo), "")); - observableCollection.Add(new Tuple<string, string, string>("AUXILIAR", (string.IsNullOrWhiteSpace(this.Auxiliar) ? "" : this.Auxiliar), "")); - observableCollection.Add(new Tuple<string, string, string>("DESCRIÇÃO", (string.IsNullOrWhiteSpace(this.Descricao) ? "" : this.Descricao), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - List<TupleList> tupleLists1 = tupleLists; - if (this.SinistroAuto != null) - { - ObservableCollection<Tuple<string, string, string>> tuples = tupleLists1[0].Tuples; - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto = this.SinistroAuto; - if (sinistroAuto != null) - { - numeroBo = sinistroAuto.NumeroBo; - } - else - { - numeroBo = null; - } - if (string.IsNullOrWhiteSpace(numeroBo)) - { - numeroBo1 = ""; - } - else - { - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto1 = this.SinistroAuto; - if (sinistroAuto1 != null) - { - numeroBo1 = sinistroAuto1.NumeroBo; - } - else - { - numeroBo1 = null; - } - } - tuples.Add(new Tuple<string, string, string>("NÚMERO DO B.O.", numeroBo1, "")); - ObservableCollection<Tuple<string, string, string>> tuples1 = tupleLists1[0].Tuples; - tipoPerda = this.SinistroAuto.TipoPerda; - if (!tipoPerda.HasValue) - { - description3 = ""; - } - else - { - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto2 = this.SinistroAuto; - if (sinistroAuto2 != null) - { - tipoPerda = sinistroAuto2.TipoPerda; - if (tipoPerda.HasValue) - { - description3 = tipoPerda.GetValueOrDefault().GetDescription(); - } - else - { - description3 = null; - } - } - else - { - description3 = null; - } - } - tuples1.Add(new Tuple<string, string, string>("TIPO DE PERDA", description3, "")); - ObservableCollection<Tuple<string, string, string>> observableCollection1 = tupleLists1[0].Tuples; - culpado = this.SinistroAuto.Culpado; - if (culpado.HasValue) - { - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto3 = this.SinistroAuto; - if (sinistroAuto3 != null) - { - culpado = sinistroAuto3.Culpado; - bool flag1 = false; - valueOrDefault = culpado.GetValueOrDefault() == flag1 & culpado.HasValue; - } - else - { - valueOrDefault = false; - } - if (valueOrDefault) - { - goto Label1; - } - str3 = "SIM"; - goto Label0; - } - Label1: - str3 = "NÃO"; - Label0: - observableCollection1.Add(new Tuple<string, string, string>("CONSIDERA-SE CULPADO?", str3, "")); - ObservableCollection<Tuple<string, string, string>> tuples2 = tupleLists1[0].Tuples; - dataSinistro = this.SinistroAuto.UltimoDocEnviado; - if (!dataSinistro.HasValue) - { - shortDateString2 = ""; - } - else - { - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto4 = this.SinistroAuto; - if (sinistroAuto4 != null) - { - dataSinistro = sinistroAuto4.UltimoDocEnviado; - if (dataSinistro.HasValue) - { - shortDateString2 = dataSinistro.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString2 = null; - } - } - else - { - shortDateString2 = null; - } - } - tuples2.Add(new Tuple<string, string, string>("ÚLTIMO DOC. ENVIADO", shortDateString2, "")); - ObservableCollection<Tuple<string, string, string>> observableCollection2 = tupleLists1[0].Tuples; - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto5 = this.SinistroAuto; - if (sinistroAuto5 != null) - { - endereco = sinistroAuto5.Endereco; - } - else - { - endereco = null; - } - if (string.IsNullOrWhiteSpace(endereco)) - { - endereco1 = ""; - } - else - { - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto6 = this.SinistroAuto; - if (sinistroAuto6 != null) - { - endereco1 = sinistroAuto6.Endereco; - } - else - { - endereco1 = null; - } - } - observableCollection2.Add(new Tuple<string, string, string>("ENDEREÇO", endereco1, "")); - ObservableCollection<Tuple<string, string, string>> tuples3 = tupleLists1[0].Tuples; - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto7 = this.SinistroAuto; - if (sinistroAuto7 != null) - { - envolvido = sinistroAuto7.Envolvido; - } - else - { - envolvido = null; - } - if (string.IsNullOrWhiteSpace(envolvido)) - { - envolvido1 = ""; - } - else - { - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto8 = this.SinistroAuto; - if (sinistroAuto8 != null) - { - envolvido1 = sinistroAuto8.Envolvido; - } - else - { - envolvido1 = null; - } - } - tuples3.Add(new Tuple<string, string, string>("ENVOLVIDO/PROPRIETÁRIO", envolvido1, "")); - ObservableCollection<Tuple<string, string, string>> observableCollection3 = tupleLists1[0].Tuples; - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto9 = this.SinistroAuto; - if (sinistroAuto9 != null) - { - motorista = sinistroAuto9.Motorista; - } - else - { - motorista = null; - } - if (string.IsNullOrWhiteSpace(motorista)) - { - motorista1 = ""; - } - else - { - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto10 = this.SinistroAuto; - if (sinistroAuto10 != null) - { - motorista1 = sinistroAuto10.Motorista; - } - else - { - motorista1 = null; - } - } - observableCollection3.Add(new Tuple<string, string, string>("MOTORISTA", motorista1, "")); - ObservableCollection<Tuple<string, string, string>> tuples4 = tupleLists1[0].Tuples; - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto11 = this.SinistroAuto; - if (sinistroAuto11 != null) - { - ddd = sinistroAuto11.Ddd; - } - else - { - ddd = null; - } - if (string.IsNullOrWhiteSpace(ddd)) - { - ddd1 = ""; - } - else - { - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto12 = this.SinistroAuto; - if (sinistroAuto12 != null) - { - ddd1 = sinistroAuto12.Ddd; - } - else - { - ddd1 = null; - } - } - tuples4.Add(new Tuple<string, string, string>("DDD", ddd1, "")); - ObservableCollection<Tuple<string, string, string>> observableCollection4 = tupleLists1[0].Tuples; - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto13 = this.SinistroAuto; - if (sinistroAuto13 != null) - { - telefone = sinistroAuto13.Telefone; - } - else - { - telefone = null; - } - if (string.IsNullOrWhiteSpace(telefone)) - { - telefone1 = ""; - } - else - { - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto14 = this.SinistroAuto; - if (sinistroAuto14 != null) - { - telefone1 = sinistroAuto14.Telefone; - } - else - { - telefone1 = null; - } - } - observableCollection4.Add(new Tuple<string, string, string>("TELEFONE", telefone1, "")); - ObservableCollection<Tuple<string, string, string>> tuples5 = tupleLists1[0].Tuples; - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto15 = this.SinistroAuto; - if (sinistroAuto15 != null) - { - email = sinistroAuto15.Email; - } - else - { - email = null; - } - if (string.IsNullOrWhiteSpace(email)) - { - email1 = ""; - } - else - { - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto16 = this.SinistroAuto; - if (sinistroAuto16 != null) - { - email1 = sinistroAuto16.Email; - } - else - { - email1 = null; - } - } - tuples5.Add(new Tuple<string, string, string>("E-MAIL", email1, "")); - ObservableCollection<Tuple<string, string, string>> observableCollection5 = tupleLists1[0].Tuples; - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto17 = this.SinistroAuto; - if (sinistroAuto17 != null) - { - valor = sinistroAuto17.ValorMecanica; - str4 = valor.ToString(new CultureInfo("pt-BR")); - } - else - { - str4 = null; - } - observableCollection5.Add(new Tuple<string, string, string>("VALOR MECÂNICA", str4, "")); - ObservableCollection<Tuple<string, string, string>> tuples6 = tupleLists1[0].Tuples; - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto18 = this.SinistroAuto; - if (sinistroAuto18 != null) - { - parceiroMecanica = sinistroAuto18.ParceiroMecanica; - } - else - { - parceiroMecanica = false; - } - if (!parceiroMecanica) - { - nome = ""; - } - else - { - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto19 = this.SinistroAuto; - if (sinistroAuto19 != null) - { - Parceiro parceiro = sinistroAuto19.ParceiroMecanica; - if (parceiro != null) - { - nome = parceiro.Nome; - } - else - { - nome = null; - } - } - else - { - nome = null; - } - } - tuples6.Add(new Tuple<string, string, string>("PARCEIRO MECÂNICA", nome, "")); - ObservableCollection<Tuple<string, string, string>> observableCollection6 = tupleLists1[0].Tuples; - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto20 = this.SinistroAuto; - if (sinistroAuto20 != null) - { - valor = sinistroAuto20.ValorFunilaria; - str5 = valor.ToString(new CultureInfo("pt-BR")); - } - else - { - str5 = null; - } - observableCollection6.Add(new Tuple<string, string, string>("VALOR FUNILARIA", str5, "")); - ObservableCollection<Tuple<string, string, string>> tuples7 = tupleLists1[0].Tuples; - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto21 = this.SinistroAuto; - if (sinistroAuto21 != null) - { - parceiroFunilaria = sinistroAuto21.ParceiroFunilaria; - } - else - { - parceiroFunilaria = false; - } - if (!parceiroFunilaria) - { - nome1 = ""; - } - else - { - Gestor.Model.Domain.Seguros.SinistroAuto sinistroAuto22 = this.SinistroAuto; - if (sinistroAuto22 != null) - { - Parceiro parceiroFunilaria1 = sinistroAuto22.ParceiroFunilaria; - if (parceiroFunilaria1 != null) - { - nome1 = parceiroFunilaria1.Nome; - } - else - { - nome1 = null; - } - } - else - { - nome1 = null; - } - } - tuples7.Add(new Tuple<string, string, string>("PARCEIRO FUNILARIA", nome1, "")); - } - if (this.SinistroVida != null) - { - ObservableCollection<Tuple<string, string, string>> observableCollection7 = tupleLists1[0].Tuples; - Gestor.Model.Domain.Seguros.SinistroVida sinistroVida = this.SinistroVida; - if (sinistroVida != null) - { - tipoPerda = sinistroVida.TipoPerda; - hasValue = !tipoPerda.HasValue; - } - else - { - hasValue = true; - } - if (hasValue) - { - str1 = ""; - } - else - { - Gestor.Model.Domain.Seguros.SinistroVida sinistroVida1 = this.SinistroVida; - if (sinistroVida1 != null) - { - tipoPerda = sinistroVida1.TipoPerda; - if (tipoPerda.HasValue) - { - str1 = tipoPerda.GetValueOrDefault().GetDescription(); - } - else - { - str1 = null; - } - } - else - { - str1 = null; - } - } - observableCollection7.Add(new Tuple<string, string, string>("TIPO DE PERDA", str1, "")); - ObservableCollection<Tuple<string, string, string>> tuples8 = tupleLists1[0].Tuples; - Gestor.Model.Domain.Seguros.SinistroVida sinistroVida2 = this.SinistroVida; - if (sinistroVida2 != null) - { - culpado = sinistroVida2.AuxFuneral; - flag = !culpado.HasValue; - } - else - { - flag = true; - } - if (flag) - { - str2 = ""; - } - else - { - Gestor.Model.Domain.Seguros.SinistroVida sinistroVida3 = this.SinistroVida; - if (sinistroVida3 != null) - { - culpado = sinistroVida3.AuxFuneral; - nullable = new bool?(culpado.Value); - } - else - { - culpado = null; - nullable = culpado; - } - culpado = nullable; - str2 = (culpado.Value ? "SIM" : "NÃO"); - } - tuples8.Add(new Tuple<string, string, string>("AUXÍLIO FUNERAL", str2, "")); - ObservableCollection<Tuple<string, string, string>> observableCollection8 = tupleLists1[0].Tuples; - Gestor.Model.Domain.Seguros.SinistroVida sinistroVida4 = this.SinistroVida; - if (sinistroVida4 != null) - { - estadoCivil = sinistroVida4.EstadoCivil; - hasValue1 = !estadoCivil.HasValue; - } - else - { - hasValue1 = true; - } - if (hasValue1) - { - description2 = ""; - } - else - { - Gestor.Model.Domain.Seguros.SinistroVida sinistroVida5 = this.SinistroVida; - if (sinistroVida5 != null) - { - estadoCivil = sinistroVida5.EstadoCivil; - if (estadoCivil.HasValue) - { - description2 = estadoCivil.GetValueOrDefault().GetDescription(); - } - else - { - description2 = null; - } - } - else - { - description2 = null; - } - } - observableCollection8.Add(new Tuple<string, string, string>("ESTADO CIVIL", description2, "")); - ObservableCollection<Tuple<string, string, string>> tuples9 = tupleLists1[0].Tuples; - Gestor.Model.Domain.Seguros.SinistroVida sinistroVida6 = this.SinistroVida; - if (sinistroVida6 != null) - { - certObito = sinistroVida6.CertObito; - } - else - { - certObito = null; - } - if (string.IsNullOrWhiteSpace(certObito)) - { - certObito1 = ""; - } - else - { - Gestor.Model.Domain.Seguros.SinistroVida sinistroVida7 = this.SinistroVida; - if (sinistroVida7 != null) - { - certObito1 = sinistroVida7.CertObito; - } - else - { - certObito1 = null; - } - } - tuples9.Add(new Tuple<string, string, string>("CERTIDÃO DE ÓBITO", certObito1, "")); - ObservableCollection<Tuple<string, string, string>> observableCollection9 = tupleLists1[0].Tuples; - Gestor.Model.Domain.Seguros.SinistroVida sinistroVida8 = this.SinistroVida; - if (sinistroVida8 != null) - { - beneficiario = sinistroVida8.Beneficiario; - } - else - { - beneficiario = null; - } - if (string.IsNullOrWhiteSpace(beneficiario)) - { - beneficiario1 = ""; - } - else - { - Gestor.Model.Domain.Seguros.SinistroVida sinistroVida9 = this.SinistroVida; - if (sinistroVida9 != null) - { - beneficiario1 = sinistroVida9.Beneficiario; - } - else - { - beneficiario1 = null; - } - } - observableCollection9.Add(new Tuple<string, string, string>("BENEFICIÁRIO", beneficiario1, "")); - } - return tupleLists1; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.DataReclamacao.HasValue && (DateTime.Compare(this.DataReclamacao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.DataReclamacao.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("DataReclamacao", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.HoraReclamacao.HasValue && (DateTime.Compare(this.HoraReclamacao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.HoraReclamacao.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("HoraReclamacao", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.DataLiquidacao.HasValue && (DateTime.Compare(this.DataLiquidacao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.DataLiquidacao.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("DataLiquidacao", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.ControleSinistro != null) - { - keyValuePairs.AddRange(this.ControleSinistro.Validate()); - } - if (!this.DataReclamacao.HasValue) - { - keyValuePairs.AddValue<string, string>("DataReclamacao", Messages.Obrigatorio, true); - } - if (this.StatusSinistro.GetValueOrDefault() != Gestor.Model.Common.StatusSinistro.EmAndamento && !this.DataLiquidacao.HasValue) - { - keyValuePairs.AddValue<string, string>("DataLiquidacao", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/SinistroAuto.cs b/Gestor.Model/Model.Domain.Seguros/SinistroAuto.cs deleted file mode 100644 index 65cc4cd..0000000 --- a/Gestor.Model/Model.Domain.Seguros/SinistroAuto.cs +++ /dev/null @@ -1,284 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class SinistroAuto : DomainBase, IDomain - { - private string _numeroBo; - - private string _endereco; - - private string _envolvido; - - private string _motorista; - - private string _ddd; - - private string _telefone; - - private string _email; - - private string _cnh; - - [Log(true)] - [Name(true)] - public string Cnh - { - get - { - string str = this._cnh; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._cnh = value; - } - } - - [Description("DECLARA-SE CULPADO")] - [Log(true)] - [Name(true)] - public bool? Culpado - { - get; - set; - } - - [Description("PREFIXO")] - [Log(true)] - [Name(true)] - public string Ddd - { - get - { - string str = this._ddd; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._ddd = value; - } - } - - [Description("E-MAIL")] - [Log(true)] - [Name(true)] - public string Email - { - get - { - string str = this._email; - if (str == null) - { - return null; - } - return str.ToLower().Trim(); - } - set - { - this._email = value; - } - } - - [Description("ENDEREÇO")] - [Log(true)] - [Name(true)] - public string Endereco - { - get - { - string str = this._endereco; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._endereco = value; - } - } - - [Log(true)] - [Name(true)] - public string Envolvido - { - get - { - string str = this._envolvido; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._envolvido = value; - } - } - - [Log(true)] - [Name(true)] - public string Motorista - { - get - { - string str = this._motorista; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._motorista = value; - } - } - - [Description("NUMERO B.O.")] - [Log(true)] - [Name(true)] - public string NumeroBo - { - get - { - string str = this._numeroBo; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._numeroBo = value; - } - } - - [Description("FUNILARIA")] - [Log(true)] - public Parceiro ParceiroFunilaria - { - get; - set; - } - - [Description("MECÂNICA")] - [Log(true)] - public Parceiro ParceiroMecanica - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Sinistro Sinistro - { - get; - set; - } - - [Description("TELEFONE")] - [Log(true)] - [Name(true)] - public string Telefone - { - get - { - string str = this._telefone; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._telefone = value; - } - } - - [Description("TIPO PERDA")] - [Log(true)] - [Name(true)] - public Gestor.Model.Common.TipoPerda? TipoPerda - { - get; - set; - } - - [Description("DATA ÚLTIMO DOC. ENVIADO")] - [Log(true)] - [Name(true)] - public DateTime? UltimoDocEnviado - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - SinistroAuto sinistroAuto = this; - return new Func<List<KeyValuePair<string, string>>>(sinistroAuto.Validate); - } - } - - [Description("VALOR FINILARIA")] - [Log(true)] - [Name(true)] - public decimal ValorFunilaria - { - get; - set; - } - - [Description("VALOR MECÂNICA")] - [Log(true)] - [Name(true)] - public decimal ValorMecanica - { - get; - set; - } - - public SinistroAuto() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.Sinistro != null) - { - keyValuePairs.AddRange(this.Sinistro.Validate()); - } - if (this.UltimoDocEnviado.HasValue && (DateTime.Compare(this.UltimoDocEnviado.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.UltimoDocEnviado.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("UltimoDocEnviado", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/SinistroVida.cs b/Gestor.Model/Model.Domain.Seguros/SinistroVida.cs deleted file mode 100644 index bdd167c..0000000 --- a/Gestor.Model/Model.Domain.Seguros/SinistroVida.cs +++ /dev/null @@ -1,138 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class SinistroVida : DomainBase, IDomain - { - private string _certObito; - - private string _beneficiario; - - private string _observacao; - - [Description("AUXÍLIO FUNERAL")] - [Log(true)] - [Name(true)] - public bool? AuxFuneral - { - get; - set; - } - - [Description("BENEFICIÁRIO")] - [Log(true)] - [Name(true)] - public string Beneficiario - { - get - { - string str = this._beneficiario; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._beneficiario = value; - } - } - - [Description("CERT. ÓBITO")] - [Log(true)] - [Name(true)] - public string CertObito - { - get - { - string str = this._certObito; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._certObito = value; - } - } - - [Description("ESTADO CÍVIL")] - [Log(true)] - [Name(true)] - public Gestor.Model.Common.EstadoCivil? EstadoCivil - { - get; - set; - } - - [Description("OBSERVAÇÃO")] - [Log(true)] - [Name(true)] - public string Observacao - { - get - { - string str = this._observacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._observacao = value; - } - } - - public Gestor.Model.Domain.Seguros.Sinistro Sinistro - { - get; - set; - } - - [Description("TIPO PERDA")] - [Log(true)] - [Name(true)] - public Gestor.Model.Common.TipoPerda? TipoPerda - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - SinistroVida sinistroVida = this; - return new Func<List<KeyValuePair<string, string>>>(sinistroVida.Validate); - } - } - - public SinistroVida() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.Sinistro != null) - { - keyValuePairs.AddRange(this.Sinistro.Validate()); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Status.cs b/Gestor.Model/Model.Domain.Seguros/Status.cs deleted file mode 100644 index 3649416..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Status.cs +++ /dev/null @@ -1,86 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class Status : DomainBase, IDomain - { - private string _nome; - - [Log(true)] - public bool Ativo - { - get; - set; - } - - [Log(true)] - [Name(true)] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Status statu = this; - return new Func<List<KeyValuePair<string, string>>>(statu.Validate); - } - } - - public Status() - { - } - - 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(this.Nome) ? "" : this.Nome), ""), - new Tuple<string, string, string>("ATIVO", (this.Ativo ? "SIM" : "NÃO"), "") - } - } - }; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Nome)) - { - keyValuePairs.AddValue<string, string>("Nome", Messages.Obrigatorio, true); - } - else if (this.Nome.Length > 60) - { - keyValuePairs.AddValue<string, string>("Nome", string.Format(Messages.MaiorQueLimite, 60), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/TipoVendedor.cs b/Gestor.Model/Model.Domain.Seguros/TipoVendedor.cs deleted file mode 100644 index 47d2048..0000000 --- a/Gestor.Model/Model.Domain.Seguros/TipoVendedor.cs +++ /dev/null @@ -1,138 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using System.Threading; - -namespace Gestor.Model.Domain.Seguros -{ - public class TipoVendedor : DomainBase, IDomain - { - private bool _selecionado; - - private string _descricao; - - private bool? _ativo; - - [Log(true)] - public bool? Ativo - { - get - { - return this._ativo; - } - set - { - this._ativo = new bool?(value.GetValueOrDefault(true)); - } - } - - [Description("DESCRIÇÃO")] - [Log(true)] - [Name(true)] - public string Descricao - { - get - { - string str = this._descricao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._descricao = value; - } - } - - public bool? Inserido - { - get; - set; - } - - public bool Selecionado - { - get - { - return this._selecionado; - } - set - { - if (value == this._selecionado) - { - return; - } - this._selecionado = value; - this.OnPropertyChanged("Selecionado"); - } - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - TipoVendedor tipoVendedor = this; - return new Func<List<KeyValuePair<string, string>>>(tipoVendedor.Validate); - } - } - - public TipoVendedor() - { - } - - public List<TupleList> Log() - { - string str; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("DESCRIÇÃO", (string.IsNullOrWhiteSpace(this.Descricao) ? "" : this.Descricao), "") - }; - if (!this.Ativo.HasValue) - { - str = ""; - } - else - { - str = (this.Ativo.Value ? "SIM" : "NÃO"); - } - observableCollection.Add(new Tuple<string, string, string>("ATIVO", str, "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - return tupleLists; - } - - protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) - { - PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged; - if (propertyChangedEventHandler == null) - { - return; - } - propertyChangedEventHandler(this, new PropertyChangedEventArgs(propertyName)); - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Descricao)) - { - keyValuePairs.AddValue<string, string>("Descricao", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - - public event PropertyChangedEventHandler PropertyChanged; - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/TitularesVida.cs b/Gestor.Model/Model.Domain.Seguros/TitularesVida.cs deleted file mode 100644 index 3956270..0000000 --- a/Gestor.Model/Model.Domain.Seguros/TitularesVida.cs +++ /dev/null @@ -1,269 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Gestor.Model.Validation; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using System.Threading; - -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 decimal? Capital - { - get - { - return new decimal?(this._capital.GetValueOrDefault()); - } - set - { - this._capital = value; - } - } - - public string Codigo - { - get - { - string str = this._codigo; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._codigo = value; - } - } - - public string Cpf - { - get; - set; - } - - public TitularesVida Dependente - { - get; - set; - } - - public string Fatura - { - get - { - string str = this._fatura; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._fatura = value; - } - } - - public DateTime? Fim - { - get; - set; - } - - public long IdItem - { - get; - set; - } - - public DateTime? Inicio - { - get; - set; - } - - public string Matricula - { - get - { - string str = this._matricula; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._matricula = value; - } - } - - public DateTime? Nascimento - { - get; - set; - } - - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - public string Observacao - { - get - { - string str = this._observacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._observacao = value; - } - } - - public decimal? Premio - { - get - { - return new decimal?(this._premio.GetValueOrDefault()); - } - set - { - this._premio = value; - } - } - - public bool Selecionado - { - get - { - return this._selecionado; - } - set - { - if (value == this._selecionado) - { - return; - } - this._selecionado = value; - this.OnPropertyChanged("Selecionado"); - } - } - - public TipoTitular? Tipo - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - TitularesVida titularesVida = this; - return new Func<List<KeyValuePair<string, string>>>(titularesVida.Validate); - } - } - - public TitularesVida() - { - } - - protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) - { - PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged; - if (propertyChangedEventHandler == null) - { - return; - } - propertyChangedEventHandler(this, new PropertyChangedEventArgs(propertyName)); - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Nome)) - { - keyValuePairs.AddValue<string, string>("Nome", Messages.Obrigatorio, true); - } - else if (this.Nome.Length > 150) - { - keyValuePairs.AddValue<string, string>("Nome", string.Format(Messages.MaiorQueLimite, 150), true); - } - if (!this.Inicio.HasValue) - { - keyValuePairs.AddValue<string, string>("Inicio|INÍCIO", Messages.Obrigatorio, true); - } - else if (DateTime.Compare(this.Inicio.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Inicio.Value, new DateTime(9999, 12, 31)) > 0) - { - keyValuePairs.AddValue<string, string>("Inicio|INÍCIO", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.Fim.HasValue && (DateTime.Compare(this.Fim.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Fim.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("Fim", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.Nascimento.HasValue && (DateTime.Compare(this.Nascimento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Nascimento.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("Nascimento", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if ((!this.Nascimento.HasValue || Funcoes.GetAge(this.Nascimento.Value) >= 18) && !string.IsNullOrWhiteSpace(this.Cpf) && !this.Cpf.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("Cpf", Messages.Invalido, true); - } - if (!this.Tipo.HasValue) - { - keyValuePairs.AddValue<string, string>("Tipo", Messages.Obrigatorio, true); - } - if (this.Tipo.GetValueOrDefault() == TipoTitular.Dependente && this.Dependente == null) - { - keyValuePairs.AddValue<string, string>("Dependente", "OBRIGATÓRIO. PESQUISE POR UM DOS TITULARES\nQUE SEJA DO TIPO SÓCIO OU FUNCIONÁRIO", true); - } - return keyValuePairs; - } - - public event PropertyChangedEventHandler PropertyChanged; - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/TupleList.cs b/Gestor.Model/Model.Domain.Seguros/TupleList.cs deleted file mode 100644 index 406b072..0000000 --- a/Gestor.Model/Model.Domain.Seguros/TupleList.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.ObjectModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class TupleList - { - public ObservableCollection<Tuple<string, string, string>> Tuples - { - get; - set; - } - - public TupleList() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Usuario.cs b/Gestor.Model/Model.Domain.Seguros/Usuario.cs deleted file mode 100644 index 39c6cc1..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Usuario.cs +++ /dev/null @@ -1,872 +0,0 @@ -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; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Runtime.CompilerServices; -using System.Text.RegularExpressions; - -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; - - [Log(true)] - public bool Administrador - { - get; - set; - } - - [Description("PERMISSÃO ADMINISTRADOR CENTRAL SEGURADO")] - [Log(true)] - public bool AdministradorCentralSegurado - { - get; - set; - } - - [Description("AGÊNCIA")] - [Log(true)] - public string Agencia - { - get - { - string str = this._agencia; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._agencia = value; - } - } - - public bool Aggilizador - { - get; - set; - } - - [Log(true)] - public Gestor.Model.Domain.Common.Banco Banco - { - get; - set; - } - - [Log(true)] - public string Cargo - { - get; - set; - } - - [Log(true)] - public string Conta - { - get - { - string str = this._conta; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._conta = value; - } - } - - [Description("ACESSO AO DASHBOARD")] - [Log(true)] - public bool? Dashboard - { - get - { - return this._dashboard; - } - set - { - this._dashboard = new bool?(value.GetValueOrDefault(true)); - } - } - - [Log(true)] - public string Documento - { - get - { - string str = this._documento; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._documento = value; - } - } - - [Description("ACESSO AOS DOMINGOS")] - [Log(true)] - public bool? Domingo - { - get - { - return this._domingo; - } - set - { - this._domingo = new bool?(value.GetValueOrDefault(true)); - } - } - - [Log(true)] - public string Email - { - get - { - string str = this._email; - if (str == null) - { - return null; - } - return str.ToLower().Trim(); - } - set - { - this._email = value; - } - } - - [Description("ESTADO EMISSOR")] - [Log(true)] - public string EstadoEmissor - { - get - { - string str = this._estadoEmissor; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._estadoEmissor = value; - } - } - - public bool Excluido - { - get; - set; - } - - [Description("DATA DE EXPEDIÇÃO")] - [Log(true)] - public DateTime? Expedicao - { - get; - set; - } - - [Description("FILTRO INICIAL")] - [Log(true)] - public TipoFiltroCliente? FiltroInicial - { - get; - set; - } - - [Description("FIM DO ACESSO")] - public DateTime? FimAcesso - { - get; - set; - } - - public long IdEmpresa - { - get; - set; - } - - [Log(true)] - public string Identidade - { - get - { - string str = this._identidade; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._identidade = value; - } - } - - [Description("INÍCIO DO ACESSO")] - public DateTime? InicioAcesso - { - get; - set; - } - - [Log(true)] - public string Login - { - get - { - string str = this._login; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._login = value; - } - } - - [Description("ACESSO AO MOBILE")] - [Log(true)] - public bool Mobile - { - get; - set; - } - - [Description("DATA DE NASCIMENTO")] - [Log(true)] - public DateTime? Nascimento - { - get; - set; - } - - [Log(true)] - [Name(true)] - public string Nome - { - get - { - return this._nome; - } - set - { - this._nome = value; - } - } - - [Description("PERMISSÃO ACESSO AGGILIZADOR")] - [Log(true)] - public long? PermissaoAggilizador - { - get; - set; - } - - [Description("PREFIXO TELEFONE 1")] - [Log(true)] - public string Prefixo - { - get - { - string str = this._prefixo; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._prefixo = value; - } - } - - [Description("PREFIXO TELEFONE 2")] - [Log(true)] - public string Prefixo2 - { - get - { - string str = this._prefixo2; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._prefixo2 = value; - } - } - - [Description("ACESSO ÁS QUARTAS-FEIRAS")] - [Log(true)] - public bool? Quarta - { - get - { - return this._quarta; - } - set - { - this._quarta = new bool?(value.GetValueOrDefault(true)); - } - } - - [Description("ACESSO ÁS QUINTAS-FEIRAS")] - [Log(true)] - public bool? Quinta - { - get - { - return this._quinta; - } - set - { - this._quinta = new bool?(value.GetValueOrDefault(true)); - } - } - - [Description("ACESSO AOS RESULTADOS MOBILE")] - [Log(true)] - public bool Resultados - { - get; - set; - } - - [Description("ACESSO AOS SÁBADOS")] - [Log(true)] - public bool? Sabado - { - get - { - return this._sabado; - } - set - { - this._sabado = new bool?(value.GetValueOrDefault(true)); - } - } - - [Description("ACESSO ÀS SEGUNDAS-FEIRAS")] - [Log(true)] - public bool? Segunda - { - get - { - return this._segunda; - } - set - { - this._segunda = new bool?(value.GetValueOrDefault(true)); - } - } - - public bool Selecionado - { - get; - set; - } - - public string Senha - { - get; - set; - } - - public string SenhaAnterior { get; set; } = string.Empty; - - [Log(true)] - public Gestor.Model.Common.Sexo Sexo - { - get; - set; - } - - [Description("ACESSO ÁS SEXTAS-FEIRAS")] - [Log(true)] - public bool? Sexta - { - get - { - return this._sexta; - } - set - { - this._sexta = new bool?(value.GetValueOrDefault(true)); - } - } - - public string SsoId - { - get; - set; - } - - [Log(true)] - public TipoTelaInicial? TelaInicial - { - get - { - return new TipoTelaInicial?(this._telaInicial.GetValueOrDefault()); - } - set - { - this._telaInicial = new TipoTelaInicial?(value.GetValueOrDefault()); - } - } - - [Description("TELEFONE 1")] - [Log(true)] - public string Telefone - { - get - { - string str = this._telefone; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._telefone = value; - } - } - - [Description("TELEFONE 2")] - [Log(true)] - public string Telefone2 - { - get - { - string str = this._telefone2; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._telefone2 = value; - } - } - - [Description("ACESSO ÀS TERÇAS-FEIRAS")] - [Log(true)] - public bool? Terca - { - get - { - return this._terca; - } - set - { - this._terca = new bool?(value.GetValueOrDefault(true)); - } - } - - [Description("TIPO DO TELEFONE 1")] - [Log(true)] - public Gestor.Model.Common.TipoTelefone? TipoTelefone - { - get; - set; - } - - [Description("TIPO DO TELEFONE 2")] - [Log(true)] - public Gestor.Model.Common.TipoTelefone? TipoTelefone2 - { - get; - set; - } - - public string TokenSso - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Usuario usuario = this; - return new Func<List<KeyValuePair<string, string>>>(usuario.Validate); - } - } - - public string Visita - { - get; - set; - } - - public Usuario() - { - } - - public List<TupleList> Log() - { - string shortDateString; - string str; - string nome; - string shortTimeString; - string shortTimeString1; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("NOME", (string.IsNullOrWhiteSpace(this.Nome) ? "" : this.Nome), ""), - new Tuple<string, string, string>("CPF/CNPJ", (string.IsNullOrWhiteSpace(this.Documento) ? "" : this.Documento), ""), - new Tuple<string, string, string>("USUÁRIO", (string.IsNullOrWhiteSpace(this.Login) ? "" : this.Login), ""), - new Tuple<string, string, string>("IDENTIDADE", (string.IsNullOrWhiteSpace(this.Identidade) ? "" : this.Identidade), ""), - new Tuple<string, string, string>("ESTADO EMISSOR", (string.IsNullOrWhiteSpace(this.EstadoEmissor) ? "" : this.EstadoEmissor), "") - }; - DateTime? expedicao = this.Expedicao; - if (!expedicao.HasValue) - { - shortDateString = ""; - } - else - { - expedicao = this.Expedicao; - if (expedicao.HasValue) - { - shortDateString = expedicao.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("DATA DE EXPEDIÇÃO", shortDateString, "")); - observableCollection.Add(new Tuple<string, string, string>("SEXO", this.Sexo.GetDescription(), "")); - expedicao = this.Nascimento; - if (!expedicao.HasValue) - { - str = ""; - } - else - { - expedicao = this.Nascimento; - if (expedicao.HasValue) - { - str = expedicao.GetValueOrDefault().ToShortDateString(); - } - else - { - str = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("DATA DE NASCIMENTO", str, "")); - if (this.Banco == null) - { - nome = ""; - } - else - { - Gestor.Model.Domain.Common.Banco banco = this.Banco; - if (banco != null) - { - nome = banco.Nome; - } - else - { - nome = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("BANCO", nome, "")); - observableCollection.Add(new Tuple<string, string, string>("AGÊNCIA", (string.IsNullOrWhiteSpace(this.Agencia) ? "" : this.Agencia), "")); - observableCollection.Add(new Tuple<string, string, string>("CONTA", (string.IsNullOrWhiteSpace(this.Conta) ? "" : this.Conta), "")); - observableCollection.Add(new Tuple<string, string, string>("ENDEREÇO", (string.IsNullOrWhiteSpace(base.Endereco) ? "" : base.Endereco), "")); - observableCollection.Add(new Tuple<string, string, string>("NÚMERO", (string.IsNullOrWhiteSpace(base.Numero) ? "" : base.Numero), "")); - observableCollection.Add(new Tuple<string, string, string>("COMPLEMENTO", (string.IsNullOrWhiteSpace(base.Complemento) ? "" : base.Complemento), "")); - observableCollection.Add(new Tuple<string, string, string>("BAIRRO", (string.IsNullOrWhiteSpace(base.Bairro) ? "" : base.Bairro), "")); - observableCollection.Add(new Tuple<string, string, string>("CIDADE", (string.IsNullOrWhiteSpace(base.Cidade) ? "" : base.Cidade), "")); - observableCollection.Add(new Tuple<string, string, string>("ESTADO", (string.IsNullOrWhiteSpace(base.Estado) ? "" : base.Estado), "")); - observableCollection.Add(new Tuple<string, string, string>("CEP", (string.IsNullOrWhiteSpace(base.Cep) ? "" : base.Cep), "")); - observableCollection.Add(new Tuple<string, string, string>("TIPO TELEFONE", (!this.TipoTelefone.HasValue ? "" : this.TipoTelefone.GetDescription()), "")); - observableCollection.Add(new Tuple<string, string, string>("PRIMEIRO PREFIXO", (string.IsNullOrWhiteSpace(this.Prefixo) ? "" : this.Prefixo), "")); - observableCollection.Add(new Tuple<string, string, string>("PRIMEIRO TELEFONE", (string.IsNullOrWhiteSpace(this.Telefone) ? "" : this.Telefone), "")); - observableCollection.Add(new Tuple<string, string, string>("TIPO TELEFONE", (!this.TipoTelefone2.HasValue ? "" : this.TipoTelefone2.GetDescription()), "")); - observableCollection.Add(new Tuple<string, string, string>("SEGUNDO PREFIXO", (string.IsNullOrWhiteSpace(this.Prefixo2) ? "" : this.Prefixo2), "")); - observableCollection.Add(new Tuple<string, string, string>("SEGUNDO TELEFONE", (string.IsNullOrWhiteSpace(this.Telefone2) ? "" : this.Telefone2), "")); - observableCollection.Add(new Tuple<string, string, string>("EMAIL", (string.IsNullOrWhiteSpace(this.Email) ? "" : this.Email), "")); - observableCollection.Add(new Tuple<string, string, string>("ACESSO MOBILE", (this.Mobile ? "SIM" : "NÃO"), "")); - observableCollection.Add(new Tuple<string, string, string>("ACESSO RESULTADOS", (this.Resultados ? "SIM" : "NÃO"), "")); - observableCollection.Add(new Tuple<string, string, string>("ACESSO INDIVIDUAL AGGILIZADOR", (this.Aggilizador ? "SIM" : "NÃO"), "")); - expedicao = this.InicioAcesso; - if (!expedicao.HasValue) - { - shortTimeString = ""; - } - else - { - expedicao = this.InicioAcesso; - if (expedicao.HasValue) - { - shortTimeString = expedicao.GetValueOrDefault().ToShortTimeString(); - } - else - { - shortTimeString = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("INÍCIO DO ACESSO", shortTimeString, "")); - expedicao = this.FimAcesso; - if (!expedicao.HasValue) - { - shortTimeString1 = ""; - } - else - { - expedicao = this.FimAcesso; - if (expedicao.HasValue) - { - shortTimeString1 = expedicao.GetValueOrDefault().ToShortTimeString(); - } - else - { - shortTimeString1 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("FIM DO ACESSO", shortTimeString1, "")); - observableCollection.Add(new Tuple<string, string, string>("ADMINISTRADOR CENTRAL SEGURADO", (this.AdministradorCentralSegurado ? "SIM" : "NÃO"), "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - return tupleLists; - } - - public UserSso ToUserSso(string serial, string documentoEmpresa, string ssoId = null) - { - return new UserSso() - { - Id = ssoId, - Name = this.Nome, - Username = this.Login, - Password = this.Senha, - Serial = serial, - CustomerDocument = documentoEmpresa, - IdEmpresa = this.IdEmpresa, - Document = this.Documento, - IsDeleted = false, - Email = this.Email ?? string.Empty, - Phone = (string.IsNullOrEmpty(this.Prefixo) || string.IsNullOrEmpty(this.Telefone) ? string.Empty : string.Concat(this.Prefixo.Clear(), this.Telefone.Clear())) - }; - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.Expedicao.HasValue && (DateTime.Compare(this.Expedicao.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Expedicao.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("Expedicao", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.Nascimento.HasValue && (DateTime.Compare(this.Nascimento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Nascimento.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("Nascimento", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.InicioAcesso.HasValue && this.FimAcesso.HasValue && this.InicioAcesso.Value.TimeOfDay > this.FimAcesso.Value.TimeOfDay) - { - keyValuePairs.AddValue<string, string>("FimAcesso|FIM DO ACESSO", "O HORÁRIO DO FIM DO ACESSO NÃO PODE SER ANTERIOR AO HORÁRIO DO INICIO DO ACESSO", true); - } - if (string.IsNullOrEmpty(this.Nome)) - { - keyValuePairs.AddValue<string, string>("Nome", Messages.Obrigatorio, true); - } - else if (this.Nome.Length > 50) - { - keyValuePairs.AddValue<string, string>("Nome", string.Format(Messages.MaiorQueLimite, 50), true); - } - if (!string.IsNullOrEmpty(this.Documento) && !this.Documento.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("Documento", Messages.Invalido, true); - } - if (string.IsNullOrEmpty(this.Login)) - { - keyValuePairs.AddValue<string, string>("Login", Messages.Obrigatorio, true); - } - else if (this.Login.Length > 30) - { - keyValuePairs.AddValue<string, string>("Login", string.Format(Messages.MaiorQueLimite, 30), true); - } - if (!string.IsNullOrEmpty(this.Login) && !Regex.IsMatch(this.Login, "^(?!.* {2})[a-zA-Z0-9](?:[a-zA-Z0-9 .]{0,49}[a-zA-Z0-9])?$")) - { - keyValuePairs.AddValue<string, string>("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", true); - } - if (string.IsNullOrEmpty(this.Senha)) - { - keyValuePairs.AddValue<string, string>("Senha", Messages.Obrigatorio, true); - } - if (string.IsNullOrEmpty(this.Email)) - { - keyValuePairs.AddValue<string, string>("Email", Messages.Obrigatorio, true); - } - if (!string.IsNullOrEmpty(this.EstadoEmissor) && !this.EstadoEmissor.ValidacaoEstado()) - { - keyValuePairs.AddValue<string, string>("EstadoEmissor", Messages.Invalido, true); - } - if (this.Expedicao.HasValue && !this.Expedicao.ValidacaoDataPassada()) - { - keyValuePairs.AddValue<string, string>("Expedicao", Messages.Invalido, true); - } - if (this.Nascimento.HasValue && !this.Nascimento.ValidacaoDataPassada()) - { - keyValuePairs.AddValue<string, string>("Nascimento", Messages.Invalido, true); - } - if (!string.IsNullOrEmpty(base.Cep) && !base.Cep.ValidacaoCep()) - { - keyValuePairs.AddValue<string, string>("Cep", Messages.Invalido, true); - } - if (!string.IsNullOrEmpty(base.Endereco) && base.Endereco.Length > 60) - { - keyValuePairs.AddValue<string, string>("Endereco", string.Format(Messages.MaiorQueLimite, 60), true); - } - if (!string.IsNullOrEmpty(base.Numero) && base.Numero.Length > 5) - { - keyValuePairs.AddValue<string, string>("Numero", string.Format(Messages.MaiorQueLimite, 5), true); - } - if (!string.IsNullOrEmpty(base.Bairro) && base.Bairro.Length > 60) - { - keyValuePairs.AddValue<string, string>("Bairro", string.Format(Messages.MaiorQueLimite, 60), true); - } - if (!string.IsNullOrEmpty(base.Cidade) && base.Cidade.Length > 30) - { - keyValuePairs.AddValue<string, string>("Cidade", string.Format(Messages.MaiorQueLimite, 30), true); - } - if (!string.IsNullOrEmpty(base.Estado) && !base.Estado.ValidacaoEstado()) - { - keyValuePairs.AddValue<string, string>("Estado", Messages.Invalido, true); - } - 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)) - { - keyValuePairs.AddValue<string, string>("Cep", Messages.Obrigatorio, true); - } - if (string.IsNullOrEmpty(base.Endereco)) - { - keyValuePairs.AddValue<string, string>("Endereco", Messages.Obrigatorio, true); - } - if (string.IsNullOrEmpty(base.Numero)) - { - keyValuePairs.AddValue<string, string>("Numero", Messages.Obrigatorio, true); - } - if (string.IsNullOrEmpty(base.Bairro)) - { - keyValuePairs.AddValue<string, string>("Bairro", Messages.Obrigatorio, true); - } - if (string.IsNullOrEmpty(base.Cidade)) - { - keyValuePairs.AddValue<string, string>("Cidade", Messages.Obrigatorio, true); - } - if (string.IsNullOrEmpty(base.Estado)) - { - keyValuePairs.AddValue<string, string>("Estado", Messages.Obrigatorio, true); - } - } - if (this.AdministradorCentralSegurado && string.IsNullOrEmpty(this.Documento)) - { - keyValuePairs.AddValue<string, string>("Documento", Messages.Obrigatorio, true); - } - if (this.AdministradorCentralSegurado && string.IsNullOrEmpty(this.Prefixo)) - { - keyValuePairs.AddValue<string, string>("Prefixo", Messages.Obrigatorio, true); - } - if (this.AdministradorCentralSegurado && string.IsNullOrEmpty(this.Telefone)) - { - keyValuePairs.AddValue<string, string>("Telefone", Messages.Obrigatorio, true); - } - if (this.AdministradorCentralSegurado && string.IsNullOrEmpty(this.Email)) - { - keyValuePairs.AddValue<string, string>("Email", Messages.Obrigatorio, true); - } - if (this.InicioAcesso.HasValue && this.FimAcesso.HasValue && this.FimAcesso.Value.TimeOfDay == this.InicioAcesso.Value.TimeOfDay) - { - keyValuePairs.AddValue<string, string>("InicioAcesso", Messages.Invalido, true); - keyValuePairs.AddValue<string, string>("FimAcesso", Messages.Invalido, true); - } - if (this.Documento == null || string.IsNullOrEmpty(this.Documento)) - { - keyValuePairs.AddValue<string, string>("Documento", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Vendedor.cs b/Gestor.Model/Model.Domain.Seguros/Vendedor.cs deleted file mode 100644 index 200f397..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Vendedor.cs +++ /dev/null @@ -1,375 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Gestor.Model.Validation; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.ComponentModel; -using System.Globalization; -using System.Runtime.CompilerServices; -using System.Threading; - -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 string Agencia - { - get - { - string str = this._agencia; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._agencia = value; - } - } - - public bool Ativo - { - get; - set; - } - - public Gestor.Model.Domain.Common.Banco Banco - { - get; - set; - } - - public string Conta - { - get - { - string str = this._conta; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._conta = value; - } - } - - public Gestor.Model.Domain.Seguros.Controle Controle - { - get; - set; - } - - public bool Corretora - { - get; - set; - } - - public decimal? Desconto - { - get; - set; - } - - public string Documento - { - get - { - string str = this._documento; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._documento = value; - } - } - - public long IdEmpresa - { - get; - set; - } - - [Log(true)] - [Name(true)] - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - public string Observacao - { - get - { - string str = this._observacao; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._observacao = value; - } - } - - public bool Selecionado - { - get - { - return this._selecionado; - } - set - { - if (value == this._selecionado) - { - return; - } - this._selecionado = value; - this.OnPropertyChanged("Selecionado"); - } - } - - public List<VendedorTelefone> Telefones - { - get; - set; - } - - public Gestor.Model.Common.TipoConta TipoConta - { - get; - set; - } - - public Gestor.Model.Common.TipoIncidenciaDesconto TipoIncidenciaDesconto - { - get; - set; - } - - public string TitularConta - { - get - { - string str = this._titularConta; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._titularConta = value; - } - } - - public string TitularDocumento - { - get - { - string str = this._documentoTitular; - if (str == null) - { - return null; - } - return str.ToUpper().Trim(); - } - set - { - this._documentoTitular = value; - } - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Vendedor vendedor = this; - return new Func<List<KeyValuePair<string, string>>>(vendedor.Validate); - } - } - - public Vendedor() - { - } - - public List<TupleList> Log() - { - decimal? nullable; - string str; - string description; - decimal? nullable1; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("NOME", (string.IsNullOrWhiteSpace(this.Nome) ? "" : this.Nome), ""), - new Tuple<string, string, string>("CPF", (string.IsNullOrWhiteSpace(this.Documento) ? "" : this.Documento), ""), - new Tuple<string, string, string>("ATIVO", (this.Ativo ? "SIM" : "NÃO"), ""), - new Tuple<string, string, string>("BANCO", (this.Banco == null ? "" : this.Banco.Nome), ""), - new Tuple<string, string, string>("AGÊNCIA", (string.IsNullOrWhiteSpace(this.Agencia) ? "" : this.Agencia), ""), - new Tuple<string, string, string>("CONTA CORRENTE/POUPANÇA", (string.IsNullOrWhiteSpace(this.Conta) ? "" : this.Conta), ""), - new Tuple<string, string, string>("TITULAR DA CONTA", (string.IsNullOrWhiteSpace(this.TitularConta) ? "" : this.TitularConta), ""), - new Tuple<string, string, string>("DOCUMENTO TITULAR DA CONTA", (string.IsNullOrWhiteSpace(this.TitularDocumento) ? "" : this.TitularDocumento), ""), - new Tuple<string, string, string>("TIPO CONTA", (string.IsNullOrWhiteSpace(this.TipoConta.GetDescription()) ? "" : this.TipoConta.GetDescription()), "") - }; - decimal? desconto = this.Desconto; - if (!desconto.HasValue) - { - str = ""; - } - else - { - desconto = this.Desconto; - decimal num = 100; - if (desconto.HasValue) - { - nullable1 = new decimal?(desconto.GetValueOrDefault() / num); - } - else - { - nullable = null; - nullable1 = nullable; - } - nullable = nullable1; - if (nullable.HasValue) - { - decimal valueOrDefault = nullable.GetValueOrDefault(); - str = valueOrDefault.ToString("P", new CultureInfo("pt-BR", false)); - } - else - { - str = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("DESCONTO", str, "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - List<TupleList> tupleLists1 = tupleLists; - ObservableCollection<Tuple<string, string, string>> observableCollection1 = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("CONTATOS$", "", "") - }; - if (this.Telefones != null && this.Telefones.Count != 0) - { - foreach (VendedorTelefone telefone in this.Telefones) - { - observableCollection1.Add(new Tuple<string, string, string>(string.Format(" CONTATO {0}$", this.Telefones.IndexOf(telefone) + 1), "", "")); - observableCollection1.Add(new Tuple<string, string, string>(" NOME", (string.IsNullOrWhiteSpace(telefone.Nome) ? "" : telefone.Nome), "")); - ObservableCollection<Tuple<string, string, string>> observableCollection2 = observableCollection1; - TipoTelefone? tipo = telefone.Tipo; - if (!tipo.HasValue) - { - description = ""; - } - else - { - tipo = telefone.Tipo; - if (tipo.HasValue) - { - description = tipo.GetValueOrDefault().GetDescription(); - } - else - { - description = null; - } - } - observableCollection2.Add(new Tuple<string, string, string>(" TIPO DE TELEFONE", description, "")); - observableCollection1.Add(new Tuple<string, string, string>(" PREFIXO", (string.IsNullOrWhiteSpace(telefone.Prefixo) ? "" : telefone.Prefixo), "")); - observableCollection1.Add(new Tuple<string, string, string>(" NÚMERO DE TELEFONE", (string.IsNullOrWhiteSpace(telefone.Numero) ? "" : telefone.Numero), "")); - observableCollection1.Add(new Tuple<string, string, string>(" E-MAIL", (string.IsNullOrWhiteSpace(telefone.Email) ? "" : telefone.Email), "")); - } - tupleLists1.Add(new TupleList() - { - Tuples = observableCollection1 - }); - } - return tupleLists1; - } - - protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null) - { - PropertyChangedEventHandler propertyChangedEventHandler = this.PropertyChanged; - if (propertyChangedEventHandler == null) - { - return; - } - propertyChangedEventHandler(this, new PropertyChangedEventArgs(propertyName)); - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrEmpty(this.Nome)) - { - keyValuePairs.AddValue<string, string>("Nome", Messages.Obrigatorio, true); - } - if (!string.IsNullOrWhiteSpace(this.Documento) && !this.Documento.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("Documento", Messages.Invalido, true); - } - if (!string.IsNullOrWhiteSpace(this.TitularDocumento) && !this.TitularDocumento.ValidacaoDocumento()) - { - keyValuePairs.AddValue<string, string>("TitularDocumento", Messages.Invalido, true); - } - if (this.Telefones == null) - { - return keyValuePairs; - } - foreach (VendedorTelefone telefone in this.Telefones) - { - keyValuePairs.AddRange(telefone.Validate()); - } - return keyValuePairs; - } - - public event PropertyChangedEventHandler PropertyChanged; - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/VendedorParcela.cs b/Gestor.Model/Model.Domain.Seguros/VendedorParcela.cs deleted file mode 100644 index 8d40450..0000000 --- a/Gestor.Model/Model.Domain.Seguros/VendedorParcela.cs +++ /dev/null @@ -1,235 +0,0 @@ -using Gestor.Model.Attributes; -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class VendedorParcela : DomainBase, IDomain - { - private string _vCondRep; - - public bool CoCorretagem - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.CondicaoRepasse CondicaoRepasse - { - get; - set; - } - - [Description("DATA DO PAGAMENTO")] - [Log(true)] - public DateTime? DataPagamento - { - get; - set; - } - - [Description("DATA PREVISÃO DE PAGAMENTO")] - [Log(true)] - public DateTime? DataPrePagamento - { - get; - set; - } - - [Log(false)] - public Gestor.Model.Domain.Seguros.Documento Documento - { - get; - set; - } - - [Log(false)] - public Gestor.Model.Domain.Seguros.Parcela Parcela - { - get; - set; - } - - [Description("PORCENTAGEM REPASSE")] - [Log(true)] - public decimal? PorcentagemRepasse - { - get; - set; - } - - public decimal? PorcentagemRepasseB - { - get; - set; - } - - public string RecebidoPorCompleto - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Repasse Repasse - { - get; - set; - } - - public bool Selecionado - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.TipoVendedor TipoVendedor - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - VendedorParcela vendedorParcela = this; - return new Func<List<KeyValuePair<string, string>>>(vendedorParcela.Validate); - } - } - - [Description("VALOR REPASSE")] - [Log(true)] - public decimal? ValorRepasse - { - get; - set; - } - - public decimal? ValorRepasseB - { - get; - set; - } - - public decimal? ValorTotal - { - get; - set; - } - - public decimal? ValorTotalPago - { - get; - set; - } - - public string VCondRep - { - get - { - string str = this._vCondRep; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._vCondRep = value; - } - } - - [Log(true)] - public Gestor.Model.Domain.Seguros.Vendedor Vendedor - { - get; - set; - } - - public VendedorParcela() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - decimal num; - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.DataPagamento.HasValue && (DateTime.Compare(this.DataPagamento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.DataPagamento.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("DataPagamento", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.DataPrePagamento.HasValue && (DateTime.Compare(this.DataPrePagamento.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.DataPrePagamento.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("DataPrePagamento", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - if (this.Vendedor == null) - { - keyValuePairs.AddValue<string, string>("Vendedor", Messages.Obrigatorio, true); - } - if (this.Documento == null) - { - keyValuePairs.AddValue<string, string>("Documento", Messages.Obrigatorio, true); - } - if (this.Documento != null && this.Documento.Id > (long)0 && this.Parcela == null) - { - keyValuePairs.AddValue<string, string>("Parcela", Messages.Obrigatorio, true); - } - if (this.Repasse == null) - { - keyValuePairs.AddValue<string, string>("Repasse", Messages.Obrigatorio, true); - } - if (this.TipoVendedor == null && !this.CoCorretagem) - { - keyValuePairs.AddValue<string, string>("TipoVendedor", Messages.Obrigatorio, true); - } - decimal? porcentagemRepasse = this.PorcentagemRepasse; - if (!porcentagemRepasse.HasValue && !this.CoCorretagem) - { - keyValuePairs.AddValue<string, string>("PorcentagemRepasse", Messages.Obrigatorio, true); - } - porcentagemRepasse = this.ValorRepasse; - if (!porcentagemRepasse.HasValue) - { - keyValuePairs.AddValue<string, string>("ValorRepasse", Messages.Obrigatorio, true); - } - if (this.Vendedor == null || this.Vendedor.Corretora) - { - return keyValuePairs; - } - porcentagemRepasse = this.PorcentagemRepasse; - if (porcentagemRepasse.HasValue) - { - porcentagemRepasse = this.PorcentagemRepasse; - num = new decimal(); - if ((porcentagemRepasse.GetValueOrDefault() <= num) & porcentagemRepasse.HasValue) - { - keyValuePairs.AddValue<string, string>("PorcentagemRepasse", Messages.Invalido, true); - } - } - porcentagemRepasse = this.ValorRepasse; - if (porcentagemRepasse.HasValue) - { - porcentagemRepasse = this.ValorRepasse; - num = new decimal(); - if ((porcentagemRepasse.GetValueOrDefault() == num) & porcentagemRepasse.HasValue && !this.CoCorretagem) - { - keyValuePairs.AddValue<string, string>("ValorRepasse", Messages.Invalido, true); - } - } - if (this.Repasse != null && this.Documento != null && this.Documento.TipoRecebimento.GetValueOrDefault() == TipoRecebimento.Parcela && this.Repasse.Base.GetValueOrDefault() == BaseRepasse.Transmissao && (!this.Documento.Remessa.HasValue || DateTime.Compare(this.Documento.Remessa.Value, new DateTime(1753, 1, 1)) < 0 || DateTime.Compare(this.Documento.Remessa.Value, new DateTime(9999, 12, 31)) > 0)) - { - keyValuePairs.AddValue<string, string>("TRANSMISSÃO DA PROPOSTA", string.Format(Messages.DataInvalida, Array.Empty<object>()), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/VendedorParcelas.cs b/Gestor.Model/Model.Domain.Seguros/VendedorParcelas.cs deleted file mode 100644 index c3a7261..0000000 --- a/Gestor.Model/Model.Domain.Seguros/VendedorParcelas.cs +++ /dev/null @@ -1,162 +0,0 @@ -using Gestor.Model.Domain.Generic; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Globalization; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class VendedorParcelas : DomainBase - { - public ObservableCollection<VendedorParcela> VendedorParcelasList - { - get; - set; - } - - public VendedorParcelas() - { - } - - public List<TupleList> Log(bool restricaoComissao, bool restricaoComissaoPorcentagem) - { - decimal? porcentagemRepasse; - decimal valueOrDefault; - string shortDateString; - string str; - string str1; - string str2; - string str3; - ObservableCollection<Tuple<string, string, string>> observableCollection = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("VENDEDORES$", "", "") - }; - if (this.VendedorParcelasList != null) - { - foreach (VendedorParcela vendedorParcelasList in this.VendedorParcelasList) - { - observableCollection.Add(new Tuple<string, string, string>(" NOME", (vendedorParcelasList.Vendedor == null ? "" : vendedorParcelasList.Vendedor.Nome.ToUpper()), "")); - observableCollection.Add(new Tuple<string, string, string>(" TIPO VENDEDOR", (vendedorParcelasList.TipoVendedor == null ? "" : vendedorParcelasList.TipoVendedor.Descricao), "")); - if (!restricaoComissao) - { - ObservableCollection<Tuple<string, string, string>> observableCollection1 = observableCollection; - porcentagemRepasse = vendedorParcelasList.PorcentagemRepasse; - if (!porcentagemRepasse.HasValue) - { - str2 = ""; - } - else - { - porcentagemRepasse = vendedorParcelasList.PorcentagemRepasse; - if (porcentagemRepasse.HasValue) - { - valueOrDefault = porcentagemRepasse.GetValueOrDefault(); - str2 = valueOrDefault.ToString("C", new CultureInfo("pt-BR", false)); - } - else - { - str2 = null; - } - } - observableCollection1.Add(new Tuple<string, string, string>(" COMISSÃO", str2, "")); - ObservableCollection<Tuple<string, string, string>> observableCollection2 = observableCollection; - porcentagemRepasse = vendedorParcelasList.ValorRepasse; - if (!porcentagemRepasse.HasValue) - { - str3 = ""; - } - else - { - porcentagemRepasse = vendedorParcelasList.ValorRepasse; - if (porcentagemRepasse.HasValue) - { - valueOrDefault = porcentagemRepasse.GetValueOrDefault(); - str3 = valueOrDefault.ToString("C", new CultureInfo("pt-BR", false)); - } - else - { - str3 = null; - } - } - observableCollection2.Add(new Tuple<string, string, string>(" REPASSE", str3, "")); - } - else if (!restricaoComissaoPorcentagem) - { - observableCollection.Add(new Tuple<string, string, string>(" COMISSÃO", "", "")); - observableCollection.Add(new Tuple<string, string, string>(" REPASSE", "", "")); - } - else - { - ObservableCollection<Tuple<string, string, string>> observableCollection3 = observableCollection; - porcentagemRepasse = vendedorParcelasList.PorcentagemRepasse; - if (!porcentagemRepasse.HasValue) - { - str1 = ""; - } - else - { - porcentagemRepasse = vendedorParcelasList.PorcentagemRepasse; - if (porcentagemRepasse.HasValue) - { - valueOrDefault = porcentagemRepasse.GetValueOrDefault(); - str1 = valueOrDefault.ToString("C", new CultureInfo("pt-BR", false)); - } - else - { - str1 = null; - } - } - observableCollection3.Add(new Tuple<string, string, string>(" COMISSÃO", str1, "")); - observableCollection.Add(new Tuple<string, string, string>(" REPASSE", "", "")); - } - ObservableCollection<Tuple<string, string, string>> observableCollection4 = observableCollection; - DateTime? dataPrePagamento = vendedorParcelasList.DataPrePagamento; - if (!dataPrePagamento.HasValue) - { - shortDateString = ""; - } - else - { - dataPrePagamento = vendedorParcelasList.DataPrePagamento; - if (dataPrePagamento.HasValue) - { - shortDateString = dataPrePagamento.GetValueOrDefault().ToShortDateString(); - } - else - { - shortDateString = null; - } - } - observableCollection4.Add(new Tuple<string, string, string>(" DATA PRÉ PAGAMENTO", shortDateString, "")); - ObservableCollection<Tuple<string, string, string>> observableCollection5 = observableCollection; - dataPrePagamento = vendedorParcelasList.DataPagamento; - if (!dataPrePagamento.HasValue) - { - str = ""; - } - else - { - dataPrePagamento = vendedorParcelasList.DataPagamento; - if (dataPrePagamento.HasValue) - { - str = dataPrePagamento.GetValueOrDefault().ToShortDateString(); - } - else - { - str = null; - } - } - observableCollection5.Add(new Tuple<string, string, string>(" DATA PAGAMENTO", str, "")); - } - } - return new List<TupleList>() - { - new TupleList() - { - Tuples = observableCollection - } - }; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/VendedorTelefone.cs b/Gestor.Model/Model.Domain.Seguros/VendedorTelefone.cs deleted file mode 100644 index 7117ff5..0000000 --- a/Gestor.Model/Model.Domain.Seguros/VendedorTelefone.cs +++ /dev/null @@ -1,89 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class VendedorTelefone : TelefoneBase, IDomain - { - private string _nome; - - private string _email; - - public string Email - { - get - { - string str = this._email; - if (str == null) - { - return null; - } - return str.ToLower().Trim(); - } - set - { - this._email = value; - } - } - - public string Nome - { - get - { - string str = this._nome; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._nome = value; - } - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - VendedorTelefone vendedorTelefone = this; - return new Func<List<KeyValuePair<string, string>>>(vendedorTelefone.Validate); - } - } - - public Gestor.Model.Domain.Seguros.Vendedor Vendedor - { - get; - set; - } - - public VendedorTelefone() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = base.ValidateBase(false); - if (string.IsNullOrWhiteSpace(this.Nome)) - { - keyValuePairs.AddValue<string, string>("Nome", Messages.Obrigatorio, true); - } - if (!string.IsNullOrEmpty(this.Email) && this.Email.Length > 100) - { - keyValuePairs.AddValue<string, string>("Email|E-MAIL", string.Format(Messages.MaiorQueLimite, 100), true); - } - if (!string.IsNullOrEmpty(this.Email) && !this.Email.ValidacaoEmail()) - { - keyValuePairs.AddValue<string, string>("Email|E-MAIL", Messages.Invalido, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/VendedorUsuario.cs b/Gestor.Model/Model.Domain.Seguros/VendedorUsuario.cs deleted file mode 100644 index a53782f..0000000 --- a/Gestor.Model/Model.Domain.Seguros/VendedorUsuario.cs +++ /dev/null @@ -1,51 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class VendedorUsuario : DomainBase, IDomain - { - public Gestor.Model.Domain.Seguros.Usuario Usuario - { - get; - set; - } - - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - VendedorUsuario vendedorUsuario = this; - return new Func<List<KeyValuePair<string, string>>>(vendedorUsuario.Validate); - } - } - - public Gestor.Model.Domain.Seguros.Vendedor Vendedor - { - get; - set; - } - - public VendedorUsuario() - { - } - - public List<KeyValuePair<string, string>> Validate() - { - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.Usuario == null) - { - keyValuePairs.AddValue<string, string>("Usuario", Messages.Obrigatorio, true); - } - if (this.Vendedor == null) - { - keyValuePairs.AddValue<string, string>("Vendedor", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/Vida.cs b/Gestor.Model/Model.Domain.Seguros/Vida.cs deleted file mode 100644 index 4d945c4..0000000 --- a/Gestor.Model/Model.Domain.Seguros/Vida.cs +++ /dev/null @@ -1,306 +0,0 @@ -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Globalization; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class Vida : DomainBase, IDomain - { - private string _plano; - - public decimal? CapitalFuncionarios - { - get; - set; - } - - public decimal? CapitalSocios - { - get; - set; - } - - public int? Funcionarios - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.Item Item - { - get; - set; - } - - public string Observacao - { - get; - set; - } - - public string Plano - { - get - { - string str = this._plano; - if (str != null) - { - return str.ToUpper(); - } - return null; - } - set - { - this._plano = value; - } - } - - public int? Socios - { - get; - set; - } - - [JsonIgnore] - public Func<List<KeyValuePair<string, string>>> ValidationEvent - { - get - { - Vida vida = this; - return new Func<List<KeyValuePair<string, string>>>(vida.Validate); - } - } - - public Vida() - { - } - - public static List<TupleList> Log(Gestor.Model.Domain.Seguros.Item item) - { - string str; - string str1; - string str2; - string str3; - string str4; - string str5; - List<TupleList> tupleLists = new List<TupleList>(); - TupleList tupleList = new TupleList(); - ObservableCollection<Tuple<string, string, string>> observableCollection = 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()), "") - }; - int? socios = item.Vida.Socios; - if (!socios.HasValue) - { - str = ""; - } - else - { - socios = item.Vida.Socios; - if (socios.HasValue) - { - str = socios.GetValueOrDefault().ToString(); - } - else - { - str = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("SÓCIOS", str, "")); - decimal? capitalSocios = item.Vida.CapitalSocios; - if (!capitalSocios.HasValue) - { - str1 = ""; - } - else - { - capitalSocios = item.Vida.CapitalSocios; - if (capitalSocios.HasValue) - { - str1 = capitalSocios.GetValueOrDefault().ToString(); - } - else - { - str1 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("CAPITAL SÓCIO", str1, "")); - socios = item.Vida.Funcionarios; - if (!socios.HasValue) - { - str2 = ""; - } - else - { - socios = item.Vida.Funcionarios; - if (socios.HasValue) - { - str2 = socios.GetValueOrDefault().ToString(); - } - else - { - str2 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("FUNCIONÁRIOS", str2, "")); - capitalSocios = item.Vida.CapitalFuncionarios; - if (!capitalSocios.HasValue) - { - str3 = ""; - } - else - { - capitalSocios = item.Vida.CapitalFuncionarios; - if (capitalSocios.HasValue) - { - str3 = capitalSocios.GetValueOrDefault().ToString(); - } - else - { - str3 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("CAPITAL FUNCIONÁRIOS", str3, "")); - socios = item.Vida.Socios; - if (!socios.HasValue) - { - str4 = ""; - } - else - { - socios = item.Vida.Socios; - if (socios.HasValue) - { - str4 = socios.GetValueOrDefault().ToString(); - } - else - { - str4 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("QUANTIDADE DE TITULARES", str4, "")); - socios = item.Vida.Funcionarios; - if (!socios.HasValue) - { - str5 = ""; - } - else - { - socios = item.Vida.Funcionarios; - if (socios.HasValue) - { - str5 = socios.GetValueOrDefault().ToString(); - } - else - { - str5 = null; - } - } - observableCollection.Add(new Tuple<string, string, string>("QUANTIDADE DE BENEFICIÁRIOS", str5, "")); - tupleList.Tuples = observableCollection; - tupleLists.Add(tupleList); - List<TupleList> tupleLists1 = tupleLists; - ObservableCollection<Tuple<string, string, string>> observableCollection1 = new ObservableCollection<Tuple<string, string, string>>() - { - new Tuple<string, string, string>("COBERTURAS$", "", "") - }; - foreach (Cobertura cobertura in item.Coberturas) - { - observableCollection1.Add(new Tuple<string, string, string>(string.Format(" COBERTURA {0}$", item.Coberturas.IndexOf(cobertura) + 1), "", "")); - observableCollection1.Add(new Tuple<string, string, string>(" OBSERVAÇÃO", (string.IsNullOrWhiteSpace(cobertura.Observacao) ? "" : cobertura.Observacao.ToUpper()), "")); - decimal premio = cobertura.Premio; - observableCollection1.Add(new Tuple<string, string, string>(" PRÊMIO", premio.ToString("C", new CultureInfo("pt-BR", false)), "")); - premio = cobertura.Franquia; - observableCollection1.Add(new Tuple<string, string, string>(" FRANQUIA", premio.ToString("C", new CultureInfo("pt-BR", false)), "")); - premio = cobertura.Lmi; - observableCollection1.Add(new Tuple<string, string, string>(" L.M.I.", premio.ToString("C", new CultureInfo("pt-BR", false)), "")); - } - tupleLists1.Add(new TupleList() - { - Tuples = observableCollection1 - }); - return tupleLists1; - } - - public List<KeyValuePair<string, string>> Validate() - { - decimal num; - bool documento; - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (string.IsNullOrWhiteSpace(this.Plano)) - { - keyValuePairs.AddValue<string, string>("Plano", Messages.Obrigatorio, true); - } - Gestor.Model.Domain.Seguros.Item item = this.Item; - if (item != null) - { - documento = item.Documento; - } - else - { - documento = false; - } - if (!documento) - { - return keyValuePairs; - } - long id = this.Item.Documento.Controle.Ramo.Id; - if (id == (long)7 || id == (long)10 || id == (long)53) - { - int? socios = this.Socios; - if (socios.HasValue) - { - socios = this.Socios; - if (!(socios.GetValueOrDefault() < 0 & socios.HasValue)) - { - goto Label0; - } - } - keyValuePairs.AddValue<string, string>("Socios|SÓCIOS", Messages.Obrigatorio, true); - Label0: - socios = this.Funcionarios; - if (socios.HasValue) - { - socios = this.Funcionarios; - if (!(socios.GetValueOrDefault() < 0 & socios.HasValue)) - { - goto Label1; - } - } - keyValuePairs.AddValue<string, string>("Funcionarios|FUNCIONÁRIOS", Messages.Obrigatorio, true); - Label1: - decimal? capitalSocios = this.CapitalSocios; - if (capitalSocios.HasValue) - { - capitalSocios = this.CapitalSocios; - num = new decimal(); - if (!((capitalSocios.GetValueOrDefault() < num) & capitalSocios.HasValue)) - { - goto Label2; - } - } - keyValuePairs.AddValue<string, string>("CapitalSocios|CAPITAL SÓCIO", Messages.Obrigatorio, true); - Label2: - capitalSocios = this.CapitalFuncionarios; - if (capitalSocios.HasValue) - { - capitalSocios = this.CapitalFuncionarios; - num = new decimal(); - if (!((capitalSocios.GetValueOrDefault() < num) & capitalSocios.HasValue)) - { - return keyValuePairs; - } - } - keyValuePairs.AddValue<string, string>("CapitalFuncionarios|CAPITAL FUNCIONÁRIO", Messages.Obrigatorio, true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/VinculoRepasse.cs b/Gestor.Model/Model.Domain.Seguros/VinculoRepasse.cs deleted file mode 100644 index 002f83e..0000000 --- a/Gestor.Model/Model.Domain.Seguros/VinculoRepasse.cs +++ /dev/null @@ -1,159 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Domain.Generic; -using Gestor.Model.Helper; -using Gestor.Model.Resources; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class VinculoRepasse : DomainBase - { - public long IdRepasse - { - get; - set; - } - - public Repasse RepasseVinculo - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.TipoVendedor TipoVendedor - { - get; - set; - } - - public Gestor.Model.Domain.Seguros.TipoVendedor TipoVendedorVinculo - { - get; - set; - } - - public VinculoRepasse() - { - } - - public List<KeyValuePair<string, string>> Validate(List<VinculoRepasse> vinculos, Repasse repasse) - { - decimal zero; - decimal num; - decimal zero1; - decimal num1; - List<KeyValuePair<string, string>> keyValuePairs = ValidationHelper.AddValue(); - if (this.TipoVendedor == null) - { - keyValuePairs.AddValue<string, string>("TipoVendedor|TIPO VENDEDOR DO REPASSE", Messages.Obrigatorio, true); - } - if (this.IdRepasse == 0) - { - keyValuePairs.AddValue<string, string>("IdRepasse|REPASSE", Messages.Obrigatorio, true); - } - if (this.TipoVendedorVinculo == null) - { - keyValuePairs.AddValue<string, string>("TipoVendedorVinculo|TIPO VENDEDOR DO VÍNCULO", Messages.Obrigatorio, true); - } - if (this.RepasseVinculo == null) - { - keyValuePairs.AddValue<string, string>("RepasseVinculo|REPASSE DO VÍNCULO", Messages.Obrigatorio, true); - } - if (this.TipoVendedor != null && this.TipoVendedorVinculo != null && this.TipoVendedor.Id == this.TipoVendedorVinculo.Id) - { - keyValuePairs.AddValue<string, string>("TipoVendedor", "TIPO VENDEDOR SELECIONADO NÃO PODE SER O MESMO TIPO VENDEDOR DO VINCULO", true); - } - if (this.IdRepasse > (long)0 && this.RepasseVinculo != null && this.IdRepasse == this.RepasseVinculo.Id) - { - keyValuePairs.AddValue<string, string>("RepasseVinculo|REPASSE DO VÍNCULO", "NÃO É POSSÍVEL VINCULAR O MESMO REPASSE", true); - } - if (this.RepasseVinculo == null) - { - zero = decimal.Zero; - } - else - { - zero = (this.RepasseVinculo.Tipo.GetValueOrDefault() != TipoRepasse.Percentual || this.RepasseVinculo.Incidencia.GetValueOrDefault() != TipoIncidencia.SobreComissao ? decimal.Zero : this.RepasseVinculo.ValorNovo); - } - decimal num2 = zero; - decimal num3 = (repasse.Tipo.GetValueOrDefault() != TipoRepasse.Percentual || repasse.Incidencia.GetValueOrDefault() != TipoIncidencia.SobreComissao ? decimal.Zero : repasse.ValorNovo) + num2; - decimal num4 = num3; - if (this.TipoVendedor == null) - { - num = decimal.Zero; - } - else - { - num = (vinculos != null ? vinculos.Where<VinculoRepasse>((VinculoRepasse x) => { - if (this.TipoVendedor.Id != x.TipoVendedor.Id || x.RepasseVinculo.Tipo.GetValueOrDefault() != TipoRepasse.Percentual) - { - return false; - } - return x.RepasseVinculo.Incidencia.GetValueOrDefault() == TipoIncidencia.SobreComissao; - }).Sum<VinculoRepasse>((VinculoRepasse x) => x.RepasseVinculo.ValorNovo) : decimal.Zero); - } - num3 = num4 + num; - if (this.RepasseVinculo == null) - { - zero1 = decimal.Zero; - } - else - { - zero1 = (this.RepasseVinculo.Tipo.GetValueOrDefault() != TipoRepasse.Percentual || this.RepasseVinculo.Incidencia.GetValueOrDefault() != TipoIncidencia.SobreComissao ? decimal.Zero : this.RepasseVinculo.ValorRenovacao); - } - decimal num5 = zero1; - decimal num6 = (repasse.Tipo.GetValueOrDefault() != TipoRepasse.Percentual || repasse.Incidencia.GetValueOrDefault() != TipoIncidencia.SobreComissao ? decimal.Zero : repasse.ValorRenovacao) + num5; - if (this.TipoVendedor == null) - { - num1 = decimal.Zero; - } - else - { - num1 = (vinculos != null ? vinculos.Where<VinculoRepasse>((VinculoRepasse x) => { - if (this.TipoVendedor.Id != x.TipoVendedor.Id || x.RepasseVinculo.Tipo.GetValueOrDefault() != TipoRepasse.Percentual) - { - return false; - } - return x.RepasseVinculo.Incidencia.GetValueOrDefault() == TipoIncidencia.SobreComissao; - }).Sum<VinculoRepasse>((VinculoRepasse x) => x.RepasseVinculo.ValorRenovacao) : decimal.Zero); - } - decimal num7 = num6 + num1; - if (num3 > new decimal(100)) - { - keyValuePairs.AddValue<string, string>("RepasseVinculo|VALOR NOVO", "O VALOR DE REPASSE PARA SEGUROS NOVOS ULTRAPASSARÁ 100% DA COMISSÃO RECEBIDA", true); - } - if (num7 > new decimal(100)) - { - keyValuePairs.AddValue<string, string>("RepasseVinculo|VALOR RENOVAÇÃO", "O VALOR DE REPASSE PARA RENOVAÇÕES ULTRAPASSARÁ 100% DA COMISSÃO RECEBIDA", true); - } - if (vinculos == null || vinculos.Count <= 0) - { - return keyValuePairs; - } - if (this.TipoVendedor != null && this.TipoVendedorVinculo != null && vinculos.Any<VinculoRepasse>((VinculoRepasse x) => { - if (x.TipoVendedor.Id != this.TipoVendedor.Id) - { - return false; - } - return x.TipoVendedorVinculo.Id == this.TipoVendedorVinculo.Id; - })) - { - keyValuePairs.AddValue<string, string>("TipoVendedorVinculo|TIPO VENDEDOR DO VÍNCULO", string.Concat("JÁ EXISTE UM VINCULO DE REPASSE PARA ", this.TipoVendedorVinculo.Descricao), true); - } - if (this.TipoVendedor != null && this.RepasseVinculo != null && vinculos.Any<VinculoRepasse>((VinculoRepasse x) => { - if (x.TipoVendedor.Id != this.TipoVendedor.Id) - { - return false; - } - return x.RepasseVinculo.Vendedor.Id == this.RepasseVinculo.Vendedor.Id; - })) - { - keyValuePairs.AddValue<string, string>("TipoVendedorVinculo|VENDEDOR DO VÍNCULO", string.Concat("JÁ EXISTE UM VINCULO DE REPASSE PARA PARA ", this.RepasseVinculo.Vendedor.Nome), true); - } - return keyValuePairs; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Domain.Seguros/VinculoVendedor.cs b/Gestor.Model/Model.Domain.Seguros/VinculoVendedor.cs deleted file mode 100644 index 03ef440..0000000 --- a/Gestor.Model/Model.Domain.Seguros/VinculoVendedor.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Gestor.Model.Domain.Generic; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Domain.Seguros -{ - public class VinculoVendedor : DomainBase - { - public Gestor.Model.Domain.Seguros.Vendedor Vendedor - { - get; - set; - } - - public bool Vinculado - { - get; - set; - } - - public VinculoVendedor() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Helper/ValidationHelper.cs b/Gestor.Model/Model.Helper/ValidationHelper.cs deleted file mode 100644 index 2420e7c..0000000 --- a/Gestor.Model/Model.Helper/ValidationHelper.cs +++ /dev/null @@ -1,518 +0,0 @@ -using Gestor.Model.Common; -using Gestor.Model.Validation; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Globalization; -using System.Linq; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Text; -using System.Text.RegularExpressions; - -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 = ValidationHelper.AddValue<T, T2>(name, value, true); - 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 int Age(this DateTime birthDate) - { - DateTime date = Funcoes.GetNetworkTime().Date; - int year = date.Year - birthDate.Year; - if (birthDate > date.AddYears(-year)) - { - year--; - } - return year; - } - - 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), false); - if (!customAttributes.Any<object>()) - { - return genericEnum.ToString(); - } - return ((CategoryAttribute)customAttributes.ElementAt<object>(0)).Category; - } - - public static string Clear(this string stringToClean) - { - if (stringToClean == null) - { - return null; - } - return Regex.Replace(stringToClean, "[^\\d]", string.Empty); - } - - public static string ClearCurrency(this string stringToClean) - { - if (string.IsNullOrEmpty(stringToClean)) - { - return string.Empty; - } - if (stringToClean.Count<char>((char x) => x == '.') == 1) - { - if (stringToClean.Count<char>((char x) => x == ',') == 0) - { - stringToClean = stringToClean.Replace(".", ","); - } - } - if (stringToClean.Count<char>((char x) => x == '.') > 0) - { - if (stringToClean.Count<char>((char x) => x == ',') == 1) - { - stringToClean = stringToClean.Replace(".", ""); - } - } - if (stringToClean.Count<char>((char x) => x == '.') <= 1) - { - return Regex.Replace(stringToClean, "[^\\d\\,\\-]", string.Empty); - } - int num = stringToClean.Count<char>((char x) => x == '.'); - for (int i = 0; i < num; i++) - { - int num1 = stringToClean.IndexOf(".", StringComparison.CurrentCultureIgnoreCase); - StringBuilder stringBuilder = new StringBuilder(stringToClean); - stringBuilder[num1] = (i < num - 1 ? 'a' : ','); - stringToClean = stringBuilder.ToString(); - } - return Regex.Replace(stringToClean, "[^\\d\\,\\-]", string.Empty); - } - - public static string DocumentoFornecedor(this string sentence) - { - if (sentence == null) - { - return null; - } - return (new Regex("[^\\d]")).Replace(sentence, ""); - } - - public static string FormataCep(this string cep) - { - if (string.IsNullOrWhiteSpace(cep) || Regex.IsMatch(cep, "^\\d{2}\\d{3}-\\d{3}$")) - { - return cep; - } - string str = Regex.Replace(cep, "\\D", ""); - if (!Regex.IsMatch(str, "^\\d{8}$")) - { - return cep; - } - return Regex.Replace(str, "(\\d{5})(\\d{3})", "$1-$2"); - } - - public static string FormataFipe(this string value) - { - if (string.IsNullOrWhiteSpace(value)) - { - return ""; - } - ulong num = Convert.ToUInt64(value.OnlyNumber()); - return num.ToString("000000\\-0"); - } - - 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}", ""); - } - - public static string GetValueExact(this List<KeyValuePair<string, string>> keyValuePairs, string keyName) - { - KeyValuePair<string, string> keyValuePair = keyValuePairs.Find((KeyValuePair<string, string> x) => x.Key.Substring(0, (x.Key.Contains("|") ? x.Key.IndexOf("|", StringComparison.Ordinal) : x.Key.Length)).Equals(keyName)); - return keyValuePair.Value; - } - - public static string Index(this string[] stringArray, int currentIndex) - { - if (stringArray == null || !stringArray.Any<string>()) - { - return string.Empty; - } - if (currentIndex <= -1 || currentIndex >= (int)stringArray.Length) - { - return string.Empty; - } - return stringArray[currentIndex]; - } - - public static string Join(this IEnumerable<string> stringValues, string separator) - { - return string.Join(separator, stringValues); - } - - public static string Length(this string stringValue, int maxLength) - { - if (stringValue.Length <= maxLength) - { - return stringValue; - } - return stringValue.Substring(0, maxLength); - } - - public static string OnlyNumber(this string sentence) - { - if (sentence == null) - { - return null; - } - return (new Regex("[^\\d]")).Replace(sentence, ""); - } - - public static decimal ToDecimal(this string currencyString, string currentCulture = "pt-BR") - { - decimal num; - decimal.TryParse(currencyString.ClearCurrency(), NumberStyles.Any, new CultureInfo(currentCulture), out num); - return num; - } - - public static float ToFloat(this string stringValue) - { - float single; - float.TryParse(stringValue, out single); - return single; - } - - public static int ToInt(this string stringValue) - { - int num; - int.TryParse(stringValue, out num); - return num; - } - - 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 num1 = Convert.ToInt32("74185216374".Substring(i - 1, 1)); - int num2 = Convert.ToInt32(cei.Substring(i - 1, 1)); - num = num + num1 * num2; - } - int num3 = num / 10; - int num4 = num - num / 10 * 10; - num = num3 + num4; - num4 = num - num / 10 * 10; - int num5 = 10 - num4; - return Convert.ToInt32(cei.Substring(11, 1)) == num5; - } - - public static bool ValidacaoCep(this string postCode) - { - if (postCode == null) - { - return false; - } - return Regex.Match(postCode, "^[0-9]{5}-[0-9]{3}$").Success; - } - - public static bool ValidacaoChassi(this string chassiNumber) - { - string upper; - if (chassiNumber != null) - { - upper = chassiNumber.ToUpper(); - } - else - { - upper = null; - } - chassiNumber = upper; - if (string.IsNullOrEmpty(chassiNumber)) - { - return true; - } - if (chassiNumber.Length != 17 || Regex.IsMatch(chassiNumber, "^0| |^.{4,}([0-9A-Z])\\1{5,}|[iIoOqQ]")) - { - return false; - } - return Regex.IsMatch(chassiNumber, "[0-9]{4}$"); - } - - public static bool ValidacaoDataPassada(this DateTime? data) - { - DateTime? nullable = data; - DateTime date = Funcoes.GetNetworkTime().Date; - if (!nullable.HasValue) - { - return false; - } - return nullable.GetValueOrDefault() < date; - } - - public static bool ValidacaoDocumento(this string cpfCnpj) - { - int j; - int i; - int num; - string str; - if (cpfCnpj != null) - { - str = cpfCnpj.Clear(); - } - else - { - str = null; - } - string str1 = str; - if (string.IsNullOrEmpty(str1)) - { - return false; - } - int[] numArray = new int[14]; - int[] numArray1 = new int[2]; - if (new string(str1[0], str1.Length) == str1) - { - return false; - } - if (str1.Length == 11) - { - for (i = 0; i <= 10; i++) - { - numArray[i] = Convert.ToInt32(str1.Substring(i, 1)); - } - for (i = 0; i <= 1; i++) - { - num = 0; - for (j = 0; j <= 8 + i; j++) - { - num = num + numArray[j] * (10 + i - j); - } - numArray1[i] = num * 10 % 11; - if (numArray1[i] == 10) - { - numArray1[i] = 0; - } - } - return numArray1[0] == numArray[9] & numArray1[1] == numArray[10]; - } - if (str1.Length != 14) - { - return false; - } - for (i = 0; i <= 13; i++) - { - numArray[i] = Convert.ToInt32(str1.Substring(i, 1)); - } - for (i = 0; i <= 1; i++) - { - num = 0; - for (j = 0; j <= 11 + i; j++) - { - num = num + numArray[j] * Convert.ToInt32("6543298765432".Substring(j + 1 - i, 1)); - } - numArray1[i] = num * 10 % 11; - if (numArray1[i] == 10) - { - numArray1[i] = 0; - } - } - return numArray1[0] == numArray[12] & numArray1[1] == numArray[13]; - } - - public static bool ValidacaoEmail(this string mail) - { - if (mail == null) - { - return false; - } - if (mail.StartsWith("'") || mail.EndsWith("'")) - { - string str = ""; - mail = Regex.Replace((new Regex("[\\']")).Replace(mail, str), "\\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 ValidacaoEstado(this string state) - { - if (string.IsNullOrEmpty(state)) - { - return false; - } - return (new string[] { "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<string>(state.ToUpper()); - } - - public static bool ValidacaoFabricacao(this string ano) - { - int num; - if (!int.TryParse(ano, out num)) - { - return false; - } - if (num <= 1900) - { - return false; - } - return num <= Funcoes.GetNetworkTime().Year; - } - - public static bool ValidacaoModelo(this string ano) - { - int num; - if (!int.TryParse(ano, out num)) - { - return false; - } - if (num <= 1900) - { - return false; - } - return num <= Funcoes.GetNetworkTime().Year + 1; - } - - public static bool ValidacaoOrgao(this string orgao) - { - if (string.IsNullOrEmpty(orgao)) - { - return true; - } - return orgao.Length < 7; - } - - public static bool ValidacaoPlaca(this string numeroPlaca) - { - if (numeroPlaca == null) - { - return false; - } - numeroPlaca.FormataPlaca(); - return true; - } - - public static bool ValidacaoPrefixo(this string prefix) - { - int num; - if (!int.TryParse(prefix, out num)) - { - return false; - } - if (num != 20 && num != 23 && num != 25 && num != 26 && num != 29 && num != 30 && num != 36 && num != 39 && num != 40 && num != 50 && num != 52 && num != 56 && num != 57 && num != 58 && num != 59 && num != 60 && num != 70 && num != 72 && num != 76 && num != 78 && num != 80 && num != 90 && num >= 11 && num <= 99) - { - return true; - } - 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.ValidacaoPrefixo(); - } - return number.Trim().Length == 0; - } - - public static bool ValidacaoRne(this string rne) - { - return true; - } - - public static bool ValidacaoTelefone(this string number) - { - if (number == null) - { - return false; - } - return Regex.Match(number, "^(\\d{8,9}$|\\d{4,5}[- ]\\d{4}$|\\d{4}\\s\\d{3}\\s\\d{4})$").Success; - } - - public static bool ValidacaoTelefone(this string number, TipoTelefone tipo) - { - if (tipo == TipoTelefone.Internacional || tipo == TipoTelefone.Whatsapp) - { - if (number == null) - { - return false; - } - return Regex.IsMatch(number.Trim(), "^[0-9]{7,16}$"); - } - if (tipo == TipoTelefone.Gratuita || tipo == TipoTelefone.TarifaUnica) - { - if (number == null) - { - return false; - } - return Regex.IsMatch(number.Trim(), "^[0-9]{4,7}$"); - } - if (tipo != TipoTelefone.Celular) - { - return number.ValidacaoTelefone(); - } - if (number == null) - { - return false; - } - return Regex.IsMatch(number.Trim(), "^\\d{4,5}[- ]?\\d{4}$"); - } - - public static bool ValidaFipe(this string value) - { - if ((new Regex("^\\d{6}\\-\\d{1}$")).IsMatch(value)) - { - return true; - } - return false; - } - - public static bool ValidateCaepf(this string caepf) - { - return !string.IsNullOrEmpty(caepf); - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.License/Instalacao.cs b/Gestor.Model/Model.License/Instalacao.cs deleted file mode 100644 index 59d9bb8..0000000 --- a/Gestor.Model/Model.License/Instalacao.cs +++ /dev/null @@ -1,79 +0,0 @@ -using Gestor.Model.Domain.Generic; -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.License -{ - public class Instalacao : DomainBase - { - public string Aggilizador - { - get; - set; - } - - public DateTime Data - { - get; - set; - } - - public string Gerenciador - { - get; - set; - } - - public long IdFornecedor - { - get; - set; - } - - public string Ip - { - get; - set; - } - - public string NomeMaquina - { - get; - set; - } - - public string OSInfo - { - get; - set; - } - - public DateTime UltimoAcesso - { - get; - set; - } - - public long UsuarioId - { - get; - set; - } - - public string UsuarioMaquina - { - get; - set; - } - - public string UsuarioSistema - { - get; - set; - } - - public Instalacao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.License/Licenca.cs b/Gestor.Model/Model.License/Licenca.cs deleted file mode 100644 index dfece96..0000000 --- a/Gestor.Model/Model.License/Licenca.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.License -{ - public class Licenca - { - public bool AcessoLiberado - { - get; - set; - } - - public DateTime Liberacao - { - get; - set; - } - - public Gestor.Model.License.Produto Produto - { - get; - set; - } - - public int Quantidade - { - get; - set; - } - - public int Status - { - get; - set; - } - - public Licenca() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.License/Produto.cs b/Gestor.Model/Model.License/Produto.cs deleted file mode 100644 index 357cce1..0000000 --- a/Gestor.Model/Model.License/Produto.cs +++ /dev/null @@ -1,41 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -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("WEBSITE")] - Website = 19, - [Description("MOBILE")] - Mobile = 27, - [Description("LICENÇA ONLINE")] - LicencaOnline = 73, - [Description("AGGILIZADOR DOCUMENTOS")] - AggilizadorDocumentos = 77, - [Description("AGGILIZADOR CALCULOS")] - AggilizadorCalculos = 79, - [Description("AGGILIZADOR CÁLCULOS INDEPENDENTE")] - AggilizadorCalculosIndependente = 81, - [Description("SUA CORRETORA DIGITAL")] - SuaCorretoraDigital = 82, - [Description("EPIC")] - Epic = 83, - [Description("AGGILIZADOR DOCUMENTOS INDEPENDENTE")] - AggilizadorDocumentosIndependente = 84, - [Description("ASSINATURA ELETRÔNICA")] - AssinaturaEletronica = 86, - [Description("NOVO AGGILIZADOR")] - NovoAggilizador = 91 - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.License/StatusLicenca.cs b/Gestor.Model/Model.License/StatusLicenca.cs deleted file mode 100644 index 2cc22bc..0000000 --- a/Gestor.Model/Model.License/StatusLicenca.cs +++ /dev/null @@ -1,19 +0,0 @@ -using Gestor.Model.Converter; -using System; -using System.ComponentModel; - -namespace Gestor.Model.License -{ - [TypeConverter(typeof(EnumDescriptionTypeConverter))] - public enum StatusLicenca - { - [Description("NORMAL")] - Normal, - [Description("BLOQUEADO")] - Bloqueado, - [Description("CONSULTA")] - Consulta, - [Description("CANCELADO")] - Cancelado - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Relatorios/Cliente.cs b/Gestor.Model/Model.Relatorios/Cliente.cs deleted file mode 100644 index 0bf172d..0000000 --- a/Gestor.Model/Model.Relatorios/Cliente.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Relatorios -{ - public class Cliente - { - public long Id - { - get; - set; - } - - public Cliente() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Relatorios/ClienteEmail.cs b/Gestor.Model/Model.Relatorios/ClienteEmail.cs deleted file mode 100644 index 6f8e853..0000000 --- a/Gestor.Model/Model.Relatorios/ClienteEmail.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Relatorios -{ - public class ClienteEmail - { - private string _email; - - public Gestor.Model.Relatorios.Cliente Cliente - { - get; - set; - } - - public string Email - { - get - { - return this._email; - } - set - { - string str; - if (value != null) - { - str = value.Trim(); - } - else - { - str = null; - } - this._email = str; - } - } - - public ClienteEmail() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Relatorios/ClienteEndereco.cs b/Gestor.Model/Model.Relatorios/ClienteEndereco.cs deleted file mode 100644 index 37bb19e..0000000 --- a/Gestor.Model/Model.Relatorios/ClienteEndereco.cs +++ /dev/null @@ -1,191 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -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 string Bairro - { - get - { - return this._bairro; - } - set - { - string str; - if (value != null) - { - str = value.Trim(); - } - else - { - str = null; - } - this._bairro = str; - } - } - - public string Cep - { - get - { - return this._cep; - } - set - { - string str; - if (value != null) - { - str = value.Trim(); - } - else - { - str = null; - } - this._cep = str; - } - } - - public string Cidade - { - get - { - return this._cidade; - } - set - { - string str; - if (value != null) - { - str = value.Trim(); - } - else - { - str = null; - } - this._cidade = str; - } - } - - public Gestor.Model.Relatorios.Cliente Cliente - { - get; - set; - } - - public string Complemento - { - get - { - return this._complemento; - } - set - { - string str; - if (value != null) - { - str = value.Trim(); - } - else - { - str = null; - } - this._complemento = str; - } - } - - public string Endereco - { - get - { - return this._endereco; - } - set - { - string str; - if (value != null) - { - str = value.Trim(); - } - else - { - str = null; - } - this._endereco = str; - } - } - - public string Estado - { - get - { - return this._estado; - } - set - { - string str; - if (value != null) - { - str = value.Trim(); - } - else - { - str = null; - } - this._estado = str; - } - } - - public long IdCliEnd - { - get; - set; - } - - public string Numero - { - get - { - return this._numero; - } - set - { - string str; - if (value != null) - { - str = value.Trim(); - } - else - { - str = null; - } - this._numero = str; - } - } - - public int Ordem - { - get; - set; - } - - public ClienteEndereco() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Relatorios/ClienteTelefone.cs b/Gestor.Model/Model.Relatorios/ClienteTelefone.cs deleted file mode 100644 index d47ef10..0000000 --- a/Gestor.Model/Model.Relatorios/ClienteTelefone.cs +++ /dev/null @@ -1,64 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Relatorios -{ - public class ClienteTelefone - { - private string _prefixo; - - private string _numero; - - public Gestor.Model.Relatorios.Cliente Cliente - { - get; - set; - } - - public string Numero - { - get - { - return this._numero; - } - set - { - string str; - if (value != null) - { - str = value.Trim(); - } - else - { - str = null; - } - this._numero = str; - } - } - - public string Prefixo - { - get - { - return this._prefixo; - } - set - { - string str; - if (value != null) - { - str = value.Trim(); - } - else - { - str = null; - } - this._prefixo = str; - } - } - - public ClienteTelefone() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Relatorios/Controle.cs b/Gestor.Model/Model.Relatorios/Controle.cs deleted file mode 100644 index 63bd5f5..0000000 --- a/Gestor.Model/Model.Relatorios/Controle.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Relatorios -{ - public class Controle - { - public Gestor.Model.Relatorios.Cliente Cliente - { - get; - set; - } - - public long Id - { - get; - set; - } - - public Gestor.Model.Relatorios.Ramo Ramo - { - get; - set; - } - - public Controle() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Relatorios/Documento.cs b/Gestor.Model/Model.Relatorios/Documento.cs deleted file mode 100644 index f40e84d..0000000 --- a/Gestor.Model/Model.Relatorios/Documento.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Relatorios -{ - public class Documento - { - public Gestor.Model.Relatorios.Controle Controle - { - get; - set; - } - - public long Id - { - get; - set; - } - - public int? Ordem - { - get; - set; - } - - public IList<Vendedor> Vendedores - { - get; - set; - } - - public Documento() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Relatorios/EstipulanteCliente.cs b/Gestor.Model/Model.Relatorios/EstipulanteCliente.cs deleted file mode 100644 index 9738d14..0000000 --- a/Gestor.Model/Model.Relatorios/EstipulanteCliente.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Relatorios -{ - public class EstipulanteCliente - { - public long IdCliente - { - get; - set; - } - - public long IdEstiputante - { - get; - set; - } - - public string NomeEstipulante - { - get; - set; - } - - public EstipulanteCliente() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Relatorios/Ramo.cs b/Gestor.Model/Model.Relatorios/Ramo.cs deleted file mode 100644 index 0bad648..0000000 --- a/Gestor.Model/Model.Relatorios/Ramo.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Relatorios -{ - public class Ramo - { - private string _nome; - - public long Id - { - get; - set; - } - - public string Nome - { - get - { - return this._nome; - } - set - { - string str; - if (value != null) - { - str = value.Trim(); - } - else - { - str = null; - } - this._nome = str; - } - } - - public Ramo() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Relatorios/Vendedor.cs b/Gestor.Model/Model.Relatorios/Vendedor.cs deleted file mode 100644 index 9c69760..0000000 --- a/Gestor.Model/Model.Relatorios/Vendedor.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Relatorios -{ - public class Vendedor - { - private string _nome; - - public long Id - { - get; - set; - } - - public string Nome - { - get - { - return this._nome; - } - set - { - string str; - if (value != null) - { - str = value.Trim(); - } - else - { - str = null; - } - this._nome = str; - } - } - - public Vendedor() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Validation/ControleValidacao.cs b/Gestor.Model/Model.Validation/ControleValidacao.cs deleted file mode 100644 index 2c3af2c..0000000 --- a/Gestor.Model/Model.Validation/ControleValidacao.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Validation -{ - public class ControleValidacao - { - public string Estilo - { - get; - set; - } - - public string Nome - { - get; - set; - } - - public string Tag - { - get; - set; - } - - public Type Tipo - { - get; - set; - } - - public ControleValidacao() - { - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Model.Validation/Funcoes.cs b/Gestor.Model/Model.Validation/Funcoes.cs deleted file mode 100644 index a1790a2..0000000 --- a/Gestor.Model/Model.Validation/Funcoes.cs +++ /dev/null @@ -1,167 +0,0 @@ -using Gestor.Model.Common; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Diagnostics; -using System.Linq; -using System.Net; -using System.Net.Sockets; -using System.Reflection; -using System.Runtime.CompilerServices; - -namespace Gestor.Model.Validation -{ - public static class Funcoes - { - public static System.Diagnostics.Stopwatch Stopwatch; - - public static DateTime? StartTime; - - public static int GetAge(DateTime birth) - { - DateTime date = Funcoes.GetNetworkTime().Date; - int year = date.Year - birth.Year; - if (birth > date.AddYears(-year)) - { - year--; - } - return year; - } - - 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), false); - if (!customAttributes.Any<object>()) - { - return genericEnum.ToString(); - } - return ((DescriptionAttribute)customAttributes.ElementAt<object>(0)).Description; - } - - public static DateTime GetNetworkTime() - { - DateTime value; - try - { - if (!Funcoes.StartTime.HasValue) - { - byte[] numArray = new byte[48]; - numArray[0] = 27; - IPEndPoint pEndPoint = new IPEndPoint(((IEnumerable<IPAddress>)Dns.GetHostEntry("time.google.com").AddressList).First<IPAddress>((IPAddress a) => a.AddressFamily == AddressFamily.InterNetwork), 123); - using (Socket socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp)) - { - socket.Connect(pEndPoint); - socket.ReceiveTimeout = 3000; - socket.Send(numArray); - socket.Receive(numArray); - socket.Close(); - } - ulong num = (ulong)numArray[40] << 24 | (ulong)numArray[41] << 16 | (ulong)numArray[42] << 8 | (ulong)numArray[43]; - ulong num1 = (ulong)numArray[44] << 24 | (ulong)numArray[45] << 16 | (ulong)numArray[46] << 8 | (ulong)numArray[47]; - ulong num2 = num * (long)1000 + num1 * (long)1000 / 4294967296L; - DateTime dateTime = new DateTime(1900, 1, 1); - dateTime = dateTime.AddMilliseconds((double)num2); - Funcoes.StartTime = new DateTime?(dateTime.ToLocalTime()); - Funcoes.Stopwatch = System.Diagnostics.Stopwatch.StartNew(); - value = Funcoes.StartTime.Value; - } - else - { - value = Funcoes.StartTime.Value; - value = value.AddMilliseconds((double)Funcoes.Stopwatch.ElapsedMilliseconds); - } - } - catch (Exception exception) - { - Funcoes.StartTime = new DateTime?(DateTime.Now); - Funcoes.Stopwatch = System.Diagnostics.Stopwatch.StartNew(); - value = Funcoes.StartTime.Value; - } - return value; - } - - public static ParentescoVinculo? ParentescoInverso(ParentescoVinculo? parentesco) - { - if (parentesco.HasValue) - { - switch (parentesco.GetValueOrDefault()) - { - case ParentescoVinculo.MaePai: - { - return new ParentescoVinculo?(ParentescoVinculo.Filho); - } - case ParentescoVinculo.Filho: - { - return new ParentescoVinculo?(ParentescoVinculo.MaePai); - } - case ParentescoVinculo.Avo: - { - return new ParentescoVinculo?(ParentescoVinculo.Neto); - } - case ParentescoVinculo.Neto: - { - return new ParentescoVinculo?(ParentescoVinculo.Avo); - } - case ParentescoVinculo.Tio: - { - return new ParentescoVinculo?(ParentescoVinculo.Sobrinho); - } - case ParentescoVinculo.Sobrinho: - { - return new ParentescoVinculo?(ParentescoVinculo.Tio); - } - case ParentescoVinculo.Bisavo: - { - return new ParentescoVinculo?(ParentescoVinculo.Bisneto); - } - case ParentescoVinculo.Bisneto: - { - return new ParentescoVinculo?(ParentescoVinculo.Bisavo); - } - case ParentescoVinculo.Sogro: - { - return new ParentescoVinculo?(ParentescoVinculo.Genro); - } - case ParentescoVinculo.Genro: - { - return new ParentescoVinculo?(ParentescoVinculo.Sogro); - } - case ParentescoVinculo.MadrastaPadrasto: - { - return new ParentescoVinculo?(ParentescoVinculo.Enteado); - } - case ParentescoVinculo.Enteado: - { - return new ParentescoVinculo?(ParentescoVinculo.MadrastaPadrasto); - } - case ParentescoVinculo.Proprietario: - { - return new ParentescoVinculo?(ParentescoVinculo.Propriedade); - } - case ParentescoVinculo.Propriedade: - { - return new ParentescoVinculo?(ParentescoVinculo.Proprietario); - } - case ParentescoVinculo.Contratante: - { - return new ParentescoVinculo?(ParentescoVinculo.Funcionario); - } - case ParentescoVinculo.Funcionario: - { - return new ParentescoVinculo?(ParentescoVinculo.Contratante); - } - } - } - return parentesco; - } - } -} \ No newline at end of file diff --git a/Gestor.Model/Properties/AssemblyInfo.cs b/Gestor.Model/Properties/AssemblyInfo.cs deleted file mode 100644 index cf432df..0000000 --- a/Gestor.Model/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System.Diagnostics; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -[assembly: AssemblyCompany("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCopyright("Copyright © 2019")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyFileVersion("8.4.0.0")] -[assembly: AssemblyProduct("Gestor.Model")] -[assembly: AssemblyTitle("Gestor.Model")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyVersion("8.4.0.0")] -[assembly: CompilationRelaxations(8)] -[assembly: ComVisible(false)] -[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] -[assembly: Guid("5cdf128b-c74f-43e3-99be-96ed8c50bf61")] -[assembly: RuntimeCompatibility(WrapNonExceptionThrows=true)] -- cgit v1.2.3