From 5af40de1e92cc06c775d422181f38e3d6a3c8aba Mon Sep 17 00:00:00 2001 From: "harald.martini@student.tugraz.at" <harald.martini@student.tugraz.at> Date: Mon, 28 Jun 2021 16:23:51 +0200 Subject: [PATCH] Replaced ToMinSignificantDigits with ToXMLFormat in XMLPrimaryBusVehicleReports --- .../XMLPrimaryBusVehicleReport.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/XMLPrimaryBusVehicleReport.cs b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/XMLPrimaryBusVehicleReport.cs index ff17c7e086..a016a410dd 100644 --- a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/XMLPrimaryBusVehicleReport.cs +++ b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/XMLPrimaryBusVehicleReport.cs @@ -342,15 +342,15 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF private XElement GetPneumaticSystem(IPneumaticSupplyDeclarationData supply, IPneumaticConsumersDeclarationData consumer) { return new XElement(tns + XMLNames.BusAux_PneumaticSystem, - new XElement(tns + XMLNames.Bus_SizeOfAirSupply, supply.CompressorSize), - new XElement(tns + XMLNames.CompressorDrive, supply.CompressorDrive.GetLabel()), - new XElement(tns + XMLNames.Vehicle_Clutch, supply.Clutch), - new XElement(tns + XMLNames.Bus_CompressorRatio, supply.Ratio.ToMinSignificantDigits(3,3)), - new XElement(tns + XMLNames.Bus_SmartCompressionSystem, supply.SmartAirCompression), - new XElement(tns + XMLNames.Bus_SmartRegenerationSystem, supply.SmartRegeneration), - new XElement(tns + XMLNames.Bus_AirsuspensionControl, GetXMLAirsuspensionControl(consumer.AirsuspensionControl)), - new XElement(tns + XMLNames.BusAux_PneumaticSystem_SCRReagentDosing, consumer.AdBlueDosing == ConsumerTechnology.Pneumatically) - ); + new XElement(tns + XMLNames.Bus_SizeOfAirSupply, supply.CompressorSize), + new XElement(tns + XMLNames.CompressorDrive, supply.CompressorDrive.GetLabel()), + new XElement(tns + XMLNames.Vehicle_Clutch, supply.Clutch), + new XElement(tns + XMLNames.Bus_CompressorRatio, supply.Ratio.ToXMLFormat(3)), + new XElement(tns + XMLNames.Bus_SmartCompressionSystem, supply.SmartAirCompression), + new XElement(tns + XMLNames.Bus_SmartRegenerationSystem, supply.SmartRegeneration), + new XElement(tns + XMLNames.Bus_AirsuspensionControl, GetXMLAirsuspensionControl(consumer.AirsuspensionControl)), + new XElement(tns + XMLNames.BusAux_PneumaticSystem_SCRReagentDosing, consumer.AdBlueDosing == ConsumerTechnology.Pneumatically) + ); } private string GetXMLAirsuspensionControl(ConsumerTechnology airsuspensionControl) -- GitLab