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


PHP CService::loadMatchingObject方法代码示例

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


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

示例1: while

 // Each line
 while ($line = fgetcsv($fp, null, ";")) {
     if (!isset($line[0]) || $line[0] == "") {
         continue;
     }
     // Parsing
     $results[$i]["service"] = addslashes(trim($line[0]));
     $results[$i]["chambre"] = addslashes(trim($line[1]));
     $results[$i]["nom"] = addslashes(trim($line[2]));
     $results[$i]["nomcomplet"] = @addslashes(trim($line[3]));
     $results[$i]["error"] = 0;
     // Service
     $service = new CService();
     $service->nom = $results[$i]["service"];
     $service->group_id = CGroups::loadCurrent()->_id;
     $service->loadMatchingObject();
     if (!$service->_id) {
         $service->urgence = 0;
         $service->uhcd = 0;
         $service->hospit_jour = 0;
         $service->externe = 0;
         $service->cancelled = 0;
         $msg = $service->store();
         if ($msg) {
             CAppUI::setMsg($msg, UI_MSG_ERROR);
             $results[$i]["error"] = $msg;
             $i++;
             continue;
         }
         CAppUI::setMsg("Service créé", UI_MSG_OK);
     }
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:lits_import_csv.php

示例2: loadServiceRadiologie

 /**
  * Charge le service de radiologie de l'établissement
  *
  * @param string $group_id Group
  *
  * @return CService
  */
 static function loadServiceRadiologie($group_id = null)
 {
     $service = new CService();
     $service->group_id = $group_id ? $group_id : CGroups::loadCurrent()->_id;
     $service->radiologie = "1";
     $service->cancelled = "0";
     $service->loadMatchingObject();
     return $service;
 }
开发者ID:fbone,项目名称:mediboard4,代码行数:16,代码来源:CService.class.php

示例3: CMbException

 /**
  * Test A21 - Gone on a leave of absence
  *
  * @param CCnStep $step Step
  *
  * @throws CMbException
  *
  * @return void
  */
 static function testA21(CCnStep $step)
 {
     // PES-PAM_Encounter_Management_ADVANCE
     $step_number = null;
     $add_day = 0;
     if ($step->number == 60) {
         $add_day = 1;
         $step_number = 30;
     }
     if ($step->number == 70) {
         $add_day = 2;
         $step_number = 20;
     }
     if (!$step_number) {
         throw new CMbException("Aucune étape trouvée");
     }
     $patient = self::loadPatientPES($step, $step_number);
     $sejour = self::loadAdmitPES($patient);
     $service_externe = new CService();
     $service_externe->group_id = $step->_ref_test->group_id;
     $service_externe->externe = 1;
     $service_externe->loadMatchingObject();
     if (!$service_externe->_id) {
         throw new CMbException("Aucun service externe de configuré");
     }
     $affectation = new CAffectation();
     $affectation->service_id = $service_externe->_id;
     $affectation->sejour_id = $sejour->_id;
     $affectation->entree = $sejour->entree;
     $affectation->sortie = CMbDT::dateTime("+{$add_day} day", $affectation->entree);
     self::storeObject($affectation);
 }
开发者ID:fbone,项目名称:mediboard4,代码行数:41,代码来源:CITI31Test.class.php


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