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_R_ResourcePlanCost extends PO 11 { 12 13 public X_R_ResourcePlanCost (Properties ctx, int R_ResourcePlanCost_ID) 14 { 15 super (ctx, R_ResourcePlanCost_ID); 16 25 } 26 27 public X_R_ResourcePlanCost (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 582; 35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 36 return poi; 37 } 38 public String toString() 39 { 40 StringBuffer sb = new StringBuffer ("X_R_ResourcePlanCost[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 public void setC_AcctSchema_ID (int C_AcctSchema_ID) 44 { 45 setValue ("C_AcctSchema_ID", new Integer (C_AcctSchema_ID)); 46 } 47 public int getC_AcctSchema_ID() 48 { 49 Integer ii = (Integer )getValue("C_AcctSchema_ID"); 50 if (ii == null) return 0; 51 return ii.intValue(); 52 } 53 public void setC_CostType_ID (int C_CostType_ID) 54 { 55 setValue ("C_CostType_ID", new Integer (C_CostType_ID)); 56 } 57 public int getC_CostType_ID() 58 { 59 Integer ii = (Integer )getValue("C_CostType_ID"); 60 if (ii == null) return 0; 61 return ii.intValue(); 62 } 63 public void setDescription (String Description) 64 { 65 setValue ("Description", Description); 66 } 67 public String getDescription() 68 { 69 return (String )getValue("Description"); 70 } 71 public void setHelp (String Help) 72 { 73 setValue ("Help", Help); 74 } 75 public String getHelp() 76 { 77 return (String )getValue("Help"); 78 } 79 public void setPlanCost (BigDecimal PlanCost) 80 { 81 if (PlanCost == null) throw new IllegalArgumentException ("PlanCost is mandatory"); 82 setValue ("PlanCost", PlanCost); 83 } 84 public BigDecimal getPlanCost() 85 { 86 BigDecimal bd = (BigDecimal)getValue("PlanCost"); 87 if (bd == null) return Env.ZERO; 88 return bd; 89 } 90 void setR_ResourcePlanCost_ID (int R_ResourcePlanCost_ID) 91 { 92 setValueNoCheck ("R_ResourcePlanCost_ID", new Integer (R_ResourcePlanCost_ID)); 93 } 94 public int getR_ResourcePlanCost_ID() 95 { 96 Integer ii = (Integer )getValue("R_ResourcePlanCost_ID"); 97 if (ii == null) return 0; 98 return ii.intValue(); 99 } 100 void setS_Resource_ID (int S_Resource_ID) 101 { 102 setValueNoCheck ("S_Resource_ID", new Integer (S_Resource_ID)); 103 } 104 public int getS_Resource_ID() 105 { 106 Integer ii = (Integer )getValue("S_Resource_ID"); 107 if (ii == null) return 0; 108 return ii.intValue(); 109 } 110 } 111 | Popular Tags |