| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- using DevExpress.Xpo;
- using Ips.Library.Basic;
- using Ips.Library.Entity;
- using System;
- namespace Ips.Sps.TskResults.Pases
- {
- /// <summary>
- /// 定位采集信号
- /// </summary>
- [Indices("TskId;SigId;SigTime")]
- public class Pas : TskResultBase
- {
- public Pas() : base()
- {
- }
- public Pas(Session session) : base(session)
- {
- }
- public override void AfterConstruction()
- {
- base.AfterConstruction();
- }
- private int _satId;
- [DisplayName("卫星ID")]
- public int SatId
- {
- get => _satId;
- set => SetPropertyValue(nameof(SatId), ref _satId, value);
- }
- private int _satNum;
- [DisplayName("卫星编号")]
- public int SatNum
- {
- get => _satNum;
- set => SetPropertyValue(nameof(SatNum), ref _satNum, value);
- }
- private long _upFreq;
- [DisplayName("上行频点")]
- public long UpFreq
- {
- get => _upFreq;
- set => SetPropertyValue(nameof(UpFreq), ref _upFreq, value);
- }
- private long _downFreq;
- [DisplayName("信号带宽")]
- public long DownFreq
- {
- get => _downFreq;
- set => SetPropertyValue(nameof(DownFreq), ref _downFreq, value);
- }
- private SignalCategory _sigCategory;
- [DisplayName("信号类别")]
- public SignalCategory SigCategory
- {
- get => _sigCategory;
- set => SetPropertyValue(nameof(SigCategory), ref _sigCategory, value);
- }
- private SignalType _sigType;
- [DisplayName("信号类型")]
- public SignalType SigType
- {
- get => _sigType;
- set => SetPropertyValue(nameof(SigType), ref _sigType, value);
- }
- private int _sigLen;
- [DisplayName("信号时长(s)")]
- public int SigLen
- {
- get => _sigLen;
- set => SetPropertyValue(nameof(SigLen), ref _sigLen, value);
- }
- private int _fs;
- [DisplayName("采样率")]
- public int Fs
- {
- get => _fs;
- set => SetPropertyValue(nameof(Fs), ref _fs, value);
- }
- private string _satCode;
- [DisplayName("卫星编码")]
- [Size(20)]
- public string SatCode
- {
- get => _satCode;
- set => SetPropertyValue(nameof(SatCode), ref _satCode, value);
- }
- private string _antCode;
- [DisplayName("站点编码")]
- [Size(20)]
- public string AntCode
- {
- get => _antCode;
- set => SetPropertyValue(nameof(AntCode), ref _antCode, value);
- }
- private int _adCardId;
- [DisplayName("采集卡编号")]
- public int AdCardId
- {
- get => _adCardId;
- set => SetPropertyValue(nameof(AdCardId), ref _adCardId, value);
- }
- private int _adChId;
- [DisplayName("采集通道编号")]
- public int AdChId
- {
- get => _adChId;
- set => SetPropertyValue(nameof(AdChId), ref _adChId, value);
- }
- private int _chNum;
- [DisplayName("通道号")]
- public int ChNum
- {
- get => _chNum;
- set => SetPropertyValue(nameof(ChNum), ref _chNum, value);
- }
- private string _folderName;
- [DisplayName("文件夹名称")]
- [Size(200)]
- public string FolderName
- {
- get => _folderName;
- set => SetPropertyValue(nameof(FolderName), ref _folderName, value);
- }
- private string _fileName;
- [DisplayName("文件名")]
- [Size(200)]
- public string FileName
- {
- get => _fileName;
- set => SetPropertyValue(nameof(FileName), ref _fileName, value);
- }
- private int _antId;
- [DisplayName("站点ID")]
- public int AntId
- {
- get => _antId;
- set => SetPropertyValue(nameof(AntId), ref _antId, value);
- }
- private double _antLon;
- [DisplayName("站点经度")]
- public double AntLon
- {
- get => _antLon;
- set => SetPropertyValue(nameof(AntLon), ref _antLon, value);
- }
- private double _antLat;
- [DisplayName("站点纬度")]
- public double AntLat
- {
- get => _antLat;
- set => SetPropertyValue(nameof(AntLat), ref _antLat, value);
- }
- private double _antAlt;
- [DisplayName("站点高度")]
- public double AntAlt
- {
- get => _antAlt;
- set => SetPropertyValue(nameof(AntAlt), ref _antAlt, value);
- }
- public string GetFullName(string storePath)
- {
- string fullName;
- if (FolderName.IsNotNullOrWhitespace())
- {
- fullName = Path.Combine(storePath, FolderName, FileName);
- }
- else
- {
- fullName = Path.Combine(storePath, FileName);
- }
- return fullName;
- }
- public double[] GetAntLla()
- {
- return new double[] { this.AntLon, this.AntLat, this.AntAlt };
- }
- }
- }
|