Quintiq file version 2.0
#parent: PanelButton/ButtonTransform
Response OnClick () id:Response_PanelButton_ButtonTransform_OnClick
{
  #keys: '[414702.0.454181189]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    return not isnull( MacroPlan );
  *]
  QuillAction
  {
    Body:
    [*
      CustomerAndForecastOrder::CreateData( MacroPlan, DataHolderActiveScenario.Data() );
      
      message := "总订单个数："                                                               + 
                [String]counter( MacroPlan, SalesDemand.astype( CustomerOrder ), cs, true )  + 
                 "    成功转换个数："                                                         +
                 [String]counter( MacroPlan, SalesDemand.astype( CustomerOrder ), cs, true )
      
      WebMessageBox::Success( message, true );
    *]
    GroupServerCalls: false
  }
}
