当前位置: 首页>>代码示例>>PHP>>正文


PHP CFunctions::loadRefGroup方法代码示例

本文整理汇总了PHP中CFunctions::loadRefGroup方法的典型用法代码示例。如果您正苦于以下问题:PHP CFunctions::loadRefGroup方法的具体用法?PHP CFunctions::loadRefGroup怎么用?PHP CFunctions::loadRefGroup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CFunctions的用法示例。


在下文中一共展示了CFunctions::loadRefGroup方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: loadRefAddress

 /**
  * Load postal address object
  *
  * @return CGroups|CFunctions|CBlocOperatoire
  */
 function loadRefAddress()
 {
     $this->_ref_address = $this->loadFwdRef("address_id", true);
     if ($this->address_class == "CFunctions" || $this->address_class == "CBlocOperatoire") {
         $this->_ref_address->loadRefGroup();
     }
     return $this->_ref_address;
 }
开发者ID:fbone,项目名称:mediboard4,代码行数:13,代码来源:CProductOrder.class.php

示例2: editFacture

 /**
  * Edition de la facture
  *
  * @param bool $create création ou non du pdf
  *
  * @return void
  */
 function editFacture($create = true)
 {
     if ($create) {
         $this->createPdf();
     }
     foreach ($this->factures as $the_facture) {
         $this->facture = $the_facture;
         $this->facture->loadRefsItems();
         $this->_no_round = false;
         if ($this->facture->cloture && !count($this->facture->_ref_items)) {
             $this->facture->creationLignesFacture();
         }
         $this->patient = $this->facture->loadRefPatient();
         $this->facture->_ref_patient->loadRefsCorrespondantsPatient();
         $this->praticien = $this->facture->loadRefPraticien();
         $this->facture->loadRefAssurance();
         $this->facture->loadRefsObjects();
         $this->facture->loadRefsReglements();
         if ($this->type_pdf == "relance") {
             $this->facture->loadRefsRelances();
         }
         $this->function_prat = $this->praticien->loadRefFunction();
         $this->group = $this->function_prat->loadRefGroup();
         $adherent = $this->facture->loadNumAdherent($this->praticien->adherent);
         $this->adherent = $adherent["compte"];
         if ($this->type_pdf == "BVR") {
             $this->loadTotaux();
             $this->acompte = 0;
             $this->nb_factures = count($this->facture->_montant_factures_caisse);
             $this->num_fact = 0;
             foreach ($this->facture->_montant_factures_caisse as $cle_facture => $montant_facture) {
                 if ($this->acompte < $this->facture->_montant_avec_remise) {
                     $this->editHautFacture($cle_facture, $montant_facture);
                     $this->editBVR($montant_facture);
                 }
             }
         }
         if ($this->type_pdf == "BVR_TS") {
             $this->loadTotaux();
             $this->acompte = 0;
             $this->nb_factures = count($this->facture->_montant_factures_caisse);
             $this->num_fact = 0;
             $montant = 0;
             if ($this->acompte < $this->facture->_montant_avec_remise) {
                 $montant = $this->facture->_montant_avec_remise - $this->facture->_reglements_total_patient;
                 $montant = $montant - $this->facture->_reglements_total_tiers;
                 $this->editHautFacture(" ", $montant);
                 $this->editBVR($montant);
             }
             $this->type_pdf = "justif_TS";
             $this->function_prat->adresse = str_replace("\r\n", ' ', $this->function_prat->adresse);
             $this->patient->adresse = str_replace("\r\n", ' ', $this->patient->adresse);
             $this->editCenterJustificatif(0, $montant);
         } elseif ($this->type_pdf == "justif") {
             $this->function_prat->adresse = str_replace("\r\n", ' ', $this->function_prat->adresse);
             $this->patient->adresse = str_replace("\r\n", ' ', $this->patient->adresse);
             foreach ($this->facture->_montant_factures_caisse as $cle_facture => $montant_facture) {
                 $this->editCenterJustificatif($cle_facture, $montant_facture);
             }
         } elseif ($this->type_pdf == "relance") {
             $this->editRelanceEntete();
             //$this->editHautFacture(1, $this->relance->_montant, true);
             if (CAppUI::conf("ref_pays") == 2) {
                 $this->editBVR($this->relance->_montant);
             }
         }
     }
 }
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:75,代码来源:CEditPdf.class.php

示例3: CFunctions

        break;
    case "file_category_id":
        $order = "file_category_id {$order_way}, object_class, nom";
}
// Praticien
$user = CMediusers::get($filtre->user_id);
$filtre->user_id = $user->_id;
$owner = "prat";
$owner_id = $filtre->user_id;
$owners = $user->getOwners();
if ($filtre->function_id) {
    $owner = "func";
    $owner_id = $filtre->function_id;
    $func = new CFunctions();
    $func->load($owner_id);
    $owners = array("func" => $func, "etab" => $func->loadRefGroup());
} else {
    $sec_func = $user->loadRefsSecondaryFunctions();
    foreach ($sec_func as $_func) {
        $owners["func" . $_func->_id] = $_func;
    }
}
$modeles = CCompteRendu::loadAllModelesFor($owner_id, $owner, $filtre->object_class, $filtre->type, 1, $order);
if ($filtre->function_id) {
    unset($modeles["prat"]);
}
foreach ($modeles as $key => &$_modeles) {
    /** @var $_modeles CStoredObject[] */
    CStoredObject::massCountBackRefs($_modeles, "documents_generated");
    /** @var $_modele CCompteRendu */
    foreach ($_modeles as $_modele) {
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:ajax_list_modeles.php

示例4: CFunctions

 * @link     http://www.mediboard.org
 */
CCanDo::checkRead();
$user_id = CValue::getOrSession("user_id");
$function_id = CValue::getOrSession("function_id");
$object_class = CValue::getOrSession("object_class");
$user = CMediusers::get($user_id);
$owner = "prat";
$owner_id = $user->_id;
$owners = $user->getOwners();
if ($function_id) {
    $function = new CFunctions();
    $function->load($function_id);
    $owner = "func";
    $owner_id = $function->_id;
    $owners = array("func" => $function, "etab" => $function->loadRefGroup());
}
$packs = CPack::loadAllPacksFor($owner_id, $owner, $object_class);
if ($function_id) {
    unset($packs["prat"]);
}
foreach ($packs as $_packs_by_owner) {
    foreach ($_packs_by_owner as $_pack) {
        /** @var $_pack CPack */
        $_pack->loadRefOwner();
        $_pack->loadBackRefs("modele_links");
        $_pack->loadHeaderFooter();
    }
}
// Création du template
$smarty = new CSmartyDP();
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:ajax_list_pack.php

示例5: array

}
// function
$functions = array();
if (!$function_id && $user->_id) {
    $function_id = $user->function_id;
    $functions = $user->loadRefsSecondaryFunctions();
}
$function = new CFunctions();
$function->load($function_id);
$functions[$function->_id] = $function;
foreach ($functions as $_function) {
    $_function->_ref_drawing_cat = $_function->loadBackRefs('drawing_category_function');
    /** @var CDrawingCategory $_cat */
    foreach ($_function->_ref_drawing_cat as $_cat) {
        $_cat->loadRefsFiles();
    }
}
// group
$group = $function->loadRefGroup();
$group->_ref_drawing_cat = $group->loadBackRefs('drawing_category_group');
/** @var CDrawingCategory $_cat */
foreach ($group->_ref_drawing_cat as $_cat) {
    $_cat->loadRefsFiles();
}
// smarty
$smarty = new CSmartyDP();
$smarty->assign("user", $user);
$smarty->assign("functions", $functions);
$smarty->assign("group", $group);
$smarty->assign("category", new CDrawingCategory());
$smarty->display("inc_list_ressources.tpl");
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:ajax_list_ressources.php


注:本文中的CFunctions::loadRefGroup方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。