Mercurial > lada > lada-client
annotate app/view/widgets/Mst.js @ 181:062aa9001eb6
Completed Messwertelist
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Thu, 04 Jul 2013 15:11:01 +0200 |
parents | 19eab475bbe5 |
children | 70a1b5962930 |
rev | line source |
---|---|
31
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
1 // Combobox for Messtelle |
120
19eab475bbe5
Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
107
diff
changeset
|
2 var mstStore = Ext.create('Ext.data.Store', { |
19eab475bbe5
Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
107
diff
changeset
|
3 fields: ['mstId'], |
19eab475bbe5
Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
107
diff
changeset
|
4 proxy: { |
19eab475bbe5
Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
107
diff
changeset
|
5 type: 'ajax', |
19eab475bbe5
Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
107
diff
changeset
|
6 api: { |
19eab475bbe5
Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
107
diff
changeset
|
7 read: 'server/rest/mst' |
19eab475bbe5
Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
107
diff
changeset
|
8 }, |
19eab475bbe5
Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
107
diff
changeset
|
9 reader: { |
19eab475bbe5
Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
107
diff
changeset
|
10 type: 'json', |
19eab475bbe5
Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
107
diff
changeset
|
11 root: 'data' |
19eab475bbe5
Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
107
diff
changeset
|
12 } |
19eab475bbe5
Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
107
diff
changeset
|
13 } |
19eab475bbe5
Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
107
diff
changeset
|
14 }); |
19eab475bbe5
Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
107
diff
changeset
|
15 |
31
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
16 Ext.define('Lada.view.widgets.Mst' ,{ |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 extend: 'Ext.form.ComboBox', |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 alias: 'widget.mst', |
120
19eab475bbe5
Clean up part one. Reduced application to the search page. Moved some stores for comoboboxes right to the combobox
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
107
diff
changeset
|
19 store: mstStore, |
35
3f801444b8d5
Added store for Messstelle. Fill Messstellen widget on search page
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
31
diff
changeset
|
20 displayField:'mstId', |
107
84f32c62670f
Added form to create kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
35
diff
changeset
|
21 valueField: 'mstId', |
84f32c62670f
Added form to create kommentare
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
35
diff
changeset
|
22 typeAhead: true, |
31
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
23 emptyText:'Wählen Sie eine Messstelle', |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 initComponent: function() { |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 this.callParent(arguments); |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 } |
897e3100c6da
Changed logic of the Probenauswahl. Now logic works like the BFS version.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 }); |