extjs 加一个按纽,在线等!!!!!!!!!!!!!!~~~

yangxuebao123 2010-10-03 10:44:54


入图,相关extjs代码为

var devicesModifyWinForm =new Ext.form.FormPanel({
url:'deviceInfo!doAdd.action',
frame:true,
labelWidth:100,
buttonAlign:'center',
items: [
{
xtype:'textfield',
labelStyle : "text-align:right;",
fieldLabel :'设备号',
name : 'deviceInfo.deviceNo',
allowBlank:false,
msgTarget: 'side',
blankText: '设备号不能为空!',
width:150
},{
xtype:'textfield',
labelStyle : "text-align:right;",
fieldLabel :'SIM卡号',
name : 'deviceInfo.deviceSim',
allowBlank:false,
msgTarget: 'side',
blankText: 'SIM卡号不能为空!',
width:150
},{
xtype:'combo',
labelStyle : "text-align:right;",
fieldLabel :'是否出售',
width:150,
hiddenName : 'deviceInfo.deviceSold',
mode:'local',
triggerAction:'all',
forceSelection:true,
editable:false,
displayField:'text',
valueField:'value',
store:new Ext.data.SimpleStore({
fields : ['value', 'text'],
data : [["1","是"],["0","否"]]
})

},{
xtype:'datefield',
labelStyle : "text-align:right;",
fieldLabel :'添加设备时间',
name : 'deviceInfo.deviceAddTime',
emptyText:'选择日期',
format:"Y-m-d",
width:150
},{
xtype:'datefield',
labelStyle : "text-align:right;",
fieldLabel :'出售时间',
name : 'deviceInfo.deviceSoldTime',
emptyText:'选择日期',
format:"Y-m-d",
width:150
},{
xtype:'textfield',
labelStyle : "text-align:right;",
fieldLabel :'设备所属公司',
name : 'deviceInfo.deviceCompanyId',
width:150,
listeners:{
'focus': function(){
WinCompanyinfo.show();
}

}
},{
xtype:'textfield',
labelStyle : "text-align:right;",
fieldLabel :'设备类型ID',
name : 'deviceInfo.deviceTypeId',
width:150,
listeners:{
'focus': function(){
WinDeviceType.show();
}

}
},{
xtype:'combo',
labelStyle : "text-align:right;",
hiddenName:'deviceInfo.deviceEffictive',
fieldLabel :'是否过期',
width:150,
mode:'local',
triggerAction:'all',
forceSelection:true,
editable:false,
displayField:'text',
valueField:'value',
store:new Ext.data.SimpleStore({
fields : ['value', 'text'],
data : [["1","是"],["0","否"]]
})
},{
xtype:'textfield',
labelStyle : "text-align:right;",
fieldLabel :'售价',
name : 'deviceInfo.devicePrice',
width:150
},{
xtype:'datefield',
labelStyle : "text-align:right;",
fieldLabel :'到期日期',
name : 'deviceInfo.deviceEndTime',
emptyText:'选择日期',
format:"Y-m-d",
width:150
}],
buttons: [{
text:'确定',
iconCls:'icon-tick'
},{
text:'取消',
iconCls:'icon-file-remove',
handler: function(){
devicesModifyWin.hide();
}
}]
});




请大家帮我在设备类型ID后面加一个按纽.

100分全给哪个人...



...全文
112 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
zaj 2011-12-09
  • 打赏
  • 举报
回复
怎么实现的?
yangxuebao123 2010-10-07
  • 打赏
  • 举报
回复
来个人接分啊。 送分拉...
yangxuebao123 2010-10-03
  • 打赏
  • 举报
回复
汗,自己做出来了.看来还是要多靠自己...

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧