protected function btnPost_Click() { if (!$this->dtxDateCredited->DateTime) { $this->dtxDateCredited->Warning = 'Invalid Date'; } $this->objBatch->PostBatch(QApplication::$Login, $this->dtxDateCredited->DateTime); $this->Transactions_Refresh(); }