listeners:{
'dblclick':function(){
//request.getParameter("po");
//String title = po.getTitle();
//alert(node.text);
var id = node.id;
alert(id);
var reader = new Ext.data.JsonReader({},[
{name:'text',type:'string'},
{name:'text',type:'string'},
{name:'text',type:'string'},
{name:'text',type:'string'},
{name:'text',type:'string'},
{name:'text',type:'string'},
{name:'text',type:'string'},
{name:'text',type:'string'},
{name:'text',type:'string'},
{name:'text',type:'string'},
{name:'text',type:'string'},
{name:'text',type:'string'},
{name:'text',type:'string'}
]);
var form = new Ext.form.FormPanel({
labelAlign: 'right',
labelWidth: 60,
title: '',
frame:true,
width: 650,
url: '04_01_01.jsp',
reader:reader,
items: [{
layout:'column',
items: [{
columnWidth:.45,
layout: 'form',
defaultType: 'textfield',
items:[
{xtype:'textfield',fieldLabel: '标题',name:'${po.title}',value:'${po.title}'},
{xtype:'textfield',fieldLabel: '简称',name:'jtitle',value:'${po.jtitle}'},
{xtype:'textfield',fieldLabel: '省',name:'shen',value:'${po.shen}'},
{xtype:'textfield',fieldLabel: '街道',name:'jiedao',value:'${po.jiedao}'},
{xtype:'textfield',fieldLabel: '传真',name:'chanz',value:'${po.chanz}'},
{xtype:'textfield',fieldLabel: 'Email',name:'email',value:'${po.email}'},
{xtype:'textfield',fieldLabel: '备注',name:'beiz',value:'${po.beiz}'}
]
},{
columnWidth:.45,
layout: 'form',
defaultType: 'textfield',
items:[
{xtype:'textfield',fieldLabel: '成立时间',name:'cldate',value:'${po.cldate}'},
{xtype:'textfield',fieldLabel: '邮政编码',name:'youz',value:'${po.youz}'},
{xtype:'textfield',fieldLabel: '城市',name:'city',value:'${po.city}'},
{xtype:'textfield',fieldLabel: '电话',name:'phone',value:'${po.phone}'},
{xtype:'textfield',fieldLabel: '主页',name:'page',value:'${po.page}'},
{xtype:'textfield',fieldLabel: '联系人',name:'emp',value:'${po.emp}'}
]
}
]
}]
});
var win = new Ext.Window({
width:550,
height:340,
title:'部门信息',
closeAction:'hide',
buttonAlign: 'center',
items:[form],
buttons: [{
text: '查询',
handler:function(){
form.getForm().load({url:'navigate.do?status=navigateeditss&id='+id});
}
}]
});
win.show();
}
},
grid简单设置
最新推荐文章于 2024-06-21 10:46:06 发布