Quintiq file version 2.0
|
#parent: #root
|
Method Edit (
|
internal[GUIComponent] parent,
|
ScenarioManager owner
|
) id:Method_DialogEditScenarioComparisonViews_Edit
|
{
|
#keys: '[110880.7.620637933]'
|
Body:
|
[*
|
// Edit sanity check group
|
|
traverse( owner, ScenarioComparisonView, sc )
|
{
|
if( sc.Name() = ScenarioComparisonView::GetSDName() )
|
{
|
SelectionSD.BoundValue( sc.View() );
|
}
|
|
else if( sc.Name() = ScenarioComparisonView::GetUPName() )
|
{
|
SelectionUP.BoundValue( sc.View() );
|
}
|
|
else if( sc.Name() = ScenarioComparisonView::GetPISPIPName() )
|
{
|
SelectionPISPIP.BoundValue( sc.View() );
|
}
|
|
else if( sc.Name() = ScenarioComparisonView::GetNSName() )
|
{
|
SelectionNS.BoundValue( sc.View() );
|
}
|
|
else if( sc.Name() = ScenarioComparisonView::GetTripName() )
|
{
|
SelectionTrip.BoundValue( sc.View() );
|
}
|
|
else if( sc.Name() = ScenarioComparisonView::GetCostName() )
|
{
|
SelectionCost.BoundValue( sc.View() );
|
}
|
|
}
|
|
result := this.DoModal( parent );
|
|
if( result > 0 )
|
{
|
// when adding new pre-configured comparison views in the future, just extend this list with new pairs.
|
nameandviews := ScenarioComparisonView::GetSDName() + ':' + SelectionSD.BoundValue() + ';'
|
+ ScenarioComparisonView::GetUPName() + ':' + SelectionUP.BoundValue() + ';'
|
+ ScenarioComparisonView::GetPISPIPName() + ':' + SelectionPISPIP.BoundValue() + ';'
|
+ ScenarioComparisonView::GetNSName() + ':' + SelectionNS.BoundValue() + ';'
|
+ ScenarioComparisonView::GetTripName() + ':' + SelectionTrip.BoundValue() + ';'
|
+ ScenarioComparisonView::GetCostName() + ':' + SelectionCost.BoundValue() + ';';
|
|
|
ScenarioComparisonView::Update( owner, nameandviews );
|
}
|
*]
|
}
|