PosRes.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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.App.Model
  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 = "站点ID")]
  21. public long StationResID { get; set; }
  22. [Display(AutoGenerateField = false)]
  23. public virtual StationRes StationRes { get; set; }
  24. [Display(Name = "测向编号")]
  25. public long? CxResID { get; set; }
  26. [Display(AutoGenerateField =false)]
  27. public virtual CxRes CxRes { get; set;}
  28. [Display(Name = "参估编号")]
  29. public long CgResID { get; set; }
  30. [Display(AutoGenerateField = false)]
  31. public virtual CgRes CgRes { get; set; }
  32. [Display(AutoGenerateField = false)]
  33. public int? TargetID { get; set; }
  34. [Display(Name = "目标名称")]
  35. public string TarName { get; set; } = "未识别";
  36. [Display(Name = "时隙标识")]
  37. public string TsName { get; set; } = "未知";
  38. [Display(Name = "定位点")]
  39. public string LonLat
  40. {
  41. get
  42. {
  43. if (PosLon == 0 && PosLat == 0)
  44. return "无";
  45. else if (PosLon > 180 || PosLon < -180)
  46. return "无";
  47. else
  48. return $"{PosLon:f4},{PosLat:f4}";
  49. }
  50. }
  51. [Display(Name = "镜像点")]
  52. public string MirrLonLat
  53. {
  54. get
  55. {
  56. if (MirrLon == 0 && MirrLat == 0)
  57. return "无";
  58. else if (MirrLon > 180 || MirrLon < -180)
  59. return "无";
  60. else
  61. return $"{MirrLon:f4},{MirrLat:f4}";
  62. }
  63. }
  64. }
  65. }