Quintiq file version 2.0
#parent: pPreviousEditionCurve/cPreviousEditionCurve
Response OnUserChanged () id:Response_pPreviousEditionCurve_cPreviousEditionCurve_OnUserChanged
{
  #keys: '[414996.0.415683420]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebCheckbox_OnUserChanged'
  QuillAction
  {
    Body:
    [*
      efCurve.Enabled( not this.Checked(), "" );
      bCurve.Enabled( not this.Checked(), "" );
      
      if ( this.Checked() ) {
        // 为true，调用存档，把全局Curve放置局部Curve
        dhLocalBinaryDataCurve.Data( guard( BinaryData::FromBase64EncodedString( dhBinaryDataCurve.Data().AsBase64EncodedString() ), BinaryData::Construct() ) );
        dhLocalOriginalFileNameCurve.Data( guard( dhOriginalFileNameCurve.Data(), "" ) );
        
        // 替换全局Curve为上一版Curve
        previousAC := select( Archive, ArchiveCurve, tempAC, true );
        dhBinaryDataCurve.Data( BinaryData::FromBase64EncodedString( previousAC.SourceFileBinaryValue().AsBase64EncodedString() ) );
        dhOriginalFileNameCurve.Data( previousAC.Name() );
      } else {
        // 为false，不调用存储，把局部PPA防止全局PPA
        dhBinaryDataCurve.Data( BinaryData::FromBase64EncodedString( dhLocalBinaryDataCurve.Data().AsBase64EncodedString() ) );
        dhOriginalFileNameCurve.Data( dhLocalOriginalFileNameCurve.Data() );
      }
    *]
    GroupServerCalls: false
  }
}
