TskStrategy.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. using DevExpress.Xpo;
  2. using Ips.Library.Entity;
  3. using Ips.Sps.Tsks;
  4. using System;
  5. namespace Ips.Sps.TskStrategys
  6. {
  7. public class TskStrategy : XPObject
  8. {
  9. public TskStrategy() : base()
  10. {
  11. }
  12. public TskStrategy(Session session) : base(session)
  13. {
  14. }
  15. public override void AfterConstruction()
  16. {
  17. base.AfterConstruction();
  18. }
  19. private string _name;
  20. [DisplayName("策略名称")]
  21. public string Name
  22. {
  23. get => _name;
  24. set => SetPropertyValue(nameof(Name), ref _name, value);
  25. }
  26. private TskType _tskType;
  27. [DisplayName("任务类型")]
  28. public TskType TskType
  29. {
  30. get => _tskType;
  31. set => SetPropertyValue(nameof(TskType), ref _tskType, value);
  32. }
  33. private SignalType _sigType;
  34. [DisplayName("信号类型")]
  35. public SignalType SigType
  36. {
  37. get => _sigType;
  38. set => SetPropertyValue(nameof(SigType), ref _sigType, value);
  39. }
  40. private AdMode _adMode;
  41. [DisplayName("采集模式")]
  42. public AdMode AdMode
  43. {
  44. get => _adMode;
  45. set => SetPropertyValue(nameof(AdMode), ref _adMode, value);
  46. }
  47. private bool _supHistory;
  48. [DisplayName("历史任务")]
  49. public bool SupHistory
  50. {
  51. get => _supHistory;
  52. set => SetPropertyValue(nameof(SupHistory), ref _supHistory, value);
  53. }
  54. private bool _showSatList;
  55. [DisplayName("显示卫星")]
  56. public bool ShowSatList
  57. {
  58. get => _showSatList;
  59. set => SetPropertyValue(nameof(ShowSatList), ref _showSatList, value);
  60. }
  61. private bool _showAdcList;
  62. [DisplayName("显示采集")]
  63. public bool ShowAdcList
  64. {
  65. get => _showAdcList;
  66. set => SetPropertyValue(nameof(ShowAdcList), ref _showAdcList, value);
  67. }
  68. private bool _showSigList;
  69. [DisplayName("显示信号")]
  70. public bool ShowSigList
  71. {
  72. get => _showSigList;
  73. set => SetPropertyValue(nameof(ShowSigList), ref _showSigList, value);
  74. }
  75. private bool _showRefList;
  76. [DisplayName("显示参考")]
  77. public bool ShowRefList
  78. {
  79. get => _showRefList;
  80. set => SetPropertyValue(nameof(ShowRefList), ref _showRefList, value);
  81. }
  82. private bool _showDxSigList;
  83. [DisplayName("显示干扰")]
  84. public bool ShowDxSigList
  85. {
  86. get => _showDxSigList;
  87. set => SetPropertyValue(nameof(ShowDxSigList), ref _showDxSigList, value);
  88. }
  89. private bool _enable;
  90. [DisplayName("是否启用")]
  91. public bool Enable
  92. {
  93. get => _enable;
  94. set => SetPropertyValue(nameof(Enable), ref _enable, value);
  95. }
  96. [DisplayName("任务列表")]
  97. [Association]
  98. public XPCollection<Tsk> TskList
  99. {
  100. get => GetCollection<Tsk>();
  101. }
  102. }
  103. }