Quintiq file version 2.0
#parent: ButtonGenerateTestData
Response OnClick () id:Response_FormCapacityAndSaleBudge_ButtonGenerateTestData_OnClick
{
  #keys: '[414384.0.971540692]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    return not isnull( MacroPlan );
  *]
  QuillAction
  {
    Body:
    [*
      GlobalOTDTable.InitTestDataByYear( MacroPlan, DataHolderCapacityAndSaleBudgeFilterYear.Data() );
      Global_MappingAnnualBudgetData::SetOrgCodeFromForecast( GlobalOTDTable );
      GlobalOTDSOP::RefreshCapacityAndSaleBudgeFilter( true, GlobalOTDTable, GlobalOTDSOP );
      CapacityAndSaleBudgeFilterItem::Initial( GlobalOTDSOP );
      CapacityAndSaleBudgeFilterYear::Initial( GlobalOTDSOP );
      CapacityAndSaleBudgeFilterMonth::Initial( GlobalOTDSOP );
    *]
    GroupServerCalls: false
  }
}
