2026-04-28 18:55:14 -05:00
|
|
|
using SeaHaven.Services.DTOs;
|
|
|
|
|
|
|
|
|
|
namespace SeaHaven.Services.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IDispatchService
|
|
|
|
|
{
|
|
|
|
|
Task<DispatchDTO?> GetDispatchByIdAsync(int id);
|
|
|
|
|
Task<DispatchDTO?> GetDispatchByIdWithDetailsAsync(int id);
|
|
|
|
|
Task<IEnumerable<DispatchDTO>> GetAllDispatchesAsync();
|
|
|
|
|
Task<IEnumerable<DispatchDTO>> GetDispatchesByVendorIdAsync(int vendorId);
|
|
|
|
|
Task<PagedResult<DispatchDTO>> GetDispatchesPagedAsync(int page, int pageSize, string? search = null, string? status = null);
|
|
|
|
|
Task<DispatchDTO> CreateDispatchAsync(CreateDispatchDTO dto, string userId);
|
|
|
|
|
Task<DispatchDTO> UpdateDispatchAsync(int id, UpdateDispatchDTO dto, string userId);
|
|
|
|
|
Task DeleteDispatchAsync(int id, string userId);
|
|
|
|
|
Task<bool> DispatchExistsAsync(int id);
|
|
|
|
|
Task<string> GenerateNextDispatchNumberAsync();
|
|
|
|
|
Task<int> GetTotalDispatchCountAsync();
|
2026-07-24 17:35:34 -03:00
|
|
|
|
|
|
|
|
Task<DispatchListResultDTO> GetDispatchListAsync(string? search, string? status, int? vendorId, DateTime? dateFrom, DateTime? dateTo, string? sortBy, string? sortDir, int page, int pageSize, CancellationToken cancellationToken);
|
|
|
|
|
Task<DispatchDetailResultDTO?> GetDispatchDetailAsync(int id, CancellationToken cancellationToken);
|
2026-04-28 18:55:14 -05:00
|
|
|
}
|
|
|
|
|
}
|