Ejemplo n.º 1
0
 public override void Encode()
 {
     encodeBuf.Clear();
     encodeBuf.AddRange(AddString(LineId, 2));
     encodeBuf.AddRange(AddString(StationId, 4));
     encodeBuf.AddRange(AddString(TicketType, 4));
     encodeBuf.AddRange(AddString(TicketStatus, 1));
     encodeBuf.AddRange(AddString(TicketQty.PadLeft(8, '0'), 8));
     encodeBuf.AddRange(AddString(ChangeType, 1));
     encodeBuf.AddRange(AddString(TradeMoney.PadLeft(4, '0'), 4));
     encodeBuf.AddRange(AddString(ExpireDate, 8));
 }
Ejemplo n.º 2
0
 public override void Encode()
 {
     encodeBuf.Clear();
     encodeBuf.AddRange(AddString(TxnType, 2));
     encodeBuf.AddRange(AddString(BoxChangeTime, 14));
     encodeBuf.AddRange(AddString(StationId, 4));
     encodeBuf.AddRange(AddString(DeviceId, 8));
     encodeBuf.AddRange(AddString(ReportDate, 8));
     encodeBuf.AddRange(AddString(TicketBoxId.PadLeft(16, '0'), 16));
     encodeBuf.AddRange(AddString(OperatorId, 6));
     encodeBuf.AddRange(AddString(TicketType, 2));
     encodeBuf.AddRange(AddString(TestFlag, 1));
     encodeBuf.AddRange(AddString(TicketBoxType, 1));
     encodeBuf.AddRange(AddString(TicketQty.PadLeft(7, '0'), 7));
     encodeBuf.AddRange(AddString(Spare.PadLeft(8, '0'), 8));
 }
Ejemplo n.º 3
0
        public override void Encode()
        {
            encodeBuf.Clear();

            encodeBuf.AddRange(AddString(LineId, 2));
            encodeBuf.AddRange(AddString(OperatorType, 2));
            encodeBuf.AddRange(AddString(StationID, 4));
            encodeBuf.AddRange(AddString(TicketBoxID, 8));
            encodeBuf.AddRange(AddString(DeviceId, 8));
            encodeBuf.AddRange(AddString(TicketBoxType, 2));
            encodeBuf.AddRange(AddString(TicketBoxRfid, 8));
            encodeBuf.AddRange(AddString(LocationStatus, 2));
            encodeBuf.AddRange(AddString(InstallLocation, 2));
            encodeBuf.AddRange(AddString(InstallStatus, 2));
            encodeBuf.AddRange(AddString(ClearStatus, 2));
            encodeBuf.AddRange(AddString(BeforeOperateQty.PadLeft(8, ' '), 8));
            encodeBuf.AddRange(AddString(TicketQty.PadLeft(8, ' '), 8));
            encodeBuf.AddRange(AddString(OperatorID, 6));
            encodeBuf.AddRange(AddString(DoublePrivilegeOperatorID, 6));
            encodeBuf.AddRange(AddString(UpdateTime, 14));
        }