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_Project extends PO 11 { 12 13 public X_C_Project (Properties ctx, int C_Project_ID) 14 { 15 super (ctx, C_Project_ID); 16 36 } 37 38 public X_C_Project (Properties ctx, ResultSet rs) 39 { 40 super (ctx, rs); 41 } 42 43 protected POInfo initPO (Properties ctx) 44 { 45 int AD_Table_ID = 203; 46 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 47 return poi; 48 } 49 public String toString() 50 { 51 StringBuffer sb = new StringBuffer ("X_C_Project[").append(getID()).append("]"); 52 return sb.toString(); 53 } 54 public void setAD_User_ID (int AD_User_ID) 55 { 56 if (AD_User_ID == 0) setValue ("AD_User_ID", null); 57 else 58 setValue ("AD_User_ID", new Integer (AD_User_ID)); 59 } 60 public int getAD_User_ID() 61 { 62 Integer ii = (Integer )getValue("AD_User_ID"); 63 if (ii == null) return 0; 64 return ii.intValue(); 65 } 66 public void setC_BPartner_ID (int C_BPartner_ID) 67 { 68 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null); 69 else 70 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 71 } 72 public int getC_BPartner_ID() 73 { 74 Integer ii = (Integer )getValue("C_BPartner_ID"); 75 if (ii == null) return 0; 76 return ii.intValue(); 77 } 78 public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) 79 { 80 if (C_BPartner_Location_ID == 0) setValue ("C_BPartner_Location_ID", null); 81 else 82 setValue ("C_BPartner_Location_ID", new Integer (C_BPartner_Location_ID)); 83 } 84 public int getC_BPartner_Location_ID() 85 { 86 Integer ii = (Integer )getValue("C_BPartner_Location_ID"); 87 if (ii == null) return 0; 88 return ii.intValue(); 89 } 90 public void setC_Campaign_ID (int C_Campaign_ID) 91 { 92 if (C_Campaign_ID == 0) setValue ("C_Campaign_ID", null); 93 else 94 setValue ("C_Campaign_ID", new Integer (C_Campaign_ID)); 95 } 96 public int getC_Campaign_ID() 97 { 98 Integer ii = (Integer )getValue("C_Campaign_ID"); 99 if (ii == null) return 0; 100 return ii.intValue(); 101 } 102 public void setC_Currency_ID (int C_Currency_ID) 103 { 104 setValue ("C_Currency_ID", new Integer (C_Currency_ID)); 105 } 106 public int getC_Currency_ID() 107 { 108 Integer ii = (Integer )getValue("C_Currency_ID"); 109 if (ii == null) return 0; 110 return ii.intValue(); 111 } 112 public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) 113 { 114 if (C_PaymentTerm_ID == 0) setValue ("C_PaymentTerm_ID", null); 115 else 116 setValue ("C_PaymentTerm_ID", new Integer (C_PaymentTerm_ID)); 117 } 118 public int getC_PaymentTerm_ID() 119 { 120 Integer ii = (Integer )getValue("C_PaymentTerm_ID"); 121 if (ii == null) return 0; 122 return ii.intValue(); 123 } 124 public void setC_Phase_ID (int C_Phase_ID) 125 { 126 if (C_Phase_ID == 0) setValue ("C_Phase_ID", null); 127 else 128 setValue ("C_Phase_ID", new Integer (C_Phase_ID)); 129 } 130 public int getC_Phase_ID() 131 { 132 Integer ii = (Integer )getValue("C_Phase_ID"); 133 if (ii == null) return 0; 134 return ii.intValue(); 135 } 136 public void setC_ProjectType_ID (String C_ProjectType_ID) 137 { 138 setValue ("C_ProjectType_ID", C_ProjectType_ID); 139 } 140 public String getC_ProjectType_ID() 141 { 142 return (String )getValue("C_ProjectType_ID"); 143 } 144 void setC_Project_ID (int C_Project_ID) 145 { 146 setValueNoCheck ("C_Project_ID", new Integer (C_Project_ID)); 147 } 148 public int getC_Project_ID() 149 { 150 Integer ii = (Integer )getValue("C_Project_ID"); 151 if (ii == null) return 0; 152 return ii.intValue(); 153 } 154 public void setCommittedAmt (BigDecimal CommittedAmt) 155 { 156 if (CommittedAmt == null) throw new IllegalArgumentException ("CommittedAmt is mandatory"); 157 setValue ("CommittedAmt", CommittedAmt); 158 } 159 public BigDecimal getCommittedAmt() 160 { 161 BigDecimal bd = (BigDecimal)getValue("CommittedAmt"); 162 if (bd == null) return Env.ZERO; 163 return bd; 164 } 165 public void setCommittedQty (BigDecimal CommittedQty) 166 { 167 if (CommittedQty == null) throw new IllegalArgumentException ("CommittedQty is mandatory"); 168 setValue ("CommittedQty", CommittedQty); 169 } 170 public BigDecimal getCommittedQty() 171 { 172 BigDecimal bd = (BigDecimal)getValue("CommittedQty"); 173 if (bd == null) return Env.ZERO; 174 return bd; 175 } 176 public void setCopyFrom (String CopyFrom) 177 { 178 setValue ("CopyFrom", CopyFrom); 179 } 180 public String getCopyFrom() 181 { 182 return (String )getValue("CopyFrom"); 183 } 184 public void setDateContract (Timestamp DateContract) 185 { 186 setValue ("DateContract", DateContract); 187 } 188 public Timestamp getDateContract() 189 { 190 return (Timestamp)getValue("DateContract"); 191 } 192 public void setDateFinish (Timestamp DateFinish) 193 { 194 setValue ("DateFinish", DateFinish); 195 } 196 public Timestamp getDateFinish() 197 { 198 return (Timestamp)getValue("DateFinish"); 199 } 200 public void setDescription (String Description) 201 { 202 setValue ("Description", Description); 203 } 204 public String getDescription() 205 { 206 return (String )getValue("Description"); 207 } 208 public void setGenerateTo (String GenerateTo) 209 { 210 setValue ("GenerateTo", GenerateTo); 211 } 212 public String getGenerateTo() 213 { 214 return (String )getValue("GenerateTo"); 215 } 216 void setInvoicedAmt (BigDecimal InvoicedAmt) 217 { 218 if (InvoicedAmt == null) throw new IllegalArgumentException ("InvoicedAmt is mandatory"); 219 setValueNoCheck ("InvoicedAmt", InvoicedAmt); 220 } 221 public BigDecimal getInvoicedAmt() 222 { 223 BigDecimal bd = (BigDecimal)getValue("InvoicedAmt"); 224 if (bd == null) return Env.ZERO; 225 return bd; 226 } 227 void setInvoicedQty (BigDecimal InvoicedQty) 228 { 229 if (InvoicedQty == null) throw new IllegalArgumentException ("InvoicedQty is mandatory"); 230 setValueNoCheck ("InvoicedQty", InvoicedQty); 231 } 232 public BigDecimal getInvoicedQty() 233 { 234 BigDecimal bd = (BigDecimal)getValue("InvoicedQty"); 235 if (bd == null) return Env.ZERO; 236 return bd; 237 } 238 public void setIsCommitCeiling (boolean IsCommitCeiling) 239 { 240 setValue ("IsCommitCeiling", new Boolean (IsCommitCeiling)); 241 } 242 public boolean isCommitCeiling() 243 { 244 Boolean bb = (Boolean )getValue("IsCommitCeiling"); 245 if (bb != null) return bb.booleanValue(); 246 return false; 247 } 248 public void setIsCommitment (boolean IsCommitment) 249 { 250 setValue ("IsCommitment", new Boolean (IsCommitment)); 251 } 252 public boolean isCommitment() 253 { 254 Boolean bb = (Boolean )getValue("IsCommitment"); 255 if (bb != null) return bb.booleanValue(); 256 return false; 257 } 258 public void setIsSummary (boolean IsSummary) 259 { 260 setValue ("IsSummary", new Boolean (IsSummary)); 261 } 262 public boolean isSummary() 263 { 264 Boolean bb = (Boolean )getValue("IsSummary"); 265 if (bb != null) return bb.booleanValue(); 266 return false; 267 } 268 public void setM_PriceList_Version_ID (int M_PriceList_Version_ID) 269 { 270 if (M_PriceList_Version_ID == 0) setValue ("M_PriceList_Version_ID", null); 271 else 272 setValue ("M_PriceList_Version_ID", new Integer (M_PriceList_Version_ID)); 273 } 274 public int getM_PriceList_Version_ID() 275 { 276 Integer ii = (Integer )getValue("M_PriceList_Version_ID"); 277 if (ii == null) return 0; 278 return ii.intValue(); 279 } 280 public void setM_Warehouse_ID (int M_Warehouse_ID) 281 { 282 if (M_Warehouse_ID == 0) setValue ("M_Warehouse_ID", null); 283 else 284 setValue ("M_Warehouse_ID", new Integer (M_Warehouse_ID)); 285 } 286 public int getM_Warehouse_ID() 287 { 288 Integer ii = (Integer )getValue("M_Warehouse_ID"); 289 if (ii == null) return 0; 290 return ii.intValue(); 291 } 292 public void setName (String Name) 293 { 294 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 295 setValue ("Name", Name); 296 } 297 public String getName() 298 { 299 return (String )getValue("Name"); 300 } 301 public void setNote (String Note) 302 { 303 setValue ("Note", Note); 304 } 305 public String getNote() 306 { 307 return (String )getValue("Note"); 308 } 309 public void setPOReference (String POReference) 310 { 311 setValue ("POReference", POReference); 312 } 313 public String getPOReference() 314 { 315 return (String )getValue("POReference"); 316 } 317 public void setPlannedAmt (BigDecimal PlannedAmt) 318 { 319 if (PlannedAmt == null) throw new IllegalArgumentException ("PlannedAmt is mandatory"); 320 setValue ("PlannedAmt", PlannedAmt); 321 } 322 public BigDecimal getPlannedAmt() 323 { 324 BigDecimal bd = (BigDecimal)getValue("PlannedAmt"); 325 if (bd == null) return Env.ZERO; 326 return bd; 327 } 328 public void setPlannedMarginAmt (BigDecimal PlannedMarginAmt) 329 { 330 if (PlannedMarginAmt == null) throw new IllegalArgumentException ("PlannedMarginAmt is mandatory"); 331 setValue ("PlannedMarginAmt", PlannedMarginAmt); 332 } 333 public BigDecimal getPlannedMarginAmt() 334 { 335 BigDecimal bd = (BigDecimal)getValue("PlannedMarginAmt"); 336 if (bd == null) return Env.ZERO; 337 return bd; 338 } 339 public void setPlannedQty (BigDecimal PlannedQty) 340 { 341 if (PlannedQty == null) throw new IllegalArgumentException ("PlannedQty is mandatory"); 342 setValue ("PlannedQty", PlannedQty); 343 } 344 public BigDecimal getPlannedQty() 345 { 346 BigDecimal bd = (BigDecimal)getValue("PlannedQty"); 347 if (bd == null) return Env.ZERO; 348 return bd; 349 } 350 public void setProcessed (boolean Processed) 351 { 352 setValue ("Processed", new Boolean (Processed)); 353 } 354 public boolean isProcessed() 355 { 356 Boolean bb = (Boolean )getValue("Processed"); 357 if (bb != null) return bb.booleanValue(); 358 return false; 359 } 360 public void setProcessing (String Processing) 361 { 362 setValue ("Processing", Processing); 363 } 364 public String getProcessing() 365 { 366 return (String )getValue("Processing"); 367 } 368 void setProjectBalanceAmt (BigDecimal ProjectBalanceAmt) 369 { 370 if (ProjectBalanceAmt == null) throw new IllegalArgumentException ("ProjectBalanceAmt is mandatory"); 371 setValueNoCheck ("ProjectBalanceAmt", ProjectBalanceAmt); 372 } 373 public BigDecimal getProjectBalanceAmt() 374 { 375 BigDecimal bd = (BigDecimal)getValue("ProjectBalanceAmt"); 376 if (bd == null) return Env.ZERO; 377 return bd; 378 } 379 public static final String PROJECTCATEGORY_General = "N"; 380 public static final String PROJECTCATEGORY_AssetProject = "A"; 381 public static final String PROJECTCATEGORY_WorkOrderJob = "W"; 382 public static final String PROJECTCATEGORY_ServiceChargeProject = "S"; 383 public void setProjectCategory (String ProjectCategory) 384 { 385 if (ProjectCategory.equals("N") || ProjectCategory.equals("A") || ProjectCategory.equals("W") || ProjectCategory.equals("S")); 386 else throw new IllegalArgumentException ("ProjectCategory Invalid value - Reference_ID=288 - N - A - W - S"); 387 setValue ("ProjectCategory", ProjectCategory); 388 } 389 public String getProjectCategory() 390 { 391 return (String )getValue("ProjectCategory"); 392 } 393 public void setSalesRep_ID (int SalesRep_ID) 394 { 395 if (SalesRep_ID == 0) setValue ("SalesRep_ID", null); 396 else 397 setValue ("SalesRep_ID", new Integer (SalesRep_ID)); 398 } 399 public int getSalesRep_ID() 400 { 401 Integer ii = (Integer )getValue("SalesRep_ID"); 402 if (ii == null) return 0; 403 return ii.intValue(); 404 } 405 public void setValue (String Value) 406 { 407 if (Value == null) throw new IllegalArgumentException ("Value is mandatory"); 408 setValue ("Value", Value); 409 } 410 public String getValue() 411 { 412 return (String )getValue("Value"); 413 } 414 } 415 | Popular Tags |