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_M_ProductionPlan extends PO 11 { 12 13 public X_M_ProductionPlan (Properties ctx, int M_ProductionPlan_ID) 14 { 15 super (ctx, M_ProductionPlan_ID); 16 26 } 27 28 public X_M_ProductionPlan (Properties ctx, ResultSet rs) 29 { 30 super (ctx, rs); 31 } 32 33 protected POInfo initPO (Properties ctx) 34 { 35 int AD_Table_ID = 385; 36 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 37 return poi; 38 } 39 public String toString() 40 { 41 StringBuffer sb = new StringBuffer ("X_M_ProductionPlan[").append(getID()).append("]"); 42 return sb.toString(); 43 } 44 public void setDescription (String Description) 45 { 46 setValue ("Description", Description); 47 } 48 public String getDescription() 49 { 50 return (String )getValue("Description"); 51 } 52 public void setLine (int Line) 53 { 54 setValue ("Line", new Integer (Line)); 55 } 56 public int getLine() 57 { 58 Integer ii = (Integer )getValue("Line"); 59 if (ii == null) return 0; 60 return ii.intValue(); 61 } 62 public void setM_Locator_ID (int M_Locator_ID) 63 { 64 setValue ("M_Locator_ID", new Integer (M_Locator_ID)); 65 } 66 public int getM_Locator_ID() 67 { 68 Integer ii = (Integer )getValue("M_Locator_ID"); 69 if (ii == null) return 0; 70 return ii.intValue(); 71 } 72 public void setM_Product_ID (int M_Product_ID) 73 { 74 setValue ("M_Product_ID", new Integer (M_Product_ID)); 75 } 76 public int getM_Product_ID() 77 { 78 Integer ii = (Integer )getValue("M_Product_ID"); 79 if (ii == null) return 0; 80 return ii.intValue(); 81 } 82 void setM_ProductionPlan_ID (int M_ProductionPlan_ID) 83 { 84 setValueNoCheck ("M_ProductionPlan_ID", new Integer (M_ProductionPlan_ID)); 85 } 86 public int getM_ProductionPlan_ID() 87 { 88 Integer ii = (Integer )getValue("M_ProductionPlan_ID"); 89 if (ii == null) return 0; 90 return ii.intValue(); 91 } 92 void setM_Production_ID (int M_Production_ID) 93 { 94 setValueNoCheck ("M_Production_ID", new Integer (M_Production_ID)); 95 } 96 public int getM_Production_ID() 97 { 98 Integer ii = (Integer )getValue("M_Production_ID"); 99 if (ii == null) return 0; 100 return ii.intValue(); 101 } 102 public void setProductionQty (BigDecimal ProductionQty) 103 { 104 if (ProductionQty == null) throw new IllegalArgumentException ("ProductionQty is mandatory"); 105 setValue ("ProductionQty", ProductionQty); 106 } 107 public BigDecimal getProductionQty() 108 { 109 BigDecimal bd = (BigDecimal)getValue("ProductionQty"); 110 if (bd == null) return Env.ZERO; 111 return bd; 112 } 113 } 114
| Popular Tags
|