using Edge.Core.Parser.BinaryParser.Attributes; using Edge.Core.Parser.BinaryParser.Util; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; namespace ZhongSheng_NonIC_Pump { public class PumpNotifyTransactionDoneEvent : MessageTemplateBase { [Format(4, EncodingType.BIN, 1)] public int 交易金额 { get; set; } [Format(3, EncodingType.BIN, 2)] public int 交易油量 { get; set; } [Format(3, EncodingType.BIN, 3)] public int 交易单价 { get; set; } [Format(7, EncodingType.BcdString, 4)] public string 交易时间_Raw { get; set; } public DateTime 交易时间 { get { return DateTime.ParseExact(this.交易时间_Raw, "yyyyMMddHHmmss", System.Globalization.CultureInfo.InvariantCulture); } } [Format(1, EncodingType.BIN, 5)] public byte 交易枪号 { get; set; } [Format(4, EncodingType.BIN, 6)] public int 油量总量 { get; set; } [Format(5, EncodingType.BIN, 7)] public int 金额总量 { get; set; } [Format(1, EncodingType.BIN, 8)] public byte 支付模式 { get; set; } } }