123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- using DW5S.Entity;
- using System.ComponentModel.DataAnnotations;
- namespace DW5S.ViewModel
- {
- public class AdCardViewModel : BaseViewModel<int>
- {
- public AdCardViewModel() : base()
- {
- this.Enable = true;
- }
- [Display(Name = "采集名称")]
- public string Name { get; set; }
- [Display(Name = "采集地址")]
- public string Address { get; set; }
- /// <summary>
- /// 触发模式
- /// </summary>
- [Display(Name = "触发模式")]
- public EnumAdTriggerMode TriggerMode { get; set; }
- /// <summary>
- /// 时钟类型
- /// </summary>
- [Display(Name = "时钟类型")]
- public EnumAdClockType ClockerType { get; set; }
- /// <summary>
- /// 时钟频率(MHz)
- /// </summary>
- [Display(Name = "时钟频率(MHz)")]
- public double ClockFreq { get; set; }
- /// <summary>
- /// DDC频率(MHz)
- /// </summary>
- [Display(Name = "DDC频率(MHz)")]
- public double DdcFreq { get; set; }
-
- [Display(Name = "抽取倍数")]
- public int Mutil { get; set; }
-
- [Display(Name = "存储路径")]
- public string StorePath { get; set; }
-
-
- [Display(Name = "采集启用状态", AutoGenerateField =false)]
- public bool Enable { get; set; }
- [Display(Name = "采集启用状态")]
- public string EnableStr => Enable ? "启用" : "禁用";
- /// <summary>
- /// 站点服务状态
- /// </summary>
- [Display(Name = "采集服务状态")]
- public EnumServerStatus ServerStatus { get; set; }
- [Display(Name = "采集通道")]
- public List<AdChannelViewModel> AdChannels { get; set; } = new List<AdChannelViewModel>();
- }
- }
|