Mercurial > lada > lada-client
comparison app/view/widget/MessprogrammLand.js @ 1128:9c8b5cbb929a
complete some comboboxes in probe form and messprogramm form
author | Michael Stanko <mstanko@bfs.de> |
---|---|
date | Tue, 24 May 2016 15:54:12 +0200 |
parents | 92c0fa2f29b0 |
children | 74e4e5a7adc7 |
comparison
equal
deleted
inserted
replaced
1126:f1d234a7adc7 | 1128:9c8b5cbb929a |
---|---|
12 Ext.define('Lada.view.widget.MessprogrammLand', { | 12 Ext.define('Lada.view.widget.MessprogrammLand', { |
13 extend: 'Lada.view.widget.base.ComboBox', | 13 extend: 'Lada.view.widget.base.ComboBox', |
14 alias: 'widget.messprogrammland', | 14 alias: 'widget.messprogrammland', |
15 store: 'messprogrammkategorie', | 15 store: 'messprogrammkategorie', |
16 displayField: 'id', | 16 displayField: 'id', |
17 valueField: 'id', | 17 valueField: 'mplId', |
18 emptyText: 'Wählen Sie ein Landesmessprogramm', | |
19 editable: this.editable || false, | 18 editable: this.editable || false, |
20 forceSelection: true, | 19 forceSelection: true, |
21 // Enable filtering of comboboxes | 20 // Enable filtering of comboboxes |
22 autoSelect: false, | 21 autoSelect: false, |
23 queryMode: 'local', | 22 queryMode: 'local', |
29 '{mplId} - {bezeichnung}</div></tpl>'), | 28 '{mplId} - {bezeichnung}</div></tpl>'), |
30 displayTpl: Ext.create('Ext.XTemplate', | 29 displayTpl: Ext.create('Ext.XTemplate', |
31 '<tpl for=".">{mplId} - {bezeichnung}</tpl>'), | 30 '<tpl for=".">{mplId} - {bezeichnung}</tpl>'), |
32 | 31 |
33 initComponent: function() { | 32 initComponent: function() { |
33 var i18n = Lada.getApplication().bundle; | |
34 this.emptyText = i18n.getMsg('emptytext.messprogrammland'); | |
35 | |
34 this.store = Ext.data.StoreManager.get('messprogrammkategorie'); | 36 this.store = Ext.data.StoreManager.get('messprogrammkategorie'); |
35 if (!this.store) { | 37 if (!this.store) { |
36 this.store = Ext.create('Lada.store.MessprogrammKategorie'); | 38 this.store = Ext.create('Lada.store.MessprogrammKategorie'); |
37 } | 39 } |
38 else { | 40 this.store.sort(); |
39 this.store.clearFilter(); | |
40 } | |
41 this.callParent(arguments); | 41 this.callParent(arguments); |
42 } | 42 } |
43 }); | 43 }); |