Ant.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. using DevExpress.Xpo;
  2. using Ips.Library.Entity;
  3. using System;
  4. namespace Ips.Sps.Ants
  5. {
  6. public class Ant : XPObject
  7. {
  8. public Ant() : base()
  9. {
  10. }
  11. public Ant(Session session) : base(session)
  12. {
  13. }
  14. public override void AfterConstruction()
  15. {
  16. base.AfterConstruction();
  17. }
  18. private string _name;
  19. [DisplayName("名称")]
  20. public string Name
  21. {
  22. get => _name;
  23. set => SetPropertyValue(nameof(Name), ref _name, value);
  24. }
  25. private string _code;
  26. [DisplayName("编码")]
  27. [Size(20)]
  28. public string Code
  29. {
  30. get => _code;
  31. set => SetPropertyValue(nameof(Code), ref _code, value);
  32. }
  33. private double _lon;
  34. [DisplayName("经度")]
  35. public double Lon
  36. {
  37. get => _lon;
  38. set => SetPropertyValue(nameof(Lon), ref _lon, value);
  39. }
  40. private double _lat;
  41. [DisplayName("纬度")]
  42. public double Lat
  43. {
  44. get => _lat;
  45. set => SetPropertyValue(nameof(Lat), ref _lat, value);
  46. }
  47. private double _alt;
  48. [DisplayName("高度")]
  49. public double Alt
  50. {
  51. get => _alt;
  52. set => SetPropertyValue(nameof(Alt), ref _alt, value);
  53. }
  54. private string _remark;
  55. [DisplayName("备注信息")]
  56. [Size(2000)]
  57. public string Remark
  58. {
  59. get => _remark;
  60. set => SetPropertyValue(nameof(Remark), ref _remark, value);
  61. }
  62. }
  63. }