当前位置: 首页>>代码示例>>PHP>>正文


PHP CConsultation::loadRefFacture方法代码示例

本文整理汇总了PHP中CConsultation::loadRefFacture方法的典型用法代码示例。如果您正苦于以下问题:PHP CConsultation::loadRefFacture方法的具体用法?PHP CConsultation::loadRefFacture怎么用?PHP CConsultation::loadRefFacture使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CConsultation的用法示例。


在下文中一共展示了CConsultation::loadRefFacture方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: makeTabsCount


//.........这里部分代码省略.........
                 }
                 $count += $consult->countBackRefs("examaudio");
                 $count += $consult->countBackRefs("examnyha");
                 $count += $consult->countBackRefs("exampossum");
                 $tabs_count[$_tab] = $count;
                 break;
             case "ExamsComp":
                 if (!$consultAnesth->_id) {
                     break;
                 }
                 $count += $consult->countBackRefs("examcomp");
                 if ($consultAnesth->result_ecg) {
                     $count++;
                 }
                 if ($consultAnesth->result_rp) {
                     $count++;
                 }
                 $tabs_count[$_tab] = $count;
                 break;
             case "Intub":
                 if (!$consultAnesth->_id) {
                     break;
                 }
                 $fields = array("mallampati", "bouche", "distThyro", "mob_cervicale", "etatBucco", "conclusion", "plus_de_55_ans", "edentation", "barbe", "imc_sup_26", "ronflements", "piercing");
                 foreach ($fields as $_field) {
                     if ($consultAnesth->{$_field}) {
                         $count++;
                     }
                 }
                 $count += count(array_filter($list_etat_dents));
                 $tabs_count[$_tab] = $count;
                 break;
             case "InfoAnesth":
                 if (!$consultAnesth->_id) {
                     break;
                 }
                 $op = $consultAnesth->loadRefOperation();
                 $fields_anesth = array("prepa_preop", "premedication", "apfel_femme", "apfel_non_fumeur", "apfel_atcd_nvp", "apfel_morphine");
                 $fields_op = array("passage_uscpo", "type_anesth", "ASA", "position");
                 foreach ($fields_anesth as $_field) {
                     if ($consultAnesth->{$_field}) {
                         $count++;
                     }
                 }
                 if ($op->_id) {
                     foreach ($fields_op as $_field) {
                         if ($op->{$_field}) {
                             $count++;
                         }
                     }
                 }
                 if ($consult->rques) {
                     $count++;
                 }
                 $count += $consultAnesth->countBackRefs("techniques");
                 $tabs_count[$_tab] = $count;
                 break;
             case "dossier_traitement":
                 break;
             case "dossier_suivi":
                 break;
             case "Actes":
                 $consult->countActes();
                 $tabs_count[$_tab] = $consult->_count_actes;
                 if ($sejour->_id) {
                     if ($sejour->DP) {
                         $tabs_count[$_tab]++;
                     }
                     if ($_sejour->DR) {
                         $tabs_count[$_tab]++;
                     }
                     $sejour->loadDiagnosticsAssocies();
                     $tabs_count[$_tab] += count($sejour->_diagnostics_associes);
                 }
                 break;
             case "fdrConsult":
                 $consult->_docitems_from_dossier_anesth = false;
                 $consult->countDocs();
                 $consult->countFiles();
                 $consult->loadRefsPrescriptions();
                 $tabs_count[$_tab] = $consult->_nb_docs + $consult->_nb_files;
                 if (isset($consult->_ref_prescriptions["externe"])) {
                     $tabs_count[$_tab]++;
                 }
                 if ($sejour->_id) {
                     $sejour->countDocs();
                     $sejour->countFiles();
                     $tabs_count[$_tab] += $sejour->_nb_docs + $sejour->_nb_files;
                 }
                 break;
             case "reglement":
                 $consult->loadRefFacture()->loadRefsReglements();
                 $tabs_count[$_tab] = count($consult->_ref_facture->_ref_reglements);
         }
     }
     if (CModule::getActive("dPprescription")) {
         CPrescription::$_load_lite = false;
     }
     return $tabs_count;
 }
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:101,代码来源:CConsultation.class.php

示例2: CConsultation

$where["consultation.du_tiers"] = "> 0";
$where["consultation.tiers_date_reglement"] = "IS NULL";
$where["plageconsult.date"] = "BETWEEN '{$filter->_date_min}' AND '{$filter->_date_max}'";
// Filtre sur les praticiens
$chir_id = CValue::getOrSession("chir");
$listPrat = CConsultation::loadPraticiensCompta($chir_id);
$where["plageconsult.chir_id"] = CSQLDataSource::prepareIn(array_keys($listPrat));
$order = "plageconsult.date";
$consult = new CConsultation();
/** @var CConsultation[] $listConsults */
$listConsults = $consult->loadList($where, $order, null, null, $ljoin);
$total = array("nb" => 0, "value" => 0);
foreach ($listConsults as $consult) {
    $consult->loadRefsFwd();
    $consult->loadRefsReglements();
    $consult->loadRefFacture();
    // Chargment de la FSE
    if (CModule::getActive("fse")) {
        if ($fse = CFseFactory::createFSE()) {
            $fse->loadIdsFSE($consult);
        }
    }
    // Retour Noemie déjà traité
    $hasNoemie = !$consult->_current_fse || $consult->_current_fse->hasNoemie();
    if ($hasNoemie) {
        unset($listConsults[$consult->_id]);
        continue;
    }
    // Nouveau règelement pour le formulaire
    $consult->_new_reglement_tiers = new CReglement();
    $consult->_new_reglement_tiers->setObject($consult->_ref_facture);
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:print_noemie.php

示例3: loadRefsConsultations

 /**
  * Load consultations
  *
  * @param bool $withCanceled Include cancelled consults
  * @param bool $withClosed   Include closed consults
  * @param bool $withPayees   Include payed consults
  *
  * @return CConsultation[]
  */
 function loadRefsConsultations($withCanceled = true, $withClosed = true, $withPayees = true)
 {
     $where["plageconsult_id"] = "= '{$this->_id}'";
     if (!$withCanceled) {
         $where["annule"] = "= '0'";
     }
     if (!$withClosed) {
         $where["chrono"] = "!=  '" . CConsultation::TERMINE . "'";
     }
     $order = "heure";
     $consult = new CConsultation();
     $this->_ref_consultations = $consult->loadList($where, $order);
     foreach ($this->_ref_consultations as $_consult) {
         $this->_cumulative_minutes += $_consult->duree * $this->_freq_minutes;
     }
     if (!$withPayees) {
         foreach ($this->_ref_consultations as $key => $consult) {
             /** @var CConsultation $consult */
             $facture = $consult->loadRefFacture();
             if ($facture->_id && $facture->patient_date_reglement) {
                 unset($this->_ref_consultations[$key]);
             }
         }
     }
     return $this->_ref_consultations;
 }
开发者ID:fbone,项目名称:mediboard4,代码行数:35,代码来源:CPlageconsult.class.php


注:本文中的CConsultation::loadRefFacture方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。