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_Fact_Acct_Balance extends PO 11 { 12 13 public X_Fact_Acct_Balance (Properties ctx, int Fact_Acct_Balance_ID) 14 { 15 super (ctx, Fact_Acct_Balance_ID); 16 27 } 28 29 public X_Fact_Acct_Balance (Properties ctx, ResultSet rs) 30 { 31 super (ctx, rs); 32 } 33 34 protected POInfo initPO (Properties ctx) 35 { 36 int AD_Table_ID = 547; 37 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 38 return poi; 39 } 40 public String toString() 41 { 42 StringBuffer sb = new StringBuffer ("X_Fact_Acct_Balance[").append(getID()).append("]"); 43 return sb.toString(); 44 } 45 public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) 46 { 47 if (AD_OrgTrx_ID == 0) setValue ("AD_OrgTrx_ID", null); 48 else 49 setValue ("AD_OrgTrx_ID", new Integer (AD_OrgTrx_ID)); 50 } 51 public int getAD_OrgTrx_ID() 52 { 53 Integer ii = (Integer )getValue("AD_OrgTrx_ID"); 54 if (ii == null) return 0; 55 return ii.intValue(); 56 } 57 public void setAccount_ID (int Account_ID) 58 { 59 setValue ("Account_ID", new Integer (Account_ID)); 60 } 61 public int getAccount_ID() 62 { 63 Integer ii = (Integer )getValue("Account_ID"); 64 if (ii == null) return 0; 65 return ii.intValue(); 66 } 67 public void setAmtAcctCr (BigDecimal AmtAcctCr) 68 { 69 if (AmtAcctCr == null) throw new IllegalArgumentException ("AmtAcctCr is mandatory"); 70 setValue ("AmtAcctCr", AmtAcctCr); 71 } 72 public BigDecimal getAmtAcctCr() 73 { 74 BigDecimal bd = (BigDecimal)getValue("AmtAcctCr"); 75 if (bd == null) return Env.ZERO; 76 return bd; 77 } 78 public void setAmtAcctDr (BigDecimal AmtAcctDr) 79 { 80 if (AmtAcctDr == null) throw new IllegalArgumentException ("AmtAcctDr is mandatory"); 81 setValue ("AmtAcctDr", AmtAcctDr); 82 } 83 public BigDecimal getAmtAcctDr() 84 { 85 BigDecimal bd = (BigDecimal)getValue("AmtAcctDr"); 86 if (bd == null) return Env.ZERO; 87 return bd; 88 } 89 public void setC_AcctSchema_ID (int C_AcctSchema_ID) 90 { 91 setValue ("C_AcctSchema_ID", new Integer (C_AcctSchema_ID)); 92 } 93 public int getC_AcctSchema_ID() 94 { 95 Integer ii = (Integer )getValue("C_AcctSchema_ID"); 96 if (ii == null) return 0; 97 return ii.intValue(); 98 } 99 public void setC_Activity_ID (int C_Activity_ID) 100 { 101 if (C_Activity_ID == 0) setValue ("C_Activity_ID", null); 102 else 103 setValue ("C_Activity_ID", new Integer (C_Activity_ID)); 104 } 105 public int getC_Activity_ID() 106 { 107 Integer ii = (Integer )getValue("C_Activity_ID"); 108 if (ii == null) return 0; 109 return ii.intValue(); 110 } 111 public void setC_BPartner_ID (int C_BPartner_ID) 112 { 113 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null); 114 else 115 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 116 } 117 public int getC_BPartner_ID() 118 { 119 Integer ii = (Integer )getValue("C_BPartner_ID"); 120 if (ii == null) return 0; 121 return ii.intValue(); 122 } 123 public void setC_Campaign_ID (int C_Campaign_ID) 124 { 125 if (C_Campaign_ID == 0) setValue ("C_Campaign_ID", null); 126 else 127 setValue ("C_Campaign_ID", new Integer (C_Campaign_ID)); 128 } 129 public int getC_Campaign_ID() 130 { 131 Integer ii = (Integer )getValue("C_Campaign_ID"); 132 if (ii == null) return 0; 133 return ii.intValue(); 134 } 135 public void setC_LocFrom_ID (int C_LocFrom_ID) 136 { 137 if (C_LocFrom_ID == 0) setValue ("C_LocFrom_ID", null); 138 else 139 setValue ("C_LocFrom_ID", new Integer (C_LocFrom_ID)); 140 } 141 public int getC_LocFrom_ID() 142 { 143 Integer ii = (Integer )getValue("C_LocFrom_ID"); 144 if (ii == null) return 0; 145 return ii.intValue(); 146 } 147 public void setC_LocTo_ID (int C_LocTo_ID) 148 { 149 if (C_LocTo_ID == 0) setValue ("C_LocTo_ID", null); 150 else 151 setValue ("C_LocTo_ID", new Integer (C_LocTo_ID)); 152 } 153 public int getC_LocTo_ID() 154 { 155 Integer ii = (Integer )getValue("C_LocTo_ID"); 156 if (ii == null) return 0; 157 return ii.intValue(); 158 } 159 public void setC_Project_ID (int C_Project_ID) 160 { 161 if (C_Project_ID == 0) setValue ("C_Project_ID", null); 162 else 163 setValue ("C_Project_ID", new Integer (C_Project_ID)); 164 } 165 public int getC_Project_ID() 166 { 167 Integer ii = (Integer )getValue("C_Project_ID"); 168 if (ii == null) return 0; 169 return ii.intValue(); 170 } 171 public void setC_SalesRegion_ID (int C_SalesRegion_ID) 172 { 173 if (C_SalesRegion_ID == 0) setValue ("C_SalesRegion_ID", null); 174 else 175 setValue ("C_SalesRegion_ID", new Integer (C_SalesRegion_ID)); 176 } 177 public int getC_SalesRegion_ID() 178 { 179 Integer ii = (Integer )getValue("C_SalesRegion_ID"); 180 if (ii == null) return 0; 181 return ii.intValue(); 182 } 183 public void setDateAcct (Timestamp DateAcct) 184 { 185 if (DateAcct == null) throw new IllegalArgumentException ("DateAcct is mandatory"); 186 setValue ("DateAcct", DateAcct); 187 } 188 public Timestamp getDateAcct() 189 { 190 return (Timestamp)getValue("DateAcct"); 191 } 192 public void setGL_Budget_ID (int GL_Budget_ID) 193 { 194 if (GL_Budget_ID == 0) setValue ("GL_Budget_ID", null); 195 else 196 setValue ("GL_Budget_ID", new Integer (GL_Budget_ID)); 197 } 198 public int getGL_Budget_ID() 199 { 200 Integer ii = (Integer )getValue("GL_Budget_ID"); 201 if (ii == null) return 0; 202 return ii.intValue(); 203 } 204 public void setM_Product_ID (int M_Product_ID) 205 { 206 if (M_Product_ID == 0) setValue ("M_Product_ID", null); 207 else 208 setValue ("M_Product_ID", new Integer (M_Product_ID)); 209 } 210 public int getM_Product_ID() 211 { 212 Integer ii = (Integer )getValue("M_Product_ID"); 213 if (ii == null) return 0; 214 return ii.intValue(); 215 } 216 public static final String POSTINGTYPE_Actual = "A"; 217 public static final String POSTINGTYPE_Budget = "B"; 218 public static final String POSTINGTYPE_Encumbrance = "E"; 219 public static final String POSTINGTYPE_Statistical = "S"; 220 public void setPostingType (String PostingType) 221 { 222 if (PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("S")); 223 else throw new IllegalArgumentException ("PostingType Invalid value - Reference_ID=125 - A - B - E - S"); 224 if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory"); 225 setValue ("PostingType", PostingType); 226 } 227 public String getPostingType() 228 { 229 return (String )getValue("PostingType"); 230 } 231 public void setQty (BigDecimal Qty) 232 { 233 if (Qty == null) throw new IllegalArgumentException ("Qty is mandatory"); 234 setValue ("Qty", Qty); 235 } 236 public BigDecimal getQty() 237 { 238 BigDecimal bd = (BigDecimal)getValue("Qty"); 239 if (bd == null) return Env.ZERO; 240 return bd; 241 } 242 public void setUser1_ID (int User1_ID) 243 { 244 if (User1_ID == 0) setValue ("User1_ID", null); 245 else 246 setValue ("User1_ID", new Integer (User1_ID)); 247 } 248 public int getUser1_ID() 249 { 250 Integer ii = (Integer )getValue("User1_ID"); 251 if (ii == null) return 0; 252 return ii.intValue(); 253 } 254 public void setUser2_ID (int User2_ID) 255 { 256 if (User2_ID == 0) setValue ("User2_ID", null); 257 else 258 setValue ("User2_ID", new Integer (User2_ID)); 259 } 260 public int getUser2_ID() 261 { 262 Integer ii = (Integer )getValue("User2_ID"); 263 if (ii == null) return 0; 264 return ii.intValue(); 265 } 266 } 267 | Popular Tags |