KickJava   Java API By Example, From Geeks To Geeks.

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


1 /******************************************************************************
2  * The contents of this file are subject to the Compiere License Version 1.1
3  * ("License"); You may not use this file except in compliance with the License
4  * You may obtain a copy of the License at http://www.compiere.org/license.html
5  * Software distributed under the License is distributed on an "AS IS" basis,
6  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
7  * the specific language governing rights and limitations under the License.
8  * The Original Code is Compiere ERP & CRM Business Solution
9  * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
10  * Portions created by Jorg Janke are Copyright (C) 1999-2003 Jorg Janke, parts
11  * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
12  * Contributor(s): ______________________________________.
13  *****************************************************************************/

14 package org.compiere.model;
15
16 import java.sql.ResultSet JavaDoc;
17 import java.util.Properties JavaDoc;
18
19 /**
20  *
21  *
22  * @author Jorg Janke
23  * @version $Id: MPeriodControl.java,v 1.2 2003/10/31 05:28:34 jjanke Exp $
24  */

25 public class MPeriodControl extends X_C_PeriodControl
26 {
27     /**
28      * Standard Constructor
29      * @param ctx context
30      * @param C_PeriodControl_ID 0
31      */

32     public MPeriodControl(Properties JavaDoc ctx, int C_PeriodControl_ID)
33     {
34         super(ctx, C_PeriodControl_ID);
35         if (C_PeriodControl_ID == 0)
36         {
37         // setC_Period_ID (0);
38
// setDocBaseType (null);
39
setPeriodAction (PERIODACTION_LeNoActionGt);
40             setPeriodStatus(PERIODSTATUS_NeverOpened);
41         }
42     } // MPeriodControl
43

44     /**
45      * Load Constructor
46      * @param ctx context
47      * @param rs result set
48      */

49     public MPeriodControl(Properties JavaDoc ctx, ResultSet JavaDoc rs)
50     {
51         super(ctx, rs);
52     } // MPeriodControl
53

54     /**
55      * New Constructor
56      * @param ctx context
57      * @param C_Period_ID period
58      * @param DocBaseType doc base type
59      */

60     public MPeriodControl(Properties JavaDoc ctx, int C_Period_ID, String JavaDoc DocBaseType)
61     {
62         this (ctx, 0);
63         setAD_Org_ID(0);
64         setC_Period_ID (C_Period_ID);
65         setDocBaseType (DocBaseType);
66     } // MPeriodControl
67

68 } // MPeriodControl
69

70
Popular Tags