summaryrefslogtreecommitdiff
path: root/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IItemRepository.cs
blob: 04578fada2da99d0ff4a93b5adea0640ef727283 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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);
	}
}