Exemple #1
0
 public CardNumber()
 {
     cardType = 0;
     driverIdentification = new String("".ToCharArray());
     cardReplacementIndex = new CardReplacementIndex();
     cardRenewalIndex = new CardRenewalIndex();
     ownerIdentification = "";
     cardConsecutiveIndex = new CardConsecutiveIndex();
 }
Exemple #2
0
 public CardNumber()
 {
     cardType             = 0;
     driverIdentification = new String("".ToCharArray());
     cardReplacementIndex = new CardReplacementIndex();
     cardRenewalIndex     = new CardRenewalIndex();
     ownerIdentification  = "";
     cardConsecutiveIndex = new CardConsecutiveIndex();
 }
Exemple #3
0
        public CardNumber(byte[] value, short cardType)
        {
            this.cardType = cardType;

            if (cardType == EquipmentType.DRIVER_CARD)
            {
                driverIdentification = ConvertionClass.convertIntoString(ConvertionClass.arrayCopy(value, 0, 14));
                cardReplacementIndex = new CardReplacementIndex(value[14]);
                cardRenewalIndex = new CardRenewalIndex(value[15]);

                ownerIdentification = "";
                cardConsecutiveIndex = new CardConsecutiveIndex();
            }
            else
            {
                ownerIdentification = ConvertionClass.convertIntoString(ConvertionClass.arrayCopy(value, 0, 13));
                cardConsecutiveIndex = new CardConsecutiveIndex(value[13]);
                cardReplacementIndex = new CardReplacementIndex(value[14]);
                cardRenewalIndex = new CardRenewalIndex(value[15]);
                driverIdentification = "";
            }
        }
Exemple #4
0
        public CardNumber(byte[] value, short cardType)
        {
            this.cardType = cardType;

            if (cardType == EquipmentType.DRIVER_CARD)
            {
                driverIdentification = ConvertionClass.convertIntoString(ConvertionClass.arrayCopy(value, 0, 14));
                cardReplacementIndex = new CardReplacementIndex(value[14]);
                cardRenewalIndex     = new CardRenewalIndex(value[15]);

                ownerIdentification  = "";
                cardConsecutiveIndex = new CardConsecutiveIndex();
            }
            else
            {
                ownerIdentification  = ConvertionClass.convertIntoString(ConvertionClass.arrayCopy(value, 0, 13));
                cardConsecutiveIndex = new CardConsecutiveIndex(value[13]);
                cardReplacementIndex = new CardReplacementIndex(value[14]);
                cardRenewalIndex     = new CardRenewalIndex(value[15]);
                driverIdentification = "";
            }
        }
Exemple #5
0
        public CardNumber(short cardType)
        {
            this.cardType = cardType;

            if (cardType == EquipmentType.DRIVER_CARD)
            {
                driverIdentification = "";
                cardReplacementIndex = new CardReplacementIndex();
                cardRenewalIndex = new CardRenewalIndex();

                ownerIdentification = "";
                cardConsecutiveIndex = new CardConsecutiveIndex();
            }
            else
            {
                // workshop, control or company card
                ownerIdentification = "";
                cardConsecutiveIndex = new CardConsecutiveIndex();
                cardReplacementIndex = new CardReplacementIndex();
                cardRenewalIndex = new CardRenewalIndex();
                driverIdentification = "";
            }
        }
Exemple #6
0
        public CardNumber(short cardType)
        {
            this.cardType = cardType;

            if (cardType == EquipmentType.DRIVER_CARD)
            {
                driverIdentification = "";
                cardReplacementIndex = new CardReplacementIndex();
                cardRenewalIndex     = new CardRenewalIndex();

                ownerIdentification  = "";
                cardConsecutiveIndex = new CardConsecutiveIndex();
            }
            else
            {
                // workshop, control or company card
                ownerIdentification  = "";
                cardConsecutiveIndex = new CardConsecutiveIndex();
                cardReplacementIndex = new CardReplacementIndex();
                cardRenewalIndex     = new CardRenewalIndex();
                driverIdentification = "";
            }
        }