Esempio n. 1
0
 public override void Encode()
 {
     encodeBuf.Clear();
     encodeBuf.AddRange(AddString(CmdSendTime, 14));
     encodeBuf.AddRange(AddString(CmdCode, 4));
     encodeBuf.AddRange(AddString(BoxModuleCode, 2));
     encodeBuf.AddRange(AddString(OperatorId.PadLeft(8, '0'), 8));
     encodeBuf.AddRange(AddString(ValidEndTime.PadLeft(16, '0'), 16));
 }
Esempio n. 2
0
        public override void Encode()
        {
            encodeBuf.Clear();

            encodeBuf.AddRange(AddString(DeviceId, 8));
            encodeBuf.AddRange(AddString(OperateTime, 14));
            encodeBuf.AddRange(AddString(OperatorId.PadLeft(6, ' '), 6));
            encodeBuf.AddRange(AddString(ShiftId.PadLeft(10, '0'), 10));
            encodeBuf.AddRange(AddString(ShiftEvent, 1));
        }
Esempio n. 3
0
 public override void Encode()
 {
     encodeBuf.Clear();
     encodeBuf.AddRange(AddString(TxnType, 2));
     encodeBuf.AddRange(AddString(StationId, 4));
     encodeBuf.AddRange(AddString(DeviceId, 8));
     encodeBuf.AddRange(AddString(ReportDate, 8));
     encodeBuf.AddRange(AddString(BoxGetOutTime, 14));
     encodeBuf.AddRange(AddString(TicketBoxId.PadLeft(16, '0'), 16));
     encodeBuf.AddRange(AddString(OperatorId.PadLeft(6, '0'), 6));
     encodeBuf.AddRange(AddString(TicketType, 2));
     encodeBuf.AddRange(AddString(TestFlag, 1));
     encodeBuf.AddRange(AddString(TicketQty.PadLeft(7, '0'), 7));
     encodeBuf.AddRange(AddString(LastPutInTime, 14));
     encodeBuf.AddRange(AddString(LastPutInOperatorId, 6));
     encodeBuf.AddRange(AddString(Spare.PadLeft(8, '0'), 8));
 }