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


PHP COperation::loadRefsFwd方法代码示例

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


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

示例1: COperation

 *
 * @package    Mediboard
 * @subpackage SalleOp
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
// @todo bloc n'est pas forcément actif
global $can;
$can->read |= CModule::getActive("dPbloc")->_can->read;
$can->needsRead();
$operation_id = CValue::getOrSession("operation_id", null);
$operation = new COperation();
$operation->load($operation_id);
$operation->loadRefsAnesthPerops();
$operation->loadRefsFwd();
$operation->loadRefsActesCCAM();
foreach ($operation->_ref_actes_ccam as $acte) {
    $acte->loadRefsFwd();
}
$operation->loadAffectationsPersonnel();
if (CAppUI::conf('dPccam CCodeCCAM use_new_association_rules')) {
    $operation->guessActesAssociation();
} else {
    foreach ($operation->_ref_actes_ccam as $acte) {
        $acte->guessAssociation();
    }
}
$operation->loadRefSortieLocker()->loadRefFunction();
$sejour = $operation->_ref_sejour;
$sejour->loadRefsFwd();
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:print_feuille_bloc.php

示例2: loadRefsFwd

 /**
  * @deprecated
  * @see parent::loadRefsFwd()
  */
 function loadRefsFwd()
 {
     $this->loadRefChir();
     // Chargement operation/sejour
     $this->loadRefOperation();
     $this->_ref_operation->loadRefsFwd();
     $this->_date_op =& $this->_ref_operation->_datetime;
     // Chargement consultation
     $this->loadRefConsultation();
     $this->_ref_consultation->loadRefsFwd();
     $this->_ref_plageconsult =& $this->_ref_consultation->_ref_plageconsult;
     $this->_date_consult =& $this->_ref_consultation->_date;
     // Calcul de la Clairance créatinine
     $patient =& $this->_ref_consultation->_ref_patient;
     $patient->loadRefLatestConstantes(null, null, $this->_ref_consultation, false);
     $const_med = $patient->_ref_constantes_medicales;
     $const_med->updateFormFields();
     $age = intval($patient->_annees);
     if ($const_med->poids && $this->creatinine && $age && $age >= 18 && $age <= 110 && $const_med->poids >= 35 && $const_med->poids <= 120 && $this->creatinine >= 6 && $this->creatinine <= 70) {
         $this->_clairance = $const_med->poids * (140 - $age) / (7.2 * $this->creatinine);
         if ($patient->sexe == 'm') {
             $this->_clairance *= 1.04;
         } else {
             $this->_clairance *= 0.85;
         }
         $this->_clairance = round($this->_clairance, 2);
     }
     // Calcul des Pertes Sanguines Acceptables
     if ($this->ht && $this->ht_final && $const_med->_vst) {
         $this->_psa = $const_med->_vst * ($this->ht - $this->ht_final) / 100;
     }
 }
开发者ID:fbone,项目名称:mediboard4,代码行数:36,代码来源:CConsultAnesth.class.php

示例3: array

$pdf = CValue::get("pdf", 1);
$lines = array();
$lines_per_op = array();
// Consultation courante
$dossier_anesth = new CConsultAnesth();
if (!$dossier_anesth_id) {
    $where = array();
    $where["operation_id"] = " = '{$operation_id}'";
    $dossier_anesth->loadObject($where);
} else {
    $dossier_anesth->load($dossier_anesth_id);
}
if (!$dossier_anesth->_id) {
    $selOp = new COperation();
    $selOp->load($operation_id);
    $selOp->loadRefsFwd();
    $selOp->_ref_sejour->loadRefsFwd();
    $selOp->_ref_sejour->loadRefsConsultAnesth();
    $selOp->_ref_sejour->_ref_consult_anesth->loadRefsFwd();
    $patient = $selOp->_ref_sejour->_ref_patient;
    $patient->loadRefsConsultations();
    // Chargement des praticiens
    $listAnesths = array();
    if ($offline == "false") {
        $anesths = new CMediusers();
        $listAnesths = $anesths->loadAnesthesistes(PERM_READ);
    }
    foreach ($patient->_ref_consultations as $consultation) {
        $consultation->loadRefConsultAnesth();
        foreach ($consultation->_refs_dossiers_anesth as $_dossier_anesth) {
            $consultation->loadRefPlageConsult();
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:print_fiche.php

示例4: COperation

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage Cabinet
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkRead();
// !! Attention, régression importante si ajout de type de paiement
// Récupération des paramètres
$operation_id = CValue::get("operation_id", null);
$op = new COperation();
$op->load($operation_id);
$op->loadRefsFwd();
$op->_ref_sejour->loadRefsFwd();
$patient =& $op->_ref_sejour->_ref_patient;
$pack_id = CValue::get("pack_id", null);
$pack = new CPack();
$pack->load($pack_id);
// Creation des template manager
$listCr = array();
foreach ($pack->_modeles as $key => $value) {
    $listCr[$key] = new CTemplateManager();
    $listCr[$key]->valueMode = true;
    $op->fillTemplate($listCr[$key]);
    $patient->fillTemplate($listCr[$key]);
    $listCr[$key]->applyTemplate($value);
}
// Création du template
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:print_pack.php


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