Mercurial > lada > lada-client
annotate app/store/StaProbenzusaetze.js @ 494:f699f6683b16
Fixed typo in pflichtmessgroessen store.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 03 Nov 2014 12:11:06 +0100 |
parents | 6056a7fd9aa2 |
children |
rev | line source |
---|---|
489
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
2 * Software engineering by Intevation GmbH |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
3 * |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
7 */ |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
8 |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
9 /** |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
10 * Store for Probenzusaetze |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
11 */ |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
12 Ext.define('Lada.store.StaProbenzusaetze', { |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
13 extend: 'Ext.data.Store', |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
14 model: 'Lada.model.StaProbenzusatz', |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
15 sorters: [{ |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
16 property: 'zusatzwert', |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
17 transform: function(val) { |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
18 if (val) { |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
19 return val.toLowerCase(); |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
20 } else { |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
21 return ""; |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
22 }; |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
23 } |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
24 }], |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
25 autoLoad: true |
6056a7fd9aa2
Added and updated stores.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
26 }); |