diff --git a/AsbCloudApp/Data/ProcessMaps/ProcessMapPlanRecordingStaticMeasurementDto.cs b/AsbCloudApp/Data/ProcessMaps/ProcessMapPlanRecordingStaticMeasurementDto.cs new file mode 100644 index 00000000..f3f4b692 --- /dev/null +++ b/AsbCloudApp/Data/ProcessMaps/ProcessMapPlanRecordingStaticMeasurementDto.cs @@ -0,0 +1,21 @@ +using System.ComponentModel.DataAnnotations; + +namespace AsbCloudApp.Data.ProcessMaps; + +/// +/// РТК план записи статического замера +/// +public class ProcessMapPlanRecordingStaticMeasurementDto : ProcessMapPlanBaseDto +{ + /// + /// Время записи замера, сек + /// + [Range(0.0, 1800.0, ErrorMessage = "Время записи замера, сек., должно быть в пределах от 0 до 1800")] + public double MeasurementRecordingTime { get; set; } + + /// + /// Примечание + /// + [StringLength(1024, ErrorMessage = "Примечание, не должно превышать 1024 символов")] + public string Note { get; set; } = string.Empty; +} \ No newline at end of file diff --git a/AsbCloudDb/Model/ProcessMapPlan/ProcessMapPlanRecordingStaticMeasurement.cs b/AsbCloudDb/Model/ProcessMapPlan/ProcessMapPlanRecordingStaticMeasurement.cs index 0cfd503f..c865ee36 100644 --- a/AsbCloudDb/Model/ProcessMapPlan/ProcessMapPlanRecordingStaticMeasurement.cs +++ b/AsbCloudDb/Model/ProcessMapPlan/ProcessMapPlanRecordingStaticMeasurement.cs @@ -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; } } \ No newline at end of file