summaryrefslogtreecommitdiff
path: root/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface
diff options
context:
space:
mode:
authorLucas Faria Mendes <lucas.fariamo08@gmail.com>2026-03-30 13:38:18 +0000
committerLucas Faria Mendes <lucas.fariamo08@gmail.com>2026-03-30 13:38:18 +0000
commit1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1 (patch)
treee1c3b20ea08f0cf71122a1e73f0d395f8fd83874 /Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface
parent674ca83ba9243a9e95a7568c797668dab6aee26a (diff)
downloadgestor-1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1.tar.gz
gestor-1f4e14b2e973ee7de337fd4866d9a5ceff5cb6d1.zip
chore: location
Diffstat (limited to 'Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface')
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAdiantamentoRepository.cs31
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAeronauticoRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAgendaEmailRepository.cs29
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAgendaRepository.cs25
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAgendaTelefoneRepository.cs29
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAtividadeRepository.cs19
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAtualizacaoRepository.cs11
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IAutoRepository.cs31
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IBancoRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IBancosContasRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICategoriaTarefaRepository.cs18
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICentroRepository.cs19
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteEmailRepository.cs31
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteEnderecoRepository.cs29
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteRepository.cs72
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteTelefoneRepository.cs31
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteVinculoRepository.cs25
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICoberturaGranizoRepository.cs21
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICoberturaPadraoRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICoberturaRepository.cs29
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICondicaoRepasseRepository.cs18
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IConfigExtratoImportRepository.cs27
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IConfiguracaoRepository.cs22
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IConsorcioRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IControleFinanceiroRepository.cs21
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IControleRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IControleSinistroRepository.cs27
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICredencialRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ICriticaApoliceRepository.cs33
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IDetalheExtratoRepository.cs25
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IDocumentoRepository.cs68
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IEmpresaRepository.cs32
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IEstipulanteRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IExpedicaoRepository.cs19
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IExtratoRepository.cs31
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IFabricanteRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IFornecedorRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IGranizoRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IImpostoRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IIndiceArquivoDigitalRepository.cs34
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IItemRepository.cs44
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ILancamentoRepository.cs55
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IMaisContatoRepository.cs27
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IMetaSeguradoraRepository.cs24
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IMetaVendedorRepository.cs24
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IModeloMalaDiretaRepository.cs21
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/INotaFiscalRepository.cs24
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParametrosRelatorioRepository.cs20
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParametrosTotalizacaoRepository.cs20
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParceiroRepository.cs25
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IParcelaRepository.cs67
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPatrimonialRepository.cs29
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPerfilEmpresaRepository.cs20
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPerfilRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPermissaoArquivoDigitalRepository.cs18
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPermissaoUsuarioRepository.cs18
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPlanoRepository.cs19
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IPlanosRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IProdutoRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IProfissaoRepository.cs19
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IProspectRepository.cs35
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IQualificacaoRepository.cs16
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRamoRepository.cs25
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IReciboRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRegistroAcaoRepository.cs25
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRegistroLogRepository.cs41
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRepasseRepository.cs33
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IReportRepository.cs16
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRestricaoUsuarioCamposRelatoriosRepository.cs15
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRestricaoUsuarioRepository.cs18
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IRiscosDiversosRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISaldoRepository.cs27
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISeguradoraContatoRepository.cs25
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISeguradoraEnderecoRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISeguradoraRepository.cs25
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISinistroAutoRepository.cs22
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISinistroRepository.cs30
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISinistroVidaRepository.cs20
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ISocioRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IStatusProspeccaoRepository.cs16
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IStatusRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITarefaRepository.cs69
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITipoContaRepository.cs16
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITipoTarefaRepository.cs16
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITipoVendedorRepository.cs29
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/ITitularesVidaRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IUsuarioRepository.cs41
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorParcelaRepository.cs45
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorRepository.cs27
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorTelefoneRepository.cs27
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVendedorUsuarioRepository.cs27
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVidaRepository.cs23
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IVinculoDocumentoRepository.cs25
93 files changed, 2498 insertions, 0 deletions
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<AdiantamentoDb>
+ {
+ List<Adiantamento> AddRange(List<Adiantamento> adiantamentos);
+
+ List<Adiantamento> BuscarAdiantamentos(long id, bool concluido = false);
+
+ void Delete(long id);
+
+ List<Adiantamento> Find(bool ativo);
+
+ List<Adiantamento> Find(long id);
+
+ List<Adiantamento> Find(string nome);
+
+ List<Adiantamento> FindByDate(DateTime filtroInicio, DateTime filtroFim, List<long> 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<AeronauticoDb>
+ {
+ void Delete(long id);
+
+ void DeleteRange(List<long> 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<AgendaEmailDb>
+ {
+ void Delete(long id);
+
+ List<AgendaEmail> FindByAgenda(List<long> ids);
+
+ List<AgendaEmail> FindByAgendaId(long id);
+
+ AgendaEmail FindById(long id);
+
+ List<AgendaEmail> FindEmailAgenda(string email);
+
+ List<AgendaEmail> Inserir(List<AgendaEmail> emails, Agenda agenda);
+
+ AgendaEmail Merge(AgendaEmail agendaEmail);
+
+ List<AgendaEmail> Merge(List<AgendaEmail> 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<AgendaDb>
+ {
+ void Delete(long id);
+
+ List<Agenda> Find(string value);
+
+ List<Agenda> Find();
+
+ Agenda FindById(long id);
+
+ List<Agenda> 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<AgendaTelefoneDb>
+ {
+ void Delete(long id);
+
+ List<AgendaTelefone> Find(string telefone);
+
+ List<AgendaTelefone> FindByAgendaId(long id);
+
+ AgendaTelefone FindById(long id);
+
+ List<AgendaTelefone> Inserir(List<AgendaTelefone> telefones);
+
+ List<AgendaTelefone> Inserir(List<AgendaTelefone> telefones, Agenda agenda);
+
+ AgendaTelefone Merge(AgendaTelefone telefone);
+
+ List<AgendaTelefone> Merge(List<AgendaTelefone> 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<AtividadeDb>
+ {
+ List<Atividade> 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<AutoDb>
+ {
+ void Delete(long id);
+
+ void DeleteRange(List<long> ids);
+
+ Auto Find(long id);
+
+ List<PesquisaAvancada> FindAuto(string pesquisa, FiltroStatusDocumento status, List<VendedorUsuario> 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<BancoDb>
+ {
+ void Delete(long id);
+
+ List<Banco> Find(string filter);
+
+ Banco FindById(long id);
+
+ Banco Merge(Banco banco);
+
+ Banco SaveOrUpdate(Banco banco);
+
+ List<Banco> 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<BancosContasDb>
+ {
+ void Delete(long id);
+
+ List<BancosContas> Find(string descricao);
+
+ List<BancosContas> 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<CategoriaTarefaDb>
+ {
+ 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<CentroDb>
+ {
+ List<Centro> Find(string descricao);
+
+ List<Centro> 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<ClienteEmailDb>
+ {
+ void Delete(long id);
+
+ List<ClienteEmail> DeleteMail(long clienteId, List<ClienteEmail> emails);
+
+ List<ClienteEmail> FindByCliente(List<long> ids);
+
+ List<ClienteEmail> FindByClienteId(long id);
+
+ ClienteEmail FindById(long id);
+
+ List<ClienteEmail> FindEmailCliente(string email, long idempresa = 0L);
+
+ List<ClienteEmail> Inserir(List<ClienteEmail> emails, Cliente cliente);
+
+ ClienteEmail Merge(ClienteEmail clienteEmail);
+
+ List<ClienteEmail> Merge(List<ClienteEmail> 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<ClienteEnderecoDb>
+ {
+ void Delete(long id);
+
+ List<ClienteEndereco> DeleteEndereco(long clienteId, List<ClienteEndereco> enderecos);
+
+ List<ClienteEndereco> FindByCliente(List<Cliente> clientes);
+
+ List<ClienteEndereco> FindByClienteId(long id);
+
+ ClienteEndereco FindById(long id);
+
+ List<ClienteEndereco> Inserir(List<ClienteEndereco> endereco, Cliente cliente);
+
+ ClienteEndereco Merge(ClienteEndereco clienteEndereco);
+
+ List<ClienteEndereco> Merge(List<ClienteEndereco> 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<ClienteDb>
+ {
+ void AddCentralSegurado(long id, bool update);
+
+ Task<IEnumerable<ClientesAtivosInativos>> BuscaClientes(bool completo, long idempresa);
+
+ Task<IEnumerable<ClientesAtivosInativos>> BuscaClientesVinculo(bool completo, List<VendedorUsuario> vinculo, long idempresa);
+
+ DateTime? BuscaNascimeto(long id);
+
+ Task<List<Prospectar>> BuscaProspeccoes(Filtros filtro, long idEmpresa = 0L);
+
+ List<ClientesAtivosInativos> BuscarAniversariantes(Filtros filtro, long idempresa = 0L);
+
+ List<ClientesAtivosInativos> BuscarAniversariantesVinculo(Filtros filtro, List<VendedorUsuario> vinculo, long idempresa = 0L);
+
+ Task<List<Classificacao>> BuscarClassificacoes(long id);
+
+ string BuscarLogAntigo(long id, string connection);
+
+ List<OrigemCliente> BuscarOrigem(long id);
+
+ List<ClientesAtivosInativos> BuscarVencimentoCnh(Filtros filtro, long idempresa = 0L);
+
+ void Delete(long id);
+
+ void DeleteOrigem(long id);
+
+ List<Cliente> Find(string filter, long idempresa = 0L, bool acessoAgger = false, bool assintatura = false);
+
+ List<ClientesAtivosInativos> FindAllClientes(bool completo, long idempresa = 0L);
+
+ Cliente FindById(long id);
+
+ List<Cliente> FindByName(string filter, long idempresa = 0L, bool acessoAgger = false, bool assintatura = false, bool somenteNome = false);
+
+ List<Cliente> FindClienteDocumento(string documento);
+
+ List<Cliente> FindClienteVinculo(string filter, List<long> vinculos, long idempresa = 0L, bool acessoAgger = false, bool assinatura = false, TipoFiltroCliente tipoFiltroCliente = 2);
+
+ List<Cliente> FindObsCliente(string obsCliente, long idempresa = 0L);
+
+ List<Cliente> FindPastaCliente(string pastaCliente, bool busca = false, long idempresa = 0L);
+
+ List<Cliente> FindVinculo(string filter, long id);
+
+ Cliente Merge(Cliente cliente);
+
+ OrigemCliente Merge(OrigemCliente origem);
+
+ Cliente SaveOrUpdate(Cliente cliente);
+
+ OrigemCliente SaveOrUpdate(OrigemCliente origem);
+
+ List<OrigemCliente> Sincronize(List<OrigemCliente> 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<ClienteTelefoneDb>
+ {
+ void Delete(long id);
+
+ List<ClienteTelefone> DeleteFone(long clienteId, List<ClienteTelefone> telefones);
+
+ List<ClienteTelefone> Find(string telefone, long idempresa = 0L);
+
+ List<ClienteTelefone> FindByClienteId(long id);
+
+ ClienteTelefone FindById(long id);
+
+ List<ClienteTelefone> Inserir(List<ClienteTelefone> telefones);
+
+ List<ClienteTelefone> Inserir(List<ClienteTelefone> telefones, Cliente cliente);
+
+ ClienteTelefone Merge(ClienteTelefone telefone);
+
+ List<ClienteTelefone> Merge(List<ClienteTelefone> 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<ClienteVinculoDb>
+ {
+ void Delete(long id);
+
+ List<ClienteVinculo> DeleteVinculo(long clienteId, List<ClienteVinculo> vinculos);
+
+ List<ClienteVinculo> FindByCliente(long id);
+
+ ClienteVinculo FindById(long id);
+
+ List<ClienteVinculo> Inserir(List<ClienteVinculo> vinculos, Cliente cliente);
+
+ List<ClienteVinculo> Merge(List<ClienteVinculo> 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<CoberturaGranizoDb>
+ {
+ void Delete(long id);
+
+ List<CoberturaGranizo> 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<CoberturaPadraoDb>
+ {
+ void Delete(long id);
+
+ List<CoberturaPadrao> Find();
+
+ CoberturaPadrao FindById(long id);
+
+ List<CoberturaPadrao> 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<CoberturaDb>
+ {
+ List<Cobertura> AddRange(List<Cobertura> coberturas);
+
+ void Delete(long id);
+
+ void DeletebyItem(long id);
+
+ void DeleteRange(List<long> ids);
+
+ Cobertura FindById(long id);
+
+ List<Cobertura> FindByItemId(long id);
+
+ Cobertura Merge(Cobertura cobertura);
+
+ List<Cobertura> MergeRange(List<Cobertura> 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<CondicaoRepasseDb>
+ {
+ 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<ConfigExtratoImportDb>
+ {
+ void Delete(long id);
+
+ List<ConfigExtratoImport> Find(bool ativo);
+
+ List<ConfigExtratoImport> Find();
+
+ ConfigExtratoImport FindById(long id);
+
+ List<ConfigExtratoImport> FindBySeguradora(long id);
+
+ Gestor.Model.Domain.Seguros.ConfigExtratoImport Merge(Gestor.Model.Domain.Seguros.ConfigExtratoImport ConfigExtratoImport);
+
+ List<Gestor.Model.Domain.Seguros.ConfigExtratoImport> MergeRange(List<Gestor.Model.Domain.Seguros.ConfigExtratoImport> 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<ConfiguracaoSistemaDb>
+ {
+ List<ConfiguracaoSistema> 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<ConsorcioDb>
+ {
+ void Delete(long id);
+
+ void DeleteRange(List<long> 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<ControleFinanceiroDb>
+ {
+ void Delete(long id);
+
+ List<ControleFinanceiro> 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<ControleDb>
+ {
+ void Delete(long id);
+
+ IEnumerable<long> FindByCustomerId(long id);
+
+ Controle FindById(long id);
+
+ Controle Merge(Controle controle);
+
+ Controle SaveOrUpdate(Controle controle);
+
+ IEnumerable<long> 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<ControleSinistroDb>
+ {
+ void Delete(long id);
+
+ void DeleteByItem(long id);
+
+ void DeleteRange(List<long> ids);
+
+ ControleSinistro FindById(long id);
+
+ List<ControleSinistro> 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<CredencialDb>
+ {
+ void Delete(long id);
+
+ List<Credencial> Find(long idEmpresa);
+
+ List<Credencial> 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<CriticaApoliceDb>
+ {
+ List<Usuario> BuscarUsuarioCritica(DateTime inicio, DateTime fim, bool criticado = false, long idempresa = 0L);
+
+ void Delete(long id);
+
+ List<CriticaApolice> Find(long usuario, DateTime inicio, DateTime fim, long idCorretora, bool criticado = false, long idempresa = 0L, List<VendedorUsuario> vinculos = null, bool vendedorEmBranco = false, bool vinculoVendedorCritica = false);
+
+ List<CriticaApolice> Find(DateTime inicio, DateTime fim, long idempresa = 0L);
+
+ List<CriticaApolice> Find(long id);
+
+ CriticaApolice FindByApolice(long id);
+
+ CriticaApolice FindById(long id);
+
+ List<CriticaApolice> FindDuo(long id, DateTime vigencia);
+
+ List<CriticaApolice> 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<DetalheExtratoDb>
+ {
+ void Delete(long id);
+
+ List<DetalheExtrato> Find(long id);
+
+ DetalheExtrato FindById(long id);
+
+ List<DetalheExtrato> 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<DocumentoDb>
+ {
+ bool AtualizarNumero(long id, string numero, string endosso, int tipoDocumento);
+
+ List<Documento> Auditoria(Filtros filtro);
+
+ Task<List<Documento>> BuscaDocumentosPorVigencia(Filtros filtro, bool buscaAssinaturas = false, bool painelBi = false);
+
+ List<Documento> BuscarDocumentoPorEstipulante(long id);
+
+ List<Documento> BuscarDocumentoPorStatus(long id);
+
+ string BuscarLogAntigo(long id, string conn);
+
+ List<PlanilhaCompleta> BuscarPlanilhaCompletaProspeccao(List<long> ids);
+
+ int Cotacoes(Filtros filtro);
+
+ void Delete(long id);
+
+ Task<List<Fechamento>> Fechamento(Filtros filtro);
+
+ List<Documento> FindApolice(string pesquisa, FiltroStatusDocumento status, List<VendedorUsuario> vendedorVinculado, string campo, long idempresa = 0L, bool vendedorembranco = false, bool tipobusca = false);
+
+ List<Documento> FindApoliceByCustomer(long idCliente, FiltroStatusDocumento status, List<VendedorUsuario> vendedorVinculado, List<Licenca> licencas, bool endosso = false, bool acessoAgger = false, bool vendedorembranco = false);
+
+ List<Documento> FindByControle(long id);
+
+ Documento FindById(long id, bool itens = false, bool sinistrosPorControle = false);
+
+ Documento FindById(long id, List<VendedorUsuario> vendedorVinculado);
+
+ List<Documento> FindByIds(List<long> ids);
+
+ List<Documento> FindByLicenciamento(Filtros filtro);
+
+ List<Documento> FindByParcelaIds(List<long> ids);
+
+ List<Documento> FindByPlaca(Filtros filtro);
+
+ List<Documento> FindByVigenciaFinal(Filtros filtro, List<Licenca> licencas, bool somarPremios);
+
+ Task<List<Documento>> FindEndossoByVigencia(Filtros filtro, bool buscarAssinatura = false);
+
+ List<Documento> 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<EmpresaDb>
+ {
+ string BuscarSenhaAdm(long idempresa = 1L);
+
+ double ConsultaEspacoBancoInGb();
+
+ void Delete(long id);
+
+ List<Empresa> Find(long idempresa = 0L);
+
+ List<Cliente> 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<EstipulanteDb>
+ {
+ void Delete(long id);
+
+ List<Estipulante> Find(string value, long idempresa = 0L);
+
+ List<Estipulante> 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<ExpedicaoDb>
+ {
+ void Delete(long id);
+
+ List<Expedicao> 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<ExtratoDb>
+ {
+ void Delete(long id);
+
+ List<Extrato> FindByData(Filtros filtro);
+
+ List<Extrato> FindByEmpresa(long id);
+
+ Extrato FindById(long id);
+
+ List<Extrato> FindBySeguradora(long id, long idusuario, long empresa, DateTime inicio, DateTime fim, StatusExtrato? status = null);
+
+ List<Extrato> FindByStatus(StatusExtrato status);
+
+ List<Seguradora> 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<FabricanteDb>
+ {
+ void Delete(long id);
+
+ List<Fabricante> Find(string filter);
+
+ Fabricante FindById(long id);
+
+ Fabricante Merge(Fabricante fabricante);
+
+ Fabricante SaveOrUpdate(Fabricante fabricante);
+
+ List<Fabricante> 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<FornecedorDb>
+ {
+ void Delete(long id);
+
+ List<Fornecedor> Find(string filter, bool ativo);
+
+ List<Fornecedor> 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<GranizoDb>
+ {
+ void Delete(long id);
+
+ void DeleteRange(List<long> 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<ImpostoDb>
+ {
+ List<Imposto> DefaultSelect(bool? ativo);
+
+ Imposto FindById(long id);
+
+ List<Imposto> FindByRamo(long id);
+
+ List<Imposto> 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<IndiceArquivoDigitalDb>
+ {
+ ControleArquivoDigital BuscarBanco();
+
+ List<ControleArquivoDigital> BuscarBancos();
+
+ ControleArquivoDigital ConsultarBanco(string banco);
+
+ void Delete(long id);
+
+ List<IndiceArquivoDigital> Find(TipoArquivoDigital tipo, long id, long usuario, bool buscarAssinaturas = false);
+
+ ArquivoDigital FindAssinatura(long id);
+
+ List<ArquivoDigital> FindAssinatura(List<long> 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<ItemDb>
+ {
+ Task<List<PesquisaAvancada>> BuscaItensPorObs(string pesquisa, FiltroStatusDocumento status, List<VendedorUsuario> vendedorVinculado, TipoPesquisa tipo, bool tipobusca = false);
+
+ Cliente BuscarCliente(long id);
+
+ int ChecarQuantidade(long idDocumento);
+
+ void Delete(long id);
+
+ void DeleteRange(List<long> ids);
+
+ List<Item> FindByDocumentsIds(long id, StatusItem status = 0, bool sinistroCompleto = false);
+
+ Item FindById(long id);
+
+ List<Item> FindByIds(List<long> ids);
+
+ List<Item> FindItens(long id, StatusItem status);
+
+ List<Item> FindItens(List<Documento> documento);
+
+ List<Item> FindItens(long id);
+
+ List<Item> FindItens(List<long> 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<LancamentoDb>
+ {
+ List<Lancamento> AddRange(List<Lancamento> lancamento);
+
+ bool BancosContasUtilizado(long id);
+
+ void Delete(long id);
+
+ List<Lancamento> Fechamento(FiltroFinanceiro filtro);
+
+ Saldo FecharSaldo(Saldo saldo);
+
+ List<Lancamento> Find(DateTime inicio, DateTime fim, StatusLancamento status);
+
+ List<Lancamento> FindByBaixa(DateTime inicio, DateTime fim);
+
+ List<Lancamento> FindByCodigoBanco(List<string> codigos);
+
+ List<ExtratoConta> FindByConta(DateTime inicio, DateTime fim, long id);
+
+ List<Lancamento> FindByControle(long id, StatusLancamento status);
+
+ Lancamento FindByControle(long id, int parcela);
+
+ List<Lancamento> FindByFornecedor(long id, StatusLancamento status);
+
+ List<Lancamento> FindByFornecedor(long id, DateTime date, Sinal sinal);
+
+ Lancamento FindById(long id);
+
+ List<Lancamento> FindByLancamento(DateTime inicio, DateTime fim, StatusLancamento status);
+
+ List<Lancamento> FindByPagamento(DateTime inicio, DateTime fim);
+
+ List<Lancamento> FindLancamentosByConta(DateTime inicio, DateTime fim, long id);
+
+ List<Lancamento> 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<MaisContatoDb>
+ {
+ void Delete(long id);
+
+ List<MaisContato> DeleteContato(long clienteId, List<MaisContato> contatos);
+
+ List<MaisContato> FindByCustomerId(long id);
+
+ MaisContato FindById(long id);
+
+ List<MaisContato> Inserir(List<MaisContato> contatos, Cliente cliente);
+
+ MaisContato Merge(MaisContato maisContato);
+
+ List<MaisContato> Merge(List<MaisContato> 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<MetaSeguradoraDb>
+ {
+ void Delete(long id);
+
+ List<MetaSeguradora> Find(long id);
+
+ MetaSeguradora FindById(long id);
+
+ List<MetaSeguradora> 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<MetaVendedorDb>
+ {
+ void Delete(long id);
+
+ List<MetaVendedor> Find(long id);
+
+ MetaVendedor FindById(long id);
+
+ List<MetaVendedor> 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<ModeloMalaDiretaDb>
+ {
+ void Delete(long id);
+
+ List<ModeloMalaDireta> 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<NotaFiscalDb>
+ {
+ void Delete(long id);
+
+ List<NotaFiscal> FindAll();
+
+ List<NotaFiscal> 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<ParametrosRelatorioDb>
+ {
+ void Delete(long id);
+
+ List<ParametrosRelatorio> 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<ParametrosTotalizacaoDb>
+ {
+ void Delete(long id);
+
+ List<ParametrosTotalizacao> 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<ParceiroDb>
+ {
+ void Delete(long id);
+
+ List<Parceiro> Find();
+
+ List<Parceiro> 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<ParcelaDb>
+ {
+ Task<List<Documento>> 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<List<Documento>> FaturaPendente(Filtros filtro);
+
+ List<Parcela> FindByDocumentId(long id);
+
+ List<Parcela> FindByDocumentId(List<long> ids);
+
+ List<Documento> FindByDocumentIds(string ids, List<Documento> documentos);
+
+ List<Parcela> FindByDocumento(Documento documento);
+
+ Parcela FindById(long id);
+
+ List<VendedorParcela> FindByPagamento(Filtros filtro, bool reciboPagamento, bool segundaViaReciboPagamento, bool datacontrole);
+
+ List<Parcela> FindByPendente(Filtros filtro, bool pendente, bool somenteAtivos);
+
+ Task<List<Parcela>> FindByRecebimento(Filtros filtro);
+
+ List<Parcela> FindByVencimento(Filtros filtro);
+
+ List<Documento> FindByVigencia(Filtros filtro);
+
+ List<long> FindDocumentId(List<long> ids);
+
+ List<Documento> FindNumFatura(string numero);
+
+ Parcela Merge(Parcela parcela);
+
+ List<PrevisaoPagamento> PrevisaoPagamentoComissao(Filtros filtro);
+
+ Parcela SaveOrUpdate(Parcela parcela);
+
+ int[] SincronizarPendencia(DateTime date, List<long> ids = null);
+
+ bool Update(List<DetalheExtrato> detalhes, bool desabilitaAproximacao);
+
+ List<Parcela> UpdateRange(List<Parcela> 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<PatrimonialDb>
+ {
+ void Delete(long id);
+
+ void DeleteRange(List<long> ids);
+
+ Patrimonial Find(long id);
+
+ Patrimonial FindById(long id);
+
+ List<PesquisaAvancada> FindImobiliaria(string imobiliaria, FiltroStatusDocumento status, List<VendedorUsuario> vendedorVinculado);
+
+ List<PesquisaAvancada> Findlocatario(string imobiliaria, FiltroStatusDocumento status, List<VendedorUsuario> 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<PerfilEmpresaDb>
+ {
+ 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<PerfilDb>
+ {
+ void Delete(long id);
+
+ Perfil Find(long id);
+
+ List<Perfil> FindByControleId(long id);
+
+ List<Perfil> 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<PermissaoArquivoDigital> 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<PermissaoUsuario> 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<PlanoDb>
+ {
+ List<Plano> Find(string descricao);
+
+ List<Plano> 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<PlanosDb>
+ {
+ List<Planos> Find(string descricao);
+
+ List<Planos> Find();
+
+ Planos FindById(long id);
+
+ List<Planos> 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<ProdutoDb>
+ {
+ void Delete(long id);
+
+ List<Produto> Find(string value);
+
+ List<Produto> 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<ProfissaoDb>
+ {
+ List<Profissao> 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<ProspeccaoDb>
+ {
+ void Delete(long id);
+
+ List<Prospeccao> Find(long idEmpresa, long id, DateTime inicio, DateTime fim, StatusProspeccao? status);
+
+ List<Prospeccao> Find(Filtros filtro);
+
+ List<Prospeccao> FindByData(DateTime inicio, DateTime fim);
+
+ Prospeccao FindById(long id);
+
+ List<Prospeccao> FindByStatus(StatusProspeccao status);
+
+ List<Prospeccao> FindByStatusPersonalizado(long statusId);
+
+ Prospeccao FindByTarefa(long id);
+
+ List<Prospeccao> 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<QualificacaoDb>
+ {
+ 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<RamoDb>
+ {
+ void Delete(long id);
+
+ List<Ramo> Find(bool ativo);
+
+ List<Ramo> Find();
+
+ Ramo FindById(long id);
+
+ Ramo Merge(Ramo ramo);
+
+ List<Ramo> MergeRange(List<Ramo> 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<ReciboDb>
+ {
+ List<Recibo> BuscarRecibos();
+
+ void Delete(long id);
+
+ void DeleteRange(List<long> 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<RegistroAcaoDb>
+ {
+ void Delete(long id);
+
+ List<RegistroAcao> Find(Filtros filtros);
+
+ List<RegistroAcao> FindByEntityId(long id, TipoTela tela);
+
+ RegistroAcao FindById(long id);
+
+ List<RegistroAcao> 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<RegistroLogDb>
+ {
+ void AddRange(List<RegistroLog> registrosLog);
+
+ List<RegistroLog> BuscaLogParcelas(List<long> EntidadeId);
+
+ void Delete(long id);
+
+ List<LogEmail> FindByCredential(long id);
+
+ List<LogEmail> FindByEntity(TipoTela tela, long id);
+
+ List<RegistroLog> FindByEntityId(TipoTela tela, long EntidadeId);
+
+ RegistroLog FindById(long id);
+
+ List<LogEmail> FindByIdSingle(long id);
+
+ List<RegistroLog> FindByUser(TipoTela tela, long IdUsuario);
+
+ List<LogEmail> FindByUsuario(long id);
+
+ List<LogsEnvio> 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<RepasseDb>
+ {
+ List<Repasse> DefaultSelect(long idempresa = 0L);
+
+ void Delete(long id);
+
+ void DeleteVinculo(long id);
+
+ Repasse FindById(long id);
+
+ List<VendedorParcela> FindByIdRepasse(long id);
+
+ List<Repasse> FindByIdVendedor(long id);
+
+ List<VinculoRepasse> 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<DocumentoDb>
+ {
+ List<PlanilhaCompleta> PlanilhaCompleta(List<long> ids, bool configFranquia, bool configSomaPremio);
+
+ List<PlanilhaCompleta> PlanilhaCompletaFatura(List<long> 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<RestricaoUsuarioCamposRelatorios> 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<RestricaoUsuario> 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<RiscosDiversosDb>
+ {
+ void Delete(long id);
+
+ void DeleteRange(List<long> 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<SaldoDb>
+ {
+ Saldo BuscarAberto(long id);
+
+ List<Saldo> 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<SeguradoraContatoDb>
+ {
+ void Delete(long id);
+
+ List<SeguradoraContato> FindAssistencia(long empresa, long id);
+
+ SeguradoraContato FindById(long id);
+
+ List<SeguradoraContato> FindBySeguradora(long empresa, long id);
+
+ SeguradoraContato Merge(SeguradoraContato contato);
+
+ List<SeguradoraContato> Merge(List<SeguradoraContato> 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<SeguradoraEnderecoDb>
+ {
+ void Delete(long id);
+
+ SeguradoraEndereco FindById(long id);
+
+ List<SeguradoraEndereco> FindBySeguradora(long empresa, long id);
+
+ SeguradoraEndereco Merge(SeguradoraEndereco endereco);
+
+ List<SeguradoraEndereco> Merge(List<SeguradoraEndereco> 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<SeguradoraDb>
+ {
+ void Delete(long id);
+
+ List<Seguradora> Find(string filter);
+
+ List<Seguradora> Find(bool ativo);
+
+ List<Seguradora> 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<SinistroAutoDb>
+ {
+ 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<SinistroDb>
+ {
+ void Delete(long id);
+
+ List<Sinistro> Find(string numero);
+
+ List<Sinistro> FindByControleId(long id);
+
+ List<Sinistro> FindByData(Filtros filtro, bool pendentes = false);
+
+ Sinistro FindById(long id);
+
+ List<Sinistro> FindByItemId(long id);
+
+ List<Sinistro> 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<SinistroVidaDb>
+ {
+ 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<SocioDb>
+ {
+ void Delete(long id);
+
+ List<Socio> Find();
+
+ List<Socio> 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<StatusDeProspeccaoDb>
+ {
+ List<StatusDeProspeccao> 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<StatusDb>
+ {
+ void Delete(long id);
+
+ List<Status> Find(string value);
+
+ List<Status> 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<TarefaDb>
+ {
+ Gestor.Model.Domain.Ferramentas.Tarefa Atualizar(Gestor.Model.Domain.Ferramentas.Tarefa tarefa);
+
+ Trilha Atualizar(Trilha trilha);
+
+ Fase Atualizar(Fase fase);
+
+ List<Fase> BuscarFases(long id);
+
+ Gestor.Model.Domain.Ferramentas.Tarefa BuscarTarefa(long id);
+
+ List<Gestor.Model.Domain.Ferramentas.Tarefa> BuscarTarefa(TipoTarefa entidade, long id, bool? concluido = false);
+
+ List<Gestor.Model.Domain.Ferramentas.Tarefa> BuscarTarefaConcluidaPorUsuario(long id, TipoTarefa tipo);
+
+ List<Gestor.Model.Domain.Ferramentas.Tarefa> BuscarTarefaPorCliente(long id);
+
+ List<Gestor.Model.Domain.Ferramentas.Tarefa> BuscarTarefaPorData(DateTime data, long idUsuario, bool? concluido = false);
+
+ List<Gestor.Model.Domain.Relatorios.Tarefa.Tarefa> BuscarTarefaPorFiltro(DateTime inicio, DateTime fim);
+
+ List<Gestor.Model.Domain.Ferramentas.Tarefa> BuscarTarefaPorTrilha(long id);
+
+ List<Gestor.Model.Domain.Ferramentas.Tarefa> BuscarTarefaPorUsuario(long id, bool? concluido = false);
+
+ List<Gestor.Model.Domain.Ferramentas.Tarefa> BuscarTarefaPorUsuario(long id, DateTime inicio, DateTime fim, bool? concluido);
+
+ List<Gestor.Model.Domain.Ferramentas.Tarefa> BuscarTarefaPorUsuario(long id, TipoTarefa tipo);
+
+ List<Gestor.Model.Domain.Ferramentas.Tarefa> BuscarTarefasPorTipo(long id);
+
+ Trilha BuscarTrilha(long id);
+
+ List<Trilha> BuscarTrilhas(bool ativo = true);
+
+ List<Trilha> 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<Gestor.Model.Domain.Ferramentas.Tarefa> Salvar(List<Gestor.Model.Domain.Ferramentas.Tarefa> tarefas);
+
+ Trilha Salvar(Trilha trilha);
+
+ Fase Salvar(Fase fase);
+
+ List<Fase> Salvar(List<Fase> fases);
+
+ List<long> Validar(List<long> 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<TipoContaDb>
+ {
+ List<TipoConta> 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<TipoDeTarefaDb>
+ {
+ List<TipoDeTarefa> 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<TipoVendedorDb>
+ {
+ List<TipoVendedor> DefaultSelect();
+
+ void Delete(long id);
+
+ List<TipoVendedor> Find(bool ativo);
+
+ List<TipoVendedor> Find();
+
+ TipoVendedor FindById(long id);
+
+ long FindLastId();
+
+ TipoVendedor Merge(TipoVendedor tipoVendedor);
+
+ List<TipoVendedor> MergeRange(List<TipoVendedor> 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<TitularesVidaDb>
+ {
+ void Delete(long id);
+
+ void DeleteRange(List<long> ids);
+
+ List<TitularesVida> 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<UsuarioDb>
+ {
+ Usuario AddUsuarioFromSso(UserSso userSso);
+
+ void Delete(long id);
+
+ List<Usuario> Find(string filter, long idempresa = 0L);
+
+ List<Usuario> Find(long idempresa = 0L);
+
+ Usuario FindById(long id);
+
+ List<Usuario> 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> 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<VendedorParcelaDb>
+ {
+ List<VendedorParcela> AddRange(List<VendedorParcela> repasses);
+
+ Vendedor BuscarVendedorPorControle(long id);
+
+ bool Delete(long id);
+
+ void DeleteRange(long id);
+
+ void DeleteRange(List<VendedorParcela> repasses);
+
+ List<ManutencaoPagamentos> FindByDate(Filtros filtro);
+
+ List<VendedorParcela> FindByDocumentId(long documentId);
+
+ VendedorParcela FindById(long id);
+
+ Vendedor FindByMainDocumentId(long documentId);
+
+ List<VendedorParcela> FindByParcela(long id);
+
+ List<Vendedor> FindVinculoByIdCliente(long idCliente);
+
+ bool GerarPagamento(List<long> 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<VendedorDb>
+ {
+ void Delete(long id);
+
+ List<Vendedor> Find(bool ativo, long idempresa = 0L);
+
+ List<Vendedor> Find(long idempresa = 0L);
+
+ List<Vendedor> 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<VendedorTelefoneDb>
+ {
+ void Delete(long id);
+
+ VendedorTelefone FindById(long id);
+
+ List<VendedorTelefone> FindByVendedorId(long id);
+
+ List<VendedorTelefone> Inserir(List<VendedorTelefone> telefones);
+
+ List<VendedorTelefone> Inserir(List<VendedorTelefone> telefones, Vendedor vendedor);
+
+ VendedorTelefone Merge(VendedorTelefone telefone);
+
+ List<VendedorTelefone> Merge(List<VendedorTelefone> 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<VendedorUsuarioDb>
+ {
+ void Delete(long id);
+
+ bool Exist(long id);
+
+ bool ExistVinculoUsuario(long idUsuario);
+
+ VendedorUsuario FindById(long id);
+
+ IList<Vendedor> FindByUsuario(long idUsuario);
+
+ List<VendedorUsuario> 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<VidaDb>
+ {
+ void Delete(long id);
+
+ void DeleteRange(List<long> 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<VinculoDocumentoDb>
+ {
+ List<ArquivoVinculo> BuscarArquivos(List<long> ids, TipoArquivoVinculo type);
+
+ void Delete(long id);
+
+ VinculoDocumento FindById(long id);
+
+ VinculoDocumento Merge(VinculoDocumento vinculo);
+
+ VinculoDocumento SaveOrUpdate(VinculoDocumento vinculo);
+
+ int Sincronize(DateTime inicio, List<DadosVinculo> dados);
+ }
+} \ No newline at end of file