Ext.namespace('com.awd');
com.awd.qkfyPanel = Ext.extend(Ext.Panel, {
layout : 'border',
border : false,
initComponent : function() {
Ext.apply(this, {
border : false,
items : [
{region:'west',layout:'fit',bodyStyle:'background:#DFE8F6;border-right:1px solid #8DB2E3',border:false,450,split:true,collapseMode:'mini',collapsible:true}
,{region:'center',layout:"fit",border:false,bodyStyle:'border-left:1px solid #8DB2E3'}
]
});
com.awd.qkfyPanel.superclass.initComponent.call(this);
}
});
Ext.reg('qkfy', com.awd.qkfyPanel);
com.awd.addForm = Ext.extend(Ext.Panel, {
layout:'border',border:false,
initComponent : function() {
Ext.apply(this, {
items : [
{region:'north',collapsible:true,layout:"fit",height:180,minSize:150,maxSize:320,split:true,collapseMode:'mini',collapsible:true,
items : [{title:'北表单',border:false,bodyStyle:'background:#DFE8F6;padding:10px;'}]
}
, {xtype:"panel",region:'center',autoScroll:true,layout:"fit",border:false,
items : {
xtype : "tabpanel",activeTab : 0,
defaults : {
hideMode : 'offsets'
},
items:[{title:"标签一",border:false,layout:'fit',items:[{xtype:'qkfy'}]},{title:"标签二",border:false,layout:'fit'}]
}
}]
});
com.awd.addForm.superclass.initComponent.call(this);
}
});
Ext.reg('addForm', com.awd.addForm);
com.awd.dtlwin = Ext.extend(Ext.Window, {
initComponent : function() {
Ext.apply(this, {
635,height:500,layout:'fit',border:false,closeAction:'hide',modal:true,maximizable:true,constrain:true,collapsible:true
});
com.awd.dtlwin.superclass.initComponent.call(this);
}
});
com.awd.test = Ext.extend(Ext.Panel, {
layout : 'border',
initComponent : function() {
Ext.apply(this, {
title : '面板布局',
buttons:[{text:'谈话登记',cls:'x-btn-text-icon',iconCls:'addicon',handler:this.owin,scope:this}],
items:[{title:'北面板',region:'north',collapsible:true,height:258,minSize:150,maxSize:320,split:true,collapseMode:'mini',collapsible:true},{title:'主面板',region:'center',height:300}]
});
com.awd.test.superclass.initComponent.call(this);
this.dtlformpanel = new com.awd.addForm();
this.dtlwin = new com.awd.dtlwin({
items : this.dtlformpanel,
buttons:[{text:'保存',scope:this},{text:'取消',handler:function(){this.dtlwin.hide();},scope:this}]
});
},
owin : function() {
this.dtlwin.show();
this.dtlwin.maximize();
}
});
Ext.reg('test', com.awd.test);
Ext.onReady(function() {
var vp=new Ext.Viewport({layout:'fit',items:{xtype:'test'}})
});