KickJava   Java API By Example, From Geeks To Geeks.

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


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 Smart 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.*;
17 import java.util.*;
18
19 import org.compiere.util.*;
20
21 /**
22  * Project Phase Task Model
23  *
24  * @author Jorg Janke
25  * @version $Id: MProjectTask.java,v 1.2 2003/08/11 05:55:37 jjanke Exp $
26  */

27 public class MProjectTask extends X_C_ProjectTask
28 {
29     public MProjectTask (Properties ctx, int C_ProjectTask_ID)
30     {
31         super (ctx, C_ProjectTask_ID);
32         if (C_ProjectTask_ID == 0)
33         {
34         // setC_ProjectTask_ID (0); // PK
35
// setC_ProjectPhase_ID (0); // Parent
36
// setC_Task_ID (0); // FK
37
setSeqNo (0);
38         // setName (null);
39
setQty (Env.ZERO);
40         }
41     } // MProjectTask
42

43     public MProjectTask (Properties ctx, ResultSet rs)
44     {
45         super (ctx, rs);
46     } // MProjectTask
47

48     public MProjectTask (Properties ctx, int C_ProjectPhase_ID, MProjectTypeTask task)
49     {
50         super (ctx, 0);
51         setC_ProjectPhase_ID (C_ProjectPhase_ID); // Parent
52
//
53
setC_Task_ID (task.getC_Task_ID()); // FK
54
setSeqNo (task.getSeqNo());
55         setName (task.getName());
56         setDescription(task.getDescription());
57         setHelp(task.getHelp());
58         if (task.getM_Product_ID() != 0)
59             setM_Product_ID(task.getM_Product_ID());
60         setQty(task.getStandardQty());
61     } // MProjectTask
62

63 } // MProjectTask
64
Popular Tags