AdCardViewModel.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using DW5S.Entity;
  2. using System.ComponentModel.DataAnnotations;
  3. namespace DW5S.ViewModel
  4. {
  5. public class AdCardViewModel : BaseViewModel<int>
  6. {
  7. public AdCardViewModel() : base()
  8. {
  9. this.Enable = true;
  10. }
  11. [Display(Name = "采集名称")]
  12. public string Name { get; set; }
  13. [Display(Name = "采集地址")]
  14. public string Address { get; set; }
  15. /// <summary>
  16. /// 触发模式
  17. /// </summary>
  18. [Display(Name = "触发模式")]
  19. public EnumAdTriggerMode TriggerMode { get; set; }
  20. /// <summary>
  21. /// 时钟类型
  22. /// </summary>
  23. [Display(Name = "时钟类型")]
  24. public EnumAdClockType ClockerType { get; set; }
  25. /// <summary>
  26. /// 时钟频率(MHz)
  27. /// </summary>
  28. [Display(Name = "时钟频率(MHz)")]
  29. public double ClockFreq { get; set; }
  30. /// <summary>
  31. /// DDC频率(MHz)
  32. /// </summary>
  33. [Display(Name = "DDC频率(MHz)")]
  34. public double DdcFreq { get; set; }
  35. [Display(Name = "抽取倍数")]
  36. public int Mutil { get; set; }
  37. [Display(Name = "存储路径")]
  38. public string StorePath { get; set; }
  39. [Display(Name = "采集启用状态", AutoGenerateField =false)]
  40. public bool Enable { get; set; }
  41. [Display(Name = "采集启用状态")]
  42. public string EnableStr => Enable ? "启用" : "禁用";
  43. /// <summary>
  44. /// 站点服务状态
  45. /// </summary>
  46. [Display(Name = "采集服务状态")]
  47. public EnumServerStatus ServerStatus { get; set; }
  48. [Display(Name = "采集通道")]
  49. public List<AdChannelViewModel> AdChannels { get; set; } = new List<AdChannelViewModel>();
  50. }
  51. }