NozzleOperatingState.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using Edge.Core.Parser.BinaryParser.Attributes;
  2. using Edge.Core.Parser.BinaryParser.MessageEntity;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. namespace LanTian_Sinopec_PumpIcCardReader
  8. {
  9. /// <summary>
  10. /// 加油机对 PC 机普通查询命令 30H
  11. /// PC 机对加油机普通查询命令 30H
  12. /// 加油机发送实时信息命令 31H
  13. /// </summary>
  14. public class NozzleOperatingState : MessageTemplateBase
  15. {
  16. public enum PumpStateChangeCode
  17. {
  18. 卡插入 = 1,
  19. 抬枪或加油中 = 2
  20. }
  21. //public RealTimeInquiryRequest(GenericInquiryRequestType type)
  22. //{
  23. // base.HANDLE = (byte)type;
  24. //}
  25. [Format(1, EncodingType.BIN, 0)]
  26. public PumpStateChangeCode St状态字 { get; set; }
  27. [Format(1, EncodingType.BIN, 1)]
  28. public byte MZN枪号 { get; set; }
  29. [Format(1, EncodingType.BIN, 2)]
  30. public byte P_UNIT结算单位_方式 { get; set; }
  31. [Format(3, EncodingType.BIN, 3)]
  32. public int AMN数额 { get; set; }
  33. [Format(3, EncodingType.BIN, 4)]
  34. public int VOL升数 { get; set; }
  35. [Format(2, EncodingType.BIN, 5)]
  36. public int PRC价格 { get; set; }
  37. }
  38. }