分享

如何显示两列复选框

 I_T_馆 2012-07-16

 
 
-------------------------------------------------------------------------------------
var _systemform = new Ext.FormPanel({
labelAlign:'left',
labelWidth:100,
buttonAlign:'center',
frame:true,
margins:'10 10 10 10',
width : 480,
height : 270,
title:'新增卡种集团',
id:_this.genId('addform'),
defaults:{width:315},
layout : 'form',
items : [{
xtype:'textfield',
fieldLabel:'卡种集团名称',
name:'cgname',
id:_this.genId('cgname'),
allowBlank:false
},{
fieldLabel:'平台类型',
layout:'column',
items:[
{
columnWidth:.5,
layout:'form',
defaultType:'checkbox',
checkboxToggle:true,
hideLabels:true,
items:[
{
boxLabel:'发卡方类型',
inputValue:1,
id:_this.genId('fkf'),
checked:true,
handler:function(checkbox){
if(checkbox.getValue()){
fkfType=1;
}else if(!checkbox.getValue()){
fkfType=0;
}
}
}
]
},{
columnWidth:.5,
layout:'form',
defaultType:'checkbox',
checkboxToggle:true,
hideLabels:true,
items:[
{
boxLabel:'受理方类型',
id:_this.genId('slf'),
inputValue:1,
checked:false,
handler:function(checkbox){
if(checkbox.getValue()){
slfType=1;
}else if(!checkbox.getValue()){
slfType=0;
};
}
}
]
}
]
},
{
xtype:'textarea',
fieldLabel:'备注',
name:'note',
id:_this.genId('note'),
allowBlank:true
}
],
buttons:[{
text:'查询',
handler:_this.specmerchSave
},
{
text:'重置',
handler:function(){
}
}]
});

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约