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


PHP CConsultation::countDesistementsForDay方法代码示例

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


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

示例1: array

    $nowTime = CMbDT::time();
    $where = array("chir_id" => "= '{$chirSel}'", "date" => "= '{$today}'", "debut" => "<= '{$nowTime}'", "fin" => ">= '{$nowTime}'");
    $plageSel->loadObject($where);
}
if (!$plageSel->plageconsult_id) {
    $plageSel->load($plageconsult_id);
} else {
    $plageconsult_id = $plageSel->plageconsult_id;
}
if ($plageSel->chir_id != $chirSel && $plageSel->remplacant_id != $chirSel) {
    $plageconsult_id = null;
    $plageSel = new CPlageconsult();
}
CValue::setSession("plageconsult_id", $plageconsult_id);
// Liste des consultations a avancer si desistement
$count_si_desistement = CConsultation::countDesistementsForDay(array($chirSel));
$nbjours = 7;
$dateArr = CMbDT::date("+6 day", $debut);
$plage = new CPlageconsult();
//where interv/hp
$whereInterv = array();
$whereHP = array();
$where = array();
$where["date"] = "= '{$dateArr}'";
$where["chir_id"] = " = '{$chirSel}'";
$whereInterv["chir_id"] = $whereHP["chir_id"] = " = '{$chirSel}'";
$whereInterv["date"] = $whereHP["date"] = "= '{$dateArr}'";
if (!$plage->countList($where)) {
    $nbjours--;
    // Aucune plage le dimanche, on peut donc tester le samedi.
    $dateArr = CMbDT::date("+5 day", $debut);
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:vw_planning.php

示例2: array

// function selected
$function_id = CValue::getOrSession("function_id");
$listFnc = array();
if ($function_id) {
    $listChir = CConsultation::loadPraticiens(PERM_EDIT, $function_id, null, true);
    foreach ($listChir as $_chir) {
        $_chir->loadRefFunction();
    }
} else {
    $listChir = CConsultation::loadPraticiens(PERM_EDIT);
}
// Liste des consultations a avancer si desistement
$ds = $plage->getDS();
$now = CMbDT::date();
// get desistements
$count_si_desistement = CConsultation::countDesistementsForDay($function_id ? array_keys($listChir) : array($chirSel), $now);
// Liste des praticiens
$fnc = new CFunctions();
$listFnc = $fnc->loadListWithPerms(PERM_READ, array("group_id" => " = '{$group->_id}' "), 'text');
$mediuser = new CMediusers();
foreach ($listFnc as $id => $_fnc) {
    $users = $mediuser->loadProfessionnelDeSanteByPref(PERM_READ, $_fnc->_id, null, true);
    if (!count($users)) {
        unset($listFnc[$id]);
    }
}
// if only one function and function_id
if (count($listFnc) == 1 && !$chirSel) {
    $function_id = reset($listFnc)->_id;
}
// Période
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:vw_planning_new.php

示例3: array

$min_hour = 23;
// gathering prat ids
$ids = array();
$function = new CFunctions();
$function->load($function_id);
if ($function->_id) {
    $function->loadRefsUsers();
    foreach ($function->_ref_users as $_user) {
        $ids[] = $_user->_id;
    }
}
if (!$function_id && $chirSel) {
    $ids[] = $chirSel;
}
// Liste des consultations a avancer si desistement
$count_si_desistement = CConsultation::countDesistementsForDay($ids, $today);
// Période
$debut = CValue::getOrSession("debut");
$debut = CMbDT::date("last sunday", $debut);
$fin = CMbDT::date("next sunday", $debut);
$debut = CMbDT::date("+1 day", $debut);
$prev = CMbDT::date("-1 week", $debut);
$next = CMbDT::date("+1 week", $debut);
$dateArr = CMbDT::date("+6 day", $debut);
$nbDays = 7;
$listPlage = new CPlageconsult();
$whereInterv = array();
$whereHP = array();
$where = array();
$where["date"] = $whereInterv["date"] = $whereHP["date"] = "= '{$dateArr}'";
$whereInterv["chir_id"] = $whereHP["chir_id"] = "= '{$chirSel}' ";
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:ajax_vw_planning.php


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