2024-02-20 13:22:58 +05:00
|
|
|
|
using System;
|
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;
|
2024-03-20 12:52:28 +05:00
|
|
|
|
using AsbCloudApp.Data.WellOperation;
|
2022-04-28 15:04:13 +05:00
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
2022-08-05 17:16:11 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сервис автоматически определенных по телеметрии операций
|
|
|
|
|
/// </summary>
|
2022-04-28 15:04:13 +05:00
|
|
|
|
public interface IDetectedOperationService
|
|
|
|
|
{
|
2024-04-08 09:26:24 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Добавление операций
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idEditor"></param>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
/// <param name="dtos"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<int> InsertRangeManualAsync(int idEditor, int idWell, IEnumerable<DetectedOperationDto> dtos, CancellationToken token);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Редактирование операций
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idEditor"></param>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
/// <param name="dtos"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<int> UpdateRangeManualAsync(int idEditor, int idWell, IEnumerable<DetectedOperationDto> dtos, CancellationToken token);
|
|
|
|
|
|
2022-08-05 17:16:11 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Список названий операций.
|
|
|
|
|
/// Если указан idWell, то возвращается список названий операций найденных на указанной скважине.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-02-08 11:38:25 +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>
|
2024-02-08 11:38:25 +05:00
|
|
|
|
Task<DetectedOperationListDto> GetAsync(DetectedOperationByWellRequest request, CancellationToken token);
|
2022-09-22 16:26:17 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получить автоматически определенные по телеметрии операции
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-02-08 11:38:25 +05:00
|
|
|
|
Task<IEnumerable<DetectedOperationWithDrillerDto>> GetOperationsAsync(DetectedOperationByWellRequest request, CancellationToken token);
|
2022-08-05 17:16:11 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Удалить операции
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-02-08 11:38:25 +05:00
|
|
|
|
Task<int> DeleteAsync(DetectedOperationByWellRequest request, CancellationToken token);
|
2022-08-05 17:16:11 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Статистика по операциям
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-04-22 17:31:27 +05:00
|
|
|
|
[Obsolete]
|
2024-02-08 11:38:25 +05:00
|
|
|
|
Task<IEnumerable<DetectedOperationStatDto>> GetOperationsStatAsync(DetectedOperationByWellRequest request, CancellationToken token);
|
2024-02-20 13:22:58 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Определение операций
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idTelemetry"></param>
|
|
|
|
|
/// <param name="beginDate"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<IEnumerable<DetectedOperationDto>> DetectOperationsAsync(int idTelemetry, DateTimeOffset? beginDate, CancellationToken token);
|
2022-04-28 15:04:13 +05:00
|
|
|
|
}
|
|
|
|
|
}
|