本文整理汇总了Java中com.openbravo.pos.ticket.ProductInfoExt.getID方法的典型用法代码示例。如果您正苦于以下问题:Java ProductInfoExt.getID方法的具体用法?Java ProductInfoExt.getID怎么用?Java ProductInfoExt.getID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.openbravo.pos.ticket.ProductInfoExt
的用法示例。
在下文中一共展示了ProductInfoExt.getID方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: fireSelectedProduct
import com.openbravo.pos.ticket.ProductInfoExt; //导入方法依赖的package包/类
protected void fireSelectedProduct(ProductInfoExt prod) {
EventListener[] l = listeners.getListeners(ActionListener.class);
ActionEvent e = null;
for (int i = 0; i < l.length; i++) {
if (e == null) {
e = new ActionEvent(prod, ActionEvent.ACTION_PERFORMED, prod.getID());
}
((ActionListener) l[i]).actionPerformed(e);
}
}
示例3: 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));
}
}
}
示例4: 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;
}
示例5: setInsertProduct
import com.openbravo.pos.ticket.ProductInfoExt; //导入方法依赖的package包/类
public void setInsertProduct(ProductInfoExt prod) {
if (prod == null) {
insertproduct = null;
} else {
insertproduct = prod.getID();
}
}
示例6: fireSelectedProduct
import com.openbravo.pos.ticket.ProductInfoExt; //导入方法依赖的package包/类
/**
*
* @param prod
*/
protected void fireSelectedProduct(ProductInfoExt prod) {
EventListener[] l = listeners.getListeners(ActionListener.class);
ActionEvent e = null;
for (EventListener l1 : l) {
if (e == null) {
e = new ActionEvent(prod, ActionEvent.ACTION_PERFORMED, prod.getID());
}
((ActionListener) l1).actionPerformed(e);
}
}
示例7: 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;
}
示例8: setInsertProduct
import com.openbravo.pos.ticket.ProductInfoExt; //导入方法依赖的package包/类
/**
*
* @param prod
*/
public void setInsertProduct(ProductInfoExt prod) {
if (prod == null) {
insertproduct = null;
} else {
insertproduct = prod.getID();
}
}
示例9: 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;
}