本文整理汇总了Java中com.openbravo.pos.ticket.ProductInfoExt.getAttributeSetID方法的典型用法代码示例。如果您正苦于以下问题:Java ProductInfoExt.getAttributeSetID方法的具体用法?Java ProductInfoExt.getAttributeSetID怎么用?Java ProductInfoExt.getAttributeSetID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.openbravo.pos.ticket.ProductInfoExt
的用法示例。
在下文中一共展示了ProductInfoExt.getAttributeSetID方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: assignProduct
import com.openbravo.pos.ticket.ProductInfoExt; //导入方法依赖的package包/类
private void assignProduct(ProductInfoExt prod) {
if (jproduct.isEnabled()) {
if (prod == null) {
productid = null;
productref = null;
productcode = null;
productname = null;
attsetid = null;
attsetinstid = null;
attsetinstdesc = null;
jproduct.setText(null);
m_jcodebar.setText(null);
m_jreference.setText(null);
jattributes.setText(null);
} else {
productid = prod.getID();
productref = prod.getReference();
productcode = prod.getCode();
productname = prod.toString();
attsetid = prod.getAttributeSetID();
attsetinstid = null;
attsetinstdesc = null;
jproduct.setText(productname);
m_jcodebar.setText(productcode);
m_jreference.setText(productref);
jattributes.setText(null);
// calculo el precio sugerido para la entrada.
MovementReason reason = (MovementReason) m_ReasonModel.getSelectedItem();
Double dPrice = reason.getPrice(prod.getPriceBuy(), prod.getPriceSell());
m_jprice.setText(Formats.CURRENCY.formatValue(dPrice));
}
}
}
示例2: 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;
}
示例3: 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;
}