本文整理匯總了PHP中CSejour::loadRefsFactureEtablissement方法的典型用法代碼示例。如果您正苦於以下問題:PHP CSejour::loadRefsFactureEtablissement方法的具體用法?PHP CSejour::loadRefsFactureEtablissement怎麽用?PHP CSejour::loadRefsFactureEtablissement使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CSejour
的用法示例。
在下文中一共展示了CSejour::loadRefsFactureEtablissement方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: CSejour
/**
* $Id:$
*
* @package Mediboard
* @subpackage dPfacturation
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision:$
*/
CCanDo::checkEdit();
$facture_class = CValue::getOrSession("facture_class");
$object_id = CValue::getOrSession("object_id");
$object_class = CValue::getOrSession("object_class");
$patient_id = CValue::getOrSession("patient_id");
$numero = CValue::get("numero");
/* @var CFacture $facture*/
$facture = new $facture_class();
$facture->_sejour_id = $object_id;
$facture->patient_id = $patient_id;
$facture->loadRefPatient()->loadRefsCorrespondantsPatient();
$sejour = new CSejour();
$sejour->load($object_id);
$sejour->loadRefsFactureEtablissement();
$facture->ouverture = $sejour->_ref_last_facture->ouverture;
$facture->statut_pro = $sejour->_ref_last_facture->statut_pro;
$facture->numero = $numero + 1;
$facture->praticien_id = $sejour->praticien_id;
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("facture", $facture);
$smarty->display("vw_edit_facture.tpl");