2022-05-22 21:18:43 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
|
using System;
|
2023-11-03 18:55:49 +05:00
|
|
|
|
using System.Collections.Generic;
|
2022-05-22 21:18:43 +05:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
2024-02-20 16:58:40 +05:00
|
|
|
|
using AsbCloudApp.Requests;
|
2022-05-22 21:18:43 +05:00
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
2022-08-09 11:10:01 +05:00
|
|
|
|
/// <summary>
|
2022-08-11 13:55:36 +05:00
|
|
|
|
/// Репозиторий расписания смен бурильщика
|
2022-08-09 11:10:01 +05:00
|
|
|
|
/// </summary>
|
2022-08-11 13:55:36 +05:00
|
|
|
|
public interface IScheduleRepository : IRepositoryWellRelated<ScheduleDto>
|
2022-05-22 21:18:43 +05:00
|
|
|
|
{
|
2023-11-03 18:55:49 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получить расписание смен
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
/// <param name="workTime"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<IEnumerable<ScheduleDto>> GetAsync(int idWell, DateTime workTime, CancellationToken token);
|
|
|
|
|
|
2022-08-09 11:10:01 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// получить бурильщика по idWell и времени
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
/// <param name="workTime"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2023-03-27 09:40:51 +05:00
|
|
|
|
Task<DrillerDto?> GetOrDefaultDrillerAsync(int idWell, DateTime workTime, CancellationToken token);
|
2024-02-20 16:58:40 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получить расписание смен
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<IEnumerable<ScheduleDto>> GetPageAsync(GetStatRequest request, CancellationToken token);
|
2022-05-22 21:18:43 +05:00
|
|
|
|
}
|
|
|
|
|
}
|