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; using XdCxRhDW.Entity; namespace XdCxRhDW.Repostory { /// /// 定位结果UI绑定对象 /// public class ModelPosRes : PosData { [Display(Name = "任务编号")] public int TaskInfoID { get; set; } [Display(Name = "上行频点")] public long FreqUpHz { get; set; } [Display(Name = "站点ID")] public long StationResID { get; set; } [Display(Name = "测向编号")] public long? CxResID { get; set; } [Display(Name = "参估编号")] public long CgResID { get; set; } [Display(AutoGenerateField = false)] public int? TargetID { get; set; } [Display(Name = "目标名称")] public string TarName { get; set; } = "未识别"; [Display(Name = "时隙标识")] public string TsName { 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 = "定位类型")] public EnumPosResType PosResType { get; set; } [Display(Name = "目标状态")] public EnumTargetState TargetState { get; set; } } }