Quintiq file version 2.0
#parent: pButton/DataHolderRunStatus
Response OnDataChanged () id:Response_pButton_DataHolderRunStatus_OnDataChanged
{
  #keys: '[414702.1.430209224]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebComponent_OnDataChanged'
  QuillAction
  {
    Body:
    [*
      runStatus := guard( this.Data().Element( 0 ), null( RunStatus ) );
      
      if ( not isnull( runStatus ) ) {
        if ( runStatus.Status() = 1 ) {
          iRunStatus.Image( "MEDIA_PLAY_GREEN" );
          bRunPeggingAlgorithm.Enabled( false, "正在运行中" );
          bCreate.Enabled( false, "正在运行中" );
        } else if ( runStatus.Status() = 0 ) {
          iRunStatus.Image( "CHECK" ); 
          bRunPeggingAlgorithm.Enabled( true, "" );
          bCreate.Enabled( true, "" );
        }
      }
    *]
    GroupServerCalls: false
  }
}
