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_C_OrderLine extends PO 11 { 12 13 public X_C_OrderLine (Properties ctx, int C_OrderLine_ID) 14 { 15 super (ctx, C_OrderLine_ID); 16 41 } 42 43 public X_C_OrderLine (Properties ctx, ResultSet rs) 44 { 45 super (ctx, rs); 46 } 47 48 protected POInfo initPO (Properties ctx) 49 { 50 int AD_Table_ID = 260; 51 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 52 return poi; 53 } 54 public String toString() 55 { 56 StringBuffer sb = new StringBuffer ("X_C_OrderLine[").append(getID()).append("]"); 57 return sb.toString(); 58 } 59 public void setC_BPartner_ID (int C_BPartner_ID) 60 { 61 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null); 62 else 63 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 64 } 65 public int getC_BPartner_ID() 66 { 67 Integer ii = (Integer )getValue("C_BPartner_ID"); 68 if (ii == null) return 0; 69 return ii.intValue(); 70 } 71 public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) 72 { 73 setValue ("C_BPartner_Location_ID", new Integer (C_BPartner_Location_ID)); 74 } 75 public int getC_BPartner_Location_ID() 76 { 77 Integer ii = (Integer )getValue("C_BPartner_Location_ID"); 78 if (ii == null) return 0; 79 return ii.intValue(); 80 } 81 public void setC_Charge_ID (int C_Charge_ID) 82 { 83 if (C_Charge_ID == 0) setValue ("C_Charge_ID", null); 84 else 85 setValue ("C_Charge_ID", new Integer (C_Charge_ID)); 86 } 87 public int getC_Charge_ID() 88 { 89 Integer ii = (Integer )getValue("C_Charge_ID"); 90 if (ii == null) return 0; 91 return ii.intValue(); 92 } 93 void setC_Currency_ID (int C_Currency_ID) 94 { 95 setValueNoCheck ("C_Currency_ID", new Integer (C_Currency_ID)); 96 } 97 public int getC_Currency_ID() 98 { 99 Integer ii = (Integer )getValue("C_Currency_ID"); 100 if (ii == null) return 0; 101 return ii.intValue(); 102 } 103 void setC_OrderLine_ID (int C_OrderLine_ID) 104 { 105 setValueNoCheck ("C_OrderLine_ID", new Integer (C_OrderLine_ID)); 106 } 107 public int getC_OrderLine_ID() 108 { 109 Integer ii = (Integer )getValue("C_OrderLine_ID"); 110 if (ii == null) return 0; 111 return ii.intValue(); 112 } 113 void setC_Order_ID (int C_Order_ID) 114 { 115 setValueNoCheck ("C_Order_ID", new Integer (C_Order_ID)); 116 } 117 public int getC_Order_ID() 118 { 119 Integer ii = (Integer )getValue("C_Order_ID"); 120 if (ii == null) return 0; 121 return ii.intValue(); 122 } 123 public void setC_Tax_ID (int C_Tax_ID) 124 { 125 setValue ("C_Tax_ID", new Integer (C_Tax_ID)); 126 } 127 public int getC_Tax_ID() 128 { 129 Integer ii = (Integer )getValue("C_Tax_ID"); 130 if (ii == null) return 0; 131 return ii.intValue(); 132 } 133 void setC_UOM_ID (int C_UOM_ID) 134 { 135 setValueNoCheck ("C_UOM_ID", new Integer (C_UOM_ID)); 136 } 137 public int getC_UOM_ID() 138 { 139 Integer ii = (Integer )getValue("C_UOM_ID"); 140 if (ii == null) return 0; 141 return ii.intValue(); 142 } 143 public void setChargeAmt (BigDecimal ChargeAmt) 144 { 145 if (ChargeAmt == null) throw new IllegalArgumentException ("ChargeAmt is mandatory"); 146 setValue ("ChargeAmt", ChargeAmt); 147 } 148 public BigDecimal getChargeAmt() 149 { 150 BigDecimal bd = (BigDecimal)getValue("ChargeAmt"); 151 if (bd == null) return Env.ZERO; 152 return bd; 153 } 154 void setDateDelivered (Timestamp DateDelivered) 155 { 156 setValueNoCheck ("DateDelivered", DateDelivered); 157 } 158 public Timestamp getDateDelivered() 159 { 160 return (Timestamp)getValue("DateDelivered"); 161 } 162 void setDateInvoiced (Timestamp DateInvoiced) 163 { 164 setValueNoCheck ("DateInvoiced", DateInvoiced); 165 } 166 public Timestamp getDateInvoiced() 167 { 168 return (Timestamp)getValue("DateInvoiced"); 169 } 170 public void setDateOrdered (Timestamp DateOrdered) 171 { 172 if (DateOrdered == null) throw new IllegalArgumentException ("DateOrdered is mandatory"); 173 setValue ("DateOrdered", DateOrdered); 174 } 175 public Timestamp getDateOrdered() 176 { 177 return (Timestamp)getValue("DateOrdered"); 178 } 179 public void setDatePromised (Timestamp DatePromised) 180 { 181 setValue ("DatePromised", DatePromised); 182 } 183 public Timestamp getDatePromised() 184 { 185 return (Timestamp)getValue("DatePromised"); 186 } 187 public void setDescription (String Description) 188 { 189 setValue ("Description", Description); 190 } 191 public String getDescription() 192 { 193 return (String )getValue("Description"); 194 } 195 void setDirectShip (boolean DirectShip) 196 { 197 setValueNoCheck ("DirectShip", new Boolean (DirectShip)); 198 } 199 public boolean isDirectShip() 200 { 201 Boolean bb = (Boolean )getValue("DirectShip"); 202 if (bb != null) return bb.booleanValue(); 203 return false; 204 } 205 public void setDiscount (BigDecimal Discount) 206 { 207 setValue ("Discount", Discount); 208 } 209 public BigDecimal getDiscount() 210 { 211 BigDecimal bd = (BigDecimal)getValue("Discount"); 212 if (bd == null) return Env.ZERO; 213 return bd; 214 } 215 public void setFreightAmt (BigDecimal FreightAmt) 216 { 217 if (FreightAmt == null) throw new IllegalArgumentException ("FreightAmt is mandatory"); 218 setValue ("FreightAmt", FreightAmt); 219 } 220 public BigDecimal getFreightAmt() 221 { 222 BigDecimal bd = (BigDecimal)getValue("FreightAmt"); 223 if (bd == null) return Env.ZERO; 224 return bd; 225 } 226 public void setIsDescription (boolean IsDescription) 227 { 228 setValue ("IsDescription", new Boolean (IsDescription)); 229 } 230 public boolean isDescription() 231 { 232 Boolean bb = (Boolean )getValue("IsDescription"); 233 if (bb != null) return bb.booleanValue(); 234 return false; 235 } 236 public void setLine (int Line) 237 { 238 setValue ("Line", new Integer (Line)); 239 } 240 public int getLine() 241 { 242 Integer ii = (Integer )getValue("Line"); 243 if (ii == null) return 0; 244 return ii.intValue(); 245 } 246 void setLineNetAmt (BigDecimal LineNetAmt) 247 { 248 if (LineNetAmt == null) throw new IllegalArgumentException ("LineNetAmt is mandatory"); 249 setValueNoCheck ("LineNetAmt", LineNetAmt); 250 } 251 public BigDecimal getLineNetAmt() 252 { 253 BigDecimal bd = (BigDecimal)getValue("LineNetAmt"); 254 if (bd == null) return Env.ZERO; 255 return bd; 256 } 257 public void setLot (String Lot) 258 { 259 setValue ("Lot", Lot); 260 } 261 public String getLot() 262 { 263 return (String )getValue("Lot"); 264 } 265 public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) 266 { 267 if (M_AttributeSetInstance_ID == 0) setValue ("M_AttributeSetInstance_ID", null); 268 else 269 setValue ("M_AttributeSetInstance_ID", new Integer (M_AttributeSetInstance_ID)); 270 } 271 public int getM_AttributeSetInstance_ID() 272 { 273 Integer ii = (Integer )getValue("M_AttributeSetInstance_ID"); 274 if (ii == null) return 0; 275 return ii.intValue(); 276 } 277 public void setM_Product_ID (int M_Product_ID) 278 { 279 if (M_Product_ID == 0) setValue ("M_Product_ID", null); 280 else 281 setValue ("M_Product_ID", new Integer (M_Product_ID)); 282 } 283 public int getM_Product_ID() 284 { 285 Integer ii = (Integer )getValue("M_Product_ID"); 286 if (ii == null) return 0; 287 return ii.intValue(); 288 } 289 public void setM_Shipper_ID (int M_Shipper_ID) 290 { 291 if (M_Shipper_ID == 0) setValue ("M_Shipper_ID", null); 292 else 293 setValue ("M_Shipper_ID", new Integer (M_Shipper_ID)); 294 } 295 public int getM_Shipper_ID() 296 { 297 Integer ii = (Integer )getValue("M_Shipper_ID"); 298 if (ii == null) return 0; 299 return ii.intValue(); 300 } 301 public void setM_Warehouse_ID (int M_Warehouse_ID) 302 { 303 setValue ("M_Warehouse_ID", new Integer (M_Warehouse_ID)); 304 } 305 public int getM_Warehouse_ID() 306 { 307 Integer ii = (Integer )getValue("M_Warehouse_ID"); 308 if (ii == null) return 0; 309 return ii.intValue(); 310 } 311 public void setPriceActual (BigDecimal PriceActual) 312 { 313 if (PriceActual == null) throw new IllegalArgumentException ("PriceActual is mandatory"); 314 setValue ("PriceActual", PriceActual); 315 } 316 public BigDecimal getPriceActual() 317 { 318 BigDecimal bd = (BigDecimal)getValue("PriceActual"); 319 if (bd == null) return Env.ZERO; 320 return bd; 321 } 322 public void setPriceLimit (BigDecimal PriceLimit) 323 { 324 if (PriceLimit == null) throw new IllegalArgumentException ("PriceLimit is mandatory"); 325 setValue ("PriceLimit", PriceLimit); 326 } 327 public BigDecimal getPriceLimit() 328 { 329 BigDecimal bd = (BigDecimal)getValue("PriceLimit"); 330 if (bd == null) return Env.ZERO; 331 return bd; 332 } 333 public void setPriceList (BigDecimal PriceList) 334 { 335 if (PriceList == null) throw new IllegalArgumentException ("PriceList is mandatory"); 336 setValue ("PriceList", PriceList); 337 } 338 public BigDecimal getPriceList() 339 { 340 BigDecimal bd = (BigDecimal)getValue("PriceList"); 341 if (bd == null) return Env.ZERO; 342 return bd; 343 } 344 void setQtyDelivered (BigDecimal QtyDelivered) 345 { 346 if (QtyDelivered == null) throw new IllegalArgumentException ("QtyDelivered is mandatory"); 347 setValueNoCheck ("QtyDelivered", QtyDelivered); 348 } 349 public BigDecimal getQtyDelivered() 350 { 351 BigDecimal bd = (BigDecimal)getValue("QtyDelivered"); 352 if (bd == null) return Env.ZERO; 353 return bd; 354 } 355 void setQtyInvoiced (BigDecimal QtyInvoiced) 356 { 357 if (QtyInvoiced == null) throw new IllegalArgumentException ("QtyInvoiced is mandatory"); 358 setValueNoCheck ("QtyInvoiced", QtyInvoiced); 359 } 360 public BigDecimal getQtyInvoiced() 361 { 362 BigDecimal bd = (BigDecimal)getValue("QtyInvoiced"); 363 if (bd == null) return Env.ZERO; 364 return bd; 365 } 366 public void setQtyOrdered (BigDecimal QtyOrdered) 367 { 368 if (QtyOrdered == null) throw new IllegalArgumentException ("QtyOrdered is mandatory"); 369 setValue ("QtyOrdered", QtyOrdered); 370 } 371 public BigDecimal getQtyOrdered() 372 { 373 BigDecimal bd = (BigDecimal)getValue("QtyOrdered"); 374 if (bd == null) return Env.ZERO; 375 return bd; 376 } 377 void setQtyReserved (BigDecimal QtyReserved) 378 { 379 if (QtyReserved == null) throw new IllegalArgumentException ("QtyReserved is mandatory"); 380 setValueNoCheck ("QtyReserved", QtyReserved); 381 } 382 public BigDecimal getQtyReserved() 383 { 384 BigDecimal bd = (BigDecimal)getValue("QtyReserved"); 385 if (bd == null) return Env.ZERO; 386 return bd; 387 } 388 void setRef_OrderLine_ID (int Ref_OrderLine_ID) 389 { 390 if (Ref_OrderLine_ID == 0) setValueNoCheck ("Ref_OrderLine_ID", null); 391 else 392 setValueNoCheck ("Ref_OrderLine_ID", new Integer (Ref_OrderLine_ID)); 393 } 394 public int getRef_OrderLine_ID() 395 { 396 Integer ii = (Integer )getValue("Ref_OrderLine_ID"); 397 if (ii == null) return 0; 398 return ii.intValue(); 399 } 400 public void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID) 401 { 402 if (S_ResourceAssignment_ID == 0) setValue ("S_ResourceAssignment_ID", null); 403 else 404 setValue ("S_ResourceAssignment_ID", new Integer (S_ResourceAssignment_ID)); 405 } 406 public int getS_ResourceAssignment_ID() 407 { 408 Integer ii = (Integer )getValue("S_ResourceAssignment_ID"); 409 if (ii == null) return 0; 410 return ii.intValue(); 411 } 412 public void setSerNo (String SerNo) 413 { 414 setValue ("SerNo", SerNo); 415 } 416 public String getSerNo() 417 { 418 return (String )getValue("SerNo"); 419 } 420 } 421
| Popular Tags
|