Quintiq file version 2.0 
 | 
#parent: pnlActions/btnOk 
 | 
Response OnClick () id:Response_pnlActions_btnOk_OnClick 
 | 
{ 
 | 
  #keys: '[414382.0.465983531]' 
 | 
  DefinitionID: 'Responsedef_WebButton_OnClick' 
 | 
  Precondition: 
 | 
  [* 
 | 
    feedback := Translations::FilllingCapacity_ValidateInput(); 
 | 
    checkValue := not Coefficient.Text() = '' 
 | 
     
 | 
    if(not checkValue ) 
 | 
    { 
 | 
      feedback := Translations::PriorityFactor_CheckNameValid(); 
 | 
      editData := DataHolderEditPriorityFactor.Data(); 
 | 
      checkValue := not PriorityFactor::CheckNameValid( MacroPlan,editData.BusinessType(),[Real]Coefficient.Text(),PriorityFactorName.Text(),Desc.Text()); 
 | 
     
 | 
    } 
 | 
     
 | 
    return checkValue 
 | 
  *] 
 | 
  QuillAction 
 | 
  { 
 | 
    Body: 
 | 
    [* 
 | 
      Form.ClickBtnOK(); 
 | 
    *] 
 | 
    GroupServerCalls: false 
 | 
  } 
 | 
} 
 |