Esempio n. 1
0
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = $this->nom;
     $this->_debut = substr($this->debut, 0, 2);
     $this->_fin = substr($this->fin, 0, 2);
 }
Esempio n. 2
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_classeNyha = "";
     if ($this->q1 == 1) {
         if ($this->q2a !== null && $this->q2a == 0) {
             $this->_classeNyha = "Classe III";
         }
         if ($this->q2a == 1 && $this->q2b !== null && $this->q2b == 1) {
             $this->_classeNyha = "Classe I";
         }
         if ($this->q2a == 1 && $this->q2b !== null && $this->q2b == 0) {
             $this->_classeNyha = "Classe II";
         }
     } elseif ($this->q1 == 0) {
         if ($this->q3a !== null && $this->q3a == 0) {
             $this->_classeNyha = "Classe III";
         }
         if ($this->q3a == 1 && $this->q3b !== null && $this->q3b == 1) {
             $this->_classeNyha = "Classe III";
         }
         if ($this->q3a == 1 && $this->q3b !== null && $this->q3b == 0) {
             $this->_classeNyha = "Classe IV";
         }
     }
     $this->_view = "Classification NYHA : {$this->_classeNyha}";
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = $this->libelle ? $this->libelle : $this->code;
     $this->_shortview = $this->code;
     $this->_font_color = CColorSpec::get_text_color($this->color) > 130 ? '000000' : "ffffff";
 }
Esempio n. 4
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     if ($this->end_datetime && $this->start_datetime) {
         $this->_duration = CMbDT::timeRelative($this->start_datetime, $this->end_datetime);
     }
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->loadRefsFwd();
     $this->_shortview = $this->_ref_examen_labo->_shortview;
     $this->_view = $this->_ref_examen_labo->_view;
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->loadRefsFwd();
     $this->_ref_delivery->updateFormFields();
     $this->_view = $this->_ref_delivery->_view;
 }
Esempio n. 7
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $bloc = $this->loadRefBloc();
     $this->_view = $bloc->nom . ' - ' . $this->nom;
     $this->_shortview = $this->nom;
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = "{$this->name}";
     if ($this->_ref_service) {
         $this->_view .= " ({$this->_ref_service->_view})";
     }
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     if (!$this->_ref_question) {
         $this->loadRefQuestion();
     }
     $this->_view = $this->_ref_question->nom;
 }
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_self_sender = $this->emetteur == CAppUI::conf('mb_id');
     $this->_self_receiver = $this->destinataire == CAppUI::conf('mb_id');
     // ms
     $this->response_time = $this->response_time * 1000;
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = $this->quantity;
     if ($this->code) {
         $this->_view .= " [{$this->code}]";
     }
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->loadRefFunction();
     $this->loadRefUser();
     $this->_view = $this->_ref_user->_view . " - " . $this->_ref_function->_view;
     $this->_shortview = $this->_ref_user->_shortview . " - " . $this->_ref_function->_shortview;
 }
Esempio n. 13
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = "Indisponibilité du " . CMbDT::dateToLocale($this->deb);
     if ($this->deb != $this->fin) {
         $this->_view .= " au " . CMbDT::dateToLocale($this->fin);
     }
 }
Esempio n. 14
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = "Allaitement du " . CMbDT::transform($this->date_debut, null, CAppUI::conf("date")) . " à " . CMbDT::transform($this->date_debut, null, CAppUI::conf("time"));
     if ($this->date_fin) {
         $this->_view .= " au " . CMbDT::transform($this->date_fin, null, CAppUI::conf("date")) . " à " . CMbDT::transform($this->date_fin, null, CAppUI::conf("time"));
     }
 }
Esempio n. 15
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = $this->name;
     if ($this->evenements) {
         $this->_ref_evenement = explode("|", $this->evenements);
     }
 }
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = $this->name;
     $this->_when = "{$this->period} mn + {$this->offset}";
     // Parse parameters
     $params = strtr($this->params, array("\r\n" => "&", "\n" => "&", " " => ""));
     parse_str($params, $this->_params);
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $list = $this->loadRefList();
     $this->_view = "{$list->_view} / {$this->name}";
     if ($this->code != null) {
         $this->_view .= " [{$this->code}]";
     }
 }
Esempio n. 18
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = $this->code_concat . " - " . $this->libelle;
     $this->_shortview = $this->code_concat;
     if ($this->mode_hospitalisation) {
         $this->_mode_hospitalisation = explode("|", $this->mode_hospitalisation);
     }
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = "{$this->browser_name} {$this->browser_version} / {$this->platform_name} {$this->platform_version}";
     if (isset(self::$obsolete_browsers[$this->browser_name])) {
         $min_version = self::$obsolete_browsers[$this->browser_name];
         $this->_obsolete = $min_version > $this->browser_version;
     }
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     if ($this->desc) {
         $this->_view = "{$this->desc} [{$this->label}]";
     } else {
         $this->_view = $this->label;
     }
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->loadRefsFwd();
     $this->_view = $this->title;
     if ($this->active == 0) {
         $this->_view = ' (Désactivé)';
     }
 }
Esempio n. 22
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     if (!$this->coord_width && !$this->coord_height) {
         $this->_no_size = true;
     }
     $this->_view = $this->field;
     // FIXME
 }
Esempio n. 23
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $parent = $this->loadRefParent();
     $this->_view = ($parent->_id ? "{$parent->_view} » " : "") . $this->name;
     $this->_font_color = "000000";
     if ($this->color && CColorSpec::get_text_color($this->color) < 130) {
         $this->_font_color = "ffffff";
     }
 }
Esempio n. 24
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = $this->loadRefUser()->_view . " - ";
     $params = $this->getParams();
     if (isset($params["m"])) {
         $module = $params["m"];
         $this->_view .= CAppUI::tr("module-{$module}-court");
         if (isset($params["a"])) {
             $action = $params["a"];
             $this->_view .= " - " . CAppUI::tr("mod-{$module}-tab-{$action}");
         }
     }
 }
Esempio n. 25
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = substr($this->body, 0, 20) . '...';
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = $this->name;
 }
Esempio n. 27
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = $this->libelle ? $this->libelle : $this->code;
     $this->_shortview = $this->code;
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = "Fiche '" . $this->libelle . "'";
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = "{$this->nom} {$this->prenom}";
 }
Esempio n. 30
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = CMbString::truncate($this->traitement, 40);
 }