void FillBackSideTextByDrawText(Graphics gr) { const int textMainMargin = 468; const int textMargin = textMainMargin + 41; const int textWidth = 450; GraphicsHelper.DrawText(gr, "9.", textMainMargin, 38); GraphicsHelper.DrawText(gr, YearOfManufacture.ToUpper(), textMargin, 38, textWidth); GraphicsHelper.DrawText(gr, "10.", textMainMargin, 88); GraphicsHelper.DrawText(gr, Type.ToUpper(), textMargin, 88, textWidth); GraphicsHelper.DrawText(gr, "11.", textMainMargin, 138); GraphicsHelper.DrawText(gr, VehicleIdentificationNumber.ToUpper(), textMargin, 138, textWidth); GraphicsHelper.DrawText(gr, "12.", textMainMargin, 190); GraphicsHelper.DrawText(gr, GrossWeight.ToString("n2"), textMargin, 190, textWidth); GraphicsHelper.DrawText(gr, "13.", textMainMargin, 242); GraphicsHelper.DrawText(gr, CurbWeight.ToString("n2"), textMargin, 242, textWidth); GraphicsHelper.DrawText(gr, "14.", textMainMargin, 293); GraphicsHelper.DrawText(gr, EngineNumber.ToUpper(), textMargin, 293, textWidth); GraphicsHelper.DrawText(gr, "15.", textMainMargin, 345); GraphicsHelper.DrawText(gr, EnginePower.ToUpper(), textMargin, 345, textWidth); GraphicsHelper.DrawText(gr, "16.", textMainMargin, 395); GraphicsHelper.DrawText(gr, FuelType.ToUpper(), textMargin, 395, textWidth); GraphicsHelper.DrawText(gr, "17.", textMainMargin, 448); GraphicsHelper.DrawText(gr, NumberOfSeats.ToSafeString(), textMargin, 448, textWidth); GraphicsHelper.DrawText(gr, "18.", textMainMargin, 499); GraphicsHelper.DrawText(gr, NumberOfStandees.ToSafeString(), textMargin, 499, textWidth); GraphicsHelper.DrawText(gr, "19.", textMainMargin, 549); GraphicsHelper.DrawText(gr, SpecialMarks.ToUpper(), textMargin, 549, textWidth); }
public VehicleIdentificationNumber BuildVehicleIdentificationNumberFromString(string vehicleIdentificationNumber) { VehicleIdentificationNumber newVin = null; var normalizedVin = vehicleIdentificationNumber.ToUpperInvariant(); //TODO: Evaluate VIN and determine the Decoder Implementation needed. For now, just return the default Impl. var decoder = new VinNumberDecoder(new AutoMakerRepository()); newVin = new VehicleIdentificationNumber(normalizedVin, decoder); return newVin; }
public VehicleIdentificationNumber BuildVehicleIdentificationNumberFromString(string vehicleIdentificationNumber) { VehicleIdentificationNumber newVin = null; var normalizedVin = vehicleIdentificationNumber.ToUpperInvariant(); //TODO: Evaluate VIN and determine the Decoder Implementation needed. For now, just return the default Impl. var decoder = new VinNumberDecoder(new AutoMakerRepository()); newVin = new VehicleIdentificationNumber(normalizedVin, decoder); return(newVin); }
public Vehicle_Overview() { memberStateCertificate = new MemberStateCertificate(); vuCertificate = new VuCertificate(); vehicleIdentificationNumber = new VehicleIdentificationNumber(); vehicleRegistrationIdentification = new VehicleRegistrationIdentification(); currentDateTime = new CurrentDateTime(); vuDownloadablePeriod = new VuDownloadablePeriod(); cardSlotsStatus = new CardSlotsStatus(); vuDownloadActivityData = new VuDownloadActivityData(); vuCompanyLocksData = new VuCompanyLocksData(); vuControlActivityData = new VuControlActivityData(); }
public override int GetHashCode() { unchecked { var hashCode = BenchTestCarriedOutAnalogue.GetHashCode(); hashCode = (hashCode * 397) ^ CalibrationCertificateCompleted.GetHashCode(); hashCode = (hashCode * 397) ^ ClockTestCompleted.GetHashCode(); hashCode = (hashCode * 397) ^ (Comments != null ? Comments.GetHashCode() : 0); hashCode = (hashCode * 397) ^ DateOfAudit.GetHashCode(); hashCode = (hashCode * 397) ^ DistanceCheckCarriedOut.GetHashCode(); hashCode = (hashCode * 397) ^ EventsFaultsReadCleared.GetHashCode(); hashCode = (hashCode * 397) ^ (FortyKmTest != null ? FortyKmTest.GetHashCode() : 0); hashCode = (hashCode * 397) ^ FunctionalBenchTestDigital.GetHashCode(); hashCode = (hashCode * 397) ^ KFactor.GetHashCode(); hashCode = (hashCode * 397) ^ LFactor.GetHashCode(); hashCode = (hashCode * 397) ^ Passed.GetHashCode(); hashCode = (hashCode * 397) ^ (QCManagerName != null ? QCManagerName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ ReferenceCableCheckCompleted.GetHashCode(); hashCode = (hashCode * 397) ^ (SixtyKmTest != null ? SixtyKmTest.GetHashCode() : 0); hashCode = (hashCode * 397) ^ SpeedForSpeedCheckCompleted.GetHashCode(); hashCode = (hashCode * 397) ^ SystemSealedInAccordance.GetHashCode(); hashCode = (hashCode * 397) ^ (TachoCentreCity != null ? TachoCentreCity.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachoCentreLine1 != null ? TachoCentreLine1.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachoCentreLine2 != null ? TachoCentreLine2.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachoCentreLine3 != null ? TachoCentreLine3.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachoCentrePostCode != null ? TachoCentrePostCode.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachographMake != null ? TachographMake.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachographModel != null ? TachographModel.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachographSerialNumber != null ? TachographSerialNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TachoManagerName != null ? TachoManagerName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ TechnicalDataPrintoutsCreated.GetHashCode(); hashCode = (hashCode * 397) ^ (TechnicianName != null ? TechnicianName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ TestChartsCompleted.GetHashCode(); hashCode = (hashCode * 397) ^ ThreeBasicChecksCompleted.GetHashCode(); hashCode = (hashCode * 397) ^ (TypeOfTachographCheck != null ? TypeOfTachographCheck.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (VehicleIdentificationNumber != null ? VehicleIdentificationNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (VehicleMake != null ? VehicleMake.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (VehicleRegistrationNumber != null ? VehicleRegistrationNumber.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (VehicleType != null ? VehicleType.GetHashCode() : 0); hashCode = (hashCode * 397) ^ WFactor.GetHashCode(); return(hashCode); } }
public Vehicle_Overview(byte[] value) { int offset1 = 194 + 194 + 17 + 1 + 14 + 4 + 4 + 4 + 1 + 4 + 18 + 36; memberStateCertificate = new MemberStateCertificate(HexBytes.arrayCopy(value, 0, 194)); vuCertificate = new VuCertificate(HexBytes.arrayCopy(value, 194, 194)); vehicleIdentificationNumber = new VehicleIdentificationNumber(HexBytes.arrayCopy(value, 388, 17)); vehicleRegistrationIdentification = new VehicleRegistrationIdentification(HexBytes.arrayCopy(value, 405, 15)); currentDateTime = new CurrentDateTime(HexBytes.arrayCopy(value, 420, 4)); vuDownloadablePeriod = new VuDownloadablePeriod(HexBytes.arrayCopy(value, 424, 8)); cardSlotsStatus = new CardSlotsStatus(value[432]); vuDownloadActivityData = new VuDownloadActivityData(HexBytes.arrayCopy(value, 433, 58)); int offset2 = 1 + HexBytes.convertIntoUnsigned1ByteInt(value[offset1]) * VuCompanyLocksRecord.structureSize; vuCompanyLocksData = new VuCompanyLocksData(HexBytes.arrayCopy(value, offset1, offset2)); int offset3 = 1 + HexBytes.convertIntoUnsigned1ByteInt(value[offset1 + offset2]) * VuControlActivityRecord.structureSize; vuControlActivityData = new VuControlActivityData(HexBytes.arrayCopy(value, offset1 + offset2, offset3)); size = offset1 + offset2 + offset3; }