annotate app/store/Messeinheit.js @ 480:3ef95496cd28

Added more files to the ignore file
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 21 Jan 2014 17:00:25 +0100
parents debfcc7713e3
children
rev   line source
472
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 337
diff changeset
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 337
diff changeset
2 * Software engineering by Intevation GmbH
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 337
diff changeset
3 *
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 337
diff changeset
4 * This file is Free Software under the GNU GPL (v>=3)
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 337
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 337
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 337
diff changeset
7 */
debfcc7713e3 Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 337
diff changeset
8
337
39297b8e5ba2 Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 260
diff changeset
9 /**
39297b8e5ba2 Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 260
diff changeset
10 * Store for Messeinheit
39297b8e5ba2 Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 260
diff changeset
11 */
112
882566d0b8f3 Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
12 Ext.define('Lada.store.Messeinheit', {
882566d0b8f3 Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
13 extend: 'Ext.data.Store',
882566d0b8f3 Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
14 fields: ['mehId', 'einheit'],
260
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 141
diff changeset
15 sorters: [{
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 141
diff changeset
16 property: 'einheit',
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 141
diff changeset
17 transform: function(val) {
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 141
diff changeset
18 if (val) {
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 141
diff changeset
19 return val.toLowerCase();
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 141
diff changeset
20 } else {
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 141
diff changeset
21 return "";
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 141
diff changeset
22 };
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 141
diff changeset
23 }
70a1b5962930 Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 141
diff changeset
24 }],
141
1fb79e16149f Displaye Messeinheit in the Zusatzwerte Overview.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 112
diff changeset
25 autoLoad: true,
112
882566d0b8f3 Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
26 proxy: {
882566d0b8f3 Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
27 type: 'ajax',
882566d0b8f3 Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
28 api: {
882566d0b8f3 Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
29 read: 'server/rest/messeinheit'
882566d0b8f3 Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
30 },
882566d0b8f3 Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
31 reader: {
882566d0b8f3 Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
32 type: 'json',
882566d0b8f3 Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
33 root: 'data'
882566d0b8f3 Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
34 }
882566d0b8f3 Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
35 }
882566d0b8f3 Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff changeset
36 });

http://lada.wald.intevation.org