Quintiq file version 2.0
|
#parent: #root
|
Method EditKPIWeight (
|
structured[KPIWeight] selection,
|
internal[GUIComponent] parent
|
) id:Method_ScenarioManager_DialogCreateEditKPIWeight_EditKPIWeight
|
{
|
#keys: '[11660.0.1292145690]'
|
Body:
|
[*
|
// Edit KPI weight
|
isbatchedit := selection.Size() > 1;
|
Dialog.EnableDisableComponents( isbatchedit );
|
|
data := shadow( selection.Element( 0 ) );
|
this.Data( data );
|
|
result := this.DoModal( parent );
|
|
if( result > 0 )
|
{
|
if( isbatchedit )
|
{
|
KPIWeight::Update( selection,
|
CheckBoxBatchEditWeight.Checked(),
|
data.Weight(),
|
CheckBoxBatchEditLevel.Checked(),
|
data.Level() );
|
}
|
else
|
{
|
data.Commit();
|
}
|
|
}
|
*]
|
}
|