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


Java ProductInfoExt.getID方法代码示例

本文整理汇总了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();
            }
        }

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

示例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);	       
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:11,代码来源:JCatalog.java

示例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));
        }
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:36,代码来源:StockDiaryEditor.java

示例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;
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:11,代码来源:InventoryLine.java

示例5: setInsertProduct

import com.openbravo.pos.ticket.ProductInfoExt; //导入方法依赖的package包/类
public void setInsertProduct(ProductInfoExt prod) {
    
    if (prod == null) {
        insertproduct = null;
    } else {
        insertproduct = prod.getID();
    }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:9,代码来源:AuxiliarEditor.java

示例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);	       
    }
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:15,代码来源:JCatalog.java

示例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;
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:12,代码来源:InventoryLine.java

示例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();
    }
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:13,代码来源:AuxiliarEditor.java

示例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;
}
 
开发者ID:herbiehp,项目名称:unicenta,代码行数:11,代码来源:MaterialProdInfo.java


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