private function loadComponents()
 {
     $resAjax = new Response_Ajax();
     $arrType = array('TIPO_IDENT', 'ESTADO_CIVIL', 'GENDER', 'TIPO_DE_SANGRE');
     try {
         $oBus = Business_App_Catalog::listByType($arrType);
         if (!$oBus->isSuccess()) {
             throw new Exception($oBus->message());
         }
         $oBus1 = Business_App_Profile::listProfile('', NULL, NULL);
         $dataCatalogo = $oBus->data();
         $eCatalogs = $dataCatalogo['eCatalogs'];
         $dataProfile = $oBus1->data();
         $eProfiles = $dataProfile['eProfiles'];
         $eProfiles = Helper_Array::entitiesToIdText($eProfiles, 'id', 'name', 'value', 'text');
         $oBus2 = Business_App_Company_Branch::listByCompany(Helper_App_Session::getCompanyId(), 1);
         $dataCompanyBranch = $oBus2->data();
         $eCompanyBranches = $dataCompanyBranch['eCompanyBranchs'];
         $eCompanyBranches = Helper_Array::entitiesToIdText($eCompanyBranches, 'id', 'name', 'value', 'text');
         $resAjax->isSuccess(TRUE);
     } catch (Exception $e) {
         $resAjax->isSuccess(FALSE);
         $resAjax->message($e->getMessage());
     }
     $resAjax->data(array('eCatalogs' => $eCatalogs, 'eProfiles' => $eProfiles, 'eCompanyBranches' => $eCompanyBranches));
     echo $resAjax->toJsonEncode();
 }
 private function loadComponents()
 {
     $resAjax = new Response_Ajax();
     $arrType = array('TIPO_IDENT', 'ESTADO_CIVIL', 'GENDER', 'TIPO_DE_SANGRE');
     try {
         $oBus = Business_App_Catalog::listByType($arrType);
         if (!$oBus->isSuccess()) {
             throw new Exception($oBus->message());
         }
         $eCatalogs = $oBus->data('eCatalogs');
         $resAjax->isSuccess(TRUE);
     } catch (Exception $e) {
         $resAjax->isSuccess(FALSE);
         $resAjax->message($e->getMessage());
     }
     $resAjax->data($eCatalogs);
     echo $resAjax->toJsonEncode();
 }