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


PHP COperation::loadRefs方法代码示例

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


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

示例1: foreach

        if (!$canAccess) {
            if (!$op->canDo()->read) {
                global $m, $tab;
                CAppUI::setMsg("Vous n'avez pas accés à cette intervention hors plage", UI_MSG_WARNING);
                CAppUI::redirect("m={$m}&tab={$tab}&operation_id=0");
            }
        }
    } else {
        if (!$op->canDo()->read) {
            global $m, $tab;
            CAppUI::setMsg("Vous n'avez pas accés à cette intervention hors plage", UI_MSG_WARNING);
            CAppUI::redirect("m={$m}&tab={$tab}&operation_id=0");
        }
    }
    // Chargement des régérences
    $op->loadRefs();
    $op->loadRefsNotes();
    $op->_ref_chir->loadRefFunction();
    $op->loadRefs();
    foreach ($op->_ref_actes_ccam as $acte) {
        $acte->loadRefExecutant();
    }
    $sejour = $op->_ref_sejour;
    $sejour->loadRefsFwd();
    $sejour->loadRefCurrAffectation()->loadRefService();
    $sejour->_ref_praticien->canDo();
    $sejour->makeCancelAlerts($op->_id);
    $chir = $op->_ref_chir;
    $patient = $sejour->_ref_patient;
    $prat = $sejour->_ref_praticien;
} else {
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:vw_edit_urgence.php

示例2: COperation

}
$canUnlockActes = $module == "dPpmsi" || CModule::getCanDo("dPsalleOp")->admin;
if (null == ($object_class = CValue::get("object_class"))) {
    CAppUI::stepMessage(UI_MSG_WARNING, "{$tab}-msg-mode-missing");
    return;
}
$unlock_dossier = CValue::get("unlock_dossier", 0);
$NDA = "";
$IPP = "";
switch ($object_class) {
    case "COperation":
        $object = new COperation();
        // Chargement de l'opération et génération du document
        $operation_id = CValue::post("mb_operation_id", CValue::getOrSession("object_id"));
        if ($object->load($operation_id)) {
            $object->loadRefs();
            $codes = explode("|", $object->codes_ccam);
            $actes = CMbArray::pluck($object->_ref_actes_ccam, "code_acte");
            foreach ($object->_ref_actes_ccam as $acte_ccam) {
                $acte_ccam->loadRefsFwd();
            }
            // Suppression des actes non codés
            if (CAppUI::conf("dPsalleOp CActeCCAM del_actes_non_cotes")) {
                foreach ($codes as $_key => $_code) {
                    $key = array_search($_code, $actes);
                    if ($key === false) {
                        unset($codes[$_key]);
                    }
                }
            }
            $object->_codes_ccam = $codes;
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:export_actes_pmsi.php

示例3: COperation

<?php

/**
 * $Id:$
 *
 * @package    Mediboard
 * @subpackage bloodSalvage
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision:$
 */
CAppUI::requireModuleFile("bloodSalvage", "inc_personnel");
$selOp = new COperation();
$blood_salvage = new CBloodSalvage();
$date = CValue::getOrSession("date", CMbDT::date());
$op = CValue::getOrSession("op");
if ($op) {
    $selOp->load($op);
    $selOp->loadRefs();
    $where = array();
    $where["operation_id"] = "='{$selOp->_id}'";
    $blood_salvage->loadObject($where);
    $blood_salvage->loadRefsFwd();
    $blood_salvage->loadRefPlageOp();
}
$smarty = new CSmartyDP();
$smarty->assign("date", $date);
$smarty->assign("blood_salvage", $blood_salvage);
$smarty->assign("selOp", $selOp);
$smarty->display("vw_bloodSalvage_sspi.tpl");
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:30,代码来源:vw_bloodSalvage_sspi.php

示例4: COperation

<?php

/**
 * $Id$
 *
 * @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$
 */
$operation_id = CValue::getOrSession("operation_id", 0);
$operation = new COperation();
$operation->load($operation_id);
$operation->loadRefs();
$operation->countExchanges();
$operation->isCoded();
$operation->canDo();
$operation->_ref_sejour->loadRefsFwd();
foreach ($operation->_ext_codes_ccam as $key => $value) {
    $operation->_ext_codes_ccam[$key] = CDatedCodeCCAM::get($value->code);
}
$operation->getAssociationCodesActes();
$operation->loadPossibleActes();
$operation->_ref_plageop->loadRefsFwd();
$operation->loadRefPraticien();
if (CAppUI::conf('dPccam CCodeCCAM use_new_association_rules')) {
    // Chargement des règles de codage
    $operation->loadRefsCodagesCCAM();
    foreach ($operation->_ref_codages_ccam as $_codages_by_prat) {
        foreach ($_codages_by_prat as $_codage) {
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:ajax_refresh_actes.php


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