| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 | using DevExpress.Xpo;using Ips.Library.Basic;using Ips.Library.Basic.IO;using Ips.Library.Entity;using System;namespace Ips.Sps.Adcs{    public class AdCard : XPObject    {        public AdCard() : base()        {        }        public AdCard(Session session) : base(session)        {        }        public override void AfterConstruction()        {            base.AfterConstruction();            CardType = AdCardType.QFCarder;            TriggerMode = AdTriggerMode.In;            ClockerType = AdClockType.In;            ClockFreq = 100;            DdcFreq = 70;            Mutil = 1;            StorePath = DriveUtil.GetMaxDrivePath("data");            IsInverse = false;            Enable = true;        }        private string _name;        [Size(255)]        [DisplayName("采集卡名称")]        public string Name        {            get => _name;            set => SetPropertyValue(nameof(Name), ref _name, value);        }        private string _code;        [Size(255)]        [DisplayName("采集卡编码")]        public string Code        {            get => _code;            set => SetPropertyValue(nameof(Code), ref _code, value);        }        private AdCardType _cardType;        [DisplayName("设备类型")]        [MemberDesignTimeVisibility(false)]        public AdCardType CardType        {            get => _cardType;            set => SetPropertyValue(nameof(CardType), ref _cardType, value);        }        private AdTriggerMode _triggerMode;        [DisplayName("触发模式")]        public AdTriggerMode TriggerMode        {            get => _triggerMode;            set => SetPropertyValue(nameof(TriggerMode), ref _triggerMode, value);        }        private AdClockType _clockType;        [DisplayName("时钟类型")]        public AdClockType ClockerType        {            get => _clockType;            set => SetPropertyValue(nameof(ClockerType), ref _clockType, value);        }        private double _clockFreq;        [DisplayName("时钟频率(MHz)")]        public double ClockFreq        {            get => _clockFreq;            set => SetPropertyValue(nameof(ClockFreq), ref _clockFreq, value);        }        private double _ddcFreq;        [DisplayName("DDC频率(MHz)")]        public double DdcFreq        {            get => _ddcFreq;            set => SetPropertyValue(nameof(DdcFreq), ref _ddcFreq, value);        }        private bool _isInverse;        [DisplayName("反谱")]        public bool IsInverse        {            get => _isInverse;            set => SetPropertyValue(nameof(IsInverse), ref _isInverse, value);        }        [DisplayName("是否反谱"), NonPersistent]        public string IsInverseText        {            get => IsInverse ? "是" : "否";        }        private int _mutil;        [DisplayName("抽取倍数")]        public int Mutil        {            get => _mutil;            set => SetPropertyValue(nameof(Mutil), ref _mutil, value);        }        private string _storePath;        [DisplayName("存储路径")]        [Size(200)]        public string StorePath        {            get => _storePath;            set => SetPropertyValue(nameof(StorePath), ref _storePath, value);        }        private bool _enable;        [DisplayName("启用")]        public bool Enable        {            get => _enable;            set => SetPropertyValue(nameof(Enable), ref _enable, value);        }        private bool _isDefault;        [DisplayName("默认采集")]        public bool IsDefault        {            get => _isDefault;            set => SetPropertyValue(nameof(IsDefault), ref _isDefault, value);        }        [DisplayName("采集通道"), Association, Aggregated]        public XPCollection<AdChannel> Channels        {            get => GetCollection<AdChannel>(nameof(Channels));        }    }}
 |