PumpNotifyTransactionDoneEvent.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using Edge.Core.Parser.BinaryParser.Attributes;
  2. using Edge.Core.Parser.BinaryParser.Util;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Globalization;
  6. using System.Linq;
  7. using System.Text;
  8. namespace ZhongSheng_NonIC_Pump
  9. {
  10. public class PumpNotifyTransactionDoneEvent : MessageTemplateBase
  11. {
  12. [Format(4, EncodingType.BIN, 1)]
  13. public int 交易金额 { get; set; }
  14. [Format(3, EncodingType.BIN, 2)]
  15. public int 交易油量 { get; set; }
  16. [Format(3, EncodingType.BIN, 3)]
  17. public int 交易单价 { get; set; }
  18. [Format(7, EncodingType.BcdString, 4)]
  19. public string 交易时间_Raw { get; set; }
  20. public DateTime 交易时间
  21. {
  22. get
  23. {
  24. return DateTime.ParseExact(this.交易时间_Raw, "yyyyMMddHHmmss", System.Globalization.CultureInfo.InvariantCulture);
  25. }
  26. }
  27. [Format(1, EncodingType.BIN, 5)]
  28. public byte 交易枪号 { get; set; }
  29. [Format(4, EncodingType.BIN, 6)]
  30. public int 油量总量 { get; set; }
  31. [Format(5, EncodingType.BIN, 7)]
  32. public int 金额总量 { get; set; }
  33. [Format(1, EncodingType.BIN, 8)]
  34. public byte 支付模式 { get; set; }
  35. }
  36. }