当前位置: 首页>>代码示例>>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;未经允许,请勿转载。