45 |
$form->setMax('destination', 2); |
$form->setMax('destination', 2); |
46 |
$form->setMax('dossier', 12); |
$form->setMax('dossier', 12); |
47 |
} |
} |
48 |
|
|
49 |
|
function setLib(&$form,$maj) { |
50 |
|
parent::setLib($form,$maj); |
51 |
|
$form->setLib('shon_anterieure',_('shon existante avant travaux')); |
52 |
|
$form->setLib('shon_demolie',_('shon demolie ou transformée en shob')); |
53 |
|
$form->setLib('shon_anterieure_supprimee',_('shon supprimee par changement de destination')); |
54 |
|
$form->setLib('shon_nouvelle_transformee',_('shon creee par changement de destination')); |
55 |
|
$form->setLib('shon_nouvelle',_('shon construite')); |
56 |
|
$form->setLib('shon_shob_transformee',_('shon creee par transformation de shob en shon')); |
57 |
|
} |
58 |
|
|
59 |
|
function setOnchange(&$form,$maj) { |
60 |
|
parent::setOnchange($form,$maj); |
61 |
|
$form->setOnchange('shon_anterieure','VerifNumdec(this)'); |
62 |
|
$form->setOnchange('shon_demolie','VerifNumdec(this)'); |
63 |
|
$form->setOnchange('shon_anterieure_supprimee','VerifNumdec(this)'); |
64 |
|
$form->setOnchange('shon_nouvelle_transformee','VerifNumdec(this)'); |
65 |
|
$form->setOnchange('shon_nouvelle','VerifNumdec(this)'); |
66 |
|
$form->setOnchange('shon_shob_transformee','VerifNumdec(this)'); |
67 |
|
} |
68 |
|
|
69 |
|
|
70 |
function triggerajouter($id,&$db,$val,$DEBUG){ |
function triggerajouter($id,&$db,$val,$DEBUG){ |
71 |
$this->calculshon($val); |
$this->calculshon($val); |
171 |
//$val['shon']."***"; |
//$val['shon']."***"; |
172 |
} |
} |
173 |
|
|
174 |
|
|
175 |
|
|
176 |
|
|
177 |
}// fin classe |
}// fin classe |
178 |
?> |
?> |