commer = new Tabcommerciaux(); $this->ouinonoptionnelle = (new Ouinon())->getListe(); $this->ouinonplafondmodifiable = (new Ouinon())->getListe(); } public function index() { $id = $this->requete->getParametreFormulaire("id"); $commer = $this->commer->getcommerciaux($id); $bureau = $this->commer->getBureaucommerciaux(); $typeapp = $this->commer->getTypecommerciaux(); $this->genererVueAjax(array( 'ouinonoptionnelle' => $this->ouinonoptionnelle, 'ouinonplafondmodifiable' => $this->ouinonplafondmodifiable, 'commerciaux' => $commer, 'bureau' => $bureau, 'typeapp' => $typeapp )); } public function modifier(){ $id = $this->requete->getParametreFormulaire("id"); //$codeApporteur = strtoupper($this->requete->getParametreFormulaire("codeApporteur")); $codeTypeApporteur = strtoupper($this->requete->getParametreFormulaire("codeTypeApporteur")); $libelle = strtoupper($this->requete->getParametreFormulaire("libelle")); $nomResponsable = strtoupper($this->requete->getParametreFormulaire("nomResponsable")); $telephone = $this->requete->getParametreFormulaire("telephone"); $email = $this->requete->getParametreFormulaire("email"); $codeBureau = $this->requete->getParametreFormulaire("codeBureau"); $deduireComm = $this->requete->getParametreFormulaire("deduireComm"); $adressePost = strtoupper($this->requete->getParametreFormulaire("adressePost")); $adresseGeo = strtoupper($this->requete->getParametreFormulaire("adresseGeo")); $typeSysteme = $this->requete->getParametreFormulaire("typeSysteme"); $mobilePaiement = $this->requete->getParametreFormulaire("mobilePaiement","numerique"); $this->commer->modifiercommerciaux($codeTypeApporteur,$libelle,$telephone,$email,$adresseGeo, $adressePost,$nomResponsable,$codeBureau,$deduireComm,$typeSysteme,$mobilePaiement,$id); } }