2024-07-04 11:02:45 +05:00
|
|
|
|
using System;
|
2021-08-27 17:55:22 +05:00
|
|
|
|
using System.Collections.Generic;
|
2023-03-07 00:04:20 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2021-08-27 17:55:22 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
namespace AsbCloudApp.Data;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// инфо о результатах замера
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class MeasureDto : IId, IWellRelated
|
2021-08-27 17:55:22 +05:00
|
|
|
|
{
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <inheritdoc/>
|
|
|
|
|
[Required]
|
|
|
|
|
public int Id { get; set; }
|
2021-08-27 17:55:22 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <inheritdoc/>
|
|
|
|
|
[Required]
|
|
|
|
|
[Range(1, int.MaxValue, ErrorMessage = "Id скважины не может быть меньше 1")]
|
|
|
|
|
public int IdWell { get; set; }
|
2021-08-27 17:55:22 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Id категории замера
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required]
|
|
|
|
|
[Range(1, int.MaxValue, ErrorMessage = "Id категории не может быть меньше 1")]
|
|
|
|
|
public int IdCategory { get; set; }
|
2021-08-27 17:55:22 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// название категории замера
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required]
|
|
|
|
|
[StringLength(120, MinimumLength = 1, ErrorMessage = "Название категории не может быть больше 120 символов")]
|
|
|
|
|
public string CategoryName { get; set; } = string.Empty;
|
2021-08-27 17:55:22 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// отметка времени замера
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required]
|
|
|
|
|
public DateTimeOffset Timestamp { get; set; }
|
2021-08-27 17:55:22 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// данные замера
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required]
|
|
|
|
|
public Dictionary<string, object> Data { get; set; } = new();
|
2021-08-27 17:55:22 +05:00
|
|
|
|
}
|