本文整理汇总了Java中com.openbravo.pos.ticket.ProductInfoExt.getName方法的典型用法代码示例。如果您正苦于以下问题:Java ProductInfoExt.getName方法的具体用法?Java ProductInfoExt.getName怎么用?Java ProductInfoExt.getName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.openbravo.pos.ticket.ProductInfoExt
的用法示例。
在下文中一共展示了ProductInfoExt.getName方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: assignProduct
import com.openbravo.pos.ticket.ProductInfoExt; //导入方法依赖的package包/类
private void assignProduct(ProductInfoExt prod) {
if (m_jSearch.isEnabled()) {
if (prod == null) {
product2 = null;
m_jReference.setText(null);
m_jBarcode.setText(null);
m_jProduct.setText(null);
name = null;
} else {
product2 = prod.getID();
m_jReference.setText(prod.getReference());
m_jBarcode.setText(prod.getCode());
m_jProduct.setText(prod.getReference() + " - " + prod.getName());
name = prod.getName();
}
}
}
示例2: getProductLabel
import com.openbravo.pos.ticket.ProductInfoExt; //导入方法依赖的package包/类
private String getProductLabel(ProductInfoExt product) {
if (pricevisible) {
if (taxesincluded) {
TaxInfo tax = taxeslogic.getTaxInfo(product.getTaxCategoryID(), new Date());
return "<html><center>" + product.getName() + "<br>" + product.printPriceSellTax(tax);
} else {
return "<html><center>" + product.getName() + "<br>" + product.printPriceSell();
}
} else {
return product.getName();
}
}
示例3: InventoryLine
import com.openbravo.pos.ticket.ProductInfoExt; //导入方法依赖的package包/类
/** Creates a new instance of InventoryLine */
public InventoryLine(ProductInfoExt oProduct) {
m_sProdID = oProduct.getID();
m_sProdName = oProduct.getName();
m_dMultiply = 1.0;
m_dPrice = oProduct.getPriceBuy();
attsetid = oProduct.getAttributeSetID();
attsetinstid = null;
attsetinstdesc = null;
}
示例4: getProductLabel
import com.openbravo.pos.ticket.ProductInfoExt; //导入方法依赖的package包/类
private String getProductLabel(ProductInfoExt product) {
if (pricevisible) {
if (taxesincluded) {
TaxInfo tax = taxeslogic.getTaxInfo(product.getTaxCategoryID());
return "<html><center>" + product.getName() + "<br>" + product.printPriceSellTax(tax);
} else {
// return "<html><center>" + product.getName() + "<br>" + product.printPriceSell();
return "<html><center>" + product.getDisplay() + "<br>" + product.printPriceSell();
}
} else {
return product.getDisplay();
}
}
示例5: InventoryLine
import com.openbravo.pos.ticket.ProductInfoExt; //导入方法依赖的package包/类
/** Creates a new instance of InventoryLine
* @param oProduct */
public InventoryLine(ProductInfoExt oProduct) {
m_sProdID = oProduct.getID();
m_sProdName = oProduct.getName();
m_dMultiply = 1.0;
m_dPrice = oProduct.getPriceBuy();
attsetid = oProduct.getAttributeSetID();
attsetinstid = null;
attsetinstdesc = null;
}
示例6: MaterialProdInfo
import com.openbravo.pos.ticket.ProductInfoExt; //导入方法依赖的package包/类
/**
*
* @param p
*/
public MaterialProdInfo(ProductInfoExt p) {
m_sID = p.getID();
m_sName = p.getName();
m_dPriceBuy = p.getPriceBuy();
m_dAmount = 1.0;
}