using DevExpress.Xpo; using Ips.Library.Entity; using Ips.Sps.Tsks; using System; namespace Ips.Sps.TskStrategys { public class TskStrategy : XPObject { public TskStrategy() : base() { } public TskStrategy(Session session) : base(session) { } public override void AfterConstruction() { base.AfterConstruction(); } private string _name; [DisplayName("策略名称")] public string Name { get => _name; set => SetPropertyValue(nameof(Name), ref _name, value); } private TskType _tskType; [DisplayName("任务类型")] public TskType TskType { get => _tskType; set => SetPropertyValue(nameof(TskType), ref _tskType, value); } private SignalType _sigType; [DisplayName("信号类型")] public SignalType SigType { get => _sigType; set => SetPropertyValue(nameof(SigType), ref _sigType, value); } private AdMode _adMode; [DisplayName("采集模式")] public AdMode AdMode { get => _adMode; set => SetPropertyValue(nameof(AdMode), ref _adMode, value); } private bool _supHistory; [DisplayName("历史任务")] public bool SupHistory { get => _supHistory; set => SetPropertyValue(nameof(SupHistory), ref _supHistory, value); } private bool _showSatList; [DisplayName("显示卫星")] public bool ShowSatList { get => _showSatList; set => SetPropertyValue(nameof(ShowSatList), ref _showSatList, value); } private bool _showAdcList; [DisplayName("显示采集")] public bool ShowAdcList { get => _showAdcList; set => SetPropertyValue(nameof(ShowAdcList), ref _showAdcList, value); } private bool _showSigList; [DisplayName("显示信号")] public bool ShowSigList { get => _showSigList; set => SetPropertyValue(nameof(ShowSigList), ref _showSigList, value); } private bool _showRefList; [DisplayName("显示参考")] public bool ShowRefList { get => _showRefList; set => SetPropertyValue(nameof(ShowRefList), ref _showRefList, value); } private bool _showDxSigList; [DisplayName("显示干扰")] public bool ShowDxSigList { get => _showDxSigList; set => SetPropertyValue(nameof(ShowDxSigList), ref _showDxSigList, value); } private bool _enable; [DisplayName("是否启用")] public bool Enable { get => _enable; set => SetPropertyValue(nameof(Enable), ref _enable, value); } [DisplayName("任务列表")] [Association] public XPCollection TskList { get => GetCollection(); } } }