2021-10-12 12:17:46 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
2023-01-26 15:37:46 +05:00
|
|
|
|
using AsbCloudApp.Data.ProcessMap;
|
2021-10-12 12:17:46 +05:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2022-10-19 13:56:34 +05:00
|
|
|
|
namespace AsbCloudApp.Repositories
|
2021-10-12 12:17:46 +05:00
|
|
|
|
{
|
2022-10-19 13:56:34 +05:00
|
|
|
|
#nullable enable
|
2022-08-09 11:10:01 +05:00
|
|
|
|
/// <summary>
|
2022-10-19 13:56:34 +05:00
|
|
|
|
/// Репозиторий создания композитной скважины
|
2022-08-09 11:10:01 +05:00
|
|
|
|
/// </summary>
|
2022-10-19 13:56:34 +05:00
|
|
|
|
public interface IWellCompositeRepository
|
2021-10-12 12:17:46 +05:00
|
|
|
|
{
|
2022-08-09 11:10:01 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получить секции композитной скважины
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell"></param>
|
2022-10-19 13:56:34 +05:00
|
|
|
|
/// <param name="token"></param>
|
2022-08-09 11:10:01 +05:00
|
|
|
|
/// <returns></returns>
|
2022-10-19 13:56:34 +05:00
|
|
|
|
Task<IEnumerable<WellCompositeDto>> GetAsync(int idWell, CancellationToken token);
|
2022-08-09 11:10:01 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// сохранить секции композитной скважины
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
/// <param name="wellComposites"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2021-10-12 12:17:46 +05:00
|
|
|
|
Task<int> SaveAsync(int idWell, IEnumerable<WellCompositeDto> wellComposites, CancellationToken token);
|
2023-01-26 15:37:46 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение РТК по композитной скважине
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2023-01-30 10:52:12 +05:00
|
|
|
|
Task<IEnumerable<ProcessMapDto>?> GetCompositeProcessMap(int idWell, CancellationToken token);
|
2021-10-12 12:17:46 +05:00
|
|
|
|
}
|
2022-10-19 13:56:34 +05:00
|
|
|
|
#nullable disable
|
2021-10-12 12:17:46 +05:00
|
|
|
|
}
|