DD.WellWorkover.Cloud/AsbCloudApp/Data/ScheduleDto.cs

55 lines
1.3 KiB
C#

using System;
using System.ComponentModel.DataAnnotations;
namespace AsbCloudApp.Data
{
/// <summary>
/// Описание данных графика работ
/// </summary>
public class ScheduleDto : IId, IWellRelated
{
/// <inheritdoc/>
[Required]
public int Id { get; set; }
/// <inheritdoc/>
[Required]
public int IdWell { get; set; }
/// <summary>
/// Идентификатор бурильщика
/// </summary>
[Required]
public int IdDriller { get; set; }
/// <summary>
/// Начало смены
/// </summary>
[Required]
public TimeDto ShiftStart { get; set; } = null!;
/// <summary>
/// Конец смены
/// </summary>
[Required]
public TimeDto ShiftEnd { get; set; } = null!;
/// <summary>
/// Начало бурения
/// </summary>
[Required]
public DateTime DrillStart { get; set; }
/// <summary>
/// Конец бурения
/// </summary>
[Required]
public DateTime DrillEnd { get; set; }
/// <summary>
/// Бурильщик
/// </summary>
public DrillerDto? Driller { get; set; }
}
}