public function Validate() { $blnToReturn = parent::Validate(); if ($this->dtxDateStart->DateTime && $this->dtxDateEnd->DateTime && $this->dtxDateEnd->DateTime->IsEarlierThan($this->dtxDateStart->DateTime)) { $this->dtxDateEnd->Warning = 'Must be later than Start Date'; $blnToReturn = false; } return $blnToReturn; }
public function Validate() { $blnToReturn = parent::Validate(); $this->mctGrowthGroup->GrowthGroup->MeetingBitmap = 0; foreach ($this->cblMeetings->SelectedValues as $intValue) { $this->mctGrowthGroup->GrowthGroup->MeetingBitmap = $this->mctGrowthGroup->GrowthGroup->MeetingBitmap | $intValue; } if (!$this->mctGrowthGroup->GrowthGroup->MeetingBitmap) { $this->cblMeetings->Warning = 'Must select at least one'; $blnToReturn = false; } return $blnToReturn; }