BemsAlarmLog.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace FMSAdmin.Entities {
  6. public partial class BemsAlarmLog {
  7. [Display(Name = "현장 고유번호"), Key]
  8. public int SiteId { get; set; }
  9. [Display(Name = "알람 대상 설비의 TypeId"), Key]
  10. public int FacilityTypeId { get; set; }
  11. [Display(Name = "알람 대상 설비의 Code"), Key]
  12. public int FacilityCode { get; set; }
  13. [Display(Name = "알람 대상 설비의 PropertyId"), Key]
  14. public int PropertyId { get; set; }
  15. [Display(Name = "관제점 분석 요소 ID"), Key]
  16. public int FormulaId { get; set; }
  17. [Display(Name = "알람 발생 시간"), Key]
  18. [Column(TypeName = "datetime")]
  19. public DateTime CreatedDateTime { get; set; }
  20. [Display(Name = "알람 발생 시점 관제점 값")]
  21. public double? CurrentValue { get; set; }
  22. [Display(Name = "SMS 전송 결과")]
  23. [StringLength(2)]
  24. public string SMSResult { get; set; }
  25. [Display(Name = "Email 전송 결과")]
  26. [StringLength(2)]
  27. public string EmailResult { get; set; }
  28. [Display(Name = "알람 확인 여부")]
  29. public bool? Conform { get; set; }
  30. [ForeignKey("SiteId,FacilityTypeId,FacilityCode,PropertyId,FormulaId")]
  31. [InverseProperty("BemsAlarmLog")]
  32. public virtual BemsAlarmSetting BemsAlarmSetting { get; set; }
  33. }
  34. }