想法如下:文本输入后拦截enter 键,如果用户没有登录则调出 登录画面,如果用户已登录且已授权,则调出资料画面,但是没有实现。在chrome 内出现这个提示 Uncaught TypeError: Cannot call method 'show' of undefined,代码如下:
gg_imported = Ext.extend(Ext.grid.GridPanel, {
InsertWin: new AddInfoWin(),
UpdateWin: new UpdateInfoWin(),
LoginWin: new LoginInfoWin(),
constructor: function() {
this['store'] = new Ext.data.Store({
url: 'http://10.86.116.58/WebServices/gridtest.asmx/ggconfimed',
reader: new Ext.data.XmlReader({
record: 'MyTable',
root: 'root',
totalProperty: 'totalRecords',
fields: ['GG_ID', 'MIC_GG_NUM', 'MSL_GG_NUM', 'LINE', 'PART_NUM', 'QTY', 'SHIP_TYPE', 'CS_NUM', 'CUSTOMER', 'CUST_NUM', 'GG_SO_NUM']
})
});
gg_imported.superclass.constructor.call(this, {
//autoLoad: true,
renderTo: Ext.getBody(),
closable: true,
id: '_grid1',
title: 'GG_Imported ',