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


PHP COperation类代码示例

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


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

示例1: countForDates

 /**
  * count list of Op not linked to a plage
  *
  * @param date      $start    date de début
  * @param date|null $end      date de fin
  * @param array     $chir_ids chir targeted
  *
  * @return int number of HP found
  */
 static function countForDates($start, $end = null, $chir_ids = array())
 {
     $d_start = $start;
     $d_end = $end ? $end : $start;
     $op = new COperation();
     $ljoin = array();
     $ljoin["sejour"] = "sejour.sejour_id = operations.sejour_id";
     $where = array();
     if (count($chir_ids)) {
         $where["chir_id"] = CSQLDataSource::prepareIn($chir_ids);
     }
     $where["operations.plageop_id"] = "IS NULL";
     $where["operations.date"] = "BETWEEN '{$d_start}' AND '{$d_end}'";
     $where["operations.annulee"] = "= '0'";
     $where["sejour.group_id"] = "= '" . CGroups::loadCurrent()->_id . "'";
     /** @var COperation[] $listHorsPlage */
     return $op->countList($where, null, $ljoin);
 }
开发者ID:fbone,项目名称:mediboard4,代码行数:27,代码来源:CIntervHorsPlage.class.php

示例2: COperation

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage SalleOp
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
// @todo bloc n'est pas forcément actif
global $can;
$can->read |= CModule::getActive("dPbloc")->_can->read;
$can->needsRead();
$operation_id = CValue::getOrSession("operation_id", null);
$operation = new COperation();
$operation->load($operation_id);
$operation->loadRefsAnesthPerops();
$operation->loadRefsFwd();
$operation->loadRefsActesCCAM();
foreach ($operation->_ref_actes_ccam as $acte) {
    $acte->loadRefsFwd();
}
$operation->loadAffectationsPersonnel();
if (CAppUI::conf('dPccam CCodeCCAM use_new_association_rules')) {
    $operation->guessActesAssociation();
} else {
    foreach ($operation->_ref_actes_ccam as $acte) {
        $acte->guessAssociation();
    }
}
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:30,代码来源:print_feuille_bloc.php

示例3: CGrossesse

        $chir = $sejour->_ref_praticien;
    }
    // On ne change a priori pas le praticien du séjour
    $sejour->_ref_praticien->canDo();
    $prat = $sejour->_ref_praticien;
    $patient = $sejour->_ref_patient;
}
$grossesse = new CGrossesse();
if ($grossesse_id && !$sejour_id && !$operation_id) {
    $grossesse->load($grossesse_id);
    $sejour->grossesse_id = $grossesse->_id;
    $sejour->_ref_grossesse = $grossesse;
    $patient = $grossesse->loadRefParturiente();
}
// On récupère l'opération
$op = new COperation();
$op->load($operation_id);
if ($op->_id) {
    $op->loadRefSejour();
    if (CAppUI::conf("dPplanningOp COperation use_session_praticien")) {
        CValue::setSession("chir_id", $op->chir_id);
    }
    if (CBrisDeGlace::isBrisDeGlaceRequired()) {
        $canAccess = CAccessMedicalData::checkForSejour($op->_ref_sejour);
        if (!$canAccess) {
            if (!$op->canDo()->read) {
                global $m, $tab;
                CAppUI::setMsg("Vous n'avez pas accés à cette intervention hors plage", UI_MSG_WARNING);
                CAppUI::redirect("m={$m}&tab={$tab}&operation_id=0");
            }
        }
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:vw_edit_urgence.php

示例4: COperation

<?php

/**
 * $Id:$
 *
 * @package    Mediboard
 * @subpackage bloodSalvage
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision:$
 */
CAppUI::requireModuleFile("bloodSalvage", "inc_personnel");
$selOp = new COperation();
$blood_salvage = new CBloodSalvage();
$date = CValue::getOrSession("date", CMbDT::date());
$op = CValue::getOrSession("op");
if ($op) {
    $selOp->load($op);
    $selOp->loadRefs();
    $where = array();
    $where["operation_id"] = "='{$selOp->_id}'";
    $blood_salvage->loadObject($where);
    $blood_salvage->loadRefsFwd();
    $blood_salvage->loadRefPlageOp();
}
$smarty = new CSmartyDP();
$smarty->assign("date", $date);
$smarty->assign("blood_salvage", $blood_salvage);
$smarty->assign("selOp", $selOp);
$smarty->display("vw_bloodSalvage_sspi.tpl");
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:30,代码来源:vw_bloodSalvage_sspi.php

示例5: GetMessage

?>
</td>
		<td>
		<script>
		var arModules = ['main'];
		</script>
		<select name="MODULE_ID" id="__module_id_select">
			<option value="main" <?php 
echo $str_MODULE_ID == 'main' ? 'selected' : '';
?>
><?php 
echo GetMessage('KERNEL');
?>
</option>
		<?php 
$modules = COperation::GetAllowedModules();
foreach ($modules as $MID) {
    if ($MID == "main") {
        continue;
    }
    if (!($m = CModule::CreateModuleObject($MID))) {
        continue;
    }
    ?>
			<script>arModules.push('<?php 
    echo $MID;
    ?>
');</script>
			<option value="<?php 
    echo htmlspecialcharsbx($MID);
    ?>
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:task_edit.php

示例6: strtoupper

        if (!$mess) {
            $mess = strtoupper($b);
        }
        ?>
arBingings.<?php 
        echo $mid;
        ?>
.<?php 
        echo $b;
        ?>
 = "<?php 
        echo $mess;
        ?>
";<?php 
    }
    $arOperations[COperation::GetLangTitle($arOperation["NAME"])] = array('ID' => $arOperation["ID"], 'NAME' => $arOperation["NAME"], 'BINDING' => $arOperation["BINDING"], 'MODULE_ID' => $arOperation["MODULE_ID"], 'DESCRIPTION' => COperation::GetLangDescription($arOperation["NAME"], $arOperation["DESCRIPTION"]));
}
?>
</script><?php 
ksort($arOperations);
?>
	<tr class="adm-detail-required-field">
		<td width="40%"><?php 
echo GetMessage('NAME');
?>
</td>
		<td width="60%"><input type="text" name="NAME" size="40" maxlength="100" value="<?php 
echo CTask::GetLangTitle($str_NAME);
?>
"></td>
	</tr>
开发者ID:spas-viktor,项目名称:books,代码行数:31,代码来源:task_edit.php

示例7: switch

global $m, $tab;
$module = CValue::get("module");
if (!$module) {
    $module = $m;
}
$canUnlockActes = $module == "dPpmsi" || CModule::getCanDo("dPsalleOp")->admin;
if (null == ($object_class = CValue::get("object_class"))) {
    CAppUI::stepMessage(UI_MSG_WARNING, "{$tab}-msg-mode-missing");
    return;
}
$unlock_dossier = CValue::get("unlock_dossier", 0);
$NDA = "";
$IPP = "";
switch ($object_class) {
    case "COperation":
        $object = new COperation();
        // Chargement de l'opération et génération du document
        $operation_id = CValue::post("mb_operation_id", CValue::getOrSession("object_id"));
        if ($object->load($operation_id)) {
            $object->loadRefs();
            $codes = explode("|", $object->codes_ccam);
            $actes = CMbArray::pluck($object->_ref_actes_ccam, "code_acte");
            foreach ($object->_ref_actes_ccam as $acte_ccam) {
                $acte_ccam->loadRefsFwd();
            }
            // Suppression des actes non codés
            if (CAppUI::conf("dPsalleOp CActeCCAM del_actes_non_cotes")) {
                foreach ($codes as $_key => $_code) {
                    $key = array_search($_code, $actes);
                    if ($key === false) {
                        unset($codes[$_key]);
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:export_actes_pmsi.php

示例8: COperation

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage SalleOp
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
// @todo bloc n'est pas forcément actif
global $can;
$can->read |= CModule::getActive("dPbloc")->_can->read;
$can->needsRead();
$operation_id = CValue::getOrSession("operation_id", null);
$operation = new COperation();
$operation->load($operation_id);
$operation->loadRefsAnesthPerops();
$operation->loadRefsFwd();
$operation->loadRefsActesCCAM();
foreach ($operation->_ref_actes_ccam as $keyActe => $acte) {
    $acte =& $operation->_ref_actes_ccam[$keyActe];
    $acte->loadRefsFwd();
}
if (CAppUI::conf('dPccam CCodeCCAM use_new_association_rules')) {
    $operation->guessActesAssociation();
} else {
    foreach ($operation->_ref_actes_ccam as $acte) {
        $acte->guessAssociation();
    }
}
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:30,代码来源:vw_partogramme.php

示例9: GeneratePHPInstall

	public static function GeneratePHPInstall($arValues)
	{
		$str = '';
		$arDefValues = $arValues["default"]["options"];
		$arInfo = CControllerGroupSettings::GetData();

		if(isset($arValues["default"]["modules"]))
		{
			$vArr = '';
			foreach($arInfo as $module_id=>$arProp)
			{
				if($module_id == 'main')
					continue;

				if(in_array($module_id, $arValues["default"]["modules"]))
					$vArr .= '"'.$module_id.'"=>"Y", ';
				else
					$vArr .= '"'.$module_id.'"=>"N", ';
			}
			$str .= 'CControllerClient::SetModules(Array('.$vArr.'));'."\r\n";
		}
		else
			$str .= 'CControllerClient::RestoreModules();'."\r\n";

		foreach($arInfo as $mname=>$arProp)
		{
				if(!is_array($arProp["options"]) || count($arProp["options"])<=0)
					continue;
				$arOptions = $arProp["options"];
				foreach($arOptions as $id=>$arOptionParams)
				{
					if(isset($arDefValues[$mname][$id]))
						$str .= 'CControllerClient::SetOptionString("'.EscapePHPString($mname).'", "'.EscapePHPString($id).'", "'.EscapePHPString($arDefValues[$mname][$id]).'");'."\r\n";
					elseif(substr($id, 0, 2)!='__')
						$str .= 'CControllerClient::RestoreOption("'.EscapePHPString($mname).'", "'.EscapePHPString($id).'");'."\r\n";
				}
		}

		$arSecurity = $arValues["default"]["security"];
		if($arSecurity["limit_admin"] == "Y")
			$str .= 'CControllerClient::SetOptionString("main", "~controller_limited_admin", "Y");'."\r\n";
		else
			$str .= 'CControllerClient::SetOptionString("main", "~controller_limited_admin", "N");'."\r\n";

		$subordinate_id = COperation::GetIDByName('edit_subordinate_users');

		$arGroups = Array();
		$arUniqTasks = Array();
		if(is_array($arSecurity["groups"]))
		{
			foreach($arSecurity["groups"] as $group_id=>$arPermissions)
			{
				$arDefinedPermissions = Array();
				$arUnDefinedPermissions = Array();
				$bSubOrdGroups = false;
				foreach($arInfo as $module_id=>$arProp)
				{
					if(isset($arPermissions[$module_id]))
					{
						$arDefinedPermissions[$module_id] = $arPermissions[$module_id];

						$task_id = $arPermissions[$module_id];

						if(strlen($task_id)>1 && (!is_array($arUniqTasks[$module_id]) || !in_array($task_id, $arUniqTasks[$module_id])))
						{
							$arUniqTasks[$module_id][] = $task_id;
							$dbr_task = CTask::GetList(Array(), Array('NAME'=>$task_id, 'MODULE_ID'=>$module_id, "BINDING" => 'module'));
							if($ar_task = $dbr_task->Fetch())
							{
								if($module_id == 'main' || $ar_task['SYS']!='Y')
								{
									$arOperations = CTask::GetOperations($ar_task["ID"], true);

									if($ar_task['SYS']!='Y')
									{
										$str .= 'CControllerClient::SetTaskSecurity('.CControllerGroupSettings::__PHPToString($task_id).', '.CControllerGroupSettings::__PHPToString($module_id).', '.CControllerGroupSettings::__PHPToString($arOperations).', '.CControllerGroupSettings::__PHPToString($ar_task["LETTER"]).');'."\r\n";
									}

									if($module_id == 'main' && in_array('edit_subordinate_users', $arOperations))
									{
										$bSubOrdGroups = true;
									}
								}
							}
						}
					}
					else
						$arUnDefinedPermissions[] = $module_id;
				}

				$str .= 'CControllerClient::RestoreGroupSecurity('.CControllerGroupSettings::__PHPToString($group_id).', '.CControllerGroupSettings::__PHPToString($arUnDefinedPermissions).');'."\r\n";

				if($bSubOrdGroups)
				{
					$arSGroupsTmp = preg_split("/[\r\n,;]+/", $arSecurity["subord_groups"][$group_id]);
					$arSGroups = array();
					foreach($arSGroupsTmp as $sGroupTmp)
					{
						$sGroupTmp = trim($sGroupTmp);
						if ($sGroupTmp != '')
//.........这里部分代码省略.........
开发者ID:ASDAFF,项目名称:bxApiDocs,代码行数:101,代码来源:controllergroup.php

示例10: COperation

 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkRead();
$operation = new COperation();
$max_uscpo = $operation->_specs["duree_uscpo"]->max;
$default_week = $operation->conf("default_week_stat_uscpo");
/** @var date $date_min */
/** @var date $date_max */
$date_min = CValue::getOrSession("date_min", CMbDT::date($default_week == "last" ? "-1 week" : null));
$date_max = CValue::getOrSession("date_max", CMbDT::date($default_week == "next" ? "+1 week" : null));
$service_id = CValue::getOrSession("service_id", "");
if ($date_min > $date_max) {
    list($date_min, $date_max) = array($date_max, $date_min);
}
$operation = new COperation();
$where = array();
$ljoin = array();
$where["duree_uscpo"] = "> 0";
$where["annulee"] = "!= '1'";
$where[] = "operations.passage_uscpo = '1' or operations.passage_uscpo IS NULL";
if ($service_id) {
    $ljoin["sejour"] = "sejour.sejour_id = operations.sejour_id";
    $where["sejour.service_id"] = "= '{$service_id}'";
}
$day = $date_min;
$dates = array();
$series = array();
$serie = array('data' => array(), 'label' => utf8_encode("Nombre de nuits prévues"));
$today = CMbDT::date();
while ($day <= $date_max) {
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:ajax_vw_stats_uscpo.php

示例11: uasort

        $tabOperationExpect[] = $operations[$date['id']];
    }
    if ($estEnSalle || $estSortieSalle || $estSalleReveil) {
        $tabOperationCurrent = $operations[$date['id']];
    }
    if ($estSortieSalleReveil) {
        $tabOperationDone[] = $operations[$date['id']];
    }
}
uasort($tabOperationExpect, 'cmp_dateDesc');
uasort($tabOperationDone, 'cmp_dateAsc');
$operation = null;
if ($operation_id != null) {
    $operations = array();
    // Récuperation du sejour sélectionné
    $operation = new COperation();
    $operation->load($operation_id);
    $operation->loadRefsFwd();
    $estEnSalle = $operation->entree_salle && $operation->sortie_salle == null;
    $estSortieSalle = $operation->sortie_salle && $operation->entree_reveil == null;
    $estSalleReveil = $operation->sortie_salle && $operation->entree_reveil;
    $estSortieSalleReveil = $operation->entree_salle && $operation->sortie_salle && $operation->entree_reveil && $operation->sortie_reveil_possible;
    if ($operation->entree_salle == null) {
        $diagramme['bloc']['type'] = "expect";
    }
    if ($estEnSalle || $estSortieSalle || $estSalleReveil) {
        $diagramme['bloc']['type'] = "current";
    }
    if ($estSortieSalleReveil) {
        $diagramme['bloc']['type'] = "done";
    }
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:vw_parcours.php

示例12: COperation

<?php

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage PlanningOp
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
$user = CUser::get();
$operation_id = CValue::get("operation_id");
$operation = new COperation();
$operation->load($operation_id);
$operation->loadRefAffectation();
$operation->loadRefsFwd(1);
$operation->loadRefsConsultAnesth();
$operation->_ref_sejour->loadRefsFwd();
$operation->_ref_sejour->loadRefsConsultAnesth();
// Récupération de l'utilisateur courant
$currUser = CMediusers::get();
$currUser->isAnesth();
// Chargement des anesthésistes
$listAnesths = new CMediusers();
$listAnesths = $listAnesths->loadAnesthesistes(PERM_DENY);
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("currUser", $currUser);
$smarty->assign("user_id", $user->_id);
$smarty->assign("listAnesths", $listAnesths);
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:edit_visite_anesth.php

示例13: foreach

// Sélection du praticien
$mediuser = CMediusers::get();
$listPrat = $mediuser->loadPraticiens(PERM_EDIT);
foreach ($listPrat as $_prat) {
    $_prat->loadRefFunction();
}
$selPrat = CValue::getOrSession("selPrat", $mediuser->isPraticien() ? $mediuser->user_id : null);
$selPraticien = new CMediusers();
$selPraticien->load($selPrat);
$group = CGroups::loadCurrent();
if ($selPraticien->isAnesth()) {
    // Selection des différentes interventions de la journée par service
    $count_ops = array("ambu" => 0, "comp" => 0, "hors_plage" => 0);
    $service = new CService();
    $services = $service->loadGroupList();
    $interv = new COperation();
    $order = "operations.chir_id, operations.time_operation";
    $ljoin = array("plagesop" => "plagesop.plageop_id = operations.plageop_id", "sejour" => "sejour.sejour_id = operations.sejour_id", "affectation" => "affectation.sejour_id = sejour.sejour_id\r\n      AND '{$date}' BETWEEN DATE(affectation.entree)\r\n      AND DATE(affectation.sortie)", "lit" => "lit.lit_id = affectation.lit_id", "chambre" => "chambre.chambre_id = lit.chambre_id", "service" => "service.service_id = chambre.service_id");
    $where_anesth = "operations.anesth_id = '{$selPraticien->_id}' OR plagesop.anesth_id = '{$selPraticien->_id}'";
    if ($sans_anesth) {
        $where_anesth .= " OR operations.anesth_id IS NULL OR plagesop.anesth_id IS NULL";
    }
    $whereAmbu = array("operations.date" => "= '{$date}'", "sejour.type" => "= 'ambu'", "sejour.group_id" => "= '{$group->_id}'");
    $whereAmbu[] = $where_anesth;
    if (!$canceled) {
        $whereAmbu["operations.annulee"] = " = '0'";
    }
    $whereHospi = array("operations.date" => "= '{$date}'", "sejour.type" => "= 'comp'", "sejour.group_id" => "= '{$group->_id}'");
    $whereHospi[] = $where_anesth;
    if (!$canceled) {
        $whereHospi["operations.annulee"] = " = '0'";
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:vw_idx_planning.php

示例14: array

    $dateArr = CMbDT::date("+{$i} day", $date);
    $listDays[$dateArr] = $dateArr;
}
// Création du tableau de visualisation
$affichages = array();
foreach ($listDays as $keyDate => $valDate) {
    foreach (CPlageOp::$hours as $keyHours => $valHours) {
        foreach (CPlageOp::$minutes as $keyMins => $valMins) {
            // Initialisation du tableau
            $affichages["{$keyDate}-{$valHours}:{$valMins}:00"] = "empty";
            $affichages["{$keyDate}-HorsPlage"] = array();
        }
    }
}
$listPlages = array();
$operation = new COperation();
$nbIntervHorsPlage = 0;
$listPlage = new CPlageOp();
$nbIntervNonPlacees = 0;
foreach ($listDays as $keyDate => $valDate) {
    // Récupération des plages par jour
    $where = array();
    $where["date"] = "= '{$keyDate}'";
    $where["salle_id"] = "= '{$salle->_id}'";
    $order = "debut";
    $listPlages[$keyDate] = $listPlage->loadList($where, $order);
    // Récupération des interventions hors plages du jour
    $where = array();
    $where["date"] = "= '{$keyDate}'";
    $where["annulee"] = "= '0'";
    $where["salle_id"] = "= '{$salle->_id}'";
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:monitor_day_salle.php

示例15: COperation

<?php

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage SalleOp
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
$operation_id = CValue::get("operation_id");
$op = new COperation();
$op->load($operation_id);
$smarty = new CSmartyDP();
$smarty->assign("op", $op);
$smarty->display("inc_info_bacterio.tpl");
开发者ID:fbone,项目名称:mediboard4,代码行数:17,代码来源:ajax_info_bacterio.php


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