function buildWindowColse(url, title, width, height) {
var DisplayPanel = new Ext.TabPanel({
id: "tab1",
height: height,
width,
autoScroll: true,
activeTab: 0,
frame: true,
autoDestroy: false
});
var tan = DisplayPanel.add({
id: "ee",
height: height,
width,
autoScroll: true,
closable: false,
autoLoad: {
showMask: true,
url: url,
mode: 'iframe',
maskMsg: '加载数据 ' +title+ '...'
}
});
var win = new Ext.Window({
id: "wind",
layout: "fit",
autoScroll: true,
title: title,
iconCls: "icon-pagewhitecode",
width,
height: height,
maximizable: true,
autoShow: true,
plain: true,
resizable: false,
shadow: false,
bufferResize: true,
modal: true,
items: [DisplayPanel],
listeners: {
"close": function() {
myRefresh();
}
}
});
win.show();
}