31 |
} // fin constructeur |
} // fin constructeur |
32 |
|
|
33 |
function setValFAjout($val = array()) { |
function setValFAjout($val = array()) { |
34 |
/* |
$this->valF['dossier'] = $val['dossier_autorisation']; |
|
// Cle primaire |
|
|
$lettre=$this->f->collectivite["lettre"]; |
|
|
$numero_unique = $this->f->collectivite["numero_unique"]; |
|
|
if($numero_unique==1){ |
|
|
// numero unique (voir dyn/var.inc) |
|
|
$temp=$this->$db->nextId(DB_PREFIXE.$this->table); |
|
|
}else{ |
|
|
// numero suivant nature |
|
|
$temp=$this->db->nextId(DB_PREFIXE."dossier_".$val['nature']); |
|
|
} |
|
|
$temp=str_pad($temp,4,"0", STR_PAD_LEFT); |
|
|
$this->valF['dossier'] = $this->valF['nature'].$this->valF['annee']. |
|
|
$lettre.$temp; |
|
|
*/ |
|
|
$this->valF['dossier'] = time(); |
|
35 |
} |
} |
36 |
|
|
37 |
function setvalF($val){ |
function setvalF($val){ |
304 |
if(!$this->f->getParameter('afficher_division') === 'true') { |
if(!$this->f->getParameter('afficher_division') === 'true') { |
305 |
$form->setType('division', 'hidden'); |
$form->setType('division', 'hidden'); |
306 |
} |
} |
307 |
|
$form->setType('dossier_autorisation', 'hiddenstatic'); |
308 |
} |
} |
309 |
|
|
310 |
function setVal(&$form,$maj,$validation){ |
function setVal(&$form,$maj,$validation){ |