12 |
function setValFAjout($val){ |
function setValFAjout($val){ |
13 |
$this->valF['service'] = $val['service']; |
$this->valF['service'] = $val['service']; |
14 |
} |
} |
|
|
|
15 |
function setvalF($val){ |
function setvalF($val){ |
16 |
parent::setvalF($val); |
parent::setvalF($val); |
17 |
// cles secondaires numerique (contrainte integrite pgsql) |
// cles secondaires numerique (contrainte integrite pgsql) |
18 |
if($val['avis']=='') $this->valF['avis']= null; |
if($val['avis']=='') $this->valF['avis']= null; |
19 |
} |
} |
|
|
|
|
function verifier(){ |
|
|
$this->correct=True; |
|
|
$imgv=""; |
|
|
$f=" ! "; |
|
|
$imgv="<img src='../app/img/punaise.png' style='vertical-align:middle' hspace='2' border='0'>"; |
|
|
if ($this->valF['service']==""){ |
|
|
$this->correct=false; |
|
|
$this->msg= $this->msg.$imgv." "._("service")." ". |
|
|
_("obligatoire").$f; |
|
|
} |
|
|
if ($this->valF['dossier']==""){ |
|
|
$this->correct=false; |
|
|
$this->msg= $this->msg.$imgv." "._("dossier")." ". |
|
|
_("obligatoire").$f; |
|
|
} |
|
|
if ($this->valF['date_envoi']==""){ |
|
|
$this->correct=false; |
|
|
$this->msg= $this->msg.$imgv." "._("date_envoi")." ". |
|
|
_("obligatoire").$f; |
|
|
} |
|
|
} |
|
|
|
|
20 |
function setValsousformulaire(&$form,$maj,$validation,$idxformulaire,$retourformulaire,$typeformulaire){ |
function setValsousformulaire(&$form,$maj,$validation,$idxformulaire,$retourformulaire,$typeformulaire){ |
21 |
if ($validation==0) { |
if ($validation==0) { |
22 |
if ($maj == 0){ |
if ($maj == 0){ |
48 |
} |
} |
49 |
} |
} |
50 |
|
|
|
function setTaille(&$form,$maj){ |
|
|
$form->setTaille('consultation', 8); |
|
|
$form->setTaille('dossier', 12); |
|
|
$form->setTaille('service', 5); |
|
|
$form->setTaille('date_envoi', 12); |
|
|
$form->setTaille('date_retour', 12); |
|
|
$form->setTaille('avis', 2); |
|
|
$form->setTaille('date_limite', 12); |
|
|
} |
|
|
|
|
|
function setMax(&$form,$maj){ |
|
|
$form->setMax('consultation', 8); |
|
|
$form->setMax('dossier', 12); |
|
|
$form->setMax('service', 5); |
|
|
$form->setMax('date_envoi', 12); |
|
|
$form->setMax('date_retour', 12); |
|
|
$form->setMax('avis', 2); |
|
|
$form->setMax('date_limite', 12); |
|
|
} |
|
|
|
|
|
|
|
51 |
// TRIGGER AVANT MODIFICATION DE DONNEES |
// TRIGGER AVANT MODIFICATION DE DONNEES |
52 |
// trigger before modification data |
// trigger before modification data |
53 |
function triggerajouter($id,&$db,$val,$DEBUG) { |
function triggerajouter($id,&$db,$val,$DEBUG) { |
101 |
return $annee."-".$mois."-".$jour ; |
return $annee."-".$mois."-".$jour ; |
102 |
} |
} |
103 |
|
|
|
|
|
|
// pas de cle secondaire consultation dans evenement / pb de generation auto |
|
|
function cleSecondaire($id, &$db = NULL, $val = array(), $DEBUG = false) { |
|
|
$this->correct = true; |
|
|
} |
|
|
|
|
104 |
}// fin classe |
}// fin classe |
105 |
?> |
?> |