Quintiq file version 2.0
#parent: pnlActions/btnOk
Response OnClick () id:Response_pnlActions_btnOk_OnClick
{
  #keys: '[414702.1.443184085]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  GroupServerCalls: true
  Precondition:
  [*
    flag := exists( GlobalOTDSOP, ModulePanelCorrespondenceRule, tempMPCR, tempMPCR.Name() = efName.Text() );
    
    if ( flag ) {
      feedback := "存在重复值！";
    }
    
    return not flag;
  *]
  QuillAction
  {
    Body:
    [*
      Form.ApplyChanges();
      
      GlobalOTDSOP.ModulePanelCorrespondenceRule( relnew, Name := efName.Text() );
      
      Form.Close();
    *]
  }
}
