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_ProjectLine extends PO 11 { 12 13 public X_C_ProjectLine (Properties ctx, int C_ProjectLine_ID) 14 { 15 super (ctx, C_ProjectLine_ID); 16 31 } 32 33 public X_C_ProjectLine (Properties ctx, ResultSet rs) 34 { 35 super (ctx, rs); 36 } 37 38 protected POInfo initPO (Properties ctx) 39 { 40 int AD_Table_ID = 434; 41 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 42 return poi; 43 } 44 public String toString() 45 { 46 StringBuffer sb = new StringBuffer ("X_C_ProjectLine[").append(getID()).append("]"); 47 return sb.toString(); 48 } 49 void setC_OrderPO_ID (int C_OrderPO_ID) 50 { 51 if (C_OrderPO_ID == 0) setValueNoCheck ("C_OrderPO_ID", null); 52 else 53 setValueNoCheck ("C_OrderPO_ID", new Integer (C_OrderPO_ID)); 54 } 55 public int getC_OrderPO_ID() 56 { 57 Integer ii = (Integer )getValue("C_OrderPO_ID"); 58 if (ii == null) return 0; 59 return ii.intValue(); 60 } 61 void setC_Order_ID (int C_Order_ID) 62 { 63 if (C_Order_ID == 0) setValueNoCheck ("C_Order_ID", null); 64 else 65 setValueNoCheck ("C_Order_ID", new Integer (C_Order_ID)); 66 } 67 public int getC_Order_ID() 68 { 69 Integer ii = (Integer )getValue("C_Order_ID"); 70 if (ii == null) return 0; 71 return ii.intValue(); 72 } 73 void setC_ProjectIssue_ID (int C_ProjectIssue_ID) 74 { 75 if (C_ProjectIssue_ID == 0) setValueNoCheck ("C_ProjectIssue_ID", null); 76 else 77 setValueNoCheck ("C_ProjectIssue_ID", new Integer (C_ProjectIssue_ID)); 78 } 79 public int getC_ProjectIssue_ID() 80 { 81 Integer ii = (Integer )getValue("C_ProjectIssue_ID"); 82 if (ii == null) return 0; 83 return ii.intValue(); 84 } 85 void setC_ProjectLine_ID (int C_ProjectLine_ID) 86 { 87 setValueNoCheck ("C_ProjectLine_ID", new Integer (C_ProjectLine_ID)); 88 } 89 public int getC_ProjectLine_ID() 90 { 91 Integer ii = (Integer )getValue("C_ProjectLine_ID"); 92 if (ii == null) return 0; 93 return ii.intValue(); 94 } 95 void setC_Project_ID (int C_Project_ID) 96 { 97 setValueNoCheck ("C_Project_ID", new Integer (C_Project_ID)); 98 } 99 public int getC_Project_ID() 100 { 101 Integer ii = (Integer )getValue("C_Project_ID"); 102 if (ii == null) return 0; 103 return ii.intValue(); 104 } 105 public void setCommittedAmt (BigDecimal CommittedAmt) 106 { 107 setValue ("CommittedAmt", CommittedAmt); 108 } 109 public BigDecimal getCommittedAmt() 110 { 111 BigDecimal bd = (BigDecimal)getValue("CommittedAmt"); 112 if (bd == null) return Env.ZERO; 113 return bd; 114 } 115 public void setCommittedQty (BigDecimal CommittedQty) 116 { 117 setValue ("CommittedQty", CommittedQty); 118 } 119 public BigDecimal getCommittedQty() 120 { 121 BigDecimal bd = (BigDecimal)getValue("CommittedQty"); 122 if (bd == null) return Env.ZERO; 123 return bd; 124 } 125 public void setDescription (String Description) 126 { 127 setValue ("Description", Description); 128 } 129 public String getDescription() 130 { 131 return (String )getValue("Description"); 132 } 133 public void setDoPricing (String DoPricing) 134 { 135 setValue ("DoPricing", DoPricing); 136 } 137 public String getDoPricing() 138 { 139 return (String )getValue("DoPricing"); 140 } 141 public void setInvoicedAmt (BigDecimal InvoicedAmt) 142 { 143 if (InvoicedAmt == null) throw new IllegalArgumentException ("InvoicedAmt is mandatory"); 144 setValue ("InvoicedAmt", InvoicedAmt); 145 } 146 public BigDecimal getInvoicedAmt() 147 { 148 BigDecimal bd = (BigDecimal)getValue("InvoicedAmt"); 149 if (bd == null) return Env.ZERO; 150 return bd; 151 } 152 public void setInvoicedQty (BigDecimal InvoicedQty) 153 { 154 if (InvoicedQty == null) throw new IllegalArgumentException ("InvoicedQty is mandatory"); 155 setValue ("InvoicedQty", InvoicedQty); 156 } 157 public BigDecimal getInvoicedQty() 158 { 159 BigDecimal bd = (BigDecimal)getValue("InvoicedQty"); 160 if (bd == null) return Env.ZERO; 161 return bd; 162 } 163 public void setIsPrinted (boolean IsPrinted) 164 { 165 setValue ("IsPrinted", new Boolean (IsPrinted)); 166 } 167 public boolean isPrinted() 168 { 169 Boolean bb = (Boolean )getValue("IsPrinted"); 170 if (bb != null) return bb.booleanValue(); 171 return false; 172 } 173 public void setLine (int Line) 174 { 175 setValue ("Line", new Integer (Line)); 176 } 177 public int getLine() 178 { 179 Integer ii = (Integer )getValue("Line"); 180 if (ii == null) return 0; 181 return ii.intValue(); 182 } 183 public void setM_Product_Category_ID (int M_Product_Category_ID) 184 { 185 if (M_Product_Category_ID == 0) setValue ("M_Product_Category_ID", null); 186 else 187 setValue ("M_Product_Category_ID", new Integer (M_Product_Category_ID)); 188 } 189 public int getM_Product_Category_ID() 190 { 191 Integer ii = (Integer )getValue("M_Product_Category_ID"); 192 if (ii == null) return 0; 193 return ii.intValue(); 194 } 195 public void setM_Product_ID (int M_Product_ID) 196 { 197 if (M_Product_ID == 0) setValue ("M_Product_ID", null); 198 else 199 setValue ("M_Product_ID", new Integer (M_Product_ID)); 200 } 201 public int getM_Product_ID() 202 { 203 Integer ii = (Integer )getValue("M_Product_ID"); 204 if (ii == null) return 0; 205 return ii.intValue(); 206 } 207 public void setPlannedAmt (BigDecimal PlannedAmt) 208 { 209 if (PlannedAmt == null) throw new IllegalArgumentException ("PlannedAmt is mandatory"); 210 setValue ("PlannedAmt", PlannedAmt); 211 } 212 public BigDecimal getPlannedAmt() 213 { 214 BigDecimal bd = (BigDecimal)getValue("PlannedAmt"); 215 if (bd == null) return Env.ZERO; 216 return bd; 217 } 218 public void setPlannedMarginAmt (BigDecimal PlannedMarginAmt) 219 { 220 if (PlannedMarginAmt == null) throw new IllegalArgumentException ("PlannedMarginAmt is mandatory"); 221 setValue ("PlannedMarginAmt", PlannedMarginAmt); 222 } 223 public BigDecimal getPlannedMarginAmt() 224 { 225 BigDecimal bd = (BigDecimal)getValue("PlannedMarginAmt"); 226 if (bd == null) return Env.ZERO; 227 return bd; 228 } 229 public void setPlannedPrice (BigDecimal PlannedPrice) 230 { 231 if (PlannedPrice == null) throw new IllegalArgumentException ("PlannedPrice is mandatory"); 232 setValue ("PlannedPrice", PlannedPrice); 233 } 234 public BigDecimal getPlannedPrice() 235 { 236 BigDecimal bd = (BigDecimal)getValue("PlannedPrice"); 237 if (bd == null) return Env.ZERO; 238 return bd; 239 } 240 public void setPlannedQty (BigDecimal PlannedQty) 241 { 242 if (PlannedQty == null) throw new IllegalArgumentException ("PlannedQty is mandatory"); 243 setValue ("PlannedQty", PlannedQty); 244 } 245 public BigDecimal getPlannedQty() 246 { 247 BigDecimal bd = (BigDecimal)getValue("PlannedQty"); 248 if (bd == null) return Env.ZERO; 249 return bd; 250 } 251 public void setProcessed (boolean Processed) 252 { 253 setValue ("Processed", new Boolean (Processed)); 254 } 255 public boolean isProcessed() 256 { 257 Boolean bb = (Boolean )getValue("Processed"); 258 if (bb != null) return bb.booleanValue(); 259 return false; 260 } 261 } 262
| Popular Tags
|