日期:2014-05-16 浏览次数:20431 次
Ext.define('Ext.me.Panel', {
extend: "Ext.panel.Panel",
anchor: '100% 100%',
layout: 'fit',
title: "测试",
csStore: null,
csColumn: null,
csGridPanel: null,
initComponent: function () {
var me = this;
var btnSearch = Ext.create('Ext.Button', {
text: "查询"
});
var btnAdd = Ext.create('Ext.Button', {
text: "新增"
});
var btnDelete = Ext.create('Ext.Button', {
text: "删除"
});
var btnUpdate = Ext.create('Ext.Button', {
text: "修改"
});
btnSearch.on("click", function () { me.searchOn(); });
btnAdd.on("click", function () { me.AddOn(); });
var barButton = Ext.create('Ext.toolbar.Toolbar', {
border: true,
items: [btnSearch,"-", btnAdd , "-", btnUpdate, "-", btnDelete],
split: true
});
me.tbar = barButton;
me.csStore = Ext.create('Ext.data.Store', {
proxy: {
type: 'ajax',
url: "../Person/GetMain",