DD.WellWorkover.Cloud/AsbCloudApp/Services/IWellOperationService.cs

39 lines
1.4 KiB
C#
Raw Normal View History

2021-09-10 11:28:57 +05:00
using AsbCloudApp.Data;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace AsbCloudApp.Services
{
public interface IWellOperationService
{
IEnumerable<WellOperationCategoryDto> GetCategories();
Task<PaginationContainer<WellOperationDto>> GetOperationsAsync(
int idWell,
int? operationType = null,
IEnumerable<int> sectionTypeIds = null,
IEnumerable<int> operationCategoryIds = null,
DateTime begin = default,
DateTime end = default,
double minDepth = double.MinValue,
double maxDepth = double.MaxValue,
int skip = 0,
int take = 32,
CancellationToken token = default);
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,
CancellationToken token);
Task<int> DeleteAsync(IEnumerable<int> ids, CancellationToken token);
IDictionary<int, string> GetSectionTypes();
2022-05-06 16:35:16 +05:00
DateTimeOffset? FirstOperationDate(int idWell);
}
}