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_I_ReportLine extends PO 11 { 12 13 public X_I_ReportLine (Properties ctx, int I_ReportLine_ID) 14 { 15 super (ctx, I_ReportLine_ID); 16 22 } 23 24 public X_I_ReportLine (Properties ctx, ResultSet rs) 25 { 26 super (ctx, rs); 27 } 28 29 protected POInfo initPO (Properties ctx) 30 { 31 int AD_Table_ID = 535; 32 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 33 return poi; 34 } 35 public String toString() 36 { 37 StringBuffer sb = new StringBuffer ("X_I_ReportLine[").append(getID()).append("]"); 38 return sb.toString(); 39 } 40 public static final String AMOUNTTYPE_TotalDebitOnly = "DT"; 41 public static final String AMOUNTTYPE_TotalCreditOnly = "CT"; 42 public static final String AMOUNTTYPE_TotalBalance = "BT"; 43 public static final String AMOUNTTYPE_PeriodBalance = "BP"; 44 public static final String AMOUNTTYPE_PeriodCreditOnly = "CP"; 45 public static final String AMOUNTTYPE_PeriodDebitOnly = "DP"; 46 public static final String AMOUNTTYPE_PeriodQuantity = "QP"; 47 public static final String AMOUNTTYPE_TotalQuantity = "QT"; 48 public static final String AMOUNTTYPE_YearBalance = "BY"; 49 public static final String AMOUNTTYPE_YearCreditOnly = "CY"; 50 public static final String AMOUNTTYPE_YearDebitOnly = "DY"; 51 public static final String AMOUNTTYPE_YearQuantity = "QY"; 52 public void setAmountType (String AmountType) 53 { 54 if (AmountType.equals("DT") || AmountType.equals("CT") || AmountType.equals("BT") || AmountType.equals("BP") || AmountType.equals("CP") || AmountType.equals("DP") || AmountType.equals("QP") || AmountType.equals("QT") || AmountType.equals("BY") || AmountType.equals("CY") || AmountType.equals("DY") || AmountType.equals("QY")); 55 else throw new IllegalArgumentException ("AmountType Invalid value - Reference_ID=235 - DT - CT - BT - BP - CP - DP - QP - QT - BY - CY - DY - QY"); 56 setValue ("AmountType", AmountType); 57 } 58 public String getAmountType() 59 { 60 return (String )getValue("AmountType"); 61 } 62 public void setC_ElementValue_ID (int C_ElementValue_ID) 63 { 64 if (C_ElementValue_ID == 0) setValue ("C_ElementValue_ID", null); 65 else 66 setValue ("C_ElementValue_ID", new Integer (C_ElementValue_ID)); 67 } 68 public int getC_ElementValue_ID() 69 { 70 Integer ii = (Integer )getValue("C_ElementValue_ID"); 71 if (ii == null) return 0; 72 return ii.intValue(); 73 } 74 public static final String CALCULATIONTYPE_AddOp1PlusOp2 = "A"; 75 public static final String CALCULATIONTYPE_SubtractOp1MinusOp2 = "S"; 76 public static final String CALCULATIONTYPE_PercentageOp2OfOp1 = "P"; 77 public static final String CALCULATIONTYPE_AddRangeOp1ToOp2 = "R"; 78 public void setCalculationType (String CalculationType) 79 { 80 if (CalculationType.equals("A") || CalculationType.equals("S") || CalculationType.equals("P") || CalculationType.equals("R")); 81 else throw new IllegalArgumentException ("CalculationType Invalid value - Reference_ID=236 - A - S - P - R"); 82 setValue ("CalculationType", CalculationType); 83 } 84 public String getCalculationType() 85 { 86 return (String )getValue("CalculationType"); 87 } 88 public void setDescription (String Description) 89 { 90 setValue ("Description", Description); 91 } 92 public String getDescription() 93 { 94 return (String )getValue("Description"); 95 } 96 public void setElementValue (String ElementValue) 97 { 98 if (ElementValue == null) throw new IllegalArgumentException ("ElementValue is mandatory"); 99 setValue ("ElementValue", ElementValue); 100 } 101 public String getElementValue() 102 { 103 return (String )getValue("ElementValue"); 104 } 105 void setI_ErrorMsg (String I_ErrorMsg) 106 { 107 setValueNoCheck ("I_ErrorMsg", I_ErrorMsg); 108 } 109 public String getI_ErrorMsg() 110 { 111 return (String )getValue("I_ErrorMsg"); 112 } 113 void setI_IsImported (boolean I_IsImported) 114 { 115 setValueNoCheck ("I_IsImported", new Boolean (I_IsImported)); 116 } 117 public boolean isI_IsImported() 118 { 119 Boolean bb = (Boolean )getValue("I_IsImported"); 120 if (bb != null) return bb.booleanValue(); 121 return false; 122 } 123 void setI_ReportLine_ID (int I_ReportLine_ID) 124 { 125 setValueNoCheck ("I_ReportLine_ID", new Integer (I_ReportLine_ID)); 126 } 127 public int getI_ReportLine_ID() 128 { 129 Integer ii = (Integer )getValue("I_ReportLine_ID"); 130 if (ii == null) return 0; 131 return ii.intValue(); 132 } 133 public void setIsPrinted (boolean IsPrinted) 134 { 135 setValue ("IsPrinted", new Boolean (IsPrinted)); 136 } 137 public boolean isPrinted() 138 { 139 Boolean bb = (Boolean )getValue("IsPrinted"); 140 if (bb != null) return bb.booleanValue(); 141 return false; 142 } 143 public void setIsSummary (boolean IsSummary) 144 { 145 setValue ("IsSummary", new Boolean (IsSummary)); 146 } 147 public boolean isSummary() 148 { 149 Boolean bb = (Boolean )getValue("IsSummary"); 150 if (bb != null) return bb.booleanValue(); 151 return false; 152 } 153 public static final String LINETYPE_SegmentValue = "S"; 154 public static final String LINETYPE_Calculation = "C"; 155 public void setLineType (String LineType) 156 { 157 if (LineType.equals("S") || LineType.equals("C")); 158 else throw new IllegalArgumentException ("LineType Invalid value - Reference_ID=241 - S - C"); 159 setValue ("LineType", LineType); 160 } 161 public String getLineType() 162 { 163 return (String )getValue("LineType"); 164 } 165 public void setName (String Name) 166 { 167 setValue ("Name", Name); 168 } 169 public String getName() 170 { 171 return (String )getValue("Name"); 172 } 173 public void setPA_ReportLineSet_ID (int PA_ReportLineSet_ID) 174 { 175 if (PA_ReportLineSet_ID == 0) setValue ("PA_ReportLineSet_ID", null); 176 else 177 setValue ("PA_ReportLineSet_ID", new Integer (PA_ReportLineSet_ID)); 178 } 179 public int getPA_ReportLineSet_ID() 180 { 181 Integer ii = (Integer )getValue("PA_ReportLineSet_ID"); 182 if (ii == null) return 0; 183 return ii.intValue(); 184 } 185 public void setPA_ReportLine_ID (int PA_ReportLine_ID) 186 { 187 if (PA_ReportLine_ID == 0) setValue ("PA_ReportLine_ID", null); 188 else 189 setValue ("PA_ReportLine_ID", new Integer (PA_ReportLine_ID)); 190 } 191 public int getPA_ReportLine_ID() 192 { 193 Integer ii = (Integer )getValue("PA_ReportLine_ID"); 194 if (ii == null) return 0; 195 return ii.intValue(); 196 } 197 public void setPA_ReportSource_ID (int PA_ReportSource_ID) 198 { 199 if (PA_ReportSource_ID == 0) setValue ("PA_ReportSource_ID", null); 200 else 201 setValue ("PA_ReportSource_ID", new Integer (PA_ReportSource_ID)); 202 } 203 public int getPA_ReportSource_ID() 204 { 205 Integer ii = (Integer )getValue("PA_ReportSource_ID"); 206 if (ii == null) return 0; 207 return ii.intValue(); 208 } 209 public static final String POSTINGTYPE_Actual = "A"; 210 public static final String POSTINGTYPE_Budget = "B"; 211 public static final String POSTINGTYPE_Encumbrance = "E"; 212 public static final String POSTINGTYPE_Statistical = "S"; 213 public void setPostingType (String PostingType) 214 { 215 if (PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("S")); 216 else throw new IllegalArgumentException ("PostingType Invalid value - Reference_ID=125 - A - B - E - S"); 217 setValue ("PostingType", PostingType); 218 } 219 public String getPostingType() 220 { 221 return (String )getValue("PostingType"); 222 } 223 void setProcessed (boolean Processed) 224 { 225 setValueNoCheck ("Processed", new Boolean (Processed)); 226 } 227 public boolean isProcessed() 228 { 229 Boolean bb = (Boolean )getValue("Processed"); 230 if (bb != null) return bb.booleanValue(); 231 return false; 232 } 233 public void setProcessing (String Processing) 234 { 235 setValue ("Processing", Processing); 236 } 237 public String getProcessing() 238 { 239 return (String )getValue("Processing"); 240 } 241 public void setReportLineSetName (String ReportLineSetName) 242 { 243 setValue ("ReportLineSetName", ReportLineSetName); 244 } 245 public String getReportLineSetName() 246 { 247 return (String )getValue("ReportLineSetName"); 248 } 249 public void setSeqNo (int SeqNo) 250 { 251 setValue ("SeqNo", new Integer (SeqNo)); 252 } 253 public int getSeqNo() 254 { 255 Integer ii = (Integer )getValue("SeqNo"); 256 if (ii == null) return 0; 257 return ii.intValue(); 258 } 259 } 260
| Popular Tags
|