本文整理汇总了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 {
示例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;
示例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");
示例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) {