86 lines
2.5 KiB
C#
86 lines
2.5 KiB
C#
namespace LaaProduction.Personalization.Models
|
|
{
|
|
using LaaProduction.Personalization.ComponentModel.DataAnnotations;
|
|
|
|
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
public class PruefmittelPruefung
|
|
{
|
|
public int PruefmittelId { get; set; }
|
|
|
|
[Range(1, int.MaxValue)]
|
|
[Display(Name = "Prüfsoftware")]
|
|
public short SoftwareId { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(100)]
|
|
[Display(Name = "Prüfmittel Bezeichnung")]
|
|
public string Pruefmittel { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(30)]
|
|
[Display(Name = "Prüfmittelnummer")]
|
|
public string PruefmittelNr { get; set; }
|
|
|
|
[Range(1, int.MaxValue)]
|
|
[Display(Name = "Prüfintervall in Tagen")]
|
|
public int Pruefintervall { get; set; } = 1;
|
|
|
|
[Display(Name = "Ist die Prüfung erforderlich?")]
|
|
public bool Erforderlich { get; set; } = true;
|
|
|
|
[Display(Name = "Zuletzt geprüft am (yyyy-MM-dd)")]
|
|
[DateTime(DateTimeOptions.SmallerThan, nameof(PruefdatumSoll))]
|
|
public DateTime PruefdatumIst { get; set; } = DateTime.Now;
|
|
|
|
[Display(Name = "Nächste Prüfung am (yyyy-MM-dd)")]
|
|
[DateTime(DateTimeOptions.GreaterThan, nameof(PruefdatumIst))]
|
|
public DateTime PruefdatumSoll { get; set; } = DateTime.Now;
|
|
|
|
[Required]
|
|
[StringLength(250)]
|
|
[Display(Name = "Bemerkung zu der Prüfmittelprüfung.")]
|
|
public string Bemerkung { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(250)]
|
|
[Display(Name = "Sender E-Mail")]
|
|
public string EmailFrom { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(500)]
|
|
[Display(Name = "E-Mail-An liste")]
|
|
public string EmailAn { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(500)]
|
|
[Display(Name = "E-Mail-CC liste")]
|
|
public string InCcAn { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(150)]
|
|
[Display(Name = "Betreff")]
|
|
public string Betreff { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(500)]
|
|
[Display(Name = "Nachrichtentext")]
|
|
public string Nachricht { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(500)]
|
|
[Display(Name = "Softwaremeldungstext")]
|
|
public string Meldung { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(50)]
|
|
[Display(Name = "E-Mailversand Zeitplan")]
|
|
public string Schedule { get; set; } = "14, 7, 3, 1";
|
|
|
|
public int DaysLeft { get; set; }
|
|
|
|
public bool InSchedule { get; set; }
|
|
}
|
|
}
|