Ext.BLANK_IMAGE_URL = '../../TruckMng/Content/Images/s.gif'; var panelTest = null; Ext.onReady(function () { Ext.QuickTips.init(); Ext.form.Field.prototype.msgTarget = 'side'; panelTest = new window.Shipping.SysTaskExecution({ layout: 'border' //,bodyStyle: 'border-width:0 0 0 0;', }); var view = new Ext.Viewport({ layout: 'border', //layout: 'anchor', renderTo: 'viewport', border: false, bodyStyle: 'border-width:0 0 0 0;', items: [{ region: 'center', layout: 'fit', items: [panelTest] }] }); }); function OprationSwap() { return panelTest.OprationSwap(); } function beReflashed() { alert('be called'); }