Quintiq file version 2.0 
 | 
#parent: TabPageAdvanced/ButtonSelectUnitsForSmartPlan 
 | 
Response OnClick () id:Response_TabPageAdvanced_ButtonSelectUnitsForSmartPlan_OnClick 
 | 
{ 
 | 
  #keys: '[125270.0.694104751]' 
 | 
  Body: 
 | 
  [* 
 | 
    //Open units dialog 
 | 
    dlg := construct( DialogUnitsForSmartPlan ); 
 | 
    dlg.DoModal( this ); 
 | 
  *] 
 | 
  CanBindMultiple: false 
 | 
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick' 
 | 
  Precondition: 
 | 
  [* 
 | 
    isselectunit := CheckBoxIsSelectedUnits.Checked(); 
 | 
     
 | 
    if ( not isselectunit ) 
 | 
    { 
 | 
      feedback := Translations::MP_DialogSmartPlan_EnableSelectUnit(); 
 | 
    } 
 | 
                                                                       
 | 
    return isselectunit; 
 | 
  *] 
 | 
} 
 |