summaryrefslogtreecommitdiff
path: root/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteRepository.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteRepository.cs')
-rw-r--r--Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteRepository.cs72
1 files changed, 72 insertions, 0 deletions
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