日期:2014-05-16 浏览次数:20592 次
Ext.Loader.setConfig({ enabled: true });
Ext.Loader.setPath('Ext.ux', '../../Scripts/ext-4.0/ext-4.0/examples/ux');
Ext.require([
'Ext.tree.*',
'Ext.data.*',
'Ext.window.MessageBox',
'Ext.form.Panel'
]);
Ext.onReady(function() {
/**
* 上,panel.Panel
*/
this.topPanel = Ext.create('Ext.panel.Panel', {
region: 'north',
id: 'north',
html: '<div style="background-image:url(../../Content/images/logo3.gif); background-repeat:no-repeat;" id="north" class="clearfix"><div class="title" ></div><div class="welcome">欢迎你!<span class="user"><%= ViewData["CurrentUser"]%></span><a href="/User/Logoff" class="logoff">注销</a></div></div>',
height: 45,
margins: '0 0 0 0',
border: false
});
/**
* 左,panel.Panel
*/
this.leftPanel = Ext.create('Ext.panel.Panel', {
region: 'west',
title: '导航栏',
layout: 'accordion',
collapseMode: 'mini',
collapsible: true,
width: 180,
minWidth: 100,
maxWidth: 300,
split: true,
autoScroll: true
});
/**
* 右,tab.Panel
*/
this.rightPanel = Ext.create('Ext.tab.Panel', {
region: 'center',
id: 'tab',
height: '100%',
activeTab: 0,
items: [
{
title: '首页',
bodyPadding: 10
}
]
});
this.southPanel = Ext.create('Ext.panel.Panel', {
region: 'south',
html: '<div id="south"> Powered by ASP.Net MVC 2.0 + ExtJS 4.0.0 <a target="_blank" href="htt