PosRes.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 = "参估编号", AutoGenerateField = false)]
  22. public long CgResID { get; set; }
  23. [Display(Name = "参估编号1", AutoGenerateField = false)]
  24. public long CgRes1ID { get; set; }
  25. [Display(AutoGenerateField = false)]
  26. public virtual CgRes CgRes { get; set; }
  27. [Display(Name = "上行频点")]
  28. public double UpFreq { get; set; }
  29. [Display(Name = "目标名称")]
  30. public string TarName { get; set; } = "未识别";
  31. [Display(Name = "时隙标识", AutoGenerateField = false)]
  32. public string TsName { get; set; } = "未知";
  33. [Display(Name = "定位点")]
  34. public string LonLat
  35. {
  36. get
  37. {
  38. if (PosLon == 0 && PosLat == 0)
  39. return "--";
  40. else if (PosLon > 180 || PosLon < -180)
  41. return "--";
  42. else
  43. return $"{PosLon:f4},{PosLat:f4}";
  44. }
  45. }
  46. [Display(Name = "镜像点")]
  47. public string MirrLonLat
  48. {
  49. get
  50. {
  51. if (MirrLon == 0 && MirrLat == 0)
  52. return "--";
  53. else if (MirrLon > 180 || MirrLon < -180)
  54. return "--";
  55. else
  56. return $"{MirrLon:f4},{MirrLat:f4}";
  57. }
  58. }
  59. }
  60. }