$transmission->_text_action = $trans->text; $transmission->user_id = $trans->user_id; $transmission->date = $trans->date; $transmission->degre = $trans->degre; if ($trans->object_id && $trans->object_class) { $transmission->object_id = $trans->object_id; $transmission->object_class = $trans->object_class; } else { if ($trans->libelle_ATC) { $transmission->libelle_ATC = stripslashes($trans->libelle_ATC); } } } if ($result_id) { $trans = new CTransmissionMedicale(); $trans->load($result_id); $trans->canEdit(); $transmission->_text_result = $trans->text; $transmission->user_id = $trans->user_id; $transmission->date = $trans->date; $transmission->degre = $trans->degre; if ($trans->object_id && $trans->object_class) { $transmission->object_id = $trans->object_id; $transmission->object_class = $trans->object_class; } else { if ($trans->libelle_ATC) { $transmission->libelle_ATC = stripslashes($trans->libelle_ATC); } } } } else {
/** * $Id$ * * Visualiser les transmissions d'une cible fermée * * @package Mediboard * @subpackage Hospi * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision$ */ CCanDo::checkRead(); $transmission_id = CValue::get("transmission_id"); $from_compact = CValue::get("from_compact", 0); $transmission = new CTransmissionMedicale(); $transmission->load($transmission_id); $transmission->loadTargetObject(); if ($transmission->_ref_object instanceof CAdministration) { $transmission->_ref_object->loadRefsFwd(); } $trans = new CTransmissionMedicale(); $trans->sejour_id = $transmission->sejour_id; if ($transmission->libelle_ATC) { $trans->libelle_ATC = $transmission->libelle_ATC; } else { if ($transmission->object_id && $transmission->object_class) { $trans->object_class = $transmission->object_class; $trans->object_id = $transmission->object_id; } } /** @var CTransmissionMedicale[] $trans */