diff --git a/AsbCloudApp/Data/WellOperationDto.cs b/AsbCloudApp/Data/WellOperationDto.cs
index 4c451d26..f5caebef 100644
--- a/AsbCloudApp/Data/WellOperationDto.cs
+++ b/AsbCloudApp/Data/WellOperationDto.cs
@@ -2,6 +2,8 @@
namespace AsbCloudApp.Data
{
+ //todo: добавить валидацию
+
///
/// Операции на скважине (заведенные пользователем)
///
diff --git a/AsbCloudApp/Services/IDailyReportService.cs b/AsbCloudApp/Services/IDailyReportService.cs
index 28bc72fc..1b8a29d9 100644
--- a/AsbCloudApp/Services/IDailyReportService.cs
+++ b/AsbCloudApp/Services/IDailyReportService.cs
@@ -12,11 +12,51 @@ namespace AsbCloudApp.Services
///
public interface IDailyReportService
{
-
+ ///
+ /// получить список сформированных рапортов по скважине за период времени
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
Task> GetListAsync(int idWell, DateTime? v1, DateTime? v2, CancellationToken cancellationToken);
+
+ ///
+ /// получить из БД или генерировать данные для суточного рапорта за указанную дату
+ ///
+ ///
+ ///
+ ///
+ ///
Task GetOrGenerateAsync(int idWell, DateTime date, CancellationToken token);
+
+ ///
+ /// Добавить новый рапорт
+ ///
+ ///
+ ///
+ ///
+ ///
Task AddAsync(int idWell, DailyReportDto dto, CancellationToken token = default);
+
+ ///
+ /// изменить данные для суточного рапорта
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
Task UpdateAsync(int idWell, DateTime date, DailyReportDto dto, CancellationToken token = default);
+
+ ///
+ /// Сформировать файл рапорта
+ ///
+ ///
+ ///
+ ///
+ ///
Task MakeReportAsync(int idWell, DateTime date, CancellationToken token = default);
}
}
diff --git a/AsbCloudApp/Services/IMessageService.cs b/AsbCloudApp/Services/IMessageService.cs
index 98dc863d..0b2261a4 100644
--- a/AsbCloudApp/Services/IMessageService.cs
+++ b/AsbCloudApp/Services/IMessageService.cs
@@ -7,14 +7,36 @@ using System.Threading.Tasks;
namespace AsbCloudApp.Services
{
+ ///
+ /// Сервис сообщений панели оператора
+ ///
public interface IMessageService
{
+ ///
+ /// Получить сообщения по параметрам
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
Task> GetMessagesAsync(int idWell,
IEnumerable categoryids = default, DateTime begin = default,
DateTime end = default, string searchString = default,
int skip = 0, int take = 32,
CancellationToken token = default);
+ ///
+ /// Метод для сохранения сообщения от панели
+ ///
+ ///
+ ///
+ ///
+ ///
Task InsertAsync(string uid, IEnumerable dtos,
CancellationToken token);
}
diff --git a/AsbCloudApp/Services/IOperationValueService.cs b/AsbCloudApp/Services/IOperationValueService.cs
index a35af223..da097507 100644
--- a/AsbCloudApp/Services/IOperationValueService.cs
+++ b/AsbCloudApp/Services/IOperationValueService.cs
@@ -2,6 +2,10 @@
namespace AsbCloudApp.Services
{
+ // TODO: Remove this
+ ///
+ ///
+ ///
public interface IOperationValueService : ICrudWellRelatedService
{
}
diff --git a/AsbCloudApp/Services/IOperationsStatService.cs b/AsbCloudApp/Services/IOperationsStatService.cs
index e1292855..6ceb76e1 100644
--- a/AsbCloudApp/Services/IOperationsStatService.cs
+++ b/AsbCloudApp/Services/IOperationsStatService.cs
@@ -5,12 +5,50 @@ using System.Threading.Tasks;
namespace AsbCloudApp.Services
{
+ ///
+ /// Сервис расчета статистики по операциям вводимым вручную
+ ///
public interface IOperationsStatService
{
+ ///
+ /// Получить статистику МСП по кусту в котором находится скважина с IdWell
+ ///
+ ///
+ ///
+ ///
Task GetRopStatAsync(int idWell, CancellationToken token);
+
+ ///
+ /// Получить статистику по скважинам куста, которые доступны компании
+ ///
+ ///
+ ///
+ ///
+ ///
Task GetStatClusterAsync(int idCluster, int idCompany, CancellationToken token = default);
+
+ ///
+ /// получить статистику по скважине
+ ///
+ ///
+ ///
+ ///
Task GetWellStatAsync(int idWell, CancellationToken token = default);
+
+ ///
+ /// Получить данные для графика TVD
+ ///
+ ///
+ ///
+ ///
Task>> GetTvdAsync(int idWell, CancellationToken token);
+
+ ///
+ /// Получить статистику по набору скважин
+ ///
+ ///
+ ///
+ ///
Task> GetWellsStatAsync(IEnumerable idWells, CancellationToken token);
}
}
diff --git a/AsbCloudApp/Services/IPaginationService.cs b/AsbCloudApp/Services/IPaginationService.cs
deleted file mode 100644
index 57195edb..00000000
--- a/AsbCloudApp/Services/IPaginationService.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System.Threading;
-using System.Threading.Tasks;
-
-namespace AsbCloudApp.Services
-{
- public interface IPaginationService
- {
- Task> GetPageAsync(int skip = 0, int take = 32, CancellationToken token = default);
- }
-}
\ No newline at end of file
diff --git a/AsbCloudApp/Services/IReportService.cs b/AsbCloudApp/Services/IReportService.cs
index 0261e986..c66861b7 100644
--- a/AsbCloudApp/Services/IReportService.cs
+++ b/AsbCloudApp/Services/IReportService.cs
@@ -6,15 +6,57 @@ using System.Threading.Tasks;
namespace AsbCloudApp.Services
{
+ ///
+ /// Сервис рапортов
+ ///
public interface IReportService
{
+ ///
+ /// категория рапорта
+ ///
int ReportCategoryId { get; }
+
+ // TODO: rename this method
+ ///
+ /// Поставить рапорт в очередь на формирование
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
string CreateReport(int idWell, int idUser, int stepSeconds,
int format, DateTime begin, DateTime end,
Action