12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- 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 DW5S.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; }
- [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; }
- [Display(AutoGenerateField = false)]
- [NotMapped]
- public TargetInfo TargetInfo { get; set; }
- [Display(Name = "检测编号")]
- public long? CheckResID { get; set; }
- [Display(AutoGenerateField = false)]
- 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; }
- }
- }
|