/**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_shortview = $this->_view = $this->nom;
     $this->_width_etiq = round(($this->largeur_page - 2 * $this->marge_horiz) / $this->nb_colonnes, 2);
     $this->_height_etiq = round(($this->hauteur_page - 2 * $this->marge_vert) / $this->nb_lignes, 2);
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->loadTargetObject(false);
     $this->_shortview = ($this->position ? "[" . str_pad($this->position, 3, "0", STR_PAD_LEFT) . "] " : "") . $this->name;
     $this->_view = ($this->_ref_object ? "{$this->_ref_object->_view} - " : "") . $this->_shortview;
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_value = $this->value;
     if (array_key_exists($this->type, self::$_style_values)) {
         $this->_value = CAppUI::tr("{$this->_class}.value.{$this->type}.{$this->value}");
     }
     $this->_view = $this->getFormattedValue("type") . ": {$this->value}";
 }
Beispiel #4
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = "Relance du " . $this->date;
     $this->_montant = $this->du_patient + $this->du_tiers;
 }
Beispiel #5
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_montant_facture = $this->montant_base + $this->montant_depassement;
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_montant_facture = $this->montant_base + $this->montant_depassement;
     $this->_view = $this->libelle;
     if ($this->type == "CActeNGAP") {
         $this->_montant_total_base = $this->montant_base;
         $this->_montant_total_depassement = $this->montant_depassement;
     } else {
         $this->_montant_total_base = $this->montant_base * $this->quantite * $this->coeff;
         $this->_montant_total_depassement = $this->montant_depassement * $this->quantite * $this->coeff;
     }
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->loadRefsFwd();
     $this->_view = $this->_ref_object->_view . " ({$this->quantity})";
 }
Beispiel #8
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = "[{$this->starting_formula} => {$this->closing_formula}]";
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_file_size = CMbString::toDecaBinary($this->doc_size);
     $this->getSendProblem();
     $this->loadRefCategory();
 }
Beispiel #10
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_shortview = "{$this->id400}";
     $this->_view = "[{$this->id400}] ({$this->tag})";
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->completeField("received");
     if (!$this->comments) {
         $group = CGroups::loadCurrent();
         if ($group->pharmacie_id) {
             $this->comments = $group->loadRefPharmacie()->soustitre;
         }
     }
     // Total
     $items_count = $this->countBackRefs("order_items");
     $this->updateTotal();
     $this->loadRefsFwd();
     // Status
     $this->_status = "opened";
     if ($this->locked) {
         $this->_status = "locked";
     }
     if ($this->date_ordered) {
         $this->_status = "ordered";
     }
     if ($this->received) {
         $this->_status = "received";
     }
     if ($this->cancelled) {
         $this->_status = "cancelled";
     }
     // View
     $this->_view = "{$this->order_number} - ";
     $this->_view .= $this->societe_id ? $this->_ref_societe->_view : "";
     /*
         $this->_view .= " - $items_count article".(($items_count > 1) ? 's' : '');
         if ($this->_total !== null) {
           $this->_view .= ", total = $this->_total ".CAppUI::conf("currency_symbol");
         }*/
     $customer_code = $this->societe_id ? $this->_ref_societe->customer_code : null;
     if (!$customer_code) {
         $customer_code = "-";
     }
     $this->_customer_code = $customer_code;
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->loadRefs();
     switch ($this->object_class) {
         case "CPlageOp":
             $this->_debut = CMbDT::addDateTime($this->_ref_object->debut, $this->_ref_object->date);
             $this->_debut_dt = CMbDT::addDateTime($this->_ref_object->debut, $this->_ref_object->date);
             $this->_fin = CMbDT::addDateTime($this->_ref_object->fin, $this->_ref_object->date);
             $this->_fin_dt = CMbDT::addDateTime($this->_ref_object->fin, $this->_ref_object->date);
             break;
         case "COperation":
         case "CBloodSalvage":
             if ($this->debut) {
                 $this->_debut = CMbDT::time($this->debut);
                 $this->_debut_dt = $this->debut;
             }
             if ($this->fin) {
                 $this->_fin = CMbDT::time($this->fin);
                 $this->_fin_dt = $this->fin;
             }
     }
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     // Tokens CIM
     $this->codes_cim = strtoupper($this->codes_cim);
     $this->_codes_cim = $this->codes_cim ? explode("|", $this->codes_cim) : array();
     // Objets CIM
     $this->_ext_codes_cim = array();
     foreach ($this->_codes_cim as $code_cim) {
         $this->_ext_codes_cim[$code_cim] = CCodeCIM10::get($code_cim);
     }
 }
 /**
  * Update the form (derived) fields plain fields
  *
  * @return void
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     // Chargement des contents
     if ($this->_load_content) {
         $this->loadContent();
     }
     $this->_self_sender = $this->sender_id === null;
     $this->_self_receiver = $this->receiver_id === null;
     if ($this->date_echange > CMbDT::dateTime("+ " . CAppUI::conf("eai exchange_format_delayed") . " minutes", $this->date_production)) {
         $this->_delayed = CMbDT::minutesRelative($this->date_production, $this->date_echange);
     }
 }
Beispiel #15
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     if ($this->fields) {
         $this->_fields = explode(" ", $this->fields);
     }
 }
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = $this->nom;
 }