加为好友
发送私信
在线聊天
qixing830
等级:
可用分等级:乞丐
总技术分:120
总技术分排名:82159
结帖率:97.06%
发表于:2008-11-18 14:42:35 楼主
能不能帮我看下我想获取组件id但是还是不能 Ext.namespace("Neo"); Ext.namespace("Neo.frontdesk"); var clock = new Ext.Toolbar.TextItem(''); Neo.frontdesk.RoomView = Ext.extend(Ext.Panel,{ constructor:function(_cfg){ if(_cfg == null) _cfg = {} ; Ext.apply(this , _cfg) ; Neo.frontdesk.CheckInForm.superclass.constructor.call(this,{ region:'center' ,title:'房间状态' ,autoscroll:true ,tools:[ { id:'refresh' ,scope:this ,handler: function(event, toolEl, panel){ panel.roomDataView.store.reload(); Ext.ux.Toast.msg('提示','房态已刷新'); } } ] ,tbar:[{ text: '过滤:' },{ xtype: 'textfield', id: 'filter', selectOnFocus: true, width: 100, listeners: { 'render': {fn:function(){ Ext.getCmp('filter').getEl().on('keyup', function(){ this.filter(); }, this, {buffer:500}); }, scope:this} } }, ' ', '-', { text: '过滤条件:' }, { id: 'filterSelect', xtype: 'combo', typeAhead: true, triggerAction: 'all', width: 100, editable: false, mode: 'local', displayField: 'desc', valueField: 'name', lazyInit: false, value: '房间号', store: new Ext.data.SimpleStore({ fields: ['name', 'desc'], data : [['rmId', '房间号'],['rmCatalog', '房间类型']] }), listeners: { //'select': {fn:this.sortImages, scope:this} } } ,'->' ,{ text:'房间过滤' ,iconCls:'icon-roomfilter' ,menu:{ items:[ { text:'类型' ,iconCls:'icon-roomcatalog' ,menu:{ items:[ { text:'标准间' ,checked:true ,id:'filtStandRm' } ,{ text:'单人间' ,checked:true ,id:'filtSingleRm' } ,{ text:'三人间' ,checked:true ,id:'filtThreeRm' } ,{ text:'豪华套间' ,checked:true ,id:'filtDeluxRm' } ] } } ,{ text:'楼层' ,iconCls:'icon-roomfloor' ,menu:{ items:[ { text:'一楼' ,checked:true ,id:'filtFirst' ,handler:function(){ alert("a") } } ,{ text:'二楼' ,checked:true ,id:'filtSecond' } ,{ text:'三楼' ,checked:true ,id:'filtThird' } ,{ text:'四楼' ,checked:true ,id:'filtFourth' } ] } } ] } } ] ,items:[ { xtype:'roomdataview' ,id:'roomDataView' } ] }); this.filtStandRm=Ext.get('refresh'); alert(this.filtStandRm) } }); Ext.reg('roomview',Neo.frontdesk.RoomView);
问题点数: 50 回复次数:8
显示所有回复 显示星级回复 显示楼主回复
修改
删除
举报
引用
回复