2022-04-28 15:04:13 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
2022-08-04 15:06:17 +05:00
|
|
|
|
using AsbCloudApp.Data.DetectedOperation;
|
2022-04-28 15:04:13 +05:00
|
|
|
|
using AsbCloudApp.Requests;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
2022-08-05 17:16:11 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сервис автоматически определенных по телеметрии операций
|
|
|
|
|
/// </summary>
|
2022-04-28 15:04:13 +05:00
|
|
|
|
public interface IDetectedOperationService
|
|
|
|
|
{
|
2022-08-05 17:16:11 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Список названий операций.
|
|
|
|
|
/// Если указан idWell, то возвращается список названий операций найденных на указанной скважине.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2022-08-04 15:06:17 +05:00
|
|
|
|
Task<IEnumerable<WellOperationCategoryDto>?> GetCategoriesAsync(int? idWell, CancellationToken token);
|
2022-08-05 17:16:11 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получить автоматически определенные по телеметрии операции с анализом по бурильщикам
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2022-08-04 15:06:17 +05:00
|
|
|
|
Task<DetectedOperationListDto?> GetAsync(DetectedOperationRequest request, CancellationToken token);
|
2022-09-22 16:26:17 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получить автоматически определенные по телеметрии операции
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<IEnumerable<DetectedOperationDto>?> GetOperationsAsync(DetectedOperationRequest request, CancellationToken token);
|
2022-08-05 17:16:11 +05:00
|
|
|
|
|
2022-11-03 12:42:26 +05:00
|
|
|
|
/// <summary>
|
2022-11-03 15:29:02 +05:00
|
|
|
|
/// Получить интервалы глубин по всем скважинам
|
2022-11-03 12:42:26 +05:00
|
|
|
|
/// </summary>
|
2023-10-04 16:41:19 +05:00
|
|
|
|
/// <param name="request"></param>
|
2022-11-03 13:30:16 +05:00
|
|
|
|
/// <param name="token"></param>
|
2022-11-03 15:57:45 +05:00
|
|
|
|
/// <returns>кортеж - ид телеметрии, интервалы глубины забоя (ротор,слайд) </returns>
|
2023-10-04 16:41:19 +05:00
|
|
|
|
Task<IEnumerable<OperationsSummaryDto>> GetOperationSummaryAsync(DetectedOperationSummaryRequest request, CancellationToken token);
|
2022-11-03 12:42:26 +05:00
|
|
|
|
|
2022-08-05 17:16:11 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Удалить операции
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2022-06-17 17:21:14 +05:00
|
|
|
|
Task<int> DeleteAsync(DetectedOperationRequest request, CancellationToken token);
|
2022-08-05 17:16:11 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Статистика по операциям
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2022-08-04 15:06:17 +05:00
|
|
|
|
Task<IEnumerable<DetectedOperationStatDto>?> GetOperationsStatAsync(DetectedOperationRequest request, CancellationToken token);
|
2022-04-28 15:04:13 +05:00
|
|
|
|
}
|
|
|
|
|
}
|