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