55 lines
1.2 KiB
C#
55 lines
1.2 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using static Thermo.Active.Model.Constants;
|
|
|
|
namespace Thermo.Active.Model.DTOModels.MaintenanceModels
|
|
{
|
|
public class DTONewMaintenanceModel
|
|
{
|
|
[Required]
|
|
public string Title { get; set; }
|
|
|
|
public string Description { get; set; }
|
|
|
|
[Range(0, double.MaxValue)]
|
|
public double? Interval { get; set; }
|
|
|
|
[Required]
|
|
public DateTime Deadline { get; set; }
|
|
|
|
[Required]
|
|
public MAINTENANCE_TYPE Type { get; set; }
|
|
|
|
public MAINTENANCE_UNIT_OF_MEASURE? UnitOfMeasure { get; set; }
|
|
}
|
|
|
|
public class DTOUpdateMaintenanceModel
|
|
{
|
|
[Required]
|
|
public string Title { get; set; }
|
|
|
|
public string Description { get; set; }
|
|
|
|
[Range(0, double.MaxValue)]
|
|
public double? Interval { get; set; }
|
|
|
|
[Required]
|
|
public DateTime Deadline { get; set; }
|
|
|
|
public MAINTENANCE_UNIT_OF_MEASURE? UnitOfMeasure { get; set; }
|
|
}
|
|
|
|
|
|
public class DTOPerformModel
|
|
{
|
|
public DateTime Date { get; set; }
|
|
|
|
public uint Countervalue { get; set; }
|
|
|
|
public int ControlWord { get; set; }
|
|
|
|
public string User { get; set; }
|
|
|
|
}
|
|
}
|