KickJava   Java API By Example, From Geeks To Geeks.

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


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.util.*;
17 import java.sql.*;
18 import java.math.*;
19
20 import org.compiere.util.Env;
21
22 /**
23  * Physical Inventory Model
24  *
25  * @author Jorg Janke
26  * @version $Id: MInventory.java,v 1.2 2003/08/25 02:31:57 jjanke Exp $
27  */

28 public class MInventory extends X_M_Inventory
29 {
30     public MInventory (Properties ctx, int M_Inventory_ID)
31     {
32         super (ctx, M_Inventory_ID);
33         if (M_Inventory_ID == 0)
34         {
35         // setM_Inventory_ID (0); // PK
36
// setM_Warehouse_ID (0); // FK
37
setMovementDate (new Timestamp(System.currentTimeMillis()));
38         // setName (null);
39
setPosted (false);
40             setProcessed (false);
41         }
42     } // MInventory
43

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

49     /**
50      * Overwrite Client/Org if required
51      * @param AD_Client_ID client
52      * @param AD_Org_ID org
53      */

54     public void setClientOrg (int AD_Client_ID, int AD_Org_ID)
55     {
56         super.setClientOrg(AD_Client_ID, AD_Org_ID);
57     } // setClientOrg
58

59 } // MInventory
60
Popular Tags