zoukankan      html  css  js  c++  java
  • quickFilters

    quickFilters: [
    {
    labelWidth: 26,
    labelSeparator: '',
    fieldLabel: '核毕',
    qtip: '不显示核销完毕',
    inputValue: " (tc_cfNoPayoff <>0) ",
    name: '@filterString@',
    checked: false
    }, {
    fieldLabel: '禁用',
    qtip: '不显示已禁用',
    inputValue: true,
    name: 'tf_disabled',
    checked: false
    }]




    refresh: function () {


    //alert(this.up('grid').down('gridfilterbar'));


    // var oFilters = [];
    // for (var i = 0, items = this.up('toolbar').items.items, len = items.length; i < len; i++) {
    //
    // switch (items[i].xtype) {
    // case 'checkbox':
    // //eq = ne <> inputType,inputValue,name, value(ture or false)
    // oFilters.push({
    // "operator": "ne",
    // "value": items[i].value,
    // "property": items[i].name
    // });
    // break;
    // case 'combobox':
    // if (items[i].value !== 'all') {
    // oFilters.push({
    // "operator": "eq",
    // "value": items[i].getValue(),//items[i].value ==inputValue
    // "property": items[i].name
    // })
    // }
    // break;
    // }
    //
    // }
    var store = this.up('grid').getStore();
    // oFilters.length === 0 ? store.load() : store.setFilters(oFilters);



    store.load()

    },
     
  • 相关阅读:
    IDEA Inspections详解
    IDEA 阿里编码规范插件
    IDEA Save Actions插件
    IDEA Lombok插件
    设计模式-简单工厂模式与工厂模式
    DAO设计模式
    Jcrop+strut2+jsp实现图片剪切
    Spring的Bean的作用域
    Spring的事务机制
    windows 下 Redis 主从 读写分离
  • 原文地址:https://www.cnblogs.com/xsSystem/p/10566123.html
Copyright © 2011-2022 走看看