342 |
"to_char(consultation.date_reception ,'DD/MM/YYYY') as \"date_reception\"", |
"to_char(consultation.date_reception ,'DD/MM/YYYY') as \"date_reception\"", |
343 |
"to_char(consultation.date_limite ,'DD/MM/YYYY') as \"date_limite\"", |
"to_char(consultation.date_limite ,'DD/MM/YYYY') as \"date_limite\"", |
344 |
"visible", |
"visible", |
345 |
|
"motif_pec", |
346 |
"fichier_pec", |
"fichier_pec", |
347 |
"to_char(consultation.date_retour ,'DD/MM/YYYY') as \"date_retour\"", |
"to_char(consultation.date_retour ,'DD/MM/YYYY') as \"date_retour\"", |
348 |
"avis_consultation", |
"avis_consultation", |
1817 |
$form->setLib('tiers_consulte', __('tiers consulté')); |
$form->setLib('tiers_consulte', __('tiers consulté')); |
1818 |
$form->setLib('motif_consultation', _('motif de la consultation')); |
$form->setLib('motif_consultation', _('motif de la consultation')); |
1819 |
$form->setLib('fichier_pec', __('Fichier')); |
$form->setLib('fichier_pec', __('Fichier')); |
1820 |
|
$form->setLib('motif_pec', __('Motif')); |
1821 |
} |
} |
1822 |
|
|
1823 |
function setType(&$form,$maj) { |
function setType(&$form,$maj) { |
1837 |
$form->setType('prenom_auteur', 'hidden'); |
$form->setType('prenom_auteur', 'hidden'); |
1838 |
$form->setType('qualite_auteur', 'hidden'); |
$form->setType('qualite_auteur', 'hidden'); |
1839 |
$form->setType('qualite_auteur', 'hidden'); |
$form->setType('qualite_auteur', 'hidden'); |
1840 |
|
$form->setType('motif_pec', 'hidden'); |
1841 |
$form->setType('fichier_pec', 'hidden'); |
$form->setType('fichier_pec', 'hidden'); |
1842 |
// MODE - AJOUTER et MODE - AJOUTER CONSULTATION TIERS |
// MODE - AJOUTER et MODE - AJOUTER CONSULTATION TIERS |
1843 |
if ($maj == 0 || $maj == 41) { |
if ($maj == 0 || $maj == 41) { |
1980 |
$form->setType("nom_auteur", "static"); |
$form->setType("nom_auteur", "static"); |
1981 |
$form->setType("prenom_auteur", "static"); |
$form->setType("prenom_auteur", "static"); |
1982 |
$form->setType("qualite_auteur", "static"); |
$form->setType("qualite_auteur", "static"); |
1983 |
|
$form->setType("motif_pec", "textareastatic"); |
1984 |
$form->setType("fichier_pec", "file"); |
$form->setType("fichier_pec", "file"); |
1985 |
} |
} |
1986 |
} else { // Affichage d'un consultation d'un tiers |
} else { // Affichage d'un consultation d'un tiers |
2584 |
$form->setFieldset('visible','F',''); |
$form->setFieldset('visible','F',''); |
2585 |
$form->setBloc('visible','F'); |
$form->setBloc('visible','F'); |
2586 |
|
|
2587 |
$form->setBloc('fichier_pec','D',""); |
$form->setBloc('motif_pec','D',""); |
2588 |
$form->setFieldset('fichier_pec','DF',_('Prise en compte')); |
$form->setFieldset('motif_pec','D',_('Prise en compte')); |
2589 |
|
$form->setFieldset('fichier_pec','F',''); |
2590 |
$form->setBloc('fichier_pec','F'); |
$form->setBloc('fichier_pec','F'); |
2591 |
|
|
2592 |
|
|
3376 |
public function generate_filename($p_fichier = null, $p_consultation_id = null, $p_extension = null, $is_pec = false) { |
public function generate_filename($p_fichier = null, $p_consultation_id = null, $p_extension = null, $is_pec = false) { |
3377 |
// Le fichier est soit passé en paramètre, soit récupéré des valeurs validées |
// Le fichier est soit passé en paramètre, soit récupéré des valeurs validées |
3378 |
// du formulaire en cours, soit récupéré des valeurs enregistrées de l'objet courant |
// du formulaire en cours, soit récupéré des valeurs enregistrées de l'objet courant |
3379 |
|
// Le fichier est soit passé en paramètre, soit récupéré des valeurs validées |
3380 |
|
// du formulaire en cours, soit récupéré des valeurs enregistrées de l'objet courant |
3381 |
$fichier = $p_fichier; |
$fichier = $p_fichier; |
3382 |
if ($p_fichier === null) { |
if ($p_fichier === null) { |
3383 |
$fichier = isset($this->valF['fichier']) === true && $this->valF['fichier'] !== null ? $this->valF['fichier'] : $this->getVal('fichier'); |
$fichier = isset($this->valF['fichier']) === true && $this->valF['fichier'] !== null ? $this->valF['fichier'] : $this->getVal('fichier'); |