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 --- .../IAdiantamentoRepository.cs | 31 ++++++++++ .../IAeronauticoRepository.cs | 23 +++++++ .../IAgendaEmailRepository.cs | 29 +++++++++ .../IAgendaRepository.cs | 25 ++++++++ .../IAgendaTelefoneRepository.cs | 29 +++++++++ .../IAtividadeRepository.cs | 19 ++++++ .../IAtualizacaoRepository.cs | 11 ++++ .../IAutoRepository.cs | 31 ++++++++++ .../IBancoRepository.cs | 23 +++++++ .../IBancosContasRepository.cs | 23 +++++++ .../ICategoriaTarefaRepository.cs | 18 ++++++ .../ICentroRepository.cs | 19 ++++++ .../IClienteEmailRepository.cs | 31 ++++++++++ .../IClienteEnderecoRepository.cs | 29 +++++++++ .../IClienteRepository.cs | 72 ++++++++++++++++++++++ .../IClienteTelefoneRepository.cs | 31 ++++++++++ .../IClienteVinculoRepository.cs | 25 ++++++++ .../ICoberturaGranizoRepository.cs | 21 +++++++ .../ICoberturaPadraoRepository.cs | 23 +++++++ .../ICoberturaRepository.cs | 29 +++++++++ .../ICondicaoRepasseRepository.cs | 18 ++++++ .../IConfigExtratoImportRepository.cs | 27 ++++++++ .../IConfiguracaoRepository.cs | 22 +++++++ .../IConsorcioRepository.cs | 23 +++++++ .../IControleFinanceiroRepository.cs | 21 +++++++ .../IControleRepository.cs | 23 +++++++ .../IControleSinistroRepository.cs | 27 ++++++++ .../ICredencialRepository.cs | 23 +++++++ .../ICriticaApoliceRepository.cs | 33 ++++++++++ .../IDetalheExtratoRepository.cs | 25 ++++++++ .../IDocumentoRepository.cs | 68 ++++++++++++++++++++ .../IEmpresaRepository.cs | 32 ++++++++++ .../IEstipulanteRepository.cs | 23 +++++++ .../IExpedicaoRepository.cs | 19 ++++++ .../IExtratoRepository.cs | 31 ++++++++++ .../IFabricanteRepository.cs | 23 +++++++ .../IFornecedorRepository.cs | 23 +++++++ .../IGranizoRepository.cs | 23 +++++++ .../IImpostoRepository.cs | 23 +++++++ .../IIndiceArquivoDigitalRepository.cs | 34 ++++++++++ .../IItemRepository.cs | 44 +++++++++++++ .../ILancamentoRepository.cs | 55 +++++++++++++++++ .../IMaisContatoRepository.cs | 27 ++++++++ .../IMetaSeguradoraRepository.cs | 24 ++++++++ .../IMetaVendedorRepository.cs | 24 ++++++++ .../IModeloMalaDiretaRepository.cs | 21 +++++++ .../INotaFiscalRepository.cs | 24 ++++++++ .../IParametrosRelatorioRepository.cs | 20 ++++++ .../IParametrosTotalizacaoRepository.cs | 20 ++++++ .../IParceiroRepository.cs | 25 ++++++++ .../IParcelaRepository.cs | 67 ++++++++++++++++++++ .../IPatrimonialRepository.cs | 29 +++++++++ .../IPerfilEmpresaRepository.cs | 20 ++++++ .../IPerfilRepository.cs | 23 +++++++ .../IPermissaoArquivoDigitalRepository.cs | 18 ++++++ .../IPermissaoUsuarioRepository.cs | 18 ++++++ .../IPlanoRepository.cs | 19 ++++++ .../IPlanosRepository.cs | 23 +++++++ .../IProdutoRepository.cs | 23 +++++++ .../IProfissaoRepository.cs | 19 ++++++ .../IProspectRepository.cs | 35 +++++++++++ .../IQualificacaoRepository.cs | 16 +++++ .../IRamoRepository.cs | 25 ++++++++ .../IReciboRepository.cs | 23 +++++++ .../IRegistroAcaoRepository.cs | 25 ++++++++ .../IRegistroLogRepository.cs | 41 ++++++++++++ .../IRepasseRepository.cs | 33 ++++++++++ .../IReportRepository.cs | 16 +++++ .../IRestricaoUsuarioCamposRelatoriosRepository.cs | 15 +++++ .../IRestricaoUsuarioRepository.cs | 18 ++++++ .../IRiscosDiversosRepository.cs | 23 +++++++ .../ISaldoRepository.cs | 27 ++++++++ .../ISeguradoraContatoRepository.cs | 25 ++++++++ .../ISeguradoraEnderecoRepository.cs | 23 +++++++ .../ISeguradoraRepository.cs | 25 ++++++++ .../ISinistroAutoRepository.cs | 22 +++++++ .../ISinistroRepository.cs | 30 +++++++++ .../ISinistroVidaRepository.cs | 20 ++++++ .../ISocioRepository.cs | 23 +++++++ .../IStatusProspeccaoRepository.cs | 16 +++++ .../IStatusRepository.cs | 23 +++++++ .../ITarefaRepository.cs | 69 +++++++++++++++++++++ .../ITipoContaRepository.cs | 16 +++++ .../ITipoTarefaRepository.cs | 16 +++++ .../ITipoVendedorRepository.cs | 29 +++++++++ .../ITitularesVidaRepository.cs | 23 +++++++ .../IUsuarioRepository.cs | 41 ++++++++++++ .../IVendedorParcelaRepository.cs | 45 ++++++++++++++ .../IVendedorRepository.cs | 27 ++++++++ .../IVendedorTelefoneRepository.cs | 27 ++++++++ .../IVendedorUsuarioRepository.cs | 27 ++++++++ .../IVidaRepository.cs | 23 +++++++ .../IVinculoDocumentoRepository.cs | 25 ++++++++ 93 files changed, 2498 insertions(+) create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAdiantamentoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAeronauticoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAgendaEmailRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAgendaRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAgendaTelefoneRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAtividadeRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAtualizacaoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAutoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IBancoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IBancosContasRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICategoriaTarefaRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICentroRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteEmailRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteEnderecoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteTelefoneRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteVinculoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICoberturaGranizoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICoberturaPadraoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICoberturaRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICondicaoRepasseRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IConfigExtratoImportRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IConfiguracaoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IConsorcioRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IControleFinanceiroRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IControleRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IControleSinistroRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICredencialRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICriticaApoliceRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IDetalheExtratoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IDocumentoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IEmpresaRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IEstipulanteRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IExpedicaoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IExtratoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IFabricanteRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IFornecedorRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IGranizoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IImpostoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IIndiceArquivoDigitalRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IItemRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ILancamentoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IMaisContatoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IMetaSeguradoraRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IMetaVendedorRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IModeloMalaDiretaRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/INotaFiscalRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParametrosRelatorioRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParametrosTotalizacaoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParceiroRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParcelaRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPatrimonialRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPerfilEmpresaRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPerfilRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPermissaoArquivoDigitalRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPermissaoUsuarioRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPlanoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPlanosRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IProdutoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IProfissaoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IProspectRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IQualificacaoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRamoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IReciboRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRegistroAcaoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRegistroLogRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRepasseRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IReportRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRestricaoUsuarioCamposRelatoriosRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRestricaoUsuarioRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRiscosDiversosRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISaldoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISeguradoraContatoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISeguradoraEnderecoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISeguradoraRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISinistroAutoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISinistroRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISinistroVidaRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISocioRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IStatusProspeccaoRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IStatusRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITarefaRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITipoContaRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITipoTarefaRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITipoVendedorRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITitularesVidaRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IUsuarioRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorParcelaRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorTelefoneRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorUsuarioRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVidaRepository.cs create mode 100644 Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVinculoDocumentoRepository.cs (limited to 'Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface') diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAdiantamentoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAdiantamentoRepository.cs new file mode 100644 index 0000000..75da0da --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAdiantamentoRepository.cs @@ -0,0 +1,31 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IAdiantamentoRepository : IGenericRepository + { + List AddRange(List adiantamentos); + + List BuscarAdiantamentos(long id, bool concluido = false); + + void Delete(long id); + + List Find(bool ativo); + + List Find(long id); + + List Find(string nome); + + List FindByDate(DateTime filtroInicio, DateTime filtroFim, List vendedores = null, bool segundavia = false); + + Adiantamento FindById(long id); + + Adiantamento Merge(Adiantamento adiantamento); + + Adiantamento SaveOrUpdate(Adiantamento adiantamento); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAeronauticoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAeronauticoRepository.cs new file mode 100644 index 0000000..f2c1849 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAeronauticoRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IAeronauticoRepository : IGenericRepository + { + void Delete(long id); + + void DeleteRange(List ids); + + Aeronautico Find(long id); + + Aeronautico FindById(long id); + + Aeronautico Merge(Aeronautico aeronautico); + + Aeronautico SaveOrUpdate(Aeronautico aeronautico); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAgendaEmailRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAgendaEmailRepository.cs new file mode 100644 index 0000000..6e4ffa1 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAgendaEmailRepository.cs @@ -0,0 +1,29 @@ +using Gestor.Infrastructure.Entities.Ferramentas; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Ferramentas; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IAgendaEmailRepository : IGenericRepository + { + void Delete(long id); + + List FindByAgenda(List ids); + + List FindByAgendaId(long id); + + AgendaEmail FindById(long id); + + List FindEmailAgenda(string email); + + List Inserir(List emails, Agenda agenda); + + AgendaEmail Merge(AgendaEmail agendaEmail); + + List Merge(List emails, Agenda agenda); + + AgendaEmail SaveOrUpdate(AgendaEmail agendaEmail); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAgendaRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAgendaRepository.cs new file mode 100644 index 0000000..f3bface --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAgendaRepository.cs @@ -0,0 +1,25 @@ +using Gestor.Infrastructure.Entities.Ferramentas; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Ferramentas; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IAgendaRepository : IGenericRepository + { + void Delete(long id); + + List Find(string value); + + List Find(); + + Agenda FindById(long id); + + List FindByName(string filter); + + Agenda Merge(Agenda agenda); + + Agenda SaveOrUpdate(Agenda agenda); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAgendaTelefoneRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAgendaTelefoneRepository.cs new file mode 100644 index 0000000..809c6f9 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAgendaTelefoneRepository.cs @@ -0,0 +1,29 @@ +using Gestor.Infrastructure.Entities.Ferramentas; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Ferramentas; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IAgendaTelefoneRepository : IGenericRepository + { + void Delete(long id); + + List Find(string telefone); + + List FindByAgendaId(long id); + + AgendaTelefone FindById(long id); + + List Inserir(List telefones); + + List Inserir(List telefones, Agenda agenda); + + AgendaTelefone Merge(AgendaTelefone telefone); + + List Merge(List telefones, Agenda agenda); + + AgendaTelefone SaveOrUpdate(AgendaTelefone telefone); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAtividadeRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAtividadeRepository.cs new file mode 100644 index 0000000..ea45a75 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAtividadeRepository.cs @@ -0,0 +1,19 @@ +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Common; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IAtividadeRepository : IGenericRepository + { + List Find(string filter); + + long FindLastId(); + + Atividade Merge(Atividade atividade); + + Atividade SaveOrUpdate(Atividade atividade); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAtualizacaoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAtualizacaoRepository.cs new file mode 100644 index 0000000..3d37a87 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAtualizacaoRepository.cs @@ -0,0 +1,11 @@ +using System; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IAtualizacaoRepository + { + long FindLastUpdate(); + + void Save(long fileId); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAutoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAutoRepository.cs new file mode 100644 index 0000000..c77221a --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAutoRepository.cs @@ -0,0 +1,31 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Common; +using Gestor.Model.Domain.Common; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IAutoRepository : IGenericRepository + { + void Delete(long id); + + void DeleteRange(List ids); + + Auto Find(long id); + + List FindAuto(string pesquisa, FiltroStatusDocumento status, List vendedorVinculado, TipoPesquisa tipo, bool tipobusca = false); + + Documento FindByChassi(string chassi, long id, DateTime vigencia1, DateTime? vigencia2, long idSeguradora); + + Auto FindById(long id); + + string FindChassi(long id); + + Auto Merge(Auto auto); + + Auto SaveOrUpdate(Auto auto); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IBancoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IBancoRepository.cs new file mode 100644 index 0000000..3cc18b7 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IBancoRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Common; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IBancoRepository : IGenericRepository + { + void Delete(long id); + + List Find(string filter); + + Banco FindById(long id); + + Banco Merge(Banco banco); + + Banco SaveOrUpdate(Banco banco); + + List SelectDefault(); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IBancosContasRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IBancosContasRepository.cs new file mode 100644 index 0000000..4dde7eb --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IBancosContasRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Financeiro; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Financeiro; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IBancosContasRepository : IGenericRepository + { + void Delete(long id); + + List Find(string descricao); + + List Find(); + + BancosContas FindById(long id); + + BancosContas Merge(BancosContas bancosContas); + + BancosContas SaveOrUpdate(BancosContas bancosContas); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICategoriaTarefaRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICategoriaTarefaRepository.cs new file mode 100644 index 0000000..9350ddf --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICategoriaTarefaRepository.cs @@ -0,0 +1,18 @@ +using Gestor.Infrastructure.Entities.Ferramentas; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Ferramentas; +using System; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ICategoriaTarefaRepository : IGenericRepository + { + void Delete(long id); + + CategoriaTarefa FindById(long id); + + CategoriaTarefa Merge(CategoriaTarefa categoriaTarefa); + + CategoriaTarefa SaveOrUpdate(CategoriaTarefa categoriaTarefa); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICentroRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICentroRepository.cs new file mode 100644 index 0000000..fe55492 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICentroRepository.cs @@ -0,0 +1,19 @@ +using Gestor.Infrastructure.Entities.Financeiro; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Financeiro; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ICentroRepository : IGenericRepository + { + List Find(string descricao); + + List Find(); + + Centro Merge(Centro centro); + + Centro SaveOrUpdate(Centro centro); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteEmailRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteEmailRepository.cs new file mode 100644 index 0000000..d14e969 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteEmailRepository.cs @@ -0,0 +1,31 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IClienteEmailRepository : IGenericRepository + { + void Delete(long id); + + List DeleteMail(long clienteId, List emails); + + List FindByCliente(List ids); + + List FindByClienteId(long id); + + ClienteEmail FindById(long id); + + List FindEmailCliente(string email, long idempresa = 0L); + + List Inserir(List emails, Cliente cliente); + + ClienteEmail Merge(ClienteEmail clienteEmail); + + List Merge(List emails, Cliente cliente); + + ClienteEmail SaveOrUpdate(ClienteEmail clienteEmail); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteEnderecoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteEnderecoRepository.cs new file mode 100644 index 0000000..cba09be --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteEnderecoRepository.cs @@ -0,0 +1,29 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IClienteEnderecoRepository : IGenericRepository + { + void Delete(long id); + + List DeleteEndereco(long clienteId, List enderecos); + + List FindByCliente(List clientes); + + List FindByClienteId(long id); + + ClienteEndereco FindById(long id); + + List Inserir(List endereco, Cliente cliente); + + ClienteEndereco Merge(ClienteEndereco clienteEndereco); + + List Merge(List enderecos, Cliente cliente); + + ClienteEndereco SaveOrUpdate(ClienteEndereco clienteEndereco); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteRepository.cs new file mode 100644 index 0000000..e65df00 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteRepository.cs @@ -0,0 +1,72 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Common; +using Gestor.Model.Domain.Ferramentas; +using Gestor.Model.Domain.Relatorios; +using Gestor.Model.Domain.Relatorios.Classificacao; +using Gestor.Model.Domain.Relatorios.ClientesAtivosInativos; +using Gestor.Model.Domain.Relatorios.Dashboard; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IClienteRepository : IGenericRepository + { + void AddCentralSegurado(long id, bool update); + + Task> BuscaClientes(bool completo, long idempresa); + + Task> BuscaClientesVinculo(bool completo, List vinculo, long idempresa); + + DateTime? BuscaNascimeto(long id); + + Task> BuscaProspeccoes(Filtros filtro, long idEmpresa = 0L); + + List BuscarAniversariantes(Filtros filtro, long idempresa = 0L); + + List BuscarAniversariantesVinculo(Filtros filtro, List vinculo, long idempresa = 0L); + + Task> BuscarClassificacoes(long id); + + string BuscarLogAntigo(long id, string connection); + + List BuscarOrigem(long id); + + List BuscarVencimentoCnh(Filtros filtro, long idempresa = 0L); + + void Delete(long id); + + void DeleteOrigem(long id); + + List Find(string filter, long idempresa = 0L, bool acessoAgger = false, bool assintatura = false); + + List FindAllClientes(bool completo, long idempresa = 0L); + + Cliente FindById(long id); + + List FindByName(string filter, long idempresa = 0L, bool acessoAgger = false, bool assintatura = false, bool somenteNome = false); + + List FindClienteDocumento(string documento); + + List FindClienteVinculo(string filter, List vinculos, long idempresa = 0L, bool acessoAgger = false, bool assinatura = false, TipoFiltroCliente tipoFiltroCliente = 2); + + List FindObsCliente(string obsCliente, long idempresa = 0L); + + List FindPastaCliente(string pastaCliente, bool busca = false, long idempresa = 0L); + + List FindVinculo(string filter, long id); + + Cliente Merge(Cliente cliente); + + OrigemCliente Merge(OrigemCliente origem); + + Cliente SaveOrUpdate(Cliente cliente); + + OrigemCliente SaveOrUpdate(OrigemCliente origem); + + List Sincronize(List origens, long id); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteTelefoneRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteTelefoneRepository.cs new file mode 100644 index 0000000..4eea2ac --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteTelefoneRepository.cs @@ -0,0 +1,31 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IClienteTelefoneRepository : IGenericRepository + { + void Delete(long id); + + List DeleteFone(long clienteId, List telefones); + + List Find(string telefone, long idempresa = 0L); + + List FindByClienteId(long id); + + ClienteTelefone FindById(long id); + + List Inserir(List telefones); + + List Inserir(List telefones, Cliente cliente); + + ClienteTelefone Merge(ClienteTelefone telefone); + + List Merge(List telefones, Cliente cliente); + + ClienteTelefone SaveOrUpdate(ClienteTelefone telefone); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteVinculoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteVinculoRepository.cs new file mode 100644 index 0000000..a399178 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteVinculoRepository.cs @@ -0,0 +1,25 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IClienteVinculoRepository : IGenericRepository + { + void Delete(long id); + + List DeleteVinculo(long clienteId, List vinculos); + + List FindByCliente(long id); + + ClienteVinculo FindById(long id); + + List Inserir(List vinculos, Cliente cliente); + + List Merge(List contatos, Cliente cliente); + + ClienteVinculo SaveOrUpdate(ClienteVinculo clienteVinculo); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICoberturaGranizoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICoberturaGranizoRepository.cs new file mode 100644 index 0000000..620e2af --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICoberturaGranizoRepository.cs @@ -0,0 +1,21 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ICoberturaGranizoRepository : IGenericRepository + { + void Delete(long id); + + List Find(long id); + + CoberturaGranizo FindById(long id); + + CoberturaGranizo Merge(CoberturaGranizo cobertura); + + CoberturaGranizo SaveOrUpdate(CoberturaGranizo cobertura); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICoberturaPadraoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICoberturaPadraoRepository.cs new file mode 100644 index 0000000..ed82a3d --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICoberturaPadraoRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ICoberturaPadraoRepository : IGenericRepository + { + void Delete(long id); + + List Find(); + + CoberturaPadrao FindById(long id); + + List FindByRamoId(long id); + + CoberturaPadrao Merge(CoberturaPadrao coberturaPadrao); + + CoberturaPadrao SaveOrUpdate(CoberturaPadrao coberturaPadrao); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICoberturaRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICoberturaRepository.cs new file mode 100644 index 0000000..e2f5a01 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICoberturaRepository.cs @@ -0,0 +1,29 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ICoberturaRepository : IGenericRepository + { + List AddRange(List coberturas); + + void Delete(long id); + + void DeletebyItem(long id); + + void DeleteRange(List ids); + + Cobertura FindById(long id); + + List FindByItemId(long id); + + Cobertura Merge(Cobertura cobertura); + + List MergeRange(List coberturas); + + Cobertura SaveOrUpdate(Cobertura cobertura); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICondicaoRepasseRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICondicaoRepasseRepository.cs new file mode 100644 index 0000000..367005b --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICondicaoRepasseRepository.cs @@ -0,0 +1,18 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ICondicaoRepasseRepository : IGenericRepository + { + void Delete(long id); + + CondicaoRepasse FindById(long id); + + CondicaoRepasse Merge(CondicaoRepasse condicaoRepasse); + + CondicaoRepasse SaveOrUpdate(CondicaoRepasse condicaoRepasse); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IConfigExtratoImportRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IConfigExtratoImportRepository.cs new file mode 100644 index 0000000..c1bf651 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IConfigExtratoImportRepository.cs @@ -0,0 +1,27 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IConfigExtratoImportRepository : IGenericRepository + { + void Delete(long id); + + List Find(bool ativo); + + List Find(); + + ConfigExtratoImport FindById(long id); + + List FindBySeguradora(long id); + + Gestor.Model.Domain.Seguros.ConfigExtratoImport Merge(Gestor.Model.Domain.Seguros.ConfigExtratoImport ConfigExtratoImport); + + List MergeRange(List ConfigExtratoImport); + + Gestor.Model.Domain.Seguros.ConfigExtratoImport SaveOrUpdate(Gestor.Model.Domain.Seguros.ConfigExtratoImport ConfigExtratoImport); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IConfiguracaoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IConfiguracaoRepository.cs new file mode 100644 index 0000000..2232774 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IConfiguracaoRepository.cs @@ -0,0 +1,22 @@ +using Gestor.Infrastructure.Entities.Configuracoes; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Common; +using Gestor.Model.Domain.Configuracoes; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IConfiguracaoRepository : IGenericRepository + { + List BuscarConfiguracoes(); + + void Delete(long id); + + ConfiguracaoSistema Find(Configuracao configuracao); + + ConfiguracaoSistema Merge(ConfiguracaoSistema configuracao); + + ConfiguracaoSistema SaveOrUpdate(ConfiguracaoSistema configuracao); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IConsorcioRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IConsorcioRepository.cs new file mode 100644 index 0000000..db9ce96 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IConsorcioRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IConsorcioRepository : IGenericRepository + { + void Delete(long id); + + void DeleteRange(List ids); + + Consorcio Find(long id); + + Consorcio FindById(long id); + + Consorcio Merge(Consorcio risco); + + Consorcio SaveOrUpdate(Consorcio risco); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IControleFinanceiroRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IControleFinanceiroRepository.cs new file mode 100644 index 0000000..3205e4a --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IControleFinanceiroRepository.cs @@ -0,0 +1,21 @@ +using Gestor.Infrastructure.Entities.Financeiro; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Financeiro; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IControleFinanceiroRepository : IGenericRepository + { + void Delete(long id); + + List FindByFornecedor(long id); + + ControleFinanceiro FindById(long id); + + ControleFinanceiro Merge(ControleFinanceiro controle); + + ControleFinanceiro SaveOrUpdate(ControleFinanceiro controle); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IControleRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IControleRepository.cs new file mode 100644 index 0000000..3d04cd2 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IControleRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IControleRepository : IGenericRepository + { + void Delete(long id); + + IEnumerable FindByCustomerId(long id); + + Controle FindById(long id); + + Controle Merge(Controle controle); + + Controle SaveOrUpdate(Controle controle); + + IEnumerable SelectDocumentIds(long id); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IControleSinistroRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IControleSinistroRepository.cs new file mode 100644 index 0000000..61f5fe1 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IControleSinistroRepository.cs @@ -0,0 +1,27 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IControleSinistroRepository : IGenericRepository + { + void Delete(long id); + + void DeleteByItem(long id); + + void DeleteRange(List ids); + + ControleSinistro FindById(long id); + + List FindByIdItem(long id); + + bool HasSinistro(long id); + + ControleSinistro Merge(ControleSinistro controle); + + ControleSinistro SaveOrUpdate(ControleSinistro controle); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICredencialRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICredencialRepository.cs new file mode 100644 index 0000000..67ef505 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICredencialRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Ferramentas; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Ferramentas; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ICredencialRepository : IGenericRepository + { + void Delete(long id); + + List Find(long idEmpresa); + + List Find(string descricao, long idEmpresa); + + Credencial FindById(long id); + + Credencial Merge(Credencial credencial); + + Credencial SaveOrUpdate(Credencial credencial); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICriticaApoliceRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICriticaApoliceRepository.cs new file mode 100644 index 0000000..8766bbf --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICriticaApoliceRepository.cs @@ -0,0 +1,33 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ICriticaApoliceRepository : IGenericRepository + { + List BuscarUsuarioCritica(DateTime inicio, DateTime fim, bool criticado = false, long idempresa = 0L); + + void Delete(long id); + + List Find(long usuario, DateTime inicio, DateTime fim, long idCorretora, bool criticado = false, long idempresa = 0L, List vinculos = null, bool vendedorEmBranco = false, bool vinculoVendedorCritica = false); + + List Find(DateTime inicio, DateTime fim, long idempresa = 0L); + + List Find(long id); + + CriticaApolice FindByApolice(long id); + + CriticaApolice FindById(long id); + + List FindDuo(long id, DateTime vigencia); + + List FindImport(long id); + + CriticaApolice Merge(CriticaApolice documento); + + CriticaApolice SaveOrUpdate(CriticaApolice documento); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IDetalheExtratoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IDetalheExtratoRepository.cs new file mode 100644 index 0000000..0ac35c8 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IDetalheExtratoRepository.cs @@ -0,0 +1,25 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IDetalheExtratoRepository : IGenericRepository + { + void Delete(long id); + + List Find(long id); + + DetalheExtrato FindById(long id); + + List FindByLongId(long? id); + + DetalheExtrato FindByParcelaId(long id); + + DetalheExtrato Merge(DetalheExtrato parcela); + + DetalheExtrato SaveOrUpdate(DetalheExtrato parcela); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IDocumentoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IDocumentoRepository.cs new file mode 100644 index 0000000..277a960 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IDocumentoRepository.cs @@ -0,0 +1,68 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Common; +using Gestor.Model.Domain.Relatorios; +using Gestor.Model.Domain.Relatorios.Fechamento; +using Gestor.Model.Domain.Seguros; +using Gestor.Model.License; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IDocumentoRepository : IGenericRepository + { + bool AtualizarNumero(long id, string numero, string endosso, int tipoDocumento); + + List Auditoria(Filtros filtro); + + Task> BuscaDocumentosPorVigencia(Filtros filtro, bool buscaAssinaturas = false, bool painelBi = false); + + List BuscarDocumentoPorEstipulante(long id); + + List BuscarDocumentoPorStatus(long id); + + string BuscarLogAntigo(long id, string conn); + + List BuscarPlanilhaCompletaProspeccao(List ids); + + int Cotacoes(Filtros filtro); + + void Delete(long id); + + Task> Fechamento(Filtros filtro); + + List FindApolice(string pesquisa, FiltroStatusDocumento status, List vendedorVinculado, string campo, long idempresa = 0L, bool vendedorembranco = false, bool tipobusca = false); + + List FindApoliceByCustomer(long idCliente, FiltroStatusDocumento status, List vendedorVinculado, List licencas, bool endosso = false, bool acessoAgger = false, bool vendedorembranco = false); + + List FindByControle(long id); + + Documento FindById(long id, bool itens = false, bool sinistrosPorControle = false); + + Documento FindById(long id, List vendedorVinculado); + + List FindByIds(List ids); + + List FindByLicenciamento(Filtros filtro); + + List FindByParcelaIds(List ids); + + List FindByPlaca(Filtros filtro); + + List FindByVigenciaFinal(Filtros filtro, List licencas, bool somarPremios); + + Task> FindEndossoByVigencia(Filtros filtro, bool buscarAssinatura = false); + + List FindPendenciasByVigencia(Filtros filtro); + + Documento Merge(Documento documento); + + void SalvarAssistencia(string id, long idcontrole); + + Documento SaveOrUpdate(Documento documento); + + void TrocarCliente(Controle controle, Cliente cliente); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IEmpresaRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IEmpresaRepository.cs new file mode 100644 index 0000000..1b30b68 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IEmpresaRepository.cs @@ -0,0 +1,32 @@ +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Common; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IEmpresaRepository : IGenericRepository + { + string BuscarSenhaAdm(long idempresa = 1L); + + double ConsultaEspacoBancoInGb(); + + void Delete(long id); + + List Find(long idempresa = 0L); + + List FindAsCliente(string filter); + + Empresa FindByDocumento(string documento); + + Empresa FindById(long id); + + Empresa FindBySerial(string serial); + + Empresa Merge(Empresa empresa); + + Empresa SaveOrUpdate(Empresa empresa); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IEstipulanteRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IEstipulanteRepository.cs new file mode 100644 index 0000000..c532c4e --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IEstipulanteRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IEstipulanteRepository : IGenericRepository + { + void Delete(long id); + + List Find(string value, long idempresa = 0L); + + List Find(); + + Estipulante FindById(long id); + + Estipulante Merge(Estipulante empresa); + + Estipulante SaveOrUpdate(Estipulante empresa); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IExpedicaoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IExpedicaoRepository.cs new file mode 100644 index 0000000..bd2979d --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IExpedicaoRepository.cs @@ -0,0 +1,19 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IExpedicaoRepository : IGenericRepository + { + void Delete(long id); + + List FindByIdDocumento(long IdDocumento); + + Expedicao Merge(Expedicao expedicao); + + Expedicao SaveOrUpdate(Expedicao expedicao); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IExtratoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IExtratoRepository.cs new file mode 100644 index 0000000..395f10f --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IExtratoRepository.cs @@ -0,0 +1,31 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Common; +using Gestor.Model.Domain.Relatorios; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IExtratoRepository : IGenericRepository + { + void Delete(long id); + + List FindByData(Filtros filtro); + + List FindByEmpresa(long id); + + Extrato FindById(long id); + + List FindBySeguradora(long id, long idusuario, long empresa, DateTime inicio, DateTime fim, StatusExtrato? status = null); + + List FindByStatus(StatusExtrato status); + + List FindSeguradoras(StatusExtrato status); + + Extrato Merge(Extrato extrato); + + Extrato SaveOrUpdate(Extrato extrato); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IFabricanteRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IFabricanteRepository.cs new file mode 100644 index 0000000..af987ed --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IFabricanteRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IFabricanteRepository : IGenericRepository + { + void Delete(long id); + + List Find(string filter); + + Fabricante FindById(long id); + + Fabricante Merge(Fabricante fabricante); + + Fabricante SaveOrUpdate(Fabricante fabricante); + + List Select(); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IFornecedorRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IFornecedorRepository.cs new file mode 100644 index 0000000..5b8f9b6 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IFornecedorRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Financeiro; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Financeiro; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IFornecedorRepository : IGenericRepository + { + void Delete(long id); + + List Find(string filter, bool ativo); + + List Find(); + + Fornecedor FindById(long id); + + Fornecedor Merge(Fornecedor fornecedor); + + Fornecedor SaveOrUpdate(Fornecedor fornecedor); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IGranizoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IGranizoRepository.cs new file mode 100644 index 0000000..f8e456d --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IGranizoRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IGranizoRepository : IGenericRepository + { + void Delete(long id); + + void DeleteRange(List ids); + + Granizo Find(long id); + + Granizo FindById(long id); + + Granizo Merge(Granizo granizo); + + Granizo SaveOrUpdate(Granizo granizo); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IImpostoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IImpostoRepository.cs new file mode 100644 index 0000000..9e1a522 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IImpostoRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Ferramentas; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Ferramentas; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IImpostoRepository : IGenericRepository + { + List DefaultSelect(bool? ativo); + + Imposto FindById(long id); + + List FindByRamo(long id); + + List FindBySeguradora(long id); + + Imposto Merge(Imposto imposto); + + Imposto SaveOrUpdate(Imposto imposto); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IIndiceArquivoDigitalRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IIndiceArquivoDigitalRepository.cs new file mode 100644 index 0000000..fc3a993 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IIndiceArquivoDigitalRepository.cs @@ -0,0 +1,34 @@ +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Common; +using Gestor.Model.Domain.Common; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IIndiceArquivoDigitalRepository : IGenericRepository + { + ControleArquivoDigital BuscarBanco(); + + List BuscarBancos(); + + ControleArquivoDigital ConsultarBanco(string banco); + + void Delete(long id); + + List Find(TipoArquivoDigital tipo, long id, long usuario, bool buscarAssinaturas = false); + + ArquivoDigital FindAssinatura(long id); + + List FindAssinatura(List id); + + IndiceArquivoDigital FindById(long id); + + IndiceArquivoDigital Merge(IndiceArquivoDigital indice); + + IndiceArquivoDigital SaveOrUpdate(IndiceArquivoDigital indice); + + ControleArquivoDigital SaveOrUpdate(ControleArquivoDigital catalogo); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IItemRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IItemRepository.cs new file mode 100644 index 0000000..04578fa --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IItemRepository.cs @@ -0,0 +1,44 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Common; +using Gestor.Model.Domain.Common; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IItemRepository : IGenericRepository + { + Task> BuscaItensPorObs(string pesquisa, FiltroStatusDocumento status, List vendedorVinculado, TipoPesquisa tipo, bool tipobusca = false); + + Cliente BuscarCliente(long id); + + int ChecarQuantidade(long idDocumento); + + void Delete(long id); + + void DeleteRange(List ids); + + List FindByDocumentsIds(long id, StatusItem status = 0, bool sinistroCompleto = false); + + Item FindById(long id); + + List FindByIds(List ids); + + List FindItens(long id, StatusItem status); + + List FindItens(List documento); + + List FindItens(long id); + + List FindItens(List ids); + + int FindNextItem(long id); + + Item Merge(Item empresa); + + Item SaveOrUpdate(Item empresa); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ILancamentoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ILancamentoRepository.cs new file mode 100644 index 0000000..e91d625 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ILancamentoRepository.cs @@ -0,0 +1,55 @@ +using Gestor.Infrastructure.Entities.Financeiro; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Common; +using Gestor.Model.Domain.Financeiro; +using Gestor.Model.Domain.Financeiro.Relatorios; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ILancamentoRepository : IGenericRepository + { + List AddRange(List lancamento); + + bool BancosContasUtilizado(long id); + + void Delete(long id); + + List Fechamento(FiltroFinanceiro filtro); + + Saldo FecharSaldo(Saldo saldo); + + List Find(DateTime inicio, DateTime fim, StatusLancamento status); + + List FindByBaixa(DateTime inicio, DateTime fim); + + List FindByCodigoBanco(List codigos); + + List FindByConta(DateTime inicio, DateTime fim, long id); + + List FindByControle(long id, StatusLancamento status); + + Lancamento FindByControle(long id, int parcela); + + List FindByFornecedor(long id, StatusLancamento status); + + List FindByFornecedor(long id, DateTime date, Sinal sinal); + + Lancamento FindById(long id); + + List FindByLancamento(DateTime inicio, DateTime fim, StatusLancamento status); + + List FindByPagamento(DateTime inicio, DateTime fim); + + List FindLancamentosByConta(DateTime inicio, DateTime fim, long id); + + List FindPersonalizado(DateTime inicio, DateTime fim, StatusLancamento status, FiltroLancamentoData filtrodata); + + bool HasByFornecedor(long id); + + Lancamento Merge(Lancamento lancamento); + + Lancamento SaveOrUpdate(Lancamento lancamento); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IMaisContatoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IMaisContatoRepository.cs new file mode 100644 index 0000000..0d92bad --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IMaisContatoRepository.cs @@ -0,0 +1,27 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IMaisContatoRepository : IGenericRepository + { + void Delete(long id); + + List DeleteContato(long clienteId, List contatos); + + List FindByCustomerId(long id); + + MaisContato FindById(long id); + + List Inserir(List contatos, Cliente cliente); + + MaisContato Merge(MaisContato maisContato); + + List Merge(List contatos, Cliente cliente); + + MaisContato SaveOrUpdate(MaisContato maisContato); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IMetaSeguradoraRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IMetaSeguradoraRepository.cs new file mode 100644 index 0000000..12b8b10 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IMetaSeguradoraRepository.cs @@ -0,0 +1,24 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Relatorios; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IMetaSeguradoraRepository : IGenericRepository + { + void Delete(long id); + + List Find(long id); + + MetaSeguradora FindById(long id); + + List FindByMeta(Filtros filtro); + + MetaSeguradora Merge(MetaSeguradora metaSeguradora); + + MetaSeguradora SaveOrUpdate(MetaSeguradora metaSeguradora); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IMetaVendedorRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IMetaVendedorRepository.cs new file mode 100644 index 0000000..d1f88a6 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IMetaVendedorRepository.cs @@ -0,0 +1,24 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Relatorios; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IMetaVendedorRepository : IGenericRepository + { + void Delete(long id); + + List Find(long id); + + MetaVendedor FindById(long id); + + List FindByMeta(Filtros filtro); + + MetaVendedor Merge(MetaVendedor metaVendedor); + + MetaVendedor SaveOrUpdate(MetaVendedor metaVendedor); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IModeloMalaDiretaRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IModeloMalaDiretaRepository.cs new file mode 100644 index 0000000..3c39958 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IModeloMalaDiretaRepository.cs @@ -0,0 +1,21 @@ +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.MalaDireta; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IModeloMalaDiretaRepository : IGenericRepository + { + void Delete(long id); + + List Find(); + + ModeloMalaDireta FindById(long id); + + ModeloMalaDireta Merge(ModeloMalaDireta modelo); + + ModeloMalaDireta SaveOrUpdate(ModeloMalaDireta modelo); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/INotaFiscalRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/INotaFiscalRepository.cs new file mode 100644 index 0000000..cba9155 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/INotaFiscalRepository.cs @@ -0,0 +1,24 @@ +using Gestor.Infrastructure.Entities.Ferramentas; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Ferramentas; +using Gestor.Model.Domain.Relatorios; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface INotaFiscalRepository : IGenericRepository + { + void Delete(long id); + + List FindAll(); + + List FindByDatas(Filtros filtro); + + bool FindByExtrato(long id); + + NotaFiscal Merge(NotaFiscal notaFiscal); + + NotaFiscal SaveOrUpdate(NotaFiscal notaFiscal); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParametrosRelatorioRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParametrosRelatorioRepository.cs new file mode 100644 index 0000000..555ac56 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParametrosRelatorioRepository.cs @@ -0,0 +1,20 @@ +using Gestor.Infrastructure.Entities.Relatorios; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Common; +using Gestor.Model.Domain.Relatorios; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IParametrosRelatorioRepository : IGenericRepository + { + void Delete(long id); + + List Find(long id, Relatorio relatorio); + + ParametrosRelatorio Merge(ParametrosRelatorio parametrosRelatorio); + + ParametrosRelatorio SaveOrUpdate(ParametrosRelatorio parametrosRelatorio); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParametrosTotalizacaoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParametrosTotalizacaoRepository.cs new file mode 100644 index 0000000..e1f0bbc --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParametrosTotalizacaoRepository.cs @@ -0,0 +1,20 @@ +using Gestor.Infrastructure.Entities.Relatorios; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Common; +using Gestor.Model.Domain.Relatorios; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IParametrosTotalizacaoRepository : IGenericRepository + { + void Delete(long id); + + List Find(long id, Relatorio relatorio); + + ParametrosTotalizacao Merge(ParametrosTotalizacao parametrosTotalizacao); + + ParametrosTotalizacao SaveOrUpdate(ParametrosTotalizacao parametrosTotalizacao); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParceiroRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParceiroRepository.cs new file mode 100644 index 0000000..76ae828 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParceiroRepository.cs @@ -0,0 +1,25 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IParceiroRepository : IGenericRepository + { + void Delete(long id); + + List Find(); + + List Find(string filter); + + Parceiro FindById(long id); + + long FindLastId(); + + Parceiro Merge(Parceiro parceiro); + + Parceiro SaveOrUpdate(Parceiro parceiro); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParcelaRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParcelaRepository.cs new file mode 100644 index 0000000..46850f7 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParcelaRepository.cs @@ -0,0 +1,67 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Aggilizador; +using Gestor.Model.Domain.Relatorios; +using Gestor.Model.Domain.Relatorios.PrevisaoPagamentoComissao; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IParcelaRepository : IGenericRepository + { + Task> BuscaDocumentosPorVigencia(Filtros filtro, bool buscaAssinaturas = false, bool painelBi = false); + + Documento BuscarApolice(long id); + + string BuscarLogAntigo(long id, string conn); + + ParcelaPendente BuscarPendencia(long id); + + void Delete(long id); + + void DeleteRange(long id); + + bool ExcluirVinculoParcelaPendenteDocExcluido(Documento doc); + + Task> FaturaPendente(Filtros filtro); + + List FindByDocumentId(long id); + + List FindByDocumentId(List ids); + + List FindByDocumentIds(string ids, List documentos); + + List FindByDocumento(Documento documento); + + Parcela FindById(long id); + + List FindByPagamento(Filtros filtro, bool reciboPagamento, bool segundaViaReciboPagamento, bool datacontrole); + + List FindByPendente(Filtros filtro, bool pendente, bool somenteAtivos); + + Task> FindByRecebimento(Filtros filtro); + + List FindByVencimento(Filtros filtro); + + List FindByVigencia(Filtros filtro); + + List FindDocumentId(List ids); + + List FindNumFatura(string numero); + + Parcela Merge(Parcela parcela); + + List PrevisaoPagamentoComissao(Filtros filtro); + + Parcela SaveOrUpdate(Parcela parcela); + + int[] SincronizarPendencia(DateTime date, List ids = null); + + bool Update(List detalhes, bool desabilitaAproximacao); + + List UpdateRange(List parcelas); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPatrimonialRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPatrimonialRepository.cs new file mode 100644 index 0000000..318f5a8 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPatrimonialRepository.cs @@ -0,0 +1,29 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Common; +using Gestor.Model.Domain.Common; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IPatrimonialRepository : IGenericRepository + { + void Delete(long id); + + void DeleteRange(List ids); + + Patrimonial Find(long id); + + Patrimonial FindById(long id); + + List FindImobiliaria(string imobiliaria, FiltroStatusDocumento status, List vendedorVinculado); + + List Findlocatario(string imobiliaria, FiltroStatusDocumento status, List vendedorVinculado); + + Patrimonial Merge(Patrimonial patrimonial); + + Patrimonial SaveOrUpdate(Patrimonial patrimonial); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPerfilEmpresaRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPerfilEmpresaRepository.cs new file mode 100644 index 0000000..fe26532 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPerfilEmpresaRepository.cs @@ -0,0 +1,20 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IPerfilEmpresaRepository : IGenericRepository + { + void Delete(long id); + + PerfilEmpresa Find(long id); + + PerfilEmpresa FindByControleId(long id); + + PerfilEmpresa Merge(PerfilEmpresa perfil); + + PerfilEmpresa SaveOrUpdate(PerfilEmpresa perfil); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPerfilRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPerfilRepository.cs new file mode 100644 index 0000000..bc721d4 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPerfilRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IPerfilRepository : IGenericRepository + { + void Delete(long id); + + Perfil Find(long id); + + List FindByControleId(long id); + + List FindByControleIds(string ids); + + Perfil Merge(Perfil perfil); + + Perfil SaveOrUpdate(Perfil perfil); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPermissaoArquivoDigitalRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPermissaoArquivoDigitalRepository.cs new file mode 100644 index 0000000..4a75173 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPermissaoArquivoDigitalRepository.cs @@ -0,0 +1,18 @@ +using Gestor.Model.Common; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IPermissaoArquivoDigitalRepository + { + PermissaoArquivoDigital FindByPermissao(long id, TipoArquivoDigital tela); + + List FindByUsuario(long id); + + PermissaoArquivoDigital Merge(PermissaoArquivoDigital permissao); + + PermissaoArquivoDigital SaveOrUpdate(PermissaoArquivoDigital permissao); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPermissaoUsuarioRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPermissaoUsuarioRepository.cs new file mode 100644 index 0000000..07fd4fe --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPermissaoUsuarioRepository.cs @@ -0,0 +1,18 @@ +using Gestor.Model.Common; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IPermissaoUsuarioRepository + { + PermissaoUsuario FindByPermissao(long id, TipoTela tela); + + List FindByUsuario(long id); + + PermissaoUsuario Merge(PermissaoUsuario permissao); + + PermissaoUsuario SaveOrUpdate(PermissaoUsuario permissao); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPlanoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPlanoRepository.cs new file mode 100644 index 0000000..b5722d8 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPlanoRepository.cs @@ -0,0 +1,19 @@ +using Gestor.Infrastructure.Entities.Financeiro; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Financeiro; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IPlanoRepository : IGenericRepository + { + List Find(string descricao); + + List Find(); + + Plano Merge(Plano plano); + + Plano SaveOrUpdate(Plano plano); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPlanosRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPlanosRepository.cs new file mode 100644 index 0000000..e12b184 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPlanosRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Financeiro; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Financeiro; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IPlanosRepository : IGenericRepository + { + List Find(string descricao); + + List Find(); + + Planos FindById(long id); + + List FindByPlanoId(long id); + + Planos Merge(Planos planos); + + Planos SaveOrUpdate(Planos planos); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IProdutoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IProdutoRepository.cs new file mode 100644 index 0000000..703cc69 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IProdutoRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IProdutoRepository : IGenericRepository + { + void Delete(long id); + + List Find(string value); + + List Find(); + + Produto FindById(long id); + + Produto Merge(Produto produto); + + Produto SaveOrUpdate(Produto produto); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IProfissaoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IProfissaoRepository.cs new file mode 100644 index 0000000..6f32852 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IProfissaoRepository.cs @@ -0,0 +1,19 @@ +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Common; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IProfissaoRepository : IGenericRepository + { + List Find(string filter); + + long FindLastId(); + + Profissao Merge(Profissao profissao); + + Profissao SaveOrUpdate(Profissao profissao); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IProspectRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IProspectRepository.cs new file mode 100644 index 0000000..b15a4ba --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IProspectRepository.cs @@ -0,0 +1,35 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Common; +using Gestor.Model.Domain.Relatorios; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IProspectRepository : IGenericRepository + { + void Delete(long id); + + List Find(long idEmpresa, long id, DateTime inicio, DateTime fim, StatusProspeccao? status); + + List Find(Filtros filtro); + + List FindByData(DateTime inicio, DateTime fim); + + Prospeccao FindById(long id); + + List FindByStatus(StatusProspeccao status); + + List FindByStatusPersonalizado(long statusId); + + Prospeccao FindByTarefa(long id); + + List FindByVendedor(long id); + + Prospeccao Merge(Prospeccao prospeccao); + + Prospeccao SaveOrUpdate(Prospeccao prospeccao); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IQualificacaoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IQualificacaoRepository.cs new file mode 100644 index 0000000..d2d8b2f --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IQualificacaoRepository.cs @@ -0,0 +1,16 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IQualificacaoRepository : IGenericRepository + { + Qualificacao FindById(long id); + + Qualificacao Merge(Qualificacao qualificacao); + + Qualificacao SaveOrUpdate(Qualificacao qualificacao); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRamoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRamoRepository.cs new file mode 100644 index 0000000..e0aa433 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRamoRepository.cs @@ -0,0 +1,25 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IRamoRepository : IGenericRepository + { + void Delete(long id); + + List Find(bool ativo); + + List Find(); + + Ramo FindById(long id); + + Ramo Merge(Ramo ramo); + + List MergeRange(List ramos); + + Ramo SaveOrUpdate(Ramo ramo); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IReciboRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IReciboRepository.cs new file mode 100644 index 0000000..c8abc0a --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IReciboRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Ferramentas; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Ferramentas; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IReciboRepository : IGenericRepository + { + List BuscarRecibos(); + + void Delete(long id); + + void DeleteRange(List ids); + + Recibo FindById(long id); + + Recibo Merge(Recibo recibo); + + Recibo SaveOrUpdate(Recibo recibo); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRegistroAcaoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRegistroAcaoRepository.cs new file mode 100644 index 0000000..8857ec3 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRegistroAcaoRepository.cs @@ -0,0 +1,25 @@ +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Common; +using Gestor.Model.Domain.Common; +using Gestor.Model.Domain.Relatorios; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IRegistroAcaoRepository : IGenericRepository + { + void Delete(long id); + + List Find(Filtros filtros); + + List FindByEntityId(long id, TipoTela tela); + + RegistroAcao FindById(long id); + + List FindOld(Filtros filtros, string connection); + + RegistroAcao SaveOrUpdate(RegistroAcao log); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRegistroLogRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRegistroLogRepository.cs new file mode 100644 index 0000000..6dd9344 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRegistroLogRepository.cs @@ -0,0 +1,41 @@ +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Common; +using Gestor.Model.Domain.Common; +using Gestor.Model.Domain.Ferramentas; +using Gestor.Model.Domain.Relatorios; +using Gestor.Model.Domain.Relatorios.LogsEnvio; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IRegistroLogRepository : IGenericRepository + { + void AddRange(List registrosLog); + + List BuscaLogParcelas(List EntidadeId); + + void Delete(long id); + + List FindByCredential(long id); + + List FindByEntity(TipoTela tela, long id); + + List FindByEntityId(TipoTela tela, long EntidadeId); + + RegistroLog FindById(long id); + + List FindByIdSingle(long id); + + List FindByUser(TipoTela tela, long IdUsuario); + + List FindByUsuario(long id); + + List LogsEnvio(Filtros filtro); + + RegistroLog SaveOrUpdate(RegistroLog registroLog); + + LogEmail SaveOrUpdate(LogEmail log); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRepasseRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRepasseRepository.cs new file mode 100644 index 0000000..24448c8 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRepasseRepository.cs @@ -0,0 +1,33 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IRepasseRepository : IGenericRepository + { + List DefaultSelect(long idempresa = 0L); + + void Delete(long id); + + void DeleteVinculo(long id); + + Repasse FindById(long id); + + List FindByIdRepasse(long id); + + List FindByIdVendedor(long id); + + List FindByRepasse(long id); + + Repasse Merge(Repasse repasse); + + VinculoRepasse Merge(VinculoRepasse vinculo); + + Repasse SaveOrUpdate(Repasse repasse); + + VinculoRepasse SaveOrUpdate(VinculoRepasse vinculo); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IReportRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IReportRepository.cs new file mode 100644 index 0000000..72d0c90 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IReportRepository.cs @@ -0,0 +1,16 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Common; +using Gestor.Model.Domain.Relatorios; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IReportRepository : IGenericRepository + { + List PlanilhaCompleta(List ids, bool configFranquia, bool configSomaPremio); + + List PlanilhaCompletaFatura(List ids, Relatorio relatorio, DateTime inicio, DateTime fim, bool configFranquia, bool configSomaPremio); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRestricaoUsuarioCamposRelatoriosRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRestricaoUsuarioCamposRelatoriosRepository.cs new file mode 100644 index 0000000..67855b8 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRestricaoUsuarioCamposRelatoriosRepository.cs @@ -0,0 +1,15 @@ +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IRestricaoUsuarioCamposRelatoriosRepository + { + List FindByUsuario(long id); + + RestricaoUsuarioCamposRelatorios Merge(RestricaoUsuarioCamposRelatorios restricao); + + RestricaoUsuarioCamposRelatorios SaveOrUpdate(RestricaoUsuarioCamposRelatorios restricao); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRestricaoUsuarioRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRestricaoUsuarioRepository.cs new file mode 100644 index 0000000..aeb731b --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRestricaoUsuarioRepository.cs @@ -0,0 +1,18 @@ +using Gestor.Model.Common; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IRestricaoUsuarioRepository + { + List FindByUsuario(long id); + + RestricaoUsuario FindRestricao(long id, TipoRestricao restricao); + + RestricaoUsuario Merge(RestricaoUsuario restricao); + + RestricaoUsuario SaveOrUpdate(RestricaoUsuario restricao); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRiscosDiversosRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRiscosDiversosRepository.cs new file mode 100644 index 0000000..5516f1e --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRiscosDiversosRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IRiscosDiversosRepository : IGenericRepository + { + void Delete(long id); + + void DeleteRange(List ids); + + RiscosDiversos Find(long id); + + RiscosDiversos FindById(long id); + + RiscosDiversos Merge(RiscosDiversos risco); + + RiscosDiversos SaveOrUpdate(RiscosDiversos risco); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISaldoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISaldoRepository.cs new file mode 100644 index 0000000..d8b9200 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISaldoRepository.cs @@ -0,0 +1,27 @@ +using Gestor.Infrastructure.Entities.Financeiro; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Financeiro; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ISaldoRepository : IGenericRepository + { + Saldo BuscarAberto(long id); + + List BuscarPorConta(long id); + + Saldo BuscarPorData(DateTime inicio, long id); + + Saldo BuscarPorMenorData(long id); + + void Delete(long id); + + Saldo FindById(long id); + + Saldo Merge(Saldo saldo); + + Saldo SaveOrUpdate(Saldo saldo); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISeguradoraContatoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISeguradoraContatoRepository.cs new file mode 100644 index 0000000..57425d5 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISeguradoraContatoRepository.cs @@ -0,0 +1,25 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ISeguradoraContatoRepository : IGenericRepository + { + void Delete(long id); + + List FindAssistencia(long empresa, long id); + + SeguradoraContato FindById(long id); + + List FindBySeguradora(long empresa, long id); + + SeguradoraContato Merge(SeguradoraContato contato); + + List Merge(List contatos, Seguradora seguradora, long empresa); + + SeguradoraContato SaveOrUpdate(SeguradoraContato contato); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISeguradoraEnderecoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISeguradoraEnderecoRepository.cs new file mode 100644 index 0000000..24f2709 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISeguradoraEnderecoRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ISeguradoraEnderecoRepository : IGenericRepository + { + void Delete(long id); + + SeguradoraEndereco FindById(long id); + + List FindBySeguradora(long empresa, long id); + + SeguradoraEndereco Merge(SeguradoraEndereco endereco); + + List Merge(List enderecos, Seguradora seguradora, long empresa); + + SeguradoraEndereco SaveOrUpdate(SeguradoraEndereco endereco); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISeguradoraRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISeguradoraRepository.cs new file mode 100644 index 0000000..d297481 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISeguradoraRepository.cs @@ -0,0 +1,25 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ISeguradoraRepository : IGenericRepository + { + void Delete(long id); + + List Find(string filter); + + List Find(bool ativo); + + List Find(); + + Seguradora FindById(long id); + + Seguradora Merge(Seguradora seguradora); + + Seguradora SaveOrUpdate(Seguradora seguradora); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISinistroAutoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISinistroAutoRepository.cs new file mode 100644 index 0000000..0536662 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISinistroAutoRepository.cs @@ -0,0 +1,22 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ISinistroAutoRepository : IGenericRepository + { + void Delete(long id); + + SinistroAuto FindById(long id); + + SinistroAuto FindBySinistroId(long id); + + SinistroAuto Merge(SinistroAuto sinistroAuto); + + bool ParceiroUtilizado(long id); + + SinistroAuto SaveOrUpdate(SinistroAuto sinistroAuto); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISinistroRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISinistroRepository.cs new file mode 100644 index 0000000..763b7bd --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISinistroRepository.cs @@ -0,0 +1,30 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Relatorios; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ISinistroRepository : IGenericRepository + { + void Delete(long id); + + List Find(string numero); + + List FindByControleId(long id); + + List FindByData(Filtros filtro, bool pendentes = false); + + Sinistro FindById(long id); + + List FindByItemId(long id); + + List FindNumeroSinistro(string numero); + + Sinistro Merge(Sinistro sinistro); + + Sinistro SaveOrUpdate(Sinistro sinistro); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISinistroVidaRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISinistroVidaRepository.cs new file mode 100644 index 0000000..322e62e --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISinistroVidaRepository.cs @@ -0,0 +1,20 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ISinistroVidaRepository : IGenericRepository + { + void Delete(long id); + + SinistroVida FindById(long id); + + SinistroVida FindBySinistroId(long id); + + SinistroVida Merge(SinistroVida sinistroVida); + + SinistroVida SaveOrUpdate(SinistroVida sinistroVida); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISocioRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISocioRepository.cs new file mode 100644 index 0000000..d5c7eda --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISocioRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Common; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Common; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ISocioRepository : IGenericRepository + { + void Delete(long id); + + List Find(); + + List FindByEmpresa(long id); + + Socio FindById(long id); + + Socio Merge(Socio socio); + + Socio SaveOrUpdate(Socio socio); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IStatusProspeccaoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IStatusProspeccaoRepository.cs new file mode 100644 index 0000000..f1319dd --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IStatusProspeccaoRepository.cs @@ -0,0 +1,16 @@ +using Gestor.Infrastructure.Entities.Ferramentas; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Ferramentas; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IStatusProspeccaoRepository : IGenericRepository + { + List FindAll(); + + StatusDeProspeccao Merge(StatusDeProspeccao statusProspeccao); + + StatusDeProspeccao SaveOrUpdate(StatusDeProspeccao statusProspeccao); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IStatusRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IStatusRepository.cs new file mode 100644 index 0000000..5899603 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IStatusRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IStatusRepository : IGenericRepository + { + void Delete(long id); + + List Find(string value); + + List Find(); + + Status FindById(long id); + + Status Merge(Status status); + + Status SaveOrUpdate(Status status); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITarefaRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITarefaRepository.cs new file mode 100644 index 0000000..3d4b0f5 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITarefaRepository.cs @@ -0,0 +1,69 @@ +using Gestor.Infrastructure.Entities.Ferramentas; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Common; +using Gestor.Model.Domain.Ferramentas; +using Gestor.Model.Domain.Relatorios.Tarefa; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ITarefaRepository : IGenericRepository + { + Gestor.Model.Domain.Ferramentas.Tarefa Atualizar(Gestor.Model.Domain.Ferramentas.Tarefa tarefa); + + Trilha Atualizar(Trilha trilha); + + Fase Atualizar(Fase fase); + + List BuscarFases(long id); + + Gestor.Model.Domain.Ferramentas.Tarefa BuscarTarefa(long id); + + List BuscarTarefa(TipoTarefa entidade, long id, bool? concluido = false); + + List BuscarTarefaConcluidaPorUsuario(long id, TipoTarefa tipo); + + List BuscarTarefaPorCliente(long id); + + List BuscarTarefaPorData(DateTime data, long idUsuario, bool? concluido = false); + + List BuscarTarefaPorFiltro(DateTime inicio, DateTime fim); + + List BuscarTarefaPorTrilha(long id); + + List BuscarTarefaPorUsuario(long id, bool? concluido = false); + + List BuscarTarefaPorUsuario(long id, DateTime inicio, DateTime fim, bool? concluido); + + List BuscarTarefaPorUsuario(long id, TipoTarefa tipo); + + List BuscarTarefasPorTipo(long id); + + Trilha BuscarTrilha(long id); + + List BuscarTrilhas(bool ativo = true); + + List BuscarTrilhas(string titulo, bool ativo = true); + + int[] ContarTarefas(long id); + + void Excluir(long id); + + void ExcluirFase(long id); + + void ExcluirTrilha(long id); + + Gestor.Model.Domain.Ferramentas.Tarefa Salvar(Gestor.Model.Domain.Ferramentas.Tarefa tarefa); + + List Salvar(List tarefas); + + Trilha Salvar(Trilha trilha); + + Fase Salvar(Fase fase); + + List Salvar(List fases); + + List Validar(List ids, long trilha); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITipoContaRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITipoContaRepository.cs new file mode 100644 index 0000000..53b32b7 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITipoContaRepository.cs @@ -0,0 +1,16 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Financeiro; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ITipoContaRepository : IGenericRepository + { + List Find(); + + TipoConta Merge(TipoConta planos); + + TipoConta SaveOrUpdate(TipoConta planos); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITipoTarefaRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITipoTarefaRepository.cs new file mode 100644 index 0000000..fead2c4 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITipoTarefaRepository.cs @@ -0,0 +1,16 @@ +using Gestor.Infrastructure.Entities.Ferramentas; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Ferramentas; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ITipoTarefaRepository : IGenericRepository + { + List FindAll(); + + TipoDeTarefa Merge(TipoDeTarefa tipoTarefa); + + TipoDeTarefa SaveOrUpdate(TipoDeTarefa tipoTarefa); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITipoVendedorRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITipoVendedorRepository.cs new file mode 100644 index 0000000..767d60a --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITipoVendedorRepository.cs @@ -0,0 +1,29 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ITipoVendedorRepository : IGenericRepository + { + List DefaultSelect(); + + void Delete(long id); + + List Find(bool ativo); + + List Find(); + + TipoVendedor FindById(long id); + + long FindLastId(); + + TipoVendedor Merge(TipoVendedor tipoVendedor); + + List MergeRange(List tiposVendedor); + + TipoVendedor SaveOrUpdate(TipoVendedor tipoVendedor); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITitularesVidaRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITitularesVidaRepository.cs new file mode 100644 index 0000000..504ed2f --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITitularesVidaRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface ITitularesVidaRepository : IGenericRepository + { + void Delete(long id); + + void DeleteRange(List ids); + + List Find(long id); + + TitularesVida FindById(long id); + + TitularesVida Merge(TitularesVida vida); + + TitularesVida SaveOrUpdate(TitularesVida vida); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IUsuarioRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IUsuarioRepository.cs new file mode 100644 index 0000000..848c459 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IUsuarioRepository.cs @@ -0,0 +1,41 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.API; +using Gestor.Model.Common; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IUsuarioRepository : IGenericRepository + { + Usuario AddUsuarioFromSso(UserSso userSso); + + void Delete(long id); + + List Find(string filter, long idempresa = 0L); + + List Find(long idempresa = 0L); + + Usuario FindById(long id); + + List FindByLoginInteiro(string filter); + + bool FindDocUsedByDocumento(string filter, long id, long idempresa); + + Usuario FindFromSso(UserSso userSso); + + Usuario FindUsuario(string login); + + Usuario Merge(Usuario usuario); + + List PermissaoAggilizador(); + + Usuario SaveOrUpdate(Usuario usuario); + + Usuario SsoId(AuthSso sso); + + Usuario ValidateLogin(string login, string password); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorParcelaRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorParcelaRepository.cs new file mode 100644 index 0000000..7b56a7b --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorParcelaRepository.cs @@ -0,0 +1,45 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Ferramentas; +using Gestor.Model.Domain.Relatorios; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IVendedorParcelaRepository : IGenericRepository + { + List AddRange(List repasses); + + Vendedor BuscarVendedorPorControle(long id); + + bool Delete(long id); + + void DeleteRange(long id); + + void DeleteRange(List repasses); + + List FindByDate(Filtros filtro); + + List FindByDocumentId(long documentId); + + VendedorParcela FindById(long id); + + Vendedor FindByMainDocumentId(long documentId); + + List FindByParcela(long id); + + List FindVinculoByIdCliente(long idCliente); + + bool GerarPagamento(List ids, DateTime data); + + VendedorParcela Merge(VendedorParcela vendedorParcela); + + VendedorParcela SaveOrUpdate(VendedorParcela vendedorParcela); + + bool TemPagamentoParcela(long id); + + bool TipoVendedorUtilizado(long id); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorRepository.cs new file mode 100644 index 0000000..6adadaf --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorRepository.cs @@ -0,0 +1,27 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IVendedorRepository : IGenericRepository + { + void Delete(long id); + + List Find(bool ativo, long idempresa = 0L); + + List Find(long idempresa = 0L); + + List Find(string nome, long idempresa = 0L); + + Vendedor FindById(long id); + + Vendedor FindCorretora(); + + Vendedor Merge(Vendedor vendedor); + + Vendedor SaveOrUpdate(Vendedor vendedor); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorTelefoneRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorTelefoneRepository.cs new file mode 100644 index 0000000..49e775b --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorTelefoneRepository.cs @@ -0,0 +1,27 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IVendedorTelefoneRepository : IGenericRepository + { + void Delete(long id); + + VendedorTelefone FindById(long id); + + List FindByVendedorId(long id); + + List Inserir(List telefones); + + List Inserir(List telefones, Vendedor vendedor); + + VendedorTelefone Merge(VendedorTelefone telefone); + + List Merge(List telefones, Vendedor vendedor); + + VendedorTelefone SaveOrUpdate(VendedorTelefone telefone); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorUsuarioRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorUsuarioRepository.cs new file mode 100644 index 0000000..350e705 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorUsuarioRepository.cs @@ -0,0 +1,27 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IVendedorUsuarioRepository : IGenericRepository + { + void Delete(long id); + + bool Exist(long id); + + bool ExistVinculoUsuario(long idUsuario); + + VendedorUsuario FindById(long id); + + IList FindByUsuario(long idUsuario); + + List FindByVinculo(long idUsuario); + + VendedorUsuario Merge(VendedorUsuario vendedorUsuario); + + VendedorUsuario SaveOrUpdate(VendedorUsuario vendedorUsuario); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVidaRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVidaRepository.cs new file mode 100644 index 0000000..c213cd7 --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVidaRepository.cs @@ -0,0 +1,23 @@ +using Gestor.Infrastructure.Entities.Seguros; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Domain.Seguros; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IVidaRepository : IGenericRepository + { + void Delete(long id); + + void DeleteRange(List ids); + + Vida Find(long id); + + Vida FindById(long id); + + Vida Merge(Vida vida); + + Vida SaveOrUpdate(Vida vida); + } +} \ No newline at end of file diff --git a/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVinculoDocumentoRepository.cs b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVinculoDocumentoRepository.cs new file mode 100644 index 0000000..e95c0ca --- /dev/null +++ b/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVinculoDocumentoRepository.cs @@ -0,0 +1,25 @@ +using Gestor.Infrastructure.Entities.Aggilizador; +using Gestor.Infrastructure.Repository.Generic; +using Gestor.Model.Common; +using Gestor.Model.Domain.Aggilizador; +using Gestor.Model.Domain.Relatorios; +using System; +using System.Collections.Generic; + +namespace Gestor.Infrastructure.Repository.Interface +{ + public interface IVinculoDocumentoRepository : IGenericRepository + { + List BuscarArquivos(List ids, TipoArquivoVinculo type); + + void Delete(long id); + + VinculoDocumento FindById(long id); + + VinculoDocumento Merge(VinculoDocumento vinculo); + + VinculoDocumento SaveOrUpdate(VinculoDocumento vinculo); + + int Sincronize(DateTime inicio, List dados); + } +} \ No newline at end of file -- cgit v1.2.3