Mercurial > lada > lada-client
comparison app/view/form/Probe.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 | 59c1f162fe8f |
children | dc90e2997071 |
comparison
equal
deleted
inserted
replaced
1388:634cce8b4c09 | 1396:418b9afee700 |
---|---|
104 fn: function(combo, newValue) { | 104 fn: function(combo, newValue) { |
105 var mst = newValue[0].get('messStelle'); | 105 var mst = newValue[0].get('messStelle'); |
106 var labor = newValue[0].get('laborMst'); | 106 var labor = newValue[0].get('laborMst'); |
107 combo.up('fieldset').down('messstelle[name=mstId]').setValue(mst); | 107 combo.up('fieldset').down('messstelle[name=mstId]').setValue(mst); |
108 combo.up('fieldset').down('messstelle[name=laborMstId]').setValue(labor); | 108 combo.up('fieldset').down('messstelle[name=laborMstId]').setValue(labor); |
109 combo.up('fieldset').down('messprogrammland[name=mplId]').setValue(); | |
109 } | 110 } |
110 } | 111 } |
111 } | 112 } |
112 }, { | 113 }, { |
113 xtype: 'messstelle', | 114 xtype: 'messstelle', |
129 allowBlank: false, | 130 allowBlank: false, |
130 editable: true, | 131 editable: true, |
131 hidden: true | 132 hidden: true |
132 }, { | 133 }, { |
133 xtype: 'netzbetreiber', | 134 xtype: 'netzbetreiber', |
135 name: 'netzbetreiber', | |
134 editable: false, | 136 editable: false, |
135 readOnly: true, | 137 readOnly: true, |
136 isFormField: false, | 138 isFormField: false, |
137 submitValue: false, | 139 submitValue: false, |
138 fieldLabel: i18n.getMsg('netzbetreiberId'), | 140 fieldLabel: i18n.getMsg('netzbetreiberId'), |
219 name: 'mplId', | 221 name: 'mplId', |
220 fieldLabel: 'Messprogramm-Land', | 222 fieldLabel: 'Messprogramm-Land', |
221 margin: '0, 5, 5, 5', | 223 margin: '0, 5, 5, 5', |
222 width: '100%', | 224 width: '100%', |
223 anchor: '100%', | 225 anchor: '100%', |
224 labelWidth: 110 | 226 labelWidth: 110, |
227 listeners: { | |
228 expand : { | |
229 fn: function(combo) { | |
230 Ext.StoreManager.get('messprogrammkategorie').clearFilter(); | |
231 Ext.StoreManager.get('messprogrammkategorie').filter('netzbetreiberId', combo.up('fieldset').down('netzbetreiber[name=netzbetreiber]').getValue()); | |
232 } | |
233 } | |
234 } | |
225 }] | 235 }] |
226 }, { | 236 }, { |
227 // Zeit | 237 // Zeit |
228 xtype: 'fieldset', | 238 xtype: 'fieldset', |
229 title: 'Zeit', | 239 title: 'Zeit', |