Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 05e07690 authored by Raphael Kalchgruber's avatar Raphael Kalchgruber
Browse files

Transmisson Types set for correct jobs type

parent d5370e71
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,7 @@ Public Class GearboxForm
Case VectoSimulationJobType.ConventionalVehicle
CbGStype.DataSource = [Enum].GetValues(GetType(GearboxType)) _
.Cast(Of GearboxType)() _
.Where(Function(type) Not type = GearboxType.APTN And (type.ManualTransmission() OrElse type = GearboxType.ATSerial)) _
.Where(Function(type) Not type = GearboxType.APTN And (type.ManualTransmission() OrElse type = GearboxType.ATSerial OrElse type = GearboxType.ATPowerSplit)) _
.Select(Function(type) New With {Key .Value = type, .Label = type.GetLabel()}).ToList()
Case VectoSimulationJobType.IHPC
......@@ -113,10 +113,22 @@ Public Class GearboxForm
.Where(Function(type) type = GearboxType.IEPC) _
.Select(Function(type) New With {Key .Value = type, .Label = type.GetLabel()}).ToList()
Case VectoSimulationJobType.ParallelHybridVehicle, VectoSimulationJobType.SerialHybridVehicle
Case VectoSimulationJobType.ParallelHybridVehicle
CbGStype.DataSource = [Enum].GetValues(GetType(GearboxType)) _
.Cast(Of GearboxType)() _
.Where(Function(type) type.ManualTransmission() OrElse type.AutomaticTransmission() and not type = GearboxType.IHPC ) _
.Where(Function(type) type = GearboxType.AMT OrElse (type.AutomaticTransmission() and not type = GearboxType.IHPC And Not type = GearboxType.APTN)) _
.Select(Function(type) New With {Key .Value = type, .Label = type.GetLabel()}).ToList()
Case VectoSimulationJobType.SerialHybridVehicle
CbGStype.DataSource = [Enum].GetValues(GetType(GearboxType)) _
.Cast(Of GearboxType)() _
.Where(Function(type) type = GearboxType.AMT OrElse type.AutomaticTransmission() and not type = GearboxType.IHPC ) _
.Select(Function(type) New With {Key .Value = type, .Label = type.GetLabel()}).ToList()
Case VectoSimulationJobType.BatteryElectricVehicle
CbGStype.DataSource = [Enum].GetValues(GetType(GearboxType)) _
.Cast(Of GearboxType)() _
.Where(Function(type) type = GearboxType.AMT OrElse type.AutomaticTransmission() and not type = GearboxType.IHPC ) _
.Select(Function(type) New With {Key .Value = type, .Label = type.GetLabel()}).ToList()
Case Else
......
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