Quintiq file version 2.0
|
#parent: #root
|
StaticMethod ValidateInput (
|
output String feedback_o,
|
Real maxkpivalue,
|
Real minkpivalue,
|
Real mediumthreshold,
|
Real highthreshold
|
) const declarative remote as Boolean
|
{
|
Description: 'Validate KPI setting editing'
|
TextBody:
|
[*
|
feedback_o := '';
|
|
if( minkpivalue > maxkpivalue )
|
{
|
feedback_o := Translations::ScenarioManager_KPISetting_InvalidMinMax( maxkpivalue, minkpivalue );
|
}
|
else if( mediumthreshold < minkpivalue )
|
{
|
feedback_o := Translations::ScenarioManager_KPISetting_Invalid_MediumThresholdSmallerThanMin( mediumthreshold, minkpivalue );
|
}
|
else if( mediumthreshold > highthreshold )
|
{
|
feedback_o := Translations::ScenarioManager_KPISetting_Invalid_MediumThresholdLargerThanHighThreshold( mediumthreshold, highthreshold );
|
}
|
else if( highthreshold > maxkpivalue )
|
{
|
feedback_o := Translations::ScenarioManager_KPISetting_Invalid_HighThresholdLargerThanMax( highthreshold, maxkpivalue );
|
}
|
|
return feedback_o = '';
|
*]
|
}
|