當前位置: 首頁>>代碼示例>>PHP>>正文


PHP COperation::loadRefAnesth方法代碼示例

本文整理匯總了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();
開發者ID:OpenXtrem,項目名稱:mediboard-test,代碼行數:30,代碼來源:ajax_edit_evenement_perop.php

示例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();
開發者ID:fbone,項目名稱:mediboard4,代碼行數:31,代碼來源:ajax_refresh_line_hors_plage.php


注:本文中的COperation::loadRefAnesth方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。