本文整理汇总了Java中com.openbravo.data.loader.QBFCompareEnum.COMP_NONE属性的典型用法代码示例。如果您正苦于以下问题:Java QBFCompareEnum.COMP_NONE属性的具体用法?Java QBFCompareEnum.COMP_NONE怎么用?Java QBFCompareEnum.COMP_NONE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.openbravo.data.loader.QBFCompareEnum
的用法示例。
在下文中一共展示了QBFCompareEnum.COMP_NONE属性的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() + "%"
};
}
}
示例2: getNonMandatoryString
/**
*
* @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
);
}
示例3: 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() + "%"
};
}
}
示例4: 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
);
}
示例5: getMandatoryNumber
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
);
}
示例6: 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
);
}
示例7: getNonMandatoryNumber
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
);
}
示例8: 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;
}
示例9: 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};
}
}
示例10: createValue
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
};
}
示例11: createValue
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};
}
}
示例12: createValue
public Object createValue() throws BasicException {
return new Object[] {
m_LocationsModel.getSelectedKey() == null ? QBFCompareEnum.COMP_NONE : QBFCompareEnum.COMP_EQUALS,
m_LocationsModel.getSelectedKey()
};
}
示例13: 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
);
}
示例14: 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};
}
}
示例15: getNonMandatoryNumber
/**
*
* @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
);
}