/** * $Id$ * * @package Mediboard * @subpackage SalleOp * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision$ */ CCanDo::checkEdit(); $operation_id = CValue::get("operation_id", 0); $operation = new COperation(); $operation->load($operation_id); if ($operation->_id) { $operation->loadRefPraticien(); $operation->loadRefsActes(); $operation->updateFormFields(); // Récupération des tarifs /** @var CTarif $tarif */ $tarif = new CTarif(); $tarifs = array(); $order = "description"; $where = array(); $where["chir_id"] = "= '{$operation->chir_id}'"; $tarifs["user"] = $tarif->loadList($where, $order); foreach ($tarifs["user"] as $_tarif) { $_tarif->getPrecodeReady(); } $where = array(); $where["function_id"] = "= '{$operation->chir_id}'"; $tarifs["func"] = $tarif->loadList($where, $order);