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_Charge_Acct extends PO 11 { 12 13 public X_C_Charge_Acct (Properties ctx, int C_Charge_Acct_ID) 14 { 15 super (ctx, C_Charge_Acct_ID); 16 24 } 25 26 public X_C_Charge_Acct (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 396; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_C_Charge_Acct[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 void setC_AcctSchema_ID (int C_AcctSchema_ID) 43 { 44 setValueNoCheck ("C_AcctSchema_ID", new Integer (C_AcctSchema_ID)); 45 } 46 public int getC_AcctSchema_ID() 47 { 48 Integer ii = (Integer )getValue("C_AcctSchema_ID"); 49 if (ii == null) return 0; 50 return ii.intValue(); 51 } 52 void setC_Charge_ID (int C_Charge_ID) 53 { 54 setValueNoCheck ("C_Charge_ID", new Integer (C_Charge_ID)); 55 } 56 public int getC_Charge_ID() 57 { 58 Integer ii = (Integer )getValue("C_Charge_ID"); 59 if (ii == null) return 0; 60 return ii.intValue(); 61 } 62 public void setCh_Expense_Acct (String Ch_Expense_Acct) 63 { 64 if (Ch_Expense_Acct == null) throw new IllegalArgumentException ("Ch_Expense_Acct is mandatory"); 65 setValue ("Ch_Expense_Acct", Ch_Expense_Acct); 66 } 67 public String getCh_Expense_Acct() 68 { 69 return (String )getValue("Ch_Expense_Acct"); 70 } 71 public void setCh_Revenue_Acct (String Ch_Revenue_Acct) 72 { 73 if (Ch_Revenue_Acct == null) throw new IllegalArgumentException ("Ch_Revenue_Acct is mandatory"); 74 setValue ("Ch_Revenue_Acct", Ch_Revenue_Acct); 75 } 76 public String getCh_Revenue_Acct() 77 { 78 return (String )getValue("Ch_Revenue_Acct"); 79 } 80 } 81
| Popular Tags
|