Pas.cs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. using DevExpress.Xpo;
  2. using Ips.Library.Basic;
  3. using Ips.Library.Entity;
  4. using System;
  5. namespace Ips.Sps.TskResults.Pases
  6. {
  7. /// <summary>
  8. /// 定位采集信号
  9. /// </summary>
  10. [Indices("TskId;SigId;SigTime")]
  11. public class Pas : TskResultBase
  12. {
  13. public Pas() : base()
  14. {
  15. }
  16. public Pas(Session session) : base(session)
  17. {
  18. }
  19. public override void AfterConstruction()
  20. {
  21. base.AfterConstruction();
  22. }
  23. private int _satId;
  24. [DisplayName("卫星ID")]
  25. public int SatId
  26. {
  27. get => _satId;
  28. set => SetPropertyValue(nameof(SatId), ref _satId, value);
  29. }
  30. private int _satNum;
  31. [DisplayName("卫星编号")]
  32. public int SatNum
  33. {
  34. get => _satNum;
  35. set => SetPropertyValue(nameof(SatNum), ref _satNum, value);
  36. }
  37. private long _upFreq;
  38. [DisplayName("上行频点")]
  39. public long UpFreq
  40. {
  41. get => _upFreq;
  42. set => SetPropertyValue(nameof(UpFreq), ref _upFreq, value);
  43. }
  44. private long _downFreq;
  45. [DisplayName("信号带宽")]
  46. public long DownFreq
  47. {
  48. get => _downFreq;
  49. set => SetPropertyValue(nameof(DownFreq), ref _downFreq, value);
  50. }
  51. private SignalCategory _sigCategory;
  52. [DisplayName("信号类别")]
  53. public SignalCategory SigCategory
  54. {
  55. get => _sigCategory;
  56. set => SetPropertyValue(nameof(SigCategory), ref _sigCategory, value);
  57. }
  58. private SignalType _sigType;
  59. [DisplayName("信号类型")]
  60. public SignalType SigType
  61. {
  62. get => _sigType;
  63. set => SetPropertyValue(nameof(SigType), ref _sigType, value);
  64. }
  65. private int _sigLen;
  66. [DisplayName("信号时长(s)")]
  67. public int SigLen
  68. {
  69. get => _sigLen;
  70. set => SetPropertyValue(nameof(SigLen), ref _sigLen, value);
  71. }
  72. private int _fs;
  73. [DisplayName("采样率")]
  74. public int Fs
  75. {
  76. get => _fs;
  77. set => SetPropertyValue(nameof(Fs), ref _fs, value);
  78. }
  79. private string _satCode;
  80. [DisplayName("卫星编码")]
  81. [Size(20)]
  82. public string SatCode
  83. {
  84. get => _satCode;
  85. set => SetPropertyValue(nameof(SatCode), ref _satCode, value);
  86. }
  87. private string _antCode;
  88. [DisplayName("站点编码")]
  89. [Size(20)]
  90. public string AntCode
  91. {
  92. get => _antCode;
  93. set => SetPropertyValue(nameof(AntCode), ref _antCode, value);
  94. }
  95. private int _adCardId;
  96. [DisplayName("采集卡编号")]
  97. public int AdCardId
  98. {
  99. get => _adCardId;
  100. set => SetPropertyValue(nameof(AdCardId), ref _adCardId, value);
  101. }
  102. private int _adChId;
  103. [DisplayName("采集通道编号")]
  104. public int AdChId
  105. {
  106. get => _adChId;
  107. set => SetPropertyValue(nameof(AdChId), ref _adChId, value);
  108. }
  109. private int _chNum;
  110. [DisplayName("通道号")]
  111. public int ChNum
  112. {
  113. get => _chNum;
  114. set => SetPropertyValue(nameof(ChNum), ref _chNum, value);
  115. }
  116. private string _folderName;
  117. [DisplayName("文件夹名称")]
  118. [Size(200)]
  119. public string FolderName
  120. {
  121. get => _folderName;
  122. set => SetPropertyValue(nameof(FolderName), ref _folderName, value);
  123. }
  124. private string _fileName;
  125. [DisplayName("文件名")]
  126. [Size(200)]
  127. public string FileName
  128. {
  129. get => _fileName;
  130. set => SetPropertyValue(nameof(FileName), ref _fileName, value);
  131. }
  132. private int _antId;
  133. [DisplayName("站点ID")]
  134. public int AntId
  135. {
  136. get => _antId;
  137. set => SetPropertyValue(nameof(AntId), ref _antId, value);
  138. }
  139. private double _antLon;
  140. [DisplayName("站点经度")]
  141. public double AntLon
  142. {
  143. get => _antLon;
  144. set => SetPropertyValue(nameof(AntLon), ref _antLon, value);
  145. }
  146. private double _antLat;
  147. [DisplayName("站点纬度")]
  148. public double AntLat
  149. {
  150. get => _antLat;
  151. set => SetPropertyValue(nameof(AntLat), ref _antLat, value);
  152. }
  153. private double _antAlt;
  154. [DisplayName("站点高度")]
  155. public double AntAlt
  156. {
  157. get => _antAlt;
  158. set => SetPropertyValue(nameof(AntAlt), ref _antAlt, value);
  159. }
  160. public string GetFullName(string storePath)
  161. {
  162. string fullName;
  163. if (FolderName.IsNotNullOrWhitespace())
  164. {
  165. fullName = Path.Combine(storePath, FolderName, FileName);
  166. }
  167. else
  168. {
  169. fullName = Path.Combine(storePath, FileName);
  170. }
  171. return fullName;
  172. }
  173. public double[] GetAntLla()
  174. {
  175. return new double[] { this.AntLon, this.AntLat, this.AntAlt };
  176. }
  177. }
  178. }