1 14 package org.compiere.wstore; 15 16 import java.util.*; 17 import java.math.*; 18 19 import org.apache.log4j.Logger; 20 21 import org.compiere.model.*; 22 import org.compiere.util.DB; 23 import org.compiere.util.Env; 24 import org.compiere.www.*; 25 26 32 public class PriceListProduct 33 { 34 48 public PriceListProduct (int M_Product_ID, String value, String name, String description, 49 String help, String documentNote, String imageURL, String descriptionURL, 50 BigDecimal price, String uomName, String uomSymbol) 51 { 52 m_Product_ID = M_Product_ID; 54 m_value = value; 55 m_name = name; 56 m_description = description; 57 m_help = help; 59 m_documentNote = documentNote; 60 m_imageURL = imageURL; 61 m_descriptionURL = descriptionURL; 62 m_price = price; 64 m_uomName = uomName; 65 m_uomSymbol = uomSymbol; 66 } 68 69 public static final String NAME = "PriceListProduct"; 70 71 private Logger log = Logger.getLogger(getClass()); 72 73 private int m_Product_ID; 74 private String m_value; 75 private String m_name; 76 private String m_description; 77 78 private String m_help; 79 private String m_documentNote; 80 private String m_imageURL; 81 private String m_descriptionURL; 82 83 private BigDecimal m_price; 84 private String m_uomName; 85 private String m_uomSymbol; 86 87 88 92 public String toString() 93 { 94 StringBuffer sb = new StringBuffer ("PriceListProduct["); 95 sb.append(m_Product_ID).append("-").append(m_name) 96 .append("-").append(m_price) 97 .append("]"); 98 return sb.toString(); 99 } 101 102 103 107 public int getId() 108 { 109 return m_Product_ID; 110 } 111 public String getValue() 112 { 113 return m_value; 114 } 115 119 public String getName() 120 { 121 return m_name; 122 } 123 public String getDescription() 124 { 125 return m_description; 126 } 127 public String getHelp() 128 { 129 return m_help; 130 } 131 132 public String getDocumentNote() 133 { 134 return m_documentNote; 135 } 136 public String getImageURL() 137 { 138 return m_imageURL; 139 } 140 public String getDescriptionURL() 141 { 142 return m_descriptionURL; 143 } 144 145 public BigDecimal getPrice() 146 { 147 return m_price; 148 } 149 public String getUomName() 150 { 151 return m_uomName; 152 } 153 public String getUomSymbol() 154 { 155 return m_uomSymbol; 156 } 157 158 } | Popular Tags |