EmtSample.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. using DevExpress.Xpo;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Drawing.Printing;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace Ips.Sps.Emts
  9. {
  10. public class EmtSample : XPObject
  11. {
  12. public EmtSample() : base()
  13. {
  14. }
  15. public EmtSample(Session session) : base(session)
  16. {
  17. }
  18. public override void AfterConstruction()
  19. {
  20. base.AfterConstruction();
  21. this.Enable = true;
  22. }
  23. private Emt _emt;
  24. [DisplayName("所属目标"), Association, ExplicitLoading]
  25. [MemberDesignTimeVisibility(false)]
  26. public Emt Emt
  27. {
  28. get => _emt;
  29. set => SetPropertyValue(nameof(Emt), ref _emt, value);
  30. }
  31. private double _sigFreq;
  32. [DisplayName("信号频点(MHz)")]
  33. public double SigFreq
  34. {
  35. get => _sigFreq;
  36. set => SetPropertyValue(nameof(SigFreq), ref _sigFreq, value);
  37. }
  38. private double _bandWidth;
  39. [DisplayName("信号带宽(kHz)")]
  40. public double BandWidth
  41. {
  42. get => _bandWidth;
  43. set => SetPropertyValue(nameof(BandWidth), ref _bandWidth, value);
  44. }
  45. private int fs;
  46. [DisplayName("采样率")]
  47. public int Fs
  48. {
  49. get => fs;
  50. set => SetPropertyValue(nameof(Fs), ref fs, value);
  51. }
  52. private int startSec;
  53. [DisplayName("开始秒数")]
  54. public int StartSec
  55. {
  56. get => startSec;
  57. set => SetPropertyValue(nameof(StartSec), ref startSec, value);
  58. }
  59. private int endSec;
  60. [DisplayName("结束秒数")]
  61. public int EndSec
  62. {
  63. get => endSec;
  64. set => SetPropertyValue(nameof(EndSec), ref endSec, value);
  65. }
  66. private string sampleFile;
  67. [DisplayName("样本文件"), Size(255)]
  68. public string SampleFile
  69. {
  70. get => sampleFile;
  71. set => SetPropertyValue(nameof(SampleFile), ref sampleFile, value);
  72. }
  73. private bool _enable;
  74. [DisplayName("启用")]
  75. public bool Enable
  76. {
  77. get => _enable;
  78. set => SetPropertyValue(nameof(Enable), ref _enable, value);
  79. }
  80. }
  81. }