本文整理汇总了PHP中CFunctions::loadSpecialites方法的典型用法代码示例。如果您正苦于以下问题:PHP CFunctions::loadSpecialites方法的具体用法?PHP CFunctions::loadSpecialites怎么用?PHP CFunctions::loadSpecialites使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CFunctions
的用法示例。
在下文中一共展示了CFunctions::loadSpecialites方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CPlageOp
$plagesel = new CPlageOp();
}
$plagesel->loadAffectationsPersonnel();
}
if (!$plagesel->_id) {
$plagesel->date = $date;
$plagesel->debut = CPlageOp::$hours_start . ":00:00";
$plagesel->fin = CPlageOp::$hours_start . ":00:00";
}
// On charge le praticien et ses fonctions secondaires
$chir = $plagesel->loadRefChir();
$chir->loadRefFunction();
$_functions = $chir->loadBackRefs("secondary_functions");
// Liste des Specialités
$function = new CFunctions();
$specs = $function->loadSpecialites(PERM_READ, 1);
// Liste des Anesthésistes
$mediuser = new CMediusers();
$anesths = $mediuser->loadAnesthesistes();
CMbObject::massLoadFwdRef($anesths, "function_id");
foreach ($anesths as $_anesth) {
$_anesth->loadRefFunction();
}
// Liste des praticiens
$chirs = $mediuser->loadChirurgiens();
CMbObject::massLoadFwdRef($chirs, "function_id");
foreach ($chirs as $_chir) {
$_chir->loadRefFunction();
}
// Chargement du personnel
$listPers = array("iade" => CPersonnel::loadListPers("iade"), "op" => CPersonnel::loadListPers("op"), "op_panseuse" => CPersonnel::loadListPers("op_panseuse"), "sagefemme" => CPersonnel::loadListPers("sagefemme"), "manipulateur" => CPersonnel::loadListPers("manipulateur"));
示例2: CSejour
$filterOp->salle_id = CValue::getOrSession("salle_id");
$filterOp->_date_min = CValue::get("_date_min", $now);
$filterOp->_date_max = CValue::get("_date_max", $now);
$filterOp->_prat_id = CValue::getOrSession("_prat_id");
$filterOp->_plage = CValue::getOrSession("_plage");
$filterOp->_ranking = CValue::getOrSession("_ranking");
$filterOp->_cotation = CValue::getOrSession("_cotation");
$filterOp->_specialite = CValue::getOrSession("_specialite");
$filterOp->_codes_ccam = CValue::getOrSession("_codes_ccam");
$filterOp->_ccam_libelle = CValue::getOrSession("_ccam_libelle");
$filterSejour = new CSejour();
$filterSejour->type = CValue::getOrSession("type");
$filterSejour->ald = CValue::getOrSession("ald");
$yesterday = CMbDT::date("-1 day", $now);
$mediuser = new CMediusers();
$listPrat = $mediuser->loadPraticiens(PERM_READ);
$function = new CFunctions();
$listSpec = $function->loadSpecialites(PERM_READ);
// Récupération des salles
$listBlocs = CGroups::loadCurrent()->loadBlocs(PERM_EDIT);
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("chir", $user->_id);
$smarty->assign("filter", $filterOp);
$smarty->assign("filterSejour", $filterSejour);
$smarty->assign("now", $now);
$smarty->assign("yesterday", $yesterday);
$smarty->assign("listPrat", $listPrat);
$smarty->assign("listSpec", $listSpec);
$smarty->assign("listBlocs", $listBlocs);
$smarty->display("print_plannings/vw_print_planning.tpl");
示例3: COperation
<?php
/**
* $Id: vw_idx_materiel.php 27325 2015-02-26 09:30:02Z aurelie17 $
*
* @package Mediboard
* @subpackage dPbloc
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision: 27325 $
*/
CCanDo::checkEdit();
$filter = new COperation();
$filter->_date_min = CValue::getOrSession("_date_min", CMbDT::date("-7 day"));
$filter->_date_max = CValue::getOrSession("_date_max", CMbDT::date());
$listBlocs = CGroups::loadCurrent()->loadBlocs(PERM_READ, null, "nom");
$bloc_id = CValue::getOrSession("bloc_id", reset($listBlocs)->_id);
$praticien = new CMediusers();
$praticiens = $praticien->loadPraticiens();
$function = new CFunctions();
$functions = $function->loadSpecialites();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("filter", $filter);
$smarty->assign("bloc_id", $bloc_id);
$smarty->assign("listBlocs", $listBlocs);
$smarty->assign("praticiens", $praticiens);
$smarty->assign("functions", $functions);
$smarty->assign("function_id", CValue::getOrSession("function_id"));
$smarty->assign("praticien_id", CValue::getOrSession("praticien_id"));
$smarty->display("vw_idx_materiel.tpl");
示例4: CFunctions
$user = CMediusers::get();
$user->loadRefFunction();
$selCabinet = CValue::getOrSession("selCabinet", $user->function_id);
$droit = true;
// si on affecte a selCabinet le function_id du user, on verifie si le user a le droit de creer des categories
if ($selCabinet == $user->function_id) {
// Chargement de la liste de tous la cabinets
$cabinet = new CFunctions();
$listCabinets = $cabinet->loadSpecialites();
if (!array_key_exists($selCabinet, $listCabinets)) {
$droit = false;
}
}
// Chargement de la liste des cabinets auquel le user a droit
$function = new CFunctions();
$listFunctions = $function->loadSpecialites(PERM_EDIT);
// Creation d'une categorie
$categorie = new CConsultationCategorie();
$categorie_id = CValue::getOrSession("categorie_id");
// Chargement des categories pour le cabinet selectionné ou pour le cabinet auquel appartient le user
if ($selCabinet) {
$whereCategorie["function_id"] = " = '{$selCabinet}'";
} else {
$whereCategorie["function_id"] = " = '{$user->function_id}'";
}
$orderCategorie = "nom_categorie ASC";
$categories = $categorie->loadList($whereCategorie, $orderCategorie);
// Chargement de la categorie selectionnee
if ($categorie_id) {
$categorie = new CConsultationCategorie();
$categorie->load($categorie_id);
示例5: reset
*/
global $dialog;
if ($dialog) {
CCanDo::checkRead();
} else {
CCanDo::checkEdit();
}
$singleType = CValue::get("singleType");
// L'utilisateur est-il chirurgien ?
$mediuser = CMediusers::get();
$is_praticien = $mediuser->isPraticien();
$listPrat = $mediuser->loadPraticiens(PERM_READ);
$chir_id = CAppUI::conf("dPplanningOp COperation use_session_praticien") ? CValue::getOrSession("chir_id", $is_praticien ? $mediuser->user_id : reset($listPrat)->_id) : CValue::get("chir_id", $is_praticien ? $mediuser->user_id : reset($listPrat)->_id);
$function_id = CValue::getOrSession("function_id");
$_function = new CFunctions();
$listFunc = $_function->loadSpecialites(PERM_READ);
$type = CValue::getOrSession("type", "interv");
$sejour_type = CValue::get("sejour_type");
$page = CValue::get("page", array("sejour" => 0, "interv" => 0));
// Protocoles disponibles
$_prat = new CMediusers();
foreach ($listPrat as $_prat) {
$_prat->countProtocoles($sejour_type);
}
foreach ($listFunc as $_function) {
$_function->countProtocoles($sejour_type);
}
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("singleType", $singleType);
$smarty->assign("page", $page);