当前位置: 首页>>代码示例>>Java>>正文


Java QBFCompareEnum.COMP_RE属性代码示例

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


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

示例1: createValue

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,代码行数:22,代码来源:ProductFilter.java

示例2: createValue

/**
 *
 * @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:herbiehp,项目名称:unicenta,代码行数:28,代码来源:ProductFilter.java

示例3: getMandatoryString

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,代码行数:12,代码来源:ListQBFModelNumber.java

示例4: getNonMandatoryString

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,代码行数:14,代码来源:ListQBFModelNumber.java

示例5: createValue

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,代码行数:33,代码来源:JCustomerFinder.java

示例6: createValue

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,代码行数:12,代码来源:JParamsCustomer.java

示例7: setDefaultCompare

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,代码行数:13,代码来源:JParamsText.java

示例8: getMandatoryString

/**
     *
     * @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,代码行数:18,代码来源:ListQBFModelNumber.java

示例9: createValue

/**
 *
 * @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,代码行数:18,代码来源:JEmployeeFinder.java

示例10: createValue

/**
 *
 * @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,代码行数:18,代码来源:JParamsCustomer.java

示例11: createValue

public Object createValue() throws BasicException {
    
    Object[] afilter = new Object[10];
    
    // Nombre
    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() + "%";
    }
    
    // Precio de compra
    afilter[3] = m_jPriceBuy.getDoubleValue();
    afilter[2] = afilter[3] == null ? QBFCompareEnum.COMP_NONE : m_jCboPriceBuy.getSelectedItem();

    // Precio de venta
    afilter[5] = m_jPriceSell.getDoubleValue();
    afilter[4] = afilter[5] == null ? QBFCompareEnum.COMP_NONE : m_jCboPriceSell.getSelectedItem();
    
    // Categoria
    if (m_CategoryModel.getSelectedKey() == null) {
        afilter[6] = QBFCompareEnum.COMP_NONE;
        afilter[7] = null;
    } else {
        afilter[6] = QBFCompareEnum.COMP_EQUALS;
        afilter[7] = m_CategoryModel.getSelectedKey();
    }
    
    // el codigo de barras
    if (m_jtxtBarCode.getText() == null || m_jtxtBarCode.getText().equals("")) {
        afilter[8] = QBFCompareEnum.COMP_NONE;
        afilter[9] = null;
    } else{
        afilter[8] = QBFCompareEnum.COMP_RE;
        afilter[9] = "%" + m_jtxtBarCode.getText() + "%";
    }
    
    return afilter;
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:41,代码来源:ProductFilterSales.java

示例12: createValue

@Override
public Object createValue() throws BasicException {
    
    Object[] afilter = new Object[14];
    
    // Ticket ID
    if (jtxtTicketID.getText() == null || jtxtTicketID.getText().equals("")) {
        afilter[0] = QBFCompareEnum.COMP_NONE;
        afilter[1] = null;
    } else {
        afilter[0] = QBFCompareEnum.COMP_EQUALS;
        afilter[1] = jtxtTicketID.getValueInteger();
    }
    
    // Sale and refund checkbox        
    if (jComboBoxTicket.getSelectedIndex() == 2) {
        afilter[2] = QBFCompareEnum.COMP_DISTINCT;
        afilter[3] = 2;
    } else if (jComboBoxTicket.getSelectedIndex() == 0) {
        afilter[2] = QBFCompareEnum.COMP_EQUALS;
        afilter[3] = 0;
    } else if (jComboBoxTicket.getSelectedIndex() == 1) {
        afilter[2] = QBFCompareEnum.COMP_EQUALS;
        afilter[3] = 1;
    }
    
    // Receipt money
    afilter[5] = jtxtMoney.getDoubleValue();
    afilter[4] = afilter[5] == null ? QBFCompareEnum.COMP_NONE : jcboMoney.getSelectedItem();
    
    // Date range
    Object startdate = Formats.TIMESTAMP.parseValue(jTxtStartDate.getText());
    Object enddate = Formats.TIMESTAMP.parseValue(jTxtEndDate.getText());
    
    afilter[6] = (startdate == null) ? QBFCompareEnum.COMP_NONE : QBFCompareEnum.COMP_GREATEROREQUALS;
    afilter[7] = startdate;
    afilter[8] = (enddate == null) ? QBFCompareEnum.COMP_NONE : QBFCompareEnum.COMP_LESS;
    afilter[9] = enddate;

    
    
    //User
    if (jcboUser.getSelectedItem() == null) {
        afilter[10] = QBFCompareEnum.COMP_NONE;
        afilter[11] = null; 
    } else {
        afilter[10] = QBFCompareEnum.COMP_EQUALS;
        afilter[11] = ((TaxCategoryInfo)jcboUser.getSelectedItem()).getName(); 
    }
    
    //Customer
    if (jtxtCustomer.getText() == null || jtxtCustomer.getText().equals("")) {
        afilter[12] = QBFCompareEnum.COMP_NONE;
        afilter[13] = null;
    } else {
        afilter[12] = QBFCompareEnum.COMP_RE;
        afilter[13] = "%" + jtxtCustomer.getText() + "%";
    }
    
    return afilter;

}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:62,代码来源:JTicketsFinder.java

示例13: createValue

/**
     *
     * @return
     * @throws BasicException
     */
    @Override
    public Object createValue() throws BasicException {
        
        Object[] afilter = new Object[12];

        // BarCode
        if (m_jtxtBarCode.getText() == null || m_jtxtBarCode.getText().equals("")) {
            afilter[8] = QBFCompareEnum.COMP_NONE;
            afilter[9] = null;
        } else{
            afilter[8] = QBFCompareEnum.COMP_RE;
            afilter[9] = "%" + m_jtxtBarCode.getText().trim() + "%"; //gnoopy
        }
        
        // Product Name/Description
        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().trim() + "%"; //gnoopy
        }
        
        // Precio de compra
        afilter[3] = m_jPriceBuy.getDoubleValue();
        afilter[2] = afilter[3] == null ? QBFCompareEnum.COMP_NONE : m_jCboPriceBuy.getSelectedItem();

        // Precio de venta
        afilter[5] = m_jPriceSell.getDoubleValue();
        afilter[4] = afilter[5] == null ? QBFCompareEnum.COMP_NONE : m_jCboPriceSell.getSelectedItem();
        
        // Categoria
        if (m_CategoryModel.getSelectedKey() == null) {
            afilter[6] = QBFCompareEnum.COMP_NONE;
            afilter[7] = null;
        } else {
            afilter[6] = QBFCompareEnum.COMP_EQUALS;
            afilter[7] = m_CategoryModel.getSelectedKey();
        }
        
        // Inventory
// JG July 2014 - added for Stock Count
//        afilter[11] = m_jStockUnits.getDoubleValue();
//        afilter[10] = afilter[11] == null ? QBFCompareEnum.COMP_NONE : m_jCboStockUnits.getSelectedItem();

        if (m_jStockUnits.getDoubleValue() == null) {
            m_jCboStockUnits.setSelectedIndex(2);
            m_jStockUnits.setDoubleValue(0.0);
            repaint();
            afilter[10] = QBFCompareEnum.COMP_GREATER;
            afilter[11] = 0;
        } else {
            afilter[10] = m_jCboStockUnits.getSelectedItem();
            afilter[11] = m_jStockUnits.getDoubleValue();
        }
        
System.out.println(afilter[10]);
System.out.println(afilter[11]);
System.out.println(afilter);

return afilter;
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:67,代码来源:ProductFilterSales.java

示例14: createValue

/**
     *
     * @return creates object for search method
     * @throws BasicException
     */
    @Override
    public Object createValue() throws BasicException {

        Object[] afilter = new Object[12];

        // 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() + "%";
        }

// Added JG 20 Sept 12
        // Postal
        if (m_jtxtPostal.getText() == null || m_jtxtPostal.getText().equals("")) {
            afilter[6] = QBFCompareEnum.COMP_NONE;
            afilter[7] = null;
        } else {
            afilter[6] = QBFCompareEnum.COMP_RE;
            afilter[7] = "%" + m_jtxtPostal.getText() + "%";
        }

// Added JG 20 Sept 12
        // Phone
        if (m_jtxtPhone.getText() == null || m_jtxtPhone.getText().equals("")) {
            afilter[8] = QBFCompareEnum.COMP_NONE;
            afilter[9] = null;
        } else {
            afilter[8] = QBFCompareEnum.COMP_RE;
            afilter[9] = "%" + m_jtxtPhone.getText() + "%";
        }

// Added JG 20 Sept 12
        // Email
        if (m_jtxtEmail.getText() == null || m_jtxtEmail.getText().equals("")) {
            afilter[10] = QBFCompareEnum.COMP_NONE;
            afilter[11] = null;
        } else {
            afilter[10] = QBFCompareEnum.COMP_RE;
            afilter[11] = "%" + m_jtxtEmail.getText() + "%";
        }        
            
        return afilter;
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:69,代码来源:JCustomerFinder.java

示例15: createValue

/**
 *
 * @return
 * @throws BasicException
 */
@Override
public Object createValue() throws BasicException {
    
    Object[] afilter = new Object[14];
    
    // Ticket ID
    if (jtxtTicketID.getText() == null || jtxtTicketID.getText().equals("")) {
        afilter[0] = QBFCompareEnum.COMP_NONE;
        afilter[1] = null;
    } else {
        afilter[0] = QBFCompareEnum.COMP_EQUALS;
        afilter[1] = jtxtTicketID.getValueInteger();
    }
    
    // Sale and refund checkbox        
    if (jComboBoxTicket.getSelectedIndex() == 2) {
        afilter[2] = QBFCompareEnum.COMP_DISTINCT;
        afilter[3] = 2;
    } else if (jComboBoxTicket.getSelectedIndex() == 0) {
        afilter[2] = QBFCompareEnum.COMP_EQUALS;
        afilter[3] = 0;
    } else if (jComboBoxTicket.getSelectedIndex() == 1) {
        afilter[2] = QBFCompareEnum.COMP_EQUALS;
        afilter[3] = 1;
    }
    
    // Receipt money
    afilter[5] = jtxtMoney.getDoubleValue();
    afilter[4] = afilter[5] == null ? QBFCompareEnum.COMP_NONE : jcboMoney.getSelectedItem();
    
    // Date range
    Object startdate = Formats.TIMESTAMP.parseValue(jTxtStartDate.getText());
    Object enddate = Formats.TIMESTAMP.parseValue(jTxtEndDate.getText());
    
    afilter[6] = (startdate == null) ? QBFCompareEnum.COMP_NONE : QBFCompareEnum.COMP_GREATEROREQUALS;
    afilter[7] = startdate;
    afilter[8] = (enddate == null) ? QBFCompareEnum.COMP_NONE : QBFCompareEnum.COMP_LESS;
    afilter[9] = enddate;

    
    
    //User
    if (jcboUser.getSelectedItem() == null) {
        afilter[10] = QBFCompareEnum.COMP_NONE;
        afilter[11] = null; 
    } else {
        afilter[10] = QBFCompareEnum.COMP_EQUALS;
        afilter[11] = ((TaxCategoryInfo)jcboUser.getSelectedItem()).getName(); 
    }
    
    //Customer
    if (jtxtCustomer.getText() == null || jtxtCustomer.getText().equals("")) {
        afilter[12] = QBFCompareEnum.COMP_NONE;
        afilter[13] = null;
    } else {
        afilter[12] = QBFCompareEnum.COMP_RE;
        afilter[13] = "%" + jtxtCustomer.getText() + "%";
    }
    
    return afilter;

}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:67,代码来源:JTicketsFinder.java


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