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_BP_Withholding extends PO 11 { 12 13 public X_C_BP_Withholding (Properties ctx, int C_BP_Withholding_ID) 14 { 15 super (ctx, C_BP_Withholding_ID); 16 24 } 25 26 public X_C_BP_Withholding (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 299; 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_BP_Withholding[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 void setC_BPartner_ID (int C_BPartner_ID) 43 { 44 setValueNoCheck ("C_BPartner_ID", new Integer (C_BPartner_ID)); 45 } 46 public int getC_BPartner_ID() 47 { 48 Integer ii = (Integer )getValue("C_BPartner_ID"); 49 if (ii == null) return 0; 50 return ii.intValue(); 51 } 52 void setC_Withholding_ID (int C_Withholding_ID) 53 { 54 setValueNoCheck ("C_Withholding_ID", new Integer (C_Withholding_ID)); 55 } 56 public int getC_Withholding_ID() 57 { 58 Integer ii = (Integer )getValue("C_Withholding_ID"); 59 if (ii == null) return 0; 60 return ii.intValue(); 61 } 62 public void setExemptReason (String ExemptReason) 63 { 64 setValue ("ExemptReason", ExemptReason); 65 } 66 public String getExemptReason() 67 { 68 return (String )getValue("ExemptReason"); 69 } 70 public void setIsMandatoryWithholding (boolean IsMandatoryWithholding) 71 { 72 setValue ("IsMandatoryWithholding", new Boolean (IsMandatoryWithholding)); 73 } 74 public boolean isMandatoryWithholding() 75 { 76 Boolean bb = (Boolean )getValue("IsMandatoryWithholding"); 77 if (bb != null) return bb.booleanValue(); 78 return false; 79 } 80 public void setIsTemporaryExempt (boolean IsTemporaryExempt) 81 { 82 setValue ("IsTemporaryExempt", new Boolean (IsTemporaryExempt)); 83 } 84 public boolean isTemporaryExempt() 85 { 86 Boolean bb = (Boolean )getValue("IsTemporaryExempt"); 87 if (bb != null) return bb.booleanValue(); 88 return false; 89 } 90 } 91
| Popular Tags
|