123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- using Newtonsoft.Json;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace XdCxRhDW.Entity
- {
- /// <summary>
- /// 定位结果表
- /// </summary>
- [Table("PosRes")]
- public class PosRes : PosData
- {
- [Display(Name = "任务编号")]
- public int TaskInfoID { get; set; }
- [Display(Name = "上行频点")]
- public long FreqUpHz { get; set; }
- [Display(Name = "站点ID")]
- public long StationResID { get; set; }
- [Display(AutoGenerateField = false)]
- [JsonIgnore]
- public virtual StationRes StationRes { get; set; }
- [Display(Name = "测向编号")]
- public long? CxResID { get; set; }
- [Display(AutoGenerateField = false)]
- [JsonIgnore]
- public virtual CxRes CxRes { get; set; }
- [NotMapped]
- [Display(AutoGenerateField = false)]
- public string BaseCheckType { get; set; }
- [Display(Name = "参估编号")]
- public long CgResID { get; set; }
- [Display(AutoGenerateField = false)]
- [JsonIgnore]
- public virtual CgRes CgRes { get; set; }
- [Display(AutoGenerateField = false)]
- public int? TargetInfoID { get; set; }
- public TargetInfo TargetInfo;
- [NotMapped]
- [Display(AutoGenerateField = false)]
- public string BaseTargetName { get; set; }
- [Display(Name = "检测编号")]
- public long? CheckResID { get; set; }
- [Display(AutoGenerateField = false)]
- [JsonIgnore]
- public virtual CheckRes CheckRes { get; set; }
- [Display(Name = "定位点")]
- public string LonLat
- {
- get
- {
- if (PosLon == 0 && PosLat == 0)
- return "--";
- else if (PosLon > 180 || PosLon < -180)
- return "--";
- else
- return $"{PosLon:f4},{PosLat:f4}";
- }
- }
- [Display(Name = "镜像点")]
- public string MirrLonLat
- {
- get
- {
- if (MirrLon == 0 && MirrLat == 0)
- return "--";
- else if (MirrLon > 180 || MirrLon < -180)
- return "--";
- else
- return $"{MirrLon:f4},{MirrLat:f4}";
- }
- }
- [Display(Name = "定位类型")]
- [ToolTip]
- public EnumPosResType PosResType { get; set; }
- [Display(Name = "目标状态")]
- [ToolTip]
- public EnumTargetState TargetState { get; set; }
- }
- }
|