diff --git a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/CustomerInformationFile/CustomerInformationFile_0_9/CIFWriter/ComponentGroupWriters.cs b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/CustomerInformationFile/CustomerInformationFile_0_9/CIFWriter/ComponentGroupWriters.cs index 555c08910f22a3ccb30b74b451aa6c9a177e8e28..473ec5329cb93c2647dc324c6dfeb73377474792 100644 --- a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/CustomerInformationFile/CustomerInformationFile_0_9/CIFWriter/ComponentGroupWriters.cs +++ b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/CustomerInformationFile/CustomerInformationFile_0_9/CIFWriter/ComponentGroupWriters.cs @@ -150,11 +150,14 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.CustomerInformation public override IList<XElement> GetElements(IDeclarationInputDataProvider inputData) { - return new List<XElement>() { - new XElement(_cif + "SteeringPumpTechnology", - inputData.JobInputData.Vehicle.Components.AuxiliaryInputData.Auxiliaries - .Single(aux => aux.Type == AuxiliaryType.SteeringPump).Technology.Join()) - }; + return inputData.JobInputData.Vehicle.Components.AuxiliaryInputData.Auxiliaries + .Single(aux => aux.Type == AuxiliaryType.SteeringPump).Technology.Select(x => + new XElement(_cif + "SteeringPumpTechnology", x)).ToList(); + //return new List<XElement>() { + // new XElement(_cif + "SteeringPumpTechnology", + // inputData.JobInputData.Vehicle.Components.AuxiliaryInputData.Auxiliaries + // .Single(aux => aux.Type == AuxiliaryType.SteeringPump).Technology.Join()) + //}; } #endregion diff --git a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/AbstractManufacturerReport.cs b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/AbstractManufacturerReport.cs index c7aa30ff77af0802002469264d12914ffeed5792..f3d7d6acf8a7e4a1e579dfbadb46a9b79cd0082c 100644 --- a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/AbstractManufacturerReport.cs +++ b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/AbstractManufacturerReport.cs @@ -116,10 +116,6 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.ManufacturerReport. Vehicle.XPathSelectElement($"//*[local-name()='{XMLNames.VehicleGroupCO2}']").Value = DeclarationData .GetVehicleGroupCO2StandardsGroup(Input).ToXMLFormat(); - - - - var stream = new MemoryStream(); var writer = new StreamWriter(stream); diff --git a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/ManufacturerReportXMLTypeWriter/Components/MRFBusAuxiliaryTypes.cs b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/ManufacturerReportXMLTypeWriter/Components/MRFBusAuxiliaryTypes.cs index 051f4c84c1ecc0b0a19d32e8927131d8c05d5513..8d9e2e3a03841595a485515cfba88319460c940b 100644 --- a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/ManufacturerReportXMLTypeWriter/Components/MRFBusAuxiliaryTypes.cs +++ b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/ManufacturerReportXMLTypeWriter/Components/MRFBusAuxiliaryTypes.cs @@ -37,7 +37,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.ManufacturerReport. return new XElement(_mrf + XMLNames.Component_Auxiliaries, new XElement(_mrf + "CoolingFanTechnology", auxData.FanTechnology), - new XElement(_mrf + "SteeringPumpTechnology", string.Join("\n", steeringPumpData)), + steeringPumpData.Select(x => new XElement(_mrf + "SteeringPumpTechnology", x)), _mrfFactory.GetPrimaryBusElectricSystemType_Conventional_HEV().GetElement(auxData), @@ -62,7 +62,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.ManufacturerReport. return new XElement(_mrf + XMLNames.Component_Auxiliaries, new XElement(_mrf + "CoolingFanTechnology", auxData.FanTechnology), - new XElement(_mrf + "SteeringPumpTechnology", string.Join("\n", steeringPumpData)), + steeringPumpData.Select(x => new XElement(_mrf + "SteeringPumpTechnology", x)), _mrfFactory.GetPrimaryBusElectricSystemType_Conventional_HEV().GetElement(auxData), _mrfFactory.GetPrimaryBusPneumaticSystemType_Conventional_HEV_Px().GetElement(auxData), _mrfFactory.GetPrimaryBusHVACSystemType_Conventional_HEV().GetElement(auxData) @@ -84,7 +84,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.ManufacturerReport. return new XElement(_mrf + XMLNames.Component_Auxiliaries, new XElement(_mrf + "CoolingFanTechnology", auxData.FanTechnology), - new XElement(_mrf + "SteeringPumpTechnology", string.Join("\n", steeringPumpData)), + steeringPumpData.Select(x => new XElement(_mrf + "SteeringPumpTechnology", x)), _mrfFactory.GetPrimaryBusElectricSystemType_Conventional_HEV().GetElement(auxData), _mrfFactory.GetPrimaryBusPneumaticSystemType_HEV_S().GetElement(auxData), @@ -106,7 +106,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.ManufacturerReport. var steeringPumpData = auxData.SteeringPumpTechnology; return new XElement(_mrf + XMLNames.Component_Auxiliaries, - new XElement(_mrf + "SteeringPumpTechnology", string.Join("\n", steeringPumpData)), + steeringPumpData.Select(x => new XElement(_mrf + "SteeringPumpTechnology", x)), _mrfFactory.GetPrimaryBusElectricSystemType_PEV().GetElement(auxData), _mrfFactory.GetPrimaryBusPneumaticSystemType_PEV_IEPC().GetElement(auxData) //_mrfFactory.GetPrimaryBusHVACSystemType_PEV().GetXmlType(auxData) diff --git a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/ManufacturerReportXMLTypeWriter/Components/MRFLorryAuxiliaryTypes.cs b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/ManufacturerReportXMLTypeWriter/Components/MRFLorryAuxiliaryTypes.cs index 110932396dfc5dd988355bc201666869b6df0ef7..9bd0d47114088a3df56ae4e189773a5651be3fb0 100644 --- a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/ManufacturerReportXMLTypeWriter/Components/MRFLorryAuxiliaryTypes.cs +++ b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/ManufacturerReport/ManufacturerReport_0_9/ManufacturerReportXMLTypeWriter/Components/MRFLorryAuxiliaryTypes.cs @@ -21,10 +21,9 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.ManufacturerReport. var pneumaticSystemData = auxData.Auxiliaries.Single(aux => aux.Type == AuxiliaryType.PneumaticSystem); return new XElement(_mrf + XMLNames.Component_Auxiliaries, - new XElement(_mrf + "CoolingFanTechnology", - string.Join("\n", fanData.Technology)), - new XElement(_mrf + "SteeringPumpTechnology", string.Join("\n", steeringPumpData.Technology)), - new XElement(_mrf + XMLNames.BusAux_PneumaticSystem, new XElement(_mrf + XMLNames.Auxiliaries_Auxiliary_Technology, string.Join("\n", pneumaticSystemData.Technology))), + new XElement(_mrf + "CoolingFanTechnology", fanData.Technology.Single()), + steeringPumpData.Technology.Select(x => new XElement(_mrf + "SteeringPumpTechnology", x)), + new XElement(_mrf + XMLNames.BusAux_PneumaticSystem, new XElement(_mrf + XMLNames.Auxiliaries_Auxiliary_Technology, pneumaticSystemData.Technology.Single())), new XElement(_mrf + XMLNames.BusAux_ElectricSystem, new XElement(_mrf + "LEDHeadLights", electricSystemData.Technology.Contains("Standard technology - LED headlights, all")))); } } @@ -50,8 +49,8 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.ManufacturerReport. var pneumaticSystemData = auxData.Auxiliaries.Single(aux => aux.Type == AuxiliaryType.PneumaticSystem); return new XElement(_mrf + XMLNames.Component_Auxiliaries, - new XElement(_mrf + "SteeringPumpTechnology", string.Join("\n", steeringPumpData.Technology)), - new XElement(_mrf + XMLNames.BusAux_PneumaticSystem, new XElement(_mrf + XMLNames.Auxiliaries_Auxiliary_Technology, string.Join("\n", pneumaticSystemData.Technology))), + steeringPumpData.Technology.Select(x => new XElement(_mrf + "SteeringPumpTechnology", x)), + new XElement(_mrf + XMLNames.BusAux_PneumaticSystem, new XElement(_mrf + XMLNames.Auxiliaries_Auxiliary_Technology, pneumaticSystemData.Technology.Single())), new XElement(_mrf + XMLNames.BusAux_ElectricSystem, new XElement(_mrf + "LEDHeadLights", electricSystemData.Technology.Contains("Standard technology - LED headlights, all")))); } diff --git a/VectoCore/VectoCore/Resources/XSD/VectoOutputCustomer.0.9.xsd b/VectoCore/VectoCore/Resources/XSD/VectoOutputCustomer.0.9.xsd index 027ed8126cfa67fea6dee32bff520379250b78ab..933fe88aa62e3e4fd8efbb58cfe8515df2a4df8c 100644 --- a/VectoCore/VectoCore/Resources/XSD/VectoOutputCustomer.0.9.xsd +++ b/VectoCore/VectoCore/Resources/XSD/VectoOutputCustomer.0.9.xsd @@ -1217,7 +1217,7 @@ </xs:group> <xs:group name="LorryAuxGroup"> <xs:sequence> - <xs:element name="SteeringPumpTechnology" type="v2.4:AuxSPTechnologyLorryType"/> + <xs:element name="SteeringPumpTechnology" type="v2.4:AuxSPTechnologyLorryType" maxOccurs="unbounded"/> </xs:sequence> </xs:group> <xs:group name="ConventionalCompletedBusAuxGroup"> diff --git a/VectoCore/VectoCore/Resources/XSD/VectoOutputManufacturer.0.9.xsd b/VectoCore/VectoCore/Resources/XSD/VectoOutputManufacturer.0.9.xsd index 4f494c932fc54e6dbf3c9c1e890eea99d74e73cb..b89434e6ab8958db6dc21d05cb7bc2cdd59eb5d0 100644 --- a/VectoCore/VectoCore/Resources/XSD/VectoOutputManufacturer.0.9.xsd +++ b/VectoCore/VectoCore/Resources/XSD/VectoOutputManufacturer.0.9.xsd @@ -1475,7 +1475,7 @@ <xs:complexType name="ConventionalLorryAuxOutputType"> <xs:sequence> <xs:element name="CoolingFanTechnology" type="v2.4:AuxFanTechnologyLorryType"/> - <xs:element name="SteeringPumpTechnology" type="v2.4:AuxSPTechnologyLorryType"/> + <xs:element name="SteeringPumpTechnology" type="v2.4:AuxSPTechnologyLorryType" maxOccurs="unbounded"/> <xs:element name="PneumaticSystem" type="mrf:PneumaticSystemType_1"/> <xs:element name="ElectricSystem" type="mrf:LorryElectricSystemType"/> </xs:sequence> @@ -1483,14 +1483,14 @@ <xs:complexType name="HEVLorryAuxOutputType"> <xs:sequence> <xs:element name="CoolingFanTechnology" type="v2.4:AuxFanTechnologyLorryType"/> - <xs:element name="SteeringPumpTechnology" type="v2.4:AuxSPTechnologyLorryType"/> + <xs:element name="SteeringPumpTechnology" type="v2.4:AuxSPTechnologyLorryType" maxOccurs="unbounded"/> <xs:element name="PneumaticSystem" type="mrf:PneumaticSystemType_1"/> <xs:element name="ElectricSystem" type="mrf:LorryElectricSystemType"/> </xs:sequence> </xs:complexType> <xs:complexType name="PEVLorryAuxOutputType"> <xs:sequence> - <xs:element name="SteeringPumpTechnology" type="v2.4:AuxSPTechnologyLorryType"/> + <xs:element name="SteeringPumpTechnology" type="v2.4:AuxSPTechnologyLorryType" maxOccurs="unbounded"/> <xs:element name="PneumaticSystem" type="mrf:PneumaticSystemType_1"/> <xs:element name="ElectricSystem" type="mrf:LorryElectricSystemType"/> </xs:sequence> @@ -1498,7 +1498,7 @@ <xs:complexType name="Conventional_HEV_Px_PrimaryBusAuxOutputType"> <xs:sequence> <xs:element name="CoolingFanTechnology" type="v2.4:AuxFanTechnologyPrimaryBusType"/> - <xs:element name="SteeringPumpTechnology" type="v2.4:AuxSPTechnologyPrimaryBusType"/> + <xs:element name="SteeringPumpTechnology" type="v2.4:AuxSPTechnologyPrimaryBusType" maxOccurs="unbounded"/> <xs:element name="ElectricSystem" type="mrf:PrimaryBusElectricSystemType_Conventional_HEV"/> <xs:element name="PneumaticSystem" type="mrf:PneumaticSystemType_PrimaryBus_Conventional_HEV_P"/> <xs:element name="HVACSystem" type="mrf:HVACSystemType"/> @@ -1507,7 +1507,7 @@ <xs:complexType name="HEVPrimaryBusAuxOutputType"> <xs:sequence> <xs:element name="CoolingFanTechnology" type="v2.4:AuxFanTechnologyPrimaryBusType"/> - <xs:element name="SteeringPumpTechnology" type="v2.4:AuxSPTechnologyPrimaryBusType"/> + <xs:element name="SteeringPumpTechnology" type="v2.4:AuxSPTechnologyPrimaryBusType" maxOccurs="unbounded"/> <xs:element name="ElectricSystem" type="mrf:PrimaryBusElectricSystemType_Conventional_HEV"/> <xs:element name="PneumaticSystem" type="mrf:PneumaticSystemType_PrimaryBus_HEV_S"/> <xs:element name="HVACSystem"> @@ -1519,7 +1519,7 @@ </xs:complexType> <xs:complexType name="PEVPrimaryBusAuxOutputType"> <xs:sequence> - <xs:element name="SteeringPumpTechnology" type="v2.4:AuxSPTechnologyPrimaryBusType"/> + <xs:element name="SteeringPumpTechnology" type="v2.4:AuxSPTechnologyPrimaryBusType" maxOccurs="unbounded"/> <xs:element name="ElectricSystem" type="mrf:PrimaryBusElectricSystemType_PEV"/> <xs:element name="PneumaticSystem" type="mrf:PneumaticSystemType_PrimaryBus_PEV_IEPC"/> </xs:sequence>