2021-09-10 11:28:57 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
|
using System;
|
2021-08-18 16:57:20 +05:00
|
|
|
|
using System.Collections.Generic;
|
2021-08-16 14:19:43 +05:00
|
|
|
|
using System.Threading;
|
2021-08-13 17:25:06 +05:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
|
|
|
|
public interface IWellOperationService
|
|
|
|
|
{
|
2021-08-18 14:52:52 +05:00
|
|
|
|
IEnumerable<WellOperationCategoryDto> GetCategories();
|
2021-08-16 14:19:43 +05:00
|
|
|
|
|
2021-08-18 16:57:20 +05:00
|
|
|
|
Task<PaginationContainer<WellOperationDto>> GetOperationsAsync(
|
|
|
|
|
int idWell,
|
|
|
|
|
int? opertaionType = null,
|
|
|
|
|
IEnumerable<int> sectionTypeIds = null,
|
|
|
|
|
IEnumerable<int> operationCategoryIds = null,
|
|
|
|
|
DateTime begin = default,
|
|
|
|
|
DateTime end = default,
|
2021-08-23 16:59:26 +05:00
|
|
|
|
double minDepth = double.MinValue,
|
|
|
|
|
double maxDepth = double.MaxValue,
|
2021-08-18 16:57:20 +05:00
|
|
|
|
int skip = 0,
|
|
|
|
|
int take = 32,
|
|
|
|
|
CancellationToken token = default);
|
2021-08-16 14:19:43 +05:00
|
|
|
|
|
|
|
|
|
Task<WellOperationDto> GetAsync(int id, CancellationToken token);
|
|
|
|
|
|
|
|
|
|
Task<int> InsertRangeAsync(int idWell,
|
|
|
|
|
IEnumerable<WellOperationDto> wellOperationDtos, CancellationToken token);
|
|
|
|
|
|
2021-09-10 11:28:57 +05:00
|
|
|
|
Task<int> UpdateAsync(int idWell, int idOperation, WellOperationDto item,
|
2021-08-16 14:19:43 +05:00
|
|
|
|
CancellationToken token);
|
|
|
|
|
|
|
|
|
|
Task<int> DeleteAsync(IEnumerable<int> ids, CancellationToken token);
|
2021-08-13 17:25:06 +05:00
|
|
|
|
}
|
|
|
|
|
}
|