Quintiq file version 2.0
#parent: pnlActions/btnOk
Response OnClick () id:Response_pnlActions_btnOk_OnClick
{
  #keys: '[412672.0.1042452882]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  GroupServerCalls: true
  Precondition:
  [*
    flag := true;
    if(([Real]efPercentage.Text()).IsNaN()){
      flag := false;
      feedback := "Percentage 为必填项.";
    }
    if( dsStartDate.Date() >= dsEndDate.Date() ){
      flag := false;
      feedback := "结束日期必须在开始日期之后.";
    }
    
    return flag;
  *]
  QuillAction
  {
    Body:
    [*
      Form.OnOK();
      Form.Close();
    *]
  }
}
