2026-07-13 13:13:00 -03:00
|
|
|
using Data.SeaHavenIndustries;
|
|
|
|
|
using Data.SeaHavenIndustries.Enums;
|
|
|
|
|
using SeaHaven.DataServices.Interfaces;
|
|
|
|
|
|
|
|
|
|
namespace SeaHaven.DataServices.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IWorkOrderDetailDataService
|
|
|
|
|
{
|
2026-08-04 14:14:37 -03:00
|
|
|
Task<bool> ExistsAsync(int workOrderId, CancellationToken cancellationToken = default);
|
2026-07-13 13:13:00 -03:00
|
|
|
Task<WorkOrderDetailExtendedFields?> GetExtendedFieldsAsync(int workOrderId);
|
|
|
|
|
Task<IReadOnlyList<Comments>> GetCommentsAsync(int workOrderId);
|
|
|
|
|
Task<IReadOnlyList<WorkOrderAuditLog>> GetAuditLogsAsync(int workOrderId, int? limit = null);
|
2026-08-04 14:14:37 -03:00
|
|
|
Task<IReadOnlyList<WorkOrderAttachments>> GetAttachmentsAsync(
|
|
|
|
|
int workOrderId,
|
|
|
|
|
CancellationToken cancellationToken = default);
|
2026-07-13 13:13:00 -03:00
|
|
|
Task<IReadOnlyList<DispatchSignoffRow>> GetDispatchSignoffsAsync(int workOrderId);
|
2026-08-04 14:14:37 -03:00
|
|
|
Task<WorkOrder?> GetWorkOrderForMediaAsync(
|
|
|
|
|
int workOrderId,
|
|
|
|
|
CancellationToken cancellationToken = default);
|
2026-07-13 13:13:00 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public interface ICompletionDocTemplateDataService
|
|
|
|
|
{
|
|
|
|
|
Task<IReadOnlyList<CompletionDocTemplateRow>> GetActiveAsync(string? serviceKey, WorkOrderType? workOrderType);
|
|
|
|
|
Task<CompletionDocTemplateRow?> GetByIdAsync(int id);
|
|
|
|
|
Task<CompletionDocTemplateRow?> ResolveForWorkOrderAsync(string? trade, WorkOrderType? workOrderType);
|
|
|
|
|
Task<CompletionDocTemplate> CreateAsync(CompletionDocTemplate template);
|
|
|
|
|
Task UpdateAsync(CompletionDocTemplate template);
|
|
|
|
|
Task<bool> DeleteAsync(int id);
|
|
|
|
|
}
|
|
|
|
|
}
|