123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- using Dfs.WayneChina.HengshanTerminalWrapper.MessageEntity.Base;
- using Edge.Core.Parser.BinaryParser.Attributes;
- namespace Dfs.WayneChina.HengshanTerminalWrapper.MessageEntity.Outgoing
- {
-
-
-
-
-
- public class GetTransactionResponse : NonCardDispenserMessageTemplateBase
- {
- public enum 流水状态
- {
- 无该流水,
- 其他
- }
- public GetTransactionResponse()
- {
- CMD = 0xAB;
- }
- [Format(2, EncodingType.BIN, 1)]
- public int SequenceNo { get; set; }
- [Format(3, EncodingType.BCD, 3)]
- public int 加油量 { get; set; }
- [Format(3, EncodingType.BCD, 6)]
- public int 加油金额 { get; set; }
- [Format(2, EncodingType.BCD, 9)]
- public int 单价 { get; set; }
- [Format(1, EncodingType.BIN, 10)]
- public byte Status { get; set; }
- public 流水状态 SequenceStatus
- {
- get { return Status == 0xBB ? 流水状态.无该流水 : 流水状态.其他; }
- set
- {
- Status = (byte)(value == 流水状态.无该流水 ? 0xBB : 0x55);
- }
- }
- }
- }
|