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 extends PO 11 { 12 13 public X_C_Charge (Properties ctx, int C_Charge_ID) 14 { 15 super (ctx, C_Charge_ID); 16 27 } 28 29 public X_C_Charge (Properties ctx, ResultSet rs) 30 { 31 super (ctx, rs); 32 } 33 34 protected POInfo initPO (Properties ctx) 35 { 36 int AD_Table_ID = 313; 37 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 38 return poi; 39 } 40 public String toString() 41 { 42 StringBuffer sb = new StringBuffer ("X_C_Charge[").append(getID()).append("]"); 43 return sb.toString(); 44 } 45 void setC_Charge_ID (int C_Charge_ID) 46 { 47 setValueNoCheck ("C_Charge_ID", new Integer (C_Charge_ID)); 48 } 49 public int getC_Charge_ID() 50 { 51 Integer ii = (Integer )getValue("C_Charge_ID"); 52 if (ii == null) return 0; 53 return ii.intValue(); 54 } 55 public void setC_TaxCategory_ID (int C_TaxCategory_ID) 56 { 57 setValue ("C_TaxCategory_ID", new Integer (C_TaxCategory_ID)); 58 } 59 public int getC_TaxCategory_ID() 60 { 61 Integer ii = (Integer )getValue("C_TaxCategory_ID"); 62 if (ii == null) return 0; 63 return ii.intValue(); 64 } 65 public void setChargeAmt (BigDecimal ChargeAmt) 66 { 67 if (ChargeAmt == null) throw new IllegalArgumentException ("ChargeAmt is mandatory"); 68 setValue ("ChargeAmt", ChargeAmt); 69 } 70 public BigDecimal getChargeAmt() 71 { 72 BigDecimal bd = (BigDecimal)getValue("ChargeAmt"); 73 if (bd == null) return Env.ZERO; 74 return bd; 75 } 76 public void setDescription (String Description) 77 { 78 setValue ("Description", Description); 79 } 80 public String getDescription() 81 { 82 return (String )getValue("Description"); 83 } 84 public void setIsSameCurrency (boolean IsSameCurrency) 85 { 86 setValue ("IsSameCurrency", new Boolean (IsSameCurrency)); 87 } 88 public boolean isSameCurrency() 89 { 90 Boolean bb = (Boolean )getValue("IsSameCurrency"); 91 if (bb != null) return bb.booleanValue(); 92 return false; 93 } 94 public void setIsSameTax (boolean IsSameTax) 95 { 96 setValue ("IsSameTax", new Boolean (IsSameTax)); 97 } 98 public boolean isSameTax() 99 { 100 Boolean bb = (Boolean )getValue("IsSameTax"); 101 if (bb != null) return bb.booleanValue(); 102 return false; 103 } 104 public void setIsTaxIncluded (boolean IsTaxIncluded) 105 { 106 setValue ("IsTaxIncluded", new Boolean (IsTaxIncluded)); 107 } 108 public boolean isTaxIncluded() 109 { 110 Boolean bb = (Boolean )getValue("IsTaxIncluded"); 111 if (bb != null) return bb.booleanValue(); 112 return false; 113 } 114 public void setName (String Name) 115 { 116 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 117 setValue ("Name", Name); 118 } 119 public String getName() 120 { 121 return (String )getValue("Name"); 122 } 123 } 124 | Popular Tags |