Mercurial > lada > lada-client
changeset 21:4caf4c8c694a
Added more fields to the probenclass
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 07 May 2013 17:08:08 +0200 |
parents | 764a0aef0f56 |
children | 0a4674f17bcb |
files | app/model/Probe.js |
diffstat | 1 files changed, 29 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/app/model/Probe.js Tue May 07 16:27:40 2013 +0200 +++ b/app/model/Probe.js Tue May 07 17:08:08 2013 +0200 @@ -1,4 +1,32 @@ Ext.define('Lada.model.Probe', { extend: 'Ext.data.Model', - fields: ['datenbasisId', 'probeId'] + fields: [ + {name: "baId"}, + {name: "datenbasisId"}, + {name: "erzeugerId"}, + {name: "hauptprobenNr"}, + {name: "letzteAenderung"}, + {name: "media"}, + {name: "mediaDesk"}, + {name: "mittelungsdauer"}, + {name: "mpKat"}, + {name: "mplId"}, + {name: "mprId"}, + {name: "mstId"}, + {name: "netzbetreiberId"}, + {name: "probeId"}, + {name: "probeNehmerId"}, + {name: "probeentnahmeBeginn", type: 'date', convert: ts2date}, + {name: "probeentnahmeEnde", type: 'date', convert: ts2date}, + {name: "probenartId"}, + {name: "solldatumBeginn", type: 'date', convert: ts2date}, + {name: "solldatumEnde", type: 'date', convert: ts2date}, + {name: "test"}, + {name: "umwId"} + ] }); + +function ts2date(v, record){ + // Converts a timestamp into a date object. + return new Date(v); +}