var authorityNameCombo = Ext.create({
xtype : 'mstCommonCombo',
typeCode: 'GT004',
key1 : '',
displayField: 'data1',
valueField : 'data1',
editable : false,
listeners : {
focus: function ( cb ,event,eOpts ) {
var selection = Ext.getCmp('oam0002_grid').getView().selection;
//某种条件下 隐藏展示的list,同时设置成可以编辑
if(selection.get('authority_type1_code') == '02'){
cb.setHideTrigger(true);
cb.setEditable(true);
}else{
//否则还原
cb.setHideTrigger(false);
cb.setEditable(false);
}
},
select: function(combo , record , eOpts){
var selection = Ext.getCmp('oam0002_grid').getView().selection;
var code = record.get('key1');
var name = record.get('data1');
selection.set('authority_name_code',code);
selection.set('authority_name',name);
},
blur:function ( combo, event, eOpts ){
var selection = Ext.getCmp('oam0002_grid').getView().selection;
if(selection.get('authority_type1_code') == '02'){
//后台验证,是否是菜单中 的东西
var data = combo.getValue();
}
}
}
});