UploadForm =Ext.extend(Ext.Window,{
constructor : function(a){
Ext.applyIf(this,a);this.initUIComponents();
UploadForm.superclass.constructor.call(this,{
layout :'fit',
modal :true,//遮罩层
constrain :true,
width :500,
height : 200,
title :'选择上传文件窗口',
items :this.formPanel,
buttonAlign :'center',
keys : [{
key : Ext.EventObject.ENTER,
scope:this,
fn:this.uploadFile
}],
buttons : [{
text :'保存',
scope :this,
iconCls :"btn-save",
handler:this.uploadFile
},{
text :'取消',
scope :this,
iconCls :"btn-cancel",
handler : function(){this.close();
}
}]
});
},
initUIComponents : function