X2D1ErrEllipseParam.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. using DevExpress.XtraEditors;
  2. using DxHelper;
  3. using ExtensionsDev;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.ComponentModel;
  7. using System.Data;
  8. using System.Drawing;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. using System.Windows.Forms;
  13. using XdDw.App;
  14. using XzXdDw.App.Model;
  15. namespace XdDw.App.UserControl
  16. {
  17. public partial class X2D1ErrEllipseParam : DevExpress.XtraEditors.XtraUserControl
  18. {
  19. public ErrEllipse星地两星一地接口 Model => new ErrEllipse星地两星一地接口()
  20. {
  21. TleMain = txtTleMain.Text.Trim(),
  22. TleAdja = txtTleAdja.Text.Trim(),
  23. CapTime = txtCapTime.DateTime,
  24. StationLon = Convert.ToDouble(txtStationLocation1.Text.Replace(",", ",").Split(',')[0].Trim()),
  25. StationLat = Convert.ToDouble(txtStationLocation1.Text.Replace(",", ",").Split(',')[1].Trim()),
  26. RefLon = Convert.ToDouble(txtRefLocation1.Text.Replace(",", ",").Split(',')[0].Trim()),
  27. RefLat = Convert.ToDouble(txtRefLocation1.Text.Replace(",", ",").Split(',')[1].Trim()),
  28. DtousErr = Convert.ToDouble(txtDtousErr1.Text),
  29. SatLocErr = Convert.ToDouble(txtSatLocErr1.Text),
  30. };
  31. public X2D1ErrEllipseParam(DateTime sigTime)
  32. {
  33. InitializeComponent();
  34. txtCapTime.UseDefault();
  35. txtCapTime.DateTime = sigTime;
  36. txtTleMain.UseDoubleClickToSelectAll();
  37. txtTleAdja.UseDoubleClickToSelectAll();
  38. txtStationLocation1.UseDoubleClickToSelectAll();
  39. txtRefLocation1.UseDoubleClickToSelectAll();
  40. this.txtCapTime.DateTime = sigTime;
  41. this.txtStationLocation1.Text = TestData.RecLoc;
  42. this.txtRefLocation1.Text = TestData.RefLoc;
  43. txtTleMain.UseDefault().SetStringData(TestData.AllTle).Text = TestData.TleMain;
  44. txtTleAdja.UseDefault().SetStringData(TestData.AllTle).Text = TestData.TleAdja1;
  45. this.txtDtousErr1.EditValue = TestData.DtousErr;
  46. this.txtSatLocErr1.EditValue = TestData.SatLocErr;
  47. }
  48. private void btnOK_Click(object sender, EventArgs e)
  49. {
  50. PopupHelper.HidePopup(this);
  51. }
  52. }
  53. public class ErrEllipse星地两星一地接口
  54. {
  55. /// <summary>
  56. /// 主星星历(Tle)
  57. /// </summary>
  58. public string TleMain { get; set; }
  59. /// <summary>
  60. /// 邻星星历(Tle)
  61. /// </summary>
  62. public string TleAdja { get; set; }
  63. /// <summary>
  64. /// 采集时刻
  65. /// </summary>
  66. public DateTime CapTime { get; set; }
  67. /// <summary>
  68. /// 超短接收站-经度
  69. /// </summary>
  70. public double StationLon { get; set; }
  71. /// <summary>
  72. /// 超短接收站-纬度
  73. /// </summary>
  74. public double StationLat { get; set; }
  75. /// <summary>
  76. /// 参考站位置经度
  77. /// </summary>
  78. public double RefLon { get; set; }
  79. /// <summary>
  80. /// 参考站位置纬度
  81. /// </summary>
  82. public double RefLat { get; set; }
  83. /// <summary>
  84. /// 时差误差(单位us)
  85. /// </summary>
  86. public double DtousErr { get; set; } = 1;
  87. /// <summary>
  88. /// 星历位置误差(单位米)
  89. /// </summary>
  90. public double SatLocErr { get; set; } = 10000;
  91. }
  92. }