git-svn-id: https://msi/svn/firstRepo/WebClient/branches/NewRelease@41 0f545695-f87b-41b6-9a03-7f16563b5454

This commit is contained in:
2016-01-10 22:18:54 +00:00
parent 66318c9124
commit d6e19b50d8
7 changed files with 295 additions and 29 deletions
+28 -1
View File
@@ -22,7 +22,17 @@ define(['jquery', 'backbone'],
"tema": 'd',
"risRic": '10',
"type": null,
"picture": null
"picture": null,
"isSpacc": 0,
"dataSpacc": {
"provincia": null,
"comune": null,
"cap": null,
"tipopm": null,
"privacy": 0,
"long": null,
"lat": null
}
},
isConnected: function () {
return this.getKeySave() != "null" &&
@@ -58,6 +68,7 @@ define(['jquery', 'backbone'],
{
self.dataloaded = true;
self.data.name = response[0].Name;
self.data.email = response[0].Email;
self.data.gender = response[0].Gender;
self.data.tema = response[0].TemaUI;
self.data.risRic = response[0].RisultatiRicerca;
@@ -65,6 +76,14 @@ define(['jquery', 'backbone'],
self.setKeySave(keyStore);
self.setName(self.data.name);
self.setGender(self.data.gender);
self.data.isSpacc = response[0].bSpacciatore;
self.data.dataSpacc.provincia = response[0].Provincia;
self.data.dataSpacc.comune = response[0].Comune;
self.data.dataSpacc.cap = response[0].Cap;
self.data.dataSpacc.privacy = response[0].bPrivacy;
self.data.dataSpacc.tipopm = response[0].TipoPM;
self.data.dataSpacc.lat = response[0].Latitudine;
self.data.dataSpacc.long = response[0].Longitudine;
retBool = true;
switch (self.data.type)
@@ -99,6 +118,14 @@ define(['jquery', 'backbone'],
this.data.picture = null;
this.data.tema = 'd';
this.data.risRic = '10';
this.data.isSpacc = 0;
this.data.dataSpacc.provincia = null;
this.data.dataSpacc.comune = null;
this.data.dataSpacc.cap = null;
this.data.dataSpacc.tipopm = null;
this.data.dataSpacc.privacy = 0;
this.data.dataSpacc.long = null;
this.data.dataSpacc.lat = null;
this.setKeySave(null);
this.setName("");
this.setGender("");