Quintiq file version 2.0
|
#parent: #root
|
Method ChangeRadioButtonUpstreamDownstream (
|
String boundvalue
|
) id:Method_DialogSmartPlan_ChangeRadioButtonUpstreamDownstream
|
{
|
#keys: '[137862.0.58412154]'
|
Body:
|
[*
|
// Enable/Disable the one step upstream checkbox
|
|
|
isupstream := boundvalue = SmartPlanSetting::Upstream();
|
isdownstream := boundvalue = SmartPlanSetting::Downstream();
|
|
|
CheckboxOnlyPlanOneStepUpstream.Enabled( isupstream and DataHolderIsOneStepVisible.Data(), Translations::MP_Designer_DisabledOneStepUpstream() );
|
|
if ( isupstream and DataHolderIsOneStepVisible.Data() )
|
{
|
CheckboxOnlyPlanOneStepUpstream.Visible( true );
|
}
|
else
|
{
|
CheckboxOnlyPlanOneStepUpstream.Visible( false );
|
}
|
|
tooltip := '';
|
// Update the tooltip of the total supply
|
if( isupstream )
|
{
|
tooltip := Translations::MP_Designer_DialogSmartPlan_TotalSupplyTooltipUpstream();
|
}
|
else if( isdownstream )
|
{
|
tooltip := Translations::MP_Designer_DialogSmartPlan_TotalSupplyTooltipDownstream();
|
}
|
else
|
{
|
tooltip := Translations::MP_Designer_DialogSmartPlan_TotalSupplyTooltipMiddleOut();
|
}
|
|
CheckboxSpecifyTotalSupply.Tooltip( tooltip );
|
Form.ShowHideWarning();
|
*]
|
}
|