12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- 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 XzXdDw.App.Model
- {
- [Table("XDPosRes")]
- public class XDPosRes : PosData
- {
- [Display(AutoGenerateField = false,Name = "任务编号")]
- public int TaskID { get; set; }
- [Display(AutoGenerateField = false)]
- public virtual TaskInfo TaskInfo { get;set;}
- [Display(Name = "用户编号",AutoGenerateField = false)]
- public long CheckResID { get; set; }
- [Display(AutoGenerateField =false)]
- public virtual CheckRes CheckRes { get; set;}
- [Display(Name = "参估编号")]
- public long CgResID { get; set; }
- [Display(AutoGenerateField = false)]
- public virtual CgRes CgRes { 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}";
- }
- }
- }
- }
|