TskResultBase.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. using DevExpress.Xpo;
  2. using Ips.Library.Basic;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace Ips.Sps.TskResults
  10. {
  11. [NonPersistent]
  12. public class TskResultBase : XPLiteObject
  13. {
  14. public TskResultBase() : base()
  15. {
  16. }
  17. public TskResultBase(Session session) : base(session)
  18. {
  19. }
  20. public override void AfterConstruction()
  21. {
  22. base.AfterConstruction();
  23. }
  24. private long _id;
  25. [DevExpress.Xpo.Key(true)]
  26. public long Id
  27. {
  28. get => _id;
  29. set => SetPropertyValue(nameof(Id), ref _id, value);
  30. }
  31. private int _tskId;
  32. [DisplayName("任务编号")]
  33. public int TskId
  34. {
  35. get => _tskId;
  36. set => SetPropertyValue(nameof(TskId), ref _tskId, value);
  37. }
  38. private DateTime _groupTime;
  39. [DisplayName("分组时间")]
  40. [MemberDesignTimeVisibility(false)]
  41. public DateTime GroupTime
  42. {
  43. get => _groupTime;
  44. set => SetPropertyValue(nameof(GroupTime), ref _groupTime, value);
  45. }
  46. private int _sigId;
  47. [DisplayName("信号编号")]
  48. public int SigId
  49. {
  50. get => _sigId;
  51. set => SetPropertyValue(nameof(SigId), ref _sigId, value);
  52. }
  53. private int _emtId;
  54. [DisplayName("信号目标")]
  55. public int EmtId
  56. {
  57. get => _emtId;
  58. set => SetPropertyValue(nameof(EmtId), ref _emtId, value);
  59. }
  60. private DateTime _sigTime;
  61. [DisplayName("信号时间")]
  62. [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "yyyy-MM-dd HH:mm:ss.fff")]
  63. public DateTime SigTime
  64. {
  65. get => _sigTime;
  66. set => SetPropertyValue(nameof(SigTime), ref _sigTime, value);
  67. }
  68. private long _sigFreq;
  69. [DisplayName("信号频点")]
  70. public long SigFreq
  71. {
  72. get => _sigFreq;
  73. set => SetPropertyValue(nameof(SigFreq), ref _sigFreq, value);
  74. }
  75. private int _bandWidth;
  76. [DisplayName("信号带宽")]
  77. public int BandWidth
  78. {
  79. get => _bandWidth;
  80. set => SetPropertyValue(nameof(BandWidth), ref _bandWidth, value);
  81. }
  82. private DateTime _createTime;
  83. [DisplayName("创建时间")]
  84. [DisplayFormat(DataFormatString = "yyyy-MM-dd HH:mm:ss")]
  85. public DateTime CreateTime
  86. {
  87. get => _createTime;
  88. set => SetPropertyValue(nameof(CreateTime), ref _createTime, value);
  89. }
  90. }
  91. }