Mercurial > lada > lada-client
diff app/model/Messung.js @ 488:f7446ebfe5d0
Added and updated models.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 31 Oct 2014 21:10:35 +0100 |
parents | debfcc7713e3 |
children | 850ccfe5f3c4 |
line wrap: on
line diff
--- a/app/model/Messung.js Fri Oct 31 21:07:39 2014 +0100 +++ b/app/model/Messung.js Fri Oct 31 21:10:35 2014 +0100 @@ -13,8 +13,8 @@ extend: 'Lada.model.Base', fields: [ {name: "id"}, - {name: "messungsId", mapping:"id.messungsId"}, - {name: "probeId", mapping:"id.probeId"}, + {name: "messungsId"}, + {name: "probeId"}, {name: "mmtId"}, {name: "nebenprobenNr"}, {name: "messdauer"}, @@ -26,21 +26,10 @@ idProperty: "id", proxy: { type: 'rest', - appendId: true, //default url: 'server/rest/messung', reader: { type: 'json', root: 'data' } - }, - getEidi: function() { - var messId = this.get('messungsId'); - var probeId = this.get('probeId'); - return "/" + messId + "/" + probeId; } }); - -function ts2date(v, record){ - // Converts a timestamp into a date object. - return new Date(v); -}