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_R_Request extends PO 11 { 12 13 public X_R_Request (Properties ctx, int R_Request_ID) 14 { 15 super (ctx, R_Request_ID); 16 31 } 32 33 public X_R_Request (Properties ctx, ResultSet rs) 34 { 35 super (ctx, rs); 36 } 37 38 protected POInfo initPO (Properties ctx) 39 { 40 int AD_Table_ID = 417; 41 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 42 return poi; 43 } 44 public String toString() 45 { 46 StringBuffer sb = new StringBuffer ("X_R_Request[").append(getID()).append("]"); 47 return sb.toString(); 48 } 49 public void setAD_User_ID (int AD_User_ID) 50 { 51 if (AD_User_ID == 0) setValue ("AD_User_ID", null); 52 else 53 setValue ("AD_User_ID", new Integer (AD_User_ID)); 54 } 55 public int getAD_User_ID() 56 { 57 Integer ii = (Integer )getValue("AD_User_ID"); 58 if (ii == null) return 0; 59 return ii.intValue(); 60 } 61 public static final String ACTIONTYPE_Call = "C"; 62 public static final String ACTIONTYPE_EMail = "E"; 63 public static final String ACTIONTYPE_Close = "X"; 64 public static final String ACTIONTYPE_Mail = "M"; 65 public static final String ACTIONTYPE_OfferQuote = "Q"; 66 public static final String ACTIONTYPE_Invoice = "I"; 67 public static final String ACTIONTYPE_Order = "O"; 68 public static final String ACTIONTYPE_Credit = "R"; 69 public static final String ACTIONTYPE_Reminder = "A"; 70 public static final String ACTIONTYPE_Transfer = "T"; 71 public void setActionType (String ActionType) 72 { 73 if (ActionType.equals("C") || ActionType.equals("E") || ActionType.equals("X") || ActionType.equals("M") || ActionType.equals("Q") || ActionType.equals("I") || ActionType.equals("O") || ActionType.equals("R") || ActionType.equals("A") || ActionType.equals("T")); 74 else throw new IllegalArgumentException ("ActionType Invalid value - Reference_ID=220 - C - E - X - M - Q - I - O - R - A - T"); 75 setValue ("ActionType", ActionType); 76 } 77 public String getActionType() 78 { 79 return (String )getValue("ActionType"); 80 } 81 public void setC_BPartner_ID (int C_BPartner_ID) 82 { 83 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null); 84 else 85 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 86 } 87 public int getC_BPartner_ID() 88 { 89 Integer ii = (Integer )getValue("C_BPartner_ID"); 90 if (ii == null) return 0; 91 return ii.intValue(); 92 } 93 public void setC_Campaign_ID (int C_Campaign_ID) 94 { 95 if (C_Campaign_ID == 0) setValue ("C_Campaign_ID", null); 96 else 97 setValue ("C_Campaign_ID", new Integer (C_Campaign_ID)); 98 } 99 public int getC_Campaign_ID() 100 { 101 Integer ii = (Integer )getValue("C_Campaign_ID"); 102 if (ii == null) return 0; 103 return ii.intValue(); 104 } 105 public void setC_Invoice_ID (int C_Invoice_ID) 106 { 107 if (C_Invoice_ID == 0) setValue ("C_Invoice_ID", null); 108 else 109 setValue ("C_Invoice_ID", new Integer (C_Invoice_ID)); 110 } 111 public int getC_Invoice_ID() 112 { 113 Integer ii = (Integer )getValue("C_Invoice_ID"); 114 if (ii == null) return 0; 115 return ii.intValue(); 116 } 117 public void setC_Order_ID (int C_Order_ID) 118 { 119 if (C_Order_ID == 0) setValue ("C_Order_ID", null); 120 else 121 setValue ("C_Order_ID", new Integer (C_Order_ID)); 122 } 123 public int getC_Order_ID() 124 { 125 Integer ii = (Integer )getValue("C_Order_ID"); 126 if (ii == null) return 0; 127 return ii.intValue(); 128 } 129 public void setC_Payment_ID (int C_Payment_ID) 130 { 131 if (C_Payment_ID == 0) setValue ("C_Payment_ID", null); 132 else 133 setValue ("C_Payment_ID", new Integer (C_Payment_ID)); 134 } 135 public int getC_Payment_ID() 136 { 137 Integer ii = (Integer )getValue("C_Payment_ID"); 138 if (ii == null) return 0; 139 return ii.intValue(); 140 } 141 public void setC_Project_ID (int C_Project_ID) 142 { 143 if (C_Project_ID == 0) setValue ("C_Project_ID", null); 144 else 145 setValue ("C_Project_ID", new Integer (C_Project_ID)); 146 } 147 public int getC_Project_ID() 148 { 149 Integer ii = (Integer )getValue("C_Project_ID"); 150 if (ii == null) return 0; 151 return ii.intValue(); 152 } 153 void setDateLastAction (Timestamp DateLastAction) 154 { 155 setValueNoCheck ("DateLastAction", DateLastAction); 156 } 157 public Timestamp getDateLastAction() 158 { 159 return (Timestamp)getValue("DateLastAction"); 160 } 161 public void setDateNextAction (Timestamp DateNextAction) 162 { 163 setValue ("DateNextAction", DateNextAction); 164 } 165 public Timestamp getDateNextAction() 166 { 167 return (Timestamp)getValue("DateNextAction"); 168 } 169 public void setDocumentNo (String DocumentNo) 170 { 171 if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory"); 172 setValue ("DocumentNo", DocumentNo); 173 } 174 public String getDocumentNo() 175 { 176 return (String )getValue("DocumentNo"); 177 } 178 public static final String DUETYPE_Overdue = "3"; 179 public static final String DUETYPE_Due = "5"; 180 public static final String DUETYPE_Scheduled = "7"; 181 public void setDueType (String DueType) 182 { 183 if (DueType.equals("3") || DueType.equals("5") || DueType.equals("7")); 184 else throw new IllegalArgumentException ("DueType Invalid value - Reference_ID=222 - 3 - 5 - 7"); 185 if (DueType == null) throw new IllegalArgumentException ("DueType is mandatory"); 186 setValue ("DueType", DueType); 187 } 188 public String getDueType() 189 { 190 return (String )getValue("DueType"); 191 } 192 public void setIsEscalated (boolean IsEscalated) 193 { 194 setValue ("IsEscalated", new Boolean (IsEscalated)); 195 } 196 public boolean isEscalated() 197 { 198 Boolean bb = (Boolean )getValue("IsEscalated"); 199 if (bb != null) return bb.booleanValue(); 200 return false; 201 } 202 void setIsSelfService (boolean IsSelfService) 203 { 204 setValueNoCheck ("IsSelfService", new Boolean (IsSelfService)); 205 } 206 public boolean isSelfService() 207 { 208 Boolean bb = (Boolean )getValue("IsSelfService"); 209 if (bb != null) return bb.booleanValue(); 210 return false; 211 } 212 public void setLastResult (String LastResult) 213 { 214 setValue ("LastResult", LastResult); 215 } 216 public String getLastResult() 217 { 218 return (String )getValue("LastResult"); 219 } 220 public void setM_Product_ID (int M_Product_ID) 221 { 222 if (M_Product_ID == 0) setValue ("M_Product_ID", null); 223 else 224 setValue ("M_Product_ID", new Integer (M_Product_ID)); 225 } 226 public int getM_Product_ID() 227 { 228 Integer ii = (Integer )getValue("M_Product_ID"); 229 if (ii == null) return 0; 230 return ii.intValue(); 231 } 232 public void setMailSubject (String MailSubject) 233 { 234 setValue ("MailSubject", MailSubject); 235 } 236 public String getMailSubject() 237 { 238 return (String )getValue("MailSubject"); 239 } 240 public void setMailText (String MailText) 241 { 242 setValue ("MailText", MailText); 243 } 244 public String getMailText() 245 { 246 return (String )getValue("MailText"); 247 } 248 public static final String NEXTACTION_None = "N"; 249 public static final String NEXTACTION_FollowUp = "F"; 250 public void setNextAction (String NextAction) 251 { 252 if (NextAction.equals("N") || NextAction.equals("F")); 253 else throw new IllegalArgumentException ("NextAction Invalid value - Reference_ID=219 - N - F"); 254 setValue ("NextAction", NextAction); 255 } 256 public String getNextAction() 257 { 258 return (String )getValue("NextAction"); 259 } 260 public static final String PRIORITY_High = "3"; 261 public static final String PRIORITY_Medium = "5"; 262 public static final String PRIORITY_Low = "7"; 263 public void setPriority (String Priority) 264 { 265 if (Priority.equals("3") || Priority.equals("5") || Priority.equals("7")); 266 else throw new IllegalArgumentException ("Priority Invalid value - Reference_ID=154 - 3 - 5 - 7"); 267 if (Priority == null) throw new IllegalArgumentException ("Priority is mandatory"); 268 setValue ("Priority", Priority); 269 } 270 public String getPriority() 271 { 272 return (String )getValue("Priority"); 273 } 274 public void setProcessed (boolean Processed) 275 { 276 setValue ("Processed", new Boolean (Processed)); 277 } 278 public boolean isProcessed() 279 { 280 Boolean bb = (Boolean )getValue("Processed"); 281 if (bb != null) return bb.booleanValue(); 282 return false; 283 } 284 public void setProcessing (String Processing) 285 { 286 setValue ("Processing", Processing); 287 } 288 public String getProcessing() 289 { 290 return (String )getValue("Processing"); 291 } 292 public void setR_MailText_ID (int R_MailText_ID) 293 { 294 if (R_MailText_ID == 0) setValue ("R_MailText_ID", null); 295 else 296 setValue ("R_MailText_ID", new Integer (R_MailText_ID)); 297 } 298 public int getR_MailText_ID() 299 { 300 Integer ii = (Integer )getValue("R_MailText_ID"); 301 if (ii == null) return 0; 302 return ii.intValue(); 303 } 304 public void setR_RequestType_ID (int R_RequestType_ID) 305 { 306 setValue ("R_RequestType_ID", new Integer (R_RequestType_ID)); 307 } 308 public int getR_RequestType_ID() 309 { 310 Integer ii = (Integer )getValue("R_RequestType_ID"); 311 if (ii == null) return 0; 312 return ii.intValue(); 313 } 314 void setR_Request_ID (int R_Request_ID) 315 { 316 setValueNoCheck ("R_Request_ID", new Integer (R_Request_ID)); 317 } 318 public int getR_Request_ID() 319 { 320 Integer ii = (Integer )getValue("R_Request_ID"); 321 if (ii == null) return 0; 322 return ii.intValue(); 323 } 324 public void setRequestAmt (BigDecimal RequestAmt) 325 { 326 if (RequestAmt == null) throw new IllegalArgumentException ("RequestAmt is mandatory"); 327 setValue ("RequestAmt", RequestAmt); 328 } 329 public BigDecimal getRequestAmt() 330 { 331 BigDecimal bd = (BigDecimal)getValue("RequestAmt"); 332 if (bd == null) return Env.ZERO; 333 return bd; 334 } 335 public void setResult (String Result) 336 { 337 setValue ("Result", Result); 338 } 339 public String getResult() 340 { 341 return (String )getValue("Result"); 342 } 343 public void setSalesRep_ID (int SalesRep_ID) 344 { 345 setValue ("SalesRep_ID", new Integer (SalesRep_ID)); 346 } 347 public int getSalesRep_ID() 348 { 349 Integer ii = (Integer )getValue("SalesRep_ID"); 350 if (ii == null) return 0; 351 return ii.intValue(); 352 } 353 public void setSummary (String Summary) 354 { 355 if (Summary == null) throw new IllegalArgumentException ("Summary is mandatory"); 356 setValue ("Summary", Summary); 357 } 358 public String getSummary() 359 { 360 return (String )getValue("Summary"); 361 } 362 } 363 | Popular Tags |