Quintiq file version 2.0
#parent: pPPAArchiveEnable/cPPAPPAArchiveEnable
Response OnUserChanged () id:Response_pPPAArchiveEnable_cPPAPPAArchiveEnable_OnUserChanged
{
  #keys: '[414996.0.415681283]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebCheckbox_OnUserChanged'
  QuillAction
  {
    Body:
    [*
      efPPA.Enabled( not this.Checked(), "" );
      bPPA.Enabled( not this.Checked(), "" );
      cPPA.Enabled( not this.Checked(), "" );
      ddlPPAArchive.Enabled( this.Checked(), "" );
      
      if ( this.Checked() ) {
        // 为true，调用存档，把全局PPA放置局部PPA
        dhLocalBinaryDataPPA.Data( guard( BinaryData::FromBase64EncodedString( dhBinaryDataPPA.Data().AsBase64EncodedString() ), BinaryData::Construct() ) );
        dhLocalOriginalFileNamePPA.Data( guard( dhOriginalFileNamePPA.Data(), "" ) );
        
        // 替换全局PPA为下拉存档PPA
        dhBinaryDataPPA.Data( BinaryData::FromBase64EncodedString( ddlPPAArchive.Data().SourceFileBinaryValue().AsBase64EncodedString() ) );
        dhOriginalFileNamePPA.Data( ddlPPAArchive.Data().Name() );
      } else {
        // 为false，不调用存储，把局部PPA防止全局PPA
        dhBinaryDataPPA.Data( BinaryData::FromBase64EncodedString( dhLocalBinaryDataPPA.Data().AsBase64EncodedString() ) );
        dhOriginalFileNamePPA.Data( dhLocalOriginalFileNamePPA.Data() );
      }
      
      cPPAEnable.Checked( true );
    *]
    GroupServerCalls: false
  }
}
