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_I_Order extends PO 11 { 12 13 public X_I_Order (Properties ctx, int I_Order_ID) 14 { 15 super (ctx, I_Order_ID); 16 26 } 27 28 public X_I_Order (Properties ctx, ResultSet rs) 29 { 30 super (ctx, rs); 31 } 32 33 protected POInfo initPO (Properties ctx) 34 { 35 int AD_Table_ID = 591; 36 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 37 return poi; 38 } 39 public String toString() 40 { 41 StringBuffer sb = new StringBuffer ("X_I_Order[").append(getID()).append("]"); 42 return sb.toString(); 43 } 44 public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) 45 { 46 if (AD_OrgTrx_ID == 0) setValue ("AD_OrgTrx_ID", null); 47 else 48 setValue ("AD_OrgTrx_ID", new Integer (AD_OrgTrx_ID)); 49 } 50 public int getAD_OrgTrx_ID() 51 { 52 Integer ii = (Integer )getValue("AD_OrgTrx_ID"); 53 if (ii == null) return 0; 54 return ii.intValue(); 55 } 56 public void setAD_User_ID (int AD_User_ID) 57 { 58 if (AD_User_ID == 0) setValue ("AD_User_ID", null); 59 else 60 setValue ("AD_User_ID", new Integer (AD_User_ID)); 61 } 62 public int getAD_User_ID() 63 { 64 Integer ii = (Integer )getValue("AD_User_ID"); 65 if (ii == null) return 0; 66 return ii.intValue(); 67 } 68 public void setAddress1 (String Address1) 69 { 70 setValue ("Address1", Address1); 71 } 72 public String getAddress1() 73 { 74 return (String )getValue("Address1"); 75 } 76 public void setAddress2 (String Address2) 77 { 78 setValue ("Address2", Address2); 79 } 80 public String getAddress2() 81 { 82 return (String )getValue("Address2"); 83 } 84 public void setBPartnerValue (String BPartnerValue) 85 { 86 setValue ("BPartnerValue", BPartnerValue); 87 } 88 public String getBPartnerValue() 89 { 90 return (String )getValue("BPartnerValue"); 91 } 92 public void setBillTo_ID (int BillTo_ID) 93 { 94 if (BillTo_ID == 0) setValue ("BillTo_ID", null); 95 else 96 setValue ("BillTo_ID", new Integer (BillTo_ID)); 97 } 98 public int getBillTo_ID() 99 { 100 Integer ii = (Integer )getValue("BillTo_ID"); 101 if (ii == null) return 0; 102 return ii.intValue(); 103 } 104 public void setC_Activity_ID (int C_Activity_ID) 105 { 106 if (C_Activity_ID == 0) setValue ("C_Activity_ID", null); 107 else 108 setValue ("C_Activity_ID", new Integer (C_Activity_ID)); 109 } 110 public int getC_Activity_ID() 111 { 112 Integer ii = (Integer )getValue("C_Activity_ID"); 113 if (ii == null) return 0; 114 return ii.intValue(); 115 } 116 public void setC_BPartner_ID (int C_BPartner_ID) 117 { 118 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null); 119 else 120 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 121 } 122 public int getC_BPartner_ID() 123 { 124 Integer ii = (Integer )getValue("C_BPartner_ID"); 125 if (ii == null) return 0; 126 return ii.intValue(); 127 } 128 public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) 129 { 130 if (C_BPartner_Location_ID == 0) setValue ("C_BPartner_Location_ID", null); 131 else 132 setValue ("C_BPartner_Location_ID", new Integer (C_BPartner_Location_ID)); 133 } 134 public int getC_BPartner_Location_ID() 135 { 136 Integer ii = (Integer )getValue("C_BPartner_Location_ID"); 137 if (ii == null) return 0; 138 return ii.intValue(); 139 } 140 public void setC_Campaign_ID (int C_Campaign_ID) 141 { 142 if (C_Campaign_ID == 0) setValue ("C_Campaign_ID", null); 143 else 144 setValue ("C_Campaign_ID", new Integer (C_Campaign_ID)); 145 } 146 public int getC_Campaign_ID() 147 { 148 Integer ii = (Integer )getValue("C_Campaign_ID"); 149 if (ii == null) return 0; 150 return ii.intValue(); 151 } 152 public void setC_Country_ID (int C_Country_ID) 153 { 154 if (C_Country_ID == 0) setValue ("C_Country_ID", null); 155 else 156 setValue ("C_Country_ID", new Integer (C_Country_ID)); 157 } 158 public int getC_Country_ID() 159 { 160 Integer ii = (Integer )getValue("C_Country_ID"); 161 if (ii == null) return 0; 162 return ii.intValue(); 163 } 164 public void setC_Currency_ID (int C_Currency_ID) 165 { 166 if (C_Currency_ID == 0) setValue ("C_Currency_ID", null); 167 else 168 setValue ("C_Currency_ID", new Integer (C_Currency_ID)); 169 } 170 public int getC_Currency_ID() 171 { 172 Integer ii = (Integer )getValue("C_Currency_ID"); 173 if (ii == null) return 0; 174 return ii.intValue(); 175 } 176 public void setC_DocType_ID (int C_DocType_ID) 177 { 178 if (C_DocType_ID == 0) setValue ("C_DocType_ID", null); 179 else 180 setValue ("C_DocType_ID", new Integer (C_DocType_ID)); 181 } 182 public int getC_DocType_ID() 183 { 184 Integer ii = (Integer )getValue("C_DocType_ID"); 185 if (ii == null) return 0; 186 return ii.intValue(); 187 } 188 public void setC_Location_ID (int C_Location_ID) 189 { 190 if (C_Location_ID == 0) setValue ("C_Location_ID", null); 191 else 192 setValue ("C_Location_ID", new Integer (C_Location_ID)); 193 } 194 public int getC_Location_ID() 195 { 196 Integer ii = (Integer )getValue("C_Location_ID"); 197 if (ii == null) return 0; 198 return ii.intValue(); 199 } 200 public void setC_OrderLine_ID (int C_OrderLine_ID) 201 { 202 if (C_OrderLine_ID == 0) setValue ("C_OrderLine_ID", null); 203 else 204 setValue ("C_OrderLine_ID", new Integer (C_OrderLine_ID)); 205 } 206 public int getC_OrderLine_ID() 207 { 208 Integer ii = (Integer )getValue("C_OrderLine_ID"); 209 if (ii == null) return 0; 210 return ii.intValue(); 211 } 212 public void setC_Order_ID (int C_Order_ID) 213 { 214 if (C_Order_ID == 0) setValue ("C_Order_ID", null); 215 else 216 setValue ("C_Order_ID", new Integer (C_Order_ID)); 217 } 218 public int getC_Order_ID() 219 { 220 Integer ii = (Integer )getValue("C_Order_ID"); 221 if (ii == null) return 0; 222 return ii.intValue(); 223 } 224 public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) 225 { 226 if (C_PaymentTerm_ID == 0) setValue ("C_PaymentTerm_ID", null); 227 else 228 setValue ("C_PaymentTerm_ID", new Integer (C_PaymentTerm_ID)); 229 } 230 public int getC_PaymentTerm_ID() 231 { 232 Integer ii = (Integer )getValue("C_PaymentTerm_ID"); 233 if (ii == null) return 0; 234 return ii.intValue(); 235 } 236 public void setC_Project_ID (int C_Project_ID) 237 { 238 if (C_Project_ID == 0) setValue ("C_Project_ID", null); 239 else 240 setValue ("C_Project_ID", new Integer (C_Project_ID)); 241 } 242 public int getC_Project_ID() 243 { 244 Integer ii = (Integer )getValue("C_Project_ID"); 245 if (ii == null) return 0; 246 return ii.intValue(); 247 } 248 public void setC_Region_ID (int C_Region_ID) 249 { 250 if (C_Region_ID == 0) setValue ("C_Region_ID", null); 251 else 252 setValue ("C_Region_ID", new Integer (C_Region_ID)); 253 } 254 public int getC_Region_ID() 255 { 256 Integer ii = (Integer )getValue("C_Region_ID"); 257 if (ii == null) return 0; 258 return ii.intValue(); 259 } 260 public void setC_Tax_ID (int C_Tax_ID) 261 { 262 if (C_Tax_ID == 0) setValue ("C_Tax_ID", null); 263 else 264 setValue ("C_Tax_ID", new Integer (C_Tax_ID)); 265 } 266 public int getC_Tax_ID() 267 { 268 Integer ii = (Integer )getValue("C_Tax_ID"); 269 if (ii == null) return 0; 270 return ii.intValue(); 271 } 272 public void setC_UOM_ID (int C_UOM_ID) 273 { 274 if (C_UOM_ID == 0) setValue ("C_UOM_ID", null); 275 else 276 setValue ("C_UOM_ID", new Integer (C_UOM_ID)); 277 } 278 public int getC_UOM_ID() 279 { 280 Integer ii = (Integer )getValue("C_UOM_ID"); 281 if (ii == null) return 0; 282 return ii.intValue(); 283 } 284 public void setCity (String City) 285 { 286 setValue ("City", City); 287 } 288 public String getCity() 289 { 290 return (String )getValue("City"); 291 } 292 public void setContactName (String ContactName) 293 { 294 setValue ("ContactName", ContactName); 295 } 296 public String getContactName() 297 { 298 return (String )getValue("ContactName"); 299 } 300 public void setCountryCode (String CountryCode) 301 { 302 setValue ("CountryCode", CountryCode); 303 } 304 public String getCountryCode() 305 { 306 return (String )getValue("CountryCode"); 307 } 308 public void setDateAcct (Timestamp DateAcct) 309 { 310 setValue ("DateAcct", DateAcct); 311 } 312 public Timestamp getDateAcct() 313 { 314 return (Timestamp)getValue("DateAcct"); 315 } 316 public void setDateOrdered (Timestamp DateOrdered) 317 { 318 setValue ("DateOrdered", DateOrdered); 319 } 320 public Timestamp getDateOrdered() 321 { 322 return (Timestamp)getValue("DateOrdered"); 323 } 324 public void setDescription (String Description) 325 { 326 setValue ("Description", Description); 327 } 328 public String getDescription() 329 { 330 return (String )getValue("Description"); 331 } 332 public void setDocTypeName (String DocTypeName) 333 { 334 setValue ("DocTypeName", DocTypeName); 335 } 336 public String getDocTypeName() 337 { 338 return (String )getValue("DocTypeName"); 339 } 340 public void setDocumentNo (String DocumentNo) 341 { 342 setValue ("DocumentNo", DocumentNo); 343 } 344 public String getDocumentNo() 345 { 346 return (String )getValue("DocumentNo"); 347 } 348 public void setEmail (String Email) 349 { 350 setValue ("Email", Email); 351 } 352 public String getEmail() 353 { 354 return (String )getValue("Email"); 355 } 356 public void setFreightAmt (BigDecimal FreightAmt) 357 { 358 setValue ("FreightAmt", FreightAmt); 359 } 360 public BigDecimal getFreightAmt() 361 { 362 BigDecimal bd = (BigDecimal)getValue("FreightAmt"); 363 if (bd == null) return Env.ZERO; 364 return bd; 365 } 366 public void setI_ErrorMsg (String I_ErrorMsg) 367 { 368 setValue ("I_ErrorMsg", I_ErrorMsg); 369 } 370 public String getI_ErrorMsg() 371 { 372 return (String )getValue("I_ErrorMsg"); 373 } 374 public void setI_IsImported (boolean I_IsImported) 375 { 376 setValue ("I_IsImported", new Boolean (I_IsImported)); 377 } 378 public boolean isI_IsImported() 379 { 380 Boolean bb = (Boolean )getValue("I_IsImported"); 381 if (bb != null) return bb.booleanValue(); 382 return false; 383 } 384 void setI_Order_ID (int I_Order_ID) 385 { 386 setValueNoCheck ("I_Order_ID", new Integer (I_Order_ID)); 387 } 388 public int getI_Order_ID() 389 { 390 Integer ii = (Integer )getValue("I_Order_ID"); 391 if (ii == null) return 0; 392 return ii.intValue(); 393 } 394 public void setIsSOTrx (boolean IsSOTrx) 395 { 396 setValue ("IsSOTrx", new Boolean (IsSOTrx)); 397 } 398 public boolean isSOTrx() 399 { 400 Boolean bb = (Boolean )getValue("IsSOTrx"); 401 if (bb != null) return bb.booleanValue(); 402 return false; 403 } 404 public void setLineDescription (String LineDescription) 405 { 406 setValue ("LineDescription", LineDescription); 407 } 408 public String getLineDescription() 409 { 410 return (String )getValue("LineDescription"); 411 } 412 public void setM_PriceList_ID (int M_PriceList_ID) 413 { 414 if (M_PriceList_ID == 0) setValue ("M_PriceList_ID", null); 415 else 416 setValue ("M_PriceList_ID", new Integer (M_PriceList_ID)); 417 } 418 public int getM_PriceList_ID() 419 { 420 Integer ii = (Integer )getValue("M_PriceList_ID"); 421 if (ii == null) return 0; 422 return ii.intValue(); 423 } 424 public void setM_Product_ID (int M_Product_ID) 425 { 426 if (M_Product_ID == 0) setValue ("M_Product_ID", null); 427 else 428 setValue ("M_Product_ID", new Integer (M_Product_ID)); 429 } 430 public int getM_Product_ID() 431 { 432 Integer ii = (Integer )getValue("M_Product_ID"); 433 if (ii == null) return 0; 434 return ii.intValue(); 435 } 436 public void setM_Shipper_ID (int M_Shipper_ID) 437 { 438 if (M_Shipper_ID == 0) setValue ("M_Shipper_ID", null); 439 else 440 setValue ("M_Shipper_ID", new Integer (M_Shipper_ID)); 441 } 442 public int getM_Shipper_ID() 443 { 444 Integer ii = (Integer )getValue("M_Shipper_ID"); 445 if (ii == null) return 0; 446 return ii.intValue(); 447 } 448 public void setM_Warehouse_ID (int M_Warehouse_ID) 449 { 450 if (M_Warehouse_ID == 0) setValue ("M_Warehouse_ID", null); 451 else 452 setValue ("M_Warehouse_ID", new Integer (M_Warehouse_ID)); 453 } 454 public int getM_Warehouse_ID() 455 { 456 Integer ii = (Integer )getValue("M_Warehouse_ID"); 457 if (ii == null) return 0; 458 return ii.intValue(); 459 } 460 public void setName (String Name) 461 { 462 setValue ("Name", Name); 463 } 464 public String getName() 465 { 466 return (String )getValue("Name"); 467 } 468 public void setPaymentTermValue (String PaymentTermValue) 469 { 470 setValue ("PaymentTermValue", PaymentTermValue); 471 } 472 public String getPaymentTermValue() 473 { 474 return (String )getValue("PaymentTermValue"); 475 } 476 public void setPhone (String Phone) 477 { 478 setValue ("Phone", Phone); 479 } 480 public String getPhone() 481 { 482 return (String )getValue("Phone"); 483 } 484 public void setPostal (String Postal) 485 { 486 setValue ("Postal", Postal); 487 } 488 public String getPostal() 489 { 490 return (String )getValue("Postal"); 491 } 492 public void setPriceActual (BigDecimal PriceActual) 493 { 494 if (PriceActual == null) throw new IllegalArgumentException ("PriceActual is mandatory"); 495 setValue ("PriceActual", PriceActual); 496 } 497 public BigDecimal getPriceActual() 498 { 499 BigDecimal bd = (BigDecimal)getValue("PriceActual"); 500 if (bd == null) return Env.ZERO; 501 return bd; 502 } 503 public void setProcessed (boolean Processed) 504 { 505 setValue ("Processed", new Boolean (Processed)); 506 } 507 public boolean isProcessed() 508 { 509 Boolean bb = (Boolean )getValue("Processed"); 510 if (bb != null) return bb.booleanValue(); 511 return false; 512 } 513 public void setProcessing (String Processing) 514 { 515 setValue ("Processing", Processing); 516 } 517 public String getProcessing() 518 { 519 return (String )getValue("Processing"); 520 } 521 public void setProductValue (String ProductValue) 522 { 523 setValue ("ProductValue", ProductValue); 524 } 525 public String getProductValue() 526 { 527 return (String )getValue("ProductValue"); 528 } 529 public void setQtyOrdered (BigDecimal QtyOrdered) 530 { 531 if (QtyOrdered == null) throw new IllegalArgumentException ("QtyOrdered is mandatory"); 532 setValue ("QtyOrdered", QtyOrdered); 533 } 534 public BigDecimal getQtyOrdered() 535 { 536 BigDecimal bd = (BigDecimal)getValue("QtyOrdered"); 537 if (bd == null) return Env.ZERO; 538 return bd; 539 } 540 public void setRegionName (String RegionName) 541 { 542 setValue ("RegionName", RegionName); 543 } 544 public String getRegionName() 545 { 546 return (String )getValue("RegionName"); 547 } 548 public void setSKU (String SKU) 549 { 550 setValue ("SKU", SKU); 551 } 552 public String getSKU() 553 { 554 return (String )getValue("SKU"); 555 } 556 public void setSalesRep_ID (int SalesRep_ID) 557 { 558 if (SalesRep_ID == 0) setValue ("SalesRep_ID", null); 559 else 560 setValue ("SalesRep_ID", new Integer (SalesRep_ID)); 561 } 562 public int getSalesRep_ID() 563 { 564 Integer ii = (Integer )getValue("SalesRep_ID"); 565 if (ii == null) return 0; 566 return ii.intValue(); 567 } 568 public void setTaxAmt (BigDecimal TaxAmt) 569 { 570 setValue ("TaxAmt", TaxAmt); 571 } 572 public BigDecimal getTaxAmt() 573 { 574 BigDecimal bd = (BigDecimal)getValue("TaxAmt"); 575 if (bd == null) return Env.ZERO; 576 return bd; 577 } 578 public void setTaxIndicator (String TaxIndicator) 579 { 580 setValue ("TaxIndicator", TaxIndicator); 581 } 582 public String getTaxIndicator() 583 { 584 return (String )getValue("TaxIndicator"); 585 } 586 public void setUPC (String UPC) 587 { 588 setValue ("UPC", UPC); 589 } 590 public String getUPC() 591 { 592 return (String )getValue("UPC"); 593 } 594 } 595 | Popular Tags |