日期:2014-05-16 浏览次数:20569 次
Ext.eim.EIMPanel = function (config){
this.eiGrid = new Ext.eim.EIGrid({
tbar : [
{xtype:'button',text:'新增',listeners : {click : this.addEI}},
{xtype:'button',text:'修改',listeners : {click : this.modifyEI}}
]
});
Ext.apply(this, config,{
id : 'xxxxx',
renderTo : 'content',
title : 'xxxxxx',
width : 1000 ,
height : 800 ,
items : [{html:'查询',border : false },{title:'xxxx',items:this.eiGrid}]
});
Ext.eim.EIMPanel.superclass.constructor.call(this);
}
Ext.extend(Ext.eim.EIMPanel,Ext.Panel,{
query : function(){
var params = {
operationDesc:'',
EIDesc:''
};
this.eiGri.updateStore(params);
},
query : function(){
},
modifyEI : function(){
alert('into');
},
addEI : function(){
var newEI = new Ext.Window({
width : 200 ,
height : 140 ,
title: 'xxxxx',
modal : true ,
border : false,
defaults :{
bodyStyle:'padding: 30px 20px 30px 50px'
},
items:[
{items :[
{xtype:'button',text:'xxxxx',handler : function (){
}},
{border:false,html:'',height:10},
{xtype:'button',text:'xxxxxx',handler : this.modifyEI}
]}
]
});
newEI.show();
}
});