2021-08-29 17:25:16 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
2022-02-12 11:28:16 +05:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
2021-08-29 17:25:16 +05:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
|
|
|
|
public interface IDrillingProgramService
|
|
|
|
|
{
|
2022-02-12 11:28:16 +05:00
|
|
|
|
Task<IEnumerable<FileCategoryDto>> GetCategoriesAsync(CancellationToken token = default);
|
2022-02-09 14:25:22 +05:00
|
|
|
|
Task<DrillingProgramStateDto> GetStateAsync(int idWell, int fileChangerId,
|
2021-11-02 16:33:49 +05:00
|
|
|
|
CancellationToken token = default);
|
2022-02-12 11:28:16 +05:00
|
|
|
|
Task<int> AddOrReplaceFileMarkAsync(FileMarkDto fileMarkDto, int idUser, CancellationToken token);
|
|
|
|
|
Task<int> MarkAsDeletedFileMarkAsync(int idFileMark, CancellationToken token);
|
|
|
|
|
Task<int> AddPartAsync(int idWell, int idFileCategory, CancellationToken token = default);
|
|
|
|
|
Task<int> RemovePartAsync(int idWell, int idFileCategory, CancellationToken token = default);
|
|
|
|
|
Task<int> AddUserAsync(int idUser, int idPart, int idUserRole, CancellationToken token = default);
|
|
|
|
|
Task<int> RemoveUserAsync(int idUser, int idPart, int idUserRole, CancellationToken token = default);
|
|
|
|
|
Task<int> AddFile(int idPart, int idUser, string fileFullName, Stream fileStream, CancellationToken token = default);
|
2021-08-29 17:25:16 +05:00
|
|
|
|
}
|
|
|
|
|
}
|