Mercurial > lada > lada-client
annotate app/store/Messeinheit.js @ 362:6a7a9267e00f
Issue56: Changed way how to set the form and window to readonly. Now all dialogs should
habe proper readonly settings. Now the Save and Cancel button are displayed as
needed.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Thu, 15 Aug 2013 14:07:35 +0200 |
parents | 39297b8e5ba2 |
children | debfcc7713e3 |
rev | line source |
---|---|
337
39297b8e5ba2
Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
260
diff
changeset
|
1 /** |
39297b8e5ba2
Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
260
diff
changeset
|
2 * Store for Messeinheit |
39297b8e5ba2
Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
260
diff
changeset
|
3 */ |
112
882566d0b8f3
Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
4 Ext.define('Lada.store.Messeinheit', { |
882566d0b8f3
Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
5 extend: 'Ext.data.Store', |
882566d0b8f3
Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
6 fields: ['mehId', 'einheit'], |
260
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
141
diff
changeset
|
7 sorters: [{ |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
141
diff
changeset
|
8 property: 'einheit', |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
141
diff
changeset
|
9 transform: function(val) { |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
141
diff
changeset
|
10 if (val) { |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
141
diff
changeset
|
11 return val.toLowerCase(); |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
141
diff
changeset
|
12 } else { |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
141
diff
changeset
|
13 return ""; |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
141
diff
changeset
|
14 }; |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
141
diff
changeset
|
15 } |
70a1b5962930
Issue50: Added sorting on the most stores.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
141
diff
changeset
|
16 }], |
141
1fb79e16149f
Displaye Messeinheit in the Zusatzwerte Overview.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
112
diff
changeset
|
17 autoLoad: true, |
112
882566d0b8f3
Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 proxy: { |
882566d0b8f3
Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 type: 'ajax', |
882566d0b8f3
Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 api: { |
882566d0b8f3
Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 read: 'server/rest/messeinheit' |
882566d0b8f3
Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 }, |
882566d0b8f3
Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 reader: { |
882566d0b8f3
Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 type: 'json', |
882566d0b8f3
Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 root: 'data' |
882566d0b8f3
Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 } |
882566d0b8f3
Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 } |
882566d0b8f3
Added widgets for messeinheiten und zusatzwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
28 }); |