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_BankAccountDoc extends PO 11 { 12 13 public X_C_BankAccountDoc (Properties ctx, int C_BankAccountDoc_ID) 14 { 15 super (ctx, C_BankAccountDoc_ID); 16 25 } 26 27 public X_C_BankAccountDoc (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 455; 35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 36 return poi; 37 } 38 public String toString() 39 { 40 StringBuffer sb = new StringBuffer ("X_C_BankAccountDoc[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 void setC_BankAccountDoc_ID (int C_BankAccountDoc_ID) 44 { 45 setValueNoCheck ("C_BankAccountDoc_ID", new Integer (C_BankAccountDoc_ID)); 46 } 47 public int getC_BankAccountDoc_ID() 48 { 49 Integer ii = (Integer )getValue("C_BankAccountDoc_ID"); 50 if (ii == null) return 0; 51 return ii.intValue(); 52 } 53 void setC_BankAccount_ID (int C_BankAccount_ID) 54 { 55 setValueNoCheck ("C_BankAccount_ID", new Integer (C_BankAccount_ID)); 56 } 57 public int getC_BankAccount_ID() 58 { 59 Integer ii = (Integer )getValue("C_BankAccount_ID"); 60 if (ii == null) return 0; 61 return ii.intValue(); 62 } 63 public void setCheck_PrintFormat_ID (int Check_PrintFormat_ID) 64 { 65 if (Check_PrintFormat_ID == 0) setValue ("Check_PrintFormat_ID", null); 66 else 67 setValue ("Check_PrintFormat_ID", new Integer (Check_PrintFormat_ID)); 68 } 69 public int getCheck_PrintFormat_ID() 70 { 71 Integer ii = (Integer )getValue("Check_PrintFormat_ID"); 72 if (ii == null) return 0; 73 return ii.intValue(); 74 } 75 public void setCurrentNext (int CurrentNext) 76 { 77 setValue ("CurrentNext", new Integer (CurrentNext)); 78 } 79 public int getCurrentNext() 80 { 81 Integer ii = (Integer )getValue("CurrentNext"); 82 if (ii == null) return 0; 83 return ii.intValue(); 84 } 85 public void setDescription (String Description) 86 { 87 setValue ("Description", Description); 88 } 89 public String getDescription() 90 { 91 return (String )getValue("Description"); 92 } 93 public void setName (String Name) 94 { 95 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 96 setValue ("Name", Name); 97 } 98 public String getName() 99 { 100 return (String )getValue("Name"); 101 } 102 public static final String PAYMENTRULE_Cash = "B"; 103 public static final String PAYMENTRULE_CreditCard = "K"; 104 public static final String PAYMENTRULE_TransferACH = "T"; 105 public static final String PAYMENTRULE_Check = "S"; 106 public static final String PAYMENTRULE_OnCredit = "P"; 107 public void setPaymentRule (String PaymentRule) 108 { 109 if (PaymentRule.equals("B") || PaymentRule.equals("K") || PaymentRule.equals("T") || PaymentRule.equals("S") || PaymentRule.equals("P")); 110 else throw new IllegalArgumentException ("PaymentRule Invalid value - Reference_ID=195 - B - K - T - S - P"); 111 if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory"); 112 setValue ("PaymentRule", PaymentRule); 113 } 114 public String getPaymentRule() 115 { 116 return (String )getValue("PaymentRule"); 117 } 118 } 119
| Popular Tags
|