DD.WellWorkover.Cloud/AsbCloudApp/Services/IOperationsStatService.cs
2024-08-19 10:01:07 +05:00

47 lines
1.7 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using AsbCloudApp.Data;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using AsbCloudApp.Data.WellOperation;
namespace AsbCloudApp.Services;
/// <summary>
/// Сервис расчета статистики по операциям вводимым вручную
/// </summary>
public interface IOperationsStatService
{
/// <summary>
/// Получить статистику МСП по кусту в котором находится скважина с IdWell
/// </summary>
/// <param name="idWell"></param>
/// <param name="token"></param>
/// <returns></returns>
Task<ClusterRopStatDto?> GetOrDefaultRopStatAsync(int idWell, CancellationToken token);
/// <summary>
/// Получить статистику по скважинам куста, которые доступны компании
/// </summary>
/// <param name="idCluster"></param>
/// <param name="idCompany"></param>
/// <param name="token"></param>
/// <returns></returns>
Task<StatClusterDto?> GetOrDefaultStatClusterAsync(int idCluster, int idCompany, CancellationToken token);
/// <summary>
/// получить статистику по скважине
/// </summary>
/// <param name="idWell"></param>
/// <param name="token"></param>
/// <returns></returns>
Task<StatWellDto?> GetOrDefaultWellStatAsync(int idWell, CancellationToken token);
/// <summary>
/// Получить статистику по набору скважин
/// </summary>
/// <param name="idWells"></param>
/// <param name="token"></param>
/// <returns></returns>
Task<IEnumerable<StatWellDto>> GetWellsStatAsync(IEnumerable<int> idWells, CancellationToken token);
}