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_PA_Measure extends PO 11 { 12 13 public X_PA_Measure (Properties ctx, int PA_Measure_ID) 14 { 15 super (ctx, PA_Measure_ID); 16 23 } 24 25 public X_PA_Measure (Properties ctx, ResultSet rs) 26 { 27 super (ctx, rs); 28 } 29 30 protected POInfo initPO (Properties ctx) 31 { 32 int AD_Table_ID = 441; 33 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 34 return poi; 35 } 36 public String toString() 37 { 38 StringBuffer sb = new StringBuffer ("X_PA_Measure[").append(getID()).append("]"); 39 return sb.toString(); 40 } 41 public void setC_BP_Group_ID (int C_BP_Group_ID) 42 { 43 if (C_BP_Group_ID == 0) setValue ("C_BP_Group_ID", null); 44 else 45 setValue ("C_BP_Group_ID", new Integer (C_BP_Group_ID)); 46 } 47 public int getC_BP_Group_ID() 48 { 49 Integer ii = (Integer )getValue("C_BP_Group_ID"); 50 if (ii == null) return 0; 51 return ii.intValue(); 52 } 53 public void setC_BPartner_ID (int C_BPartner_ID) 54 { 55 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null); 56 else 57 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 58 } 59 public int getC_BPartner_ID() 60 { 61 Integer ii = (Integer )getValue("C_BPartner_ID"); 62 if (ii == null) return 0; 63 return ii.intValue(); 64 } 65 public void setCalculationClass (String CalculationClass) 66 { 67 setValue ("CalculationClass", CalculationClass); 68 } 69 public String getCalculationClass() 70 { 71 return (String )getValue("CalculationClass"); 72 } 73 public void setDateFrom (Timestamp DateFrom) 74 { 75 setValue ("DateFrom", DateFrom); 76 } 77 public Timestamp getDateFrom() 78 { 79 return (Timestamp)getValue("DateFrom"); 80 } 81 public void setDateTo (Timestamp DateTo) 82 { 83 setValue ("DateTo", DateTo); 84 } 85 public Timestamp getDateTo() 86 { 87 return (Timestamp)getValue("DateTo"); 88 } 89 public void setDescription (String Description) 90 { 91 setValue ("Description", Description); 92 } 93 public String getDescription() 94 { 95 return (String )getValue("Description"); 96 } 97 public void setM_Product_Category_ID (int M_Product_Category_ID) 98 { 99 if (M_Product_Category_ID == 0) setValue ("M_Product_Category_ID", null); 100 else 101 setValue ("M_Product_Category_ID", new Integer (M_Product_Category_ID)); 102 } 103 public int getM_Product_Category_ID() 104 { 105 Integer ii = (Integer )getValue("M_Product_Category_ID"); 106 if (ii == null) return 0; 107 return ii.intValue(); 108 } 109 public void setM_Product_ID (int M_Product_ID) 110 { 111 if (M_Product_ID == 0) setValue ("M_Product_ID", null); 112 else 113 setValue ("M_Product_ID", new Integer (M_Product_ID)); 114 } 115 public int getM_Product_ID() 116 { 117 Integer ii = (Integer )getValue("M_Product_ID"); 118 if (ii == null) return 0; 119 return ii.intValue(); 120 } 121 public void setManualActual (BigDecimal ManualActual) 122 { 123 setValue ("ManualActual", ManualActual); 124 } 125 public BigDecimal getManualActual() 126 { 127 BigDecimal bd = (BigDecimal)getValue("ManualActual"); 128 if (bd == null) return Env.ZERO; 129 return bd; 130 } 131 public void setManualNote (String ManualNote) 132 { 133 setValue ("ManualNote", ManualNote); 134 } 135 public String getManualNote() 136 { 137 return (String )getValue("ManualNote"); 138 } 139 public static final String MEASURETYPE_Calculated = "C"; 140 public static final String MEASURETYPE_Progress = "P"; 141 public static final String MEASURETYPE_Manual = "M"; 142 public void setMeasureType (String MeasureType) 143 { 144 if (MeasureType.equals("C") || MeasureType.equals("P") || MeasureType.equals("M")); 145 else throw new IllegalArgumentException ("MeasureType Invalid value - Reference_ID=231 - C - P - M"); 146 if (MeasureType == null) throw new IllegalArgumentException ("MeasureType is mandatory"); 147 setValue ("MeasureType", MeasureType); 148 } 149 public String getMeasureType() 150 { 151 return (String )getValue("MeasureType"); 152 } 153 public void setName (String Name) 154 { 155 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 156 setValue ("Name", Name); 157 } 158 public String getName() 159 { 160 return (String )getValue("Name"); 161 } 162 public void setOrg_ID (int Org_ID) 163 { 164 if (Org_ID == 0) setValue ("Org_ID", null); 165 else 166 setValue ("Org_ID", new Integer (Org_ID)); 167 } 168 public int getOrg_ID() 169 { 170 Integer ii = (Integer )getValue("Org_ID"); 171 if (ii == null) return 0; 172 return ii.intValue(); 173 } 174 public void setPA_Achievement_ID (int PA_Achievement_ID) 175 { 176 if (PA_Achievement_ID == 0) setValue ("PA_Achievement_ID", null); 177 else 178 setValue ("PA_Achievement_ID", new Integer (PA_Achievement_ID)); 179 } 180 public int getPA_Achievement_ID() 181 { 182 Integer ii = (Integer )getValue("PA_Achievement_ID"); 183 if (ii == null) return 0; 184 return ii.intValue(); 185 } 186 public void setPA_MeasureCalc_ID (int PA_MeasureCalc_ID) 187 { 188 if (PA_MeasureCalc_ID == 0) setValue ("PA_MeasureCalc_ID", null); 189 else 190 setValue ("PA_MeasureCalc_ID", new Integer (PA_MeasureCalc_ID)); 191 } 192 public int getPA_MeasureCalc_ID() 193 { 194 Integer ii = (Integer )getValue("PA_MeasureCalc_ID"); 195 if (ii == null) return 0; 196 return ii.intValue(); 197 } 198 void setPA_Measure_ID (int PA_Measure_ID) 199 { 200 setValueNoCheck ("PA_Measure_ID", new Integer (PA_Measure_ID)); 201 } 202 public int getPA_Measure_ID() 203 { 204 Integer ii = (Integer )getValue("PA_Measure_ID"); 205 if (ii == null) return 0; 206 return ii.intValue(); 207 } 208 } 209 | Popular Tags |