2024-07-04 11:02:45 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
2022-04-11 18:00:34 +05:00
|
|
|
|
using System.Collections.Generic;
|
2021-10-11 15:21:26 +05:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
namespace AsbCloudApp.Services;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The параметры бурения service.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IDrillParamsService : ICrudRepository<DrillParamsDto>
|
2021-10-11 15:21:26 +05:00
|
|
|
|
{
|
2022-06-02 12:35:51 +05:00
|
|
|
|
/// <summary>
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// default параметры бурения
|
2022-06-02 12:35:51 +05:00
|
|
|
|
/// </summary>
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <param name="idWell">The id well.</param>
|
|
|
|
|
/// <param name="startDepth">The start depth.</param>
|
|
|
|
|
/// <param name="endDepth">The end depth.</param>
|
|
|
|
|
/// <param name="token">The token.</param>
|
|
|
|
|
/// <returns>A Task.</returns>
|
|
|
|
|
Task<DrillParamsDto> GetDefaultDrillParamsAsync(int idWell, double startDepth,
|
|
|
|
|
double endDepth, CancellationToken token = default);
|
2021-10-12 12:02:28 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Все за скважину
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell">The id well.</param>
|
|
|
|
|
/// <param name="token">The token.</param>
|
|
|
|
|
/// <returns>A Task.</returns>
|
|
|
|
|
Task<IEnumerable<DrillParamsDto>> GetAllAsync(int idWell,
|
|
|
|
|
CancellationToken token = default);
|
2021-10-13 12:27:40 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Все скважину по композитной скважине
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell">The id well.</param>
|
|
|
|
|
/// <param name="token">The token.</param>
|
|
|
|
|
/// <returns>A Task.</returns>
|
|
|
|
|
Task<IEnumerable<DrillParamsDto>> GetCompositeAllAsync(int idWell,
|
|
|
|
|
CancellationToken token = default);
|
2021-10-13 12:27:40 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Добавить
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell">The id well.</param>
|
|
|
|
|
/// <param name="dto">The dto.</param>
|
|
|
|
|
/// <param name="token">The token.</param>
|
|
|
|
|
/// <returns>A Task.</returns>
|
|
|
|
|
Task<int> InsertAsync(int idWell, DrillParamsDto dto,
|
|
|
|
|
CancellationToken token = default);
|
2022-04-11 18:00:34 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Добавить несколько
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell">The id well.</param>
|
|
|
|
|
/// <param name="dtos">The dtos.</param>
|
|
|
|
|
/// <param name="token">The token.</param>
|
|
|
|
|
/// <returns>A Task.</returns>
|
|
|
|
|
Task<int> InsertRangeAsync(int idWell, IEnumerable<DrillParamsDto> dtos,
|
|
|
|
|
CancellationToken token = default);
|
2021-10-13 12:27:40 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Редактировать
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell">The id well.</param>
|
|
|
|
|
/// <param name="dtoId">The dto id.</param>
|
|
|
|
|
/// <param name="dto">The dto.</param>
|
|
|
|
|
/// <param name="token">The token.</param>
|
|
|
|
|
/// <returns>A Task.</returns>
|
|
|
|
|
Task<int> UpdateAsync(int idWell, int dtoId, DrillParamsDto dto,
|
|
|
|
|
CancellationToken token = default);
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Удалить старые и сохранить новые
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell">The id well.</param>
|
|
|
|
|
/// <param name="dtos">The dtos.</param>
|
|
|
|
|
/// <param name="token">The token.</param>
|
|
|
|
|
/// <returns>A Task.</returns>
|
|
|
|
|
Task<int> SaveAsync(int idWell, IEnumerable<DrillParamsDto> dtos, CancellationToken token = default);
|
2021-10-11 15:21:26 +05:00
|
|
|
|
}
|