首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

combox值作为淘选条件

2012-11-10 
combox值作为筛选条件var mat_Type1new Ext.form.ComboBox({fieldLabel: 客户类型,store : custTypeSto

combox值作为筛选条件
   var mat_Type1=new Ext.form.ComboBox({
    fieldLabel: '客户类型',
    store : custTypeStore,
    displayField : 'name',
    valueField : 'name',
    typeAhead : true,
    readOnly:true,
    mode : 'local',
    allowBlank : false,
    hiddenName : 'mat_Type',
    blankText:"客户类型",
    triggerAction : 'all',
    emptyText : "-未选择-",
    selectOnFocus : true,
    anchor:'90%'
  });
    mat_Type1.on('select',function(comboBox){
      var codition = [];
          codition.push({
          field : ('MAT_TYPE'),
                    relation : '=',
                    value :comboBox.getValue(),
                    type:'and',
                    javaClass : 'net.uni.util.Condition'
          });
          mateiralGrid.updateCondition(codition);
   });

热点排行