PosRes.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace XzXdDw.App.Model
  9. {
  10. [Table("PosRes")]
  11. public class PosRes : PosData
  12. {
  13. [Display(Name = "任务编号", AutoGenerateField = false)]
  14. public int TaskID { get; set; }
  15. [Display(AutoGenerateField = false)]
  16. public virtual TaskInfo TaskInfo { get;set;}
  17. [Display(Name = "用户编号", AutoGenerateField = false)]
  18. public long CheckResID { get; set; }
  19. [Display(AutoGenerateField =false)]
  20. public virtual CheckRes CheckRes { get; set;}
  21. [Display(Name = "参估编号")]
  22. public long CgResID { get; set; }
  23. [Display(AutoGenerateField = false)]
  24. public virtual CgRes CgRes { get; set; }
  25. [Display(Name = "上行频点")]
  26. public double UpFreq { get; set; }
  27. [Display(Name = "目标名称")]
  28. public string TarName { get; set; } = "未识别";
  29. [Display(Name = "时隙标识")]
  30. public string TsName { get; set; } = "未知";
  31. [Display(Name = "定位点")]
  32. public string LonLat
  33. {
  34. get
  35. {
  36. if (PosLon == 0 && PosLat == 0)
  37. return "无";
  38. else if (PosLon > 180 || PosLon < -180)
  39. return "无";
  40. else
  41. return $"{PosLon:f4},{PosLat:f4}";
  42. }
  43. }
  44. [Display(Name = "镜像点")]
  45. public string MirrLonLat
  46. {
  47. get
  48. {
  49. if (MirrLon == 0 && MirrLat == 0)
  50. return "无";
  51. else if (MirrLon > 180 || MirrLon < -180)
  52. return "无";
  53. else
  54. return $"{MirrLon:f4},{MirrLat:f4}";
  55. }
  56. }
  57. }
  58. }