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_RequestAction extends PO 11 { 12 13 public X_R_RequestAction (Properties ctx, int R_RequestAction_ID) 14 { 15 super (ctx, R_RequestAction_ID); 16 24 } 25 26 public X_R_RequestAction (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 418; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_R_RequestAction[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 void setAD_User_ID (int AD_User_ID) 43 { 44 if (AD_User_ID == 0) setValueNoCheck ("AD_User_ID", null); 45 else 46 setValueNoCheck ("AD_User_ID", new Integer (AD_User_ID)); 47 } 48 public int getAD_User_ID() 49 { 50 Integer ii = (Integer )getValue("AD_User_ID"); 51 if (ii == null) return 0; 52 return ii.intValue(); 53 } 54 public static final String ACTIONTYPE_Call = "C"; 55 public static final String ACTIONTYPE_EMail = "E"; 56 public static final String ACTIONTYPE_Close = "X"; 57 public static final String ACTIONTYPE_Mail = "M"; 58 public static final String ACTIONTYPE_OfferQuote = "Q"; 59 public static final String ACTIONTYPE_Invoice = "I"; 60 public static final String ACTIONTYPE_Order = "O"; 61 public static final String ACTIONTYPE_Credit = "R"; 62 public static final String ACTIONTYPE_Reminder = "A"; 63 public static final String ACTIONTYPE_Transfer = "T"; 64 void setActionType (String ActionType) 65 { 66 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")); 67 else throw new IllegalArgumentException ("ActionType Invalid value - Reference_ID=220 - C - E - X - M - Q - I - O - R - A - T"); 68 if (ActionType == null) throw new IllegalArgumentException ("ActionType is mandatory"); 69 setValueNoCheck ("ActionType", ActionType); 70 } 71 public String getActionType() 72 { 73 return (String )getValue("ActionType"); 74 } 75 void setC_BPartner_ID (int C_BPartner_ID) 76 { 77 if (C_BPartner_ID == 0) setValueNoCheck ("C_BPartner_ID", null); 78 else 79 setValueNoCheck ("C_BPartner_ID", new Integer (C_BPartner_ID)); 80 } 81 public int getC_BPartner_ID() 82 { 83 Integer ii = (Integer )getValue("C_BPartner_ID"); 84 if (ii == null) return 0; 85 return ii.intValue(); 86 } 87 void setC_Invoice_ID (int C_Invoice_ID) 88 { 89 if (C_Invoice_ID == 0) setValueNoCheck ("C_Invoice_ID", null); 90 else 91 setValueNoCheck ("C_Invoice_ID", new Integer (C_Invoice_ID)); 92 } 93 public int getC_Invoice_ID() 94 { 95 Integer ii = (Integer )getValue("C_Invoice_ID"); 96 if (ii == null) return 0; 97 return ii.intValue(); 98 } 99 void setC_Order_ID (int C_Order_ID) 100 { 101 if (C_Order_ID == 0) setValueNoCheck ("C_Order_ID", null); 102 else 103 setValueNoCheck ("C_Order_ID", new Integer (C_Order_ID)); 104 } 105 public int getC_Order_ID() 106 { 107 Integer ii = (Integer )getValue("C_Order_ID"); 108 if (ii == null) return 0; 109 return ii.intValue(); 110 } 111 void setC_Payment_ID (int C_Payment_ID) 112 { 113 if (C_Payment_ID == 0) setValueNoCheck ("C_Payment_ID", null); 114 else 115 setValueNoCheck ("C_Payment_ID", new Integer (C_Payment_ID)); 116 } 117 public int getC_Payment_ID() 118 { 119 Integer ii = (Integer )getValue("C_Payment_ID"); 120 if (ii == null) return 0; 121 return ii.intValue(); 122 } 123 void setC_Project_ID (int C_Project_ID) 124 { 125 if (C_Project_ID == 0) setValueNoCheck ("C_Project_ID", null); 126 else 127 setValueNoCheck ("C_Project_ID", new Integer (C_Project_ID)); 128 } 129 public int getC_Project_ID() 130 { 131 Integer ii = (Integer )getValue("C_Project_ID"); 132 if (ii == null) return 0; 133 return ii.intValue(); 134 } 135 void setDateNextAction (Timestamp DateNextAction) 136 { 137 setValueNoCheck ("DateNextAction", DateNextAction); 138 } 139 public Timestamp getDateNextAction() 140 { 141 return (Timestamp)getValue("DateNextAction"); 142 } 143 void setM_Product_ID (int M_Product_ID) 144 { 145 if (M_Product_ID == 0) setValueNoCheck ("M_Product_ID", null); 146 else 147 setValueNoCheck ("M_Product_ID", new Integer (M_Product_ID)); 148 } 149 public int getM_Product_ID() 150 { 151 Integer ii = (Integer )getValue("M_Product_ID"); 152 if (ii == null) return 0; 153 return ii.intValue(); 154 } 155 void setMailText (String MailText) 156 { 157 setValueNoCheck ("MailText", MailText); 158 } 159 public String getMailText() 160 { 161 return (String )getValue("MailText"); 162 } 163 void setR_MailText_ID (int R_MailText_ID) 164 { 165 if (R_MailText_ID == 0) setValueNoCheck ("R_MailText_ID", null); 166 else 167 setValueNoCheck ("R_MailText_ID", new Integer (R_MailText_ID)); 168 } 169 public int getR_MailText_ID() 170 { 171 Integer ii = (Integer )getValue("R_MailText_ID"); 172 if (ii == null) return 0; 173 return ii.intValue(); 174 } 175 void setR_RequestAction_ID (int R_RequestAction_ID) 176 { 177 setValueNoCheck ("R_RequestAction_ID", new Integer (R_RequestAction_ID)); 178 } 179 public int getR_RequestAction_ID() 180 { 181 Integer ii = (Integer )getValue("R_RequestAction_ID"); 182 if (ii == null) return 0; 183 return ii.intValue(); 184 } 185 void setR_Request_ID (int R_Request_ID) 186 { 187 setValueNoCheck ("R_Request_ID", new Integer (R_Request_ID)); 188 } 189 public int getR_Request_ID() 190 { 191 Integer ii = (Integer )getValue("R_Request_ID"); 192 if (ii == null) return 0; 193 return ii.intValue(); 194 } 195 void setResult (String Result) 196 { 197 setValueNoCheck ("Result", Result); 198 } 199 public String getResult() 200 { 201 return (String )getValue("Result"); 202 } 203 void setSalesRep_ID (int SalesRep_ID) 204 { 205 setValueNoCheck ("SalesRep_ID", new Integer (SalesRep_ID)); 206 } 207 public int getSalesRep_ID() 208 { 209 Integer ii = (Integer )getValue("SalesRep_ID"); 210 if (ii == null) return 0; 211 return ii.intValue(); 212 } 213 } 214 | Popular Tags |