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


PHP CSejour::getNbJourPlanning方法代碼示例

本文整理匯總了PHP中CSejour::getNbJourPlanning方法的典型用法代碼示例。如果您正苦於以下問題:PHP CSejour::getNbJourPlanning方法的具體用法?PHP CSejour::getNbJourPlanning怎麽用?PHP CSejour::getNbJourPlanning使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CSejour的用法示例。


在下文中一共展示了CSejour::getNbJourPlanning方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: CMediusers

 * @version    $Revision: 26910 $
 */
CCando::checkRead();
$date = CValue::getOrSession("date", CMbDT::date());
$kine_id = CValue::getOrSession("kine_id");
$surveillance = CValue::getOrSession("surveillance");
$sejour_id = CValue::get("sejour_id");
$height = CValue::get("height");
$selectable = CValue::get("selectable");
$large = CValue::get("large");
$print = CValue::get("print");
$kine = new CMediusers();
$kine->load($kine_id);
$sejour = new CSejour();
$sejour->load($sejour_id);
$nb_days_planning = $sejour->_id ? $sejour->getNbJourPlanning($date) : CEvenementSSR::getNbJoursPlanning($kine_id, $date);
$planning = new CPlanningWeek($date, null, null, $nb_days_planning, $selectable, $height, $large, !$print);
$planning->title = $surveillance ? "Surveillance '{$kine->_view}'" : "Rééducateur '{$kine->_view}'";
$planning->guid = $kine->_guid;
$planning->guid .= $surveillance ? "-surv" : "-tech";
// Chargement des evenement SSR
$evenement = new CEvenementSSR();
$where = array();
$where["debut"] = "BETWEEN '{$planning->_date_min_planning} 00:00:00' AND '{$planning->_date_max_planning} 23:59:59'";
$where["therapeute_id"] = " = '{$kine->_id}'";
$where["type_seance"] = $surveillance ? " = 'non_dediee'" : " <> 'non_dediee'";
/** @var CEvenementSSR[] $evenements */
$evenements = $evenement->loadList($where);
// Chargement des evenements SSR de "charge"
$where["type_seance"] = $surveillance ? " <> 'non_dediee'" : " = 'non_dediee'";
/** @var CEvenementSSR[] $evenements_charge */
開發者ID:fbone,項目名稱:mediboard4,代碼行數:31,代碼來源:ajax_planning_technicien.php

示例2: CSejour

 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCando::checkRead();
$date = CValue::getOrSession("date", CMbDT::date());
$sejour_id = CValue::get("sejour_id");
$sejour = new CSejour();
$sejour->load($sejour_id);
$equipement = new CEquipement();
$equipement->load(CValue::get("equipement_id"));
if (!$equipement->visualisable) {
    echo "<div class='small-info'>L'équipement <strong>{$equipement->_view}</strong> n'est pas visualisable</div>";
    CApp::rip();
}
$nb_days_planning = $sejour->getNbJourPlanning($date);
$planning = new CPlanningWeek($date, null, null, $nb_days_planning, false, "auto", false, true);
$planning->title = "Equipement '{$equipement->_view}'";
$planning->guid = $equipement->_guid;
// Chargement des evenement SSR
$evenement = new CEvenementSSR();
$where["debut"] = "BETWEEN '{$planning->_date_min_planning} 00:00:00' AND '{$planning->_date_max_planning} 23:59:59'";
$where["equipement_id"] = " = '{$equipement->_id}'";
/** @var CEvenementSSR[] $evenements */
$evenements = $evenement->loadList($where);
foreach ($evenements as $_evenement) {
    $important = !$sejour_id || $_evenement->sejour_id == $sejour_id;
    $sejour = $_evenement->loadRefSejour();
    $patient = $sejour->loadRefPatient();
    // Title
    $therapeute = $_evenement->loadRefTherapeute();
開發者ID:fbone,項目名稱:mediboard4,代碼行數:31,代碼來源:ajax_planning_equipement.php


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