コード例 #1
0
 /**
  * @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);
 }
コード例 #2
0
 /**
  * @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;
 }
コード例 #3
0
 /**
  * @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}";
 }
コード例 #4
0
ファイル: CRelance.class.php プロジェクト: fbone/mediboard4
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = "Relance du " . $this->date;
     $this->_montant = $this->du_patient + $this->du_tiers;
 }
コード例 #5
0
ファイル: CActe.class.php プロジェクト: fbone/mediboard4
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_montant_facture = $this->montant_base + $this->montant_depassement;
 }
コード例 #6
0
 /**
  * @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;
     }
 }
コード例 #7
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->loadRefsFwd();
     $this->_view = $this->_ref_object->_view . " ({$this->quantity})";
 }
コード例 #8
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = "[{$this->starting_formula} => {$this->closing_formula}]";
 }
コード例 #9
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_file_size = CMbString::toDecaBinary($this->doc_size);
     $this->getSendProblem();
     $this->loadRefCategory();
 }
コード例 #10
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_shortview = "{$this->id400}";
     $this->_view = "[{$this->id400}] ({$this->tag})";
 }
コード例 #11
0
 /**
  * @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;
 }
コード例 #12
0
 /**
  * @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;
             }
     }
 }
コード例 #13
0
 /**
  * @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);
     }
 }
コード例 #14
0
 /**
  * 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);
     }
 }
コード例 #15
0
ファイル: CUserLog.class.php プロジェクト: fbone/mediboard4
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     if ($this->fields) {
         $this->_fields = explode(" ", $this->fields);
     }
 }
コード例 #16
0
 /**
  * @see parent::updateFormFields()
  */
 function updateFormFields()
 {
     parent::updateFormFields();
     $this->_view = $this->nom;
 }