52,780
社区成员
发帖
与我相关
我的任务
分享Ext.onReady(function(){
var SearchDataFrom_BS_YSLZNEW = function(actTab) {
this.title = "查询窗口";
SearchPanel = function(actTab){
this.callback = function(json, scope) {
if (json != null && json != "") {
var data = Ext.util.JSON.decode(json);
var jsonStr = new Ext.util.JSON.decode(json);
var store = new Ext.data.JsonStore({ data: jsonStr, fields: ['CASENUM', 'UNITADD','CASEDD','SQR','LXDH'] });
}
}
}
var myPanel = new SearchPanel(actTab);
var onClose = function() { Ext.getCmp('searchdata').close(); }
var queryForm=new Ext.form.FormPanel({
id:"queryForm",
frame:true,
region:"center",
// labelWidth:80,
border:false,
labelAlign:'right',
frame:true,
// store:jsonStr,
items:[
{xtype:'textfield',fieldLabel:'受理编号:',name:'casenum',id:'casenum',allowBlank:false,height:"auto",vtype:'specialChar'},
{xtype:'textfield',buttonLabel:'单位地址:',name:'unitdd',id:'unitdd',height:"auto",vtype:'specialChar'},
{xtype:'textfield',fieldLabel:'项目地点:',name:'caseadd',id:'caseadd',height:"auto",vtype:'specialChar'},
{xtype:'textfield',fieldLabel:'申请人:',name:'sqr',id:'sqr',height:"auto",vtype:'specialChar'},
{xtype:'textfield',fieldLabel:'联系电话:',name:'lxdh',id:'lxdh',height:"auto",vtype:'specialChar'}
]
//,
//buttons:[{text:'查找',buttonAlign:"right", handler:onSearch}]
});
SearchDataFrom_BS_YSLZNEW.superclass.constructor.call(this, {
id: 'searchdata',
title: '查询相关数据',
closable: true,
height: 320,
width: 410,
border: false,
plain: true,
resizable: false,
items:[myPanel, queryForm],
buttons: [ {
text: "关闭",
handler: onClose
}]
});
}
Ext.extend(SearchDataFrom_BS_YSLZNEW, Ext.Window, {});
new SearchDataFrom_BS_YSLZNEW().show();
});
你没有创建对象