HisAlarm.cs 678 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OHV.Common.Model
  8. {
  9. public class HisAlarm
  10. {
  11. public string id { get; set; }
  12. public string Text { get; set; }
  13. public DateTime OccurTime { get; set; }
  14. public string Solution { get; set; }
  15. public int AlarmId { get; set; }
  16. //public virtual Alarm Alarm { get; set; }
  17. public HisAlarm()
  18. {
  19. this.id = $"{Guid.NewGuid()}_{DateTime.Now.ToString("HHmmssfff")}";
  20. this.OccurTime = DateTime.Now;
  21. }
  22. }
  23. }