1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
function Client(){
var vID,vPolitesse,vActif,vName,vFirstName,vSociete,vType,vTelPrive,vTelPro,vTelMob,vFax,vMail,vIDRue,vRue,vCP,vLocalite,vPays,vCommentaire,vContacts;
this.setClientInfos = function(vID,vPolitesse,vActif,vName,vFirstName,vSociete,vType,vTelPrive,vTelPro,vTelMob,vFax,vMail,vIDRue,vRue,vCP,vLocalite,vPays,vCommentaire,vContacts){
this.vID = vID;
this.vPolitesse = vPolitesse;
this.vActif = vActif;
this.vName = vName;
this.vFirstName = vFirstName;
this.vSociete = vSociete;
this.vType = vType;
this.vTelPrive = vTelPrive;
this.vTelPro = vTelPro;
this.vTelMob = vTelMob;
this.vFax = vFax;
this.vMail = vMail;
this.vIDRue = vIDRue;
this.vRue = vRue;
this.vCP = vCP;
this.vLocalite = vLocalite;
this.vPays = vPays;
this.vCommentaire = vCommentaire;
this.vContacts = vContacts;
}
this.getClientInfos = function(){
return {"client":[
{
"id":vID,
"politesse":vPolitesse,
"actif":vActif,
"nom":vName,
"prenom":vFirstName,
"societe":vSociete,
"type":vType,
"telprive":vTelPrive,
"telpro":vTelPro,
"telmob":vTelMob,
"fax":vFax,
"mail":vMail,
"idrue":vIDRue,
"Rue":vRue,
"cp":vCP,
"localite":vLocalite,
"pays":vPays,
"commentaire":vCommentaire,
"contacts":vContacts
}
]};
}
this.RequeteGetClient = function(){
//Requête qui récupère les informations du client pour que je puisse ensuite faire un setClientInfos(.....);
}
this.RequeteSetClient = function(){
//Requête qui vas envoyer les informations du client pour les enregistrer
}
} |