Mercurial > lada > lada-client
annotate app/view/widgets/Nwg.js @ 525:5960189e4461
Make tables editable for 'Messwerte'
See LSB 3.5
author | Roland Geider <roland.geider@intevation.de> |
---|---|
date | Tue, 16 Dec 2014 18:21:19 +0100 |
parents | 7c0653e8d9f7 |
children |
rev | line source |
---|---|
472
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
443
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:
443
diff
changeset
|
2 * Software engineering by Intevation GmbH |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
443
diff
changeset
|
3 * |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
443
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:
443
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
472
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
443
diff
changeset
|
7 */ |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
443
diff
changeset
|
8 |
443
0ab89a3b9090
Added new widget to enter the value for messwertNwg in when creating new messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
9 var nwgStore = Ext.create('Ext.data.Store', { |
0ab89a3b9090
Added new widget to enter the value for messwertNwg in when creating new messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
10 fields: ['nwgId', 'nwg'], |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
11 data: [{ |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
12 'nwgId': '', |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
13 'nwg': '>=' |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
14 }, { |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
15 'nwgId': '<', |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
16 'nwg': '<' |
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
17 }] |
443
0ab89a3b9090
Added new widget to enter the value for messwertNwg in when creating new messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 }); |
0ab89a3b9090
Added new widget to enter the value for messwertNwg in when creating new messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
19 |
0ab89a3b9090
Added new widget to enter the value for messwertNwg in when creating new messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
20 /** |
0ab89a3b9090
Added new widget to enter the value for messwertNwg in when creating new messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
21 * Combobox for Nachweisgrenze. |
0ab89a3b9090
Added new widget to enter the value for messwertNwg in when creating new messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 */ |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
23 Ext.define('Lada.view.widgets.Nwg', { |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
472
diff
changeset
|
24 extend: 'Ext.form.ComboBox', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
472
diff
changeset
|
25 editable: false, |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
472
diff
changeset
|
26 alias: 'widget.nwg', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
472
diff
changeset
|
27 store: nwgStore, |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
472
diff
changeset
|
28 queryMode: 'local', |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
29 displayField: 'nwg', |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
472
diff
changeset
|
30 valueField: 'nwgId', |
497
7c0653e8d9f7
Fixed some js related issues (unused vars, arrays, etc.) and code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
31 emptyText: 'Messwert kleiner als Nachweisgrenze?', |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
472
diff
changeset
|
32 |
443
0ab89a3b9090
Added new widget to enter the value for messwertNwg in when creating new messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
33 initComponent: function() { |
0ab89a3b9090
Added new widget to enter the value for messwertNwg in when creating new messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
34 this.callParent(arguments); |
0ab89a3b9090
Added new widget to enter the value for messwertNwg in when creating new messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
35 } |
0ab89a3b9090
Added new widget to enter the value for messwertNwg in when creating new messwerte.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
36 }); |