comparison app/store/Probenintervall.js @ 757:b8502964f5c3

Added missing files. Added MmtMockup
author Dustin Demuth <dustin@intevation.de>
date Wed, 06 May 2015 14:15:37 +0200
parents
children d2ee6858f452
comparison
equal deleted inserted replaced
756:f2db1ae1d012 757:b8502964f5c3
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
2 * Software engineering by Intevation GmbH
3 *
4 * This file is Free Software under the GNU GPL (v>=3)
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
6 * the documentation coming with IMIS-Labordaten-Application for details.
7 */
8
9 /**
10 * This is a Store which maps between the identifiers
11 * of a probenintervall and their meanings.
12 */
13
14 Ext.define('Lada.store.Probenintervall', {
15 extend: 'Ext.data.Store',
16 fields: ['probenintervall',
17 {
18 name: 'piTexti18nId',
19 convert: translateStore
20 },
21 'periodstart',
22 'periodend'],
23 storeId: 'probenintervall',
24 data: [{
25 'probenintervall': 'J',
26 'piTexti18nId': 'pi.yearly',
27 'periodstart': 1,
28 'periodend': 365
29 }, {
30 'probenintervall': 'H',
31 'piTexti18nId': 'pi.halfyearly',
32 'periodstart': 1,
33 'periodend': 183
34 }, {
35 'probenintervall': 'Q',
36 'piTexti18nId': 'pi.quarteryearly',
37 'periodstart': 1,
38 'periodend': 91
39 }, {
40 'probenintervall': 'M',
41 'piTexti18nId': 'pi.monthly',
42 'periodstart': 1,
43 'periodend': 30
44 }, {
45 'probenintervall': 'W4',
46 'piTexti18nId': 'pi.fourweekly',
47 'periodstart': 1,
48 'periodend': 28
49 }, {
50 'probenintervall': 'W2',
51 'piTexti18nId': 'pi.twoweekly',
52 'periodstart': 1,
53 'periodend': 14
54 }, {
55 'probenintervall': 'W',
56 'piTexti18nId': 'pi.weekly',
57 'periodstart': 1,
58 'periodend': 7
59 }, {
60 'probenintervall': 'T',
61 'piTexti18nId': 'pi.daily',
62 'periodstart': 1,
63 'periodend': 1
64 }],
65 sorters: [{
66 property: 'periodend',
67 direction: 'DESC',
68 }],
69 sortOnLoad: true,
70 remoteSort: false,
71 });
72
73 function translateStore(v, record){
74 // TODO currently Lada.get... can not be found when this code is run.
75 // var i18n = Lada.getApplication().bundle;
76 // return i18n.getMsg(v);
77 return v;
78 }
79

http://lada.wald.intevation.org