Пример #1
0
 public function btnSave_Click($strFormId, $strControlId, $strParameter)
 {
     $blnRefreshGroups = !$this->mctGroup->EditMode || $this->mctGroup->Group->ParentGroupId != $this->lstParentGroup->SelectedValue;
     $this->chkConfidentialFlag->Checked = false;
     $this->mctGroup->SaveGroup();
     // Delegate "Save" processing to the GrowthGroupMetaControl
     $this->btnRefresh_Click();
     if (!$this->mctGrowthGroup->EditMode) {
         $this->mctGrowthGroup->GrowthGroup->Group = $this->mctGroup->Group;
     }
     $this->mctGrowthGroup->SaveGrowthGroup();
     $this->objGroup->Status = $this->lstGrowthGroupStatus->SelectedValue;
     $this->objGroup->Save();
     // Refresh
     if ($blnRefreshGroups) {
         Group::RefreshHierarchyDataForMinistry($this->mctGroup->Group->MinistryId);
         $this->objForm->pnlGroups_Refresh();
     }
     $this->ReturnTo('#' . $this->mctGroup->Group->Id);
 }
Пример #2
0
 /**
  * Static Helper Method to Create using QueryString arguments
  *
  * @param mixed $objParentObject QForm or QPanel which will be using this GrowthGroupMetaControl
  * @param QMetaControlCreateType $intCreateType rules governing GrowthGroup object creation - defaults to CreateOrEdit
  * @return GrowthGroupMetaControl
  */
 public static function CreateFromQueryString($objParentObject, $intCreateType = QMetaControlCreateType::CreateOrEdit)
 {
     $intGroupId = QApplication::QueryString('intGroupId');
     return GrowthGroupMetaControl::Create($objParentObject, $intGroupId, $intCreateType);
 }