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_BankStatement extends PO 11 { 12 13 public X_I_BankStatement (Properties ctx, int I_BankStatement_ID) 14 { 15 super (ctx, I_BankStatement_ID); 16 27 } 28 29 public X_I_BankStatement (Properties ctx, ResultSet rs) 30 { 31 super (ctx, rs); 32 } 33 34 protected POInfo initPO (Properties ctx) 35 { 36 int AD_Table_ID = 600; 37 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 38 return poi; 39 } 40 public String toString() 41 { 42 StringBuffer sb = new StringBuffer ("X_I_BankStatement[").append(getID()).append("]"); 43 return sb.toString(); 44 } 45 public void setBPartnerValue (String BPartnerValue) 46 { 47 setValue ("BPartnerValue", BPartnerValue); 48 } 49 public String getBPartnerValue() 50 { 51 return (String )getValue("BPartnerValue"); 52 } 53 public void setBankAccountNo (String BankAccountNo) 54 { 55 if (BankAccountNo == null) throw new IllegalArgumentException ("BankAccountNo is mandatory"); 56 setValue ("BankAccountNo", BankAccountNo); 57 } 58 public String getBankAccountNo() 59 { 60 return (String )getValue("BankAccountNo"); 61 } 62 public void setC_BPartner_ID (int C_BPartner_ID) 63 { 64 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null); 65 else 66 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 67 } 68 public int getC_BPartner_ID() 69 { 70 Integer ii = (Integer )getValue("C_BPartner_ID"); 71 if (ii == null) return 0; 72 return ii.intValue(); 73 } 74 public void setC_BankAccount_ID (int C_BankAccount_ID) 75 { 76 if (C_BankAccount_ID == 0) setValue ("C_BankAccount_ID", null); 77 else 78 setValue ("C_BankAccount_ID", new Integer (C_BankAccount_ID)); 79 } 80 public int getC_BankAccount_ID() 81 { 82 Integer ii = (Integer )getValue("C_BankAccount_ID"); 83 if (ii == null) return 0; 84 return ii.intValue(); 85 } 86 public void setC_BankStatementLine_ID (int C_BankStatementLine_ID) 87 { 88 if (C_BankStatementLine_ID == 0) setValue ("C_BankStatementLine_ID", null); 89 else 90 setValue ("C_BankStatementLine_ID", new Integer (C_BankStatementLine_ID)); 91 } 92 public int getC_BankStatementLine_ID() 93 { 94 Integer ii = (Integer )getValue("C_BankStatementLine_ID"); 95 if (ii == null) return 0; 96 return ii.intValue(); 97 } 98 public void setC_BankStatement_ID (int C_BankStatement_ID) 99 { 100 if (C_BankStatement_ID == 0) setValue ("C_BankStatement_ID", null); 101 else 102 setValue ("C_BankStatement_ID", new Integer (C_BankStatement_ID)); 103 } 104 public int getC_BankStatement_ID() 105 { 106 Integer ii = (Integer )getValue("C_BankStatement_ID"); 107 if (ii == null) return 0; 108 return ii.intValue(); 109 } 110 public void setC_Charge_ID (int C_Charge_ID) 111 { 112 if (C_Charge_ID == 0) setValue ("C_Charge_ID", null); 113 else 114 setValue ("C_Charge_ID", new Integer (C_Charge_ID)); 115 } 116 public int getC_Charge_ID() 117 { 118 Integer ii = (Integer )getValue("C_Charge_ID"); 119 if (ii == null) return 0; 120 return ii.intValue(); 121 } 122 public void setC_Invoice_ID (int C_Invoice_ID) 123 { 124 if (C_Invoice_ID == 0) setValue ("C_Invoice_ID", null); 125 else 126 setValue ("C_Invoice_ID", new Integer (C_Invoice_ID)); 127 } 128 public int getC_Invoice_ID() 129 { 130 Integer ii = (Integer )getValue("C_Invoice_ID"); 131 if (ii == null) return 0; 132 return ii.intValue(); 133 } 134 public void setC_Payment_ID (int C_Payment_ID) 135 { 136 if (C_Payment_ID == 0) setValue ("C_Payment_ID", null); 137 else 138 setValue ("C_Payment_ID", new Integer (C_Payment_ID)); 139 } 140 public int getC_Payment_ID() 141 { 142 Integer ii = (Integer )getValue("C_Payment_ID"); 143 if (ii == null) return 0; 144 return ii.intValue(); 145 } 146 public void setChargeAmt (BigDecimal ChargeAmt) 147 { 148 setValue ("ChargeAmt", ChargeAmt); 149 } 150 public BigDecimal getChargeAmt() 151 { 152 BigDecimal bd = (BigDecimal)getValue("ChargeAmt"); 153 if (bd == null) return Env.ZERO; 154 return bd; 155 } 156 public void setChargeName (String ChargeName) 157 { 158 setValue ("ChargeName", ChargeName); 159 } 160 public String getChargeName() 161 { 162 return (String )getValue("ChargeName"); 163 } 164 public void setDateAcct (Timestamp DateAcct) 165 { 166 if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory"); 167 setValue ("DateAcct", DateAcct); 168 } 169 public Timestamp getDateAcct() 170 { 171 return (Timestamp)getValue("DateAcct"); 172 } 173 public void setDescription (String Description) 174 { 175 setValue ("Description", Description); 176 } 177 public String getDescription() 178 { 179 return (String )getValue("Description"); 180 } 181 public void setDocumentNo (String DocumentNo) 182 { 183 setValue ("DocumentNo", DocumentNo); 184 } 185 public String getDocumentNo() 186 { 187 return (String )getValue("DocumentNo"); 188 } 189 void setI_BankStatement_ID (int I_BankStatement_ID) 190 { 191 setValueNoCheck ("I_BankStatement_ID", new Integer (I_BankStatement_ID)); 192 } 193 public int getI_BankStatement_ID() 194 { 195 Integer ii = (Integer )getValue("I_BankStatement_ID"); 196 if (ii == null) return 0; 197 return ii.intValue(); 198 } 199 public void setI_ErrorMsg (String I_ErrorMsg) 200 { 201 setValue ("I_ErrorMsg", I_ErrorMsg); 202 } 203 public String getI_ErrorMsg() 204 { 205 return (String )getValue("I_ErrorMsg"); 206 } 207 public void setI_IsImported (boolean I_IsImported) 208 { 209 setValue ("I_IsImported", new Boolean (I_IsImported)); 210 } 211 public boolean isI_IsImported() 212 { 213 Boolean bb = (Boolean )getValue("I_IsImported"); 214 if (bb != null) return bb.booleanValue(); 215 return false; 216 } 217 public void setInterestAmt (BigDecimal InterestAmt) 218 { 219 setValue ("InterestAmt", InterestAmt); 220 } 221 public BigDecimal getInterestAmt() 222 { 223 BigDecimal bd = (BigDecimal)getValue("InterestAmt"); 224 if (bd == null) return Env.ZERO; 225 return bd; 226 } 227 public void setInvoiceDocumentNo (String InvoiceDocumentNo) 228 { 229 setValue ("InvoiceDocumentNo", InvoiceDocumentNo); 230 } 231 public String getInvoiceDocumentNo() 232 { 233 return (String )getValue("InvoiceDocumentNo"); 234 } 235 public void setIsReversal (boolean IsReversal) 236 { 237 setValue ("IsReversal", new Boolean (IsReversal)); 238 } 239 public boolean isReversal() 240 { 241 Boolean bb = (Boolean )getValue("IsReversal"); 242 if (bb != null) return bb.booleanValue(); 243 return false; 244 } 245 public void setLine (int Line) 246 { 247 setValue ("Line", new Integer (Line)); 248 } 249 public int getLine() 250 { 251 Integer ii = (Integer )getValue("Line"); 252 if (ii == null) return 0; 253 return ii.intValue(); 254 } 255 public void setLineDescription (String LineDescription) 256 { 257 setValue ("LineDescription", LineDescription); 258 } 259 public String getLineDescription() 260 { 261 return (String )getValue("LineDescription"); 262 } 263 public void setMemo (String Memo) 264 { 265 setValue ("Memo", Memo); 266 } 267 public String getMemo() 268 { 269 return (String )getValue("Memo"); 270 } 271 public void setName (String Name) 272 { 273 setValue ("Name", Name); 274 } 275 public String getName() 276 { 277 return (String )getValue("Name"); 278 } 279 public void setProcessed (boolean Processed) 280 { 281 setValue ("Processed", new Boolean (Processed)); 282 } 283 public boolean isProcessed() 284 { 285 Boolean bb = (Boolean )getValue("Processed"); 286 if (bb != null) return bb.booleanValue(); 287 return false; 288 } 289 public void setReferenceNo (String ReferenceNo) 290 { 291 setValue ("ReferenceNo", ReferenceNo); 292 } 293 public String getReferenceNo() 294 { 295 return (String )getValue("ReferenceNo"); 296 } 297 public void setRoutingNo (String RoutingNo) 298 { 299 setValue ("RoutingNo", RoutingNo); 300 } 301 public String getRoutingNo() 302 { 303 return (String )getValue("RoutingNo"); 304 } 305 public void setStatementDate (Timestamp StatementDate) 306 { 307 if (StatementDate == null) throw new IllegalArgumentException ("StatementDate is mandatory"); 308 setValue ("StatementDate", StatementDate); 309 } 310 public Timestamp getStatementDate() 311 { 312 return (Timestamp)getValue("StatementDate"); 313 } 314 public void setStmtAmt (BigDecimal StmtAmt) 315 { 316 if (StmtAmt == null) throw new IllegalArgumentException ("StmtAmt is mandatory"); 317 setValue ("StmtAmt", StmtAmt); 318 } 319 public BigDecimal getStmtAmt() 320 { 321 BigDecimal bd = (BigDecimal)getValue("StmtAmt"); 322 if (bd == null) return Env.ZERO; 323 return bd; 324 } 325 public void setTrxAmt (BigDecimal TrxAmt) 326 { 327 setValue ("TrxAmt", TrxAmt); 328 } 329 public BigDecimal getTrxAmt() 330 { 331 BigDecimal bd = (BigDecimal)getValue("TrxAmt"); 332 if (bd == null) return Env.ZERO; 333 return bd; 334 } 335 public static final String TRXTYPE_Sales = "S"; 336 public static final String TRXTYPE_DelayedCapture = "D"; 337 public static final String TRXTYPE_CreditPayment = "C"; 338 public static final String TRXTYPE_VoiceAuthorization = "F"; 339 public static final String TRXTYPE_Authorization = "A"; 340 public static final String TRXTYPE_Void = "V"; 341 public void setTrxType (String TrxType) 342 { 343 if (TrxType.equals("S") || TrxType.equals("D") || TrxType.equals("C") || TrxType.equals("F") || TrxType.equals("A") || TrxType.equals("V")); 344 else throw new IllegalArgumentException ("TrxType Invalid value - Reference_ID=215 - S - D - C - F - A - V"); 345 setValue ("TrxType", TrxType); 346 } 347 public String getTrxType() 348 { 349 return (String )getValue("TrxType"); 350 } 351 public void setValutaDate (Timestamp ValutaDate) 352 { 353 setValue ("ValutaDate", ValutaDate); 354 } 355 public Timestamp getValutaDate() 356 { 357 return (Timestamp)getValue("ValutaDate"); 358 } 359 } 360 | Popular Tags |