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_C_DocType extends PO 11 { 12 13 public X_C_DocType (Properties ctx, int C_DocType_ID) 14 { 15 super (ctx, C_DocType_ID); 16 36 } 37 38 public X_C_DocType (Properties ctx, ResultSet rs) 39 { 40 super (ctx, rs); 41 } 42 43 protected POInfo initPO (Properties ctx) 44 { 45 int AD_Table_ID = 217; 46 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 47 return poi; 48 } 49 public String toString() 50 { 51 StringBuffer sb = new StringBuffer ("X_C_DocType[").append(getID()).append("]"); 52 return sb.toString(); 53 } 54 public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) 55 { 56 if (AD_PrintFormat_ID == 0) setValue ("AD_PrintFormat_ID", null); 57 else 58 setValue ("AD_PrintFormat_ID", new Integer (AD_PrintFormat_ID)); 59 } 60 public int getAD_PrintFormat_ID() 61 { 62 Integer ii = (Integer )getValue("AD_PrintFormat_ID"); 63 if (ii == null) return 0; 64 return ii.intValue(); 65 } 66 public void setBatchNoSequence_ID (int BatchNoSequence_ID) 67 { 68 if (BatchNoSequence_ID == 0) setValue ("BatchNoSequence_ID", null); 69 else 70 setValue ("BatchNoSequence_ID", new Integer (BatchNoSequence_ID)); 71 } 72 public int getBatchNoSequence_ID() 73 { 74 Integer ii = (Integer )getValue("BatchNoSequence_ID"); 75 if (ii == null) return 0; 76 return ii.intValue(); 77 } 78 public void setC_Approval_ID (int C_Approval_ID) 79 { 80 if (C_Approval_ID == 0) setValue ("C_Approval_ID", null); 81 else 82 setValue ("C_Approval_ID", new Integer (C_Approval_ID)); 83 } 84 public int getC_Approval_ID() 85 { 86 Integer ii = (Integer )getValue("C_Approval_ID"); 87 if (ii == null) return 0; 88 return ii.intValue(); 89 } 90 public void setC_DocTypeInvoice_ID (int C_DocTypeInvoice_ID) 91 { 92 if (C_DocTypeInvoice_ID == 0) setValue ("C_DocTypeInvoice_ID", null); 93 else 94 setValue ("C_DocTypeInvoice_ID", new Integer (C_DocTypeInvoice_ID)); 95 } 96 public int getC_DocTypeInvoice_ID() 97 { 98 Integer ii = (Integer )getValue("C_DocTypeInvoice_ID"); 99 if (ii == null) return 0; 100 return ii.intValue(); 101 } 102 public void setC_DocTypeProforma_ID (int C_DocTypeProforma_ID) 103 { 104 if (C_DocTypeProforma_ID == 0) setValue ("C_DocTypeProforma_ID", null); 105 else 106 setValue ("C_DocTypeProforma_ID", new Integer (C_DocTypeProforma_ID)); 107 } 108 public int getC_DocTypeProforma_ID() 109 { 110 Integer ii = (Integer )getValue("C_DocTypeProforma_ID"); 111 if (ii == null) return 0; 112 return ii.intValue(); 113 } 114 public void setC_DocTypeShipment_ID (int C_DocTypeShipment_ID) 115 { 116 if (C_DocTypeShipment_ID == 0) setValue ("C_DocTypeShipment_ID", null); 117 else 118 setValue ("C_DocTypeShipment_ID", new Integer (C_DocTypeShipment_ID)); 119 } 120 public int getC_DocTypeShipment_ID() 121 { 122 Integer ii = (Integer )getValue("C_DocTypeShipment_ID"); 123 if (ii == null) return 0; 124 return ii.intValue(); 125 } 126 void setC_DocType_ID (int C_DocType_ID) 127 { 128 setValueNoCheck ("C_DocType_ID", new Integer (C_DocType_ID)); 129 } 130 public int getC_DocType_ID() 131 { 132 Integer ii = (Integer )getValue("C_DocType_ID"); 133 if (ii == null) return 0; 134 return ii.intValue(); 135 } 136 public void setCreatePicklist (boolean CreatePicklist) 137 { 138 setValue ("CreatePicklist", new Boolean (CreatePicklist)); 139 } 140 public boolean isCreatePicklist() 141 { 142 Boolean bb = (Boolean )getValue("CreatePicklist"); 143 if (bb != null) return bb.booleanValue(); 144 return false; 145 } 146 public void setDescription (String Description) 147 { 148 setValue ("Description", Description); 149 } 150 public String getDescription() 151 { 152 return (String )getValue("Description"); 153 } 154 public static final String DOCBASETYPE_APCreditMemo = "APC"; 155 public static final String DOCBASETYPE_ARCreditMemo = "ARC"; 156 public static final String DOCBASETYPE_BankStatement = "CMB"; 157 public static final String DOCBASETYPE_CashJournal = "CMC"; 158 public static final String DOCBASETYPE_PaymentAllocation = "CMA"; 159 public static final String DOCBASETYPE_GLJournal = "GLJ"; 160 public static final String DOCBASETYPE_GLDocument = "GLD"; 161 public static final String DOCBASETYPE_APInvoice = "API"; 162 public static final String DOCBASETYPE_APPayment = "APP"; 163 public static final String DOCBASETYPE_ARInvoice = "ARI"; 164 public static final String DOCBASETYPE_ARReceipt = "ARR"; 165 public static final String DOCBASETYPE_SalesOrder = "SOO"; 166 public static final String DOCBASETYPE_ARProFormaInvoice = "ARF"; 167 public static final String DOCBASETYPE_MaterialDelivery = "MMS"; 168 public static final String DOCBASETYPE_MaterialReceipt = "MMR"; 169 public static final String DOCBASETYPE_MaterialMovement = "MMM"; 170 public static final String DOCBASETYPE_PurchaseOrder = "POO"; 171 public static final String DOCBASETYPE_PurchaseRequisition = "POR"; 172 public static final String DOCBASETYPE_MaterialPhysicalInventory = "MMI"; 173 public static final String DOCBASETYPE_MaterialProduction = "MMP"; 174 public static final String DOCBASETYPE_MatchInvoice = "MXI"; 175 public static final String DOCBASETYPE_MatchPO = "MXP"; 176 public static final String DOCBASETYPE_ProjectIssue = "PJI"; 177 public void setDocBaseType (String DocBaseType) 178 { 179 if (DocBaseType.equals("APC") || DocBaseType.equals("ARC") || DocBaseType.equals("CMB") || DocBaseType.equals("CMC") || DocBaseType.equals("CMA") || DocBaseType.equals("GLJ") || DocBaseType.equals("GLD") || DocBaseType.equals("API") || DocBaseType.equals("APP") || DocBaseType.equals("ARI") || DocBaseType.equals("ARR") || DocBaseType.equals("SOO") || DocBaseType.equals("ARF") || DocBaseType.equals("MMS") || DocBaseType.equals("MMR") || DocBaseType.equals("MMM") || DocBaseType.equals("POO") || DocBaseType.equals("POR") || DocBaseType.equals("MMI") || DocBaseType.equals("MMP") || DocBaseType.equals("MXI") || DocBaseType.equals("MXP") || DocBaseType.equals("PJI")); 180 else throw new IllegalArgumentException ("DocBaseType Invalid value - Reference_ID=183 - APC - ARC - CMB - CMC - CMA - GLJ - GLD - API - APP - ARI - ARR - SOO - ARF - MMS - MMR - MMM - POO - POR - MMI - MMP - MXI - MXP - PJI"); 181 if (DocBaseType == null) throw new IllegalArgumentException ("DocBaseType is mandatory"); 182 setValue ("DocBaseType", DocBaseType); 183 } 184 public String getDocBaseType() 185 { 186 return (String )getValue("DocBaseType"); 187 } 188 public void setDocNoSequence_ID (int DocNoSequence_ID) 189 { 190 if (DocNoSequence_ID == 0) setValue ("DocNoSequence_ID", null); 191 else 192 setValue ("DocNoSequence_ID", new Integer (DocNoSequence_ID)); 193 } 194 public int getDocNoSequence_ID() 195 { 196 Integer ii = (Integer )getValue("DocNoSequence_ID"); 197 if (ii == null) return 0; 198 return ii.intValue(); 199 } 200 public static final String DOCSUBTYPESO_ReturnMaterial = "RM"; 201 public static final String DOCSUBTYPESO_PrepayOrder = "PR"; 202 public static final String DOCSUBTYPESO_OnCreditOrder = "WI"; 203 public static final String DOCSUBTYPESO_POSOrder = "WR"; 204 public static final String DOCSUBTYPESO_WarehouseOrder = "WP"; 205 public static final String DOCSUBTYPESO_StandardOrder = "SO"; 206 public static final String DOCSUBTYPESO_Proposal = "ON"; 207 public static final String DOCSUBTYPESO_Quotation = "OB"; 208 public void setDocSubTypeSO (String DocSubTypeSO) 209 { 210 if (DocSubTypeSO.equals("RM") || DocSubTypeSO.equals("PR") || DocSubTypeSO.equals("WI") || DocSubTypeSO.equals("WR") || DocSubTypeSO.equals("WP") || DocSubTypeSO.equals("SO") || DocSubTypeSO.equals("ON") || DocSubTypeSO.equals("OB")); 211 else throw new IllegalArgumentException ("DocSubTypeSO Invalid value - Reference_ID=148 - RM - PR - WI - WR - WP - SO - ON - OB"); 212 setValue ("DocSubTypeSO", DocSubTypeSO); 213 } 214 public String getDocSubTypeSO() 215 { 216 return (String )getValue("DocSubTypeSO"); 217 } 218 public void setDocumentCopies (int DocumentCopies) 219 { 220 setValue ("DocumentCopies", new Integer (DocumentCopies)); 221 } 222 public int getDocumentCopies() 223 { 224 Integer ii = (Integer )getValue("DocumentCopies"); 225 if (ii == null) return 0; 226 return ii.intValue(); 227 } 228 public void setDocumentNote (String DocumentNote) 229 { 230 setValue ("DocumentNote", DocumentNote); 231 } 232 public String getDocumentNote() 233 { 234 return (String )getValue("DocumentNote"); 235 } 236 public void setGL_Category_ID (int GL_Category_ID) 237 { 238 setValue ("GL_Category_ID", new Integer (GL_Category_ID)); 239 } 240 public int getGL_Category_ID() 241 { 242 Integer ii = (Integer )getValue("GL_Category_ID"); 243 if (ii == null) return 0; 244 return ii.intValue(); 245 } 246 public void setHasCharges (boolean HasCharges) 247 { 248 setValue ("HasCharges", new Boolean (HasCharges)); 249 } 250 public boolean isHasCharges() 251 { 252 Boolean bb = (Boolean )getValue("HasCharges"); 253 if (bb != null) return bb.booleanValue(); 254 return false; 255 } 256 public void setHasProforma (boolean HasProforma) 257 { 258 setValue ("HasProforma", new Boolean (HasProforma)); 259 } 260 public boolean isHasProforma() 261 { 262 Boolean bb = (Boolean )getValue("HasProforma"); 263 if (bb != null) return bb.booleanValue(); 264 return false; 265 } 266 public void setIsApproved (boolean IsApproved) 267 { 268 setValue ("IsApproved", new Boolean (IsApproved)); 269 } 270 public boolean isApproved() 271 { 272 Boolean bb = (Boolean )getValue("IsApproved"); 273 if (bb != null) return bb.booleanValue(); 274 return false; 275 } 276 public void setIsBatchControlEnforced (boolean IsBatchControlEnforced) 277 { 278 setValue ("IsBatchControlEnforced", new Boolean (IsBatchControlEnforced)); 279 } 280 public boolean isBatchControlEnforced() 281 { 282 Boolean bb = (Boolean )getValue("IsBatchControlEnforced"); 283 if (bb != null) return bb.booleanValue(); 284 return false; 285 } 286 public void setIsBatchDocNoControlled (boolean IsBatchDocNoControlled) 287 { 288 setValue ("IsBatchDocNoControlled", new Boolean (IsBatchDocNoControlled)); 289 } 290 public boolean isBatchDocNoControlled() 291 { 292 Boolean bb = (Boolean )getValue("IsBatchDocNoControlled"); 293 if (bb != null) return bb.booleanValue(); 294 return false; 295 } 296 public void setIsBatched (boolean IsBatched) 297 { 298 setValue ("IsBatched", new Boolean (IsBatched)); 299 } 300 public boolean isBatched() 301 { 302 Boolean bb = (Boolean )getValue("IsBatched"); 303 if (bb != null) return bb.booleanValue(); 304 return false; 305 } 306 public void setIsDefault (boolean IsDefault) 307 { 308 setValue ("IsDefault", new Boolean (IsDefault)); 309 } 310 public boolean isDefault() 311 { 312 Boolean bb = (Boolean )getValue("IsDefault"); 313 if (bb != null) return bb.booleanValue(); 314 return false; 315 } 316 public void setIsDocNoControlled (boolean IsDocNoControlled) 317 { 318 setValue ("IsDocNoControlled", new Boolean (IsDocNoControlled)); 319 } 320 public boolean isDocNoControlled() 321 { 322 Boolean bb = (Boolean )getValue("IsDocNoControlled"); 323 if (bb != null) return bb.booleanValue(); 324 return false; 325 } 326 public void setIsPrinted (boolean IsPrinted) 327 { 328 setValue ("IsPrinted", new Boolean (IsPrinted)); 329 } 330 public boolean isPrinted() 331 { 332 Boolean bb = (Boolean )getValue("IsPrinted"); 333 if (bb != null) return bb.booleanValue(); 334 return false; 335 } 336 public void setIsSOTrx (boolean IsSOTrx) 337 { 338 setValue ("IsSOTrx", new Boolean (IsSOTrx)); 339 } 340 public boolean isSOTrx() 341 { 342 Boolean bb = (Boolean )getValue("IsSOTrx"); 343 if (bb != null) return bb.booleanValue(); 344 return false; 345 } 346 public void setIsTransferred (boolean IsTransferred) 347 { 348 setValue ("IsTransferred", new Boolean (IsTransferred)); 349 } 350 public boolean isTransferred() 351 { 352 Boolean bb = (Boolean )getValue("IsTransferred"); 353 if (bb != null) return bb.booleanValue(); 354 return false; 355 } 356 public void setName (String Name) 357 { 358 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 359 setValue ("Name", Name); 360 } 361 public String getName() 362 { 363 return (String )getValue("Name"); 364 } 365 public void setPrintName (String PrintName) 366 { 367 if (PrintName == null) throw new IllegalArgumentException ("PrintName is mandatory"); 368 setValue ("PrintName", PrintName); 369 } 370 public String getPrintName() 371 { 372 return (String )getValue("PrintName"); 373 } 374 } 375 | Popular Tags |