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


PHP CSejour::massLoadBackRefs方法代码示例

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


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

示例1: array

     $where = array();
     if ($event_type == "register_outpatient") {
         $where["type"] = "= 'urg'";
     }
     $sejours = $patient->loadRefsSejours($where);
     CSejour::massLoadNDA($sejours);
     break;
 case "A12":
     $leftjoin = array("affectation" => "affectation.sejour_id = sejour.sejour_id");
     $where = array("patient_id" => "= '{$patient->_id}'", "entree_reelle" => "IS NOT NULL", "affectation_id" => "IS NOT NULL");
     $sejour = new CSejour();
     /** @var CSejour[] $sejours */
     $sejours = $sejour->loadList($where, "entree DESC", null, null, $leftjoin);
     $patient->_ref_sejours = $sejours;
     CSejour::massLoadNDA($sejours);
     CSejour::massLoadBackRefs($sejours, "affectations");
     foreach ($sejours as $_sejour) {
         $_sejour->_ref_affectations = $_sejour->_back["affectations"];
     }
     break;
 case "A13":
     $sejours = $patient->loadRefsSejours(array("sortie_reelle" => "IS NOT NULL"));
     CSejour::massLoadNDA($sejours);
     break;
 case "A38":
     $sejours = $patient->loadRefsSejours(array("sortie_reelle" => "IS NULL", "entree_reelle" => "IS NULL"));
     CSejour::massLoadNDA($sejours);
     break;
 case "INSERT":
     $where = array("entree_reelle" => "IS NOT NULL");
     if ($event_type == "event_change_class_inpatient") {
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:ajax_encounter_event.php

示例2: array

                    $sejour = $_affectation->loadRefSejour(1);
                    $sejour->_ref_curr_affectation = $_affectation;
                }
            }
        }
    }
}
/* @var CPatient[] $patients */
$patients = CStoredObject::massLoadFwdRef($sejours, "patient_id");
CPatient::massLoadIPP($patients);
CStoredObject::massLoadBackRefs($patients, "dossier_medical");
CStoredObject::massLoadFwdRef($sejours, "praticien_id");
CStoredObject::massCountBackRefs($sejours, "tasks", array("realise" => "= '0'"), array(), "taches_non_realisees");
CStoredObject::massLoadBackRefs($sejours, "dossier_medical");
CSejour::massLoadSurrAffectation($sejours);
CSejour::massLoadBackRefs($sejours, "user_sejour");
CSejour::massLoadNDA($sejours);
$count_my_patient = 0;
foreach ($sejours as $sejour) {
    $count_my_patient += count($sejour->loadRefsUserSejour($userCourant));
    $sejour->loadRefPatient();
    $sejour->loadRefPraticien();
    $sejour->checkDaysRelative($date);
    $sejour->loadRefPrescriptionSejour();
    $prescription = $sejour->_ref_prescription_sejour;
    if ($prescription->_id) {
        $prescription->loadJourOp(CMbDT::date());
    }
    // Chargement des taches non effectuées
    $sejour->_count_tasks = $sejour->_count["taches_non_realisees"];
    if ($print) {
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:vw_sejours.php


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