Mercurial > lada > lada-client
annotate app/model/Probe.js @ 58:26863a7af202
Added action attributes to the buttons in the toolbar of the kommentar list
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 29 May 2013 15:22:38 +0200 |
parents | 2fbd53b944fc |
children | 9e2e09e819fd |
rev | line source |
---|---|
13
a8efc4b96888
Added model for Proben and a Store.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
1 Ext.define('Lada.model.Probe', { |
a8efc4b96888
Added model for Proben and a Store.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
2 extend: 'Ext.data.Model', |
21
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
3 fields: [ |
50
2fbd53b944fc
Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
21
diff
changeset
|
4 {name: "probeId"}, |
21
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
5 {name: "baId"}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
6 {name: "datenbasisId"}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
7 {name: "erzeugerId"}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
8 {name: "hauptprobenNr"}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
9 {name: "letzteAenderung"}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
10 {name: "media"}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
11 {name: "mediaDesk"}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
12 {name: "mittelungsdauer"}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
13 {name: "mpKat"}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
14 {name: "mplId"}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
15 {name: "mprId"}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
16 {name: "mstId"}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
17 {name: "netzbetreiberId"}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
18 {name: "probeId"}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
19 {name: "probeNehmerId"}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
20 {name: "probeentnahmeBeginn", type: 'date', convert: ts2date}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
21 {name: "probeentnahmeEnde", type: 'date', convert: ts2date}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
22 {name: "probenartId"}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
23 {name: "solldatumBeginn", type: 'date', convert: ts2date}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
24 {name: "solldatumEnde", type: 'date', convert: ts2date}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
25 {name: "test"}, |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
26 {name: "umwId"} |
50
2fbd53b944fc
Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
21
diff
changeset
|
27 ], |
2fbd53b944fc
Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
21
diff
changeset
|
28 proxy: { |
2fbd53b944fc
Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
21
diff
changeset
|
29 type: 'rest', |
2fbd53b944fc
Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
21
diff
changeset
|
30 appendId: true, //default |
2fbd53b944fc
Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
21
diff
changeset
|
31 url: 'server/rest/proben', |
2fbd53b944fc
Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
21
diff
changeset
|
32 api: { |
2fbd53b944fc
Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
21
diff
changeset
|
33 }, |
2fbd53b944fc
Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
21
diff
changeset
|
34 reader: { |
2fbd53b944fc
Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
21
diff
changeset
|
35 type: 'json' |
2fbd53b944fc
Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
21
diff
changeset
|
36 } |
2fbd53b944fc
Move proxy definition into the model. Else the building of the URL does not
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
21
diff
changeset
|
37 } |
13
a8efc4b96888
Added model for Proben and a Store.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
38 }); |
21
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
39 |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
40 function ts2date(v, record){ |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
41 // Converts a timestamp into a date object. |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
42 return new Date(v); |
4caf4c8c694a
Added more fields to the probenclass
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
13
diff
changeset
|
43 } |