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_GLJournal extends PO 11 { 12 13 public X_I_GLJournal (Properties ctx, int I_GLJournal_ID) 14 { 15 super (ctx, I_GLJournal_ID); 16 26 } 27 28 public X_I_GLJournal (Properties ctx, ResultSet rs) 29 { 30 super (ctx, rs); 31 } 32 33 protected POInfo initPO (Properties ctx) 34 { 35 int AD_Table_ID = 599; 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_GLJournal[").append(getID()).append("]"); 42 return sb.toString(); 43 } 44 public void setAD_OrgDoc_ID (int AD_OrgDoc_ID) 45 { 46 if (AD_OrgDoc_ID == 0) setValue ("AD_OrgDoc_ID", null); 47 else 48 setValue ("AD_OrgDoc_ID", new Integer (AD_OrgDoc_ID)); 49 } 50 public int getAD_OrgDoc_ID() 51 { 52 Integer ii = (Integer )getValue("AD_OrgDoc_ID"); 53 if (ii == null) return 0; 54 return ii.intValue(); 55 } 56 public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) 57 { 58 if (AD_OrgTrx_ID == 0) setValue ("AD_OrgTrx_ID", null); 59 else 60 setValue ("AD_OrgTrx_ID", new Integer (AD_OrgTrx_ID)); 61 } 62 public int getAD_OrgTrx_ID() 63 { 64 Integer ii = (Integer )getValue("AD_OrgTrx_ID"); 65 if (ii == null) return 0; 66 return ii.intValue(); 67 } 68 public void setAccountValue (String AccountValue) 69 { 70 setValue ("AccountValue", AccountValue); 71 } 72 public String getAccountValue() 73 { 74 return (String )getValue("AccountValue"); 75 } 76 public void setAccount_ID (int Account_ID) 77 { 78 if (Account_ID == 0) setValue ("Account_ID", null); 79 else 80 setValue ("Account_ID", new Integer (Account_ID)); 81 } 82 public int getAccount_ID() 83 { 84 Integer ii = (Integer )getValue("Account_ID"); 85 if (ii == null) return 0; 86 return ii.intValue(); 87 } 88 public void setAcctSchemaName (String AcctSchemaName) 89 { 90 setValue ("AcctSchemaName", AcctSchemaName); 91 } 92 public String getAcctSchemaName() 93 { 94 return (String )getValue("AcctSchemaName"); 95 } 96 public void setAmtAcctCr (BigDecimal AmtAcctCr) 97 { 98 setValue ("AmtAcctCr", AmtAcctCr); 99 } 100 public BigDecimal getAmtAcctCr() 101 { 102 BigDecimal bd = (BigDecimal)getValue("AmtAcctCr"); 103 if (bd == null) return Env.ZERO; 104 return bd; 105 } 106 public void setAmtAcctDr (BigDecimal AmtAcctDr) 107 { 108 setValue ("AmtAcctDr", AmtAcctDr); 109 } 110 public BigDecimal getAmtAcctDr() 111 { 112 BigDecimal bd = (BigDecimal)getValue("AmtAcctDr"); 113 if (bd == null) return Env.ZERO; 114 return bd; 115 } 116 public void setAmtSourceCr (BigDecimal AmtSourceCr) 117 { 118 if (AmtSourceCr == null) throw new IllegalArgumentException ("AmtSourceCr is mandatory"); 119 setValue ("AmtSourceCr", AmtSourceCr); 120 } 121 public BigDecimal getAmtSourceCr() 122 { 123 BigDecimal bd = (BigDecimal)getValue("AmtSourceCr"); 124 if (bd == null) return Env.ZERO; 125 return bd; 126 } 127 public void setAmtSourceDr (BigDecimal AmtSourceDr) 128 { 129 if (AmtSourceDr == null) throw new IllegalArgumentException ("AmtSourceDr is mandatory"); 130 setValue ("AmtSourceDr", AmtSourceDr); 131 } 132 public BigDecimal getAmtSourceDr() 133 { 134 BigDecimal bd = (BigDecimal)getValue("AmtSourceDr"); 135 if (bd == null) return Env.ZERO; 136 return bd; 137 } 138 public void setBPartnerValue (String BPartnerValue) 139 { 140 setValue ("BPartnerValue", BPartnerValue); 141 } 142 public String getBPartnerValue() 143 { 144 return (String )getValue("BPartnerValue"); 145 } 146 public void setBatchDescription (String BatchDescription) 147 { 148 setValue ("BatchDescription", BatchDescription); 149 } 150 public String getBatchDescription() 151 { 152 return (String )getValue("BatchDescription"); 153 } 154 public void setBatchDocumentNo (String BatchDocumentNo) 155 { 156 setValue ("BatchDocumentNo", BatchDocumentNo); 157 } 158 public String getBatchDocumentNo() 159 { 160 return (String )getValue("BatchDocumentNo"); 161 } 162 public void setC_AcctSchema_ID (int C_AcctSchema_ID) 163 { 164 if (C_AcctSchema_ID == 0) setValue ("C_AcctSchema_ID", null); 165 else 166 setValue ("C_AcctSchema_ID", new Integer (C_AcctSchema_ID)); 167 } 168 public int getC_AcctSchema_ID() 169 { 170 Integer ii = (Integer )getValue("C_AcctSchema_ID"); 171 if (ii == null) return 0; 172 return ii.intValue(); 173 } 174 public void setC_Activity_ID (int C_Activity_ID) 175 { 176 if (C_Activity_ID == 0) setValue ("C_Activity_ID", null); 177 else 178 setValue ("C_Activity_ID", new Integer (C_Activity_ID)); 179 } 180 public int getC_Activity_ID() 181 { 182 Integer ii = (Integer )getValue("C_Activity_ID"); 183 if (ii == null) return 0; 184 return ii.intValue(); 185 } 186 public void setC_BPartner_ID (int C_BPartner_ID) 187 { 188 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null); 189 else 190 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 191 } 192 public int getC_BPartner_ID() 193 { 194 Integer ii = (Integer )getValue("C_BPartner_ID"); 195 if (ii == null) return 0; 196 return ii.intValue(); 197 } 198 public void setC_Campaign_ID (int C_Campaign_ID) 199 { 200 if (C_Campaign_ID == 0) setValue ("C_Campaign_ID", null); 201 else 202 setValue ("C_Campaign_ID", new Integer (C_Campaign_ID)); 203 } 204 public int getC_Campaign_ID() 205 { 206 Integer ii = (Integer )getValue("C_Campaign_ID"); 207 if (ii == null) return 0; 208 return ii.intValue(); 209 } 210 public void setC_Currency_ID (int C_Currency_ID) 211 { 212 if (C_Currency_ID == 0) setValue ("C_Currency_ID", null); 213 else 214 setValue ("C_Currency_ID", new Integer (C_Currency_ID)); 215 } 216 public int getC_Currency_ID() 217 { 218 Integer ii = (Integer )getValue("C_Currency_ID"); 219 if (ii == null) return 0; 220 return ii.intValue(); 221 } 222 public void setC_DocType_ID (int C_DocType_ID) 223 { 224 if (C_DocType_ID == 0) setValue ("C_DocType_ID", null); 225 else 226 setValue ("C_DocType_ID", new Integer (C_DocType_ID)); 227 } 228 public int getC_DocType_ID() 229 { 230 Integer ii = (Integer )getValue("C_DocType_ID"); 231 if (ii == null) return 0; 232 return ii.intValue(); 233 } 234 public void setC_LocFrom_ID (int C_LocFrom_ID) 235 { 236 if (C_LocFrom_ID == 0) setValue ("C_LocFrom_ID", null); 237 else 238 setValue ("C_LocFrom_ID", new Integer (C_LocFrom_ID)); 239 } 240 public int getC_LocFrom_ID() 241 { 242 Integer ii = (Integer )getValue("C_LocFrom_ID"); 243 if (ii == null) return 0; 244 return ii.intValue(); 245 } 246 public void setC_LocTo_ID (int C_LocTo_ID) 247 { 248 if (C_LocTo_ID == 0) setValue ("C_LocTo_ID", null); 249 else 250 setValue ("C_LocTo_ID", new Integer (C_LocTo_ID)); 251 } 252 public int getC_LocTo_ID() 253 { 254 Integer ii = (Integer )getValue("C_LocTo_ID"); 255 if (ii == null) return 0; 256 return ii.intValue(); 257 } 258 public void setC_Period_ID (int C_Period_ID) 259 { 260 if (C_Period_ID == 0) setValue ("C_Period_ID", null); 261 else 262 setValue ("C_Period_ID", new Integer (C_Period_ID)); 263 } 264 public int getC_Period_ID() 265 { 266 Integer ii = (Integer )getValue("C_Period_ID"); 267 if (ii == null) return 0; 268 return ii.intValue(); 269 } 270 public void setC_Project_ID (int C_Project_ID) 271 { 272 if (C_Project_ID == 0) setValue ("C_Project_ID", null); 273 else 274 setValue ("C_Project_ID", new Integer (C_Project_ID)); 275 } 276 public int getC_Project_ID() 277 { 278 Integer ii = (Integer )getValue("C_Project_ID"); 279 if (ii == null) return 0; 280 return ii.intValue(); 281 } 282 public void setC_SalesRegion_ID (int C_SalesRegion_ID) 283 { 284 if (C_SalesRegion_ID == 0) setValue ("C_SalesRegion_ID", null); 285 else 286 setValue ("C_SalesRegion_ID", new Integer (C_SalesRegion_ID)); 287 } 288 public int getC_SalesRegion_ID() 289 { 290 Integer ii = (Integer )getValue("C_SalesRegion_ID"); 291 if (ii == null) return 0; 292 return ii.intValue(); 293 } 294 public void setC_UOM_ID (int C_UOM_ID) 295 { 296 if (C_UOM_ID == 0) setValue ("C_UOM_ID", null); 297 else 298 setValue ("C_UOM_ID", new Integer (C_UOM_ID)); 299 } 300 public int getC_UOM_ID() 301 { 302 Integer ii = (Integer )getValue("C_UOM_ID"); 303 if (ii == null) return 0; 304 return ii.intValue(); 305 } 306 public void setC_ValidCombination_ID (int C_ValidCombination_ID) 307 { 308 if (C_ValidCombination_ID == 0) setValue ("C_ValidCombination_ID", null); 309 else 310 setValue ("C_ValidCombination_ID", new Integer (C_ValidCombination_ID)); 311 } 312 public int getC_ValidCombination_ID() 313 { 314 Integer ii = (Integer )getValue("C_ValidCombination_ID"); 315 if (ii == null) return 0; 316 return ii.intValue(); 317 } 318 public void setCategoryName (String CategoryName) 319 { 320 setValue ("CategoryName", CategoryName); 321 } 322 public String getCategoryName() 323 { 324 return (String )getValue("CategoryName"); 325 } 326 public void setClientValue (String ClientValue) 327 { 328 setValue ("ClientValue", ClientValue); 329 } 330 public String getClientValue() 331 { 332 return (String )getValue("ClientValue"); 333 } 334 public void setCurrencyRate (BigDecimal CurrencyRate) 335 { 336 setValue ("CurrencyRate", CurrencyRate); 337 } 338 public BigDecimal getCurrencyRate() 339 { 340 BigDecimal bd = (BigDecimal)getValue("CurrencyRate"); 341 if (bd == null) return Env.ZERO; 342 return bd; 343 } 344 public static final String CURRENCYRATETYPE_Spot = "S"; 345 public static final String CURRENCYRATETYPE_PeriodEnd = "P"; 346 public static final String CURRENCYRATETYPE_None = "N"; 347 public static final String CURRENCYRATETYPE_Fixed = "F"; 348 public static final String CURRENCYRATETYPE_Average = "A"; 349 public static final String CURRENCYRATETYPE_Company = "C"; 350 public static final String CURRENCYRATETYPE_UserType = "U"; 351 public static final String CURRENCYRATETYPE_ManualRate = "M"; 352 public void setCurrencyRateType (String CurrencyRateType) 353 { 354 if (CurrencyRateType.equals("S") || CurrencyRateType.equals("P") || CurrencyRateType.equals("N") || CurrencyRateType.equals("F") || CurrencyRateType.equals("A") || CurrencyRateType.equals("C") || CurrencyRateType.equals("U") || CurrencyRateType.equals("M")); 355 else throw new IllegalArgumentException ("CurrencyRateType Invalid value - Reference_ID=111 - S - P - N - F - A - C - U - M"); 356 setValue ("CurrencyRateType", CurrencyRateType); 357 } 358 public String getCurrencyRateType() 359 { 360 return (String )getValue("CurrencyRateType"); 361 } 362 public void setDateAcct (Timestamp DateAcct) 363 { 364 if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory"); 365 setValue ("DateAcct", DateAcct); 366 } 367 public Timestamp getDateAcct() 368 { 369 return (Timestamp)getValue("DateAcct"); 370 } 371 public void setDescription (String Description) 372 { 373 setValue ("Description", Description); 374 } 375 public String getDescription() 376 { 377 return (String )getValue("Description"); 378 } 379 public void setDocTypeName (String DocTypeName) 380 { 381 setValue ("DocTypeName", DocTypeName); 382 } 383 public String getDocTypeName() 384 { 385 return (String )getValue("DocTypeName"); 386 } 387 public void setGL_Budget_ID (int GL_Budget_ID) 388 { 389 if (GL_Budget_ID == 0) setValue ("GL_Budget_ID", null); 390 else 391 setValue ("GL_Budget_ID", new Integer (GL_Budget_ID)); 392 } 393 public int getGL_Budget_ID() 394 { 395 Integer ii = (Integer )getValue("GL_Budget_ID"); 396 if (ii == null) return 0; 397 return ii.intValue(); 398 } 399 public void setGL_Category_ID (int GL_Category_ID) 400 { 401 if (GL_Category_ID == 0) setValue ("GL_Category_ID", null); 402 else 403 setValue ("GL_Category_ID", new Integer (GL_Category_ID)); 404 } 405 public int getGL_Category_ID() 406 { 407 Integer ii = (Integer )getValue("GL_Category_ID"); 408 if (ii == null) return 0; 409 return ii.intValue(); 410 } 411 public void setGL_JournalBatch_ID (int GL_JournalBatch_ID) 412 { 413 if (GL_JournalBatch_ID == 0) setValue ("GL_JournalBatch_ID", null); 414 else 415 setValue ("GL_JournalBatch_ID", new Integer (GL_JournalBatch_ID)); 416 } 417 public int getGL_JournalBatch_ID() 418 { 419 Integer ii = (Integer )getValue("GL_JournalBatch_ID"); 420 if (ii == null) return 0; 421 return ii.intValue(); 422 } 423 public void setGL_JournalLine_ID (int GL_JournalLine_ID) 424 { 425 if (GL_JournalLine_ID == 0) setValue ("GL_JournalLine_ID", null); 426 else 427 setValue ("GL_JournalLine_ID", new Integer (GL_JournalLine_ID)); 428 } 429 public int getGL_JournalLine_ID() 430 { 431 Integer ii = (Integer )getValue("GL_JournalLine_ID"); 432 if (ii == null) return 0; 433 return ii.intValue(); 434 } 435 public void setGL_Journal_ID (int GL_Journal_ID) 436 { 437 if (GL_Journal_ID == 0) setValue ("GL_Journal_ID", null); 438 else 439 setValue ("GL_Journal_ID", new Integer (GL_Journal_ID)); 440 } 441 public int getGL_Journal_ID() 442 { 443 Integer ii = (Integer )getValue("GL_Journal_ID"); 444 if (ii == null) return 0; 445 return ii.intValue(); 446 } 447 public void setISO_Code (String ISO_Code) 448 { 449 setValue ("ISO_Code", ISO_Code); 450 } 451 public String getISO_Code() 452 { 453 return (String )getValue("ISO_Code"); 454 } 455 public void setI_ErrorMsg (String I_ErrorMsg) 456 { 457 setValue ("I_ErrorMsg", I_ErrorMsg); 458 } 459 public String getI_ErrorMsg() 460 { 461 return (String )getValue("I_ErrorMsg"); 462 } 463 void setI_GLJournal_ID (int I_GLJournal_ID) 464 { 465 setValueNoCheck ("I_GLJournal_ID", new Integer (I_GLJournal_ID)); 466 } 467 public int getI_GLJournal_ID() 468 { 469 Integer ii = (Integer )getValue("I_GLJournal_ID"); 470 if (ii == null) return 0; 471 return ii.intValue(); 472 } 473 public void setI_IsImported (boolean I_IsImported) 474 { 475 setValue ("I_IsImported", new Boolean (I_IsImported)); 476 } 477 public boolean isI_IsImported() 478 { 479 Boolean bb = (Boolean )getValue("I_IsImported"); 480 if (bb != null) return bb.booleanValue(); 481 return false; 482 } 483 public void setJournalDocumentNo (String JournalDocumentNo) 484 { 485 setValue ("JournalDocumentNo", JournalDocumentNo); 486 } 487 public String getJournalDocumentNo() 488 { 489 return (String )getValue("JournalDocumentNo"); 490 } 491 public void setLine (int Line) 492 { 493 setValue ("Line", new Integer (Line)); 494 } 495 public int getLine() 496 { 497 Integer ii = (Integer )getValue("Line"); 498 if (ii == null) return 0; 499 return ii.intValue(); 500 } 501 public void setM_Product_ID (int M_Product_ID) 502 { 503 if (M_Product_ID == 0) setValue ("M_Product_ID", null); 504 else 505 setValue ("M_Product_ID", new Integer (M_Product_ID)); 506 } 507 public int getM_Product_ID() 508 { 509 Integer ii = (Integer )getValue("M_Product_ID"); 510 if (ii == null) return 0; 511 return ii.intValue(); 512 } 513 public void setOrgTrxValue (String OrgTrxValue) 514 { 515 setValue ("OrgTrxValue", OrgTrxValue); 516 } 517 public String getOrgTrxValue() 518 { 519 return (String )getValue("OrgTrxValue"); 520 } 521 public void setOrgValue (String OrgValue) 522 { 523 setValue ("OrgValue", OrgValue); 524 } 525 public String getOrgValue() 526 { 527 return (String )getValue("OrgValue"); 528 } 529 public static final String POSTINGTYPE_Actual = "A"; 530 public static final String POSTINGTYPE_Budget = "B"; 531 public static final String POSTINGTYPE_Encumbrance = "E"; 532 public static final String POSTINGTYPE_Statistical = "S"; 533 public void setPostingType (String PostingType) 534 { 535 if (PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("S")); 536 else throw new IllegalArgumentException ("PostingType Invalid value - Reference_ID=125 - A - B - E - S"); 537 setValue ("PostingType", PostingType); 538 } 539 public String getPostingType() 540 { 541 return (String )getValue("PostingType"); 542 } 543 public void setProcessed (boolean Processed) 544 { 545 setValue ("Processed", new Boolean (Processed)); 546 } 547 public boolean isProcessed() 548 { 549 Boolean bb = (Boolean )getValue("Processed"); 550 if (bb != null) return bb.booleanValue(); 551 return false; 552 } 553 public void setProcessing (String Processing) 554 { 555 setValue ("Processing", Processing); 556 } 557 public String getProcessing() 558 { 559 return (String )getValue("Processing"); 560 } 561 public void setProductValue (String ProductValue) 562 { 563 setValue ("ProductValue", ProductValue); 564 } 565 public String getProductValue() 566 { 567 return (String )getValue("ProductValue"); 568 } 569 public void setProjectValue (String ProjectValue) 570 { 571 setValue ("ProjectValue", ProjectValue); 572 } 573 public String getProjectValue() 574 { 575 return (String )getValue("ProjectValue"); 576 } 577 public void setQty (BigDecimal Qty) 578 { 579 setValue ("Qty", Qty); 580 } 581 public BigDecimal getQty() 582 { 583 BigDecimal bd = (BigDecimal)getValue("Qty"); 584 if (bd == null) return Env.ZERO; 585 return bd; 586 } 587 public void setSKU (String SKU) 588 { 589 setValue ("SKU", SKU); 590 } 591 public String getSKU() 592 { 593 return (String )getValue("SKU"); 594 } 595 public void setUPC (String UPC) 596 { 597 setValue ("UPC", UPC); 598 } 599 public String getUPC() 600 { 601 return (String )getValue("UPC"); 602 } 603 public void setUser1_ID (int User1_ID) 604 { 605 if (User1_ID == 0) setValue ("User1_ID", null); 606 else 607 setValue ("User1_ID", new Integer (User1_ID)); 608 } 609 public int getUser1_ID() 610 { 611 Integer ii = (Integer )getValue("User1_ID"); 612 if (ii == null) return 0; 613 return ii.intValue(); 614 } 615 public void setUser2_ID (int User2_ID) 616 { 617 if (User2_ID == 0) setValue ("User2_ID", null); 618 else 619 setValue ("User2_ID", new Integer (User2_ID)); 620 } 621 public int getUser2_ID() 622 { 623 Integer ii = (Integer )getValue("User2_ID"); 624 if (ii == null) return 0; 625 return ii.intValue(); 626 } 627 } 628
| Popular Tags
|