forked from ddrilling/AsbCloudServer
Запись статического замера
This commit is contained in:
parent
3ae3017b8d
commit
350d12e8a0
@ -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;
|
||||||
|
}
|
@ -13,6 +13,9 @@ public class ProcessMapPlanRecordingStaticMeasurement : ProcessMapPlanBase
|
|||||||
[Required]
|
[Required]
|
||||||
public double MeasurementRecordingTime { get; set; }
|
public double MeasurementRecordingTime { get; set; }
|
||||||
|
|
||||||
|
[Column("note"), Comment("Примечание"), StringLength(1024)]
|
||||||
|
public string Note { get; set; } = string.Empty;
|
||||||
|
|
||||||
[ForeignKey(nameof(IdPrevious))]
|
[ForeignKey(nameof(IdPrevious))]
|
||||||
public virtual ProcessMapPlanRecordingStaticMeasurement? Previous { get; set; }
|
public virtual ProcessMapPlanRecordingStaticMeasurement? Previous { get; set; }
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user