本文整理汇总了PHP中COperation::loadRefAnesth方法的典型用法代码示例。如果您正苦于以下问题:PHP COperation::loadRefAnesth方法的具体用法?PHP COperation::loadRefAnesth怎么用?PHP COperation::loadRefAnesth使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类COperation
的用法示例。
在下文中一共展示了COperation::loadRefAnesth方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: COperation
/**
* $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$
*/
$evenement_guid = CValue::get("evenement_guid");
$operation_id = CValue::get("operation_id");
$datetime = CValue::get("datetime");
$interv = new COperation();
$interv->load($operation_id);
$interv->loadRefAnesth();
if (!$datetime) {
$datetime = CMbDT::date($interv->_datetime) . " " . CMbDT::time();
}
list($evenement_class, $evenement_id) = explode("-", $evenement_guid);
/** @var CAnesthPerop $evenement */
$evenement = new $evenement_class();
if ($evenement_id) {
$evenement->load($evenement_id);
$evenement->loadRefsNotes();
} else {
$evenement->datetime = $datetime;
}
$evenement->operation_id = $interv->_id;
// Création du template
$smarty = new CSmartyDP();
示例2: CSalle
$salle = new CSalle();
$listSalles = $salle->loadListWithPerms(PERM_READ);
// anesths
$anesth = new CMediusers();
$anesths = $anesth->loadAnesthesistes(PERM_READ);
$operation = new COperation();
$operation->load($operation_id);
$date = $operation->date;
if ($operation->plageop_id) {
$toRemove = true;
}
if (!$toRemove) {
$reservation_installed = CModule::getActive("reservation");
$diff_hour_urgence = CAppUI::conf("reservation diff_hour_urgence");
$operation->loadRefsFwd();
$operation->loadRefAnesth();
$patient = $operation->_ref_sejour->loadRefPatient();
$dossier_medical = $patient->loadRefDossierMedical();
$dossier_medical->loadRefsAntecedents();
$dossier_medical->countAntecedents();
$dossier_medical->countAllergies();
$operation->_ref_chir->loadRefsFwd();
if ($reservation_installed) {
$first_log = $operation->loadFirstLog();
if (abs(CMbDT::hoursRelative($operation->_datetime_best, $first_log->date)) <= $diff_hour_urgence) {
$operation->_is_urgence = true;
}
}
// Chargement des plages disponibles pour cette intervention
$operation->_ref_chir->loadBackRefs("secondary_functions");
$secondary_functions = array();