var infoPanel_Primary = new Ext.form.FieldSet({
checkboxToggle: true,
checkboxName:'toggle',
title: '点击此处进行用户群初选',
autoHeight:true,
collapsed: true,
defaults: {width: 220},
items :[{
xtype: 'datefield',
fieldLabel: '用户群月份',
name: 'month',
id: 'month',
altFormats:'Ym',
format:'Y-m',
maxValue: new Date(),
listeners:{
change:function(field, newValue, oldValue){
if(newValue==''){
Ext.apply(store.baseParams,{'month':''});
}else{
var year = newValue.getYear();
if(year<999){year +=1900;}
var month = new String(newValue.getMonth()+1);
if(month.length==1){month='0'+month;}
var date = new String(year)+month;
Ext.apply(store.baseParams,{'month':date});
}
store.reload();
var groupCombo = Ext.getCmp('objName');
if(groupCombo!=null){groupCombo.reset();}
}
}
},{
xtype: 'combo',
fieldLabel: '目标用户群名称',
name: '_objName',
id: '_objName',
store: store,
displayField:'custGroupName',
valueField:'custGroupTabName',
hiddenName:'objName',
emptyText:'请选择一个目标客户群...',
listClass:'left_align',
triggerAction:"all",
editable:false,
listeners:{
change:function(field, newValue, oldValue){
Ext.Ajax.request({
url: context+'/ckmc/jsp/ckmcTagTree.aido?cmd=listGroupDetail',
params: 'objId='+newValue,
success: function(response, options){
var textArea_ObjDesc = Ext.getCmp('objDesc');
if(textArea_ObjDesc!=null){
var resText = response.responseText;
try{
if(resText.objSize!='undefined'&&resText.objSize!=null){
var str = resText.describe+"\n用户数:"+resText.objSize;
textArea_ObjDesc.setValue(str);
}
}catch(e){alert(e)}
}
},
failure: function(){
var textArea_ObjDesc = Ext.getCmp('objDesc');
if(textArea_ObjDesc!=null){
textArea_ObjDesc.setValue('');
}
}
});
}
}
},{
xtype: 'radiogroup',
fieldLabel: '应用类型',
name: 'useType',
id: 'useType',
columns: 1,
items: [
{boxLabel: '交叉', name: 'useType', inputValue: 1, width: 90},{boxLabel: '剔除', name: 'useType', inputValue: 2,width: 90},{boxLabel: '合并', name: 'useType',inputValue: 3, width: 90}
]
}
]
});