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-18 14:16:35 +05:00
|
|
|
|
Task<IEnumerable<UserDto>> GetAvailableUsers(int idWell, CancellationToken token = default);
|
2022-02-12 11:28:16 +05:00
|
|
|
|
Task<IEnumerable<FileCategoryDto>> GetCategoriesAsync(CancellationToken token = default);
|
2022-02-18 14:16:35 +05:00
|
|
|
|
Task<DrillingProgramStateDto> GetStateAsync(int idWell, int idUser,
|
2021-11-02 16:33:49 +05:00
|
|
|
|
CancellationToken token = default);
|
2022-02-18 14:16:35 +05:00
|
|
|
|
Task<int> AddFile(int idWell, int idFileCategory, int idUser, string fileFullName, System.IO.Stream fileStream, CancellationToken token = default);
|
2022-02-17 15:37:27 +05:00
|
|
|
|
Task<int> AddPartsAsync(int idWell, IEnumerable<int> idFileCategories, CancellationToken token = default);
|
|
|
|
|
Task<int> RemovePartsAsync(int idWell, IEnumerable<int> idFileCategories, CancellationToken token = default);
|
2022-02-18 14:16:35 +05:00
|
|
|
|
Task<int> AddUserAsync(int idWell, int idFileCategory, int idUser, int idUserRole, CancellationToken token = default);
|
|
|
|
|
Task<int> RemoveUserAsync(int idWell, int idFileCategory, int idUser, int idUserRole, CancellationToken token = default);
|
|
|
|
|
Task<int> AddOrReplaceFileMarkAsync(FileMarkDto fileMarkDto, int idUser, CancellationToken token);
|
|
|
|
|
Task<int> MarkAsDeletedFileMarkAsync(int idFileMark, CancellationToken token);
|
2022-02-28 14:44:15 +05:00
|
|
|
|
void ClearError(int idWell);
|
2021-08-29 17:25:16 +05:00
|
|
|
|
}
|
|
|
|
|
}
|