ERP 2.50:Developers Guide/Reference/Entity Model/ActiveProposalV
ActiveProposalV
To the database table (C_Projectproposal_V) of this entity.
Properties
Note:
- Properties marked with a * are part of the Id of the Entity.
- Properties marked with a # are part of the Identifier of the Entity.
Property | Column | Constraints | Type | Description |
from | Fromdatesend | java.util.Date | ||
until | Todatesend | java.util.Date | ||
client | AD_Client_ID | Mandatory | ADClient | A Client is a company or a legal entity. You cannot share data between Clients. |
organization | AD_Org_ID | Mandatory | Organization | An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations. |
userContact | AD_User_ID | ADUser | The User identifies a unique user in the system. This could be an internal user or a business partner contact | |
businessPartner | C_BPartner_ID | BusinessPartner | A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these. | |
partnerAddress | C_BPartner_Location_ID | BusinessPartnerLocation | The Partner address indicates the location of a Business Partner | |
project# | C_Project_ID | Mandatory | Project | Identifier of a project defined within the Project & Service Management module. |
id* | C_Projectproposal_ID | Mandatory Max Length: 32 | java.lang.String | The ID identifies a unique proposal for the project |
salesTransaction | IsSOTrx | java.lang.Boolean | The Sales Transaction checkbox indicates if this item is a Sales Transaction. | |
firstName# | Firstname | Max Length: 60 | java.lang.String | First Name of the contact |
lastName# | Lastname | Max Length: 60 | java.lang.String | Last name of the contact |
dateSent | Datesend | java.util.Date | The date of the proposal was sent |
Java Entity Class
/* ************************************************************************* * The contents of this file are subject to the Openbravo Public License * Version 1.1 (the "License"), being the Mozilla Public License * Version 1.1 with a permitted attribution clause; you may not use this * file except in compliance with the License. You may obtain a copy of * the License at http://www.openbravo.com/legal/license.html * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the * License for the specific language governing rights and limitations * under the License. * The Original Code is Openbravo ERP. * The Initial Developer of the Original Code is Openbravo SLU * All portions are Copyright (C) 2008-2010 Openbravo SLU * All Rights Reserved. * Contributor(s): ______________________________________. ************************************************************************ */ package org.openbravo.model.project; import org.openbravo.base.structure.BaseOBObject; import org.openbravo.base.structure.ClientEnabled; import org.openbravo.base.structure.OrganizationEnabled; import org.openbravo.model.ad.access.User; import org.openbravo.model.ad.system.Client; import org.openbravo.model.common.businesspartner.BusinessPartner; import org.openbravo.model.common.businesspartner.Location; import org.openbravo.model.common.enterprise.Organization; import java.lang.Boolean; import java.lang.String; import java.util.Date; /** * Entity class for entity ActiveProposalV (stored in table C_Projectproposal_V). * * NOTE: This class should not be instantiated directly. To instantiate this * class the {@link org.openbravo.base.provider.OBProvider} should be used. */ public class ActiveProposal extends BaseOBObject implements ClientEnabled, OrganizationEnabled { private static final long serialVersionUID = 1L; public static final String TABLE_NAME = "C_Projectproposal_V"; public static final String ActiveProposalV = "ActiveProposalV"; public static final String PROPERTY_FROM = "from"; public static final String PROPERTY_UNTIL = "until"; public static final String PROPERTY_CLIENT = "client"; public static final String PROPERTY_ORGANIZATION = "organization"; public static final String PROPERTY_USERCONTACT = "userContact"; public static final String PROPERTY_BUSINESSPARTNER = "businessPartner"; public static final String PROPERTY_PARTNERADDRESS = "partnerAddress"; public static final String PROPERTY_PROJECT = "project"; public static final String PROPERTY_ID = "id"; public static final String PROPERTY_SALESTRANSACTION = "salesTransaction"; public static final String PROPERTY_FIRSTNAME = "firstName"; public static final String PROPERTY_LASTNAME = "lastName"; public static final String PROPERTY_DATESENT = "dateSent"; public ActiveProposal() { setDefaultValue(PROPERTY_SALESTRANSACTION, false); } @Override public String getEntityName() { return ActiveProposalV; } public Date getFrom() { return (Date) get(PROPERTY_FROM); } public void setFrom(Date from) { set(PROPERTY_FROM, from); } public Date getUntil() { return (Date) get(PROPERTY_UNTIL); } public void setUntil(Date until) { set(PROPERTY_UNTIL, until); } public Client getClient() { return (Client) get(PROPERTY_CLIENT); } public void setClient(Client client) { set(PROPERTY_CLIENT, client); } public Organization getOrganization() { return (Organization) get(PROPERTY_ORGANIZATION); } public void setOrganization(Organization organization) { set(PROPERTY_ORGANIZATION, organization); } public User getUserContact() { return (User) get(PROPERTY_USERCONTACT); } public void setUserContact(User userContact) { set(PROPERTY_USERCONTACT, userContact); } public BusinessPartner getBusinessPartner() { return (BusinessPartner) get(PROPERTY_BUSINESSPARTNER); } public void setBusinessPartner(BusinessPartner businessPartner) { set(PROPERTY_BUSINESSPARTNER, businessPartner); } public Location getPartnerAddress() { return (Location) get(PROPERTY_PARTNERADDRESS); } public void setPartnerAddress(Location partnerAddress) { set(PROPERTY_PARTNERADDRESS, partnerAddress); } public Project getProject() { return (Project) get(PROPERTY_PROJECT); } public void setProject(Project project) { set(PROPERTY_PROJECT, project); } public String getId() { return (String) get(PROPERTY_ID); } public void setId(String id) { set(PROPERTY_ID, id); } public Boolean isSalesTransaction() { return (Boolean) get(PROPERTY_SALESTRANSACTION); } public void setSalesTransaction(Boolean salesTransaction) { set(PROPERTY_SALESTRANSACTION, salesTransaction); } public String getFirstName() { return (String) get(PROPERTY_FIRSTNAME); } public void setFirstName(String firstName) { set(PROPERTY_FIRSTNAME, firstName); } public String getLastName() { return (String) get(PROPERTY_LASTNAME); } public void setLastName(String lastName) { set(PROPERTY_LASTNAME, lastName); } public Date getDateSent() { return (Date) get(PROPERTY_DATESENT); } public void setDateSent(Date dateSent) { set(PROPERTY_DATESENT, dateSent); } }