本文整理匯總了PHP中CAppUI::stepMessage方法的典型用法代碼示例。如果您正苦於以下問題:PHP CAppUI::stepMessage方法的具體用法?PHP CAppUI::stepMessage怎麽用?PHP CAppUI::stepMessage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CAppUI
的用法示例。
在下文中一共展示了CAppUI::stepMessage方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: CPatient
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
*/
$patient_id = CValue::get("patient_id");
$sejour_id = CValue::get("sejour_id");
$check_collision = CValue::get("check_collision");
$date_entree_prevue = CValue::get("date_entree_prevue");
$hour_entree_prevue = CValue::get("hour_entree_prevue");
$min_entree_prevue = CValue::get("min_entree_prevue");
$collision_sejour = null;
$patient = new CPatient();
$patient->load($patient_id);
$patient->loadRefsSejours();
if (!$patient->_id) {
CAppUI::stepMessage(UI_MSG_WARNING, "Patient '%s' inexistant", $patient_id);
return;
}
$date = $date_entree_prevue;
$date .= " " . str_pad($hour_entree_prevue, 2, "0", STR_PAD_LEFT);
$date .= ":" . str_pad($min_entree_prevue, 2, "0", STR_PAD_LEFT);
$date .= ":00";
foreach ($patient->_ref_sejours as $_sejour) {
// Séjours proches
if ($_sejour->sortie) {
$_date = CMbDT::dateTime("+" . CAppUI::conf("dPplanningOp CSejour hours_sejour_proche") . "HOUR", $_sejour->sortie);
if ($_date > $date && $date > $_sejour->sortie) {
$_sejour->_is_proche = 1;
}
}
$_sejour->loadNDA();
示例2: isset
$accordDossier = CValue::get("accordDossier", 0);
$category_id = CValue::get("category_id");
$only_list = isset($_GET["category_id"]);
// Liste des Class
$listCategory = CFilesCategory::listCatClass($object_class);
// Chargement de l'utilisateur courant
$mediuser = CMediusers::get();
$mediuser->loadRefs();
$object = null;
$canFile = false;
$canDoc = false;
$praticienId = null;
$affichageFile = array();
$nbItems = 0;
if (!$object_class && !$object_id) {
CAppUI::stepMessage(UI_MSG_ERROR, "Problème de récupération de la liste des fichiers");
CApp::rip();
}
// Chargement de l'objet
/** @var CMbObject $object */
$object = new $object_class();
$object->load($object_id);
$file = new CFile();
$canFile = $file->canCreate($object);
$cr = new CCompteRendu();
$canDoc = $cr->canCreate($object);
// To add the modele selector in the toolbar
if ($object_class == 'CConsultation') {
$object->loadRefPlageConsult();
$praticienId = $object->_praticien_id;
} else {
示例3: COperation
* $Id: export_actes_pmsi.php 28465 2015-06-02 08:54:31Z lryo $
*
* @package Mediboard
* @subpackage PMSI
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision: 28465 $
*/
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) {
示例4: array
* $Id$
*
* @package Mediboard
* @subpackage dPprescription
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
*/
$sejour_id = CValue::get("sejour_id");
$offline = CValue::get("offline");
$in_modal = CValue::get("in_modal");
$embed = CValue::get("embed");
$period = CValue::get("period");
$forms_limit = CValue::get("forms_limit");
if (!$sejour_id) {
CAppUI::stepMessage(UI_MSG_WARNING, "Veuillez sélectionner un sejour pour visualiser le dossier complet");
return;
}
$fiches_anesthesies = array();
$formulaires = null;
global $atc_classes;
$atc_classes = array();
$datetime_min = "";
if ($period) {
$datetime_min = CMbDT::dateTime("- {$period} HOURS");
}
// Chargement du sejour
$sejour = new CSejour();
$sejour->load($sejour_id);
$sejour->loadNDA();
$sejour->loadExtDiagnostics();
示例5: traceChrono
/**
* Trace a query chrono
*
* @param string $trace Trace label
*
* @return void
*/
static function traceChrono($trace)
{
// Allways log slow queries
$log_step = floor(self::$chrono->latestStep);
if ($log_step) {
$query = self::$last_query;
$values = implode(", ", self::$last_values);
mbLog("slow '{$trace}' in '{$log_step}' seconds", "CRecordSante400");
if ($trace != "connection") {
mbLog("last query was \n {$query} \n with values [{$values}]", "CRecordSante400");
}
}
// Trace to output
if (self::$verbose) {
$step = self::$chrono->latestStep * 1000;
$total = self::$chrono->total * 1000;
$pace = floor(2 * log10($step));
$pace = max(0, min(6, $pace));
$message = "query-pace-{$pace}";
$type = floor(($pace + 3) / 2);
CAppUI::stepMessage($type, $message, $trace, $step, $total);
}
}
示例6: CSmartyDP
<?php
/**
* $Id$
*
* @package Mediboard
* @subpackage SSR
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
*/
CCanDo::checkRead();
$code = CValue::get("code");
$activite = CActiviteCsARR::get($code);
if (!$activite->code) {
CAppUI::stepMessage(UI_MSG_ERROR, "Activité CsARR '{$code}' non trouvée");
return;
}
$activite->loadRefsElementsByCat();
$activite->loadRefsAllExecutants();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("activite", $activite);
$smarty->display("vw_activite_srr_stats.tpl");
示例7: CService
* @version $Revision$
* @author SARL OpenXtrem
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
*/
global $m;
CCanDo::checkEdit();
$service_id = CValue::getOrSession('service_id');
$endowment_id = CValue::getOrSession('endowment_id');
// Services list
$service = new CService();
$where = array();
$where["group_id"] = "= '" . CGroups::loadCurrent()->_id . "'";
$where["cancelled"] = "= '0'";
$list_services = $service->loadListWithPerms(PERM_READ, $where);
if ($m == "dPurgences") {
foreach ($list_services as $_id => $_service) {
if (!$_service->urgence) {
unset($list_services[$_id]);
}
}
}
if (count($list_services) == 0) {
CAppUI::stepMessage(UI_MSG_WARNING, "Vous n'avez accès à aucun service pour effectuer des commandes");
return;
}
// Création du template
$smarty = new CSmartyDP("modules/soins");
$smarty->assign('service_id', $service_id);
$smarty->assign('list_services', $list_services);
$smarty->assign('endowment_id', $endowment_id);
$smarty->display('vw_stocks_service.tpl');
示例8: stripslashes
* $Id$
*
* @category Hprimsante
* @package Mediboard
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
* @link http://www.mediboard.org
*/
CCanDo::checkRead();
$message_string = CValue::post("message");
if (!$message_string) {
return;
}
$message_string = stripslashes($message_string);
CValue::setSession("message", $message_string);
try {
$message = new CHPrimSanteMessage();
$message->parse($message_string);
$message->_errors_msg = !$message->isOK(CHL7v2Error::E_ERROR);
$message->_warnings_msg = !$message->isOK(CHL7v2Error::E_WARNING);
$message->_xml = CMbString::highlightCode("xml", $message->toXML()->saveXML());
} catch (CHL7v2Exception $e) {
CAppUI::stepMessage(UI_MSG_ERROR, $e->getMessage() . " (" . $e->extraData . ")");
return;
}
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("message", $message);
$smarty->assign("key", "input");
$smarty->display("inc_display_hprim_message.tpl");
示例9: list
list($action, $extention) = explode(".", $view);
$user = CUser::get();
$params["m"] = $module;
$params["raw"] = $action;
$params["info"] = 1;
// Could be done throw session cookie forwarding too
$token = new CViewAccessToken();
$token->_spec->loggable = false;
$token->user_id = $user->_id;
$token->params = CMbString::toQuery($params);
$token->datetime_start = "now";
$token->ttl_hours = 1;
$token->store();
$base = CAppUI::conf("base_url");
$url = "{$base}/?token={$token->hash}";
$content = file_get_contents($url);
$token->delete();
// Try and get view properties
if (null == ($props = json_decode($content))) {
CAppUI::stepMessage(UI_MSG_ERROR, "regression_checker-noviewinfo");
return;
}
CAppUI::stepMessage(UI_MSG_OK, "regression_checker-viewinfo-found");
$plan = CView::sampleCheckPlan($props);
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("module", $module);
$smarty->assign("action", $action);
$smarty->assign("props", $props);
$smarty->assign("plan", $plan);
$smarty->display("regression_view_check.tpl");
示例10:
<?php
/**
* $Id$
*
* @category Files
* @package Mediboard
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
* @link http://www.mediboard.org
*/
CCanDo::checkAdmin();
if (CFile::shrinkPDF(CAppUI::conf("root_dir") . "/modules/printing/samples/test_page.pdf")) {
CAppUI::stepMessage(UI_MSG_OK, "Le fichier a été shrinké");
} else {
CAppUI::stepMessage(UI_MSG_ERROR, "Le fichier n'a pas été shrinké");
}
示例11: array
$max = CValue::get("max", CAppUI::conf("sante400 nb_rows"));
// Load mouvements
$class = CValue::get("class");
$type = CValue::getOrSession("type");
$mouvs = array();
$count = 0;
$procs = 0;
if (!in_array($type, $types)) {
$type = null;
}
// Mouvement type (or class) provided
if ($type || $class) {
// Mouvement construction by factory
$mouv = $class ? new $class() : CMouvFactory::create($type);
if (!$mouv) {
CAppUI::stepMessage(UI_MSG_ERROR, "CMouvFactory-error-noclass", CValue::first($type, $class));
return;
}
// Initialisation d'un fichier de verrou
$class = $mouv->class;
$lock = new CMbLock("synchro_sante400/{$class}");
// Mouvements counting
$count = $mouv->count($marked);
// Mouvements loading
/** @var CMouvement400[] $mouvs */
$mouvs = array();
if ($rec = CValue::get("rec")) {
try {
$mouv->load($rec);
$mouvs = array($mouv);
} catch (Exception $e) {
示例12: explode
$prop_type = explode(" ", $prop);
$prop_type = reset($prop_type);
if ($spec_type) {
if (!array_key_exists($prop_type, CMbFieldSpecFact::$classes)) {
$prop = "{$spec_type} {$prop}";
} else {
if (strpos($prop, " ") !== false) {
$prop = $spec_type . " " . substr($prop, strpos($prop, " ") + 1);
} else {
$prop = $spec_type;
}
}
}
$spec = CExConcept::getConceptSpec($prop);
if (!$spec->prop) {
CAppUI::stepMessage(UI_MSG_ALERT, "Enregistrez le champ avant de pouvoir changer les propriétés");
return;
}
// UGLY hack because of the default value of the Boolspec
if ($spec instanceof CBoolSpec && strpos($prop, "default|") === false) {
$spec->default = null;
}
if ($spec instanceof CEnumSpec || $spec instanceof CBoolSpec) {
if ($spec->typeEnum === null || !in_array($spec->typeEnum, $spec->_options["typeEnum"])) {
$spec->typeEnum = reset($spec->_options["typeEnum"]);
}
}
$exclude = array("confidential", "mask", "format", "reported", "perm", "seekable", "pattern", "autocomplete", "cascade", "delimiter", "canonical", "protected", "class", "alphaAndNum", "byteUnit", "length", "loggable");
$boolean = array("notNull", "vertical", "progressive", "cascade");
$options = $spec->_options;
foreach ($exclude as $_exclude) {
示例13: warnUsage
function warnUsage()
{
/** @var self $that */
$that = new $this->_class();
$that->loadMatchingObject("date DESC");
$warn = $that->date >= CMbDT::date("-1 DAY") ? 1 : 0;
CAppUI::stepMessage($warn ? UI_MSG_OK : UI_MSG_WARNING, "COperationMiner-warnusage-{$warn}", CAppUI::tr("{$that->_class}"), $that->date);
}
示例14: displayReport
/**
* Displays the SQL report
*
* @return void
*/
static function displayReport()
{
$totals = array();
$distribution = array();
foreach (self::$report_data as $_hash => $_data) {
$totals[$_hash] = array_sum(CMbArray::pluck($_data, 0));
$_distribution = array("", "", "", "", "", "", "", "", "");
foreach ($_data as $_pair) {
$duration = $_pair[0] * 1000;
$log = (int) floor(log10($duration) + 0.5);
if (!isset($_distribution[$log])) {
$_distribution[$log] = "";
}
$_distribution[$log] .= "#";
}
$distribution[$_hash] = $_distribution;
}
arsort($totals);
foreach ($totals as $_hash => $_total) {
CAppUI::stepMessage(UI_MSG_OK, "Query was called %d times for %01.3fms", count(self::$report_data[$_hash]), $_total);
echo utf8_decode(CMbString::highlightCode("sql", self::$report_data[$_hash][0][1], false, "white-space: pre-wrap;"));
$_dist = $distribution[$_hash];
// No input for 1µs and 10µs magnitudes (< 31.6µs)
$lines = array("100µs {$_dist['2']}", " 1ms {$_dist['3']}", " 10ms {$_dist['4']}", "100ms {$_dist['5']}", " 1s {$_dist['6']}", " 10s {$_dist['7']}");
echo "<pre>" . implode("\n", $lines) . "</pre>";
}
}
示例15: explode
* @category Modèles
* @package Mediboard
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
* @link http://www.mediboard.org
*/
CCanDo::checkRead();
$modeles_ids = CView::post("modeles_ids", "str");
$object_class = CView::post("object_class", "str");
$owner = CView::post("owner", "str");
CView::checkin();
$modeles_ids = explode("-", $modeles_ids);
CMbArray::removeValue(array(), $modeles_ids);
if (!count($modeles_ids)) {
CAppUI::stepMessage("Aucun modèle à exporter");
CApp::rip();
}
$doc = new CMbXMLDocument(null);
$root = $doc->createElement("modeles");
$doc->appendChild($root);
$where = array("compte_rendu_id" => CSQLDataSource::prepareIn($modeles_ids));
// Récupération des header_id, footer_id, preface_id et ending_id
$ds = CSQLDataSource::get("std");
$request = new CRequest();
$request->addTable("compte_rendu");
$request->addWhere($where);
$components_ids = array();
foreach (array("header_id", "footer_id", "preface_id", "ending_id") as $_component) {
$request->select = array();
$request->addSelect($_component);