| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 | 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.Repostory.Model{    /// <summary>    /// 定位结果表    /// </summary>    [Table("PosRes")]    public class PosRes : PosData    {        [Display(Name = "任务编号")]        public int TaskInfoID { get; set; }        [Display(AutoGenerateField = false)]        public virtual TaskInfo TaskInfo { get; set; }        [Display(Name = "站点ID")]        public long StationResID { get; set; }        [Display(AutoGenerateField = false)]        public virtual StationRes StationRes { get; set; }        [Display(Name = "测向编号")]        public long? CxResID { get; set; }        [Display(AutoGenerateField = false)]        public virtual CxRes CxRes { get; set; }        [Display(Name = "参估编号")]        public long CgResID { get; set; }        [Display(AutoGenerateField = false)]        public virtual CgRes CgRes { 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; }    }}
 |