2025-05-15 19:24:12 -03:00
|
|
|
|
using Domain.Dtos;
|
2025-05-13 12:08:38 -03:00
|
|
|
|
using Domain.Entities;
|
2025-04-27 02:19:29 -03:00
|
|
|
|
using Domain.Generics;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Models.Interfaces
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IQuoteDom
|
|
|
|
|
|
{
|
2025-05-05 22:50:02 -03:00
|
|
|
|
#region Presupuestos
|
2025-05-13 12:08:38 -03:00
|
|
|
|
//Task<PagedResult<EQuoteHeader>> GetAllQuotesAsync(int page = 1, int pageSize = 50);
|
|
|
|
|
|
//Task<EQuoteHeader?> GetQuoteByIdAsync(int id);
|
|
|
|
|
|
//Task<IEnumerable<EQuoteHeader>> GetQuotesByCustomerAsync(int customerId);
|
|
|
|
|
|
Task<PagedResult<QuoteDto>> SearchAsync(int? customerId, string? customerText, string? quoteNumber, int? professionalId, string? professionalText, int? institutionId, string? institutionText, int? patientId, string? patientText, DateTime? issueDateFrom, DateTime? issueDateTo, string? status, int page = 1, int pageSize = 50);
|
|
|
|
|
|
//Task UpdateQuoteAsync(EQuoteHeader quote);
|
|
|
|
|
|
//Task DeleteQuoteAsync(int id);
|
2025-05-05 22:50:02 -03:00
|
|
|
|
#endregion
|
|
|
|
|
|
#region Exportación
|
2025-05-13 12:08:38 -03:00
|
|
|
|
//Task<byte[]> ExportFilteredQuotesToExcelAsync(QuoteSearchParams searchParams);
|
2025-05-07 18:35:49 -03:00
|
|
|
|
#endregion
|
|
|
|
|
|
#region Guardado completo de presupuesto (encabezado + detalles + roles + ajustes + impuestos)
|
2025-05-18 03:21:48 -03:00
|
|
|
|
Task<(int Id, string Quotenumber)> CreateFullQuoteAsync(EQuoteHeader quote, int formSeriesId);
|
2025-05-16 17:19:40 -03:00
|
|
|
|
Task<QuoteDto?> GetDtoByIdAsync(int id);
|
2025-05-05 22:50:02 -03:00
|
|
|
|
#endregion
|
2025-05-29 19:21:57 -03:00
|
|
|
|
#region Autorización
|
|
|
|
|
|
Task<bool> AuthorizeQuoteAsync(int quoteId, List<QuoteAuthorizationDto> items);
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
2025-04-27 02:19:29 -03:00
|
|
|
|
}
|
2025-05-05 22:50:02 -03:00
|
|
|
|
}
|