1 2 package org.compiere.model; 3 import java.util.*; 4 import java.sql.*; 5 import java.math.*; 6 import java.io.Serializable ; 7 import org.compiere.util.*; 8 10 public class X_M_Product_PO extends PO 11 { 12 13 public X_M_Product_PO (Properties ctx, int M_Product_PO_ID) 14 { 15 super (ctx, M_Product_PO_ID); 16 24 } 25 26 public X_M_Product_PO (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 210; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_M_Product_PO[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 void setC_BPartner_ID (int C_BPartner_ID) 43 { 44 setValueNoCheck ("C_BPartner_ID", new Integer (C_BPartner_ID)); 45 } 46 public int getC_BPartner_ID() 47 { 48 Integer ii = (Integer )getValue("C_BPartner_ID"); 49 if (ii == null) return 0; 50 return ii.intValue(); 51 } 52 public void setC_Currency_ID (int C_Currency_ID) 53 { 54 if (C_Currency_ID == 0) setValue ("C_Currency_ID", null); 55 else 56 setValue ("C_Currency_ID", new Integer (C_Currency_ID)); 57 } 58 public int getC_Currency_ID() 59 { 60 Integer ii = (Integer )getValue("C_Currency_ID"); 61 if (ii == null) return 0; 62 return ii.intValue(); 63 } 64 public void setC_UOM_ID (int C_UOM_ID) 65 { 66 if (C_UOM_ID == 0) setValue ("C_UOM_ID", null); 67 else 68 setValue ("C_UOM_ID", new Integer (C_UOM_ID)); 69 } 70 public int getC_UOM_ID() 71 { 72 Integer ii = (Integer )getValue("C_UOM_ID"); 73 if (ii == null) return 0; 74 return ii.intValue(); 75 } 76 public void setCostPerOrder (BigDecimal CostPerOrder) 77 { 78 setValue ("CostPerOrder", CostPerOrder); 79 } 80 public BigDecimal getCostPerOrder() 81 { 82 BigDecimal bd = (BigDecimal)getValue("CostPerOrder"); 83 if (bd == null) return Env.ZERO; 84 return bd; 85 } 86 public void setDeliveryTime_Actual (int DeliveryTime_Actual) 87 { 88 setValue ("DeliveryTime_Actual", new Integer (DeliveryTime_Actual)); 89 } 90 public int getDeliveryTime_Actual() 91 { 92 Integer ii = (Integer )getValue("DeliveryTime_Actual"); 93 if (ii == null) return 0; 94 return ii.intValue(); 95 } 96 public void setDeliveryTime_Promised (int DeliveryTime_Promised) 97 { 98 setValue ("DeliveryTime_Promised", new Integer (DeliveryTime_Promised)); 99 } 100 public int getDeliveryTime_Promised() 101 { 102 Integer ii = (Integer )getValue("DeliveryTime_Promised"); 103 if (ii == null) return 0; 104 return ii.intValue(); 105 } 106 public void setDiscontinued (boolean Discontinued) 107 { 108 setValue ("Discontinued", new Boolean (Discontinued)); 109 } 110 public boolean isDiscontinued() 111 { 112 Boolean bb = (Boolean )getValue("Discontinued"); 113 if (bb != null) return bb.booleanValue(); 114 return false; 115 } 116 public void setDiscontinuedBy (Timestamp DiscontinuedBy) 117 { 118 setValue ("DiscontinuedBy", DiscontinuedBy); 119 } 120 public Timestamp getDiscontinuedBy() 121 { 122 return (Timestamp)getValue("DiscontinuedBy"); 123 } 124 public void setIsCurrentVendor (boolean IsCurrentVendor) 125 { 126 setValue ("IsCurrentVendor", new Boolean (IsCurrentVendor)); 127 } 128 public boolean isCurrentVendor() 129 { 130 Boolean bb = (Boolean )getValue("IsCurrentVendor"); 131 if (bb != null) return bb.booleanValue(); 132 return false; 133 } 134 void setM_Product_ID (int M_Product_ID) 135 { 136 setValueNoCheck ("M_Product_ID", new Integer (M_Product_ID)); 137 } 138 public int getM_Product_ID() 139 { 140 Integer ii = (Integer )getValue("M_Product_ID"); 141 if (ii == null) return 0; 142 return ii.intValue(); 143 } 144 public void setManufacturer (String Manufacturer) 145 { 146 setValue ("Manufacturer", Manufacturer); 147 } 148 public String getManufacturer() 149 { 150 return (String )getValue("Manufacturer"); 151 } 152 public void setOrder_Min (BigDecimal Order_Min) 153 { 154 setValue ("Order_Min", Order_Min); 155 } 156 public BigDecimal getOrder_Min() 157 { 158 BigDecimal bd = (BigDecimal)getValue("Order_Min"); 159 if (bd == null) return Env.ZERO; 160 return bd; 161 } 162 public void setOrder_Pack (BigDecimal Order_Pack) 163 { 164 setValue ("Order_Pack", Order_Pack); 165 } 166 public BigDecimal getOrder_Pack() 167 { 168 BigDecimal bd = (BigDecimal)getValue("Order_Pack"); 169 if (bd == null) return Env.ZERO; 170 return bd; 171 } 172 public void setPriceEffective (Timestamp PriceEffective) 173 { 174 setValue ("PriceEffective", PriceEffective); 175 } 176 public Timestamp getPriceEffective() 177 { 178 return (Timestamp)getValue("PriceEffective"); 179 } 180 void setPriceLastInv (BigDecimal PriceLastInv) 181 { 182 setValueNoCheck ("PriceLastInv", PriceLastInv); 183 } 184 public BigDecimal getPriceLastInv() 185 { 186 BigDecimal bd = (BigDecimal)getValue("PriceLastInv"); 187 if (bd == null) return Env.ZERO; 188 return bd; 189 } 190 void setPriceLastPO (BigDecimal PriceLastPO) 191 { 192 setValueNoCheck ("PriceLastPO", PriceLastPO); 193 } 194 public BigDecimal getPriceLastPO() 195 { 196 BigDecimal bd = (BigDecimal)getValue("PriceLastPO"); 197 if (bd == null) return Env.ZERO; 198 return bd; 199 } 200 public void setPriceList (BigDecimal PriceList) 201 { 202 setValue ("PriceList", PriceList); 203 } 204 public BigDecimal getPriceList() 205 { 206 BigDecimal bd = (BigDecimal)getValue("PriceList"); 207 if (bd == null) return Env.ZERO; 208 return bd; 209 } 210 public void setPricePO (BigDecimal PricePO) 211 { 212 setValue ("PricePO", PricePO); 213 } 214 public BigDecimal getPricePO() 215 { 216 BigDecimal bd = (BigDecimal)getValue("PricePO"); 217 if (bd == null) return Env.ZERO; 218 return bd; 219 } 220 public void setQualityRating (int QualityRating) 221 { 222 setValue ("QualityRating", new Integer (QualityRating)); 223 } 224 public int getQualityRating() 225 { 226 Integer ii = (Integer )getValue("QualityRating"); 227 if (ii == null) return 0; 228 return ii.intValue(); 229 } 230 public void setRoyaltyAmt (BigDecimal RoyaltyAmt) 231 { 232 setValue ("RoyaltyAmt", RoyaltyAmt); 233 } 234 public BigDecimal getRoyaltyAmt() 235 { 236 BigDecimal bd = (BigDecimal)getValue("RoyaltyAmt"); 237 if (bd == null) return Env.ZERO; 238 return bd; 239 } 240 public void setUPC (String UPC) 241 { 242 setValue ("UPC", UPC); 243 } 244 public String getUPC() 245 { 246 return (String )getValue("UPC"); 247 } 248 public void setVendorCategory (String VendorCategory) 249 { 250 setValue ("VendorCategory", VendorCategory); 251 } 252 public String getVendorCategory() 253 { 254 return (String )getValue("VendorCategory"); 255 } 256 public void setVendorProductNo (String VendorProductNo) 257 { 258 if (VendorProductNo == null) throw new IllegalArgumentException ("VendorProductNo is mandatory"); 259 setValue ("VendorProductNo", VendorProductNo); 260 } 261 public String getVendorProductNo() 262 { 263 return (String )getValue("VendorProductNo"); 264 } 265 } 266
| Popular Tags
|