• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java QBFCompareEnum类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.openbravo.data.loader.QBFCompareEnum的典型用法代码示例。如果您正苦于以下问题:Java QBFCompareEnum类的具体用法?Java QBFCompareEnum怎么用?Java QBFCompareEnum使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



QBFCompareEnum类属于com.openbravo.data.loader包,在下文中一共展示了QBFCompareEnum类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createValue

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
public Object createValue() throws BasicException {
    
    if (m_jBarcode.getText() == null || m_jBarcode.getText().equals("")) {
        // Filtro por formulario
        return new Object[] {
            m_jCboName.getSelectedItem(), m_jName.getText(),
            m_jCboPriceBuy.getSelectedItem(), Formats.CURRENCY.parseValue(m_jPriceBuy.getText()),           
            m_jCboPriceSell.getSelectedItem(), Formats.CURRENCY.parseValue(m_jPriceSell.getText()),
            m_CategoryModel.getSelectedKey() == null ? QBFCompareEnum.COMP_NONE : QBFCompareEnum.COMP_EQUALS, m_CategoryModel.getSelectedKey(),
            QBFCompareEnum.COMP_NONE, null         
        };
    } else {            
        // Filtro por codigo de barras.
        return new Object[] {
            QBFCompareEnum.COMP_NONE, null,
            QBFCompareEnum.COMP_NONE, null,
            QBFCompareEnum.COMP_NONE, null,
            QBFCompareEnum.COMP_NONE, null,
            QBFCompareEnum.COMP_RE, "%" + m_jBarcode.getText() + "%"
        };
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:23,代码来源:ProductFilter.java


示例2: getNonMandatoryString

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
/**
     *
     * @return
     */
    public static ListQBFModelNumber getNonMandatoryString() {
        return new ListQBFModelNumber(
            QBFCompareEnum.COMP_NONE,
            QBFCompareEnum.COMP_EQUALS,
            QBFCompareEnum.COMP_RE,
            QBFCompareEnum.COMP_DISTINCT,
            QBFCompareEnum.COMP_GREATER,
            QBFCompareEnum.COMP_LESS,
            QBFCompareEnum.COMP_GREATEROREQUALS,
              QBFCompareEnum.COMP_LESSOREQUALS,
              QBFCompareEnum.COMP_ISNULL,
//            QBFCompareEnum.COMP_ISNOTNULL,
//        };
//        m_sel = m_items[0];
            QBFCompareEnum.COMP_ISNOTNULL
        );
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:22,代码来源:ListQBFModelNumber.java


示例3: createValue

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
/**
 *
 * @return
 * @throws BasicException
 */
@Override
public Object createValue() throws BasicException {
    
    if (m_jBarcode.getText() == null || m_jBarcode.getText().equals("")) {
        // Filtro por formulario
        return new Object[] {
            m_jCboName.getSelectedItem(), m_jName.getText(),
            m_jCboPriceBuy.getSelectedItem(), Formats.CURRENCY.parseValue(m_jPriceBuy.getText()),           
            m_jCboPriceSell.getSelectedItem(), Formats.CURRENCY.parseValue(m_jPriceSell.getText()),
            m_CategoryModel.getSelectedKey() == null ? QBFCompareEnum.COMP_NONE : QBFCompareEnum.COMP_EQUALS, m_CategoryModel.getSelectedKey(),
            QBFCompareEnum.COMP_NONE, null         
        };
    } else {            
        // Filtro por codigo de barras.
        return new Object[] {
            QBFCompareEnum.COMP_NONE, null,
            QBFCompareEnum.COMP_NONE, null,
            QBFCompareEnum.COMP_NONE, null,
            QBFCompareEnum.COMP_NONE, null,
            QBFCompareEnum.COMP_RE, "%" + m_jBarcode.getText() + "%"
        };
    }
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:29,代码来源:ProductFilter.java


示例4: getMandatoryString

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
public static ListQBFModelNumber getMandatoryString() {
    return new ListQBFModelNumber(
        QBFCompareEnum.COMP_NONE,
        QBFCompareEnum.COMP_EQUALS,
        QBFCompareEnum.COMP_RE,
        QBFCompareEnum.COMP_DISTINCT,
        QBFCompareEnum.COMP_GREATER,
        QBFCompareEnum.COMP_LESS,
        QBFCompareEnum.COMP_GREATEROREQUALS,
        QBFCompareEnum.COMP_LESSOREQUALS
    );
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:13,代码来源:ListQBFModelNumber.java


示例5: getMandatoryNumber

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
public static ListQBFModelNumber getMandatoryNumber() {
    return new ListQBFModelNumber(
        QBFCompareEnum.COMP_NONE,
        QBFCompareEnum.COMP_EQUALS,
        QBFCompareEnum.COMP_DISTINCT,
        QBFCompareEnum.COMP_GREATER,
        QBFCompareEnum.COMP_LESS,
        QBFCompareEnum.COMP_GREATEROREQUALS,
        QBFCompareEnum.COMP_LESSOREQUALS
    );
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:12,代码来源:ListQBFModelNumber.java


示例6: getNonMandatoryString

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
public static ListQBFModelNumber getNonMandatoryString() {
    return new ListQBFModelNumber(
        QBFCompareEnum.COMP_NONE,
        QBFCompareEnum.COMP_EQUALS,
        QBFCompareEnum.COMP_RE,
        QBFCompareEnum.COMP_DISTINCT,
        QBFCompareEnum.COMP_GREATER,
        QBFCompareEnum.COMP_LESS,
        QBFCompareEnum.COMP_GREATEROREQUALS,
        QBFCompareEnum.COMP_LESSOREQUALS,
        QBFCompareEnum.COMP_ISNULL,
        QBFCompareEnum.COMP_ISNOTNULL
    );
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:15,代码来源:ListQBFModelNumber.java


示例7: getNonMandatoryNumber

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
public static ListQBFModelNumber getNonMandatoryNumber() {
    return new ListQBFModelNumber(
        QBFCompareEnum.COMP_NONE,
        QBFCompareEnum.COMP_EQUALS,
        QBFCompareEnum.COMP_DISTINCT,
        QBFCompareEnum.COMP_GREATER,
        QBFCompareEnum.COMP_LESS,
        QBFCompareEnum.COMP_GREATEROREQUALS,
        QBFCompareEnum.COMP_LESSOREQUALS,
        QBFCompareEnum.COMP_ISNULL,
        QBFCompareEnum.COMP_ISNOTNULL  
    );
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:ListQBFModelNumber.java


示例8: createValue

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
public Object createValue() throws BasicException {
    
    Object[] afilter = new Object[6];
    
    // TaxID
    if (m_jtxtTaxID.getText() == null || m_jtxtTaxID.getText().equals("")) {
        afilter[0] = QBFCompareEnum.COMP_NONE;
        afilter[1] = null;
    } else {
        afilter[0] = QBFCompareEnum.COMP_RE;
        afilter[1] = "%" + m_jtxtTaxID.getText() + "%";
    }
    
    // SearchKey
    if (m_jtxtSearchKey.getText() == null || m_jtxtSearchKey.getText().equals("")) {
        afilter[2] = QBFCompareEnum.COMP_NONE;
        afilter[3] = null;
    } else {
        afilter[2] = QBFCompareEnum.COMP_RE;
        afilter[3] = "%" + m_jtxtSearchKey.getText() + "%";
    }
    
    // Name
    if (m_jtxtName.getText() == null || m_jtxtName.getText().equals("")) {
        afilter[4] = QBFCompareEnum.COMP_NONE;
        afilter[5] = null;
    } else {
        afilter[4] = QBFCompareEnum.COMP_RE;
        afilter[5] = "%" + m_jtxtName.getText() + "%";
    }
    
    return afilter;
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:34,代码来源:JCustomerFinder.java


示例9: createValue

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
public Object createValue() throws BasicException {
    
    if (currentcustomer == null) {
        if (jTextField1.getText() == null || jTextField1.getText().equals("")) {
            return new Object[] {QBFCompareEnum.COMP_NONE, null, QBFCompareEnum.COMP_NONE, null};
        } else {
            return new Object[] {QBFCompareEnum.COMP_NONE, null, QBFCompareEnum.COMP_RE, jTextField1.getText()};
        }
    } else {
        return new Object[] {QBFCompareEnum.COMP_EQUALS, currentcustomer.getId(), QBFCompareEnum.COMP_NONE, null};
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:13,代码来源:JParamsCustomer.java


示例10: createValue

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
public Object createValue() throws BasicException {
    Object startdate = Formats.TIMESTAMP.parseValue(jTxtStartDate.getText());
    Object enddate = Formats.TIMESTAMP.parseValue(jTxtEndDate.getText());   
    return new Object[] {
        startdate == null ? QBFCompareEnum.COMP_NONE : QBFCompareEnum.COMP_GREATEROREQUALS,
        startdate,
        enddate == null ? QBFCompareEnum.COMP_NONE : QBFCompareEnum.COMP_LESS,
        enddate
    };
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:11,代码来源:JParamsDatesInterval.java


示例11: setDefaultCompare

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
private void setDefaultCompare() {
    if (Formats.INT == formatsvalue) {
         comparevalue = QBFCompareEnum.COMP_LESSOREQUALS;
    } else if (Formats.DOUBLE == formatsvalue || Formats.CURRENCY == formatsvalue || Formats.PERCENT == formatsvalue) {
         comparevalue = QBFCompareEnum.COMP_LESSOREQUALS;
    } else if (Formats.DATE == formatsvalue || Formats.TIME == formatsvalue || Formats.TIMESTAMP == formatsvalue) {
         comparevalue = QBFCompareEnum.COMP_GREATEROREQUALS;
    } else if (Formats.BOOLEAN == formatsvalue) {
         comparevalue = QBFCompareEnum.COMP_EQUALS;
    } else { // if (Formats.STRING == formatsvalue) {
         comparevalue = QBFCompareEnum.COMP_RE;
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:JParamsText.java


示例12: createValue

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
public Object createValue() throws BasicException {
    
    Object value = formatsvalue.parseValue(txtField.getText());
    txtField.setText(formatsvalue.formatValue(value));
    
    if (value == null) {        
        return new Object[] {QBFCompareEnum.COMP_NONE, null};
    } else {
        return new Object[] {comparevalue, value};
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:12,代码来源:JParamsText.java


示例13: createValue

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
public Object createValue() throws BasicException {
    
    return new Object[] {
        m_LocationsModel.getSelectedKey() == null ? QBFCompareEnum.COMP_NONE : QBFCompareEnum.COMP_EQUALS, 
        m_LocationsModel.getSelectedKey()
    };
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:8,代码来源:JParamsLocation.java


示例14: getMandatoryString

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
/**
     *
     * @return
     */
        public static ListQBFModelNumber getMandatoryString() {
        return new ListQBFModelNumber(
              QBFCompareEnum.COMP_NONE,
              QBFCompareEnum.COMP_EQUALS,
              QBFCompareEnum.COMP_RE,
              QBFCompareEnum.COMP_DISTINCT,
//            QBFCompareEnum.COMP_GREATER,
            QBFCompareEnum.COMP_GREATER,
              QBFCompareEnum.COMP_LESS,
//            QBFCompareEnum.COMP_GREATEROREQUALS,
            QBFCompareEnum.COMP_GREATEROREQUALS,
            QBFCompareEnum.COMP_LESSOREQUALS
        );
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:19,代码来源:ListQBFModelNumber.java


示例15: getMandatoryNumber

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
/**
 *
 * @return
 */
public static ListQBFModelNumber getMandatoryNumber() {
    return new ListQBFModelNumber(
        QBFCompareEnum.COMP_NONE,
        QBFCompareEnum.COMP_EQUALS,
        QBFCompareEnum.COMP_DISTINCT,
        QBFCompareEnum.COMP_GREATER,
        QBFCompareEnum.COMP_LESS,
        QBFCompareEnum.COMP_GREATEROREQUALS,
        QBFCompareEnum.COMP_LESSOREQUALS
    );
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:16,代码来源:ListQBFModelNumber.java


示例16: getNonMandatoryNumber

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
/**
 *
 * @return
 */
public static ListQBFModelNumber getNonMandatoryNumber() {
    return new ListQBFModelNumber(
        QBFCompareEnum.COMP_NONE,
        QBFCompareEnum.COMP_EQUALS,
        QBFCompareEnum.COMP_DISTINCT,
        QBFCompareEnum.COMP_GREATER,
        QBFCompareEnum.COMP_LESS,
        QBFCompareEnum.COMP_GREATEROREQUALS,
        QBFCompareEnum.COMP_LESSOREQUALS,
        QBFCompareEnum.COMP_ISNULL,
        QBFCompareEnum.COMP_ISNOTNULL
    );
  }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:18,代码来源:ListQBFModelNumber.java


示例17: getOverrideMandatoryNumber

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
/**
     *
     * @return
     */
    public static ListQBFModelNumber getOverrideMandatoryNumber() {
        return new ListQBFModelNumber(
//            QBFCompareEnum.COMP_NONE,
            QBFCompareEnum.COMP_EQUALS,
            QBFCompareEnum.COMP_DISTINCT,
            QBFCompareEnum.COMP_GREATER,
            QBFCompareEnum.COMP_LESS,
            QBFCompareEnum.COMP_GREATEROREQUALS,
            QBFCompareEnum.COMP_LESSOREQUALS
        );
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:16,代码来源:ListQBFModelNumber.java


示例18: createValue

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
/**
 *
 * @return
 * @throws BasicException
 */
@Override
public Object createValue() throws BasicException {
    Object[] afilter = new Object[2];
    // Name
    if (m_jtxtName.getText() == null || m_jtxtName.getText().equals("")) {
        afilter[0] = QBFCompareEnum.COMP_NONE;
        afilter[1] = null;
    } else {
        afilter[0] = QBFCompareEnum.COMP_RE;
        afilter[1] = "%" + m_jtxtName.getText() + "%";
    }
    return afilter;
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:19,代码来源:JEmployeeFinder.java


示例19: createValue

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
/**
 *
 * @return
 * @throws BasicException
 */
@Override
public Object createValue() throws BasicException {
    return new Object[] {
        m_jCboName.getSelectedItem(), m_jName.getText(),
        m_jCboPriceBuy.getSelectedItem(), Formats.CURRENCY.parseValue(m_jPriceBuy.getText()),
        m_ProdsModel.getSelectedKey() == null ? QBFCompareEnum.COMP_NONE : QBFCompareEnum.COMP_EQUALS, m_ProdsModel.getSelectedKey()
    };
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:14,代码来源:MaterialFilter.java


示例20: createValue

import com.openbravo.data.loader.QBFCompareEnum; //导入依赖的package包/类
/**
 *
 * @return
 * @throws BasicException
 */
@Override
public Object createValue() throws BasicException {
    
    if (currentcustomer == null) {
        if (jTextField1.getText() == null || jTextField1.getText().equals("")) {
            return new Object[] {QBFCompareEnum.COMP_NONE, null, QBFCompareEnum.COMP_NONE, null};
        } else {
            return new Object[] {QBFCompareEnum.COMP_NONE, null, QBFCompareEnum.COMP_RE, jTextField1.getText()};
        }
    } else {
        return new Object[] {QBFCompareEnum.COMP_EQUALS, currentcustomer.getId(), QBFCompareEnum.COMP_NONE, null};
    }
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:19,代码来源:JParamsCustomer.java



注:本文中的com.openbravo.data.loader.QBFCompareEnum类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Style类代码示例发布时间:2022-05-22
下一篇:
Java Row类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap