BitBlock.cs 933 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using GSG.NET.Excel;
  7. namespace VehicleControlSystem.ControlLayer.IO
  8. {
  9. [Serializable]
  10. public class BitBlock
  11. {
  12. [Column("Tag")]
  13. public string Tag { get; set; }
  14. [Column( "Address" )]
  15. public string Address { get; set; }
  16. [Column("BoardNo")]
  17. public ushort BoardNo { get; set; }
  18. [Column( "Index" )]
  19. public ushort Index { get; set; }
  20. [Column( "IOType" )]
  21. public string IOType { get; set; }
  22. [Column( "BoardType" )]
  23. public string BoardType { get; set; }
  24. public int PageNo { get; set; }
  25. public bool IsBitOn { get; set; } = false;
  26. public bool IsChanged { get; set; } = false;
  27. public BitBlock Clone()
  28. {
  29. return ( BitBlock)MemberwiseClone();
  30. }
  31. }
  32. }