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 SigSamples { get => GetCollection(nameof(SigSamples)); } } }