KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > model > X_C_DocType


1 /** Generated Model - DO NOT CHANGE - Copyright (C) 1999-2003 Jorg Janke **/
2 package org.compiere.model;
3 import java.util.*;
4 import java.sql.*;
5 import java.math.*;
6 import java.io.Serializable JavaDoc;
7 import org.compiere.util.*;
8 /** Generated Model for C_DocType
9  ** @version $Id: X_C_DocType.java,v 1.27 2003/10/31 05:30:54 jjanke Exp $ **/

10 public class X_C_DocType extends PO
11 {
12 /** Standard Constructor **/
13 public X_C_DocType (Properties ctx, int C_DocType_ID)
14 {
15 super (ctx, C_DocType_ID);
16 /** if (C_DocType_ID == 0)
17 {
18 setC_DocType_ID (0);
19 setDocBaseType (null);
20 setDocumentCopies (0);
21 setGL_Category_ID (0);
22 setHasCharges (false);
23 setIsApproved (false);
24 setIsBatchControlEnforced (false);
25 setIsBatchDocNoControlled (false);
26 setIsBatched (false);
27 setIsDefault (false);
28 setIsDocNoControlled (false);
29 setIsPrinted (false);
30 setIsSOTrx (false);
31 setIsTransferred (false);
32 setName (null);
33 setPrintName (null);
34 }
35  **/

36 }
37 /** Load Constructor **/
38 public X_C_DocType (Properties ctx, ResultSet rs)
39 {
40 super (ctx, rs);
41 }
42 /** Load Meta Data **/
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 JavaDoc toString()
50 {
51 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("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 JavaDoc(AD_PrintFormat_ID));
59 }
60 public int getAD_PrintFormat_ID()
61 {
62 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(BatchNoSequence_ID));
71 }
72 public int getBatchNoSequence_ID()
73 {
74 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(C_Approval_ID));
83 }
84 public int getC_Approval_ID()
85 {
86 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(C_DocTypeInvoice_ID));
95 }
96 public int getC_DocTypeInvoice_ID()
97 {
98 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(C_DocTypeProforma_ID));
107 }
108 public int getC_DocTypeProforma_ID()
109 {
110 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(C_DocTypeShipment_ID));
119 }
120 public int getC_DocTypeShipment_ID()
121 {
122 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(C_DocType_ID));
129 }
130 public int getC_DocType_ID()
131 {
132 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(CreatePicklist));
139 }
140 public boolean isCreatePicklist()
141 {
142 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("CreatePicklist");
143 if (bb != null) return bb.booleanValue();
144 return false;
145 }
146 public void setDescription (String JavaDoc Description)
147 {
148 setValue ("Description", Description);
149 }
150 public String JavaDoc getDescription()
151 {
152 return (String JavaDoc)getValue("Description");
153 }
154 public static final String JavaDoc DOCBASETYPE_APCreditMemo = "APC";
155 public static final String JavaDoc DOCBASETYPE_ARCreditMemo = "ARC";
156 public static final String JavaDoc DOCBASETYPE_BankStatement = "CMB";
157 public static final String JavaDoc DOCBASETYPE_CashJournal = "CMC";
158 public static final String JavaDoc DOCBASETYPE_PaymentAllocation = "CMA";
159 public static final String JavaDoc DOCBASETYPE_GLJournal = "GLJ";
160 public static final String JavaDoc DOCBASETYPE_GLDocument = "GLD";
161 public static final String JavaDoc DOCBASETYPE_APInvoice = "API";
162 public static final String JavaDoc DOCBASETYPE_APPayment = "APP";
163 public static final String JavaDoc DOCBASETYPE_ARInvoice = "ARI";
164 public static final String JavaDoc DOCBASETYPE_ARReceipt = "ARR";
165 public static final String JavaDoc DOCBASETYPE_SalesOrder = "SOO";
166 public static final String JavaDoc DOCBASETYPE_ARProFormaInvoice = "ARF";
167 public static final String JavaDoc DOCBASETYPE_MaterialDelivery = "MMS";
168 public static final String JavaDoc DOCBASETYPE_MaterialReceipt = "MMR";
169 public static final String JavaDoc DOCBASETYPE_MaterialMovement = "MMM";
170 public static final String JavaDoc DOCBASETYPE_PurchaseOrder = "POO";
171 public static final String JavaDoc DOCBASETYPE_PurchaseRequisition = "POR";
172 public static final String JavaDoc DOCBASETYPE_MaterialPhysicalInventory = "MMI";
173 public static final String JavaDoc DOCBASETYPE_MaterialProduction = "MMP";
174 public static final String JavaDoc DOCBASETYPE_MatchInvoice = "MXI";
175 public static final String JavaDoc DOCBASETYPE_MatchPO = "MXP";
176 public static final String JavaDoc DOCBASETYPE_ProjectIssue = "PJI";
177 public void setDocBaseType (String JavaDoc 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 JavaDoc ("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 JavaDoc ("DocBaseType is mandatory");
182 setValue ("DocBaseType", DocBaseType);
183 }
184 public String JavaDoc getDocBaseType()
185 {
186 return (String JavaDoc)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 JavaDoc(DocNoSequence_ID));
193 }
194 public int getDocNoSequence_ID()
195 {
196 Integer JavaDoc ii = (Integer JavaDoc)getValue("DocNoSequence_ID");
197 if (ii == null) return 0;
198 return ii.intValue();
199 }
200 public static final String JavaDoc DOCSUBTYPESO_ReturnMaterial = "RM";
201 public static final String JavaDoc DOCSUBTYPESO_PrepayOrder = "PR";
202 public static final String JavaDoc DOCSUBTYPESO_OnCreditOrder = "WI";
203 public static final String JavaDoc DOCSUBTYPESO_POSOrder = "WR";
204 public static final String JavaDoc DOCSUBTYPESO_WarehouseOrder = "WP";
205 public static final String JavaDoc DOCSUBTYPESO_StandardOrder = "SO";
206 public static final String JavaDoc DOCSUBTYPESO_Proposal = "ON";
207 public static final String JavaDoc DOCSUBTYPESO_Quotation = "OB";
208 public void setDocSubTypeSO (String JavaDoc 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 JavaDoc ("DocSubTypeSO Invalid value - Reference_ID=148 - RM - PR - WI - WR - WP - SO - ON - OB");
212 setValue ("DocSubTypeSO", DocSubTypeSO);
213 }
214 public String JavaDoc getDocSubTypeSO()
215 {
216 return (String JavaDoc)getValue("DocSubTypeSO");
217 }
218 public void setDocumentCopies (int DocumentCopies)
219 {
220 setValue ("DocumentCopies", new Integer JavaDoc(DocumentCopies));
221 }
222 public int getDocumentCopies()
223 {
224 Integer JavaDoc ii = (Integer JavaDoc)getValue("DocumentCopies");
225 if (ii == null) return 0;
226 return ii.intValue();
227 }
228 public void setDocumentNote (String JavaDoc DocumentNote)
229 {
230 setValue ("DocumentNote", DocumentNote);
231 }
232 public String JavaDoc getDocumentNote()
233 {
234 return (String JavaDoc)getValue("DocumentNote");
235 }
236 public void setGL_Category_ID (int GL_Category_ID)
237 {
238 setValue ("GL_Category_ID", new Integer JavaDoc(GL_Category_ID));
239 }
240 public int getGL_Category_ID()
241 {
242 Integer JavaDoc ii = (Integer JavaDoc)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 JavaDoc(HasCharges));
249 }
250 public boolean isHasCharges()
251 {
252 Boolean JavaDoc bb = (Boolean JavaDoc)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 JavaDoc(HasProforma));
259 }
260 public boolean isHasProforma()
261 {
262 Boolean JavaDoc bb = (Boolean JavaDoc)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 JavaDoc(IsApproved));
269 }
270 public boolean isApproved()
271 {
272 Boolean JavaDoc bb = (Boolean JavaDoc)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 JavaDoc(IsBatchControlEnforced));
279 }
280 public boolean isBatchControlEnforced()
281 {
282 Boolean JavaDoc bb = (Boolean JavaDoc)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 JavaDoc(IsBatchDocNoControlled));
289 }
290 public boolean isBatchDocNoControlled()
291 {
292 Boolean JavaDoc bb = (Boolean JavaDoc)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 JavaDoc(IsBatched));
299 }
300 public boolean isBatched()
301 {
302 Boolean JavaDoc bb = (Boolean JavaDoc)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 JavaDoc(IsDefault));
309 }
310 public boolean isDefault()
311 {
312 Boolean JavaDoc bb = (Boolean JavaDoc)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 JavaDoc(IsDocNoControlled));
319 }
320 public boolean isDocNoControlled()
321 {
322 Boolean JavaDoc bb = (Boolean JavaDoc)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 JavaDoc(IsPrinted));
329 }
330 public boolean isPrinted()
331 {
332 Boolean JavaDoc bb = (Boolean JavaDoc)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 JavaDoc(IsSOTrx));
339 }
340 public boolean isSOTrx()
341 {
342 Boolean JavaDoc bb = (Boolean JavaDoc)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 JavaDoc(IsTransferred));
349 }
350 public boolean isTransferred()
351 {
352 Boolean JavaDoc bb = (Boolean JavaDoc)getValue("IsTransferred");
353 if (bb != null) return bb.booleanValue();
354 return false;
355 }
356 public void setName (String JavaDoc Name)
357 {
358 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
359 setValue ("Name", Name);
360 }
361 public String JavaDoc getName()
362 {
363 return (String JavaDoc)getValue("Name");
364 }
365 public void setPrintName (String JavaDoc PrintName)
366 {
367 if (PrintName == null) throw new IllegalArgumentException JavaDoc ("PrintName is mandatory");
368 setValue ("PrintName", PrintName);
369 }
370 public String JavaDoc getPrintName()
371 {
372 return (String JavaDoc)getValue("PrintName");
373 }
374 }
375
Popular Tags