Mercurial > lada > lada-client
comparison app/model/Probe.js @ 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 | a8efc4b96888 |
children | 2fbd53b944fc |
comparison
equal
deleted
inserted
replaced
20:764a0aef0f56 | 21:4caf4c8c694a |
---|---|
1 Ext.define('Lada.model.Probe', { | 1 Ext.define('Lada.model.Probe', { |
2 extend: 'Ext.data.Model', | 2 extend: 'Ext.data.Model', |
3 fields: ['datenbasisId', 'probeId'] | 3 fields: [ |
4 {name: "baId"}, | |
5 {name: "datenbasisId"}, | |
6 {name: "erzeugerId"}, | |
7 {name: "hauptprobenNr"}, | |
8 {name: "letzteAenderung"}, | |
9 {name: "media"}, | |
10 {name: "mediaDesk"}, | |
11 {name: "mittelungsdauer"}, | |
12 {name: "mpKat"}, | |
13 {name: "mplId"}, | |
14 {name: "mprId"}, | |
15 {name: "mstId"}, | |
16 {name: "netzbetreiberId"}, | |
17 {name: "probeId"}, | |
18 {name: "probeNehmerId"}, | |
19 {name: "probeentnahmeBeginn", type: 'date', convert: ts2date}, | |
20 {name: "probeentnahmeEnde", type: 'date', convert: ts2date}, | |
21 {name: "probenartId"}, | |
22 {name: "solldatumBeginn", type: 'date', convert: ts2date}, | |
23 {name: "solldatumEnde", type: 'date', convert: ts2date}, | |
24 {name: "test"}, | |
25 {name: "umwId"} | |
26 ] | |
4 }); | 27 }); |
28 | |
29 function ts2date(v, record){ | |
30 // Converts a timestamp into a date object. | |
31 return new Date(v); | |
32 } |