Exemple #1
0
     if ($prestation_id) {
         $sejour->loadLiaisonsForPrestation($prestation_id);
     }
     if ($format_print == "advanced") {
         $operation->_liaisons_prestation = implode("|", $sejour->loadAllLiaisonsForDay(CMbDT::date($operation->_datetime_best)));
         $ordre_passage_temp[$operation->chir_id][CMbDT::date($operation->_datetime)][$operation->_id] = $operation;
     }
     // Chargement de l'affectation
     $affectation = $operation->getAffectation();
     if ($affectation->_id) {
         $affectation->loadRefLit()->loadCompleteView();
     }
     $sejour->_ref_first_affectation = $affectation;
     // Chargement des ressources si gestion du materiel en mode expert
     if ($_materiel && CAppUI::conf("dPbloc CPlageOp systeme_materiel") == "expert") {
         $operation->loadRefsBesoins();
         foreach ($operation->_ref_besoins as $_besoin) {
             $_besoin->_available = $_besoin->isAvailable();
         }
     }
 }
 if (count($listOp) == 0 && !$filter->_plage) {
     unset($plagesop[$plage->_id]);
     continue;
 }
 $plage->_ref_operations = $listOp;
 $numOp += count($listOp);
 // Chargement des affectation de la plage
 $plage->loadAffectationsPersonnel();
 // Initialisation des tableaux de stockage des affectation pour les op et les panseuses
 $affectations_plage[$plage->_id]["iade"] = array();