コード例 #1
0
ファイル: PlaceRecord.cs プロジェクト: ShunkevichDV/FIS
 public PlaceRecord()
 {
     entryTime = new TimeReal();
     entryTypeDailyWorkPeriod = new EntryTypeDailyWorkPeriod();
     dailyWorkPeriodCountry = new NationNumeric();
     dailyWorkPeriodRegion = new RegionNumeric();
     vehicleOdometerValue = new OdometerShort();
 }
コード例 #2
0
 public PlaceRecord(byte[] record)
 {
     entryTime = new TimeReal(ConvertionClass.arrayCopy(record, 0, 4));
     entryTypeDailyWorkPeriod = new EntryTypeDailyWorkPeriod(record[4]);
     dailyWorkPeriodCountry   = new NationNumeric(record[5]);
     dailyWorkPeriodRegion    = new RegionNumeric(record[6]);
     vehicleOdometerValue     = new OdometerShort(ConvertionClass.arrayCopy(record, 7, 3));
 }
コード例 #3
0
ファイル: PlaceRecord.cs プロジェクト: ShunkevichDV/FIS
 public PlaceRecord(byte[] record)
 {
     entryTime = new TimeReal(ConvertionClass.arrayCopy(record, 0, 4));
     entryTypeDailyWorkPeriod = new EntryTypeDailyWorkPeriod(record[4]);
     dailyWorkPeriodCountry = new NationNumeric(record[5]);
     dailyWorkPeriodRegion = new RegionNumeric(record[6]);
     vehicleOdometerValue = new OdometerShort(ConvertionClass.arrayCopy(record, 7, 3));
 }
コード例 #4
0
 public PlaceRecord()
 {
     entryTime = new TimeReal();
     entryTypeDailyWorkPeriod = new EntryTypeDailyWorkPeriod();
     dailyWorkPeriodCountry   = new NationNumeric();
     dailyWorkPeriodRegion    = new RegionNumeric();
     vehicleOdometerValue     = new OdometerShort();
 }
コード例 #5
0
 public CardVehicleRecord(byte[] value)
 {
     vehicleOdometerBegin = new OdometerShort(ConvertionClass.arrayCopy(value, 0, 3));
     vehicleOdometerEnd   = new OdometerShort(ConvertionClass.arrayCopy(value, 3, 3));
     vehicleFirstUse      = new TimeReal(ConvertionClass.arrayCopy(value, 6, 4));
     vehicleLastUse       = new TimeReal(ConvertionClass.arrayCopy(value, 10, 4));
     vehicleRegistration  = new VehicleRegistrationIdentification(ConvertionClass.arrayCopy(value, 14, 15));
     vuDataBlockCounter   = new VuDataBlockCounter(ConvertionClass.arrayCopy(value, 29, 2));
 }
コード例 #6
0
 public CardVehicleRecord()
 {
     vehicleOdometerBegin = new OdometerShort();
     vehicleOdometerEnd   = new OdometerShort();
     vehicleFirstUse      = new TimeReal();
     vehicleLastUse       = new TimeReal();
     vehicleRegistration  = new VehicleRegistrationIdentification();
     vuDataBlockCounter   = new VuDataBlockCounter();
 }
コード例 #7
0
 public Vehicle_Activities()
 {
     downloadedDayDate = new TimeReal();
     odoMeterValueMidnight = new OdometerShort();
     vuCardIWData = new VuCardIWData();
     vuActivityDailyData = new VuActivityDailyData();
     vuPlaceDailyWorkPeriodData = new VuPlaceDailyWorkPeriodData();
     vuSpecificConditionData = new VuSpecificConditionData();
 }
コード例 #8
0
ファイル: CardVehicleRecord.cs プロジェクト: ShunkevichDV/FIS
 public CardVehicleRecord()
 {
     vehicleOdometerBegin = new OdometerShort();
     vehicleOdometerEnd = new OdometerShort();
     vehicleFirstUse = new TimeReal();
     vehicleLastUse = new TimeReal();
     vehicleRegistration = new VehicleRegistrationIdentification();
     vuDataBlockCounter = new VuDataBlockCounter();
 }
コード例 #9
0
ファイル: CardVehicleRecord.cs プロジェクト: ShunkevichDV/FIS
 public CardVehicleRecord(byte[] value)
 {
     vehicleOdometerBegin = new OdometerShort(ConvertionClass.arrayCopy(value, 0, 3));
     vehicleOdometerEnd = new OdometerShort(ConvertionClass.arrayCopy(value, 3, 3));
     vehicleFirstUse = new TimeReal(ConvertionClass.arrayCopy(value, 6, 4));
     vehicleLastUse = new TimeReal(ConvertionClass.arrayCopy(value, 10, 4));
     vehicleRegistration = new VehicleRegistrationIdentification(ConvertionClass.arrayCopy(value, 14, 15));
     vuDataBlockCounter = new VuDataBlockCounter(ConvertionClass.arrayCopy(value, 29, 2));
 }
コード例 #10
0
ファイル: VuCardIWRecord.cs プロジェクト: ShunkevichDV/FIS
 public VuCardIWRecord()
 {
     cardHolderName = new HolderName();
     fullCardNumber = new FullCardNumber();
     cardExpiryDate = new TimeReal();
     cardInsertionTime = new TimeReal();
     vehicleOdometerValueAtInsertion = new OdometerShort();
     cardSlotNumber = new CardSlotNumber();
     cardWithdrawalTime = new TimeReal();
     vehicleOdometerValueAtWithdrawal = new OdometerShort();
     previousVehicleInfo = new PreviousVehicleInfo();
     manualInputFlag = new ManualInputFlag();
 }
コード例 #11
0
ファイル: VuCardIWRecord.cs プロジェクト: ShunkevichDV/FIS
 public VuCardIWRecord(byte[] value)
 {
     cardHolderName = new HolderName(ConvertionClass.arrayCopy(value, 0, 72));
     fullCardNumber = new FullCardNumber(ConvertionClass.arrayCopy(value, 72, 18));
     cardExpiryDate = new TimeReal(ConvertionClass.arrayCopy(value, 90, 4));
     cardInsertionTime = new TimeReal(ConvertionClass.arrayCopy(value, 94, 4));
     vehicleOdometerValueAtInsertion = new OdometerShort(ConvertionClass.arrayCopy(value, 98, 3));
     cardSlotNumber = new CardSlotNumber(value[101]);
     cardWithdrawalTime = new TimeReal(ConvertionClass.arrayCopy(value, 102, 4));
     vehicleOdometerValueAtWithdrawal = new OdometerShort(ConvertionClass.arrayCopy(value, 106, 3));
     previousVehicleInfo = new PreviousVehicleInfo(ConvertionClass.arrayCopy(value, 109, 19));
     manualInputFlag = new ManualInputFlag(value[128]);
 }
コード例 #12
0
ファイル: VuCardIWRecord.cs プロジェクト: ruslan81/FIS
 public VuCardIWRecord(byte[] value)
 {
     cardHolderName    = new HolderName(ConvertionClass.arrayCopy(value, 0, 72));
     fullCardNumber    = new FullCardNumber(ConvertionClass.arrayCopy(value, 72, 18));
     cardExpiryDate    = new TimeReal(ConvertionClass.arrayCopy(value, 90, 4));
     cardInsertionTime = new TimeReal(ConvertionClass.arrayCopy(value, 94, 4));
     vehicleOdometerValueAtInsertion = new OdometerShort(ConvertionClass.arrayCopy(value, 98, 3));
     cardSlotNumber     = new CardSlotNumber(value[101]);
     cardWithdrawalTime = new TimeReal(ConvertionClass.arrayCopy(value, 102, 4));
     vehicleOdometerValueAtWithdrawal = new OdometerShort(ConvertionClass.arrayCopy(value, 106, 3));
     previousVehicleInfo = new PreviousVehicleInfo(ConvertionClass.arrayCopy(value, 109, 19));
     manualInputFlag     = new ManualInputFlag(value[128]);
 }
コード例 #13
0
ファイル: VuCardIWRecord.cs プロジェクト: ruslan81/FIS
 public VuCardIWRecord()
 {
     cardHolderName    = new HolderName();
     fullCardNumber    = new FullCardNumber();
     cardExpiryDate    = new TimeReal();
     cardInsertionTime = new TimeReal();
     vehicleOdometerValueAtInsertion = new OdometerShort();
     cardSlotNumber     = new CardSlotNumber();
     cardWithdrawalTime = new TimeReal();
     vehicleOdometerValueAtWithdrawal = new OdometerShort();
     previousVehicleInfo = new PreviousVehicleInfo();
     manualInputFlag     = new ManualInputFlag();
 }
コード例 #14
0
 public WorkshopCardCalibrationRecord()
 {
     calibrationPurpose             = new CalibrationPurpose();
     vehicleIdentificationNumber    = new VehicleIdentificationNumber();
     vehicleRegistration            = new VehicleRegistrationIdentification();
     wVehicleCharacteristicConstant = new W_VehicleCharacteristicConstant();
     kConstantOfRecordingEquipment  = new K_ConstantOfRecordingEquipment();
     lTyreCircumference             = new L_TyreCircumference();
     tyreSize           = new TyreSize();
     authorisedSpeed    = new SpeedAuthorised();
     oldOdometerValue   = new OdometerShort();
     newOdometerValue   = new OdometerShort();
     oldTimeValue       = new TimeReal();
     newTimeValue       = new TimeReal();
     vuPartNumber       = new VuPartNumber();
     vuSerialNumber     = new ExtendedSerialNumber();
     sensorSerialNumber = new ExtendedSerialNumber();
 }
コード例 #15
0
 public WorkshopCardCalibrationRecord(byte[] value)
 {
     calibrationPurpose             = new CalibrationPurpose(value[0]);
     vehicleIdentificationNumber    = new VehicleIdentificationNumber(ConvertionClass.arrayCopy(value, 1, 17));
     vehicleRegistration            = new VehicleRegistrationIdentification(ConvertionClass.arrayCopy(value, 18, 15));
     wVehicleCharacteristicConstant = new W_VehicleCharacteristicConstant(ConvertionClass.arrayCopy(value, 33, 2));
     kConstantOfRecordingEquipment  = new K_ConstantOfRecordingEquipment(ConvertionClass.arrayCopy(value, 35, 2));
     lTyreCircumference             = new L_TyreCircumference(ConvertionClass.arrayCopy(value, 37, 2));
     tyreSize           = new TyreSize(ConvertionClass.arrayCopy(value, 39, 15));
     authorisedSpeed    = new SpeedAuthorised(value[54]);
     oldOdometerValue   = new OdometerShort(ConvertionClass.arrayCopy(value, 55, 3));
     newOdometerValue   = new OdometerShort(ConvertionClass.arrayCopy(value, 58, 3));
     oldTimeValue       = new TimeReal(ConvertionClass.arrayCopy(value, 61, 4));
     newTimeValue       = new TimeReal(ConvertionClass.arrayCopy(value, 65, 4));
     vuPartNumber       = new VuPartNumber(ConvertionClass.arrayCopy(value, 69, 16));
     vuSerialNumber     = new ExtendedSerialNumber(ConvertionClass.arrayCopy(value, 85, 8));
     sensorSerialNumber = new ExtendedSerialNumber(ConvertionClass.arrayCopy(value, 93, 8));
 }
コード例 #16
0
 public WorkshopCardCalibrationRecord()
 {
     calibrationPurpose = new CalibrationPurpose();
     vehicleIdentificationNumber = new VehicleIdentificationNumber();
     vehicleRegistration = new VehicleRegistrationIdentification();
     wVehicleCharacteristicConstant = new W_VehicleCharacteristicConstant();
     kConstantOfRecordingEquipment = new K_ConstantOfRecordingEquipment();
     lTyreCircumference = new L_TyreCircumference();
     tyreSize = new TyreSize();
     authorisedSpeed = new SpeedAuthorised();
     oldOdometerValue = new OdometerShort();
     newOdometerValue = new OdometerShort();
     oldTimeValue = new TimeReal();
     newTimeValue = new TimeReal();
     vuPartNumber = new VuPartNumber();
     vuSerialNumber = new ExtendedSerialNumber();
     sensorSerialNumber = new ExtendedSerialNumber();
 }
コード例 #17
0
 public VuCalibrationRecord(byte[] value)
 {
     calibrationPurpose = new CalibrationPurpose(value[0]);
     workshopName = new Name(ConvertionClass.arrayCopy(value, 1, 36));
     workshopAddress = new Address(ConvertionClass.arrayCopy(value, 37, 36));
     workshopCardNumber = new FullCardNumber(ConvertionClass.arrayCopy(value, 73, 18));
     workshopCardExpiryDate = new TimeReal(ConvertionClass.arrayCopy(value, 91, 4));
     vehicleIdentificationNumber = new VehicleIdentificationNumber(ConvertionClass.arrayCopy(value, 95, 17));
     vehicleRegistrationIdentification = new VehicleRegistrationIdentification(ConvertionClass.arrayCopy(value, 112, 15));
     wVehicleCharacteristicConstant = new W_VehicleCharacteristicConstant(ConvertionClass.arrayCopy(value, 127, 2));
     kConstantOfRecordingEquipment = new K_ConstantOfRecordingEquipment(ConvertionClass.arrayCopy(value, 129, 2));
     lTyreCircumference = new L_TyreCircumference(ConvertionClass.arrayCopy(value, 131, 2));
     tyreSize = new TyreSize(ConvertionClass.arrayCopy(value, 133, 15));
     authorisedSpeed = new SpeedAuthorised(value[148]);
     oldOdometerValue = new OdometerShort(ConvertionClass.arrayCopy(value, 149, 3));
     newOdometerValue = new OdometerShort(ConvertionClass.arrayCopy(value, 152, 3));
     oldTimeValue = new TimeReal(ConvertionClass.arrayCopy(value, 155, 4));
     newTimeValue = new TimeReal(ConvertionClass.arrayCopy(value, 159, 4));
     nextCalibrationDate = new TimeReal(ConvertionClass.arrayCopy(value, 163, 4));
 }
コード例 #18
0
 public VuCalibrationRecord()
 {
     calibrationPurpose                = new CalibrationPurpose();
     workshopName                      = new Name();
     workshopAddress                   = new Address();
     workshopCardNumber                = new FullCardNumber();
     workshopCardExpiryDate            = new TimeReal();
     vehicleIdentificationNumber       = new VehicleIdentificationNumber();
     vehicleRegistrationIdentification = new VehicleRegistrationIdentification();
     wVehicleCharacteristicConstant    = new W_VehicleCharacteristicConstant();
     kConstantOfRecordingEquipment     = new K_ConstantOfRecordingEquipment();
     lTyreCircumference                = new L_TyreCircumference();
     tyreSize            = new TyreSize();
     authorisedSpeed     = new SpeedAuthorised();
     oldOdometerValue    = new OdometerShort();
     newOdometerValue    = new OdometerShort();
     oldTimeValue        = new TimeReal();
     newTimeValue        = new TimeReal();
     nextCalibrationDate = new TimeReal();
 }
コード例 #19
0
 public VuCalibrationRecord()
 {
     calibrationPurpose = new CalibrationPurpose();
     workshopName = new Name();
     workshopAddress = new Address();
     workshopCardNumber = new FullCardNumber();
     workshopCardExpiryDate = new TimeReal();
     vehicleIdentificationNumber = new VehicleIdentificationNumber();
     vehicleRegistrationIdentification = new VehicleRegistrationIdentification();
     wVehicleCharacteristicConstant = new W_VehicleCharacteristicConstant();
     kConstantOfRecordingEquipment = new K_ConstantOfRecordingEquipment();
     lTyreCircumference = new L_TyreCircumference();
     tyreSize = new TyreSize();
     authorisedSpeed = new SpeedAuthorised();
     oldOdometerValue = new OdometerShort();
     newOdometerValue = new OdometerShort();
     oldTimeValue = new TimeReal();
     newTimeValue = new TimeReal();
     nextCalibrationDate = new TimeReal();
 }
コード例 #20
0
 public VuCalibrationRecord(byte[] value)
 {
     calibrationPurpose                = new CalibrationPurpose(value[0]);
     workshopName                      = new Name(ConvertionClass.arrayCopy(value, 1, 36));
     workshopAddress                   = new Address(ConvertionClass.arrayCopy(value, 37, 36));
     workshopCardNumber                = new FullCardNumber(ConvertionClass.arrayCopy(value, 73, 18));
     workshopCardExpiryDate            = new TimeReal(ConvertionClass.arrayCopy(value, 91, 4));
     vehicleIdentificationNumber       = new VehicleIdentificationNumber(ConvertionClass.arrayCopy(value, 95, 17));
     vehicleRegistrationIdentification = new VehicleRegistrationIdentification(ConvertionClass.arrayCopy(value, 112, 15));
     wVehicleCharacteristicConstant    = new W_VehicleCharacteristicConstant(ConvertionClass.arrayCopy(value, 127, 2));
     kConstantOfRecordingEquipment     = new K_ConstantOfRecordingEquipment(ConvertionClass.arrayCopy(value, 129, 2));
     lTyreCircumference                = new L_TyreCircumference(ConvertionClass.arrayCopy(value, 131, 2));
     tyreSize            = new TyreSize(ConvertionClass.arrayCopy(value, 133, 15));
     authorisedSpeed     = new SpeedAuthorised(value[148]);
     oldOdometerValue    = new OdometerShort(ConvertionClass.arrayCopy(value, 149, 3));
     newOdometerValue    = new OdometerShort(ConvertionClass.arrayCopy(value, 152, 3));
     oldTimeValue        = new TimeReal(ConvertionClass.arrayCopy(value, 155, 4));
     newTimeValue        = new TimeReal(ConvertionClass.arrayCopy(value, 159, 4));
     nextCalibrationDate = new TimeReal(ConvertionClass.arrayCopy(value, 163, 4));
 }
コード例 #21
0
        public Vehicle_Activities(byte[] value)
        {
            int offset1 = 7;
            downloadedDayDate = new TimeReal(HexBytes.arrayCopy(value, 0, 4));

            odoMeterValueMidnight = new OdometerShort(HexBytes.arrayCopy(value, 4, 3));

            int offset2 = 2 + HexBytes.convertIntoUnsigned2ByteInt(HexBytes.arrayCopy(value, offset1, 2)) * VuCardIWRecord.structureSize;
            vuCardIWData = new VuCardIWData(HexBytes.arrayCopy(value, offset1, offset2));

            int offset3 = 2 + HexBytes.convertIntoUnsigned2ByteInt(HexBytes.arrayCopy(value, offset1 + offset2, 2)) * ActivityChangeInfo.structureSize;
            vuActivityDailyData = new VuActivityDailyData(HexBytes.arrayCopy(value, offset1 + offset2, offset3), downloadedDayDate);

            int offset4 = 1 + HexBytes.convertIntoUnsigned1ByteInt(value[offset1 + offset2 + offset3]) * VuPlaceDailyWorkPeriodRecord.structureSize;
            vuPlaceDailyWorkPeriodData = new VuPlaceDailyWorkPeriodData(HexBytes.arrayCopy(value, offset1 + offset2 + offset3, offset4));

            int offset5 = 2 + HexBytes.convertIntoUnsigned2ByteInt(HexBytes.arrayCopy(value, offset1 + offset2 + offset3 + offset4, 2)) * SpecificConditionRecord.structureSize;
            vuSpecificConditionData = new VuSpecificConditionData(HexBytes.arrayCopy(value, offset1 + offset2 + offset3 + offset4, offset5));

            structureSize = offset1 + offset2 + offset3 + offset4 + offset5;
        }
コード例 #22
0
 public WorkshopCardCalibrationRecord(byte[] value)
 {
     calibrationPurpose = new CalibrationPurpose(value[0]);
     vehicleIdentificationNumber = new VehicleIdentificationNumber(ConvertionClass.arrayCopy(value, 1, 17));
     vehicleRegistration = new VehicleRegistrationIdentification(ConvertionClass.arrayCopy(value, 18, 15));
     wVehicleCharacteristicConstant = new W_VehicleCharacteristicConstant(ConvertionClass.arrayCopy(value, 33, 2));
     kConstantOfRecordingEquipment = new K_ConstantOfRecordingEquipment(ConvertionClass.arrayCopy(value, 35, 2));
     lTyreCircumference = new L_TyreCircumference(ConvertionClass.arrayCopy(value, 37, 2));
     tyreSize = new TyreSize(ConvertionClass.arrayCopy(value, 39, 15));
     authorisedSpeed = new SpeedAuthorised(value[54]);
     oldOdometerValue = new OdometerShort(ConvertionClass.arrayCopy(value, 55, 3));
     newOdometerValue = new OdometerShort(ConvertionClass.arrayCopy(value, 58, 3));
     oldTimeValue = new TimeReal(ConvertionClass.arrayCopy(value, 61, 4));
     newTimeValue = new TimeReal(ConvertionClass.arrayCopy(value, 65, 4));
     vuPartNumber = new VuPartNumber(ConvertionClass.arrayCopy(value, 69, 16));
     vuSerialNumber = new ExtendedSerialNumber(ConvertionClass.arrayCopy(value, 85, 8));
     sensorSerialNumber = new ExtendedSerialNumber(ConvertionClass.arrayCopy(value, 93, 8));
 }