74 lines
3.6 KiB
PHP
Executable File
74 lines
3.6 KiB
PHP
Executable File
<?php
|
|
require_once 'Framework/Controleur.php';
|
|
require_once 'Modele/Societeuser.php';
|
|
|
|
class ControleurAjaxcreercentregestion extends Controleur {
|
|
private $societe;
|
|
|
|
public function __construct() {
|
|
$this->societe = new Societeuser();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
}
|
|
|
|
|
|
public function rechercher()
|
|
{
|
|
$codeSociete = $this->requete->getParametreFormulaire("codeSociete");
|
|
|
|
$bool = $this->societe->existeligne($codeSociete);
|
|
|
|
echo $bool ? 'true' : 'false';
|
|
}
|
|
|
|
public function creersocieteuser()
|
|
{
|
|
$codeSociete = $this->requete->getParametreFormulaire("codeSociete");
|
|
$nomCentreGestion = strtoupper($this->requete->getParametreFormulaire("nomCentreGestion"));
|
|
$adresseGeoSociete = $this->requete->getParametreFormulaire("adresseGeoSociete");
|
|
$adressePostSociete = $this->requete->getParametreFormulaire("adressePostSociete");
|
|
$codePays = $this->requete->getParametreFormulaire("codePays");
|
|
$ville = $this->requete->getParametreFormulaire("ville");
|
|
$telephoneSociete = $this->requete->getParametreFormulaire("telephoneSociete");
|
|
$faxSociete = $this->requete->getParametreFormulaire("faxSociete");
|
|
$portable = $this->requete->getParametreFormulaire("portable");
|
|
$nomResponsable = $this->requete->getParametreFormulaire("nomResponsable");
|
|
$sigleSociete = $this->requete->getParametreFormulaire("sigleSociete");
|
|
$emailSociete = $this->requete->getParametreFormulaire("emailSociete");
|
|
|
|
$emailMedecinConseil = $this->requete->getParametreFormulaire("emailMedecinConseil");
|
|
$emailGestionBon = $this->requete->getParametreFormulaire("emailGestionBon");
|
|
$emailCcomptabilite = $this->requete->getParametreFormulaire("emailCcomptabilite");
|
|
$emailDerogation = $this->requete->getParametreFormulaire("emailDerogation");
|
|
$emailAccordPrealable = $this->requete->getParametreFormulaire("emailAccordPrealable");
|
|
$emailFraudeFinger = $this->requete->getParametreFormulaire("emailFraudeFinger");
|
|
$email_standard = $this->requete->getParametreFormulaire("email_standard");
|
|
$email_reply = $this->requete->getParametreFormulaire("email_reply");
|
|
|
|
$smsMedecinConseil = $this->requete->getParametreFormulaire("smsMedecinConseil");
|
|
|
|
|
|
|
|
$codeLangueSociete = $this->requete->getParametreFormulaire("codeLangueSociete");
|
|
$codePrefixePolice = $this->requete->getParametreFormulaire("codePrefixePolice");
|
|
$smsGestionBon = $this->requete->getParametreFormulaire("smsGestionBon");
|
|
$smsDerogation = $this->requete->getParametreFormulaire("smsDerogation");
|
|
$smsAccordPrealable = $this->requete->getParametreFormulaire("smsAccordPrealable");
|
|
|
|
|
|
|
|
$fraisCarteAN = $this->requete->getParametreFormulaire("fraisCarteAN");
|
|
$spMax = $this->requete->getParametreFormulaire("spMax");
|
|
$indicatifTelephone = $this->requete->getParametreFormulaire("indicatifTelephone");
|
|
$codeTypeSociete = $this->requete->getParametreFormulaire("codeTypeSociete");
|
|
|
|
|
|
$this->societe->creersocieteuser($codeSociete, $nomCentreGestion, $adresseGeoSociete, $adressePostSociete,
|
|
$codePays, $ville, $telephoneSociete, $faxSociete, $portable, $nomResponsable, $sigleSociete, $emailSociete,
|
|
$emailMedecinConseil, $emailGestionBon, $emailCcomptabilite, $emailDerogation, $emailAccordPrealable,
|
|
$emailFraudeFinger, $email_standard, $email_reply, $smsMedecinConseil, $codeLangueSociete, $codePrefixePolice,
|
|
$smsGestionBon, $smsDerogation, $smsAccordPrealable, $fraisCarteAN, $spMax, $indicatifTelephone, $codeTypeSociete);
|
|
}
|
|
} |