Mercurial > lada > lada-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
1388:634cce8b4c09 | 1396:418b9afee700 |
---|---|
101 fn: function(combo, newValue) { | 101 fn: function(combo, newValue) { |
102 var mst = newValue[0].get('messStelle'); | 102 var mst = newValue[0].get('messStelle'); |
103 var labor = newValue[0].get('laborMst'); | 103 var labor = newValue[0].get('laborMst'); |
104 combo.up('fieldset').down('messstelle[name=mstId]').setValue(mst); | 104 combo.up('fieldset').down('messstelle[name=mstId]').setValue(mst); |
105 combo.up('fieldset').down('messstelle[name=laborMstId]').setValue(labor); | 105 combo.up('fieldset').down('messstelle[name=laborMstId]').setValue(labor); |
106 combo.up('fieldset').down('messprogrammland[name=mplId]').setValue(); | |
106 } | 107 } |
107 } | 108 } |
108 } | 109 } |
109 }, { | 110 }, { |
110 xtype: 'messstelle', | 111 xtype: 'messstelle', |
132 listeners: { | 133 listeners: { |
133 validitychange: me.mstLaborValidity | 134 validitychange: me.mstLaborValidity |
134 } | 135 } |
135 }, { | 136 }, { |
136 xtype: 'netzbetreiber', | 137 xtype: 'netzbetreiber', |
138 name: 'netzbetreiber', | |
137 editable: false, | 139 editable: false, |
138 readOnly: true, | 140 readOnly: true, |
139 isFormField: false, | 141 isFormField: false, |
140 submitValue: false, | 142 submitValue: false, |
141 fieldLabel: i18n.getMsg('netzbetreiberId'), | 143 fieldLabel: i18n.getMsg('netzbetreiberId'), |
372 name: 'mplId', | 374 name: 'mplId', |
373 fieldLabel: 'Messprogramm-Land', | 375 fieldLabel: 'Messprogramm-Land', |
374 margin: '0, 5, 5, 5', | 376 margin: '0, 5, 5, 5', |
375 //width: '100%', | 377 //width: '100%', |
376 anchor: '100%', | 378 anchor: '100%', |
377 labelWidth: 115 | 379 labelWidth: 115, |
380 listeners: { | |
381 expand : { | |
382 fn: function(combo) { | |
383 Ext.StoreManager.get('messprogrammkategorie').clearFilter(); | |
384 Ext.StoreManager.get('messprogrammkategorie').filter('netzbetreiberId', combo.up('fieldset').down('netzbetreiber[name=netzbetreiber]').getValue()); | |
385 } | |
386 } | |
387 } | |
378 }, { | 388 }, { |
379 xtype: 'textarea', | 389 xtype: 'textarea', |
380 name: 'probeKommentar', | 390 name: 'probeKommentar', |
381 labelAlign: 'top', | 391 labelAlign: 'top', |
382 fieldLabel: i18n.getMsg('probeKommentar'), | 392 fieldLabel: i18n.getMsg('probeKommentar'), |