public CardNumber() { cardType = 0; driverIdentification = new String("".ToCharArray()); cardReplacementIndex = new CardReplacementIndex(); cardRenewalIndex = new CardRenewalIndex(); ownerIdentification = ""; cardConsecutiveIndex = new CardConsecutiveIndex(); }
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 = ""; } }
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 = ""; } }