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_InOutLine extends PO 11 { 12 13 public X_M_InOutLine (Properties ctx, int M_InOutLine_ID) 14 { 15 super (ctx, M_InOutLine_ID); 16 29 } 30 31 public X_M_InOutLine (Properties ctx, ResultSet rs) 32 { 33 super (ctx, rs); 34 } 35 36 protected POInfo initPO (Properties ctx) 37 { 38 int AD_Table_ID = 320; 39 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 40 return poi; 41 } 42 public String toString() 43 { 44 StringBuffer sb = new StringBuffer ("X_M_InOutLine[").append(getID()).append("]"); 45 return sb.toString(); 46 } 47 void setC_OrderLine_ID (int C_OrderLine_ID) 48 { 49 if (C_OrderLine_ID == 0) setValueNoCheck ("C_OrderLine_ID", null); 50 else 51 setValueNoCheck ("C_OrderLine_ID", new Integer (C_OrderLine_ID)); 52 } 53 public int getC_OrderLine_ID() 54 { 55 Integer ii = (Integer )getValue("C_OrderLine_ID"); 56 if (ii == null) return 0; 57 return ii.intValue(); 58 } 59 void setC_UOM_ID (int C_UOM_ID) 60 { 61 setValueNoCheck ("C_UOM_ID", new Integer (C_UOM_ID)); 62 } 63 public int getC_UOM_ID() 64 { 65 Integer ii = (Integer )getValue("C_UOM_ID"); 66 if (ii == null) return 0; 67 return ii.intValue(); 68 } 69 public void setDescription (String Description) 70 { 71 setValue ("Description", Description); 72 } 73 public String getDescription() 74 { 75 return (String )getValue("Description"); 76 } 77 public void setIsDescription (boolean IsDescription) 78 { 79 setValue ("IsDescription", new Boolean (IsDescription)); 80 } 81 public boolean isDescription() 82 { 83 Boolean bb = (Boolean )getValue("IsDescription"); 84 if (bb != null) return bb.booleanValue(); 85 return false; 86 } 87 public void setIsInvoiced (boolean IsInvoiced) 88 { 89 setValue ("IsInvoiced", new Boolean (IsInvoiced)); 90 } 91 public boolean isInvoiced() 92 { 93 Boolean bb = (Boolean )getValue("IsInvoiced"); 94 if (bb != null) return bb.booleanValue(); 95 return false; 96 } 97 public void setLine (int Line) 98 { 99 setValue ("Line", new Integer (Line)); 100 } 101 public int getLine() 102 { 103 Integer ii = (Integer )getValue("Line"); 104 if (ii == null) return 0; 105 return ii.intValue(); 106 } 107 public void setLot (String Lot) 108 { 109 setValue ("Lot", Lot); 110 } 111 public String getLot() 112 { 113 return (String )getValue("Lot"); 114 } 115 public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) 116 { 117 if (M_AttributeSetInstance_ID == 0) setValue ("M_AttributeSetInstance_ID", null); 118 else 119 setValue ("M_AttributeSetInstance_ID", new Integer (M_AttributeSetInstance_ID)); 120 } 121 public int getM_AttributeSetInstance_ID() 122 { 123 Integer ii = (Integer )getValue("M_AttributeSetInstance_ID"); 124 if (ii == null) return 0; 125 return ii.intValue(); 126 } 127 void setM_InOutLine_ID (int M_InOutLine_ID) 128 { 129 setValueNoCheck ("M_InOutLine_ID", new Integer (M_InOutLine_ID)); 130 } 131 public int getM_InOutLine_ID() 132 { 133 Integer ii = (Integer )getValue("M_InOutLine_ID"); 134 if (ii == null) return 0; 135 return ii.intValue(); 136 } 137 void setM_InOut_ID (int M_InOut_ID) 138 { 139 setValueNoCheck ("M_InOut_ID", new Integer (M_InOut_ID)); 140 } 141 public int getM_InOut_ID() 142 { 143 Integer ii = (Integer )getValue("M_InOut_ID"); 144 if (ii == null) return 0; 145 return ii.intValue(); 146 } 147 public void setM_Locator_ID (int M_Locator_ID) 148 { 149 setValue ("M_Locator_ID", new Integer (M_Locator_ID)); 150 } 151 public int getM_Locator_ID() 152 { 153 Integer ii = (Integer )getValue("M_Locator_ID"); 154 if (ii == null) return 0; 155 return ii.intValue(); 156 } 157 public void setM_Product_ID (int M_Product_ID) 158 { 159 setValue ("M_Product_ID", new Integer (M_Product_ID)); 160 } 161 public int getM_Product_ID() 162 { 163 Integer ii = (Integer )getValue("M_Product_ID"); 164 if (ii == null) return 0; 165 return ii.intValue(); 166 } 167 public void setMovementQty (BigDecimal MovementQty) 168 { 169 if (MovementQty == null) throw new IllegalArgumentException ("MovementQty is mandatory"); 170 setValue ("MovementQty", MovementQty); 171 } 172 public BigDecimal getMovementQty() 173 { 174 BigDecimal bd = (BigDecimal)getValue("MovementQty"); 175 if (bd == null) return Env.ZERO; 176 return bd; 177 } 178 public void setSerNo (String SerNo) 179 { 180 setValue ("SerNo", SerNo); 181 } 182 public String getSerNo() 183 { 184 return (String )getValue("SerNo"); 185 } 186 } 187
| Popular Tags
|