Quintiq file version 2.0
#parent: PanelButton/ButtonIDownload_779
Response OnClick () id:Response_PanelButton_ButtonIDownload_OnClick
{
  #keys: '[414702.0.229440598]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    return not isnull( MacroPlan );
  *]
  QuillAction
  {
    Body:
    [*
      tableBinaryData := MasterPlanReleaseWorkOrderTabulation::Export( DataHolderCheckedMasterPlanReleaseWorkOrderTabulation.Data() ).AsBinaryData();
      
      fileNmae := "工单导出_";
      fileNmae := fileNmae + [String]Date::ActualDate().Year() + [String]Date::ActualDate().Month() + "月.xlsx";
      
      Application.Download( fileNmae, tableBinaryData );
    *]
    GroupServerCalls: false
  }
}
