Example #1
0
 /**
  * Chargement de a liste des dents disponibles
  *
  * @return self[] Liste des dents
  */
 static function loadList()
 {
     $cache = new Cache(__METHOD__, func_get_args(), Cache::INNER_OUTER);
     if ($cache->exists()) {
         return $cache->get();
     }
     $ds = self::getSpec()->ds;
     $query = "SELECT t_localisationdents.*\n      FROM t_localisationdents\n      ORDER BY t_localisationdents.LOCDENT ASC,\n        t_localisationdents.DATEFIN ASC";
     $result = $ds->exec($query);
     $listDents = array();
     while ($row = $ds->fetchArray($result)) {
         $dent = new CDentCCAM();
         $dent->map($row);
         $dent->loadLibelle();
         $listDents[$row["DATEFIN"]][] = $dent;
     }
     return $cache->put($listDents);
 }
Example #2
0
            $modificateur->_checked = null;
        }
    } else {
        $modificateur->_checked = null;
    }
}
/* Vérification et précodage des modificateurs */
if (CAppUI::conf('dPccam CCodeCCAM use_new_association_rules')) {
    CCodageCCAM::precodeModifiers($phase->_modificateurs, $acte, $acte->loadRefObject());
} elseif (!$acte->_id) {
    foreach ($phase->_modificateurs as $modificateur) {
        $modificateur->_checked = $acte->_ref_object->checkModificateur($modificateur->code, CMbDT::time($acte->execution));
    }
}
$acte->getMontantModificateurs($phase->_modificateurs);
// Liste des dents CCAM
$liste_dents = reset(CDentCCAM::loadList());
// Chargement des listes de praticiens
$user = new CMediusers();
$listAnesths = $user->loadAnesthesistes(PERM_DENY);
$listChirs = $user->loadPraticiens(PERM_DENY);
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("acte", $acte);
$smarty->assign("code", $code);
$smarty->assign("activite", $activite);
$smarty->assign("phase", $phase);
$smarty->assign("liste_dents", $liste_dents);
$smarty->assign("listAnesths", $listAnesths);
$smarty->assign("listChirs", $listChirs);
$smarty->display("inc_edit_acte_ccam.tpl");
 /**
  * Chargement de la dent concernée
  *
  * @return bool dent identifiable ou non
  */
 function loadRefDent()
 {
     $this->_ref_dent = new CDentCCAM();
     return $this->_ref_dent->load($this->localisation);
 }