Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 8a78b457 authored by Harald Martini's avatar Harald Martini
Browse files

Updated XMLExemptedPrimaryBusVehicleReport

parent a8b86ba6
No related branches found
No related tags found
No related merge requests found
......@@ -2337,6 +2337,24 @@ namespace TUGraz.VectoCommon.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to SumNetPower.
/// </summary>
public static string Exempted_SumNetPower {
get {
return ResourceManager.GetString("Exempted_SumNetPower", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Technology.
/// </summary>
public static string Exempted_Technology {
get {
return ResourceManager.GetString("Exempted_Technology", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Resource.
/// </summary>
......
......@@ -1572,4 +1572,10 @@
<data name="BusAux_Technology" xml:space="preserve">
<value>Technology</value>
</data>
<data name="Exempted_SumNetPower" xml:space="preserve">
<value>SumNetPower</value>
</data>
<data name="Exempted_Technology" xml:space="preserve">
<value>Technology</value>
</data>
</root>
\ No newline at end of file
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Xml;
using System.Xml.Linq;
using TUGraz.VectoCommon.Hashing;
using TUGraz.VectoCommon.Models;
......@@ -17,11 +19,14 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF
{
VehiclePart.Add(
new XAttribute(xsi + "type", "VehicleExemptedPrimaryBusType"),
new XElement(tns + XMLNames.Component_Manufacturer, modelData.VehicleData.Manufacturer),
new XElement(tns + XMLNames.Component_ManufacturerAddress, modelData.VehicleData.ManufacturerAddress),
new XElement(tns + XMLNames.ManufacturerPrimaryVehicle, modelData.VehicleData.Manufacturer),
new XElement(tns + XMLNames.ManufacturerAddressPrimaryVehicle,
modelData.VehicleData.ManufacturerAddress),
new XElement(tns + XMLNames.Component_Model, modelData.VehicleData.ModelName),
new XElement(tns + XMLNames.Vehicle_VIN, modelData.VehicleData.VIN),
new XElement(tns + "LegislativeCategory", modelData.VehicleData.LegislativeClass.ToXMLFormat()),
new XElement(tns + XMLNames.Component_Date,
XmlConvert.ToString(DateTime.Now, XmlDateTimeSerializationMode.Utc)),
new XElement(tns + XMLNames.Bus_LegislativeCategory, modelData.VehicleData.LegislativeClass.ToXMLFormat()),
new XElement(tns + XMLNames.Bus_ChassisConfiguration, "Bus"),
new XElement(tns + XMLNames.Vehicle_AxleConfiguration, modelData.VehicleData.AxleConfiguration.GetName()),
new XElement(tns + XMLNames.Vehicle_Articulated, modelData.VehicleData.InputData.Articulated),
......@@ -31,8 +36,8 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF
//new XElement(
// tns + XMLNames.Vehicle_CurbMassChassis, XMLHelper.ValueAsUnit(modelData.VehicleData.CurbMass, XMLNames.Unit_kg)),
new XElement(tns + XMLNames.Vehicle_ZeroEmissionVehicle, modelData.VehicleData.ZeroEmissionVehicle),
new XElement(tns + "SumNetPower", XMLHelper.ValueAsUnit(modelData.VehicleData.MaxNetPower1, XMLNames.Unit_W)),
new XElement(tns + "Technology", modelData.VehicleData.InputData.ExemptedTechnology)
new XElement(tns + XMLNames.Exempted_SumNetPower, XMLHelper.ValueAsUnit(modelData.VehicleData.MaxNetPower1, XMLNames.Unit_W)),
new XElement(tns + XMLNames.Exempted_Technology, modelData.VehicleData.InputData.ExemptedTechnology)
);
Results.Add(new XElement(tns + XMLNames.Report_ExemptedVehicle));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment