protected function CheckAvailabilityOfUserId($CallFromValidation = null) { if ($this->txtMemberId->Text != '') { $objcondition = QQ::Equal(QQN::Memberdetails()->MemberId, $this->txtMemberId->Text); $cnt = Memberdetails::QueryCount($objcondition); if ($cnt == 0) { if (isset($CallFromValidation)) { $this->txtMemberId->Instructions = 'User is Available.'; return true; } else { $this->txtMemberId->Instructions = 'User is Available.'; return true; //QApplicationBase::DisplayAlert('User is Available'); } } else { $this->txtMemberId->Warning = 'User Id is not available' . ($this->txtMemberId->Instructions = ''); //QApplicationBase::DisplayAlert('User is not Available'); return false; } } else { $this->txtMemberId->Focus(); QApplicationBase::DisplayAlert('Please choose a User Name'); } }
/** * Count all Memberdetailses * @return int */ public static function CountAll() { // Call Memberdetails::QueryCount to perform the CountAll query return Memberdetails::QueryCount(QQ::All()); }