2026-05-14 11:00:12 -05:00
|
|
|
using Data.SeaHavenIndustries;
|
2026-07-24 17:35:34 -03:00
|
|
|
using SeaHaven.DataServices.Models;
|
2026-05-14 11:00:12 -05:00
|
|
|
|
|
|
|
|
namespace SeaHaven.DataServices.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IQuotesDataService
|
|
|
|
|
{
|
|
|
|
|
Task<Quotes?> GetByIdAsync(int id);
|
|
|
|
|
Task<IEnumerable<Quotes>> GetAllAsync();
|
|
|
|
|
Task<IEnumerable<Quotes>> GetByWorkOrderIdAsync(int workOrderId);
|
|
|
|
|
Task<Quotes> AddAsync(Quotes quote);
|
|
|
|
|
Task UpdateAsync(Quotes quote);
|
|
|
|
|
Task DeleteAsync(int id);
|
|
|
|
|
Task<bool> ExistsAsync(int id);
|
|
|
|
|
Task UnlinkFromWorkOrderAsync(int workOrderId);
|
2026-07-24 17:35:34 -03:00
|
|
|
|
|
|
|
|
Task<(IReadOnlyList<QuoteListItemReadModel> Items, int TotalCount)> GetQuotesPagedAsync(
|
|
|
|
|
int page, int pageSize, string search, CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
|
|
Task<QuoteDetailReadModel?> GetQuoteDetailsByIdAsync(int id, CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
|
|
Task<IReadOnlyList<WorkOrderQuoteDetailReadModel>> GetWorkOrderQuoteDetailsAsync(
|
|
|
|
|
int woId, CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
|
|
Task DeleteLineItemsByQuoteIdAsync(int quoteId, CancellationToken cancellationToken);
|
2026-05-14 11:00:12 -05:00
|
|
|
}
|
|
|
|
|
}
|