PosRes.cs 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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(AutoGenerateField = false)]
  19. public virtual TaskInfo TaskInfo { get; set; }
  20. [Display(Name = "上行频点")]
  21. public long FreqUpHz { get; set; }
  22. [Display(Name = "站点ID")]
  23. public long StationResID { get; set; }
  24. [Display(AutoGenerateField = false)]
  25. public virtual StationRes StationRes { get; set; }
  26. [Display(Name = "测向编号")]
  27. public long? CxResID { get; set; }
  28. [Display(AutoGenerateField = false)]
  29. public virtual CxRes CxRes { get; set; }
  30. [Display(Name = "参估编号")]
  31. public long CgResID { get; set; }
  32. [Display(AutoGenerateField = false)]
  33. public virtual CgRes CgRes { get; set; }
  34. [Display(AutoGenerateField = false)]
  35. public int? TargetID { get; set; }
  36. [Display(Name = "目标名称")]
  37. public string TarName { get; set; } = "未识别";
  38. [Display(Name = "时隙标识")]
  39. public string TsName { get; set; } = "未知";
  40. [Display(Name = "定位点")]
  41. public string LonLat
  42. {
  43. get
  44. {
  45. if (PosLon == 0 && PosLat == 0)
  46. return "--";
  47. else if (PosLon > 180 || PosLon < -180)
  48. return "--";
  49. else
  50. return $"{PosLon:f4},{PosLat:f4}";
  51. }
  52. }
  53. [Display(Name = "镜像点")]
  54. public string MirrLonLat
  55. {
  56. get
  57. {
  58. if (MirrLon == 0 && MirrLat == 0)
  59. return "--";
  60. else if (MirrLon > 180 || MirrLon < -180)
  61. return "--";
  62. else
  63. return $"{MirrLon:f4},{MirrLat:f4}";
  64. }
  65. }
  66. [Display(Name = "定位类型")]
  67. public EnumPosResType PosResType { get; set; }
  68. [Display(Name = "目标状态")]
  69. public EnumTargetState TargetState { get; set; }
  70. [Display(Name = "检测结果")]
  71. public long? CheckResID { get; set; }
  72. }
  73. }