| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- using DevExpress.Xpo;
- using Ips.Library.Entity;
- using System;
- using System.ComponentModel.DataAnnotations;
- namespace Ips.Sps.Emts
- {
- public class Emt : XPObject
- {
- public Emt() : base()
- {
- }
- public Emt(Session session) : base(session)
- {
- }
- public override void AfterConstruction()
- {
- base.AfterConstruction();
- this.Enable = true;
- }
- private string _code;
- [DisplayName("编码"), Size(50)]
- public string Code
- {
- get => _code;
- set => SetPropertyValue(nameof(Code), ref _code, value);
- }
- private string _name;
- [DisplayName("名称"), Size(100)]
- public string Name
- {
- get => _name;
- set => SetPropertyValue(nameof(Name), ref _name, value);
- }
- private EmtType _emtType;
- [DisplayName("类型")]
- public EmtType EmtType
- {
- get => _emtType;
- set => SetPropertyValue(nameof(EmtType), ref _emtType, value);
- }
- private double _speed;
- [DisplayName("速度(km/h)")]
- public double Speed
- {
- get => _speed;
- set => SetPropertyValue(nameof(Speed), ref _speed, value);
- }
- private double _lon;
- [DisplayName("经度")]
- public double Lon
- {
- get => _lon;
- set => SetPropertyValue(nameof(Lon), ref _lon, value);
- }
- private double _lat;
- [DisplayName("纬度")]
- public double Lat
- {
- get => _lat;
- set => SetPropertyValue(nameof(Lat), ref _lat, value);
- }
- private double _alt;
- [DisplayName("高度")]
- public double Alt
- {
- get => _alt;
- set => SetPropertyValue(nameof(Alt), ref _alt, value);
- }
- private string _remark;
- [DisplayName("备注"), Size(2000)]
- public string Remark
- {
- get => _remark;
- set => SetPropertyValue(nameof(Remark), ref _remark, value);
- }
- private bool _enable;
- [DisplayName("启用")]
- public bool Enable
- {
- get => _enable;
- set => SetPropertyValue(nameof(Enable), ref _enable, value);
- }
- private bool _hasSample;
- [DisplayName("扩频参考")]
- public bool HasSample
- {
- get => _hasSample;
- set => SetPropertyValue(nameof(HasSample), ref _hasSample, value);
- }
- [DisplayName("信号样本")]
- [DevExpress.Xpo.Association, Aggregated]
- public XPCollection<EmtSample> SigSamples
- {
- get => GetCollection<EmtSample>(nameof(SigSamples));
- }
- }
- }
|