yanweiyuan3
2023-08-09 fd693f0faf305ec98d7ea03e09fe6787817e71d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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();
  *]
}