PosRes.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 XdCxRhDW.Entity
  9. {
  10. /// <summary>
  11. /// 定位结果表
  12. /// </summary>
  13. [Table("PosRes")]
  14. public class PosRes : PosData
  15. {
  16. [Display(Name = "任务编号")]
  17. public int TaskInfoID { get; set; }
  18. [Display(Name = "上行频点")]
  19. public long FreqUpHz { get; set; }
  20. [Display(Name = "站点ID")]
  21. public long StationResID { get; set; }
  22. [Display(Name = "测向编号")]
  23. public long? CxResID { get; set; }
  24. [Display(Name = "参估编号")]
  25. public long CgResID { get; set; }
  26. [Display(AutoGenerateField = false)]
  27. public int? TargetInfoID { get; set; }
  28. public TargetInfo TargetInfo;
  29. [Display(Name = "检测编号")]
  30. public long? CheckResID { get; set; }
  31. public CheckRes CheckRes;
  32. [Display(Name = "定位点")]
  33. public string LonLat
  34. {
  35. get
  36. {
  37. if (PosLon == 0 && PosLat == 0)
  38. return "--";
  39. else if (PosLon > 180 || PosLon < -180)
  40. return "--";
  41. else
  42. return $"{PosLon:f4},{PosLat:f4}";
  43. }
  44. }
  45. [Display(Name = "镜像点")]
  46. public string MirrLonLat
  47. {
  48. get
  49. {
  50. if (MirrLon == 0 && MirrLat == 0)
  51. return "--";
  52. else if (MirrLon > 180 || MirrLon < -180)
  53. return "--";
  54. else
  55. return $"{MirrLon:f4},{MirrLat:f4}";
  56. }
  57. }
  58. [Display(Name = "定位类型")]
  59. [ToolTip]
  60. public EnumPosResType PosResType { get; set; }
  61. [Display(Name = "目标状态")]
  62. [ToolTip]
  63. public EnumTargetState TargetState { get; set; }
  64. }
  65. }