Запись статического замера

This commit is contained in:
Olga Nemt 2024-06-30 13:44:40 +05:00
parent 3ae3017b8d
commit 350d12e8a0
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,21 @@
using System.ComponentModel.DataAnnotations;
namespace AsbCloudApp.Data.ProcessMaps;
/// <summary>
/// РТК план записи статического замера
/// </summary>
public class ProcessMapPlanRecordingStaticMeasurementDto : ProcessMapPlanBaseDto
{
/// <summary>
/// Время записи замера, сек
/// </summary>
[Range(0.0, 1800.0, ErrorMessage = "Время записи замера, сек., должно быть в пределах от 0 до 1800")]
public double MeasurementRecordingTime { get; set; }
/// <summary>
/// Примечание
/// </summary>
[StringLength(1024, ErrorMessage = "Примечание, не должно превышать 1024 символов")]
public string Note { get; set; } = string.Empty;
}

View File

@ -13,6 +13,9 @@ public class ProcessMapPlanRecordingStaticMeasurement : ProcessMapPlanBase
[Required]
public double MeasurementRecordingTime { get; set; }
[Column("note"), Comment("Примечание"), StringLength(1024)]
public string Note { get; set; } = string.Empty;
[ForeignKey(nameof(IdPrevious))]
public virtual ProcessMapPlanRecordingStaticMeasurement? Previous { get; set; }
}