1 14 package org.compiere.model; 15 16 import java.util.*; 17 import java.sql.*; 18 import java.math.*; 19 import java.io.Serializable ; 20 21 import org.compiere.util.*; 22 23 29 public class MBP_BankAccount extends X_C_BP_BankAccount 30 { 31 36 public MBP_BankAccount (Properties ctx, int C_BP_BankAccount_ID) 37 { 38 super (ctx, C_BP_BankAccount_ID); 39 if (C_BP_BankAccount_ID == 0) 40 { 41 setIsACH (false); 43 } 44 } 46 51 public MBP_BankAccount (Properties ctx, ResultSet rs) 52 { 53 super (ctx, rs); 54 } 56 63 public MBP_BankAccount (Properties ctx, MBPartner bp, MUser bpc, MLocation l) 64 { 65 super (ctx, 0); 66 setIsACH (false); 67 setC_BPartner_ID(bp.getC_BPartner_ID()); 69 setA_Name(bpc.getName()); 71 setA_EMail(bpc.getEmail()); 72 setA_Street(l.getAddress1()); 74 setA_City(l.getCity()); 75 setA_Zip(l.getPostal()); 76 setA_State(l.getRegionName()); 77 setA_Country(l.getCountryName()); 78 } 80 81 82 83 87 public String toString () 88 { 89 StringBuffer sb = new StringBuffer ("MBP_BankAccount[") 90 .append (getID ()) 91 .append(", Name=").append(getA_Name()) 92 .append ("]"); 93 return sb.toString (); 94 } 96 } | Popular Tags |