/****************************************************************************** * Product: iDempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. * * This program is free software, you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * * by the Free Software Foundation. This program is distributed in the hope * * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * * with this program, if not, write to the Free Software Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * For the text or an alternative of this public license, you may reach us * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * * or via info@compiere.org or http://www.compiere.org/license.html * *****************************************************************************/ /** Generated Model - DO NOT CHANGE */ package org.eevolution.model; import java.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; import org.compiere.model.*; import org.compiere.util.Env; /** Generated Model for I_Movement * @author iDempiere (generated) * @version Release 12 - $Id$ */ @org.adempiere.base.Model(table="I_Movement") public class X_I_Movement extends PO implements I_I_Movement, I_Persistent { /** * */ private static final long serialVersionUID = 20241222L; /** Standard Constructor */ public X_I_Movement (Properties ctx, int I_Movement_ID, String trxName) { super (ctx, I_Movement_ID, trxName); /** if (I_Movement_ID == 0) { setI_IsImported (false); // N setI_Movement_ID (0); setProcessed (false); // N setProcessing (false); } */ } /** Standard Constructor */ public X_I_Movement (Properties ctx, int I_Movement_ID, String trxName, String ... virtualColumns) { super (ctx, I_Movement_ID, trxName, virtualColumns); /** if (I_Movement_ID == 0) { setI_IsImported (false); // N setI_Movement_ID (0); setProcessed (false); // N setProcessing (false); } */ } /** Standard Constructor */ public X_I_Movement (Properties ctx, String I_Movement_UU, String trxName) { super (ctx, I_Movement_UU, trxName); /** if (I_Movement_UU == null) { setI_IsImported (false); // N setI_Movement_ID (0); setProcessed (false); // N setProcessing (false); } */ } /** Standard Constructor */ public X_I_Movement (Properties ctx, String I_Movement_UU, String trxName, String ... virtualColumns) { super (ctx, I_Movement_UU, trxName, virtualColumns); /** if (I_Movement_UU == null) { setI_IsImported (false); // N setI_Movement_ID (0); setProcessed (false); // N setProcessing (false); } */ } /** Load Constructor */ public X_I_Movement (Properties ctx, ResultSet rs, String trxName) { super (ctx, rs, trxName); } /** AccessLevel * @return 3 - Client - Org */ protected int get_AccessLevel() { return accessLevel.intValue(); } /** Load Meta Data */ protected POInfo initPO (Properties ctx) { POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName()); return poi; } public String toString() { StringBuilder sb = new StringBuilder ("X_I_Movement[") .append(get_ID()).append("]"); return sb.toString(); } /** Set Trx Organization. @param AD_OrgTrx_ID Performing or initiating organization */ public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) { if (AD_OrgTrx_ID < 1) set_Value (COLUMNNAME_AD_OrgTrx_ID, null); else set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); } /** Get Trx Organization. @return Performing or initiating organization */ public int getAD_OrgTrx_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_AD_User getAD_User() throws RuntimeException { return (org.compiere.model.I_AD_User)MTable.get(getCtx(), org.compiere.model.I_AD_User.Table_ID) .getPO(getAD_User_ID(), get_TrxName()); } /** Set User/Contact. @param AD_User_ID User within the system - Internal or Business Partner Contact */ public void setAD_User_ID (int AD_User_ID) { if (AD_User_ID < 1) set_Value (COLUMNNAME_AD_User_ID, null); else set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID)); } /** Get User/Contact. @return User within the system - Internal or Business Partner Contact */ public int getAD_User_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Business Partner Key. @param BPartnerValue Key of the Business Partner */ public void setBPartnerValue (String BPartnerValue) { set_Value (COLUMNNAME_BPartnerValue, BPartnerValue); } /** Get Business Partner Key. @return Key of the Business Partner */ public String getBPartnerValue() { return (String)get_Value(COLUMNNAME_BPartnerValue); } public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException { return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_ID) .getPO(getC_BPartner_ID(), get_TrxName()); } /** Set Business Partner. @param C_BPartner_ID Identifies a Business Partner */ public void setC_BPartner_ID (int C_BPartner_ID) { if (C_BPartner_ID < 1) set_Value (COLUMNNAME_C_BPartner_ID, null); else set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID)); } /** Get Business Partner. @return Identifies a Business Partner */ public int getC_BPartner_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_Campaign getC_Campaign() throws RuntimeException { return (org.compiere.model.I_C_Campaign)MTable.get(getCtx(), org.compiere.model.I_C_Campaign.Table_ID) .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID Marketing Campaign */ public void setC_Campaign_ID (int C_Campaign_ID) { if (C_Campaign_ID < 1) set_Value (COLUMNNAME_C_Campaign_ID, null); else set_Value (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); } /** Get Campaign. @return Marketing Campaign */ public int getC_Campaign_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException { return (org.compiere.model.I_C_DocType)MTable.get(getCtx(), org.compiere.model.I_C_DocType.Table_ID) .getPO(getC_DocType_ID(), get_TrxName()); } /** Set Document Type. @param C_DocType_ID Document type or rules */ public void setC_DocType_ID (int C_DocType_ID) { if (C_DocType_ID < 0) set_Value (COLUMNNAME_C_DocType_ID, null); else set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); } /** Get Document Type. @return Document type or rules */ public int getC_DocType_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_Project getC_Project() throws RuntimeException { return (org.compiere.model.I_C_Project)MTable.get(getCtx(), org.compiere.model.I_C_Project.Table_ID) .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID Financial Project */ public void setC_Project_ID (int C_Project_ID) { if (C_Project_ID < 1) set_Value (COLUMNNAME_C_Project_ID, null); else set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); } /** Get Project. @return Financial Project */ public int getC_Project_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Campaign Key. @param CampaignValue Text key of the Campaign */ public void setCampaignValue (String CampaignValue) { set_Value (COLUMNNAME_CampaignValue, CampaignValue); } /** Get Campaign Key. @return Text key of the Campaign */ public String getCampaignValue() { return (String)get_Value(COLUMNNAME_CampaignValue); } /** Set Delivery Rule. @param DeliveryRule Defines the timing of Delivery */ public void setDeliveryRule (String DeliveryRule) { set_Value (COLUMNNAME_DeliveryRule, DeliveryRule); } /** Get Delivery Rule. @return Defines the timing of Delivery */ public String getDeliveryRule() { return (String)get_Value(COLUMNNAME_DeliveryRule); } /** Set Delivery Via. @param DeliveryViaRule How the order will be delivered */ public void setDeliveryViaRule (String DeliveryViaRule) { set_Value (COLUMNNAME_DeliveryViaRule, DeliveryViaRule); } /** Get Delivery Via. @return How the order will be delivered */ public String getDeliveryViaRule() { return (String)get_Value(COLUMNNAME_DeliveryViaRule); } /** Set Document Type Name. @param DocTypeName Name of the Document Type */ public void setDocTypeName (String DocTypeName) { set_Value (COLUMNNAME_DocTypeName, DocTypeName); } /** Get Document Type Name. @return Name of the Document Type */ public String getDocTypeName() { return (String)get_Value(COLUMNNAME_DocTypeName); } /** Set Document No. @param DocumentNo Document sequence number of the document */ public void setDocumentNo (String DocumentNo) { set_Value (COLUMNNAME_DocumentNo, DocumentNo); } /** Get Document No. @return Document sequence number of the document */ public String getDocumentNo() { return (String)get_Value(COLUMNNAME_DocumentNo); } /** Set Freight Cost Rule. @param FreightCostRule Method for charging Freight */ public void setFreightCostRule (String FreightCostRule) { set_Value (COLUMNNAME_FreightCostRule, FreightCostRule); } /** Get Freight Cost Rule. @return Method for charging Freight */ public String getFreightCostRule() { return (String)get_Value(COLUMNNAME_FreightCostRule); } /** Set Import Error Message. @param I_ErrorMsg Messages generated from import process */ public void setI_ErrorMsg (String I_ErrorMsg) { set_Value (COLUMNNAME_I_ErrorMsg, I_ErrorMsg); } /** Get Import Error Message. @return Messages generated from import process */ public String getI_ErrorMsg() { return (String)get_Value(COLUMNNAME_I_ErrorMsg); } /** Set Imported. @param I_IsImported Has this import been processed */ public void setI_IsImported (boolean I_IsImported) { set_Value (COLUMNNAME_I_IsImported, Boolean.valueOf(I_IsImported)); } /** Get Imported. @return Has this import been processed */ public boolean isI_IsImported() { Object oo = get_Value(COLUMNNAME_I_IsImported); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set I_Movement_ID. @param I_Movement_ID I_Movement_ID */ public void setI_Movement_ID (int I_Movement_ID) { if (I_Movement_ID < 1) set_ValueNoCheck (COLUMNNAME_I_Movement_ID, null); else set_ValueNoCheck (COLUMNNAME_I_Movement_ID, Integer.valueOf(I_Movement_ID)); } /** Get I_Movement_ID. @return I_Movement_ID */ public int getI_Movement_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_I_Movement_ID); if (ii == null) return 0; return ii.intValue(); } /** Set I_Movement_UU. @param I_Movement_UU I_Movement_UU */ public void setI_Movement_UU (String I_Movement_UU) { set_Value (COLUMNNAME_I_Movement_UU, I_Movement_UU); } /** Get I_Movement_UU. @return I_Movement_UU */ public String getI_Movement_UU() { return (String)get_Value(COLUMNNAME_I_Movement_UU); } /** Set Locator To Key. @param LocatorToValue Locator To Key */ public void setLocatorToValue (String LocatorToValue) { set_Value (COLUMNNAME_LocatorToValue, LocatorToValue); } /** Get Locator To Key. @return Locator To Key */ public String getLocatorToValue() { return (String)get_Value(COLUMNNAME_LocatorToValue); } /** Set Locator Key. @param LocatorValue Key of the Warehouse Locator */ public void setLocatorValue (String LocatorValue) { set_Value (COLUMNNAME_LocatorValue, LocatorValue); } /** Get Locator Key. @return Key of the Warehouse Locator */ public String getLocatorValue() { return (String)get_Value(COLUMNNAME_LocatorValue); } public I_M_Locator getM_LocatorTo() throws RuntimeException { return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_ID) .getPO(getM_LocatorTo_ID(), get_TrxName()); } /** Set Locator To. @param M_LocatorTo_ID Location inventory is moved to */ public void setM_LocatorTo_ID (int M_LocatorTo_ID) { if (M_LocatorTo_ID < 1) set_Value (COLUMNNAME_M_LocatorTo_ID, null); else set_Value (COLUMNNAME_M_LocatorTo_ID, Integer.valueOf(M_LocatorTo_ID)); } /** Get Locator To. @return Location inventory is moved to */ public int getM_LocatorTo_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_M_LocatorTo_ID); if (ii == null) return 0; return ii.intValue(); } public I_M_Locator getM_Locator() throws RuntimeException { return (I_M_Locator)MTable.get(getCtx(), I_M_Locator.Table_ID) .getPO(getM_Locator_ID(), get_TrxName()); } /** Set Locator. @param M_Locator_ID Warehouse Locator */ public void setM_Locator_ID (int M_Locator_ID) { if (M_Locator_ID < 1) set_Value (COLUMNNAME_M_Locator_ID, null); else set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); } /** Get Locator. @return Warehouse Locator */ public int getM_Locator_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_M_MovementLine getM_MovementLine() throws RuntimeException { return (org.compiere.model.I_M_MovementLine)MTable.get(getCtx(), org.compiere.model.I_M_MovementLine.Table_ID) .getPO(getM_MovementLine_ID(), get_TrxName()); } /** Set Move Line. @param M_MovementLine_ID Inventory Move document Line */ public void setM_MovementLine_ID (int M_MovementLine_ID) { if (M_MovementLine_ID < 1) set_Value (COLUMNNAME_M_MovementLine_ID, null); else set_Value (COLUMNNAME_M_MovementLine_ID, Integer.valueOf(M_MovementLine_ID)); } /** Get Move Line. @return Inventory Move document Line */ public int getM_MovementLine_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_M_MovementLine_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_M_Movement getM_Movement() throws RuntimeException { return (org.compiere.model.I_M_Movement)MTable.get(getCtx(), org.compiere.model.I_M_Movement.Table_ID) .getPO(getM_Movement_ID(), get_TrxName()); } /** Set Inventory Move. @param M_Movement_ID Movement of Inventory */ public void setM_Movement_ID (int M_Movement_ID) { if (M_Movement_ID < 1) set_Value (COLUMNNAME_M_Movement_ID, null); else set_Value (COLUMNNAME_M_Movement_ID, Integer.valueOf(M_Movement_ID)); } /** Get Inventory Move. @return Movement of Inventory */ public int getM_Movement_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_M_Movement_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_M_Product getM_Product() throws RuntimeException { return (org.compiere.model.I_M_Product)MTable.get(getCtx(), org.compiere.model.I_M_Product.Table_ID) .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID Product, Service, Item */ public void setM_Product_ID (int M_Product_ID) { if (M_Product_ID < 1) set_Value (COLUMNNAME_M_Product_ID, null); else set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); } /** Get Product. @return Product, Service, Item */ public int getM_Product_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_M_Shipper getM_Shipper() throws RuntimeException { return (org.compiere.model.I_M_Shipper)MTable.get(getCtx(), org.compiere.model.I_M_Shipper.Table_ID) .getPO(getM_Shipper_ID(), get_TrxName()); } /** Set Shipper. @param M_Shipper_ID Method or manner of product delivery */ public void setM_Shipper_ID (int M_Shipper_ID) { if (M_Shipper_ID < 1) set_Value (COLUMNNAME_M_Shipper_ID, null); else set_Value (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); } /** Get Shipper. @return Method or manner of product delivery */ public int getM_Shipper_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_M_Shipper_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Movement Date. @param MovementDate Date a product was moved in or out of inventory */ public void setMovementDate (Timestamp MovementDate) { set_Value (COLUMNNAME_MovementDate, MovementDate); } /** Get Movement Date. @return Date a product was moved in or out of inventory */ public Timestamp getMovementDate() { return (Timestamp)get_Value(COLUMNNAME_MovementDate); } /** Set Movement Quantity. @param MovementQty Quantity of a product moved. */ public void setMovementQty (BigDecimal MovementQty) { set_Value (COLUMNNAME_MovementQty, MovementQty); } /** Get Movement Quantity. @return Quantity of a product moved. */ public BigDecimal getMovementQty() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MovementQty); if (bd == null) return Env.ZERO; return bd; } /** Set Trx Org Key. @param OrgTrxValue Key of the Transaction Organization */ public void setOrgTrxValue (String OrgTrxValue) { set_Value (COLUMNNAME_OrgTrxValue, OrgTrxValue); } /** Get Trx Org Key. @return Key of the Transaction Organization */ public String getOrgTrxValue() { return (String)get_Value(COLUMNNAME_OrgTrxValue); } /** Set Org Key. @param OrgValue Key of the Organization */ public void setOrgValue (String OrgValue) { set_Value (COLUMNNAME_OrgValue, OrgValue); } /** Get Org Key. @return Key of the Organization */ public String getOrgValue() { return (String)get_Value(COLUMNNAME_OrgValue); } /** Set Priority. @param PriorityRule Priority of a document */ public void setPriorityRule (String PriorityRule) { set_Value (COLUMNNAME_PriorityRule, PriorityRule); } /** Get Priority. @return Priority of a document */ public String getPriorityRule() { return (String)get_Value(COLUMNNAME_PriorityRule); } /** Set Processed. @param Processed The document has been processed */ public void setProcessed (boolean Processed) { set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); } /** Get Processed. @return The document has been processed */ public boolean isProcessed() { Object oo = get_Value(COLUMNNAME_Processed); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Process Now. @param Processing Process Now */ public void setProcessing (boolean Processing) { set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); } /** Get Process Now. @return Process Now */ public boolean isProcessing() { Object oo = get_Value(COLUMNNAME_Processing); if (oo != null) { if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set Product Key. @param ProductValue Key of the Product */ public void setProductValue (String ProductValue) { set_Value (COLUMNNAME_ProductValue, ProductValue); } /** Get Product Key. @return Key of the Product */ public String getProductValue() { return (String)get_Value(COLUMNNAME_ProductValue); } /** Set Project Key. @param ProjectValue Key of the Project */ public void setProjectValue (String ProjectValue) { set_Value (COLUMNNAME_ProjectValue, ProjectValue); } /** Get Project Key. @return Key of the Project */ public String getProjectValue() { return (String)get_Value(COLUMNNAME_ProjectValue); } /** Set Shipper Name. @param ShipperName Shipper Name */ public void setShipperName (String ShipperName) { set_Value (COLUMNNAME_ShipperName, ShipperName); } /** Get Shipper Name. @return Shipper Name */ public String getShipperName() { return (String)get_Value(COLUMNNAME_ShipperName); } /** Set User Element List 1. @param User1_ID User defined list element #1 */ public void setUser1_ID (String User1_ID) { set_Value (COLUMNNAME_User1_ID, User1_ID); } /** Get User Element List 1. @return User defined list element #1 */ public String getUser1_ID() { return (String)get_Value(COLUMNNAME_User1_ID); } /** Set User Element List 2. @param User2_ID User defined list element #2 */ public void setUser2_ID (String User2_ID) { set_Value (COLUMNNAME_User2_ID, User2_ID); } /** Get User Element List 2. @return User defined list element #2 */ public String getUser2_ID() { return (String)get_Value(COLUMNNAME_User2_ID); } }