2024-07-04 11:02:45 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
2022-09-05 09:13:45 +05:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сервис "Дело скважины"
|
|
|
|
|
/// </summary>
|
2022-09-12 08:22:46 +05:00
|
|
|
|
public interface IWellFinalDocumentsService
|
2022-09-05 09:13:45 +05:00
|
|
|
|
{
|
2022-09-12 08:22:46 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Обновление записей дела скважины
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
/// <param name="dtos"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2023-12-05 14:48:56 +05:00
|
|
|
|
Task<int> UpdateRangeAsync(int idWell, IEnumerable<WellFinalDocumentInputDto> dtos, CancellationToken token);
|
2022-09-05 09:13:45 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение истории файлов
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
/// <param name="idCategory"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2022-11-23 14:03:08 +05:00
|
|
|
|
Task<WellFinalDocumentsHistoryDto> GetFilesHistoryByIdCategoryAsync(int idWell, int idCategory, CancellationToken token);
|
2022-09-05 09:13:45 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сохранение файла
|
|
|
|
|
/// </summary>
|
2022-10-26 15:36:49 +05:00
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
/// <param name="idCategory"></param>
|
2022-11-23 14:03:08 +05:00
|
|
|
|
/// <param name="idUser">пользователь, который сохраняет файл</param>
|
2022-09-05 09:13:45 +05:00
|
|
|
|
/// <param name="fileStream"></param>
|
|
|
|
|
/// <param name="fileName"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2022-11-23 14:03:08 +05:00
|
|
|
|
Task<int> SaveCategoryFileAsync(int idWell, int idCategory, int idUser, Stream fileStream, string fileName, CancellationToken token);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Повторно оповестить ответственных за загрузку
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
/// <param name="idUser">запрашивающий пользователь, для проверки его прав и текста сообщения</param>
|
|
|
|
|
/// <param name="idCategory"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns>count of notified publishers</returns>
|
|
|
|
|
Task<int> ReNotifyPublishersAsync(int idWell, int idUser, int idCategory, CancellationToken token);
|
2022-09-05 09:13:45 +05:00
|
|
|
|
}
|
2022-09-08 12:05:56 +05:00
|
|
|
|
}
|