Mercurial > lada > lada-client
annotate app/store/Messgroessen.js @ 835:de63d8b4926a
Added tag 2.0.1 for changeset 2214aea9fd3a
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 16 Jun 2015 10:30:33 +0200 |
parents | 31eaed998531 |
children | f73ca04d73a7 |
rev | line source |
---|---|
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
2 * Software engineering by Intevation GmbH |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
3 * |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
7 */ |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
8 |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
9 /** |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
10 * Store for Messgroessen |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
11 */ |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
12 Ext.define('Lada.store.Messgroessen', { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
13 extend: 'Ext.data.Store', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
14 model: 'Lada.model.Messgroesse', |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
15 sorters: [{ |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
16 property: 'messgroesse', |
739
efb1369a8cac
Enabled autocompletion for Messwerte in a Messung.
Dustin Demuth <dustin@intevation.de>
parents:
548
diff
changeset
|
17 direction: 'ASC', |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
18 transform: function(val) { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
19 if (val) { |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
20 return val.toLowerCase(); |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
21 } |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
22 return ''; |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
23 } |
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
24 }], |
766
31eaed998531
enabled removal and creation of messgroessen for a messmethode
Dustin Demuth <dustin@intevation.de>
parents:
739
diff
changeset
|
25 autoLoad: true, |
31eaed998531
enabled removal and creation of messgroessen for a messmethode
Dustin Demuth <dustin@intevation.de>
parents:
739
diff
changeset
|
26 |
31eaed998531
enabled removal and creation of messgroessen for a messmethode
Dustin Demuth <dustin@intevation.de>
parents:
739
diff
changeset
|
27 proxy: { |
31eaed998531
enabled removal and creation of messgroessen for a messmethode
Dustin Demuth <dustin@intevation.de>
parents:
739
diff
changeset
|
28 type: 'rest', |
31eaed998531
enabled removal and creation of messgroessen for a messmethode
Dustin Demuth <dustin@intevation.de>
parents:
739
diff
changeset
|
29 url: 'lada-server/messgroesse', |
31eaed998531
enabled removal and creation of messgroessen for a messmethode
Dustin Demuth <dustin@intevation.de>
parents:
739
diff
changeset
|
30 reader: { |
31eaed998531
enabled removal and creation of messgroessen for a messmethode
Dustin Demuth <dustin@intevation.de>
parents:
739
diff
changeset
|
31 type: 'json', |
31eaed998531
enabled removal and creation of messgroessen for a messmethode
Dustin Demuth <dustin@intevation.de>
parents:
739
diff
changeset
|
32 root: 'data' |
31eaed998531
enabled removal and creation of messgroessen for a messmethode
Dustin Demuth <dustin@intevation.de>
parents:
739
diff
changeset
|
33 } |
31eaed998531
enabled removal and creation of messgroessen for a messmethode
Dustin Demuth <dustin@intevation.de>
parents:
739
diff
changeset
|
34 } |
31eaed998531
enabled removal and creation of messgroessen for a messmethode
Dustin Demuth <dustin@intevation.de>
parents:
739
diff
changeset
|
35 |
548
d47ee7439f44
Added new js files.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
36 }); |