`
meganlee
  • 浏览: 87852 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论

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);
   });
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics