Add localized maintenances description
This commit is contained in:
@@ -206,14 +206,16 @@ namespace Step.Config
|
||||
new MaintenanceConfigModel()
|
||||
{
|
||||
Id = Convert.ToInt32(x.Element("id").Value),
|
||||
LocalizedNames = x.Element("localizedNames").Elements().ToDictionary( // Read names list
|
||||
LocalizedName = x.Element("localizedName").Elements().ToDictionary( // Read localized names
|
||||
y => y.Attribute("langKey").Value, y => y.Value
|
||||
),
|
||||
Intervall = TimeSpan.FromMinutes(Convert.ToDouble(x.Element("interval").Value)),
|
||||
Deadline = DateTime.Parse(x.Element("deadline").Value),
|
||||
Type = x.Element("type").Value,
|
||||
CouterId = Convert.ToInt32(x.Element("counterId").Value),
|
||||
Description = x.Element("description").Value,
|
||||
LocalizedDescription = x.Element("localizedDescription").Elements().ToDictionary( // Read localization of description
|
||||
y => y.Attribute("langKey").Value, y => y.Value
|
||||
),
|
||||
UnitOfMeasure = x.Element("unitOfMeasure").Value
|
||||
})
|
||||
.ToList();
|
||||
|
||||
Reference in New Issue
Block a user