Mercurial > lada > lada-client
diff app/view/form/Messprogramm.js @ 1396:418b9afee700 release-2.5
changed MessprogrammKategorie pageSize and added filter for combo dependent on selected messstelle in probeform and messprogrammform
author | Evi Huber <ehuber@bfs.de> |
---|---|
date | Wed, 15 Mar 2017 09:56:44 +0100 |
parents | 3f499c52eee6 |
children | e749d09fafca |
line wrap: on
line diff
--- a/app/view/form/Messprogramm.js Mon Feb 27 11:56:41 2017 +0100 +++ b/app/view/form/Messprogramm.js Wed Mar 15 09:56:44 2017 +0100 @@ -103,6 +103,7 @@ var labor = newValue[0].get('laborMst'); combo.up('fieldset').down('messstelle[name=mstId]').setValue(mst); combo.up('fieldset').down('messstelle[name=laborMstId]').setValue(labor); + combo.up('fieldset').down('messprogrammland[name=mplId]').setValue(); } } } @@ -134,6 +135,7 @@ } }, { xtype: 'netzbetreiber', + name: 'netzbetreiber', editable: false, readOnly: true, isFormField: false, @@ -374,7 +376,15 @@ margin: '0, 5, 5, 5', //width: '100%', anchor: '100%', - labelWidth: 115 + labelWidth: 115, + listeners: { + expand : { + fn: function(combo) { + Ext.StoreManager.get('messprogrammkategorie').clearFilter(); + Ext.StoreManager.get('messprogrammkategorie').filter('netzbetreiberId', combo.up('fieldset').down('netzbetreiber[name=netzbetreiber]').getValue()); + } + } + } }, { xtype: 'textarea', name: 'probeKommentar',