📄 pricelistproduct.java
字号:
/******************************************************************************
* The contents of this file are subject to the Compiere License Version 1.1
* ("License"); You may not use this file except in compliance with the License
* You may obtain a copy of the License at http://www.compiere.org/license.html
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific language governing rights and limitations under the License.
* The Original Code is Compiere ERP & CRM Smart Business Solution
* The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
* Portions created by Jorg Janke are Copyright (C) 1999-2003 Jorg Janke, parts
* created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
* Contributor(s): ______________________________________.
*****************************************************************************/
package org.compiere.wstore;
import java.util.*;
import java.math.*;
import org.apache.log4j.Logger;
import org.compiere.model.*;
import org.compiere.util.DB;
import org.compiere.util.Env;
import org.compiere.www.*;
/**
* Price List Product
*
* @author Jorg Janke
* @version $Id: PriceListProduct.java,v 1.2 2003/04/28 04:20:25 jjanke Exp $
*/
public class PriceListProduct
{
/**
* Price List Product.
* @param M_Product_ID product
* @param value value
* @param name name
* @param description descriprion
* @param price price
* @param uomName uom
*/
public PriceListProduct (int M_Product_ID, String value, String name, String description,
BigDecimal price, String uomName)
{
m_Product_ID = M_Product_ID;
m_value = value;
m_name = name;
m_description = description;
m_price = price;
m_uomName = uomName;
} // PriceListProduct
/** Attribute Name */
public static final String NAME = "PriceListProduct";
/** Logging */
private Logger log = Logger.getLogger(getClass());
private String m_name;
private String m_description;
private int m_Product_ID;
private String m_value;
private BigDecimal m_price;
private String m_uomName;
/**
* String Representation
* @return info
*/
public String toString()
{
StringBuffer sb = new StringBuffer("PriceListProduct[");
sb.append(m_Product_ID).append("-").append(m_name)
.append("-").append(m_price)
.append("]");
return sb.toString();
} // toString
/*************************************************************************/
/**
* Get Name
* @return name
*/
public String getName()
{
return m_name;
}
public String getDescription()
{
return m_description;
}
public int getId()
{
return m_Product_ID;
}
public String getValue()
{
return m_value;
}
public BigDecimal getPrice()
{
return m_price;
}
public String getUomName()
{
return m_uomName;
}
} // PriceListProduct
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -