IDEMPIERE-1265 Add Adaxa Sales Management. Integrate sales management extension from Adaxa Australia ( Base on patch From Carlos Ruiz and Richard Morales Herrera ).
This commit is contained in:
parent
1e29c6bd6d
commit
919976d5ab
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,57 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||||
|
* Copyright (C) 1999-2006 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 *
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
package org.compiere.model;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Properties;
|
||||||
|
|
||||||
|
import org.compiere.util.DB;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* Sales Opportunity callout
|
||||||
|
* @author Paul Bowden, Adaxa Pty Ltd
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class CalloutOpportunity extends CalloutEngine {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update probability based on sales stage
|
||||||
|
* @param ctx
|
||||||
|
* @param WindowNo
|
||||||
|
* @param mTab
|
||||||
|
* @param mField
|
||||||
|
* @param value
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public String salesStage (Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
|
||||||
|
{
|
||||||
|
if (isCalloutActive() || value == null)
|
||||||
|
return "";
|
||||||
|
|
||||||
|
int C_SalesStage_ID = (Integer) value;
|
||||||
|
|
||||||
|
String sql = "SELECT Probability FROM C_SalesStage WHERE C_SalesStage_ID = ?";
|
||||||
|
BigDecimal probability = DB.getSQLValueBD(null, sql, C_SalesStage_ID);
|
||||||
|
if ( probability != null )
|
||||||
|
mTab.setValue("Probability", probability);
|
||||||
|
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,198 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||||
|
* Copyright (C) 1999-2006 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 *
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
package org.compiere.process;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.sql.Timestamp;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
import org.adempiere.exceptions.FillMandatoryException;
|
||||||
|
import org.compiere.model.MBPartner;
|
||||||
|
import org.compiere.model.MBPartnerLocation;
|
||||||
|
import org.compiere.model.MLocation;
|
||||||
|
import org.compiere.model.MOpportunity;
|
||||||
|
import org.compiere.model.MUser;
|
||||||
|
import org.compiere.model.PO;
|
||||||
|
import org.compiere.util.AdempiereUserError;
|
||||||
|
import org.compiere.util.DB;
|
||||||
|
import org.compiere.util.Env;
|
||||||
|
import org.compiere.util.Util;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* Convert lead into business partner and opportunity
|
||||||
|
* @author Paul Bowden, Adaxa Pty Ltd
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class ConvertLead extends SvrProcess {
|
||||||
|
|
||||||
|
private boolean p_createOpportunity = true;
|
||||||
|
private BigDecimal p_opportunityAmt = null;
|
||||||
|
private int p_AD_User_ID = 0;
|
||||||
|
private Timestamp p_expectedCloseDate = null;
|
||||||
|
private int p_C_SalesStage_ID = 0;
|
||||||
|
private String p_Description = null;
|
||||||
|
private int p_C_Currency_ID = 0;
|
||||||
|
private int p_SalesRep_ID = 0;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected String doIt() throws Exception {
|
||||||
|
if (p_AD_User_ID <= 0)
|
||||||
|
throw new FillMandatoryException("AD_User_ID");
|
||||||
|
|
||||||
|
MUser lead = MUser.get(getCtx(), p_AD_User_ID);
|
||||||
|
lead.set_TrxName(get_TrxName());
|
||||||
|
if (!lead.isSalesLead() && lead.getC_BPartner_ID() != 0)
|
||||||
|
throw new AdempiereUserError("Lead already converted");
|
||||||
|
|
||||||
|
MBPartner bp = MBPartner.getTemplate(getCtx(), Env.getAD_Client_ID(getCtx()));
|
||||||
|
bp.set_TrxName(get_TrxName());
|
||||||
|
if ( !Util.isEmpty(lead.getBPName()) )
|
||||||
|
bp.setName(lead.getBPName());
|
||||||
|
else
|
||||||
|
bp.setName(lead.getName());
|
||||||
|
|
||||||
|
bp.saveEx();
|
||||||
|
addLog("Business Partner created.");
|
||||||
|
|
||||||
|
lead.setC_BPartner_ID(bp.getC_BPartner_ID());
|
||||||
|
|
||||||
|
if (lead.getC_Location_ID() != 0)
|
||||||
|
{
|
||||||
|
MLocation leadAddress = (MLocation) lead.getC_Location();
|
||||||
|
MBPartnerLocation loc = new MBPartnerLocation(bp);
|
||||||
|
MLocation address = new MLocation(getCtx(), 0, get_TrxName());
|
||||||
|
PO.copyValues(leadAddress, address);
|
||||||
|
address.saveEx();
|
||||||
|
|
||||||
|
loc.setC_Location_ID(address.getC_Location_ID());
|
||||||
|
loc.setPhone(lead.getPhone());
|
||||||
|
loc.setPhone2(lead.getPhone2());
|
||||||
|
loc.setFax(lead.getFax());
|
||||||
|
loc.saveEx();
|
||||||
|
|
||||||
|
lead.setC_BPartner_Location_ID(loc.getC_BPartner_Location_ID());
|
||||||
|
|
||||||
|
addLog("Contact Location added.");
|
||||||
|
}
|
||||||
|
|
||||||
|
// company address
|
||||||
|
if (lead.getBP_Location_ID() != 0)
|
||||||
|
{
|
||||||
|
MLocation leadAddress = (MLocation) lead.getBP_Location();
|
||||||
|
MBPartnerLocation loc = new MBPartnerLocation(bp);
|
||||||
|
MLocation address = new MLocation(getCtx(), 0, get_TrxName());
|
||||||
|
PO.copyValues(leadAddress, address);
|
||||||
|
address.saveEx();
|
||||||
|
|
||||||
|
loc.setC_Location_ID(address.getC_Location_ID());
|
||||||
|
loc.saveEx();
|
||||||
|
|
||||||
|
addLog("BP Address added.");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (p_createOpportunity )
|
||||||
|
{
|
||||||
|
MOpportunity op = new MOpportunity(getCtx(), 0, get_TrxName());
|
||||||
|
op.setAD_User_ID(lead.getAD_User_ID());
|
||||||
|
op.setC_BPartner_ID(bp.getC_BPartner_ID());
|
||||||
|
op.setExpectedCloseDate(p_expectedCloseDate != null ? p_expectedCloseDate : new Timestamp(System.currentTimeMillis()));
|
||||||
|
op.setOpportunityAmt(p_opportunityAmt != null ? p_opportunityAmt : Env.ZERO);
|
||||||
|
|
||||||
|
if ( p_C_SalesStage_ID > 0 )
|
||||||
|
op.setC_SalesStage_ID(p_C_SalesStage_ID);
|
||||||
|
|
||||||
|
String sql = "SELECT Probability FROM C_SalesStage WHERE C_SalesStage_ID = ?";
|
||||||
|
BigDecimal probability = DB.getSQLValueBD(get_TrxName(), sql, p_C_SalesStage_ID);
|
||||||
|
op.setProbability(probability != null ? probability : Env.ZERO);
|
||||||
|
|
||||||
|
op.setDescription(p_Description);
|
||||||
|
|
||||||
|
if ( p_C_Currency_ID > 0 )
|
||||||
|
op.setC_Currency_ID(p_C_Currency_ID);
|
||||||
|
else
|
||||||
|
op.setC_Currency_ID(Env.getContextAsInt(getCtx(), "$C_Currency_ID"));
|
||||||
|
|
||||||
|
if (p_SalesRep_ID > 0 )
|
||||||
|
op.setSalesRep_ID(p_SalesRep_ID);
|
||||||
|
else if ( lead.getSalesRep_ID() > 0 )
|
||||||
|
op.setSalesRep_ID(lead.getSalesRep_ID());
|
||||||
|
else
|
||||||
|
op.setSalesRep_ID(Env.getContextAsInt(getCtx(), "#SalesRep_ID"));
|
||||||
|
|
||||||
|
op.setC_Campaign_ID(lead.getC_Campaign_ID());
|
||||||
|
|
||||||
|
op.saveEx();
|
||||||
|
|
||||||
|
addLog("Opportunity created.");
|
||||||
|
}
|
||||||
|
|
||||||
|
lead.setIsSalesLead(false);
|
||||||
|
lead.setLeadStatus(MUser.LEADSTATUS_Converted);
|
||||||
|
lead.saveEx();
|
||||||
|
|
||||||
|
addLog("Lead converted.");
|
||||||
|
|
||||||
|
return "@OK@";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void prepare() {
|
||||||
|
|
||||||
|
ProcessInfoParameter[] paras = getParameter();
|
||||||
|
for (ProcessInfoParameter para : paras)
|
||||||
|
{
|
||||||
|
String name = para.getParameterName();
|
||||||
|
if ( Util.isEmpty(name) )
|
||||||
|
;
|
||||||
|
else if ("AD_User_ID".equals(name))
|
||||||
|
p_AD_User_ID = para.getParameterAsInt();
|
||||||
|
else if ( "CreateOpportunity".equals(name))
|
||||||
|
p_createOpportunity = para.getParameterAsBoolean();
|
||||||
|
else if ( "OpportunityAmt".equals(name))
|
||||||
|
p_opportunityAmt = para.getParameterAsBigDecimal();
|
||||||
|
else if ("ExpectedCloseDate".equals(name))
|
||||||
|
p_expectedCloseDate = para.getParameterAsTimestamp();
|
||||||
|
else if ("C_SalesStage_ID".equals(name))
|
||||||
|
p_C_SalesStage_ID = para.getParameterAsInt();
|
||||||
|
else if ("SalesRep_ID".equals(name))
|
||||||
|
p_SalesRep_ID = para.getParameterAsInt();
|
||||||
|
else if ("Description".equals(name))
|
||||||
|
p_Description = para.getParameterAsString();
|
||||||
|
else if ("C_Currency_ID".equals(name))
|
||||||
|
p_C_Currency_ID = para.getParameterAsInt();
|
||||||
|
else
|
||||||
|
{
|
||||||
|
log.log(Level.WARNING, "Unknown parameter: " + name);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( MUser.Table_ID == getTable_ID() )
|
||||||
|
p_AD_User_ID = getRecord_ID();
|
||||||
|
|
||||||
|
if (p_C_SalesStage_ID == 0)
|
||||||
|
{
|
||||||
|
String sql = "SELECT MIN(s.C_SalesStage_ID) FROM C_SalesStage s WHERE s.AD_Client_ID = ? AND s.IsActive = 'Y' " +
|
||||||
|
"AND NOT EXISTS (SELECT * FROM C_SalesStage ss WHERE ss.AD_Client_ID=s.AD_Client_ID AND ss.IsActive='Y' AND ss.Value < s.Value)";
|
||||||
|
p_C_SalesStage_ID = DB.getSQLValue(get_TrxName(), sql, getAD_Client_ID());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -41,6 +41,17 @@ public interface I_AD_Column
|
||||||
|
|
||||||
/** Load Meta Data */
|
/** Load Meta Data */
|
||||||
|
|
||||||
|
/** Column name AD_Chart_ID */
|
||||||
|
public static final String COLUMNNAME_AD_Chart_ID = "AD_Chart_ID";
|
||||||
|
|
||||||
|
/** Set Chart */
|
||||||
|
public void setAD_Chart_ID (int AD_Chart_ID);
|
||||||
|
|
||||||
|
/** Get Chart */
|
||||||
|
public int getAD_Chart_ID();
|
||||||
|
|
||||||
|
public org.compiere.model.I_AD_Chart getAD_Chart() throws RuntimeException;
|
||||||
|
|
||||||
/** Column name AD_Client_ID */
|
/** Column name AD_Client_ID */
|
||||||
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||||
|
|
||||||
|
|
|
@ -361,6 +361,15 @@ public interface I_AD_Field
|
||||||
*/
|
*/
|
||||||
public boolean isCentrallyMaintained();
|
public boolean isCentrallyMaintained();
|
||||||
|
|
||||||
|
/** Column name IsDefaultFocus */
|
||||||
|
public static final String COLUMNNAME_IsDefaultFocus = "IsDefaultFocus";
|
||||||
|
|
||||||
|
/** Set Default Focus */
|
||||||
|
public void setIsDefaultFocus (boolean IsDefaultFocus);
|
||||||
|
|
||||||
|
/** Get Default Focus */
|
||||||
|
public boolean isDefaultFocus();
|
||||||
|
|
||||||
/** Column name IsDisplayed */
|
/** Column name IsDisplayed */
|
||||||
public static final String COLUMNNAME_IsDisplayed = "IsDisplayed";
|
public static final String COLUMNNAME_IsDisplayed = "IsDisplayed";
|
||||||
|
|
||||||
|
|
|
@ -119,6 +119,30 @@ public interface I_AD_User
|
||||||
*/
|
*/
|
||||||
public Timestamp getBirthday();
|
public Timestamp getBirthday();
|
||||||
|
|
||||||
|
/** Column name BP_Location_ID */
|
||||||
|
public static final String COLUMNNAME_BP_Location_ID = "BP_Location_ID";
|
||||||
|
|
||||||
|
/** Set BP Address.
|
||||||
|
* Address of the Business Partner
|
||||||
|
*/
|
||||||
|
public void setBP_Location_ID (int BP_Location_ID);
|
||||||
|
|
||||||
|
/** Get BP Address.
|
||||||
|
* Address of the Business Partner
|
||||||
|
*/
|
||||||
|
public int getBP_Location_ID();
|
||||||
|
|
||||||
|
public I_C_Location getBP_Location() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name BPName */
|
||||||
|
public static final String COLUMNNAME_BPName = "BPName";
|
||||||
|
|
||||||
|
/** Set BP Name */
|
||||||
|
public void setBPName (String BPName);
|
||||||
|
|
||||||
|
/** Get BP Name */
|
||||||
|
public String getBPName();
|
||||||
|
|
||||||
/** Column name C_BPartner_ID */
|
/** Column name C_BPartner_ID */
|
||||||
public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID";
|
public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID";
|
||||||
|
|
||||||
|
@ -149,6 +173,21 @@ public interface I_AD_User
|
||||||
|
|
||||||
public org.compiere.model.I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException;
|
public org.compiere.model.I_C_BPartner_Location getC_BPartner_Location() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name C_Campaign_ID */
|
||||||
|
public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID";
|
||||||
|
|
||||||
|
/** Set Campaign.
|
||||||
|
* Marketing Campaign
|
||||||
|
*/
|
||||||
|
public void setC_Campaign_ID (int C_Campaign_ID);
|
||||||
|
|
||||||
|
/** Get Campaign.
|
||||||
|
* Marketing Campaign
|
||||||
|
*/
|
||||||
|
public int getC_Campaign_ID();
|
||||||
|
|
||||||
|
public org.compiere.model.I_C_Campaign getC_Campaign() throws RuntimeException;
|
||||||
|
|
||||||
/** Column name C_Greeting_ID */
|
/** Column name C_Greeting_ID */
|
||||||
public static final String COLUMNNAME_C_Greeting_ID = "C_Greeting_ID";
|
public static final String COLUMNNAME_C_Greeting_ID = "C_Greeting_ID";
|
||||||
|
|
||||||
|
@ -179,6 +218,21 @@ public interface I_AD_User
|
||||||
|
|
||||||
public org.compiere.model.I_C_Job getC_Job() throws RuntimeException;
|
public org.compiere.model.I_C_Job getC_Job() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name C_Location_ID */
|
||||||
|
public static final String COLUMNNAME_C_Location_ID = "C_Location_ID";
|
||||||
|
|
||||||
|
/** Set Address.
|
||||||
|
* Location or Address
|
||||||
|
*/
|
||||||
|
public void setC_Location_ID (int C_Location_ID);
|
||||||
|
|
||||||
|
/** Get Address.
|
||||||
|
* Location or Address
|
||||||
|
*/
|
||||||
|
public int getC_Location_ID();
|
||||||
|
|
||||||
|
public I_C_Location getC_Location() throws RuntimeException;
|
||||||
|
|
||||||
/** Column name Comments */
|
/** Column name Comments */
|
||||||
public static final String COLUMNNAME_Comments = "Comments";
|
public static final String COLUMNNAME_Comments = "Comments";
|
||||||
|
|
||||||
|
@ -414,6 +468,19 @@ public interface I_AD_User
|
||||||
/** Get No Password Reset */
|
/** Get No Password Reset */
|
||||||
public boolean isNoPasswordReset();
|
public boolean isNoPasswordReset();
|
||||||
|
|
||||||
|
/** Column name IsSalesLead */
|
||||||
|
public static final String COLUMNNAME_IsSalesLead = "IsSalesLead";
|
||||||
|
|
||||||
|
/** Set Sales Lead.
|
||||||
|
* This contact is a sales lead
|
||||||
|
*/
|
||||||
|
public void setIsSalesLead (boolean IsSalesLead);
|
||||||
|
|
||||||
|
/** Get Sales Lead.
|
||||||
|
* This contact is a sales lead
|
||||||
|
*/
|
||||||
|
public boolean isSalesLead();
|
||||||
|
|
||||||
/** Column name LastContact */
|
/** Column name LastContact */
|
||||||
public static final String COLUMNNAME_LastContact = "LastContact";
|
public static final String COLUMNNAME_LastContact = "LastContact";
|
||||||
|
|
||||||
|
@ -453,6 +520,58 @@ public interface I_AD_User
|
||||||
*/
|
*/
|
||||||
public String getLDAPUser();
|
public String getLDAPUser();
|
||||||
|
|
||||||
|
/** Column name LeadSource */
|
||||||
|
public static final String COLUMNNAME_LeadSource = "LeadSource";
|
||||||
|
|
||||||
|
/** Set Lead Source.
|
||||||
|
* The source of this lead/opportunity
|
||||||
|
*/
|
||||||
|
public void setLeadSource (String LeadSource);
|
||||||
|
|
||||||
|
/** Get Lead Source.
|
||||||
|
* The source of this lead/opportunity
|
||||||
|
*/
|
||||||
|
public String getLeadSource();
|
||||||
|
|
||||||
|
/** Column name LeadSourceDescription */
|
||||||
|
public static final String COLUMNNAME_LeadSourceDescription = "LeadSourceDescription";
|
||||||
|
|
||||||
|
/** Set Lead Source Description.
|
||||||
|
* Additional information on the source of this lead/opportunity
|
||||||
|
*/
|
||||||
|
public void setLeadSourceDescription (String LeadSourceDescription);
|
||||||
|
|
||||||
|
/** Get Lead Source Description.
|
||||||
|
* Additional information on the source of this lead/opportunity
|
||||||
|
*/
|
||||||
|
public String getLeadSourceDescription();
|
||||||
|
|
||||||
|
/** Column name LeadStatus */
|
||||||
|
public static final String COLUMNNAME_LeadStatus = "LeadStatus";
|
||||||
|
|
||||||
|
/** Set Lead Status.
|
||||||
|
* The status of this lead/opportunity in the sales cycle
|
||||||
|
*/
|
||||||
|
public void setLeadStatus (String LeadStatus);
|
||||||
|
|
||||||
|
/** Get Lead Status.
|
||||||
|
* The status of this lead/opportunity in the sales cycle
|
||||||
|
*/
|
||||||
|
public String getLeadStatus();
|
||||||
|
|
||||||
|
/** Column name LeadStatusDescription */
|
||||||
|
public static final String COLUMNNAME_LeadStatusDescription = "LeadStatusDescription";
|
||||||
|
|
||||||
|
/** Set Lead Status Description.
|
||||||
|
* Additional information on the status of this lead/opportunity
|
||||||
|
*/
|
||||||
|
public void setLeadStatusDescription (String LeadStatusDescription);
|
||||||
|
|
||||||
|
/** Get Lead Status Description.
|
||||||
|
* Additional information on the status of this lead/opportunity
|
||||||
|
*/
|
||||||
|
public String getLeadStatusDescription();
|
||||||
|
|
||||||
/** Column name Name */
|
/** Column name Name */
|
||||||
public static final String COLUMNNAME_Name = "Name";
|
public static final String COLUMNNAME_Name = "Name";
|
||||||
|
|
||||||
|
@ -527,6 +646,21 @@ public interface I_AD_User
|
||||||
/** Get Process Now */
|
/** Get Process Now */
|
||||||
public boolean isProcessing();
|
public boolean isProcessing();
|
||||||
|
|
||||||
|
/** Column name SalesRep_ID */
|
||||||
|
public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID";
|
||||||
|
|
||||||
|
/** Set Sales Representative.
|
||||||
|
* Sales Representative or Company Agent
|
||||||
|
*/
|
||||||
|
public void setSalesRep_ID (int SalesRep_ID);
|
||||||
|
|
||||||
|
/** Get Sales Representative.
|
||||||
|
* Sales Representative or Company Agent
|
||||||
|
*/
|
||||||
|
public int getSalesRep_ID();
|
||||||
|
|
||||||
|
public org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;
|
||||||
|
|
||||||
/** Column name Salt */
|
/** Column name Salt */
|
||||||
public static final String COLUMNNAME_Salt = "Salt";
|
public static final String COLUMNNAME_Salt = "Salt";
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,248 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* 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 *
|
||||||
|
*****************************************************************************/
|
||||||
|
package org.compiere.model;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.sql.Timestamp;
|
||||||
|
import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
|
/** Generated Interface for C_ContactActivity
|
||||||
|
* @author iDempiere (generated)
|
||||||
|
* @version Release 1.0c
|
||||||
|
*/
|
||||||
|
public interface I_C_ContactActivity
|
||||||
|
{
|
||||||
|
|
||||||
|
/** TableName=C_ContactActivity */
|
||||||
|
public static final String Table_Name = "C_ContactActivity";
|
||||||
|
|
||||||
|
/** AD_Table_ID=53354 */
|
||||||
|
public static final int Table_ID = 53354;
|
||||||
|
|
||||||
|
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||||
|
|
||||||
|
/** AccessLevel = 3 - Client - Org
|
||||||
|
*/
|
||||||
|
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
||||||
|
|
||||||
|
/** Load Meta Data */
|
||||||
|
|
||||||
|
/** Column name AD_Client_ID */
|
||||||
|
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||||
|
|
||||||
|
/** Get Client.
|
||||||
|
* Client/Tenant for this installation.
|
||||||
|
*/
|
||||||
|
public int getAD_Client_ID();
|
||||||
|
|
||||||
|
/** Column name AD_Org_ID */
|
||||||
|
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||||
|
|
||||||
|
/** Set Organization.
|
||||||
|
* Organizational entity within client
|
||||||
|
*/
|
||||||
|
public void setAD_Org_ID (int AD_Org_ID);
|
||||||
|
|
||||||
|
/** Get Organization.
|
||||||
|
* Organizational entity within client
|
||||||
|
*/
|
||||||
|
public int getAD_Org_ID();
|
||||||
|
|
||||||
|
/** Column name AD_User_ID */
|
||||||
|
public static final String COLUMNNAME_AD_User_ID = "AD_User_ID";
|
||||||
|
|
||||||
|
/** Set User/Contact.
|
||||||
|
* User within the system - Internal or Business Partner Contact
|
||||||
|
*/
|
||||||
|
public void setAD_User_ID (int AD_User_ID);
|
||||||
|
|
||||||
|
/** Get User/Contact.
|
||||||
|
* User within the system - Internal or Business Partner Contact
|
||||||
|
*/
|
||||||
|
public int getAD_User_ID();
|
||||||
|
|
||||||
|
public org.compiere.model.I_AD_User getAD_User() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name C_ContactActivity_ID */
|
||||||
|
public static final String COLUMNNAME_C_ContactActivity_ID = "C_ContactActivity_ID";
|
||||||
|
|
||||||
|
/** Set Contact Activity.
|
||||||
|
* Events, tasks, communications related to a contact
|
||||||
|
*/
|
||||||
|
public void setC_ContactActivity_ID (int C_ContactActivity_ID);
|
||||||
|
|
||||||
|
/** Get Contact Activity.
|
||||||
|
* Events, tasks, communications related to a contact
|
||||||
|
*/
|
||||||
|
public int getC_ContactActivity_ID();
|
||||||
|
|
||||||
|
/** Column name C_ContactActivity_UU */
|
||||||
|
public static final String COLUMNNAME_C_ContactActivity_UU = "C_ContactActivity_UU";
|
||||||
|
|
||||||
|
/** Set C_ContactActivity_UU */
|
||||||
|
public void setC_ContactActivity_UU (String C_ContactActivity_UU);
|
||||||
|
|
||||||
|
/** Get C_ContactActivity_UU */
|
||||||
|
public String getC_ContactActivity_UU();
|
||||||
|
|
||||||
|
/** Column name Comments */
|
||||||
|
public static final String COLUMNNAME_Comments = "Comments";
|
||||||
|
|
||||||
|
/** Set Comments.
|
||||||
|
* Comments or additional information
|
||||||
|
*/
|
||||||
|
public void setComments (String Comments);
|
||||||
|
|
||||||
|
/** Get Comments.
|
||||||
|
* Comments or additional information
|
||||||
|
*/
|
||||||
|
public String getComments();
|
||||||
|
|
||||||
|
/** Column name ContactActivityType */
|
||||||
|
public static final String COLUMNNAME_ContactActivityType = "ContactActivityType";
|
||||||
|
|
||||||
|
/** Set Activity Type.
|
||||||
|
* Type of activity, e.g. task, email, phone call
|
||||||
|
*/
|
||||||
|
public void setContactActivityType (String ContactActivityType);
|
||||||
|
|
||||||
|
/** Get Activity Type.
|
||||||
|
* Type of activity, e.g. task, email, phone call
|
||||||
|
*/
|
||||||
|
public String getContactActivityType();
|
||||||
|
|
||||||
|
/** Column name C_Opportunity_ID */
|
||||||
|
public static final String COLUMNNAME_C_Opportunity_ID = "C_Opportunity_ID";
|
||||||
|
|
||||||
|
/** Set Sales Opportunity */
|
||||||
|
public void setC_Opportunity_ID (int C_Opportunity_ID);
|
||||||
|
|
||||||
|
/** Get Sales Opportunity */
|
||||||
|
public int getC_Opportunity_ID();
|
||||||
|
|
||||||
|
public org.compiere.model.I_C_Opportunity getC_Opportunity() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name Created */
|
||||||
|
public static final String COLUMNNAME_Created = "Created";
|
||||||
|
|
||||||
|
/** Get Created.
|
||||||
|
* Date this record was created
|
||||||
|
*/
|
||||||
|
public Timestamp getCreated();
|
||||||
|
|
||||||
|
/** Column name CreatedBy */
|
||||||
|
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||||
|
|
||||||
|
/** Get Created By.
|
||||||
|
* User who created this records
|
||||||
|
*/
|
||||||
|
public int getCreatedBy();
|
||||||
|
|
||||||
|
/** Column name Description */
|
||||||
|
public static final String COLUMNNAME_Description = "Description";
|
||||||
|
|
||||||
|
/** Set Description.
|
||||||
|
* Optional short description of the record
|
||||||
|
*/
|
||||||
|
public void setDescription (String Description);
|
||||||
|
|
||||||
|
/** Get Description.
|
||||||
|
* Optional short description of the record
|
||||||
|
*/
|
||||||
|
public String getDescription();
|
||||||
|
|
||||||
|
/** Column name EndDate */
|
||||||
|
public static final String COLUMNNAME_EndDate = "EndDate";
|
||||||
|
|
||||||
|
/** Set End Date.
|
||||||
|
* Last effective date (inclusive)
|
||||||
|
*/
|
||||||
|
public void setEndDate (Timestamp EndDate);
|
||||||
|
|
||||||
|
/** Get End Date.
|
||||||
|
* Last effective date (inclusive)
|
||||||
|
*/
|
||||||
|
public Timestamp getEndDate();
|
||||||
|
|
||||||
|
/** Column name IsActive */
|
||||||
|
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||||
|
|
||||||
|
/** Set Active.
|
||||||
|
* The record is active in the system
|
||||||
|
*/
|
||||||
|
public void setIsActive (boolean IsActive);
|
||||||
|
|
||||||
|
/** Get Active.
|
||||||
|
* The record is active in the system
|
||||||
|
*/
|
||||||
|
public boolean isActive();
|
||||||
|
|
||||||
|
/** Column name IsComplete */
|
||||||
|
public static final String COLUMNNAME_IsComplete = "IsComplete";
|
||||||
|
|
||||||
|
/** Set Complete.
|
||||||
|
* It is complete
|
||||||
|
*/
|
||||||
|
public void setIsComplete (boolean IsComplete);
|
||||||
|
|
||||||
|
/** Get Complete.
|
||||||
|
* It is complete
|
||||||
|
*/
|
||||||
|
public boolean isComplete();
|
||||||
|
|
||||||
|
/** Column name SalesRep_ID */
|
||||||
|
public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID";
|
||||||
|
|
||||||
|
/** Set Sales Representative.
|
||||||
|
* Sales Representative or Company Agent
|
||||||
|
*/
|
||||||
|
public void setSalesRep_ID (int SalesRep_ID);
|
||||||
|
|
||||||
|
/** Get Sales Representative.
|
||||||
|
* Sales Representative or Company Agent
|
||||||
|
*/
|
||||||
|
public int getSalesRep_ID();
|
||||||
|
|
||||||
|
/** Column name StartDate */
|
||||||
|
public static final String COLUMNNAME_StartDate = "StartDate";
|
||||||
|
|
||||||
|
/** Set Start Date.
|
||||||
|
* First effective day (inclusive)
|
||||||
|
*/
|
||||||
|
public void setStartDate (Timestamp StartDate);
|
||||||
|
|
||||||
|
/** Get Start Date.
|
||||||
|
* First effective day (inclusive)
|
||||||
|
*/
|
||||||
|
public Timestamp getStartDate();
|
||||||
|
|
||||||
|
/** Column name Updated */
|
||||||
|
public static final String COLUMNNAME_Updated = "Updated";
|
||||||
|
|
||||||
|
/** Get Updated.
|
||||||
|
* Date this record was updated
|
||||||
|
*/
|
||||||
|
public Timestamp getUpdated();
|
||||||
|
|
||||||
|
/** Column name UpdatedBy */
|
||||||
|
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
|
||||||
|
|
||||||
|
/** Get Updated By.
|
||||||
|
* User who updated this records
|
||||||
|
*/
|
||||||
|
public int getUpdatedBy();
|
||||||
|
}
|
|
@ -0,0 +1,345 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* 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 *
|
||||||
|
*****************************************************************************/
|
||||||
|
package org.compiere.model;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.sql.Timestamp;
|
||||||
|
import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
|
/** Generated Interface for C_Opportunity
|
||||||
|
* @author iDempiere (generated)
|
||||||
|
* @version Release 1.0c
|
||||||
|
*/
|
||||||
|
public interface I_C_Opportunity
|
||||||
|
{
|
||||||
|
|
||||||
|
/** TableName=C_Opportunity */
|
||||||
|
public static final String Table_Name = "C_Opportunity";
|
||||||
|
|
||||||
|
/** AD_Table_ID=53337 */
|
||||||
|
public static final int Table_ID = 53337;
|
||||||
|
|
||||||
|
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||||
|
|
||||||
|
/** AccessLevel = 3 - Client - Org
|
||||||
|
*/
|
||||||
|
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
||||||
|
|
||||||
|
/** Load Meta Data */
|
||||||
|
|
||||||
|
/** Column name AD_Client_ID */
|
||||||
|
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||||
|
|
||||||
|
/** Get Client.
|
||||||
|
* Client/Tenant for this installation.
|
||||||
|
*/
|
||||||
|
public int getAD_Client_ID();
|
||||||
|
|
||||||
|
/** Column name AD_Org_ID */
|
||||||
|
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||||
|
|
||||||
|
/** Set Organization.
|
||||||
|
* Organizational entity within client
|
||||||
|
*/
|
||||||
|
public void setAD_Org_ID (int AD_Org_ID);
|
||||||
|
|
||||||
|
/** Get Organization.
|
||||||
|
* Organizational entity within client
|
||||||
|
*/
|
||||||
|
public int getAD_Org_ID();
|
||||||
|
|
||||||
|
/** Column name AD_User_ID */
|
||||||
|
public static final String COLUMNNAME_AD_User_ID = "AD_User_ID";
|
||||||
|
|
||||||
|
/** Set User/Contact.
|
||||||
|
* User within the system - Internal or Business Partner Contact
|
||||||
|
*/
|
||||||
|
public void setAD_User_ID (int AD_User_ID);
|
||||||
|
|
||||||
|
/** Get User/Contact.
|
||||||
|
* User within the system - Internal or Business Partner Contact
|
||||||
|
*/
|
||||||
|
public int getAD_User_ID();
|
||||||
|
|
||||||
|
public org.compiere.model.I_AD_User getAD_User() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name C_BPartner_ID */
|
||||||
|
public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID";
|
||||||
|
|
||||||
|
/** Set Business Partner .
|
||||||
|
* Identifies a Business Partner
|
||||||
|
*/
|
||||||
|
public void setC_BPartner_ID (int C_BPartner_ID);
|
||||||
|
|
||||||
|
/** Get Business Partner .
|
||||||
|
* Identifies a Business Partner
|
||||||
|
*/
|
||||||
|
public int getC_BPartner_ID();
|
||||||
|
|
||||||
|
public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name C_Campaign_ID */
|
||||||
|
public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID";
|
||||||
|
|
||||||
|
/** Set Campaign.
|
||||||
|
* Marketing Campaign
|
||||||
|
*/
|
||||||
|
public void setC_Campaign_ID (int C_Campaign_ID);
|
||||||
|
|
||||||
|
/** Get Campaign.
|
||||||
|
* Marketing Campaign
|
||||||
|
*/
|
||||||
|
public int getC_Campaign_ID();
|
||||||
|
|
||||||
|
public org.compiere.model.I_C_Campaign getC_Campaign() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name C_Currency_ID */
|
||||||
|
public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID";
|
||||||
|
|
||||||
|
/** Set Currency.
|
||||||
|
* The Currency for this record
|
||||||
|
*/
|
||||||
|
public void setC_Currency_ID (int C_Currency_ID);
|
||||||
|
|
||||||
|
/** Get Currency.
|
||||||
|
* The Currency for this record
|
||||||
|
*/
|
||||||
|
public int getC_Currency_ID();
|
||||||
|
|
||||||
|
public org.compiere.model.I_C_Currency getC_Currency() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name CloseDate */
|
||||||
|
public static final String COLUMNNAME_CloseDate = "CloseDate";
|
||||||
|
|
||||||
|
/** Set Close Date.
|
||||||
|
* Close Date
|
||||||
|
*/
|
||||||
|
public void setCloseDate (Timestamp CloseDate);
|
||||||
|
|
||||||
|
/** Get Close Date.
|
||||||
|
* Close Date
|
||||||
|
*/
|
||||||
|
public Timestamp getCloseDate();
|
||||||
|
|
||||||
|
/** Column name Comments */
|
||||||
|
public static final String COLUMNNAME_Comments = "Comments";
|
||||||
|
|
||||||
|
/** Set Comments.
|
||||||
|
* Comments or additional information
|
||||||
|
*/
|
||||||
|
public void setComments (String Comments);
|
||||||
|
|
||||||
|
/** Get Comments.
|
||||||
|
* Comments or additional information
|
||||||
|
*/
|
||||||
|
public String getComments();
|
||||||
|
|
||||||
|
/** Column name C_Opportunity_ID */
|
||||||
|
public static final String COLUMNNAME_C_Opportunity_ID = "C_Opportunity_ID";
|
||||||
|
|
||||||
|
/** Set Sales Opportunity */
|
||||||
|
public void setC_Opportunity_ID (int C_Opportunity_ID);
|
||||||
|
|
||||||
|
/** Get Sales Opportunity */
|
||||||
|
public int getC_Opportunity_ID();
|
||||||
|
|
||||||
|
/** Column name C_Opportunity_UU */
|
||||||
|
public static final String COLUMNNAME_C_Opportunity_UU = "C_Opportunity_UU";
|
||||||
|
|
||||||
|
/** Set C_Opportunity_UU */
|
||||||
|
public void setC_Opportunity_UU (String C_Opportunity_UU);
|
||||||
|
|
||||||
|
/** Get C_Opportunity_UU */
|
||||||
|
public String getC_Opportunity_UU();
|
||||||
|
|
||||||
|
/** Column name C_Order_ID */
|
||||||
|
public static final String COLUMNNAME_C_Order_ID = "C_Order_ID";
|
||||||
|
|
||||||
|
/** Set Order.
|
||||||
|
* Order
|
||||||
|
*/
|
||||||
|
public void setC_Order_ID (int C_Order_ID);
|
||||||
|
|
||||||
|
/** Get Order.
|
||||||
|
* Order
|
||||||
|
*/
|
||||||
|
public int getC_Order_ID();
|
||||||
|
|
||||||
|
public org.compiere.model.I_C_Order getC_Order() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name Cost */
|
||||||
|
public static final String COLUMNNAME_Cost = "Cost";
|
||||||
|
|
||||||
|
/** Set Cost.
|
||||||
|
* Cost information
|
||||||
|
*/
|
||||||
|
public void setCost (BigDecimal Cost);
|
||||||
|
|
||||||
|
/** Get Cost.
|
||||||
|
* Cost information
|
||||||
|
*/
|
||||||
|
public BigDecimal getCost();
|
||||||
|
|
||||||
|
/** Column name Created */
|
||||||
|
public static final String COLUMNNAME_Created = "Created";
|
||||||
|
|
||||||
|
/** Get Created.
|
||||||
|
* Date this record was created
|
||||||
|
*/
|
||||||
|
public Timestamp getCreated();
|
||||||
|
|
||||||
|
/** Column name CreatedBy */
|
||||||
|
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||||
|
|
||||||
|
/** Get Created By.
|
||||||
|
* User who created this records
|
||||||
|
*/
|
||||||
|
public int getCreatedBy();
|
||||||
|
|
||||||
|
/** Column name C_SalesStage_ID */
|
||||||
|
public static final String COLUMNNAME_C_SalesStage_ID = "C_SalesStage_ID";
|
||||||
|
|
||||||
|
/** Set Sales Stage.
|
||||||
|
* Stages of the sales process
|
||||||
|
*/
|
||||||
|
public void setC_SalesStage_ID (int C_SalesStage_ID);
|
||||||
|
|
||||||
|
/** Get Sales Stage.
|
||||||
|
* Stages of the sales process
|
||||||
|
*/
|
||||||
|
public int getC_SalesStage_ID();
|
||||||
|
|
||||||
|
public org.compiere.model.I_C_SalesStage getC_SalesStage() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name Description */
|
||||||
|
public static final String COLUMNNAME_Description = "Description";
|
||||||
|
|
||||||
|
/** Set Description.
|
||||||
|
* Optional short description of the record
|
||||||
|
*/
|
||||||
|
public void setDescription (String Description);
|
||||||
|
|
||||||
|
/** Get Description.
|
||||||
|
* Optional short description of the record
|
||||||
|
*/
|
||||||
|
public String getDescription();
|
||||||
|
|
||||||
|
/** Column name DocumentNo */
|
||||||
|
public static final String COLUMNNAME_DocumentNo = "DocumentNo";
|
||||||
|
|
||||||
|
/** Set Document No.
|
||||||
|
* Document sequence number of the document
|
||||||
|
*/
|
||||||
|
public void setDocumentNo (String DocumentNo);
|
||||||
|
|
||||||
|
/** Get Document No.
|
||||||
|
* Document sequence number of the document
|
||||||
|
*/
|
||||||
|
public String getDocumentNo();
|
||||||
|
|
||||||
|
/** Column name ExpectedCloseDate */
|
||||||
|
public static final String COLUMNNAME_ExpectedCloseDate = "ExpectedCloseDate";
|
||||||
|
|
||||||
|
/** Set Expected Close Date.
|
||||||
|
* Expected Close Date
|
||||||
|
*/
|
||||||
|
public void setExpectedCloseDate (Timestamp ExpectedCloseDate);
|
||||||
|
|
||||||
|
/** Get Expected Close Date.
|
||||||
|
* Expected Close Date
|
||||||
|
*/
|
||||||
|
public Timestamp getExpectedCloseDate();
|
||||||
|
|
||||||
|
/** Column name IsActive */
|
||||||
|
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||||
|
|
||||||
|
/** Set Active.
|
||||||
|
* The record is active in the system
|
||||||
|
*/
|
||||||
|
public void setIsActive (boolean IsActive);
|
||||||
|
|
||||||
|
/** Get Active.
|
||||||
|
* The record is active in the system
|
||||||
|
*/
|
||||||
|
public boolean isActive();
|
||||||
|
|
||||||
|
/** Column name OpportunityAmt */
|
||||||
|
public static final String COLUMNNAME_OpportunityAmt = "OpportunityAmt";
|
||||||
|
|
||||||
|
/** Set Opportunity Amount.
|
||||||
|
* The estimated value of this opportunity.
|
||||||
|
*/
|
||||||
|
public void setOpportunityAmt (BigDecimal OpportunityAmt);
|
||||||
|
|
||||||
|
/** Get Opportunity Amount.
|
||||||
|
* The estimated value of this opportunity.
|
||||||
|
*/
|
||||||
|
public BigDecimal getOpportunityAmt();
|
||||||
|
|
||||||
|
/** Column name Probability */
|
||||||
|
public static final String COLUMNNAME_Probability = "Probability";
|
||||||
|
|
||||||
|
/** Set Probability */
|
||||||
|
public void setProbability (BigDecimal Probability);
|
||||||
|
|
||||||
|
/** Get Probability */
|
||||||
|
public BigDecimal getProbability();
|
||||||
|
|
||||||
|
/** Column name SalesRep_ID */
|
||||||
|
public static final String COLUMNNAME_SalesRep_ID = "SalesRep_ID";
|
||||||
|
|
||||||
|
/** Set Sales Representative.
|
||||||
|
* Sales Representative or Company Agent
|
||||||
|
*/
|
||||||
|
public void setSalesRep_ID (int SalesRep_ID);
|
||||||
|
|
||||||
|
/** Get Sales Representative.
|
||||||
|
* Sales Representative or Company Agent
|
||||||
|
*/
|
||||||
|
public int getSalesRep_ID();
|
||||||
|
|
||||||
|
public org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name Updated */
|
||||||
|
public static final String COLUMNNAME_Updated = "Updated";
|
||||||
|
|
||||||
|
/** Get Updated.
|
||||||
|
* Date this record was updated
|
||||||
|
*/
|
||||||
|
public Timestamp getUpdated();
|
||||||
|
|
||||||
|
/** Column name UpdatedBy */
|
||||||
|
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
|
||||||
|
|
||||||
|
/** Get Updated By.
|
||||||
|
* User who updated this records
|
||||||
|
*/
|
||||||
|
public int getUpdatedBy();
|
||||||
|
|
||||||
|
/** Column name WeightedAmt */
|
||||||
|
public static final String COLUMNNAME_WeightedAmt = "WeightedAmt";
|
||||||
|
|
||||||
|
/** Set Weighted Amount.
|
||||||
|
* The amount adjusted by the probability.
|
||||||
|
*/
|
||||||
|
public void setWeightedAmt (BigDecimal WeightedAmt);
|
||||||
|
|
||||||
|
/** Get Weighted Amount.
|
||||||
|
* The amount adjusted by the probability.
|
||||||
|
*/
|
||||||
|
public BigDecimal getWeightedAmt();
|
||||||
|
}
|
|
@ -0,0 +1,205 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* 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 *
|
||||||
|
*****************************************************************************/
|
||||||
|
package org.compiere.model;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.sql.Timestamp;
|
||||||
|
import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
|
/** Generated Interface for C_SalesStage
|
||||||
|
* @author iDempiere (generated)
|
||||||
|
* @version Release 1.0c
|
||||||
|
*/
|
||||||
|
public interface I_C_SalesStage
|
||||||
|
{
|
||||||
|
|
||||||
|
/** TableName=C_SalesStage */
|
||||||
|
public static final String Table_Name = "C_SalesStage";
|
||||||
|
|
||||||
|
/** AD_Table_ID=53338 */
|
||||||
|
public static final int Table_ID = 53338;
|
||||||
|
|
||||||
|
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||||
|
|
||||||
|
/** AccessLevel = 3 - Client - Org
|
||||||
|
*/
|
||||||
|
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
||||||
|
|
||||||
|
/** Load Meta Data */
|
||||||
|
|
||||||
|
/** Column name AD_Client_ID */
|
||||||
|
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||||
|
|
||||||
|
/** Get Client.
|
||||||
|
* Client/Tenant for this installation.
|
||||||
|
*/
|
||||||
|
public int getAD_Client_ID();
|
||||||
|
|
||||||
|
/** Column name AD_Org_ID */
|
||||||
|
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||||
|
|
||||||
|
/** Set Organization.
|
||||||
|
* Organizational entity within client
|
||||||
|
*/
|
||||||
|
public void setAD_Org_ID (int AD_Org_ID);
|
||||||
|
|
||||||
|
/** Get Organization.
|
||||||
|
* Organizational entity within client
|
||||||
|
*/
|
||||||
|
public int getAD_Org_ID();
|
||||||
|
|
||||||
|
/** Column name Created */
|
||||||
|
public static final String COLUMNNAME_Created = "Created";
|
||||||
|
|
||||||
|
/** Get Created.
|
||||||
|
* Date this record was created
|
||||||
|
*/
|
||||||
|
public Timestamp getCreated();
|
||||||
|
|
||||||
|
/** Column name CreatedBy */
|
||||||
|
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||||
|
|
||||||
|
/** Get Created By.
|
||||||
|
* User who created this records
|
||||||
|
*/
|
||||||
|
public int getCreatedBy();
|
||||||
|
|
||||||
|
/** Column name C_SalesStage_ID */
|
||||||
|
public static final String COLUMNNAME_C_SalesStage_ID = "C_SalesStage_ID";
|
||||||
|
|
||||||
|
/** Set Sales Stage.
|
||||||
|
* Stages of the sales process
|
||||||
|
*/
|
||||||
|
public void setC_SalesStage_ID (int C_SalesStage_ID);
|
||||||
|
|
||||||
|
/** Get Sales Stage.
|
||||||
|
* Stages of the sales process
|
||||||
|
*/
|
||||||
|
public int getC_SalesStage_ID();
|
||||||
|
|
||||||
|
/** Column name C_SalesStage_UU */
|
||||||
|
public static final String COLUMNNAME_C_SalesStage_UU = "C_SalesStage_UU";
|
||||||
|
|
||||||
|
/** Set C_SalesStage_UU */
|
||||||
|
public void setC_SalesStage_UU (String C_SalesStage_UU);
|
||||||
|
|
||||||
|
/** Get C_SalesStage_UU */
|
||||||
|
public String getC_SalesStage_UU();
|
||||||
|
|
||||||
|
/** Column name Description */
|
||||||
|
public static final String COLUMNNAME_Description = "Description";
|
||||||
|
|
||||||
|
/** Set Description.
|
||||||
|
* Optional short description of the record
|
||||||
|
*/
|
||||||
|
public void setDescription (String Description);
|
||||||
|
|
||||||
|
/** Get Description.
|
||||||
|
* Optional short description of the record
|
||||||
|
*/
|
||||||
|
public String getDescription();
|
||||||
|
|
||||||
|
/** Column name IsActive */
|
||||||
|
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||||
|
|
||||||
|
/** Set Active.
|
||||||
|
* The record is active in the system
|
||||||
|
*/
|
||||||
|
public void setIsActive (boolean IsActive);
|
||||||
|
|
||||||
|
/** Get Active.
|
||||||
|
* The record is active in the system
|
||||||
|
*/
|
||||||
|
public boolean isActive();
|
||||||
|
|
||||||
|
/** Column name IsClosed */
|
||||||
|
public static final String COLUMNNAME_IsClosed = "IsClosed";
|
||||||
|
|
||||||
|
/** Set Closed Status.
|
||||||
|
* The status is closed
|
||||||
|
*/
|
||||||
|
public void setIsClosed (boolean IsClosed);
|
||||||
|
|
||||||
|
/** Get Closed Status.
|
||||||
|
* The status is closed
|
||||||
|
*/
|
||||||
|
public boolean isClosed();
|
||||||
|
|
||||||
|
/** Column name IsWon */
|
||||||
|
public static final String COLUMNNAME_IsWon = "IsWon";
|
||||||
|
|
||||||
|
/** Set Won.
|
||||||
|
* The opportunity was won
|
||||||
|
*/
|
||||||
|
public void setIsWon (boolean IsWon);
|
||||||
|
|
||||||
|
/** Get Won.
|
||||||
|
* The opportunity was won
|
||||||
|
*/
|
||||||
|
public boolean isWon();
|
||||||
|
|
||||||
|
/** Column name Name */
|
||||||
|
public static final String COLUMNNAME_Name = "Name";
|
||||||
|
|
||||||
|
/** Set Name.
|
||||||
|
* Alphanumeric identifier of the entity
|
||||||
|
*/
|
||||||
|
public void setName (String Name);
|
||||||
|
|
||||||
|
/** Get Name.
|
||||||
|
* Alphanumeric identifier of the entity
|
||||||
|
*/
|
||||||
|
public String getName();
|
||||||
|
|
||||||
|
/** Column name Probability */
|
||||||
|
public static final String COLUMNNAME_Probability = "Probability";
|
||||||
|
|
||||||
|
/** Set Probability */
|
||||||
|
public void setProbability (BigDecimal Probability);
|
||||||
|
|
||||||
|
/** Get Probability */
|
||||||
|
public BigDecimal getProbability();
|
||||||
|
|
||||||
|
/** Column name Updated */
|
||||||
|
public static final String COLUMNNAME_Updated = "Updated";
|
||||||
|
|
||||||
|
/** Get Updated.
|
||||||
|
* Date this record was updated
|
||||||
|
*/
|
||||||
|
public Timestamp getUpdated();
|
||||||
|
|
||||||
|
/** Column name UpdatedBy */
|
||||||
|
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
|
||||||
|
|
||||||
|
/** Get Updated By.
|
||||||
|
* User who updated this records
|
||||||
|
*/
|
||||||
|
public int getUpdatedBy();
|
||||||
|
|
||||||
|
/** Column name Value */
|
||||||
|
public static final String COLUMNNAME_Value = "Value";
|
||||||
|
|
||||||
|
/** Set Search Key.
|
||||||
|
* Search key for the record in the format required - must be unique
|
||||||
|
*/
|
||||||
|
public void setValue (String Value);
|
||||||
|
|
||||||
|
/** Get Search Key.
|
||||||
|
* Search key for the record in the format required - must be unique
|
||||||
|
*/
|
||||||
|
public String getValue();
|
||||||
|
}
|
|
@ -0,0 +1,302 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* 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 *
|
||||||
|
*****************************************************************************/
|
||||||
|
package org.compiere.model;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.sql.Timestamp;
|
||||||
|
import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
|
/** Generated Interface for M_BP_Price
|
||||||
|
* @author iDempiere (generated)
|
||||||
|
* @version Release 1.0c
|
||||||
|
*/
|
||||||
|
public interface I_M_BP_Price
|
||||||
|
{
|
||||||
|
|
||||||
|
/** TableName=M_BP_Price */
|
||||||
|
public static final String Table_Name = "M_BP_Price";
|
||||||
|
|
||||||
|
/** AD_Table_ID=53325 */
|
||||||
|
public static final int Table_ID = 53325;
|
||||||
|
|
||||||
|
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||||
|
|
||||||
|
/** AccessLevel = 3 - Client - Org
|
||||||
|
*/
|
||||||
|
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
||||||
|
|
||||||
|
/** Load Meta Data */
|
||||||
|
|
||||||
|
/** Column name AD_Client_ID */
|
||||||
|
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||||
|
|
||||||
|
/** Get Client.
|
||||||
|
* Client/Tenant for this installation.
|
||||||
|
*/
|
||||||
|
public int getAD_Client_ID();
|
||||||
|
|
||||||
|
/** Column name AD_Org_ID */
|
||||||
|
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||||
|
|
||||||
|
/** Set Organization.
|
||||||
|
* Organizational entity within client
|
||||||
|
*/
|
||||||
|
public void setAD_Org_ID (int AD_Org_ID);
|
||||||
|
|
||||||
|
/** Get Organization.
|
||||||
|
* Organizational entity within client
|
||||||
|
*/
|
||||||
|
public int getAD_Org_ID();
|
||||||
|
|
||||||
|
/** Column name BreakValue */
|
||||||
|
public static final String COLUMNNAME_BreakValue = "BreakValue";
|
||||||
|
|
||||||
|
/** Set Break Value.
|
||||||
|
* Low Value of trade discount break level
|
||||||
|
*/
|
||||||
|
public void setBreakValue (BigDecimal BreakValue);
|
||||||
|
|
||||||
|
/** Get Break Value.
|
||||||
|
* Low Value of trade discount break level
|
||||||
|
*/
|
||||||
|
public BigDecimal getBreakValue();
|
||||||
|
|
||||||
|
/** Column name C_BPartner_ID */
|
||||||
|
public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID";
|
||||||
|
|
||||||
|
/** Set Business Partner .
|
||||||
|
* Identifies a Business Partner
|
||||||
|
*/
|
||||||
|
public void setC_BPartner_ID (int C_BPartner_ID);
|
||||||
|
|
||||||
|
/** Get Business Partner .
|
||||||
|
* Identifies a Business Partner
|
||||||
|
*/
|
||||||
|
public int getC_BPartner_ID();
|
||||||
|
|
||||||
|
public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name C_Currency_ID */
|
||||||
|
public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID";
|
||||||
|
|
||||||
|
/** Set Currency.
|
||||||
|
* The Currency for this record
|
||||||
|
*/
|
||||||
|
public void setC_Currency_ID (int C_Currency_ID);
|
||||||
|
|
||||||
|
/** Get Currency.
|
||||||
|
* The Currency for this record
|
||||||
|
*/
|
||||||
|
public int getC_Currency_ID();
|
||||||
|
|
||||||
|
public org.compiere.model.I_C_Currency getC_Currency() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name Comments */
|
||||||
|
public static final String COLUMNNAME_Comments = "Comments";
|
||||||
|
|
||||||
|
/** Set Comments.
|
||||||
|
* Comments or additional information
|
||||||
|
*/
|
||||||
|
public void setComments (String Comments);
|
||||||
|
|
||||||
|
/** Get Comments.
|
||||||
|
* Comments or additional information
|
||||||
|
*/
|
||||||
|
public String getComments();
|
||||||
|
|
||||||
|
/** Column name Created */
|
||||||
|
public static final String COLUMNNAME_Created = "Created";
|
||||||
|
|
||||||
|
/** Get Created.
|
||||||
|
* Date this record was created
|
||||||
|
*/
|
||||||
|
public Timestamp getCreated();
|
||||||
|
|
||||||
|
/** Column name CreatedBy */
|
||||||
|
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||||
|
|
||||||
|
/** Get Created By.
|
||||||
|
* User who created this records
|
||||||
|
*/
|
||||||
|
public int getCreatedBy();
|
||||||
|
|
||||||
|
/** Column name Discount */
|
||||||
|
public static final String COLUMNNAME_Discount = "Discount";
|
||||||
|
|
||||||
|
/** Set Discount %.
|
||||||
|
* Discount in percent
|
||||||
|
*/
|
||||||
|
public void setDiscount (BigDecimal Discount);
|
||||||
|
|
||||||
|
/** Get Discount %.
|
||||||
|
* Discount in percent
|
||||||
|
*/
|
||||||
|
public BigDecimal getDiscount();
|
||||||
|
|
||||||
|
/** Column name IsActive */
|
||||||
|
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||||
|
|
||||||
|
/** Set Active.
|
||||||
|
* The record is active in the system
|
||||||
|
*/
|
||||||
|
public void setIsActive (boolean IsActive);
|
||||||
|
|
||||||
|
/** Get Active.
|
||||||
|
* The record is active in the system
|
||||||
|
*/
|
||||||
|
public boolean isActive();
|
||||||
|
|
||||||
|
/** Column name IsNetPrice */
|
||||||
|
public static final String COLUMNNAME_IsNetPrice = "IsNetPrice";
|
||||||
|
|
||||||
|
/** Set Net Price.
|
||||||
|
* Net Price including all discounts
|
||||||
|
*/
|
||||||
|
public void setIsNetPrice (boolean IsNetPrice);
|
||||||
|
|
||||||
|
/** Get Net Price.
|
||||||
|
* Net Price including all discounts
|
||||||
|
*/
|
||||||
|
public boolean isNetPrice();
|
||||||
|
|
||||||
|
/** Column name M_BP_Price_ID */
|
||||||
|
public static final String COLUMNNAME_M_BP_Price_ID = "M_BP_Price_ID";
|
||||||
|
|
||||||
|
/** Set Business Partner Price */
|
||||||
|
public void setM_BP_Price_ID (int M_BP_Price_ID);
|
||||||
|
|
||||||
|
/** Get Business Partner Price */
|
||||||
|
public int getM_BP_Price_ID();
|
||||||
|
|
||||||
|
/** Column name M_BP_Price_UU */
|
||||||
|
public static final String COLUMNNAME_M_BP_Price_UU = "M_BP_Price_UU";
|
||||||
|
|
||||||
|
/** Set M_BP_Price_UU */
|
||||||
|
public void setM_BP_Price_UU (String M_BP_Price_UU);
|
||||||
|
|
||||||
|
/** Get M_BP_Price_UU */
|
||||||
|
public String getM_BP_Price_UU();
|
||||||
|
|
||||||
|
/** Column name M_Product_ID */
|
||||||
|
public static final String COLUMNNAME_M_Product_ID = "M_Product_ID";
|
||||||
|
|
||||||
|
/** Set Product.
|
||||||
|
* Product, Service, Item
|
||||||
|
*/
|
||||||
|
public void setM_Product_ID (int M_Product_ID);
|
||||||
|
|
||||||
|
/** Get Product.
|
||||||
|
* Product, Service, Item
|
||||||
|
*/
|
||||||
|
public int getM_Product_ID();
|
||||||
|
|
||||||
|
public org.compiere.model.I_M_Product getM_Product() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name PriceLimit */
|
||||||
|
public static final String COLUMNNAME_PriceLimit = "PriceLimit";
|
||||||
|
|
||||||
|
/** Set Limit Price.
|
||||||
|
* Lowest price for a product
|
||||||
|
*/
|
||||||
|
public void setPriceLimit (BigDecimal PriceLimit);
|
||||||
|
|
||||||
|
/** Get Limit Price.
|
||||||
|
* Lowest price for a product
|
||||||
|
*/
|
||||||
|
public BigDecimal getPriceLimit();
|
||||||
|
|
||||||
|
/** Column name PriceList */
|
||||||
|
public static final String COLUMNNAME_PriceList = "PriceList";
|
||||||
|
|
||||||
|
/** Set List Price.
|
||||||
|
* List Price
|
||||||
|
*/
|
||||||
|
public void setPriceList (BigDecimal PriceList);
|
||||||
|
|
||||||
|
/** Get List Price.
|
||||||
|
* List Price
|
||||||
|
*/
|
||||||
|
public BigDecimal getPriceList();
|
||||||
|
|
||||||
|
/** Column name PriceOverrideType */
|
||||||
|
public static final String COLUMNNAME_PriceOverrideType = "PriceOverrideType";
|
||||||
|
|
||||||
|
/** Set Price Override Type.
|
||||||
|
* Type of price override, fixed price or discount off list
|
||||||
|
*/
|
||||||
|
public void setPriceOverrideType (String PriceOverrideType);
|
||||||
|
|
||||||
|
/** Get Price Override Type.
|
||||||
|
* Type of price override, fixed price or discount off list
|
||||||
|
*/
|
||||||
|
public String getPriceOverrideType();
|
||||||
|
|
||||||
|
/** Column name PriceStd */
|
||||||
|
public static final String COLUMNNAME_PriceStd = "PriceStd";
|
||||||
|
|
||||||
|
/** Set Standard Price.
|
||||||
|
* Standard Price
|
||||||
|
*/
|
||||||
|
public void setPriceStd (BigDecimal PriceStd);
|
||||||
|
|
||||||
|
/** Get Standard Price.
|
||||||
|
* Standard Price
|
||||||
|
*/
|
||||||
|
public BigDecimal getPriceStd();
|
||||||
|
|
||||||
|
/** Column name Updated */
|
||||||
|
public static final String COLUMNNAME_Updated = "Updated";
|
||||||
|
|
||||||
|
/** Get Updated.
|
||||||
|
* Date this record was updated
|
||||||
|
*/
|
||||||
|
public Timestamp getUpdated();
|
||||||
|
|
||||||
|
/** Column name UpdatedBy */
|
||||||
|
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
|
||||||
|
|
||||||
|
/** Get Updated By.
|
||||||
|
* User who updated this records
|
||||||
|
*/
|
||||||
|
public int getUpdatedBy();
|
||||||
|
|
||||||
|
/** Column name ValidFrom */
|
||||||
|
public static final String COLUMNNAME_ValidFrom = "ValidFrom";
|
||||||
|
|
||||||
|
/** Set Valid from.
|
||||||
|
* Valid from including this date (first day)
|
||||||
|
*/
|
||||||
|
public void setValidFrom (Timestamp ValidFrom);
|
||||||
|
|
||||||
|
/** Get Valid from.
|
||||||
|
* Valid from including this date (first day)
|
||||||
|
*/
|
||||||
|
public Timestamp getValidFrom();
|
||||||
|
|
||||||
|
/** Column name ValidTo */
|
||||||
|
public static final String COLUMNNAME_ValidTo = "ValidTo";
|
||||||
|
|
||||||
|
/** Set Valid to.
|
||||||
|
* Valid to including this date (last day)
|
||||||
|
*/
|
||||||
|
public void setValidTo (Timestamp ValidTo);
|
||||||
|
|
||||||
|
/** Get Valid to.
|
||||||
|
* Valid to including this date (last day)
|
||||||
|
*/
|
||||||
|
public Timestamp getValidTo();
|
||||||
|
}
|
|
@ -0,0 +1,49 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||||
|
* Copyright (C) 1999-2006 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 *
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
package org.compiere.model;
|
||||||
|
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.util.Properties;
|
||||||
|
|
||||||
|
public class MOpportunity extends X_C_Opportunity {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 9052544341602655427L;
|
||||||
|
|
||||||
|
public MOpportunity(Properties ctx, int C_Opportunity_ID, String trxName) {
|
||||||
|
super(ctx, C_Opportunity_ID, trxName);
|
||||||
|
}
|
||||||
|
|
||||||
|
public MOpportunity(Properties ctx, ResultSet rs, String trxName) {
|
||||||
|
super(ctx, rs, trxName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected boolean beforeSave(boolean newRecord) {
|
||||||
|
if ( getC_Order_ID() > 0 )
|
||||||
|
{
|
||||||
|
I_C_Order order = getC_Order();
|
||||||
|
if ( order != null )
|
||||||
|
setOpportunityAmt(order.getGrandTotal());
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,169 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||||
|
* Copyright (C) 1999-2006 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 *
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
package org.compiere.model;
|
||||||
|
|
||||||
|
import org.compiere.model.MClient;
|
||||||
|
import org.compiere.model.MOrderLine;
|
||||||
|
import org.compiere.model.ModelValidationEngine;
|
||||||
|
import org.compiere.model.ModelValidator;
|
||||||
|
import org.compiere.model.PO;
|
||||||
|
import org.compiere.util.CLogger;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Validator for Sales Management module
|
||||||
|
*
|
||||||
|
* @author Paul Bowden www.adaxa.com.au
|
||||||
|
*/
|
||||||
|
public class SalesMgmtValidator implements ModelValidator
|
||||||
|
{
|
||||||
|
public SalesMgmtValidator ()
|
||||||
|
{
|
||||||
|
super ();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Logger */
|
||||||
|
private static CLogger log = CLogger.getCLogger(SalesMgmtValidator.class);
|
||||||
|
/** Client */
|
||||||
|
private int m_AD_Client_ID = -1;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialize Validation
|
||||||
|
* @param engine validation engine
|
||||||
|
* @param client client
|
||||||
|
*/
|
||||||
|
public void initialize (ModelValidationEngine engine, MClient client)
|
||||||
|
{
|
||||||
|
//client = null for global validator
|
||||||
|
if (client != null) {
|
||||||
|
m_AD_Client_ID = client.getAD_Client_ID();
|
||||||
|
log.info(client.toString());
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
log.info("Initializing global validator: "+this.toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
// Tables to be monitored
|
||||||
|
engine.addModelChange(MOrder.Table_Name, this);
|
||||||
|
engine.addModelChange(MOrderLine.Table_Name, this);
|
||||||
|
|
||||||
|
// Documents to be monitored
|
||||||
|
// engine.addDocValidate(MInvoice.Table_Name, this);
|
||||||
|
|
||||||
|
} // initialize
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model Change of a monitored Table.
|
||||||
|
* Called after PO.beforeSave/PO.beforeDelete
|
||||||
|
* when you called addModelChange for the table
|
||||||
|
* @param po persistent object
|
||||||
|
* @param type TYPE_
|
||||||
|
* @return error message or null
|
||||||
|
* @exception Exception if the recipient wishes the change to be not accept.
|
||||||
|
*/
|
||||||
|
public String modelChange (PO po, int type) throws Exception
|
||||||
|
{
|
||||||
|
if ( po == null )
|
||||||
|
return null;
|
||||||
|
|
||||||
|
log.info(po.get_TableName() + " Type: "+type);
|
||||||
|
|
||||||
|
if (po.get_TableName().equals(MOrder.Table_Name) &&
|
||||||
|
(type == ModelValidator.TYPE_AFTER_NEW || type == ModelValidator.TYPE_AFTER_CHANGE ) )
|
||||||
|
{
|
||||||
|
|
||||||
|
MOrder order = (MOrder) po;
|
||||||
|
|
||||||
|
syncOpportunity(order);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (po.get_TableName().equals(MOrderLine.Table_Name) &&
|
||||||
|
(type == ModelValidator.TYPE_AFTER_NEW || type == ModelValidator.TYPE_AFTER_CHANGE ) )
|
||||||
|
{
|
||||||
|
MOrderLine line = (MOrderLine) po;
|
||||||
|
|
||||||
|
MOrder order = (MOrder) line.getC_Order();
|
||||||
|
|
||||||
|
syncOpportunity(order);
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
} // modelChange
|
||||||
|
|
||||||
|
private void syncOpportunity(MOrder order) {
|
||||||
|
int opId = order.get_ValueAsInt("C_Opportunity_ID");
|
||||||
|
if ( opId > 0 )
|
||||||
|
{
|
||||||
|
MOpportunity op = new MOpportunity(order.getCtx(), opId, order.get_TrxName());
|
||||||
|
if (op != null && op.getC_Order_ID() == order.getC_Order_ID())
|
||||||
|
op.setOpportunityAmt(order.getGrandTotal());
|
||||||
|
op.saveEx();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Validate Document.
|
||||||
|
* Called as first step of DocAction.prepareIt
|
||||||
|
* when you called addDocValidate for the table.
|
||||||
|
* Note that totals, etc. may not be correct.
|
||||||
|
* @param po persistent object
|
||||||
|
* @param timing see TIMING_ constants
|
||||||
|
* @return error message or null
|
||||||
|
*/
|
||||||
|
public String docValidate (PO po, int timing)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
} // docValidate
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User Login.
|
||||||
|
* Called when preferences are set
|
||||||
|
* @param AD_Org_ID org
|
||||||
|
* @param AD_Role_ID role
|
||||||
|
* @param AD_User_ID user
|
||||||
|
* @return error message or null
|
||||||
|
*/
|
||||||
|
public String login (int AD_Org_ID, int AD_Role_ID, int AD_User_ID)
|
||||||
|
{
|
||||||
|
log.info("AD_User_ID=" + AD_User_ID);
|
||||||
|
return null;
|
||||||
|
} // login
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Client to be monitored
|
||||||
|
* @return AD_Client_ID client
|
||||||
|
*/
|
||||||
|
public int getAD_Client_ID()
|
||||||
|
{
|
||||||
|
return m_AD_Client_ID;
|
||||||
|
} // getAD_Client_ID
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* String Representation
|
||||||
|
* @return info
|
||||||
|
*/
|
||||||
|
public String toString ()
|
||||||
|
{
|
||||||
|
StringBuffer sb = new StringBuffer ("SalesMgmtValidator");
|
||||||
|
return sb.toString ();
|
||||||
|
} // toString
|
||||||
|
|
||||||
|
} // Validator
|
|
@ -32,7 +32,7 @@ public class X_AD_Column extends PO implements I_AD_Column, I_Persistent
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 20130705L;
|
private static final long serialVersionUID = 20130826L;
|
||||||
|
|
||||||
/** Standard Constructor */
|
/** Standard Constructor */
|
||||||
public X_AD_Column (Properties ctx, int AD_Column_ID, String trxName)
|
public X_AD_Column (Properties ctx, int AD_Column_ID, String trxName)
|
||||||
|
@ -100,6 +100,31 @@ public class X_AD_Column extends PO implements I_AD_Column, I_Persistent
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public org.compiere.model.I_AD_Chart getAD_Chart() throws RuntimeException
|
||||||
|
{
|
||||||
|
return (org.compiere.model.I_AD_Chart)MTable.get(getCtx(), org.compiere.model.I_AD_Chart.Table_Name)
|
||||||
|
.getPO(getAD_Chart_ID(), get_TrxName()); }
|
||||||
|
|
||||||
|
/** Set Chart.
|
||||||
|
@param AD_Chart_ID Chart */
|
||||||
|
public void setAD_Chart_ID (int AD_Chart_ID)
|
||||||
|
{
|
||||||
|
if (AD_Chart_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_AD_Chart_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_AD_Chart_ID, Integer.valueOf(AD_Chart_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Chart.
|
||||||
|
@return Chart */
|
||||||
|
public int getAD_Chart_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Chart_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
/** Set Column.
|
/** Set Column.
|
||||||
@param AD_Column_ID
|
@param AD_Column_ID
|
||||||
Column in the table
|
Column in the table
|
||||||
|
|
|
@ -32,7 +32,7 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 20130801L;
|
private static final long serialVersionUID = 20130826L;
|
||||||
|
|
||||||
/** Standard Constructor */
|
/** Standard Constructor */
|
||||||
public X_AD_Field (Properties ctx, int AD_Field_ID, String trxName)
|
public X_AD_Field (Properties ctx, int AD_Field_ID, String trxName)
|
||||||
|
@ -47,6 +47,8 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent
|
||||||
// U
|
// U
|
||||||
setIsCentrallyMaintained (true);
|
setIsCentrallyMaintained (true);
|
||||||
// Y
|
// Y
|
||||||
|
setIsDefaultFocus (false);
|
||||||
|
// N
|
||||||
setIsDisplayed (true);
|
setIsDisplayed (true);
|
||||||
// Y
|
// Y
|
||||||
setIsEncrypted (false);
|
setIsEncrypted (false);
|
||||||
|
@ -542,6 +544,27 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Set Default Focus.
|
||||||
|
@param IsDefaultFocus Default Focus */
|
||||||
|
public void setIsDefaultFocus (boolean IsDefaultFocus)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_IsDefaultFocus, Boolean.valueOf(IsDefaultFocus));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Default Focus.
|
||||||
|
@return Default Focus */
|
||||||
|
public boolean isDefaultFocus ()
|
||||||
|
{
|
||||||
|
Object oo = get_Value(COLUMNNAME_IsDefaultFocus);
|
||||||
|
if (oo != null)
|
||||||
|
{
|
||||||
|
if (oo instanceof Boolean)
|
||||||
|
return ((Boolean)oo).booleanValue();
|
||||||
|
return "Y".equals(oo);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/** Set Displayed.
|
/** Set Displayed.
|
||||||
@param IsDisplayed
|
@param IsDisplayed
|
||||||
Determines, if this field is displayed
|
Determines, if this field is displayed
|
||||||
|
|
|
@ -31,7 +31,7 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 20130626L;
|
private static final long serialVersionUID = 20130826L;
|
||||||
|
|
||||||
/** Standard Constructor */
|
/** Standard Constructor */
|
||||||
public X_AD_User (Properties ctx, int AD_User_ID, String trxName)
|
public X_AD_User (Properties ctx, int AD_User_ID, String trxName)
|
||||||
|
@ -52,6 +52,8 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent
|
||||||
// 'N'
|
// 'N'
|
||||||
setIsNoPasswordReset (false);
|
setIsNoPasswordReset (false);
|
||||||
// 'N'
|
// 'N'
|
||||||
|
setIsSalesLead (false);
|
||||||
|
// N
|
||||||
setName (null);
|
setName (null);
|
||||||
setNotificationType (null);
|
setNotificationType (null);
|
||||||
// E
|
// E
|
||||||
|
@ -177,6 +179,48 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent
|
||||||
return (Timestamp)get_Value(COLUMNNAME_Birthday);
|
return (Timestamp)get_Value(COLUMNNAME_Birthday);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public I_C_Location getBP_Location() throws RuntimeException
|
||||||
|
{
|
||||||
|
return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name)
|
||||||
|
.getPO(getBP_Location_ID(), get_TrxName()); }
|
||||||
|
|
||||||
|
/** Set BP Address.
|
||||||
|
@param BP_Location_ID
|
||||||
|
Address of the Business Partner
|
||||||
|
*/
|
||||||
|
public void setBP_Location_ID (int BP_Location_ID)
|
||||||
|
{
|
||||||
|
if (BP_Location_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_BP_Location_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_BP_Location_ID, Integer.valueOf(BP_Location_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get BP Address.
|
||||||
|
@return Address of the Business Partner
|
||||||
|
*/
|
||||||
|
public int getBP_Location_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_BP_Location_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set BP Name.
|
||||||
|
@param BPName BP Name */
|
||||||
|
public void setBPName (String BPName)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_BPName, BPName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get BP Name.
|
||||||
|
@return BP Name */
|
||||||
|
public String getBPName ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_BPName);
|
||||||
|
}
|
||||||
|
|
||||||
public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException
|
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_Name)
|
return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_Name)
|
||||||
|
@ -233,6 +277,34 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent
|
||||||
return ii.intValue();
|
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_Name)
|
||||||
|
.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_Greeting getC_Greeting() throws RuntimeException
|
public org.compiere.model.I_C_Greeting getC_Greeting() throws RuntimeException
|
||||||
{
|
{
|
||||||
return (org.compiere.model.I_C_Greeting)MTable.get(getCtx(), org.compiere.model.I_C_Greeting.Table_Name)
|
return (org.compiere.model.I_C_Greeting)MTable.get(getCtx(), org.compiere.model.I_C_Greeting.Table_Name)
|
||||||
|
@ -289,6 +361,34 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent
|
||||||
return ii.intValue();
|
return ii.intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public I_C_Location getC_Location() throws RuntimeException
|
||||||
|
{
|
||||||
|
return (I_C_Location)MTable.get(getCtx(), I_C_Location.Table_Name)
|
||||||
|
.getPO(getC_Location_ID(), get_TrxName()); }
|
||||||
|
|
||||||
|
/** Set Address.
|
||||||
|
@param C_Location_ID
|
||||||
|
Location or Address
|
||||||
|
*/
|
||||||
|
public void setC_Location_ID (int C_Location_ID)
|
||||||
|
{
|
||||||
|
if (C_Location_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_C_Location_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_C_Location_ID, Integer.valueOf(C_Location_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Address.
|
||||||
|
@return Location or Address
|
||||||
|
*/
|
||||||
|
public int getC_Location_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_C_Location_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
/** Set Comments.
|
/** Set Comments.
|
||||||
@param Comments
|
@param Comments
|
||||||
Comments or additional information
|
Comments or additional information
|
||||||
|
@ -619,6 +719,30 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Set Sales Lead.
|
||||||
|
@param IsSalesLead
|
||||||
|
This contact is a sales lead
|
||||||
|
*/
|
||||||
|
public void setIsSalesLead (boolean IsSalesLead)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_IsSalesLead, Boolean.valueOf(IsSalesLead));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Sales Lead.
|
||||||
|
@return This contact is a sales lead
|
||||||
|
*/
|
||||||
|
public boolean isSalesLead ()
|
||||||
|
{
|
||||||
|
Object oo = get_Value(COLUMNNAME_IsSalesLead);
|
||||||
|
if (oo != null)
|
||||||
|
{
|
||||||
|
if (oo instanceof Boolean)
|
||||||
|
return ((Boolean)oo).booleanValue();
|
||||||
|
return "Y".equals(oo);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/** Set Last Contact.
|
/** Set Last Contact.
|
||||||
@param LastContact
|
@param LastContact
|
||||||
Date this individual was last contacted
|
Date this individual was last contacted
|
||||||
|
@ -670,6 +794,108 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent
|
||||||
return (String)get_Value(COLUMNNAME_LDAPUser);
|
return (String)get_Value(COLUMNNAME_LDAPUser);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** LeadSource AD_Reference_ID=53415 */
|
||||||
|
public static final int LEADSOURCE_AD_Reference_ID=53415;
|
||||||
|
/** Cold Call = CC */
|
||||||
|
public static final String LEADSOURCE_ColdCall = "CC";
|
||||||
|
/** Existing Customer = EC */
|
||||||
|
public static final String LEADSOURCE_ExistingCustomer = "EC";
|
||||||
|
/** Employee = EM */
|
||||||
|
public static final String LEADSOURCE_Employee = "EM";
|
||||||
|
/** Partner = PT */
|
||||||
|
public static final String LEADSOURCE_Partner = "PT";
|
||||||
|
/** Conference = CN */
|
||||||
|
public static final String LEADSOURCE_Conference = "CN";
|
||||||
|
/** Trade Show = TS */
|
||||||
|
public static final String LEADSOURCE_TradeShow = "TS";
|
||||||
|
/** Web Site = WS */
|
||||||
|
public static final String LEADSOURCE_WebSite = "WS";
|
||||||
|
/** Word of Mouth = WM */
|
||||||
|
public static final String LEADSOURCE_WordOfMouth = "WM";
|
||||||
|
/** Email = EL */
|
||||||
|
public static final String LEADSOURCE_Email = "EL";
|
||||||
|
/** Set Lead Source.
|
||||||
|
@param LeadSource
|
||||||
|
The source of this lead/opportunity
|
||||||
|
*/
|
||||||
|
public void setLeadSource (String LeadSource)
|
||||||
|
{
|
||||||
|
|
||||||
|
set_Value (COLUMNNAME_LeadSource, LeadSource);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Lead Source.
|
||||||
|
@return The source of this lead/opportunity
|
||||||
|
*/
|
||||||
|
public String getLeadSource ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_LeadSource);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Lead Source Description.
|
||||||
|
@param LeadSourceDescription
|
||||||
|
Additional information on the source of this lead/opportunity
|
||||||
|
*/
|
||||||
|
public void setLeadSourceDescription (String LeadSourceDescription)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_LeadSourceDescription, LeadSourceDescription);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Lead Source Description.
|
||||||
|
@return Additional information on the source of this lead/opportunity
|
||||||
|
*/
|
||||||
|
public String getLeadSourceDescription ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_LeadSourceDescription);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** LeadStatus AD_Reference_ID=53416 */
|
||||||
|
public static final int LEADSTATUS_AD_Reference_ID=53416;
|
||||||
|
/** New = N */
|
||||||
|
public static final String LEADSTATUS_New = "N";
|
||||||
|
/** Working = W */
|
||||||
|
public static final String LEADSTATUS_Working = "W";
|
||||||
|
/** Expired = E */
|
||||||
|
public static final String LEADSTATUS_Expired = "E";
|
||||||
|
/** Recycled = R */
|
||||||
|
public static final String LEADSTATUS_Recycled = "R";
|
||||||
|
/** Converted = C */
|
||||||
|
public static final String LEADSTATUS_Converted = "C";
|
||||||
|
/** Set Lead Status.
|
||||||
|
@param LeadStatus
|
||||||
|
The status of this lead/opportunity in the sales cycle
|
||||||
|
*/
|
||||||
|
public void setLeadStatus (String LeadStatus)
|
||||||
|
{
|
||||||
|
|
||||||
|
set_Value (COLUMNNAME_LeadStatus, LeadStatus);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Lead Status.
|
||||||
|
@return The status of this lead/opportunity in the sales cycle
|
||||||
|
*/
|
||||||
|
public String getLeadStatus ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_LeadStatus);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Lead Status Description.
|
||||||
|
@param LeadStatusDescription
|
||||||
|
Additional information on the status of this lead/opportunity
|
||||||
|
*/
|
||||||
|
public void setLeadStatusDescription (String LeadStatusDescription)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_LeadStatusDescription, LeadStatusDescription);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Lead Status Description.
|
||||||
|
@return Additional information on the status of this lead/opportunity
|
||||||
|
*/
|
||||||
|
public String getLeadStatusDescription ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_LeadStatusDescription);
|
||||||
|
}
|
||||||
|
|
||||||
/** Set Name.
|
/** Set Name.
|
||||||
@param Name
|
@param Name
|
||||||
Alphanumeric identifier of the entity
|
Alphanumeric identifier of the entity
|
||||||
|
@ -795,6 +1021,34 @@ public class X_AD_User extends PO implements I_AD_User, I_Persistent
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public org.compiere.model.I_AD_User getSalesRep() throws RuntimeException
|
||||||
|
{
|
||||||
|
return (org.compiere.model.I_AD_User)MTable.get(getCtx(), org.compiere.model.I_AD_User.Table_Name)
|
||||||
|
.getPO(getSalesRep_ID(), get_TrxName()); }
|
||||||
|
|
||||||
|
/** Set Sales Representative.
|
||||||
|
@param SalesRep_ID
|
||||||
|
Sales Representative or Company Agent
|
||||||
|
*/
|
||||||
|
public void setSalesRep_ID (int SalesRep_ID)
|
||||||
|
{
|
||||||
|
if (SalesRep_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_SalesRep_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Sales Representative.
|
||||||
|
@return Sales Representative or Company Agent
|
||||||
|
*/
|
||||||
|
public int getSalesRep_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
/** Set Salt.
|
/** Set Salt.
|
||||||
@param Salt
|
@param Salt
|
||||||
Random data added to improve password hash effectiveness
|
Random data added to improve password hash effectiveness
|
||||||
|
|
|
@ -29,7 +29,7 @@ public class X_AD_ViewColumn extends PO implements I_AD_ViewColumn, I_Persistent
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 20130704L;
|
private static final long serialVersionUID = 20130826L;
|
||||||
|
|
||||||
/** Standard Constructor */
|
/** Standard Constructor */
|
||||||
public X_AD_ViewColumn (Properties ctx, int AD_ViewColumn_ID, String trxName)
|
public X_AD_ViewColumn (Properties ctx, int AD_ViewColumn_ID, String trxName)
|
||||||
|
@ -39,6 +39,7 @@ public class X_AD_ViewColumn extends PO implements I_AD_ViewColumn, I_Persistent
|
||||||
{
|
{
|
||||||
setAD_ViewColumn_ID (0);
|
setAD_ViewColumn_ID (0);
|
||||||
setAD_ViewComponent_ID (0);
|
setAD_ViewComponent_ID (0);
|
||||||
|
setColumnName (null);
|
||||||
setEntityType (null);
|
setEntityType (null);
|
||||||
// U
|
// U
|
||||||
} */
|
} */
|
||||||
|
|
|
@ -30,7 +30,7 @@ public class X_AD_ViewComponent extends PO implements I_AD_ViewComponent, I_Pers
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = 20130704L;
|
private static final long serialVersionUID = 20130826L;
|
||||||
|
|
||||||
/** Standard Constructor */
|
/** Standard Constructor */
|
||||||
public X_AD_ViewComponent (Properties ctx, int AD_ViewComponent_ID, String trxName)
|
public X_AD_ViewComponent (Properties ctx, int AD_ViewComponent_ID, String trxName)
|
||||||
|
@ -42,6 +42,7 @@ public class X_AD_ViewComponent extends PO implements I_AD_ViewComponent, I_Pers
|
||||||
setAD_ViewComponent_ID (0);
|
setAD_ViewComponent_ID (0);
|
||||||
setEntityType (null);
|
setEntityType (null);
|
||||||
// U
|
// U
|
||||||
|
setFromClause (null);
|
||||||
setName (null);
|
setName (null);
|
||||||
} */
|
} */
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,318 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* 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.compiere.model;
|
||||||
|
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.sql.Timestamp;
|
||||||
|
import java.util.Properties;
|
||||||
|
import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
|
/** Generated Model for C_ContactActivity
|
||||||
|
* @author iDempiere (generated)
|
||||||
|
* @version Release 1.0c - $Id$ */
|
||||||
|
public class X_C_ContactActivity extends PO implements I_C_ContactActivity, I_Persistent
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 20130826L;
|
||||||
|
|
||||||
|
/** Standard Constructor */
|
||||||
|
public X_C_ContactActivity (Properties ctx, int C_ContactActivity_ID, String trxName)
|
||||||
|
{
|
||||||
|
super (ctx, C_ContactActivity_ID, trxName);
|
||||||
|
/** if (C_ContactActivity_ID == 0)
|
||||||
|
{
|
||||||
|
setC_ContactActivity_ID (0);
|
||||||
|
setContactActivityType (null);
|
||||||
|
setDescription (null);
|
||||||
|
setStartDate (new Timestamp( System.currentTimeMillis() ));
|
||||||
|
// @SQL=SELECT SYSDATE AS DefaultValue FROM DUAL
|
||||||
|
} */
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Load Constructor */
|
||||||
|
public X_C_ContactActivity (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()
|
||||||
|
{
|
||||||
|
StringBuffer sb = new StringBuffer ("X_C_ContactActivity[")
|
||||||
|
.append(get_ID()).append("]");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
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_Name)
|
||||||
|
.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 Contact Activity.
|
||||||
|
@param C_ContactActivity_ID
|
||||||
|
Events, tasks, communications related to a contact
|
||||||
|
*/
|
||||||
|
public void setC_ContactActivity_ID (int C_ContactActivity_ID)
|
||||||
|
{
|
||||||
|
if (C_ContactActivity_ID < 1)
|
||||||
|
set_ValueNoCheck (COLUMNNAME_C_ContactActivity_ID, null);
|
||||||
|
else
|
||||||
|
set_ValueNoCheck (COLUMNNAME_C_ContactActivity_ID, Integer.valueOf(C_ContactActivity_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Contact Activity.
|
||||||
|
@return Events, tasks, communications related to a contact
|
||||||
|
*/
|
||||||
|
public int getC_ContactActivity_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_C_ContactActivity_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set C_ContactActivity_UU.
|
||||||
|
@param C_ContactActivity_UU C_ContactActivity_UU */
|
||||||
|
public void setC_ContactActivity_UU (String C_ContactActivity_UU)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_C_ContactActivity_UU, C_ContactActivity_UU);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get C_ContactActivity_UU.
|
||||||
|
@return C_ContactActivity_UU */
|
||||||
|
public String getC_ContactActivity_UU ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_C_ContactActivity_UU);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Comments.
|
||||||
|
@param Comments
|
||||||
|
Comments or additional information
|
||||||
|
*/
|
||||||
|
public void setComments (String Comments)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_Comments, Comments);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Comments.
|
||||||
|
@return Comments or additional information
|
||||||
|
*/
|
||||||
|
public String getComments ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_Comments);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** ContactActivityType AD_Reference_ID=53423 */
|
||||||
|
public static final int CONTACTACTIVITYTYPE_AD_Reference_ID=53423;
|
||||||
|
/** Email = EM */
|
||||||
|
public static final String CONTACTACTIVITYTYPE_Email = "EM";
|
||||||
|
/** Phone call = PC */
|
||||||
|
public static final String CONTACTACTIVITYTYPE_PhoneCall = "PC";
|
||||||
|
/** Meeting = ME */
|
||||||
|
public static final String CONTACTACTIVITYTYPE_Meeting = "ME";
|
||||||
|
/** Task = TA */
|
||||||
|
public static final String CONTACTACTIVITYTYPE_Task = "TA";
|
||||||
|
/** Set Activity Type.
|
||||||
|
@param ContactActivityType
|
||||||
|
Type of activity, e.g. task, email, phone call
|
||||||
|
*/
|
||||||
|
public void setContactActivityType (String ContactActivityType)
|
||||||
|
{
|
||||||
|
|
||||||
|
set_ValueNoCheck (COLUMNNAME_ContactActivityType, ContactActivityType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Activity Type.
|
||||||
|
@return Type of activity, e.g. task, email, phone call
|
||||||
|
*/
|
||||||
|
public String getContactActivityType ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_ContactActivityType);
|
||||||
|
}
|
||||||
|
|
||||||
|
public org.compiere.model.I_C_Opportunity getC_Opportunity() throws RuntimeException
|
||||||
|
{
|
||||||
|
return (org.compiere.model.I_C_Opportunity)MTable.get(getCtx(), org.compiere.model.I_C_Opportunity.Table_Name)
|
||||||
|
.getPO(getC_Opportunity_ID(), get_TrxName()); }
|
||||||
|
|
||||||
|
/** Set Sales Opportunity.
|
||||||
|
@param C_Opportunity_ID Sales Opportunity */
|
||||||
|
public void setC_Opportunity_ID (int C_Opportunity_ID)
|
||||||
|
{
|
||||||
|
if (C_Opportunity_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_C_Opportunity_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_C_Opportunity_ID, Integer.valueOf(C_Opportunity_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Sales Opportunity.
|
||||||
|
@return Sales Opportunity */
|
||||||
|
public int getC_Opportunity_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_C_Opportunity_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Description.
|
||||||
|
@param Description
|
||||||
|
Optional short description of the record
|
||||||
|
*/
|
||||||
|
public void setDescription (String Description)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_Description, Description);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Description.
|
||||||
|
@return Optional short description of the record
|
||||||
|
*/
|
||||||
|
public String getDescription ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_Description);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Record ID/ColumnName
|
||||||
|
@return ID/ColumnName pair
|
||||||
|
*/
|
||||||
|
public KeyNamePair getKeyNamePair()
|
||||||
|
{
|
||||||
|
return new KeyNamePair(get_ID(), getDescription());
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set End Date.
|
||||||
|
@param EndDate
|
||||||
|
Last effective date (inclusive)
|
||||||
|
*/
|
||||||
|
public void setEndDate (Timestamp EndDate)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_EndDate, EndDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get End Date.
|
||||||
|
@return Last effective date (inclusive)
|
||||||
|
*/
|
||||||
|
public Timestamp getEndDate ()
|
||||||
|
{
|
||||||
|
return (Timestamp)get_Value(COLUMNNAME_EndDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Complete.
|
||||||
|
@param IsComplete
|
||||||
|
It is complete
|
||||||
|
*/
|
||||||
|
public void setIsComplete (boolean IsComplete)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_IsComplete, Boolean.valueOf(IsComplete));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Complete.
|
||||||
|
@return It is complete
|
||||||
|
*/
|
||||||
|
public boolean isComplete ()
|
||||||
|
{
|
||||||
|
Object oo = get_Value(COLUMNNAME_IsComplete);
|
||||||
|
if (oo != null)
|
||||||
|
{
|
||||||
|
if (oo instanceof Boolean)
|
||||||
|
return ((Boolean)oo).booleanValue();
|
||||||
|
return "Y".equals(oo);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Sales Representative.
|
||||||
|
@param SalesRep_ID
|
||||||
|
Sales Representative or Company Agent
|
||||||
|
*/
|
||||||
|
public void setSalesRep_ID (int SalesRep_ID)
|
||||||
|
{
|
||||||
|
if (SalesRep_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_SalesRep_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Sales Representative.
|
||||||
|
@return Sales Representative or Company Agent
|
||||||
|
*/
|
||||||
|
public int getSalesRep_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Start Date.
|
||||||
|
@param StartDate
|
||||||
|
First effective day (inclusive)
|
||||||
|
*/
|
||||||
|
public void setStartDate (Timestamp StartDate)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_StartDate, StartDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Start Date.
|
||||||
|
@return First effective day (inclusive)
|
||||||
|
*/
|
||||||
|
public Timestamp getStartDate ()
|
||||||
|
{
|
||||||
|
return (Timestamp)get_Value(COLUMNNAME_StartDate);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,482 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* 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.compiere.model;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.sql.Timestamp;
|
||||||
|
import java.util.Properties;
|
||||||
|
import org.compiere.util.Env;
|
||||||
|
import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
|
/** Generated Model for C_Opportunity
|
||||||
|
* @author iDempiere (generated)
|
||||||
|
* @version Release 1.0c - $Id$ */
|
||||||
|
public class X_C_Opportunity extends PO implements I_C_Opportunity, I_Persistent
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 20130826L;
|
||||||
|
|
||||||
|
/** Standard Constructor */
|
||||||
|
public X_C_Opportunity (Properties ctx, int C_Opportunity_ID, String trxName)
|
||||||
|
{
|
||||||
|
super (ctx, C_Opportunity_ID, trxName);
|
||||||
|
/** if (C_Opportunity_ID == 0)
|
||||||
|
{
|
||||||
|
setC_BPartner_ID (0);
|
||||||
|
// @C_BPartner_ID@
|
||||||
|
setC_Currency_ID (0);
|
||||||
|
setC_Opportunity_ID (0);
|
||||||
|
setC_SalesStage_ID (0);
|
||||||
|
setDocumentNo (null);
|
||||||
|
setExpectedCloseDate (new Timestamp( System.currentTimeMillis() ));
|
||||||
|
setOpportunityAmt (Env.ZERO);
|
||||||
|
setProbability (Env.ZERO);
|
||||||
|
} */
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Load Constructor */
|
||||||
|
public X_C_Opportunity (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()
|
||||||
|
{
|
||||||
|
StringBuffer sb = new StringBuffer ("X_C_Opportunity[")
|
||||||
|
.append(get_ID()).append("]");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
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_Name)
|
||||||
|
.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();
|
||||||
|
}
|
||||||
|
|
||||||
|
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_Name)
|
||||||
|
.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_Name)
|
||||||
|
.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_Currency getC_Currency() throws RuntimeException
|
||||||
|
{
|
||||||
|
return (org.compiere.model.I_C_Currency)MTable.get(getCtx(), org.compiere.model.I_C_Currency.Table_Name)
|
||||||
|
.getPO(getC_Currency_ID(), get_TrxName()); }
|
||||||
|
|
||||||
|
/** Set Currency.
|
||||||
|
@param C_Currency_ID
|
||||||
|
The Currency for this record
|
||||||
|
*/
|
||||||
|
public void setC_Currency_ID (int C_Currency_ID)
|
||||||
|
{
|
||||||
|
if (C_Currency_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_C_Currency_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Currency.
|
||||||
|
@return The Currency for this record
|
||||||
|
*/
|
||||||
|
public int getC_Currency_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Close Date.
|
||||||
|
@param CloseDate
|
||||||
|
Close Date
|
||||||
|
*/
|
||||||
|
public void setCloseDate (Timestamp CloseDate)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_CloseDate, CloseDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Close Date.
|
||||||
|
@return Close Date
|
||||||
|
*/
|
||||||
|
public Timestamp getCloseDate ()
|
||||||
|
{
|
||||||
|
return (Timestamp)get_Value(COLUMNNAME_CloseDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Comments.
|
||||||
|
@param Comments
|
||||||
|
Comments or additional information
|
||||||
|
*/
|
||||||
|
public void setComments (String Comments)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_Comments, Comments);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Comments.
|
||||||
|
@return Comments or additional information
|
||||||
|
*/
|
||||||
|
public String getComments ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_Comments);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Sales Opportunity.
|
||||||
|
@param C_Opportunity_ID Sales Opportunity */
|
||||||
|
public void setC_Opportunity_ID (int C_Opportunity_ID)
|
||||||
|
{
|
||||||
|
if (C_Opportunity_ID < 1)
|
||||||
|
set_ValueNoCheck (COLUMNNAME_C_Opportunity_ID, null);
|
||||||
|
else
|
||||||
|
set_ValueNoCheck (COLUMNNAME_C_Opportunity_ID, Integer.valueOf(C_Opportunity_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Sales Opportunity.
|
||||||
|
@return Sales Opportunity */
|
||||||
|
public int getC_Opportunity_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_C_Opportunity_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set C_Opportunity_UU.
|
||||||
|
@param C_Opportunity_UU C_Opportunity_UU */
|
||||||
|
public void setC_Opportunity_UU (String C_Opportunity_UU)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_C_Opportunity_UU, C_Opportunity_UU);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get C_Opportunity_UU.
|
||||||
|
@return C_Opportunity_UU */
|
||||||
|
public String getC_Opportunity_UU ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_C_Opportunity_UU);
|
||||||
|
}
|
||||||
|
|
||||||
|
public org.compiere.model.I_C_Order getC_Order() throws RuntimeException
|
||||||
|
{
|
||||||
|
return (org.compiere.model.I_C_Order)MTable.get(getCtx(), org.compiere.model.I_C_Order.Table_Name)
|
||||||
|
.getPO(getC_Order_ID(), get_TrxName()); }
|
||||||
|
|
||||||
|
/** Set Order.
|
||||||
|
@param C_Order_ID
|
||||||
|
Order
|
||||||
|
*/
|
||||||
|
public void setC_Order_ID (int C_Order_ID)
|
||||||
|
{
|
||||||
|
if (C_Order_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_C_Order_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_C_Order_ID, Integer.valueOf(C_Order_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Order.
|
||||||
|
@return Order
|
||||||
|
*/
|
||||||
|
public int getC_Order_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_C_Order_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Cost.
|
||||||
|
@param Cost
|
||||||
|
Cost information
|
||||||
|
*/
|
||||||
|
public void setCost (BigDecimal Cost)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_Cost, Cost);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Cost.
|
||||||
|
@return Cost information
|
||||||
|
*/
|
||||||
|
public BigDecimal getCost ()
|
||||||
|
{
|
||||||
|
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Cost);
|
||||||
|
if (bd == null)
|
||||||
|
return Env.ZERO;
|
||||||
|
return bd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public org.compiere.model.I_C_SalesStage getC_SalesStage() throws RuntimeException
|
||||||
|
{
|
||||||
|
return (org.compiere.model.I_C_SalesStage)MTable.get(getCtx(), org.compiere.model.I_C_SalesStage.Table_Name)
|
||||||
|
.getPO(getC_SalesStage_ID(), get_TrxName()); }
|
||||||
|
|
||||||
|
/** Set Sales Stage.
|
||||||
|
@param C_SalesStage_ID
|
||||||
|
Stages of the sales process
|
||||||
|
*/
|
||||||
|
public void setC_SalesStage_ID (int C_SalesStage_ID)
|
||||||
|
{
|
||||||
|
if (C_SalesStage_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_C_SalesStage_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_C_SalesStage_ID, Integer.valueOf(C_SalesStage_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Sales Stage.
|
||||||
|
@return Stages of the sales process
|
||||||
|
*/
|
||||||
|
public int getC_SalesStage_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_C_SalesStage_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Description.
|
||||||
|
@param Description
|
||||||
|
Optional short description of the record
|
||||||
|
*/
|
||||||
|
public void setDescription (String Description)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_Description, Description);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Description.
|
||||||
|
@return Optional short description of the record
|
||||||
|
*/
|
||||||
|
public String getDescription ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_Description);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Record ID/ColumnName
|
||||||
|
@return ID/ColumnName pair
|
||||||
|
*/
|
||||||
|
public KeyNamePair getKeyNamePair()
|
||||||
|
{
|
||||||
|
return new KeyNamePair(get_ID(), getDocumentNo());
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Expected Close Date.
|
||||||
|
@param ExpectedCloseDate
|
||||||
|
Expected Close Date
|
||||||
|
*/
|
||||||
|
public void setExpectedCloseDate (Timestamp ExpectedCloseDate)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_ExpectedCloseDate, ExpectedCloseDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Expected Close Date.
|
||||||
|
@return Expected Close Date
|
||||||
|
*/
|
||||||
|
public Timestamp getExpectedCloseDate ()
|
||||||
|
{
|
||||||
|
return (Timestamp)get_Value(COLUMNNAME_ExpectedCloseDate);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Opportunity Amount.
|
||||||
|
@param OpportunityAmt
|
||||||
|
The estimated value of this opportunity.
|
||||||
|
*/
|
||||||
|
public void setOpportunityAmt (BigDecimal OpportunityAmt)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_OpportunityAmt, OpportunityAmt);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Opportunity Amount.
|
||||||
|
@return The estimated value of this opportunity.
|
||||||
|
*/
|
||||||
|
public BigDecimal getOpportunityAmt ()
|
||||||
|
{
|
||||||
|
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OpportunityAmt);
|
||||||
|
if (bd == null)
|
||||||
|
return Env.ZERO;
|
||||||
|
return bd;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Probability.
|
||||||
|
@param Probability Probability */
|
||||||
|
public void setProbability (BigDecimal Probability)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_Probability, Probability);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Probability.
|
||||||
|
@return Probability */
|
||||||
|
public BigDecimal getProbability ()
|
||||||
|
{
|
||||||
|
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Probability);
|
||||||
|
if (bd == null)
|
||||||
|
return Env.ZERO;
|
||||||
|
return bd;
|
||||||
|
}
|
||||||
|
|
||||||
|
public org.compiere.model.I_AD_User getSalesRep() throws RuntimeException
|
||||||
|
{
|
||||||
|
return (org.compiere.model.I_AD_User)MTable.get(getCtx(), org.compiere.model.I_AD_User.Table_Name)
|
||||||
|
.getPO(getSalesRep_ID(), get_TrxName()); }
|
||||||
|
|
||||||
|
/** Set Sales Representative.
|
||||||
|
@param SalesRep_ID
|
||||||
|
Sales Representative or Company Agent
|
||||||
|
*/
|
||||||
|
public void setSalesRep_ID (int SalesRep_ID)
|
||||||
|
{
|
||||||
|
if (SalesRep_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_SalesRep_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_SalesRep_ID, Integer.valueOf(SalesRep_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Sales Representative.
|
||||||
|
@return Sales Representative or Company Agent
|
||||||
|
*/
|
||||||
|
public int getSalesRep_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_SalesRep_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Weighted Amount.
|
||||||
|
@param WeightedAmt
|
||||||
|
The amount adjusted by the probability.
|
||||||
|
*/
|
||||||
|
public void setWeightedAmt (BigDecimal WeightedAmt)
|
||||||
|
{
|
||||||
|
throw new IllegalArgumentException ("WeightedAmt is virtual column"); }
|
||||||
|
|
||||||
|
/** Get Weighted Amount.
|
||||||
|
@return The amount adjusted by the probability.
|
||||||
|
*/
|
||||||
|
public BigDecimal getWeightedAmt ()
|
||||||
|
{
|
||||||
|
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_WeightedAmt);
|
||||||
|
if (bd == null)
|
||||||
|
return Env.ZERO;
|
||||||
|
return bd;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,240 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* 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.compiere.model;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.util.Properties;
|
||||||
|
import org.compiere.util.Env;
|
||||||
|
import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
|
/** Generated Model for C_SalesStage
|
||||||
|
* @author iDempiere (generated)
|
||||||
|
* @version Release 1.0c - $Id$ */
|
||||||
|
public class X_C_SalesStage extends PO implements I_C_SalesStage, I_Persistent
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 20130826L;
|
||||||
|
|
||||||
|
/** Standard Constructor */
|
||||||
|
public X_C_SalesStage (Properties ctx, int C_SalesStage_ID, String trxName)
|
||||||
|
{
|
||||||
|
super (ctx, C_SalesStage_ID, trxName);
|
||||||
|
/** if (C_SalesStage_ID == 0)
|
||||||
|
{
|
||||||
|
setC_SalesStage_ID (0);
|
||||||
|
setIsClosed (false);
|
||||||
|
// N
|
||||||
|
setName (null);
|
||||||
|
setProbability (Env.ZERO);
|
||||||
|
setValue (null);
|
||||||
|
} */
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Load Constructor */
|
||||||
|
public X_C_SalesStage (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()
|
||||||
|
{
|
||||||
|
StringBuffer sb = new StringBuffer ("X_C_SalesStage[")
|
||||||
|
.append(get_ID()).append("]");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Sales Stage.
|
||||||
|
@param C_SalesStage_ID
|
||||||
|
Stages of the sales process
|
||||||
|
*/
|
||||||
|
public void setC_SalesStage_ID (int C_SalesStage_ID)
|
||||||
|
{
|
||||||
|
if (C_SalesStage_ID < 1)
|
||||||
|
set_ValueNoCheck (COLUMNNAME_C_SalesStage_ID, null);
|
||||||
|
else
|
||||||
|
set_ValueNoCheck (COLUMNNAME_C_SalesStage_ID, Integer.valueOf(C_SalesStage_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Sales Stage.
|
||||||
|
@return Stages of the sales process
|
||||||
|
*/
|
||||||
|
public int getC_SalesStage_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_C_SalesStage_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set C_SalesStage_UU.
|
||||||
|
@param C_SalesStage_UU C_SalesStage_UU */
|
||||||
|
public void setC_SalesStage_UU (String C_SalesStage_UU)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_C_SalesStage_UU, C_SalesStage_UU);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get C_SalesStage_UU.
|
||||||
|
@return C_SalesStage_UU */
|
||||||
|
public String getC_SalesStage_UU ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_C_SalesStage_UU);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Description.
|
||||||
|
@param Description
|
||||||
|
Optional short description of the record
|
||||||
|
*/
|
||||||
|
public void setDescription (String Description)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_Description, Description);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Description.
|
||||||
|
@return Optional short description of the record
|
||||||
|
*/
|
||||||
|
public String getDescription ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_Description);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Closed Status.
|
||||||
|
@param IsClosed
|
||||||
|
The status is closed
|
||||||
|
*/
|
||||||
|
public void setIsClosed (boolean IsClosed)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_IsClosed, Boolean.valueOf(IsClosed));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Closed Status.
|
||||||
|
@return The status is closed
|
||||||
|
*/
|
||||||
|
public boolean isClosed ()
|
||||||
|
{
|
||||||
|
Object oo = get_Value(COLUMNNAME_IsClosed);
|
||||||
|
if (oo != null)
|
||||||
|
{
|
||||||
|
if (oo instanceof Boolean)
|
||||||
|
return ((Boolean)oo).booleanValue();
|
||||||
|
return "Y".equals(oo);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Won.
|
||||||
|
@param IsWon
|
||||||
|
The opportunity was won
|
||||||
|
*/
|
||||||
|
public void setIsWon (boolean IsWon)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_IsWon, Boolean.valueOf(IsWon));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Won.
|
||||||
|
@return The opportunity was won
|
||||||
|
*/
|
||||||
|
public boolean isWon ()
|
||||||
|
{
|
||||||
|
Object oo = get_Value(COLUMNNAME_IsWon);
|
||||||
|
if (oo != null)
|
||||||
|
{
|
||||||
|
if (oo instanceof Boolean)
|
||||||
|
return ((Boolean)oo).booleanValue();
|
||||||
|
return "Y".equals(oo);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Name.
|
||||||
|
@param Name
|
||||||
|
Alphanumeric identifier of the entity
|
||||||
|
*/
|
||||||
|
public void setName (String Name)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_Name, Name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Name.
|
||||||
|
@return Alphanumeric identifier of the entity
|
||||||
|
*/
|
||||||
|
public String getName ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_Name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Record ID/ColumnName
|
||||||
|
@return ID/ColumnName pair
|
||||||
|
*/
|
||||||
|
public KeyNamePair getKeyNamePair()
|
||||||
|
{
|
||||||
|
return new KeyNamePair(get_ID(), getName());
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Probability.
|
||||||
|
@param Probability Probability */
|
||||||
|
public void setProbability (BigDecimal Probability)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_Probability, Probability);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Probability.
|
||||||
|
@return Probability */
|
||||||
|
public BigDecimal getProbability ()
|
||||||
|
{
|
||||||
|
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Probability);
|
||||||
|
if (bd == null)
|
||||||
|
return Env.ZERO;
|
||||||
|
return bd;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Search Key.
|
||||||
|
@param Value
|
||||||
|
Search key for the record in the format required - must be unique
|
||||||
|
*/
|
||||||
|
public void setValue (String Value)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_Value, Value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Search Key.
|
||||||
|
@return Search key for the record in the format required - must be unique
|
||||||
|
*/
|
||||||
|
public String getValue ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_Value);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,407 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* 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.compiere.model;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.sql.Timestamp;
|
||||||
|
import java.util.Properties;
|
||||||
|
import org.compiere.util.Env;
|
||||||
|
import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
|
/** Generated Model for M_BP_Price
|
||||||
|
* @author iDempiere (generated)
|
||||||
|
* @version Release 1.0c - $Id$ */
|
||||||
|
public class X_M_BP_Price extends PO implements I_M_BP_Price, I_Persistent
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 20130826L;
|
||||||
|
|
||||||
|
/** Standard Constructor */
|
||||||
|
public X_M_BP_Price (Properties ctx, int M_BP_Price_ID, String trxName)
|
||||||
|
{
|
||||||
|
super (ctx, M_BP_Price_ID, trxName);
|
||||||
|
/** if (M_BP_Price_ID == 0)
|
||||||
|
{
|
||||||
|
setBreakValue (Env.ZERO);
|
||||||
|
setC_BPartner_ID (0);
|
||||||
|
setC_Currency_ID (0);
|
||||||
|
setM_BP_Price_ID (0);
|
||||||
|
setM_Product_ID (0);
|
||||||
|
setPriceLimit (Env.ZERO);
|
||||||
|
setPriceList (Env.ZERO);
|
||||||
|
setPriceStd (Env.ZERO);
|
||||||
|
} */
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Load Constructor */
|
||||||
|
public X_M_BP_Price (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()
|
||||||
|
{
|
||||||
|
StringBuffer sb = new StringBuffer ("X_M_BP_Price[")
|
||||||
|
.append(get_ID()).append("]");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Break Value.
|
||||||
|
@param BreakValue
|
||||||
|
Low Value of trade discount break level
|
||||||
|
*/
|
||||||
|
public void setBreakValue (BigDecimal BreakValue)
|
||||||
|
{
|
||||||
|
set_ValueNoCheck (COLUMNNAME_BreakValue, BreakValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Break Value.
|
||||||
|
@return Low Value of trade discount break level
|
||||||
|
*/
|
||||||
|
public BigDecimal getBreakValue ()
|
||||||
|
{
|
||||||
|
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_BreakValue);
|
||||||
|
if (bd == null)
|
||||||
|
return Env.ZERO;
|
||||||
|
return bd;
|
||||||
|
}
|
||||||
|
|
||||||
|
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_Name)
|
||||||
|
.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_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null);
|
||||||
|
else
|
||||||
|
set_ValueNoCheck (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_Currency getC_Currency() throws RuntimeException
|
||||||
|
{
|
||||||
|
return (org.compiere.model.I_C_Currency)MTable.get(getCtx(), org.compiere.model.I_C_Currency.Table_Name)
|
||||||
|
.getPO(getC_Currency_ID(), get_TrxName()); }
|
||||||
|
|
||||||
|
/** Set Currency.
|
||||||
|
@param C_Currency_ID
|
||||||
|
The Currency for this record
|
||||||
|
*/
|
||||||
|
public void setC_Currency_ID (int C_Currency_ID)
|
||||||
|
{
|
||||||
|
if (C_Currency_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_C_Currency_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Currency.
|
||||||
|
@return The Currency for this record
|
||||||
|
*/
|
||||||
|
public int getC_Currency_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Comments.
|
||||||
|
@param Comments
|
||||||
|
Comments or additional information
|
||||||
|
*/
|
||||||
|
public void setComments (String Comments)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_Comments, Comments);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Comments.
|
||||||
|
@return Comments or additional information
|
||||||
|
*/
|
||||||
|
public String getComments ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_Comments);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Discount %.
|
||||||
|
@param Discount
|
||||||
|
Discount in percent
|
||||||
|
*/
|
||||||
|
public void setDiscount (BigDecimal Discount)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_Discount, Discount);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Discount %.
|
||||||
|
@return Discount in percent
|
||||||
|
*/
|
||||||
|
public BigDecimal getDiscount ()
|
||||||
|
{
|
||||||
|
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Discount);
|
||||||
|
if (bd == null)
|
||||||
|
return Env.ZERO;
|
||||||
|
return bd;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Net Price.
|
||||||
|
@param IsNetPrice
|
||||||
|
Net Price including all discounts
|
||||||
|
*/
|
||||||
|
public void setIsNetPrice (boolean IsNetPrice)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_IsNetPrice, Boolean.valueOf(IsNetPrice));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Net Price.
|
||||||
|
@return Net Price including all discounts
|
||||||
|
*/
|
||||||
|
public boolean isNetPrice ()
|
||||||
|
{
|
||||||
|
Object oo = get_Value(COLUMNNAME_IsNetPrice);
|
||||||
|
if (oo != null)
|
||||||
|
{
|
||||||
|
if (oo instanceof Boolean)
|
||||||
|
return ((Boolean)oo).booleanValue();
|
||||||
|
return "Y".equals(oo);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Business Partner Price.
|
||||||
|
@param M_BP_Price_ID Business Partner Price */
|
||||||
|
public void setM_BP_Price_ID (int M_BP_Price_ID)
|
||||||
|
{
|
||||||
|
if (M_BP_Price_ID < 1)
|
||||||
|
set_ValueNoCheck (COLUMNNAME_M_BP_Price_ID, null);
|
||||||
|
else
|
||||||
|
set_ValueNoCheck (COLUMNNAME_M_BP_Price_ID, Integer.valueOf(M_BP_Price_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Business Partner Price.
|
||||||
|
@return Business Partner Price */
|
||||||
|
public int getM_BP_Price_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_M_BP_Price_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set M_BP_Price_UU.
|
||||||
|
@param M_BP_Price_UU M_BP_Price_UU */
|
||||||
|
public void setM_BP_Price_UU (String M_BP_Price_UU)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_M_BP_Price_UU, M_BP_Price_UU);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get M_BP_Price_UU.
|
||||||
|
@return M_BP_Price_UU */
|
||||||
|
public String getM_BP_Price_UU ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_M_BP_Price_UU);
|
||||||
|
}
|
||||||
|
|
||||||
|
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_Name)
|
||||||
|
.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_ValueNoCheck (COLUMNNAME_M_Product_ID, null);
|
||||||
|
else
|
||||||
|
set_ValueNoCheck (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();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Record ID/ColumnName
|
||||||
|
@return ID/ColumnName pair
|
||||||
|
*/
|
||||||
|
public KeyNamePair getKeyNamePair()
|
||||||
|
{
|
||||||
|
return new KeyNamePair(get_ID(), String.valueOf(getM_Product_ID()));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Limit Price.
|
||||||
|
@param PriceLimit
|
||||||
|
Lowest price for a product
|
||||||
|
*/
|
||||||
|
public void setPriceLimit (BigDecimal PriceLimit)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_PriceLimit, PriceLimit);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Limit Price.
|
||||||
|
@return Lowest price for a product
|
||||||
|
*/
|
||||||
|
public BigDecimal getPriceLimit ()
|
||||||
|
{
|
||||||
|
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceLimit);
|
||||||
|
if (bd == null)
|
||||||
|
return Env.ZERO;
|
||||||
|
return bd;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set List Price.
|
||||||
|
@param PriceList
|
||||||
|
List Price
|
||||||
|
*/
|
||||||
|
public void setPriceList (BigDecimal PriceList)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_PriceList, PriceList);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get List Price.
|
||||||
|
@return List Price
|
||||||
|
*/
|
||||||
|
public BigDecimal getPriceList ()
|
||||||
|
{
|
||||||
|
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceList);
|
||||||
|
if (bd == null)
|
||||||
|
return Env.ZERO;
|
||||||
|
return bd;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** PriceOverrideType AD_Reference_ID=53410 */
|
||||||
|
public static final int PRICEOVERRIDETYPE_AD_Reference_ID=53410;
|
||||||
|
/** Fixed Price = P */
|
||||||
|
public static final String PRICEOVERRIDETYPE_FixedPrice = "P";
|
||||||
|
/** Discount = D */
|
||||||
|
public static final String PRICEOVERRIDETYPE_Discount = "D";
|
||||||
|
/** Set Price Override Type.
|
||||||
|
@param PriceOverrideType
|
||||||
|
Type of price override, fixed price or discount off list
|
||||||
|
*/
|
||||||
|
public void setPriceOverrideType (String PriceOverrideType)
|
||||||
|
{
|
||||||
|
|
||||||
|
set_Value (COLUMNNAME_PriceOverrideType, PriceOverrideType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Price Override Type.
|
||||||
|
@return Type of price override, fixed price or discount off list
|
||||||
|
*/
|
||||||
|
public String getPriceOverrideType ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_PriceOverrideType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Standard Price.
|
||||||
|
@param PriceStd
|
||||||
|
Standard Price
|
||||||
|
*/
|
||||||
|
public void setPriceStd (BigDecimal PriceStd)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_PriceStd, PriceStd);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Standard Price.
|
||||||
|
@return Standard Price
|
||||||
|
*/
|
||||||
|
public BigDecimal getPriceStd ()
|
||||||
|
{
|
||||||
|
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceStd);
|
||||||
|
if (bd == null)
|
||||||
|
return Env.ZERO;
|
||||||
|
return bd;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Valid from.
|
||||||
|
@param ValidFrom
|
||||||
|
Valid from including this date (first day)
|
||||||
|
*/
|
||||||
|
public void setValidFrom (Timestamp ValidFrom)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_ValidFrom, ValidFrom);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Valid from.
|
||||||
|
@return Valid from including this date (first day)
|
||||||
|
*/
|
||||||
|
public Timestamp getValidFrom ()
|
||||||
|
{
|
||||||
|
return (Timestamp)get_Value(COLUMNNAME_ValidFrom);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Valid to.
|
||||||
|
@param ValidTo
|
||||||
|
Valid to including this date (last day)
|
||||||
|
*/
|
||||||
|
public void setValidTo (Timestamp ValidTo)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_ValidTo, ValidTo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Valid to.
|
||||||
|
@return Valid to including this date (last day)
|
||||||
|
*/
|
||||||
|
public Timestamp getValidTo ()
|
||||||
|
{
|
||||||
|
return (Timestamp)get_Value(COLUMNNAME_ValidTo);
|
||||||
|
}
|
||||||
|
}
|
|
@ -18,6 +18,7 @@ package org.compiere.process;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.sql.Timestamp;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -170,6 +171,43 @@ public class ProcessInfoParameter implements Serializable
|
||||||
return "Y".equals(m_Parameter_To);
|
return "Y".equals(m_Parameter_To);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method getParameter as Timestamp
|
||||||
|
* @return Object
|
||||||
|
*/
|
||||||
|
public Timestamp getParameterAsTimestamp()
|
||||||
|
{
|
||||||
|
if (m_Parameter == null)
|
||||||
|
return null;
|
||||||
|
if (m_Parameter instanceof Timestamp)
|
||||||
|
return (Timestamp) m_Parameter;
|
||||||
|
return null;
|
||||||
|
} // getParameterAsTimestamp
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method getParameter as String
|
||||||
|
* @return Object
|
||||||
|
*/
|
||||||
|
public String getParameterAsString()
|
||||||
|
{
|
||||||
|
if (m_Parameter == null)
|
||||||
|
return null;
|
||||||
|
return m_Parameter.toString();
|
||||||
|
} // getParameterAsString
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method getParameter as BigDecimal
|
||||||
|
* @return Object
|
||||||
|
*/
|
||||||
|
public BigDecimal getParameterAsBigDecimal ()
|
||||||
|
{
|
||||||
|
if (m_Parameter == null)
|
||||||
|
return null;
|
||||||
|
if (m_Parameter instanceof BigDecimal)
|
||||||
|
return (BigDecimal) m_Parameter;
|
||||||
|
return new BigDecimal(m_Parameter.toString());
|
||||||
|
} // getParameterAsBigDecimal
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method getParameterName
|
* Method getParameterName
|
||||||
|
|
Loading…
Reference in New Issue