diff --git a/base/src/org/compiere/model/I_AD_Client.java b/base/src/org/compiere/model/I_AD_Client.java new file mode 100644 index 0000000000..bf731bb2df --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Client.java @@ -0,0 +1,400 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for AD_Client + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_AD_Client +{ + + /** TableName=AD_Client */ + public static final String Table_Name = "AD_Client"; + + /** AD_Table_ID=112 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = BigDecimal.valueOf(6); + + /** Load Meta Data */ + + /** Column name AD_Language */ + public static final String COLUMNNAME_AD_Language = "AD_Language"; + + /** Set Language. + * Language for this entity + */ + public void setAD_Language (String AD_Language); + + /** Get Language. + * Language for this entity + */ + public String getAD_Language(); + + /** Column name AD_ReplicationStrategy_ID */ + public static final String COLUMNNAME_AD_ReplicationStrategy_ID = "AD_ReplicationStrategy_ID"; + + /** Set Replication Strategy. + * Data Replication Strategy + */ + public void setAD_ReplicationStrategy_ID (int AD_ReplicationStrategy_ID); + + /** Get Replication Strategy. + * Data Replication Strategy + */ + public int getAD_ReplicationStrategy_ID(); + + public I_AD_ReplicationStrategy getAD_ReplicationStrategy() throws Exception; + + /** Column name AutoArchive */ + public static final String COLUMNNAME_AutoArchive = "AutoArchive"; + + /** Set Auto Archive. + * Enable and level of automatic Archive of documents + */ + public void setAutoArchive (String AutoArchive); + + /** Get Auto Archive. + * Enable and level of automatic Archive of documents + */ + public String getAutoArchive(); + + /** 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 DocumentDir */ + public static final String COLUMNNAME_DocumentDir = "DocumentDir"; + + /** Set Document Directory. + * Directory for documents from the application server + */ + public void setDocumentDir (String DocumentDir); + + /** Get Document Directory. + * Directory for documents from the application server + */ + public String getDocumentDir(); + + /** Column name EMailTest */ + public static final String COLUMNNAME_EMailTest = "EMailTest"; + + /** Set EMail Test. + * Test EMail + */ + public void setEMailTest (String EMailTest); + + /** Get EMail Test. + * Test EMail + */ + public String getEMailTest(); + + /** Column name IsCostImmediate */ + public static final String COLUMNNAME_IsCostImmediate = "IsCostImmediate"; + + /** Set Cost Immediately. + * Update Costs immediately for testing + */ + public void setIsCostImmediate (boolean IsCostImmediate); + + /** Get Cost Immediately. + * Update Costs immediately for testing + */ + public boolean isCostImmediate(); + + /** Column name IsMultiLingualDocument */ + public static final String COLUMNNAME_IsMultiLingualDocument = "IsMultiLingualDocument"; + + /** Set Multi Lingual Documents. + * Documents are Multi Lingual + */ + public void setIsMultiLingualDocument (boolean IsMultiLingualDocument); + + /** Get Multi Lingual Documents. + * Documents are Multi Lingual + */ + public boolean isMultiLingualDocument(); + + /** Column name IsPostImmediate */ + public static final String COLUMNNAME_IsPostImmediate = "IsPostImmediate"; + + /** Set Post Immediately. + * Post the accounting immediately for testing + */ + public void setIsPostImmediate (boolean IsPostImmediate); + + /** Get Post Immediately. + * Post the accounting immediately for testing + */ + public boolean isPostImmediate(); + + /** Column name IsServerEMail */ + public static final String COLUMNNAME_IsServerEMail = "IsServerEMail"; + + /** Set Server EMail. + * Send EMail from Server + */ + public void setIsServerEMail (boolean IsServerEMail); + + /** Get Server EMail. + * Send EMail from Server + */ + public boolean isServerEMail(); + + /** Column name IsSmtpAuthorization */ + public static final String COLUMNNAME_IsSmtpAuthorization = "IsSmtpAuthorization"; + + /** Set SMTP Authentication. + * Your mail server requires Authentication + */ + public void setIsSmtpAuthorization (boolean IsSmtpAuthorization); + + /** Get SMTP Authentication. + * Your mail server requires Authentication + */ + public boolean isSmtpAuthorization(); + + /** Column name IsUseASP */ + public static final String COLUMNNAME_IsUseASP = "IsUseASP"; + + /** Set IsUseASP */ + public void setIsUseASP (boolean IsUseASP); + + /** Get IsUseASP */ + public boolean isUseASP(); + + /** Column name IsUseBetaFunctions */ + public static final String COLUMNNAME_IsUseBetaFunctions = "IsUseBetaFunctions"; + + /** Set Use Beta Functions. + * Enable the use of Beta Functionality + */ + public void setIsUseBetaFunctions (boolean IsUseBetaFunctions); + + /** Get Use Beta Functions. + * Enable the use of Beta Functionality + */ + public boolean isUseBetaFunctions(); + + /** Column name MMPolicy */ + public static final String COLUMNNAME_MMPolicy = "MMPolicy"; + + /** Set Material Policy. + * Material Movement Policy + */ + public void setMMPolicy (String MMPolicy); + + /** Get Material Policy. + * Material Movement Policy + */ + public String getMMPolicy(); + + /** Column name ModelValidationClasses */ + public static final String COLUMNNAME_ModelValidationClasses = "ModelValidationClasses"; + + /** Set Model Validation Classes. + * List of data model validation classes separated by ; + + */ + public void setModelValidationClasses (String ModelValidationClasses); + + /** Get Model Validation Classes. + * List of data model validation classes separated by ; + + */ + public String getModelValidationClasses(); + + /** 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 RequestEMail */ + public static final String COLUMNNAME_RequestEMail = "RequestEMail"; + + /** Set Request EMail. + * EMail address to send automated mails from or receive mails for automated processing (fully qualified) + */ + public void setRequestEMail (String RequestEMail); + + /** Get Request EMail. + * EMail address to send automated mails from or receive mails for automated processing (fully qualified) + */ + public String getRequestEMail(); + + /** Column name RequestFolder */ + public static final String COLUMNNAME_RequestFolder = "RequestFolder"; + + /** Set Request Folder. + * EMail folder to process incoming emails; + if empty INBOX is used + */ + public void setRequestFolder (String RequestFolder); + + /** Get Request Folder. + * EMail folder to process incoming emails; + if empty INBOX is used + */ + public String getRequestFolder(); + + /** Column name RequestUser */ + public static final String COLUMNNAME_RequestUser = "RequestUser"; + + /** Set Request User. + * User Name (ID) of the email owner + */ + public void setRequestUser (String RequestUser); + + /** Get Request User. + * User Name (ID) of the email owner + */ + public String getRequestUser(); + + /** Column name RequestUserPW */ + public static final String COLUMNNAME_RequestUserPW = "RequestUserPW"; + + /** Set Request User Password. + * Password of the user name (ID) for mail processing + */ + public void setRequestUserPW (String RequestUserPW); + + /** Get Request User Password. + * Password of the user name (ID) for mail processing + */ + public String getRequestUserPW(); + + /** Column name SMTPHost */ + public static final String COLUMNNAME_SMTPHost = "SMTPHost"; + + /** Set Mail Host. + * Hostname of Mail Server for SMTP and IMAP + */ + public void setSMTPHost (String SMTPHost); + + /** Get Mail Host. + * Hostname of Mail Server for SMTP and IMAP + */ + public String getSMTPHost(); + + /** Column name StoreArchiveOnFileSystem */ + public static final String COLUMNNAME_StoreArchiveOnFileSystem = "StoreArchiveOnFileSystem"; + + /** Set Store Archive On File System */ + public void setStoreArchiveOnFileSystem (boolean StoreArchiveOnFileSystem); + + /** Get Store Archive On File System */ + public boolean isStoreArchiveOnFileSystem(); + + /** Column name StoreAttachmentsOnFileSystem */ + public static final String COLUMNNAME_StoreAttachmentsOnFileSystem = "StoreAttachmentsOnFileSystem"; + + /** Set Store Attachments On File System */ + public void setStoreAttachmentsOnFileSystem (boolean StoreAttachmentsOnFileSystem); + + /** Get Store Attachments On File System */ + public boolean isStoreAttachmentsOnFileSystem(); + + /** Column name UnixArchivePath */ + public static final String COLUMNNAME_UnixArchivePath = "UnixArchivePath"; + + /** Set Unix Archive Path */ + public void setUnixArchivePath (String UnixArchivePath); + + /** Get Unix Archive Path */ + public String getUnixArchivePath(); + + /** Column name UnixAttachmentPath */ + public static final String COLUMNNAME_UnixAttachmentPath = "UnixAttachmentPath"; + + /** Set Unix Attachment Path */ + public void setUnixAttachmentPath (String UnixAttachmentPath); + + /** Get Unix Attachment Path */ + public String getUnixAttachmentPath(); + + /** 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(); + + /** Column name WindowsArchivePath */ + public static final String COLUMNNAME_WindowsArchivePath = "WindowsArchivePath"; + + /** Set Windows Archive Path */ + public void setWindowsArchivePath (String WindowsArchivePath); + + /** Get Windows Archive Path */ + public String getWindowsArchivePath(); + + /** Column name WindowsAttachmentPath */ + public static final String COLUMNNAME_WindowsAttachmentPath = "WindowsAttachmentPath"; + + /** Set Windows Attachment Path */ + public void setWindowsAttachmentPath (String WindowsAttachmentPath); + + /** Get Windows Attachment Path */ + public String getWindowsAttachmentPath(); +} diff --git a/base/src/org/compiere/model/I_AD_ReplicationStrategy.java b/base/src/org/compiere/model/I_AD_ReplicationStrategy.java new file mode 100644 index 0000000000..07011b81e2 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_ReplicationStrategy.java @@ -0,0 +1,136 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for AD_ReplicationStrategy + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_AD_ReplicationStrategy +{ + + /** TableName=AD_ReplicationStrategy */ + public static final String Table_Name = "AD_ReplicationStrategy"; + + /** AD_Table_ID=602 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = BigDecimal.valueOf(6); + + /** Load Meta Data */ + + /** Column name AD_ReplicationStrategy_ID */ + public static final String COLUMNNAME_AD_ReplicationStrategy_ID = "AD_ReplicationStrategy_ID"; + + /** Set Replication Strategy. + * Data Replication Strategy + */ + public void setAD_ReplicationStrategy_ID (int AD_ReplicationStrategy_ID); + + /** Get Replication Strategy. + * Data Replication Strategy + */ + public int getAD_ReplicationStrategy_ID(); + + /** 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 EXP_Processor_ID */ + public static final String COLUMNNAME_EXP_Processor_ID = "EXP_Processor_ID"; + + /** Set EXP_Processor_ID */ + public void setEXP_Processor_ID (int EXP_Processor_ID); + + /** Get EXP_Processor_ID */ + public int getEXP_Processor_ID(); + + public org.eevolution.model.I_EXP_Processor getEXP_Processor() throws Exception; + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** 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(); +} diff --git a/base/src/org/compiere/model/I_AD_Role.java b/base/src/org/compiere/model/I_AD_Role.java new file mode 100644 index 0000000000..46ab3dfd2f --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Role.java @@ -0,0 +1,498 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for AD_Role + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_AD_Role +{ + + /** TableName=AD_Role */ + public static final String Table_Name = "AD_Role"; + + /** AD_Table_ID=156 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = BigDecimal.valueOf(6); + + /** Load Meta Data */ + + /** Column name AD_Role_ID */ + public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID"; + + /** Set Role. + * Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID); + + /** Get Role. + * Responsibility Role + */ + public int getAD_Role_ID(); + + /** Column name AD_Tree_Menu_ID */ + public static final String COLUMNNAME_AD_Tree_Menu_ID = "AD_Tree_Menu_ID"; + + /** Set Menu Tree. + * Tree of the menu + */ + public void setAD_Tree_Menu_ID (int AD_Tree_Menu_ID); + + /** Get Menu Tree. + * Tree of the menu + */ + public int getAD_Tree_Menu_ID(); + + /** Column name AD_Tree_Org_ID */ + public static final String COLUMNNAME_AD_Tree_Org_ID = "AD_Tree_Org_ID"; + + /** Set Organization Tree. + * Tree to determine organizational hierarchy + */ + public void setAD_Tree_Org_ID (int AD_Tree_Org_ID); + + /** Get Organization Tree. + * Tree to determine organizational hierarchy + */ + public int getAD_Tree_Org_ID(); + + /** Column name Allow_Info_Account */ + public static final String COLUMNNAME_Allow_Info_Account = "Allow_Info_Account"; + + /** Set Allow Info Account */ + public void setAllow_Info_Account (boolean Allow_Info_Account); + + /** Get Allow Info Account */ + public boolean isAllow_Info_Account(); + + /** Column name Allow_Info_Asset */ + public static final String COLUMNNAME_Allow_Info_Asset = "Allow_Info_Asset"; + + /** Set Allow Info Asset */ + public void setAllow_Info_Asset (boolean Allow_Info_Asset); + + /** Get Allow Info Asset */ + public boolean isAllow_Info_Asset(); + + /** Column name Allow_Info_BPartner */ + public static final String COLUMNNAME_Allow_Info_BPartner = "Allow_Info_BPartner"; + + /** Set Allow Info BPartner */ + public void setAllow_Info_BPartner (boolean Allow_Info_BPartner); + + /** Get Allow Info BPartner */ + public boolean isAllow_Info_BPartner(); + + /** Column name Allow_Info_CRP */ + public static final String COLUMNNAME_Allow_Info_CRP = "Allow_Info_CRP"; + + /** Set Allow Info CRP */ + public void setAllow_Info_CRP (boolean Allow_Info_CRP); + + /** Get Allow Info CRP */ + public boolean isAllow_Info_CRP(); + + /** Column name Allow_Info_CashJournal */ + public static final String COLUMNNAME_Allow_Info_CashJournal = "Allow_Info_CashJournal"; + + /** Set Allow Info CashJournal */ + public void setAllow_Info_CashJournal (boolean Allow_Info_CashJournal); + + /** Get Allow Info CashJournal */ + public boolean isAllow_Info_CashJournal(); + + /** Column name Allow_Info_InOut */ + public static final String COLUMNNAME_Allow_Info_InOut = "Allow_Info_InOut"; + + /** Set Allow Info InOut */ + public void setAllow_Info_InOut (boolean Allow_Info_InOut); + + /** Get Allow Info InOut */ + public boolean isAllow_Info_InOut(); + + /** Column name Allow_Info_Invoice */ + public static final String COLUMNNAME_Allow_Info_Invoice = "Allow_Info_Invoice"; + + /** Set Allow Info Invoice */ + public void setAllow_Info_Invoice (boolean Allow_Info_Invoice); + + /** Get Allow Info Invoice */ + public boolean isAllow_Info_Invoice(); + + /** Column name Allow_Info_MRP */ + public static final String COLUMNNAME_Allow_Info_MRP = "Allow_Info_MRP"; + + /** Set Allow Info MRP */ + public void setAllow_Info_MRP (boolean Allow_Info_MRP); + + /** Get Allow Info MRP */ + public boolean isAllow_Info_MRP(); + + /** Column name Allow_Info_Order */ + public static final String COLUMNNAME_Allow_Info_Order = "Allow_Info_Order"; + + /** Set Allow Info Order */ + public void setAllow_Info_Order (boolean Allow_Info_Order); + + /** Get Allow Info Order */ + public boolean isAllow_Info_Order(); + + /** Column name Allow_Info_Payment */ + public static final String COLUMNNAME_Allow_Info_Payment = "Allow_Info_Payment"; + + /** Set Allow Info Payment */ + public void setAllow_Info_Payment (boolean Allow_Info_Payment); + + /** Get Allow Info Payment */ + public boolean isAllow_Info_Payment(); + + /** Column name Allow_Info_Product */ + public static final String COLUMNNAME_Allow_Info_Product = "Allow_Info_Product"; + + /** Set Allow Info Product */ + public void setAllow_Info_Product (boolean Allow_Info_Product); + + /** Get Allow Info Product */ + public boolean isAllow_Info_Product(); + + /** Column name Allow_Info_Resource */ + public static final String COLUMNNAME_Allow_Info_Resource = "Allow_Info_Resource"; + + /** Set Allow Info Resource */ + public void setAllow_Info_Resource (boolean Allow_Info_Resource); + + /** Get Allow Info Resource */ + public boolean isAllow_Info_Resource(); + + /** Column name Allow_Info_Schedule */ + public static final String COLUMNNAME_Allow_Info_Schedule = "Allow_Info_Schedule"; + + /** Set Allow Info Schedule */ + public void setAllow_Info_Schedule (boolean Allow_Info_Schedule); + + /** Get Allow Info Schedule */ + public boolean isAllow_Info_Schedule(); + + /** Column name AmtApproval */ + public static final String COLUMNNAME_AmtApproval = "AmtApproval"; + + /** Set Approval Amount. + * The approval amount limit for this role + */ + public void setAmtApproval (BigDecimal AmtApproval); + + /** Get Approval Amount. + * The approval amount limit for this role + */ + public BigDecimal getAmtApproval(); + + /** 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 I_C_Currency getC_Currency() throws Exception; + + /** Column name ConfirmQueryRecords */ + public static final String COLUMNNAME_ConfirmQueryRecords = "ConfirmQueryRecords"; + + /** Set Confirm Query Records. + * Require Confirmation if more records will be returned by the query (If not defined 500) + */ + public void setConfirmQueryRecords (int ConfirmQueryRecords); + + /** Get Confirm Query Records. + * Require Confirmation if more records will be returned by the query (If not defined 500) + */ + public int getConfirmQueryRecords(); + + /** Column name ConnectionProfile */ + public static final String COLUMNNAME_ConnectionProfile = "ConnectionProfile"; + + /** Set Connection Profile. + * How a Java Client connects to the server(s) + */ + public void setConnectionProfile (String ConnectionProfile); + + /** Get Connection Profile. + * How a Java Client connects to the server(s) + */ + public String getConnectionProfile(); + + /** 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 IsAccessAllOrgs */ + public static final String COLUMNNAME_IsAccessAllOrgs = "IsAccessAllOrgs"; + + /** Set Access all Orgs. + * Access all Organizations (no org access control) of the client + */ + public void setIsAccessAllOrgs (boolean IsAccessAllOrgs); + + /** Get Access all Orgs. + * Access all Organizations (no org access control) of the client + */ + public boolean isAccessAllOrgs(); + + /** Column name IsCanApproveOwnDoc */ + public static final String COLUMNNAME_IsCanApproveOwnDoc = "IsCanApproveOwnDoc"; + + /** Set Approve own Documents. + * Users with this role can approve their own documents + */ + public void setIsCanApproveOwnDoc (boolean IsCanApproveOwnDoc); + + /** Get Approve own Documents. + * Users with this role can approve their own documents + */ + public boolean isCanApproveOwnDoc(); + + /** Column name IsCanExport */ + public static final String COLUMNNAME_IsCanExport = "IsCanExport"; + + /** Set Can Export. + * Users with this role can export data + */ + public void setIsCanExport (boolean IsCanExport); + + /** Get Can Export. + * Users with this role can export data + */ + public boolean isCanExport(); + + /** Column name IsCanReport */ + public static final String COLUMNNAME_IsCanReport = "IsCanReport"; + + /** Set Can Report. + * Users with this role can create reports + */ + public void setIsCanReport (boolean IsCanReport); + + /** Get Can Report. + * Users with this role can create reports + */ + public boolean isCanReport(); + + /** Column name IsChangeLog */ + public static final String COLUMNNAME_IsChangeLog = "IsChangeLog"; + + /** Set Maintain Change Log. + * Maintain a log of changes + */ + public void setIsChangeLog (boolean IsChangeLog); + + /** Get Maintain Change Log. + * Maintain a log of changes + */ + public boolean isChangeLog(); + + /** Column name IsManual */ + public static final String COLUMNNAME_IsManual = "IsManual"; + + /** Set Manual. + * This is a manual process + */ + public void setIsManual (boolean IsManual); + + /** Get Manual. + * This is a manual process + */ + public boolean isManual(); + + /** Column name IsPersonalAccess */ + public static final String COLUMNNAME_IsPersonalAccess = "IsPersonalAccess"; + + /** Set Personal Access. + * Allow access to all personal records + */ + public void setIsPersonalAccess (boolean IsPersonalAccess); + + /** Get Personal Access. + * Allow access to all personal records + */ + public boolean isPersonalAccess(); + + /** Column name IsPersonalLock */ + public static final String COLUMNNAME_IsPersonalLock = "IsPersonalLock"; + + /** Set Personal Lock. + * Allow users with role to lock access to personal records + */ + public void setIsPersonalLock (boolean IsPersonalLock); + + /** Get Personal Lock. + * Allow users with role to lock access to personal records + */ + public boolean isPersonalLock(); + + /** Column name IsShowAcct */ + public static final String COLUMNNAME_IsShowAcct = "IsShowAcct"; + + /** Set Show Accounting. + * Users with this role can see accounting information + */ + public void setIsShowAcct (boolean IsShowAcct); + + /** Get Show Accounting. + * Users with this role can see accounting information + */ + public boolean isShowAcct(); + + /** Column name IsUseUserOrgAccess */ + public static final String COLUMNNAME_IsUseUserOrgAccess = "IsUseUserOrgAccess"; + + /** Set Use User Org Access. + * Use Org Access defined by user instead of Role Org Access + */ + public void setIsUseUserOrgAccess (boolean IsUseUserOrgAccess); + + /** Get Use User Org Access. + * Use Org Access defined by user instead of Role Org Access + */ + public boolean isUseUserOrgAccess(); + + /** Column name MaxQueryRecords */ + public static final String COLUMNNAME_MaxQueryRecords = "MaxQueryRecords"; + + /** Set Max Query Records. + * If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records + */ + public void setMaxQueryRecords (int MaxQueryRecords); + + /** Get Max Query Records. + * If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records + */ + public int getMaxQueryRecords(); + + /** 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 OverwritePriceLimit */ + public static final String COLUMNNAME_OverwritePriceLimit = "OverwritePriceLimit"; + + /** Set Overwrite Price Limit. + * Overwrite Price Limit if the Price List enforces the Price Limit + */ + public void setOverwritePriceLimit (boolean OverwritePriceLimit); + + /** Get Overwrite Price Limit. + * Overwrite Price Limit if the Price List enforces the Price Limit + */ + public boolean isOverwritePriceLimit(); + + /** Column name PreferenceType */ + public static final String COLUMNNAME_PreferenceType = "PreferenceType"; + + /** Set Preference Level. + * Determines what preferences the user can set + */ + public void setPreferenceType (String PreferenceType); + + /** Get Preference Level. + * Determines what preferences the user can set + */ + public String getPreferenceType(); + + /** Column name Supervisor_ID */ + public static final String COLUMNNAME_Supervisor_ID = "Supervisor_ID"; + + /** Set Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID); + + /** Get Supervisor. + * Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID(); + + /** Column name UserDiscount */ + public static final String COLUMNNAME_UserDiscount = "UserDiscount"; + + /** Set UserDiscount */ + public void setUserDiscount (BigDecimal UserDiscount); + + /** Get UserDiscount */ + public BigDecimal getUserDiscount(); + + /** Column name UserLevel */ + public static final String COLUMNNAME_UserLevel = "UserLevel"; + + /** Set User Level. + * System Client Organization + */ + public void setUserLevel (String UserLevel); + + /** Get User Level. + * System Client Organization + */ + public String getUserLevel(); +} diff --git a/base/src/org/compiere/model/I_AD_SysConfig.java b/base/src/org/compiere/model/I_AD_SysConfig.java new file mode 100644 index 0000000000..6093562c08 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_SysConfig.java @@ -0,0 +1,134 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for AD_SysConfig + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_AD_SysConfig +{ + + /** TableName=AD_SysConfig */ + public static final String Table_Name = "AD_SysConfig"; + + /** AD_Table_ID=50009 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = BigDecimal.valueOf(6); + + /** Load Meta Data */ + + /** Column name AD_SysConfig_ID */ + public static final String COLUMNNAME_AD_SysConfig_ID = "AD_SysConfig_ID"; + + /** Set System Configurator */ + public void setAD_SysConfig_ID (int AD_SysConfig_ID); + + /** Get System Configurator */ + public int getAD_SysConfig_ID(); + + /** Column name ConfigurationLevel */ + public static final String COLUMNNAME_ConfigurationLevel = "ConfigurationLevel"; + + /** Set Configuration Level. + * Configuration Level for this parameter + */ + public void setConfigurationLevel (String ConfigurationLevel); + + /** Get Configuration Level. + * Configuration Level for this parameter + */ + public String getConfigurationLevel(); + + /** 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 EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** 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 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(); +} diff --git a/base/src/org/compiere/model/I_AD_WF_Node.java b/base/src/org/compiere/model/I_AD_WF_Node.java new file mode 100644 index 0000000000..b09a500375 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_WF_Node.java @@ -0,0 +1,724 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for AD_WF_Node + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_AD_WF_Node +{ + + /** TableName=AD_WF_Node */ + public static final String Table_Name = "AD_WF_Node"; + + /** AD_Table_ID=129 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = BigDecimal.valueOf(6); + + /** Load Meta Data */ + + /** Column name AD_Column_ID */ + public static final String COLUMNNAME_AD_Column_ID = "AD_Column_ID"; + + /** Set Column. + * Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID); + + /** Get Column. + * Column in the table + */ + public int getAD_Column_ID(); + + public I_AD_Column getAD_Column() throws Exception; + + /** Column name AD_Form_ID */ + public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID"; + + /** Set Special Form. + * Special Form + */ + public void setAD_Form_ID (int AD_Form_ID); + + /** Get Special Form. + * Special Form + */ + public int getAD_Form_ID(); + + public I_AD_Form getAD_Form() throws Exception; + + /** Column name AD_Image_ID */ + public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID"; + + /** Set Image. + * Image or Icon + */ + public void setAD_Image_ID (int AD_Image_ID); + + /** Get Image. + * Image or Icon + */ + public int getAD_Image_ID(); + + public I_AD_Image getAD_Image() throws Exception; + + /** Column name AD_Process_ID */ + public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; + + /** Set Process. + * Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID); + + /** Get Process. + * Process or Report + */ + public int getAD_Process_ID(); + + public I_AD_Process getAD_Process() throws Exception; + + /** Column name AD_Task_ID */ + public static final String COLUMNNAME_AD_Task_ID = "AD_Task_ID"; + + /** Set OS Task. + * Operation System Task + */ + public void setAD_Task_ID (int AD_Task_ID); + + /** Get OS Task. + * Operation System Task + */ + public int getAD_Task_ID(); + + public I_AD_Task getAD_Task() throws Exception; + + /** Column name AD_WF_Block_ID */ + public static final String COLUMNNAME_AD_WF_Block_ID = "AD_WF_Block_ID"; + + /** Set Workflow Block. + * Workflow Transaction Execution Block + */ + public void setAD_WF_Block_ID (int AD_WF_Block_ID); + + /** Get Workflow Block. + * Workflow Transaction Execution Block + */ + public int getAD_WF_Block_ID(); + + public I_AD_WF_Block getAD_WF_Block() throws Exception; + + /** Column name AD_WF_Node_ID */ + public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID"; + + /** Set Node. + * Workflow Node (activity), step or process + */ + public void setAD_WF_Node_ID (int AD_WF_Node_ID); + + /** Get Node. + * Workflow Node (activity), step or process + */ + public int getAD_WF_Node_ID(); + + /** Column name AD_WF_Responsible_ID */ + public static final String COLUMNNAME_AD_WF_Responsible_ID = "AD_WF_Responsible_ID"; + + /** Set Workflow Responsible. + * Responsible for Workflow Execution + */ + public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID); + + /** Get Workflow Responsible. + * Responsible for Workflow Execution + */ + public int getAD_WF_Responsible_ID(); + + public I_AD_WF_Responsible getAD_WF_Responsible() throws Exception; + + /** Column name AD_Window_ID */ + public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; + + /** Set Window. + * Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID); + + /** Get Window. + * Data entry or display window + */ + public int getAD_Window_ID(); + + public I_AD_Window getAD_Window() throws Exception; + + /** Column name AD_Workflow_ID */ + public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; + + /** Set Workflow. + * Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID); + + /** Get Workflow. + * Workflow or combination of tasks + */ + public int getAD_Workflow_ID(); + + public I_AD_Workflow getAD_Workflow() throws Exception; + + /** Column name Action */ + public static final String COLUMNNAME_Action = "Action"; + + /** Set Action. + * Indicates the Action to be performed + */ + public void setAction (String Action); + + /** Get Action. + * Indicates the Action to be performed + */ + public String getAction(); + + /** Column name AttributeName */ + public static final String COLUMNNAME_AttributeName = "AttributeName"; + + /** Set Attribute Name. + * Name of the Attribute + */ + public void setAttributeName (String AttributeName); + + /** Get Attribute Name. + * Name of the Attribute + */ + public String getAttributeName(); + + /** Column name AttributeValue */ + public static final String COLUMNNAME_AttributeValue = "AttributeValue"; + + /** Set Attribute Value. + * Value of the Attribute + */ + public void setAttributeValue (String AttributeValue); + + /** Get Attribute Value. + * Value of the Attribute + */ + public String getAttributeValue(); + + /** 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 I_C_BPartner getC_BPartner() throws Exception; + + /** 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 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 DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name Duration */ + public static final String COLUMNNAME_Duration = "Duration"; + + /** Set Duration. + * Normal Duration in Duration Unit + */ + public void setDuration (int Duration); + + /** Get Duration. + * Normal Duration in Duration Unit + */ + public int getDuration(); + + /** Column name DynPriorityChange */ + public static final String COLUMNNAME_DynPriorityChange = "DynPriorityChange"; + + /** Set Dynamic Priority Change. + * Change of priority when Activity is suspended waiting for user + */ + public void setDynPriorityChange (BigDecimal DynPriorityChange); + + /** Get Dynamic Priority Change. + * Change of priority when Activity is suspended waiting for user + */ + public BigDecimal getDynPriorityChange(); + + /** Column name DynPriorityUnit */ + public static final String COLUMNNAME_DynPriorityUnit = "DynPriorityUnit"; + + /** Set Dynamic Priority Unit. + * Change of priority when Activity is suspended waiting for user + */ + public void setDynPriorityUnit (String DynPriorityUnit); + + /** Get Dynamic Priority Unit. + * Change of priority when Activity is suspended waiting for user + */ + public String getDynPriorityUnit(); + + /** Column name EMail */ + public static final String COLUMNNAME_EMail = "EMail"; + + /** Set EMail Address. + * Electronic Mail Address + */ + public void setEMail (String EMail); + + /** Get EMail Address. + * Electronic Mail Address + */ + public String getEMail(); + + /** Column name EMailRecipient */ + public static final String COLUMNNAME_EMailRecipient = "EMailRecipient"; + + /** Set EMail Recipient. + * Recipient of the EMail + */ + public void setEMailRecipient (String EMailRecipient); + + /** Get EMail Recipient. + * Recipient of the EMail + */ + public String getEMailRecipient(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name FinishMode */ + public static final String COLUMNNAME_FinishMode = "FinishMode"; + + /** Set Finish Mode. + * Workflow Activity Finish Mode + */ + public void setFinishMode (String FinishMode); + + /** Get Finish Mode. + * Workflow Activity Finish Mode + */ + public String getFinishMode(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsCentrallyMaintained */ + public static final String COLUMNNAME_IsCentrallyMaintained = "IsCentrallyMaintained"; + + /** Set Centrally maintained. + * Information maintained in System Element table + */ + public void setIsCentrallyMaintained (boolean IsCentrallyMaintained); + + /** Get Centrally maintained. + * Information maintained in System Element table + */ + public boolean isCentrallyMaintained(); + + /** Column name IsMilestone */ + public static final String COLUMNNAME_IsMilestone = "IsMilestone"; + + /** Set IsMilestone */ + public void setIsMilestone (boolean IsMilestone); + + /** Get IsMilestone */ + public boolean isMilestone(); + + /** Column name IsSubcontracting */ + public static final String COLUMNNAME_IsSubcontracting = "IsSubcontracting"; + + /** Set IsSubcontracting */ + public void setIsSubcontracting (boolean IsSubcontracting); + + /** Get IsSubcontracting */ + public boolean isSubcontracting(); + + /** Column name JoinElement */ + public static final String COLUMNNAME_JoinElement = "JoinElement"; + + /** Set Join Element. + * Semantics for multiple incoming Transitions + */ + public void setJoinElement (String JoinElement); + + /** Get Join Element. + * Semantics for multiple incoming Transitions + */ + public String getJoinElement(); + + /** Column name Limit */ + public static final String COLUMNNAME_Limit = "Limit"; + + /** Set Duration Limit. + * Maximum Duration in Duration Unit + */ + public void setLimit (int Limit); + + /** Get Duration Limit. + * Maximum Duration in Duration Unit + */ + public int getLimit(); + + /** Column name MovingTime */ + public static final String COLUMNNAME_MovingTime = "MovingTime"; + + /** Set MovingTime */ + public void setMovingTime (int MovingTime); + + /** Get MovingTime */ + public int getMovingTime(); + + /** 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 OverlapUnits */ + public static final String COLUMNNAME_OverlapUnits = "OverlapUnits"; + + /** Set OverlapUnits */ + public void setOverlapUnits (int OverlapUnits); + + /** Get OverlapUnits */ + public int getOverlapUnits(); + + /** Column name Priority */ + public static final String COLUMNNAME_Priority = "Priority"; + + /** Set Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (int Priority); + + /** Get Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public int getPriority(); + + /** Column name QueuingTime */ + public static final String COLUMNNAME_QueuingTime = "QueuingTime"; + + /** Set QueuingTime */ + public void setQueuingTime (int QueuingTime); + + /** Get QueuingTime */ + public int getQueuingTime(); + + /** Column name R_MailText_ID */ + public static final String COLUMNNAME_R_MailText_ID = "R_MailText_ID"; + + /** Set Mail Template. + * Text templates for mailings + */ + public void setR_MailText_ID (int R_MailText_ID); + + /** Get Mail Template. + * Text templates for mailings + */ + public int getR_MailText_ID(); + + public I_R_MailText getR_MailText() throws Exception; + + /** Column name S_Resource_ID */ + public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID"; + + /** Set Resource. + * Resource + */ + public void setS_Resource_ID (int S_Resource_ID); + + /** Get Resource. + * Resource + */ + public int getS_Resource_ID(); + + public I_S_Resource getS_Resource() throws Exception; + + /** Column name SetupTime */ + public static final String COLUMNNAME_SetupTime = "SetupTime"; + + /** Set Setup Time. + * Setup time before starting Production + */ + public void setSetupTime (int SetupTime); + + /** Get Setup Time. + * Setup time before starting Production + */ + public int getSetupTime(); + + /** Column name SplitElement */ + public static final String COLUMNNAME_SplitElement = "SplitElement"; + + /** Set Split Element. + * Semantics for multiple outgoing Transitions + */ + public void setSplitElement (String SplitElement); + + /** Get Split Element. + * Semantics for multiple outgoing Transitions + */ + public String getSplitElement(); + + /** Column name StartMode */ + public static final String COLUMNNAME_StartMode = "StartMode"; + + /** Set Start Mode. + * Workflow Activity Start Mode + */ + public void setStartMode (String StartMode); + + /** Get Start Mode. + * Workflow Activity Start Mode + */ + public String getStartMode(); + + /** Column name SubflowExecution */ + public static final String COLUMNNAME_SubflowExecution = "SubflowExecution"; + + /** Set Subflow Execution. + * Mode how the sub-workflow is executed + */ + public void setSubflowExecution (String SubflowExecution); + + /** Get Subflow Execution. + * Mode how the sub-workflow is executed + */ + public String getSubflowExecution(); + + /** Column name UnitsCycles */ + public static final String COLUMNNAME_UnitsCycles = "UnitsCycles"; + + /** Set UnitsCycles */ + public void setUnitsCycles (BigDecimal UnitsCycles); + + /** Get UnitsCycles */ + public BigDecimal getUnitsCycles(); + + /** 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(); + + /** 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(); + + /** Column name WaitTime */ + public static final String COLUMNNAME_WaitTime = "WaitTime"; + + /** Set Wait Time. + * Time in minutes to wait (sleep) + */ + public void setWaitTime (int WaitTime); + + /** Get Wait Time. + * Time in minutes to wait (sleep) + */ + public int getWaitTime(); + + /** Column name WaitingTime */ + public static final String COLUMNNAME_WaitingTime = "WaitingTime"; + + /** Set Waiting Time. + * Workflow Simulation Waiting time + */ + public void setWaitingTime (int WaitingTime); + + /** Get Waiting Time. + * Workflow Simulation Waiting time + */ + public int getWaitingTime(); + + /** Column name Workflow_ID */ + public static final String COLUMNNAME_Workflow_ID = "Workflow_ID"; + + /** Set Workflow. + * Workflow or tasks + */ + public void setWorkflow_ID (int Workflow_ID); + + /** Get Workflow. + * Workflow or tasks + */ + public int getWorkflow_ID(); + + /** Column name WorkingTime */ + public static final String COLUMNNAME_WorkingTime = "WorkingTime"; + + /** Set Working Time. + * Workflow Simulation Execution Time + */ + public void setWorkingTime (int WorkingTime); + + /** Get Working Time. + * Workflow Simulation Execution Time + */ + public int getWorkingTime(); + + /** Column name XPosition */ + public static final String COLUMNNAME_XPosition = "XPosition"; + + /** Set X Position. + * Absolute X (horizontal) position in 1/72 of an inch + */ + public void setXPosition (int XPosition); + + /** Get X Position. + * Absolute X (horizontal) position in 1/72 of an inch + */ + public int getXPosition(); + + /** Column name YPosition */ + public static final String COLUMNNAME_YPosition = "YPosition"; + + /** Set Y Position. + * Absolute Y (vertical) position in 1/72 of an inch + */ + public void setYPosition (int YPosition); + + /** Get Y Position. + * Absolute Y (vertical) position in 1/72 of an inch + */ + public int getYPosition(); +} diff --git a/base/src/org/compiere/model/I_AD_Workflow.java b/base/src/org/compiere/model/I_AD_Workflow.java new file mode 100644 index 0000000000..d420dc7412 --- /dev/null +++ b/base/src/org/compiere/model/I_AD_Workflow.java @@ -0,0 +1,506 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for AD_Workflow + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_AD_Workflow +{ + + /** TableName=AD_Workflow */ + public static final String Table_Name = "AD_Workflow"; + + /** AD_Table_ID=117 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = BigDecimal.valueOf(6); + + /** Load Meta Data */ + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public I_AD_Table getAD_Table() throws Exception; + + /** Column name AD_WF_Node_ID */ + public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID"; + + /** Set Node. + * Workflow Node (activity), step or process + */ + public void setAD_WF_Node_ID (int AD_WF_Node_ID); + + /** Get Node. + * Workflow Node (activity), step or process + */ + public int getAD_WF_Node_ID(); + + public I_AD_WF_Node getAD_WF_Node() throws Exception; + + /** Column name AD_WF_Responsible_ID */ + public static final String COLUMNNAME_AD_WF_Responsible_ID = "AD_WF_Responsible_ID"; + + /** Set Workflow Responsible. + * Responsible for Workflow Execution + */ + public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID); + + /** Get Workflow Responsible. + * Responsible for Workflow Execution + */ + public int getAD_WF_Responsible_ID(); + + public I_AD_WF_Responsible getAD_WF_Responsible() throws Exception; + + /** Column name AD_WorkflowProcessor_ID */ + public static final String COLUMNNAME_AD_WorkflowProcessor_ID = "AD_WorkflowProcessor_ID"; + + /** Set Workflow Processor. + * Workflow Processor Server + */ + public void setAD_WorkflowProcessor_ID (int AD_WorkflowProcessor_ID); + + /** Get Workflow Processor. + * Workflow Processor Server + */ + public int getAD_WorkflowProcessor_ID(); + + public I_AD_WorkflowProcessor getAD_WorkflowProcessor() throws Exception; + + /** Column name AD_Workflow_ID */ + public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID"; + + /** Set Workflow. + * Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID); + + /** Get Workflow. + * Workflow or combination of tasks + */ + public int getAD_Workflow_ID(); + + /** Column name AccessLevel */ + public static final String COLUMNNAME_AccessLevel = "AccessLevel"; + + /** Set Data Access Level. + * Access Level required + */ + public void setAccessLevel (String AccessLevel); + + /** Get Data Access Level. + * Access Level required + */ + public String getAccessLevel(); + + /** Column name Author */ + public static final String COLUMNNAME_Author = "Author"; + + /** Set Author. + * Author/Creator of the Entity + */ + public void setAuthor (String Author); + + /** Get Author. + * Author/Creator of the Entity + */ + public String getAuthor(); + + /** Column name Cost */ + public static final String COLUMNNAME_Cost = "Cost"; + + /** Set Cost. + * Cost information + */ + public void setCost (int Cost); + + /** Get Cost. + * Cost information + */ + public int getCost(); + + /** 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 DocValueLogic */ + public static final String COLUMNNAME_DocValueLogic = "DocValueLogic"; + + /** Set Document Value Logic. + * Logic to determine Workflow Start - If true, a workflow process is started for the document + */ + public void setDocValueLogic (String DocValueLogic); + + /** Get Document Value Logic. + * Logic to determine Workflow Start - If true, a workflow process is started for the document + */ + public String getDocValueLogic(); + + /** 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 Duration */ + public static final String COLUMNNAME_Duration = "Duration"; + + /** Set Duration. + * Normal Duration in Duration Unit + */ + public void setDuration (int Duration); + + /** Get Duration. + * Normal Duration in Duration Unit + */ + public int getDuration(); + + /** Column name DurationUnit */ + public static final String COLUMNNAME_DurationUnit = "DurationUnit"; + + /** Set Duration Unit. + * Unit of Duration + */ + public void setDurationUnit (String DurationUnit); + + /** Get Duration Unit. + * Unit of Duration + */ + public String getDurationUnit(); + + /** Column name EntityType */ + public static final String COLUMNNAME_EntityType = "EntityType"; + + /** Set Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public void setEntityType (String EntityType); + + /** Get Entity Type. + * Dictionary Entity Type; + Determines ownership and synchronization + */ + public String getEntityType(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name IsValid */ + public static final String COLUMNNAME_IsValid = "IsValid"; + + /** Set Valid. + * Element is valid + */ + public void setIsValid (boolean IsValid); + + /** Get Valid. + * Element is valid + */ + public boolean isValid(); + + /** Column name Limit */ + public static final String COLUMNNAME_Limit = "Limit"; + + /** Set Duration Limit. + * Maximum Duration in Duration Unit + */ + public void setLimit (int Limit); + + /** Get Duration Limit. + * Maximum Duration in Duration Unit + */ + public int getLimit(); + + /** Column name MovingTime */ + public static final String COLUMNNAME_MovingTime = "MovingTime"; + + /** Set MovingTime */ + public void setMovingTime (int MovingTime); + + /** Get MovingTime */ + public int getMovingTime(); + + /** 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 Priority */ + public static final String COLUMNNAME_Priority = "Priority"; + + /** Set Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (int Priority); + + /** Get Priority. + * Indicates if this request is of a high, medium or low priority. + */ + public int getPriority(); + + /** Column name ProcessType */ + public static final String COLUMNNAME_ProcessType = "ProcessType"; + + /** Set ProcessType */ + public void setProcessType (String ProcessType); + + /** Get ProcessType */ + public String getProcessType(); + + /** Column name PublishStatus */ + public static final String COLUMNNAME_PublishStatus = "PublishStatus"; + + /** Set Publication Status. + * Status of Publication + */ + public void setPublishStatus (String PublishStatus); + + /** Get Publication Status. + * Status of Publication + */ + public String getPublishStatus(); + + /** Column name QtyBatchSize */ + public static final String COLUMNNAME_QtyBatchSize = "QtyBatchSize"; + + /** Set QtyBatchSize */ + public void setQtyBatchSize (BigDecimal QtyBatchSize); + + /** Get QtyBatchSize */ + public BigDecimal getQtyBatchSize(); + + /** Column name QueuingTime */ + public static final String COLUMNNAME_QueuingTime = "QueuingTime"; + + /** Set QueuingTime */ + public void setQueuingTime (int QueuingTime); + + /** Get QueuingTime */ + public int getQueuingTime(); + + /** Column name S_Resource_ID */ + public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID"; + + /** Set Resource. + * Resource + */ + public void setS_Resource_ID (int S_Resource_ID); + + /** Get Resource. + * Resource + */ + public int getS_Resource_ID(); + + public I_S_Resource getS_Resource() throws Exception; + + /** Column name SetupTime */ + public static final String COLUMNNAME_SetupTime = "SetupTime"; + + /** Set Setup Time. + * Setup time before starting Production + */ + public void setSetupTime (int SetupTime); + + /** Get Setup Time. + * Setup time before starting Production + */ + public int getSetupTime(); + + /** 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(); + + /** Column name ValidateWorkflow */ + public static final String COLUMNNAME_ValidateWorkflow = "ValidateWorkflow"; + + /** Set Validate Workflow */ + public void setValidateWorkflow (String ValidateWorkflow); + + /** Get Validate Workflow */ + public String getValidateWorkflow(); + + /** 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(); + + /** Column name Version */ + public static final String COLUMNNAME_Version = "Version"; + + /** Set Version. + * Version of the table definition + */ + public void setVersion (int Version); + + /** Get Version. + * Version of the table definition + */ + public int getVersion(); + + /** Column name WaitingTime */ + public static final String COLUMNNAME_WaitingTime = "WaitingTime"; + + /** Set Waiting Time. + * Workflow Simulation Waiting time + */ + public void setWaitingTime (int WaitingTime); + + /** Get Waiting Time. + * Workflow Simulation Waiting time + */ + public int getWaitingTime(); + + /** Column name WorkflowType */ + public static final String COLUMNNAME_WorkflowType = "WorkflowType"; + + /** Set Workflow Type. + * Type of Worflow + */ + public void setWorkflowType (String WorkflowType); + + /** Get Workflow Type. + * Type of Worflow + */ + public String getWorkflowType(); + + /** Column name WorkingTime */ + public static final String COLUMNNAME_WorkingTime = "WorkingTime"; + + /** Set Working Time. + * Workflow Simulation Execution Time + */ + public void setWorkingTime (int WorkingTime); + + /** Get Working Time. + * Workflow Simulation Execution Time + */ + public int getWorkingTime(); +} diff --git a/base/src/org/compiere/model/I_C_BPartner.java b/base/src/org/compiere/model/I_C_BPartner.java new file mode 100644 index 0000000000..d28b7cd17e --- /dev/null +++ b/base/src/org/compiere/model/I_C_BPartner.java @@ -0,0 +1,841 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for C_BPartner + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_C_BPartner +{ + + /** TableName=C_BPartner */ + public static final String Table_Name = "C_BPartner"; + + /** AD_Table_ID=291 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(3); + + /** Load Meta Data */ + + /** Column name AD_Language */ + public static final String COLUMNNAME_AD_Language = "AD_Language"; + + /** Set Language. + * Language for this entity + */ + public void setAD_Language (String AD_Language); + + /** Get Language. + * Language for this entity + */ + public String getAD_Language(); + + /** Column name AD_OrgBP_ID */ + public static final String COLUMNNAME_AD_OrgBP_ID = "AD_OrgBP_ID"; + + /** Set Linked Organization. + * The Business Partner is another Organization for explicit Inter-Org transactions + */ + public void setAD_OrgBP_ID (String AD_OrgBP_ID); + + /** Get Linked Organization. + * The Business Partner is another Organization for explicit Inter-Org transactions + */ + public String getAD_OrgBP_ID(); + + /** Column name AcqusitionCost */ + public static final String COLUMNNAME_AcqusitionCost = "AcqusitionCost"; + + /** Set Acquisition Cost. + * The cost of gaining the prospect as a customer + */ + public void setAcqusitionCost (BigDecimal AcqusitionCost); + + /** Get Acquisition Cost. + * The cost of gaining the prospect as a customer + */ + public BigDecimal getAcqusitionCost(); + + /** Column name ActualLifeTimeValue */ + public static final String COLUMNNAME_ActualLifeTimeValue = "ActualLifeTimeValue"; + + /** Set Actual Life Time Value. + * Actual Life Time Revenue + */ + public void setActualLifeTimeValue (BigDecimal ActualLifeTimeValue); + + /** Get Actual Life Time Value. + * Actual Life Time Revenue + */ + public BigDecimal getActualLifeTimeValue(); + + /** Column name BPartner_Parent_ID */ + public static final String COLUMNNAME_BPartner_Parent_ID = "BPartner_Parent_ID"; + + /** Set Partner Parent. + * Business Partner Parent + */ + public void setBPartner_Parent_ID (int BPartner_Parent_ID); + + /** Get Partner Parent. + * Business Partner Parent + */ + public int getBPartner_Parent_ID(); + + /** Column name C_BP_Group_ID */ + public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; + + /** Set Business Partner Group. + * Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID); + + /** Get Business Partner Group. + * Business Partner Group + */ + public int getC_BP_Group_ID(); + + public I_C_BP_Group getC_BP_Group() throws Exception; + + /** 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(); + + /** Column name C_Dunning_ID */ + public static final String COLUMNNAME_C_Dunning_ID = "C_Dunning_ID"; + + /** Set Dunning. + * Dunning Rules for overdue invoices + */ + public void setC_Dunning_ID (int C_Dunning_ID); + + /** Get Dunning. + * Dunning Rules for overdue invoices + */ + public int getC_Dunning_ID(); + + public I_C_Dunning getC_Dunning() throws Exception; + + /** Column name C_Greeting_ID */ + public static final String COLUMNNAME_C_Greeting_ID = "C_Greeting_ID"; + + /** Set Greeting. + * Greeting to print on correspondence + */ + public void setC_Greeting_ID (int C_Greeting_ID); + + /** Get Greeting. + * Greeting to print on correspondence + */ + public int getC_Greeting_ID(); + + public I_C_Greeting getC_Greeting() throws Exception; + + /** Column name C_InvoiceSchedule_ID */ + public static final String COLUMNNAME_C_InvoiceSchedule_ID = "C_InvoiceSchedule_ID"; + + /** Set Invoice Schedule. + * Schedule for generating Invoices + */ + public void setC_InvoiceSchedule_ID (int C_InvoiceSchedule_ID); + + /** Get Invoice Schedule. + * Schedule for generating Invoices + */ + public int getC_InvoiceSchedule_ID(); + + public I_C_InvoiceSchedule getC_InvoiceSchedule() throws Exception; + + /** Column name C_PaymentTerm_ID */ + public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; + + /** Set Payment Term. + * The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID); + + /** Get Payment Term. + * The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID(); + + public I_C_PaymentTerm getC_PaymentTerm() throws Exception; + + /** Column name C_TaxGroup_ID */ + public static final String COLUMNNAME_C_TaxGroup_ID = "C_TaxGroup_ID"; + + /** Set Tax Group */ + public void setC_TaxGroup_ID (int C_TaxGroup_ID); + + /** Get Tax Group */ + public int getC_TaxGroup_ID(); + + public org.eevolution.model.I_C_TaxGroup getC_TaxGroup() throws Exception; + + /** Column name DUNS */ + public static final String COLUMNNAME_DUNS = "DUNS"; + + /** Set D-U-N-S. + * Dun & Bradstreet Number + */ + public void setDUNS (String DUNS); + + /** Get D-U-N-S. + * Dun & Bradstreet Number + */ + public String getDUNS(); + + /** Column name DeliveryRule */ + public static final String COLUMNNAME_DeliveryRule = "DeliveryRule"; + + /** Set Delivery Rule. + * Defines the timing of Delivery + */ + public void setDeliveryRule (String DeliveryRule); + + /** Get Delivery Rule. + * Defines the timing of Delivery + */ + public String getDeliveryRule(); + + /** Column name DeliveryViaRule */ + public static final String COLUMNNAME_DeliveryViaRule = "DeliveryViaRule"; + + /** Set Delivery Via. + * How the order will be delivered + */ + public void setDeliveryViaRule (String DeliveryViaRule); + + /** Get Delivery Via. + * How the order will be delivered + */ + public String getDeliveryViaRule(); + + /** 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 DocumentCopies */ + public static final String COLUMNNAME_DocumentCopies = "DocumentCopies"; + + /** Set Document Copies. + * Number of copies to be printed + */ + public void setDocumentCopies (int DocumentCopies); + + /** Get Document Copies. + * Number of copies to be printed + */ + public int getDocumentCopies(); + + /** Column name DunningGrace */ + public static final String COLUMNNAME_DunningGrace = "DunningGrace"; + + /** Set Dunning Grace */ + public void setDunningGrace (Timestamp DunningGrace); + + /** Get Dunning Grace */ + public Timestamp getDunningGrace(); + + /** Column name FirstSale */ + public static final String COLUMNNAME_FirstSale = "FirstSale"; + + /** Set First Sale. + * Date of First Sale + */ + public void setFirstSale (Timestamp FirstSale); + + /** Get First Sale. + * Date of First Sale + */ + public Timestamp getFirstSale(); + + /** Column name FlatDiscount */ + public static final String COLUMNNAME_FlatDiscount = "FlatDiscount"; + + /** Set Flat Discount %. + * Flat discount percentage + */ + public void setFlatDiscount (BigDecimal FlatDiscount); + + /** Get Flat Discount %. + * Flat discount percentage + */ + public BigDecimal getFlatDiscount(); + + /** Column name FreightCostRule */ + public static final String COLUMNNAME_FreightCostRule = "FreightCostRule"; + + /** Set Freight Cost Rule. + * Method for charging Freight + */ + public void setFreightCostRule (String FreightCostRule); + + /** Get Freight Cost Rule. + * Method for charging Freight + */ + public String getFreightCostRule(); + + /** Column name InvoiceRule */ + public static final String COLUMNNAME_InvoiceRule = "InvoiceRule"; + + /** Set Invoice Rule. + * Frequency and method of invoicing + */ + public void setInvoiceRule (String InvoiceRule); + + /** Get Invoice Rule. + * Frequency and method of invoicing + */ + public String getInvoiceRule(); + + /** Column name Invoice_PrintFormat_ID */ + public static final String COLUMNNAME_Invoice_PrintFormat_ID = "Invoice_PrintFormat_ID"; + + /** Set Invoice Print Format. + * Print Format for printing Invoices + */ + public void setInvoice_PrintFormat_ID (int Invoice_PrintFormat_ID); + + /** Get Invoice Print Format. + * Print Format for printing Invoices + */ + public int getInvoice_PrintFormat_ID(); + + /** Column name IsCustomer */ + public static final String COLUMNNAME_IsCustomer = "IsCustomer"; + + /** Set Customer. + * Indicates if this Business Partner is a Customer + */ + public void setIsCustomer (boolean IsCustomer); + + /** Get Customer. + * Indicates if this Business Partner is a Customer + */ + public boolean isCustomer(); + + /** Column name IsDiscountPrinted */ + public static final String COLUMNNAME_IsDiscountPrinted = "IsDiscountPrinted"; + + /** Set Discount Printed. + * Print Discount on Invoice and Order + */ + public void setIsDiscountPrinted (boolean IsDiscountPrinted); + + /** Get Discount Printed. + * Print Discount on Invoice and Order + */ + public boolean isDiscountPrinted(); + + /** Column name IsEmployee */ + public static final String COLUMNNAME_IsEmployee = "IsEmployee"; + + /** Set Employee. + * Indicates if this Business Partner is an employee + */ + public void setIsEmployee (boolean IsEmployee); + + /** Get Employee. + * Indicates if this Business Partner is an employee + */ + public boolean isEmployee(); + + /** Column name IsOneTime */ + public static final String COLUMNNAME_IsOneTime = "IsOneTime"; + + /** Set One time transaction */ + public void setIsOneTime (boolean IsOneTime); + + /** Get One time transaction */ + public boolean isOneTime(); + + /** Column name IsProspect */ + public static final String COLUMNNAME_IsProspect = "IsProspect"; + + /** Set Prospect. + * Indicates this is a Prospect + */ + public void setIsProspect (boolean IsProspect); + + /** Get Prospect. + * Indicates this is a Prospect + */ + public boolean isProspect(); + + /** Column name IsSalesRep */ + public static final String COLUMNNAME_IsSalesRep = "IsSalesRep"; + + /** Set Sales Representative. + * Indicates if the business partner is a sales representative or company agent + */ + public void setIsSalesRep (boolean IsSalesRep); + + /** Get Sales Representative. + * Indicates if the business partner is a sales representative or company agent + */ + public boolean isSalesRep(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name IsTaxExempt */ + public static final String COLUMNNAME_IsTaxExempt = "IsTaxExempt"; + + /** Set Tax exempt. + * Business partner is exempt from tax + */ + public void setIsTaxExempt (boolean IsTaxExempt); + + /** Get Tax exempt. + * Business partner is exempt from tax + */ + public boolean isTaxExempt(); + + /** Column name IsVendor */ + public static final String COLUMNNAME_IsVendor = "IsVendor"; + + /** Set Vendor. + * Indicates if this Business Partner is a Vendor + */ + public void setIsVendor (boolean IsVendor); + + /** Get Vendor. + * Indicates if this Business Partner is a Vendor + */ + public boolean isVendor(); + + /** Column name M_DiscountSchema_ID */ + public static final String COLUMNNAME_M_DiscountSchema_ID = "M_DiscountSchema_ID"; + + /** Set Discount Schema. + * Schema to calculate the trade discount percentage + */ + public void setM_DiscountSchema_ID (int M_DiscountSchema_ID); + + /** Get Discount Schema. + * Schema to calculate the trade discount percentage + */ + public int getM_DiscountSchema_ID(); + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + public I_M_PriceList getM_PriceList() throws Exception; + + /** Column name NAICS */ + public static final String COLUMNNAME_NAICS = "NAICS"; + + /** Set NAICS/SIC. + * Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html + */ + public void setNAICS (String NAICS); + + /** Get NAICS/SIC. + * Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html + */ + public String getNAICS(); + + /** 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 Name2 */ + public static final String COLUMNNAME_Name2 = "Name2"; + + /** Set Name 2. + * Additional Name + */ + public void setName2 (String Name2); + + /** Get Name 2. + * Additional Name + */ + public String getName2(); + + /** Column name NumberEmployees */ + public static final String COLUMNNAME_NumberEmployees = "NumberEmployees"; + + /** Set Employees. + * Number of employees + */ + public void setNumberEmployees (int NumberEmployees); + + /** Get Employees. + * Number of employees + */ + public int getNumberEmployees(); + + /** Column name POReference */ + public static final String COLUMNNAME_POReference = "POReference"; + + /** Set Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference); + + /** Get Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference(); + + /** Column name PO_DiscountSchema_ID */ + public static final String COLUMNNAME_PO_DiscountSchema_ID = "PO_DiscountSchema_ID"; + + /** Set PO Discount Schema. + * Schema to calculate the purchase trade discount percentage + */ + public void setPO_DiscountSchema_ID (int PO_DiscountSchema_ID); + + /** Get PO Discount Schema. + * Schema to calculate the purchase trade discount percentage + */ + public int getPO_DiscountSchema_ID(); + + /** Column name PO_PaymentTerm_ID */ + public static final String COLUMNNAME_PO_PaymentTerm_ID = "PO_PaymentTerm_ID"; + + /** Set PO Payment Term. + * Payment rules for a purchase order + */ + public void setPO_PaymentTerm_ID (int PO_PaymentTerm_ID); + + /** Get PO Payment Term. + * Payment rules for a purchase order + */ + public int getPO_PaymentTerm_ID(); + + /** Column name PO_PriceList_ID */ + public static final String COLUMNNAME_PO_PriceList_ID = "PO_PriceList_ID"; + + /** Set Purchase Pricelist. + * Price List used by this Business Partner + */ + public void setPO_PriceList_ID (int PO_PriceList_ID); + + /** Get Purchase Pricelist. + * Price List used by this Business Partner + */ + public int getPO_PriceList_ID(); + + /** Column name PaymentRule */ + public static final String COLUMNNAME_PaymentRule = "PaymentRule"; + + /** Set Payment Rule. + * How you pay the invoice + */ + public void setPaymentRule (String PaymentRule); + + /** Get Payment Rule. + * How you pay the invoice + */ + public String getPaymentRule(); + + /** Column name PaymentRulePO */ + public static final String COLUMNNAME_PaymentRulePO = "PaymentRulePO"; + + /** Set Payment Rule. + * Purchase payment option + */ + public void setPaymentRulePO (String PaymentRulePO); + + /** Get Payment Rule. + * Purchase payment option + */ + public String getPaymentRulePO(); + + /** Column name PotentialLifeTimeValue */ + public static final String COLUMNNAME_PotentialLifeTimeValue = "PotentialLifeTimeValue"; + + /** Set Potential Life Time Value. + * Total Revenue expected + */ + public void setPotentialLifeTimeValue (BigDecimal PotentialLifeTimeValue); + + /** Get Potential Life Time Value. + * Total Revenue expected + */ + public BigDecimal getPotentialLifeTimeValue(); + + /** Column name Rating */ + public static final String COLUMNNAME_Rating = "Rating"; + + /** Set Rating. + * Classification or Importance + */ + public void setRating (String Rating); + + /** Get Rating. + * Classification or Importance + */ + public String getRating(); + + /** Column name ReferenceNo */ + public static final String COLUMNNAME_ReferenceNo = "ReferenceNo"; + + /** Set Reference No. + * Your customer or vendor number at the Business Partner's site + */ + public void setReferenceNo (String ReferenceNo); + + /** Get Reference No. + * Your customer or vendor number at the Business Partner's site + */ + public String getReferenceNo(); + + /** Column name SOCreditStatus */ + public static final String COLUMNNAME_SOCreditStatus = "SOCreditStatus"; + + /** Set Credit Status. + * Business Partner Credit Status + */ + public void setSOCreditStatus (String SOCreditStatus); + + /** Get Credit Status. + * Business Partner Credit Status + */ + public String getSOCreditStatus(); + + /** Column name SO_CreditLimit */ + public static final String COLUMNNAME_SO_CreditLimit = "SO_CreditLimit"; + + /** Set Credit Limit. + * Total outstanding invoice amounts allowed + */ + public void setSO_CreditLimit (BigDecimal SO_CreditLimit); + + /** Get Credit Limit. + * Total outstanding invoice amounts allowed + */ + public BigDecimal getSO_CreditLimit(); + + /** Column name SO_CreditUsed */ + public static final String COLUMNNAME_SO_CreditUsed = "SO_CreditUsed"; + + /** Set Credit Used. + * Current open balance + */ + public void setSO_CreditUsed (BigDecimal SO_CreditUsed); + + /** Get Credit Used. + * Current open balance + */ + public BigDecimal getSO_CreditUsed(); + + /** Column name SO_Description */ + public static final String COLUMNNAME_SO_Description = "SO_Description"; + + /** Set Order Description. + * Description to be used on orders + */ + public void setSO_Description (String SO_Description); + + /** Get Order Description. + * Description to be used on orders + */ + public String getSO_Description(); + + /** 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 SalesVolume */ + public static final String COLUMNNAME_SalesVolume = "SalesVolume"; + + /** Set Sales Volume in 1.000. + * Total Volume of Sales in Thousands of Currency + */ + public void setSalesVolume (int SalesVolume); + + /** Get Sales Volume in 1.000. + * Total Volume of Sales in Thousands of Currency + */ + public int getSalesVolume(); + + /** Column name SendEMail */ + public static final String COLUMNNAME_SendEMail = "SendEMail"; + + /** Set Send EMail. + * Enable sending Document EMail + */ + public void setSendEMail (boolean SendEMail); + + /** Get Send EMail. + * Enable sending Document EMail + */ + public boolean isSendEMail(); + + /** Column name ShareOfCustomer */ + public static final String COLUMNNAME_ShareOfCustomer = "ShareOfCustomer"; + + /** Set Share. + * Share of Customer's business as a percentage + */ + public void setShareOfCustomer (int ShareOfCustomer); + + /** Get Share. + * Share of Customer's business as a percentage + */ + public int getShareOfCustomer(); + + /** Column name ShelfLifeMinPct */ + public static final String COLUMNNAME_ShelfLifeMinPct = "ShelfLifeMinPct"; + + /** Set Min Shelf Life %. + * Minimum Shelf Life in percent based on Product Instance Guarantee Date + */ + public void setShelfLifeMinPct (int ShelfLifeMinPct); + + /** Get Min Shelf Life %. + * Minimum Shelf Life in percent based on Product Instance Guarantee Date + */ + public int getShelfLifeMinPct(); + + /** Column name TaxID */ + public static final String COLUMNNAME_TaxID = "TaxID"; + + /** Set Tax ID. + * Tax Identification + */ + public void setTaxID (String TaxID); + + /** Get Tax ID. + * Tax Identification + */ + public String getTaxID(); + + /** Column name TotalOpenBalance */ + public static final String COLUMNNAME_TotalOpenBalance = "TotalOpenBalance"; + + /** Set Open Balance. + * Total Open Balance Amount in primary Accounting Currency + */ + public void setTotalOpenBalance (BigDecimal TotalOpenBalance); + + /** Get Open Balance. + * Total Open Balance Amount in primary Accounting Currency + */ + public BigDecimal getTotalOpenBalance(); + + /** Column name URL */ + public static final String COLUMNNAME_URL = "URL"; + + /** Set URL. + * Full URL address - e.g. http://www.adempiere.org + */ + public void setURL (String URL); + + /** Get URL. + * Full URL address - e.g. http://www.adempiere.org + */ + public String getURL(); + + /** 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(); +} diff --git a/base/src/org/compiere/model/I_C_CashLine.java b/base/src/org/compiere/model/I_C_CashLine.java new file mode 100644 index 0000000000..b186ac2d41 --- /dev/null +++ b/base/src/org/compiere/model/I_C_CashLine.java @@ -0,0 +1,265 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for C_CashLine + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_C_CashLine +{ + + /** TableName=C_CashLine */ + public static final String Table_Name = "C_CashLine"; + + /** AD_Table_ID=410 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(3); + + /** Load Meta Data */ + + /** Column name Amount */ + public static final String COLUMNNAME_Amount = "Amount"; + + /** Set Amount. + * Amount in a defined currency + */ + public void setAmount (BigDecimal Amount); + + /** Get Amount. + * Amount in a defined currency + */ + public BigDecimal getAmount(); + + /** Column name C_BankAccount_ID */ + public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; + + /** Set Bank Account. + * Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID); + + /** Get Bank Account. + * Account at the Bank + */ + public int getC_BankAccount_ID(); + + public I_C_BankAccount getC_BankAccount() throws Exception; + + /** Column name C_CashLine_ID */ + public static final String COLUMNNAME_C_CashLine_ID = "C_CashLine_ID"; + + /** Set Cash Journal Line. + * Cash Journal Line + */ + public void setC_CashLine_ID (int C_CashLine_ID); + + /** Get Cash Journal Line. + * Cash Journal Line + */ + public int getC_CashLine_ID(); + + /** Column name C_Cash_ID */ + public static final String COLUMNNAME_C_Cash_ID = "C_Cash_ID"; + + /** Set Cash Journal. + * Cash Journal + */ + public void setC_Cash_ID (int C_Cash_ID); + + /** Get Cash Journal. + * Cash Journal + */ + public int getC_Cash_ID(); + + public I_C_Cash getC_Cash() throws Exception; + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + public I_C_Charge getC_Charge() throws Exception; + + /** 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 I_C_Currency getC_Currency() throws Exception; + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + public I_C_Invoice getC_Invoice() throws Exception; + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + public I_C_Payment getC_Payment() throws Exception; + + /** Column name CashType */ + public static final String COLUMNNAME_CashType = "CashType"; + + /** Set Cash Type. + * Source of Cash + */ + public void setCashType (String CashType); + + /** Get Cash Type. + * Source of Cash + */ + public String getCashType(); + + /** 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 DiscountAmt */ + public static final String COLUMNNAME_DiscountAmt = "DiscountAmt"; + + /** Set Discount Amount. + * Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt); + + /** Get Discount Amount. + * Calculated amount of discount + */ + public BigDecimal getDiscountAmt(); + + /** Column name IsGenerated */ + public static final String COLUMNNAME_IsGenerated = "IsGenerated"; + + /** Set Generated. + * This Line is generated + */ + public void setIsGenerated (boolean IsGenerated); + + /** Get Generated. + * This Line is generated + */ + public boolean isGenerated(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name WriteOffAmt */ + public static final String COLUMNNAME_WriteOffAmt = "WriteOffAmt"; + + /** Set Write-off Amount. + * Amount to write-off + */ + public void setWriteOffAmt (BigDecimal WriteOffAmt); + + /** Get Write-off Amount. + * Amount to write-off + */ + public BigDecimal getWriteOffAmt(); +} diff --git a/base/src/org/compiere/model/I_C_Invoice.java b/base/src/org/compiere/model/I_C_Invoice.java new file mode 100644 index 0000000000..97de3f29b4 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Invoice.java @@ -0,0 +1,816 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for C_Invoice + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_C_Invoice +{ + + /** TableName=C_Invoice */ + public static final String Table_Name = "C_Invoice"; + + /** AD_Table_ID=318 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(1); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_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 I_AD_User getAD_User() throws Exception; + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getC_Activity() throws Exception; + + /** 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 I_C_BPartner getC_BPartner() throws Exception; + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getC_BPartner_Location() throws Exception; + + /** 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 I_C_Campaign getC_Campaign() throws Exception; + + /** Column name C_CashLine_ID */ + public static final String COLUMNNAME_C_CashLine_ID = "C_CashLine_ID"; + + /** Set Cash Journal Line. + * Cash Journal Line + */ + public void setC_CashLine_ID (int C_CashLine_ID); + + /** Get Cash Journal Line. + * Cash Journal Line + */ + public int getC_CashLine_ID(); + + public I_C_CashLine getC_CashLine() throws Exception; + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + /** Column name C_ConversionType_ID */ + public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; + + /** Set Currency Type. + * Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID); + + /** Get Currency Type. + * Currency Conversion Rate Type + */ + public int getC_ConversionType_ID(); + + public I_C_ConversionType getC_ConversionType() throws Exception; + + /** 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 I_C_Currency getC_Currency() throws Exception; + + /** Column name C_DocTypeTarget_ID */ + public static final String COLUMNNAME_C_DocTypeTarget_ID = "C_DocTypeTarget_ID"; + + /** Set Target Document Type. + * Target document type for conversing documents + */ + public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID); + + /** Get Target Document Type. + * Target document type for conversing documents + */ + public int getC_DocTypeTarget_ID(); + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getC_DocType() throws Exception; + + /** Column name C_DunningLevel_ID */ + public static final String COLUMNNAME_C_DunningLevel_ID = "C_DunningLevel_ID"; + + /** Set Dunning Level */ + public void setC_DunningLevel_ID (int C_DunningLevel_ID); + + /** Get Dunning Level */ + public int getC_DunningLevel_ID(); + + public I_C_DunningLevel getC_DunningLevel() throws Exception; + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + /** 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 I_C_Order getC_Order() throws Exception; + + /** Column name C_PaymentTerm_ID */ + public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; + + /** Set Payment Term. + * The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID); + + /** Get Payment Term. + * The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID(); + + public I_C_PaymentTerm getC_PaymentTerm() throws Exception; + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + public I_C_Payment getC_Payment() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getC_Project() throws Exception; + + /** Column name ChargeAmt */ + public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; + + /** Set Charge amount. + * Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt); + + /** Get Charge amount. + * Charge Amount + */ + public BigDecimal getChargeAmt(); + + /** Column name CopyFrom */ + public static final String COLUMNNAME_CopyFrom = "CopyFrom"; + + /** Set Copy From. + * Copy From Record + */ + public void setCopyFrom (String CopyFrom); + + /** Get Copy From. + * Copy From Record + */ + public String getCopyFrom(); + + /** Column name CreateFrom */ + public static final String COLUMNNAME_CreateFrom = "CreateFrom"; + + /** Set Create lines from. + * Process which will generate a new document lines based on an existing document + */ + public void setCreateFrom (String CreateFrom); + + /** Get Create lines from. + * Process which will generate a new document lines based on an existing document + */ + public String getCreateFrom(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateInvoiced */ + public static final String COLUMNNAME_DateInvoiced = "DateInvoiced"; + + /** Set Date Invoiced. + * Date printed on Invoice + */ + public void setDateInvoiced (Timestamp DateInvoiced); + + /** Get Date Invoiced. + * Date printed on Invoice + */ + public Timestamp getDateInvoiced(); + + /** Column name DateOrdered */ + public static final String COLUMNNAME_DateOrdered = "DateOrdered"; + + /** Set Date Ordered. + * Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered); + + /** Get Date Ordered. + * Date of Order + */ + public Timestamp getDateOrdered(); + + /** Column name DatePrinted */ + public static final String COLUMNNAME_DatePrinted = "DatePrinted"; + + /** Set Date printed. + * Date the document was printed. + */ + public void setDatePrinted (Timestamp DatePrinted); + + /** Get Date printed. + * Date the document was printed. + */ + public Timestamp getDatePrinted(); + + /** 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 DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** 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 DunningGrace */ + public static final String COLUMNNAME_DunningGrace = "DunningGrace"; + + /** Set Dunning Grace */ + public void setDunningGrace (Timestamp DunningGrace); + + /** Get Dunning Grace */ + public Timestamp getDunningGrace(); + + /** Column name GenerateTo */ + public static final String COLUMNNAME_GenerateTo = "GenerateTo"; + + /** Set Generate To. + * Generate To + */ + public void setGenerateTo (String GenerateTo); + + /** Get Generate To. + * Generate To + */ + public String getGenerateTo(); + + /** Column name GrandTotal */ + public static final String COLUMNNAME_GrandTotal = "GrandTotal"; + + /** Set Grand Total. + * Total amount of document + */ + public void setGrandTotal (BigDecimal GrandTotal); + + /** Get Grand Total. + * Total amount of document + */ + public BigDecimal getGrandTotal(); + + /** Column name InvoiceCollectionType */ + public static final String COLUMNNAME_InvoiceCollectionType = "InvoiceCollectionType"; + + /** Set Collection Status. + * Invoice Collection Status + */ + public void setInvoiceCollectionType (String InvoiceCollectionType); + + /** Get Collection Status. + * Invoice Collection Status + */ + public String getInvoiceCollectionType(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name IsDiscountPrinted */ + public static final String COLUMNNAME_IsDiscountPrinted = "IsDiscountPrinted"; + + /** Set Discount Printed. + * Print Discount on Invoice and Order + */ + public void setIsDiscountPrinted (boolean IsDiscountPrinted); + + /** Get Discount Printed. + * Print Discount on Invoice and Order + */ + public boolean isDiscountPrinted(); + + /** Column name IsInDispute */ + public static final String COLUMNNAME_IsInDispute = "IsInDispute"; + + /** Set In Dispute. + * Document is in dispute + */ + public void setIsInDispute (boolean IsInDispute); + + /** Get In Dispute. + * Document is in dispute + */ + public boolean isInDispute(); + + /** Column name IsPaid */ + public static final String COLUMNNAME_IsPaid = "IsPaid"; + + /** Set Paid. + * The document is paid + */ + public void setIsPaid (boolean IsPaid); + + /** Get Paid. + * The document is paid + */ + public boolean isPaid(); + + /** Column name IsPayScheduleValid */ + public static final String COLUMNNAME_IsPayScheduleValid = "IsPayScheduleValid"; + + /** Set Pay Schedule valid. + * Is the Payment Schedule is valid + */ + public void setIsPayScheduleValid (boolean IsPayScheduleValid); + + /** Get Pay Schedule valid. + * Is the Payment Schedule is valid + */ + public boolean isPayScheduleValid(); + + /** Column name IsPrinted */ + public static final String COLUMNNAME_IsPrinted = "IsPrinted"; + + /** Set Printed. + * Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted); + + /** Get Printed. + * Indicates if this document / line is printed + */ + public boolean isPrinted(); + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name IsTaxIncluded */ + public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded"; + + /** Set Price includes Tax. + * Tax is included in the price + */ + public void setIsTaxIncluded (boolean IsTaxIncluded); + + /** Get Price includes Tax. + * Tax is included in the price + */ + public boolean isTaxIncluded(); + + /** Column name IsTransferred */ + public static final String COLUMNNAME_IsTransferred = "IsTransferred"; + + /** Set Transferred. + * Transferred to General Ledger (i.e. accounted) + */ + public void setIsTransferred (boolean IsTransferred); + + /** Get Transferred. + * Transferred to General Ledger (i.e. accounted) + */ + public boolean isTransferred(); + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + public I_M_PriceList getM_PriceList() throws Exception; + + /** Column name M_RMA_ID */ + public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; + + /** Set RMA. + * Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID); + + /** Get RMA. + * Return Material Authorization + */ + public int getM_RMA_ID(); + + public I_M_RMA getM_RMA() throws Exception; + + /** Column name POReference */ + public static final String COLUMNNAME_POReference = "POReference"; + + /** Set Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference); + + /** Get Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference(); + + /** Column name PaymentRule */ + public static final String COLUMNNAME_PaymentRule = "PaymentRule"; + + /** Set Payment Rule. + * How you pay the invoice + */ + public void setPaymentRule (String PaymentRule); + + /** Get Payment Rule. + * How you pay the invoice + */ + public String getPaymentRule(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Ref_Invoice_ID */ + public static final String COLUMNNAME_Ref_Invoice_ID = "Ref_Invoice_ID"; + + /** Set Referenced Invoice */ + public void setRef_Invoice_ID (int Ref_Invoice_ID); + + /** Get Referenced Invoice */ + public int getRef_Invoice_ID(); + + /** Column name Reversal_ID */ + public static final String COLUMNNAME_Reversal_ID = "Reversal_ID"; + + /** Set Reversal ID. + * ID of document reversal + */ + public void setReversal_ID (int Reversal_ID); + + /** Get Reversal ID. + * ID of document reversal + */ + public int getReversal_ID(); + + /** 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 SendEMail */ + public static final String COLUMNNAME_SendEMail = "SendEMail"; + + /** Set Send EMail. + * Enable sending Document EMail + */ + public void setSendEMail (boolean SendEMail); + + /** Get Send EMail. + * Enable sending Document EMail + */ + public boolean isSendEMail(); + + /** Column name TotalLines */ + public static final String COLUMNNAME_TotalLines = "TotalLines"; + + /** Set Total Lines. + * Total of all document lines + */ + public void setTotalLines (BigDecimal TotalLines); + + /** Get Total Lines. + * Total of all document lines + */ + public BigDecimal getTotalLines(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); +} diff --git a/base/src/org/compiere/model/I_C_Order.java b/base/src/org/compiere/model/I_C_Order.java new file mode 100644 index 0000000000..7676fc6d14 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Order.java @@ -0,0 +1,990 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for C_Order + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_C_Order +{ + + /** TableName=C_Order */ + public static final String Table_Name = "C_Order"; + + /** AD_Table_ID=259 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(1); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_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 I_AD_User getAD_User() throws Exception; + + /** Column name AmountRefunded */ + public static final String COLUMNNAME_AmountRefunded = "AmountRefunded"; + + /** Set AmountRefunded */ + public void setAmountRefunded (BigDecimal AmountRefunded); + + /** Get AmountRefunded */ + public BigDecimal getAmountRefunded(); + + /** Column name AmountTendered */ + public static final String COLUMNNAME_AmountTendered = "AmountTendered"; + + /** Set AmountTendered */ + public void setAmountTendered (BigDecimal AmountTendered); + + /** Get AmountTendered */ + public BigDecimal getAmountTendered(); + + /** Column name Bill_BPartner_ID */ + public static final String COLUMNNAME_Bill_BPartner_ID = "Bill_BPartner_ID"; + + /** Set Invoice Partner. + * Business Partner to be invoiced + */ + public void setBill_BPartner_ID (int Bill_BPartner_ID); + + /** Get Invoice Partner. + * Business Partner to be invoiced + */ + public int getBill_BPartner_ID(); + + /** Column name Bill_Location_ID */ + public static final String COLUMNNAME_Bill_Location_ID = "Bill_Location_ID"; + + /** Set Invoice Location. + * Business Partner Location for invoicing + */ + public void setBill_Location_ID (int Bill_Location_ID); + + /** Get Invoice Location. + * Business Partner Location for invoicing + */ + public int getBill_Location_ID(); + + /** Column name Bill_User_ID */ + public static final String COLUMNNAME_Bill_User_ID = "Bill_User_ID"; + + /** Set Invoice Contact. + * Business Partner Contact for invoicing + */ + public void setBill_User_ID (int Bill_User_ID); + + /** Get Invoice Contact. + * Business Partner Contact for invoicing + */ + public int getBill_User_ID(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getC_Activity() throws Exception; + + /** 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 I_C_BPartner getC_BPartner() throws Exception; + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getC_BPartner_Location() throws Exception; + + /** 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 I_C_Campaign getC_Campaign() throws Exception; + + /** Column name C_CashLine_ID */ + public static final String COLUMNNAME_C_CashLine_ID = "C_CashLine_ID"; + + /** Set Cash Journal Line. + * Cash Journal Line + */ + public void setC_CashLine_ID (int C_CashLine_ID); + + /** Get Cash Journal Line. + * Cash Journal Line + */ + public int getC_CashLine_ID(); + + public I_C_CashLine getC_CashLine() throws Exception; + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + /** Column name C_ConversionType_ID */ + public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; + + /** Set Currency Type. + * Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID); + + /** Get Currency Type. + * Currency Conversion Rate Type + */ + public int getC_ConversionType_ID(); + + public I_C_ConversionType getC_ConversionType() throws Exception; + + /** 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 I_C_Currency getC_Currency() throws Exception; + + /** Column name C_DocTypeTarget_ID */ + public static final String COLUMNNAME_C_DocTypeTarget_ID = "C_DocTypeTarget_ID"; + + /** Set Target Document Type. + * Target document type for conversing documents + */ + public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID); + + /** Get Target Document Type. + * Target document type for conversing documents + */ + public int getC_DocTypeTarget_ID(); + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getC_DocType() throws Exception; + + /** 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(); + + /** Column name C_POS_ID */ + public static final String COLUMNNAME_C_POS_ID = "C_POS_ID"; + + /** Set POS Terminal. + * Point of Sales Terminal + */ + public void setC_POS_ID (int C_POS_ID); + + /** Get POS Terminal. + * Point of Sales Terminal + */ + public int getC_POS_ID(); + + public I_C_POS getC_POS() throws Exception; + + /** Column name C_PaymentTerm_ID */ + public static final String COLUMNNAME_C_PaymentTerm_ID = "C_PaymentTerm_ID"; + + /** Set Payment Term. + * The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID); + + /** Get Payment Term. + * The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID(); + + public I_C_PaymentTerm getC_PaymentTerm() throws Exception; + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + public I_C_Payment getC_Payment() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getC_Project() throws Exception; + + /** Column name ChargeAmt */ + public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; + + /** Set Charge amount. + * Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt); + + /** Get Charge amount. + * Charge Amount + */ + public BigDecimal getChargeAmt(); + + /** Column name CopyFrom */ + public static final String COLUMNNAME_CopyFrom = "CopyFrom"; + + /** Set Copy From. + * Copy From Record + */ + public void setCopyFrom (String CopyFrom); + + /** Get Copy From. + * Copy From Record + */ + public String getCopyFrom(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateOrdered */ + public static final String COLUMNNAME_DateOrdered = "DateOrdered"; + + /** Set Date Ordered. + * Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered); + + /** Get Date Ordered. + * Date of Order + */ + public Timestamp getDateOrdered(); + + /** Column name DatePrinted */ + public static final String COLUMNNAME_DatePrinted = "DatePrinted"; + + /** Set Date printed. + * Date the document was printed. + */ + public void setDatePrinted (Timestamp DatePrinted); + + /** Get Date printed. + * Date the document was printed. + */ + public Timestamp getDatePrinted(); + + /** Column name DatePromised */ + public static final String COLUMNNAME_DatePromised = "DatePromised"; + + /** Set Date Promised. + * Date Order was promised + */ + public void setDatePromised (Timestamp DatePromised); + + /** Get Date Promised. + * Date Order was promised + */ + public Timestamp getDatePromised(); + + /** Column name DeliveryRule */ + public static final String COLUMNNAME_DeliveryRule = "DeliveryRule"; + + /** Set Delivery Rule. + * Defines the timing of Delivery + */ + public void setDeliveryRule (String DeliveryRule); + + /** Get Delivery Rule. + * Defines the timing of Delivery + */ + public String getDeliveryRule(); + + /** Column name DeliveryViaRule */ + public static final String COLUMNNAME_DeliveryViaRule = "DeliveryViaRule"; + + /** Set Delivery Via. + * How the order will be delivered + */ + public void setDeliveryViaRule (String DeliveryViaRule); + + /** Get Delivery Via. + * How the order will be delivered + */ + public String getDeliveryViaRule(); + + /** 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 DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** 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 FreightAmt */ + public static final String COLUMNNAME_FreightAmt = "FreightAmt"; + + /** Set Freight Amount. + * Freight Amount + */ + public void setFreightAmt (BigDecimal FreightAmt); + + /** Get Freight Amount. + * Freight Amount + */ + public BigDecimal getFreightAmt(); + + /** Column name FreightCostRule */ + public static final String COLUMNNAME_FreightCostRule = "FreightCostRule"; + + /** Set Freight Cost Rule. + * Method for charging Freight + */ + public void setFreightCostRule (String FreightCostRule); + + /** Get Freight Cost Rule. + * Method for charging Freight + */ + public String getFreightCostRule(); + + /** Column name GrandTotal */ + public static final String COLUMNNAME_GrandTotal = "GrandTotal"; + + /** Set Grand Total. + * Total amount of document + */ + public void setGrandTotal (BigDecimal GrandTotal); + + /** Get Grand Total. + * Total amount of document + */ + public BigDecimal getGrandTotal(); + + /** Column name InvoiceRule */ + public static final String COLUMNNAME_InvoiceRule = "InvoiceRule"; + + /** Set Invoice Rule. + * Frequency and method of invoicing + */ + public void setInvoiceRule (String InvoiceRule); + + /** Get Invoice Rule. + * Frequency and method of invoicing + */ + public String getInvoiceRule(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name IsCreditApproved */ + public static final String COLUMNNAME_IsCreditApproved = "IsCreditApproved"; + + /** Set Credit Approved. + * Credit has been approved + */ + public void setIsCreditApproved (boolean IsCreditApproved); + + /** Get Credit Approved. + * Credit has been approved + */ + public boolean isCreditApproved(); + + /** Column name IsDelivered */ + public static final String COLUMNNAME_IsDelivered = "IsDelivered"; + + /** Set Delivered */ + public void setIsDelivered (boolean IsDelivered); + + /** Get Delivered */ + public boolean isDelivered(); + + /** Column name IsDiscountPrinted */ + public static final String COLUMNNAME_IsDiscountPrinted = "IsDiscountPrinted"; + + /** Set Discount Printed. + * Print Discount on Invoice and Order + */ + public void setIsDiscountPrinted (boolean IsDiscountPrinted); + + /** Get Discount Printed. + * Print Discount on Invoice and Order + */ + public boolean isDiscountPrinted(); + + /** Column name IsDropShip */ + public static final String COLUMNNAME_IsDropShip = "IsDropShip"; + + /** Set Drop Shipment. + * Drop Shipments are sent from the Vendor directly to the Customer + */ + public void setIsDropShip (boolean IsDropShip); + + /** Get Drop Shipment. + * Drop Shipments are sent from the Vendor directly to the Customer + */ + public boolean isDropShip(); + + /** Column name IsInvoiced */ + public static final String COLUMNNAME_IsInvoiced = "IsInvoiced"; + + /** Set Invoiced. + * Is this invoiced? + */ + public void setIsInvoiced (boolean IsInvoiced); + + /** Get Invoiced. + * Is this invoiced? + */ + public boolean isInvoiced(); + + /** Column name IsPrinted */ + public static final String COLUMNNAME_IsPrinted = "IsPrinted"; + + /** Set Printed. + * Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted); + + /** Get Printed. + * Indicates if this document / line is printed + */ + public boolean isPrinted(); + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name IsSelected */ + public static final String COLUMNNAME_IsSelected = "IsSelected"; + + /** Set Selected */ + public void setIsSelected (boolean IsSelected); + + /** Get Selected */ + public boolean isSelected(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name IsTaxIncluded */ + public static final String COLUMNNAME_IsTaxIncluded = "IsTaxIncluded"; + + /** Set Price includes Tax. + * Tax is included in the price + */ + public void setIsTaxIncluded (boolean IsTaxIncluded); + + /** Get Price includes Tax. + * Tax is included in the price + */ + public boolean isTaxIncluded(); + + /** Column name IsTransferred */ + public static final String COLUMNNAME_IsTransferred = "IsTransferred"; + + /** Set Transferred. + * Transferred to General Ledger (i.e. accounted) + */ + public void setIsTransferred (boolean IsTransferred); + + /** Get Transferred. + * Transferred to General Ledger (i.e. accounted) + */ + public boolean isTransferred(); + + /** Column name Link_Order_ID */ + public static final String COLUMNNAME_Link_Order_ID = "Link_Order_ID"; + + /** Set Linked Order. + * This field links a sales order to the purchase order that is generated from it. + */ + public void setLink_Order_ID (int Link_Order_ID); + + /** Get Linked Order. + * This field links a sales order to the purchase order that is generated from it. + */ + public int getLink_Order_ID(); + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + public I_M_PriceList getM_PriceList() throws Exception; + + /** Column name M_Shipper_ID */ + public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; + + /** Set Shipper. + * Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID); + + /** Get Shipper. + * Method or manner of product delivery + */ + public int getM_Shipper_ID(); + + public I_M_Shipper getM_Shipper() throws Exception; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getM_Warehouse() throws Exception; + + /** Column name OrderType */ + public static final String COLUMNNAME_OrderType = "OrderType"; + + /** Set OrderType */ + public void setOrderType (String OrderType); + + /** Get OrderType */ + public String getOrderType(); + + /** Column name POReference */ + public static final String COLUMNNAME_POReference = "POReference"; + + /** Set Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference); + + /** Get Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference(); + + /** Column name Pay_BPartner_ID */ + public static final String COLUMNNAME_Pay_BPartner_ID = "Pay_BPartner_ID"; + + /** Set Payment BPartner. + * Business Partner responsible for the payment + */ + public void setPay_BPartner_ID (int Pay_BPartner_ID); + + /** Get Payment BPartner. + * Business Partner responsible for the payment + */ + public int getPay_BPartner_ID(); + + /** Column name Pay_Location_ID */ + public static final String COLUMNNAME_Pay_Location_ID = "Pay_Location_ID"; + + /** Set Payment Location. + * Location of the Business Partner responsible for the payment + */ + public void setPay_Location_ID (int Pay_Location_ID); + + /** Get Payment Location. + * Location of the Business Partner responsible for the payment + */ + public int getPay_Location_ID(); + + /** Column name PaymentRule */ + public static final String COLUMNNAME_PaymentRule = "PaymentRule"; + + /** Set Payment Rule. + * How you pay the invoice + */ + public void setPaymentRule (String PaymentRule); + + /** Get Payment Rule. + * How you pay the invoice + */ + public String getPaymentRule(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name PriorityRule */ + public static final String COLUMNNAME_PriorityRule = "PriorityRule"; + + /** Set Priority. + * Priority of a document + */ + public void setPriorityRule (String PriorityRule); + + /** Get Priority. + * Priority of a document + */ + public String getPriorityRule(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Ref_Order_ID */ + public static final String COLUMNNAME_Ref_Order_ID = "Ref_Order_ID"; + + /** Set Referenced Order. + * Reference to corresponding Sales/Purchase Order + */ + public void setRef_Order_ID (int Ref_Order_ID); + + /** Get Referenced Order. + * Reference to corresponding Sales/Purchase Order + */ + public int getRef_Order_ID(); + + /** 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 SendEMail */ + public static final String COLUMNNAME_SendEMail = "SendEMail"; + + /** Set Send EMail. + * Enable sending Document EMail + */ + public void setSendEMail (boolean SendEMail); + + /** Get Send EMail. + * Enable sending Document EMail + */ + public boolean isSendEMail(); + + /** Column name TotalLines */ + public static final String COLUMNNAME_TotalLines = "TotalLines"; + + /** Set Total Lines. + * Total of all document lines + */ + public void setTotalLines (BigDecimal TotalLines); + + /** Get Total Lines. + * Total of all document lines + */ + public BigDecimal getTotalLines(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); + + /** Column name Volume */ + public static final String COLUMNNAME_Volume = "Volume"; + + /** Set Volume. + * Volume of a product + */ + public void setVolume (BigDecimal Volume); + + /** Get Volume. + * Volume of a product + */ + public BigDecimal getVolume(); + + /** Column name Weight */ + public static final String COLUMNNAME_Weight = "Weight"; + + /** Set Weight. + * Weight of a product + */ + public void setWeight (BigDecimal Weight); + + /** Get Weight. + * Weight of a product + */ + public BigDecimal getWeight(); +} diff --git a/base/src/org/compiere/model/I_C_OrderLine.java b/base/src/org/compiere/model/I_C_OrderLine.java new file mode 100644 index 0000000000..6166e83051 --- /dev/null +++ b/base/src/org/compiere/model/I_C_OrderLine.java @@ -0,0 +1,698 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for C_OrderLine + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_C_OrderLine +{ + + /** TableName=C_OrderLine */ + public static final String Table_Name = "C_OrderLine"; + + /** AD_Table_ID=260 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(1); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getC_Activity() throws Exception; + + /** 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 I_C_BPartner getC_BPartner() throws Exception; + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getC_BPartner_Location() throws Exception; + + /** 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 I_C_Campaign getC_Campaign() throws Exception; + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + public I_C_Charge getC_Charge() throws Exception; + + /** 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 I_C_Currency getC_Currency() throws Exception; + + /** Column name C_OrderLine_ID */ + public static final String COLUMNNAME_C_OrderLine_ID = "C_OrderLine_ID"; + + /** Set Sales Order Line. + * Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID); + + /** Get Sales Order Line. + * Sales Order Line + */ + public int getC_OrderLine_ID(); + + /** 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 I_C_Order getC_Order() throws Exception; + + /** Column name C_ProjectPhase_ID */ + public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID"; + + /** Set Project Phase. + * Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID); + + /** Get Project Phase. + * Phase of a Project + */ + public int getC_ProjectPhase_ID(); + + public I_C_ProjectPhase getC_ProjectPhase() throws Exception; + + /** Column name C_ProjectTask_ID */ + public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID"; + + /** Set Project Task. + * Actual Project Task in a Phase + */ + public void setC_ProjectTask_ID (int C_ProjectTask_ID); + + /** Get Project Task. + * Actual Project Task in a Phase + */ + public int getC_ProjectTask_ID(); + + public I_C_ProjectTask getC_ProjectTask() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getC_Project() throws Exception; + + /** Column name C_Tax_ID */ + public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; + + /** Set Tax. + * Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID); + + /** Get Tax. + * Tax identifier + */ + public int getC_Tax_ID(); + + public I_C_Tax getC_Tax() throws Exception; + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getC_UOM() throws Exception; + + /** Column name DateDelivered */ + public static final String COLUMNNAME_DateDelivered = "DateDelivered"; + + /** Set Date Delivered. + * Date when the product was delivered + */ + public void setDateDelivered (Timestamp DateDelivered); + + /** Get Date Delivered. + * Date when the product was delivered + */ + public Timestamp getDateDelivered(); + + /** Column name DateInvoiced */ + public static final String COLUMNNAME_DateInvoiced = "DateInvoiced"; + + /** Set Date Invoiced. + * Date printed on Invoice + */ + public void setDateInvoiced (Timestamp DateInvoiced); + + /** Get Date Invoiced. + * Date printed on Invoice + */ + public Timestamp getDateInvoiced(); + + /** Column name DateOrdered */ + public static final String COLUMNNAME_DateOrdered = "DateOrdered"; + + /** Set Date Ordered. + * Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered); + + /** Get Date Ordered. + * Date of Order + */ + public Timestamp getDateOrdered(); + + /** Column name DatePromised */ + public static final String COLUMNNAME_DatePromised = "DatePromised"; + + /** Set Date Promised. + * Date Order was promised + */ + public void setDatePromised (Timestamp DatePromised); + + /** Get Date Promised. + * Date Order was promised + */ + public Timestamp getDatePromised(); + + /** 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 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 FreightAmt */ + public static final String COLUMNNAME_FreightAmt = "FreightAmt"; + + /** Set Freight Amount. + * Freight Amount + */ + public void setFreightAmt (BigDecimal FreightAmt); + + /** Get Freight Amount. + * Freight Amount + */ + public BigDecimal getFreightAmt(); + + /** Column name IsDescription */ + public static final String COLUMNNAME_IsDescription = "IsDescription"; + + /** Set Description Only. + * if true, the line is just description and no transaction + */ + public void setIsDescription (boolean IsDescription); + + /** Get Description Only. + * if true, the line is just description and no transaction + */ + public boolean isDescription(); + + /** Column name Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name LineNetAmt */ + public static final String COLUMNNAME_LineNetAmt = "LineNetAmt"; + + /** Set Line Amount. + * Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public void setLineNetAmt (BigDecimal LineNetAmt); + + /** Get Line Amount. + * Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public BigDecimal getLineNetAmt(); + + /** Column name Link_OrderLine_ID */ + public static final String COLUMNNAME_Link_OrderLine_ID = "Link_OrderLine_ID"; + + /** Set Linked Order Line. + * This field links a sales order line to the purchase order line that is generated from it. + */ + public void setLink_OrderLine_ID (int Link_OrderLine_ID); + + /** Get Linked Order Line. + * This field links a sales order line to the purchase order line that is generated from it. + */ + public int getLink_OrderLine_ID(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** 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 I_M_Product getM_Product() throws Exception; + + /** Column name M_Shipper_ID */ + public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; + + /** Set Shipper. + * Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID); + + /** Get Shipper. + * Method or manner of product delivery + */ + public int getM_Shipper_ID(); + + public I_M_Shipper getM_Shipper() throws Exception; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + /** Column name PriceActual */ + public static final String COLUMNNAME_PriceActual = "PriceActual"; + + /** Set Unit Price. + * Actual Price + */ + public void setPriceActual (BigDecimal PriceActual); + + /** Get Unit Price. + * Actual Price + */ + public BigDecimal getPriceActual(); + + /** Column name PriceCost */ + public static final String COLUMNNAME_PriceCost = "PriceCost"; + + /** Set Cost Price. + * Price per Unit of Measure including all indirect costs (Freight, etc.) + */ + public void setPriceCost (BigDecimal PriceCost); + + /** Get Cost Price. + * Price per Unit of Measure including all indirect costs (Freight, etc.) + */ + public BigDecimal getPriceCost(); + + /** Column name PriceEntered */ + public static final String COLUMNNAME_PriceEntered = "PriceEntered"; + + /** Set Price. + * Price Entered - the price based on the selected/base UoM + */ + public void setPriceEntered (BigDecimal PriceEntered); + + /** Get Price. + * Price Entered - the price based on the selected/base UoM + */ + public BigDecimal getPriceEntered(); + + /** 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 Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name QtyDelivered */ + public static final String COLUMNNAME_QtyDelivered = "QtyDelivered"; + + /** Set Delivered Quantity. + * Delivered Quantity + */ + public void setQtyDelivered (BigDecimal QtyDelivered); + + /** Get Delivered Quantity. + * Delivered Quantity + */ + public BigDecimal getQtyDelivered(); + + /** Column name QtyEntered */ + public static final String COLUMNNAME_QtyEntered = "QtyEntered"; + + /** Set Quantity. + * The Quantity Entered is based on the selected UoM + */ + public void setQtyEntered (BigDecimal QtyEntered); + + /** Get Quantity. + * The Quantity Entered is based on the selected UoM + */ + public BigDecimal getQtyEntered(); + + /** Column name QtyInvoiced */ + public static final String COLUMNNAME_QtyInvoiced = "QtyInvoiced"; + + /** Set Quantity Invoiced. + * Invoiced Quantity + */ + public void setQtyInvoiced (BigDecimal QtyInvoiced); + + /** Get Quantity Invoiced. + * Invoiced Quantity + */ + public BigDecimal getQtyInvoiced(); + + /** Column name QtyLostSales */ + public static final String COLUMNNAME_QtyLostSales = "QtyLostSales"; + + /** Set Lost Sales Qty. + * Quantity of potential sales + */ + public void setQtyLostSales (BigDecimal QtyLostSales); + + /** Get Lost Sales Qty. + * Quantity of potential sales + */ + public BigDecimal getQtyLostSales(); + + /** Column name QtyOrdered */ + public static final String COLUMNNAME_QtyOrdered = "QtyOrdered"; + + /** Set Ordered Quantity. + * Ordered Quantity + */ + public void setQtyOrdered (BigDecimal QtyOrdered); + + /** Get Ordered Quantity. + * Ordered Quantity + */ + public BigDecimal getQtyOrdered(); + + /** Column name QtyReserved */ + public static final String COLUMNNAME_QtyReserved = "QtyReserved"; + + /** Set Reserved Quantity. + * Reserved Quantity + */ + public void setQtyReserved (BigDecimal QtyReserved); + + /** Get Reserved Quantity. + * Reserved Quantity + */ + public BigDecimal getQtyReserved(); + + /** Column name RRAmt */ + public static final String COLUMNNAME_RRAmt = "RRAmt"; + + /** Set Revenue Recognition Amt. + * Revenue Recognition Amount + */ + public void setRRAmt (BigDecimal RRAmt); + + /** Get Revenue Recognition Amt. + * Revenue Recognition Amount + */ + public BigDecimal getRRAmt(); + + /** Column name RRStartDate */ + public static final String COLUMNNAME_RRStartDate = "RRStartDate"; + + /** Set Revenue Recognition Start. + * Revenue Recognition Start Date + */ + public void setRRStartDate (Timestamp RRStartDate); + + /** Get Revenue Recognition Start. + * Revenue Recognition Start Date + */ + public Timestamp getRRStartDate(); + + /** Column name Ref_OrderLine_ID */ + public static final String COLUMNNAME_Ref_OrderLine_ID = "Ref_OrderLine_ID"; + + /** Set Referenced Order Line. + * Reference to corresponding Sales/Purchase Order + */ + public void setRef_OrderLine_ID (int Ref_OrderLine_ID); + + /** Get Referenced Order Line. + * Reference to corresponding Sales/Purchase Order + */ + public int getRef_OrderLine_ID(); + + /** Column name S_ResourceAssignment_ID */ + public static final String COLUMNNAME_S_ResourceAssignment_ID = "S_ResourceAssignment_ID"; + + /** Set Resource Assignment. + * Resource Assignment + */ + public void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID); + + /** Get Resource Assignment. + * Resource Assignment + */ + public int getS_ResourceAssignment_ID(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); +} diff --git a/base/src/org/compiere/model/I_C_POS.java b/base/src/org/compiere/model/I_C_POS.java new file mode 100644 index 0000000000..f3fd5b2fc1 --- /dev/null +++ b/base/src/org/compiere/model/I_C_POS.java @@ -0,0 +1,261 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for C_POS + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_C_POS +{ + + /** TableName=C_POS */ + public static final String Table_Name = "C_POS"; + + /** AD_Table_ID=748 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = BigDecimal.valueOf(2); + + /** Load Meta Data */ + + /** Column name C_BPartnerCashTrx_ID */ + public static final String COLUMNNAME_C_BPartnerCashTrx_ID = "C_BPartnerCashTrx_ID"; + + /** Set Template B.Partner. + * Business Partner used for creating new Business Partners on the fly + */ + public void setC_BPartnerCashTrx_ID (int C_BPartnerCashTrx_ID); + + /** Get Template B.Partner. + * Business Partner used for creating new Business Partners on the fly + */ + public int getC_BPartnerCashTrx_ID(); + + /** Column name C_BankAccount_ID */ + public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; + + /** Set Bank Account. + * Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID); + + /** Get Bank Account. + * Account at the Bank + */ + public int getC_BankAccount_ID(); + + public I_C_BankAccount getC_BankAccount() throws Exception; + + /** Column name C_CashBook_ID */ + public static final String COLUMNNAME_C_CashBook_ID = "C_CashBook_ID"; + + /** Set Cash Book. + * Cash Book for recording petty cash transactions + */ + public void setC_CashBook_ID (int C_CashBook_ID); + + /** Get Cash Book. + * Cash Book for recording petty cash transactions + */ + public int getC_CashBook_ID(); + + public I_C_CashBook getC_CashBook() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getC_DocType() throws Exception; + + /** Column name C_POSKeyLayout_ID */ + public static final String COLUMNNAME_C_POSKeyLayout_ID = "C_POSKeyLayout_ID"; + + /** Set POS Key Layout. + * POS Function Key Layout + */ + public void setC_POSKeyLayout_ID (int C_POSKeyLayout_ID); + + /** Get POS Key Layout. + * POS Function Key Layout + */ + public int getC_POSKeyLayout_ID(); + + public I_C_POSKeyLayout getC_POSKeyLayout() throws Exception; + + /** Column name C_POS_ID */ + public static final String COLUMNNAME_C_POS_ID = "C_POS_ID"; + + /** Set POS Terminal. + * Point of Sales Terminal + */ + public void setC_POS_ID (int C_POS_ID); + + /** Get POS Terminal. + * Point of Sales Terminal + */ + public int getC_POS_ID(); + + /** Column name CashDrawer */ + public static final String COLUMNNAME_CashDrawer = "CashDrawer"; + + /** Set CashDrawer */ + public void setCashDrawer (String CashDrawer); + + /** Get CashDrawer */ + public String getCashDrawer(); + + /** 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 Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsModifyPrice */ + public static final String COLUMNNAME_IsModifyPrice = "IsModifyPrice"; + + /** Set Modify Price. + * Allow modifying the price + */ + public void setIsModifyPrice (boolean IsModifyPrice); + + /** Get Modify Price. + * Allow modifying the price + */ + public boolean isModifyPrice(); + + /** Column name M_PriceList_ID */ + public static final String COLUMNNAME_M_PriceList_ID = "M_PriceList_ID"; + + /** Set Price List. + * Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID); + + /** Get Price List. + * Unique identifier of a Price List + */ + public int getM_PriceList_ID(); + + public I_M_PriceList getM_PriceList() throws Exception; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getM_Warehouse() throws Exception; + + /** 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 PrinterName */ + public static final String COLUMNNAME_PrinterName = "PrinterName"; + + /** Set Printer Name. + * Name of the Printer + */ + public void setPrinterName (String PrinterName); + + /** Get Printer Name. + * Name of the Printer + */ + public String getPrinterName(); + + /** 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(); +} diff --git a/base/src/org/compiere/model/I_C_Payment.java b/base/src/org/compiere/model/I_C_Payment.java new file mode 100644 index 0000000000..d938235ecc --- /dev/null +++ b/base/src/org/compiere/model/I_C_Payment.java @@ -0,0 +1,1091 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for C_Payment + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_C_Payment +{ + + /** TableName=C_Payment */ + public static final String Table_Name = "C_Payment"; + + /** AD_Table_ID=335 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(1); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name A_City */ + public static final String COLUMNNAME_A_City = "A_City"; + + /** Set Account City. + * City or the Credit Card or Account Holder + */ + public void setA_City (String A_City); + + /** Get Account City. + * City or the Credit Card or Account Holder + */ + public String getA_City(); + + /** Column name A_Country */ + public static final String COLUMNNAME_A_Country = "A_Country"; + + /** Set Account Country. + * Country + */ + public void setA_Country (String A_Country); + + /** Get Account Country. + * Country + */ + public String getA_Country(); + + /** Column name A_EMail */ + public static final String COLUMNNAME_A_EMail = "A_EMail"; + + /** Set Account EMail. + * Email Address + */ + public void setA_EMail (String A_EMail); + + /** Get Account EMail. + * Email Address + */ + public String getA_EMail(); + + /** Column name A_Ident_DL */ + public static final String COLUMNNAME_A_Ident_DL = "A_Ident_DL"; + + /** Set Driver License. + * Payment Identification - Driver License + */ + public void setA_Ident_DL (String A_Ident_DL); + + /** Get Driver License. + * Payment Identification - Driver License + */ + public String getA_Ident_DL(); + + /** Column name A_Ident_SSN */ + public static final String COLUMNNAME_A_Ident_SSN = "A_Ident_SSN"; + + /** Set Social Security No. + * Payment Identification - Social Security No + */ + public void setA_Ident_SSN (String A_Ident_SSN); + + /** Get Social Security No. + * Payment Identification - Social Security No + */ + public String getA_Ident_SSN(); + + /** Column name A_Name */ + public static final String COLUMNNAME_A_Name = "A_Name"; + + /** Set Account Name. + * Name on Credit Card or Account holder + */ + public void setA_Name (String A_Name); + + /** Get Account Name. + * Name on Credit Card or Account holder + */ + public String getA_Name(); + + /** Column name A_State */ + public static final String COLUMNNAME_A_State = "A_State"; + + /** Set Account State. + * State of the Credit Card or Account holder + */ + public void setA_State (String A_State); + + /** Get Account State. + * State of the Credit Card or Account holder + */ + public String getA_State(); + + /** Column name A_Street */ + public static final String COLUMNNAME_A_Street = "A_Street"; + + /** Set Account Street. + * Street address of the Credit Card or Account holder + */ + public void setA_Street (String A_Street); + + /** Get Account Street. + * Street address of the Credit Card or Account holder + */ + public String getA_Street(); + + /** Column name A_Zip */ + public static final String COLUMNNAME_A_Zip = "A_Zip"; + + /** Set Account Zip/Postal. + * Zip Code of the Credit Card or Account Holder + */ + public void setA_Zip (String A_Zip); + + /** Get Account Zip/Postal. + * Zip Code of the Credit Card or Account Holder + */ + public String getA_Zip(); + + /** Column name AccountNo */ + public static final String COLUMNNAME_AccountNo = "AccountNo"; + + /** Set Account No. + * Account Number + */ + public void setAccountNo (String AccountNo); + + /** Get Account No. + * Account Number + */ + public String getAccountNo(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getC_Activity() throws Exception; + + /** Column name C_BP_BankAccount_ID */ + public static final String COLUMNNAME_C_BP_BankAccount_ID = "C_BP_BankAccount_ID"; + + /** Set Partner Bank Account. + * Bank Account of the Business Partner + */ + public void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID); + + /** Get Partner Bank Account. + * Bank Account of the Business Partner + */ + public int getC_BP_BankAccount_ID(); + + public I_C_BP_BankAccount getC_BP_BankAccount() throws Exception; + + /** 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 I_C_BPartner getC_BPartner() throws Exception; + + /** Column name C_BankAccount_ID */ + public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID"; + + /** Set Bank Account. + * Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID); + + /** Get Bank Account. + * Account at the Bank + */ + public int getC_BankAccount_ID(); + + public I_C_BankAccount getC_BankAccount() throws Exception; + + /** 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 I_C_Campaign getC_Campaign() throws Exception; + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + public I_C_Charge getC_Charge() throws Exception; + + /** Column name C_ConversionType_ID */ + public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; + + /** Set Currency Type. + * Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID); + + /** Get Currency Type. + * Currency Conversion Rate Type + */ + public int getC_ConversionType_ID(); + + public I_C_ConversionType getC_ConversionType() throws Exception; + + /** 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 I_C_Currency getC_Currency() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getC_DocType() throws Exception; + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + public I_C_Invoice getC_Invoice() throws Exception; + + /** 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 I_C_Order getC_Order() throws Exception; + + /** Column name C_PaymentBatch_ID */ + public static final String COLUMNNAME_C_PaymentBatch_ID = "C_PaymentBatch_ID"; + + /** Set Payment Batch. + * Payment batch for EFT + */ + public void setC_PaymentBatch_ID (int C_PaymentBatch_ID); + + /** Get Payment Batch. + * Payment batch for EFT + */ + public int getC_PaymentBatch_ID(); + + public I_C_PaymentBatch getC_PaymentBatch() throws Exception; + + /** Column name C_Payment_ID */ + public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID"; + + /** Set Payment. + * Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID); + + /** Get Payment. + * Payment identifier + */ + public int getC_Payment_ID(); + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getC_Project() throws Exception; + + /** Column name ChargeAmt */ + public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; + + /** Set Charge amount. + * Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt); + + /** Get Charge amount. + * Charge Amount + */ + public BigDecimal getChargeAmt(); + + /** Column name CheckNo */ + public static final String COLUMNNAME_CheckNo = "CheckNo"; + + /** Set Check No. + * Check Number + */ + public void setCheckNo (String CheckNo); + + /** Get Check No. + * Check Number + */ + public String getCheckNo(); + + /** Column name CreditCardExpMM */ + public static final String COLUMNNAME_CreditCardExpMM = "CreditCardExpMM"; + + /** Set Exp. Month. + * Expiry Month + */ + public void setCreditCardExpMM (int CreditCardExpMM); + + /** Get Exp. Month. + * Expiry Month + */ + public int getCreditCardExpMM(); + + /** Column name CreditCardExpYY */ + public static final String COLUMNNAME_CreditCardExpYY = "CreditCardExpYY"; + + /** Set Exp. Year. + * Expiry Year + */ + public void setCreditCardExpYY (int CreditCardExpYY); + + /** Get Exp. Year. + * Expiry Year + */ + public int getCreditCardExpYY(); + + /** Column name CreditCardNumber */ + public static final String COLUMNNAME_CreditCardNumber = "CreditCardNumber"; + + /** Set Number. + * Credit Card Number + */ + public void setCreditCardNumber (String CreditCardNumber); + + /** Get Number. + * Credit Card Number + */ + public String getCreditCardNumber(); + + /** Column name CreditCardType */ + public static final String COLUMNNAME_CreditCardType = "CreditCardType"; + + /** Set Credit Card. + * Credit Card (Visa, MC, AmEx) + */ + public void setCreditCardType (String CreditCardType); + + /** Get Credit Card. + * Credit Card (Visa, MC, AmEx) + */ + public String getCreditCardType(); + + /** Column name CreditCardVV */ + public static final String COLUMNNAME_CreditCardVV = "CreditCardVV"; + + /** Set Verification Code. + * Credit Card Verification code on credit card + */ + public void setCreditCardVV (String CreditCardVV); + + /** Get Verification Code. + * Credit Card Verification code on credit card + */ + public String getCreditCardVV(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateTrx */ + public static final String COLUMNNAME_DateTrx = "DateTrx"; + + /** Set Transaction Date. + * Transaction Date + */ + public void setDateTrx (Timestamp DateTrx); + + /** Get Transaction Date. + * Transaction Date + */ + public Timestamp getDateTrx(); + + /** 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 DiscountAmt */ + public static final String COLUMNNAME_DiscountAmt = "DiscountAmt"; + + /** Set Discount Amount. + * Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt); + + /** Get Discount Amount. + * Calculated amount of discount + */ + public BigDecimal getDiscountAmt(); + + /** Column name DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** 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 IsAllocated */ + public static final String COLUMNNAME_IsAllocated = "IsAllocated"; + + /** Set Allocated. + * Indicates if the payment has been allocated + */ + public void setIsAllocated (boolean IsAllocated); + + /** Get Allocated. + * Indicates if the payment has been allocated + */ + public boolean isAllocated(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name IsDelayedCapture */ + public static final String COLUMNNAME_IsDelayedCapture = "IsDelayedCapture"; + + /** Set Delayed Capture. + * Charge after Shipment + */ + public void setIsDelayedCapture (boolean IsDelayedCapture); + + /** Get Delayed Capture. + * Charge after Shipment + */ + public boolean isDelayedCapture(); + + /** Column name IsOnline */ + public static final String COLUMNNAME_IsOnline = "IsOnline"; + + /** Set Online Access. + * Can be accessed online + */ + public void setIsOnline (boolean IsOnline); + + /** Get Online Access. + * Can be accessed online + */ + public boolean isOnline(); + + /** Column name IsOverUnderPayment */ + public static final String COLUMNNAME_IsOverUnderPayment = "IsOverUnderPayment"; + + /** Set Over/Under Payment. + * Over-Payment (unallocated) or Under-Payment (partial payment) + */ + public void setIsOverUnderPayment (boolean IsOverUnderPayment); + + /** Get Over/Under Payment. + * Over-Payment (unallocated) or Under-Payment (partial payment) + */ + public boolean isOverUnderPayment(); + + /** Column name IsPrepayment */ + public static final String COLUMNNAME_IsPrepayment = "IsPrepayment"; + + /** Set Prepayment. + * The Payment/Receipt is a Prepayment + */ + public void setIsPrepayment (boolean IsPrepayment); + + /** Get Prepayment. + * The Payment/Receipt is a Prepayment + */ + public boolean isPrepayment(); + + /** Column name IsReceipt */ + public static final String COLUMNNAME_IsReceipt = "IsReceipt"; + + /** Set Receipt. + * This is a sales transaction (receipt) + */ + public void setIsReceipt (boolean IsReceipt); + + /** Get Receipt. + * This is a sales transaction (receipt) + */ + public boolean isReceipt(); + + /** Column name IsReconciled */ + public static final String COLUMNNAME_IsReconciled = "IsReconciled"; + + /** Set Reconciled. + * Payment is reconciled with bank statement + */ + public void setIsReconciled (boolean IsReconciled); + + /** Get Reconciled. + * Payment is reconciled with bank statement + */ + public boolean isReconciled(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name Micr */ + public static final String COLUMNNAME_Micr = "Micr"; + + /** Set Micr. + * Combination of routing no, account and check no + */ + public void setMicr (String Micr); + + /** Get Micr. + * Combination of routing no, account and check no + */ + public String getMicr(); + + /** Column name OProcessing */ + public static final String COLUMNNAME_OProcessing = "OProcessing"; + + /** Set Online Processing. + * This payment can be processed online + */ + public void setOProcessing (String OProcessing); + + /** Get Online Processing. + * This payment can be processed online + */ + public String getOProcessing(); + + /** Column name Orig_TrxID */ + public static final String COLUMNNAME_Orig_TrxID = "Orig_TrxID"; + + /** Set Original Transaction ID. + * Original Transaction ID + */ + public void setOrig_TrxID (String Orig_TrxID); + + /** Get Original Transaction ID. + * Original Transaction ID + */ + public String getOrig_TrxID(); + + /** Column name OverUnderAmt */ + public static final String COLUMNNAME_OverUnderAmt = "OverUnderAmt"; + + /** Set Over/Under Payment. + * Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public void setOverUnderAmt (BigDecimal OverUnderAmt); + + /** Get Over/Under Payment. + * Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public BigDecimal getOverUnderAmt(); + + /** Column name PONum */ + public static final String COLUMNNAME_PONum = "PONum"; + + /** Set PO Number. + * Purchase Order Number + */ + public void setPONum (String PONum); + + /** Get PO Number. + * Purchase Order Number + */ + public String getPONum(); + + /** Column name PayAmt */ + public static final String COLUMNNAME_PayAmt = "PayAmt"; + + /** Set Payment amount. + * Amount being paid + */ + public void setPayAmt (BigDecimal PayAmt); + + /** Get Payment amount. + * Amount being paid + */ + public BigDecimal getPayAmt(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name R_AuthCode */ + public static final String COLUMNNAME_R_AuthCode = "R_AuthCode"; + + /** Set Authorization Code. + * Authorization Code returned + */ + public void setR_AuthCode (String R_AuthCode); + + /** Get Authorization Code. + * Authorization Code returned + */ + public String getR_AuthCode(); + + /** Column name R_AuthCode_DC */ + public static final String COLUMNNAME_R_AuthCode_DC = "R_AuthCode_DC"; + + /** Set Authorization Code (DC). + * Authorization Code Delayed Capture returned + */ + public void setR_AuthCode_DC (String R_AuthCode_DC); + + /** Get Authorization Code (DC). + * Authorization Code Delayed Capture returned + */ + public String getR_AuthCode_DC(); + + /** Column name R_AvsAddr */ + public static final String COLUMNNAME_R_AvsAddr = "R_AvsAddr"; + + /** Set Address verified. + * This address has been verified + */ + public void setR_AvsAddr (String R_AvsAddr); + + /** Get Address verified. + * This address has been verified + */ + public String getR_AvsAddr(); + + /** Column name R_AvsZip */ + public static final String COLUMNNAME_R_AvsZip = "R_AvsZip"; + + /** Set Zip verified. + * The Zip Code has been verified + */ + public void setR_AvsZip (String R_AvsZip); + + /** Get Zip verified. + * The Zip Code has been verified + */ + public String getR_AvsZip(); + + /** Column name R_CVV2Match */ + public static final String COLUMNNAME_R_CVV2Match = "R_CVV2Match"; + + /** Set CVV Match. + * Credit Card Verification Code Match + */ + public void setR_CVV2Match (boolean R_CVV2Match); + + /** Get CVV Match. + * Credit Card Verification Code Match + */ + public boolean isR_CVV2Match(); + + /** Column name R_Info */ + public static final String COLUMNNAME_R_Info = "R_Info"; + + /** Set Info. + * Response info + */ + public void setR_Info (String R_Info); + + /** Get Info. + * Response info + */ + public String getR_Info(); + + /** Column name R_PnRef */ + public static final String COLUMNNAME_R_PnRef = "R_PnRef"; + + /** Set Reference. + * Payment reference + */ + public void setR_PnRef (String R_PnRef); + + /** Get Reference. + * Payment reference + */ + public String getR_PnRef(); + + /** Column name R_PnRef_DC */ + public static final String COLUMNNAME_R_PnRef_DC = "R_PnRef_DC"; + + /** Set Reference (DC). + * Payment Reference Delayed Capture + */ + public void setR_PnRef_DC (String R_PnRef_DC); + + /** Get Reference (DC). + * Payment Reference Delayed Capture + */ + public String getR_PnRef_DC(); + + /** Column name R_RespMsg */ + public static final String COLUMNNAME_R_RespMsg = "R_RespMsg"; + + /** Set Response Message. + * Response message + */ + public void setR_RespMsg (String R_RespMsg); + + /** Get Response Message. + * Response message + */ + public String getR_RespMsg(); + + /** Column name R_Result */ + public static final String COLUMNNAME_R_Result = "R_Result"; + + /** Set Result. + * Result of transmission + */ + public void setR_Result (String R_Result); + + /** Get Result. + * Result of transmission + */ + public String getR_Result(); + + /** Column name Ref_Payment_ID */ + public static final String COLUMNNAME_Ref_Payment_ID = "Ref_Payment_ID"; + + /** Set Referenced Payment */ + public void setRef_Payment_ID (int Ref_Payment_ID); + + /** Get Referenced Payment */ + public int getRef_Payment_ID(); + + /** Column name Reversal_ID */ + public static final String COLUMNNAME_Reversal_ID = "Reversal_ID"; + + /** Set Reversal ID. + * ID of document reversal + */ + public void setReversal_ID (int Reversal_ID); + + /** Get Reversal ID. + * ID of document reversal + */ + public int getReversal_ID(); + + /** Column name RoutingNo */ + public static final String COLUMNNAME_RoutingNo = "RoutingNo"; + + /** Set Routing No. + * Bank Routing Number + */ + public void setRoutingNo (String RoutingNo); + + /** Get Routing No. + * Bank Routing Number + */ + public String getRoutingNo(); + + /** Column name Swipe */ + public static final String COLUMNNAME_Swipe = "Swipe"; + + /** Set Swipe. + * Track 1 and 2 of the Credit Card + */ + public void setSwipe (String Swipe); + + /** Get Swipe. + * Track 1 and 2 of the Credit Card + */ + public String getSwipe(); + + /** Column name TaxAmt */ + public static final String COLUMNNAME_TaxAmt = "TaxAmt"; + + /** Set Tax Amount. + * Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt); + + /** Get Tax Amount. + * Tax Amount for a document + */ + public BigDecimal getTaxAmt(); + + /** Column name TenderType */ + public static final String COLUMNNAME_TenderType = "TenderType"; + + /** Set Tender type. + * Method of Payment + */ + public void setTenderType (String TenderType); + + /** Get Tender type. + * Method of Payment + */ + public String getTenderType(); + + /** Column name TrxType */ + public static final String COLUMNNAME_TrxType = "TrxType"; + + /** Set Transaction Type. + * Type of credit card transaction + */ + public void setTrxType (String TrxType); + + /** Get Transaction Type. + * Type of credit card transaction + */ + public String getTrxType(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); + + /** Column name VoiceAuthCode */ + public static final String COLUMNNAME_VoiceAuthCode = "VoiceAuthCode"; + + /** Set Voice authorization code. + * Voice Authorization Code from credit card company + */ + public void setVoiceAuthCode (String VoiceAuthCode); + + /** Get Voice authorization code. + * Voice Authorization Code from credit card company + */ + public String getVoiceAuthCode(); + + /** Column name WriteOffAmt */ + public static final String COLUMNNAME_WriteOffAmt = "WriteOffAmt"; + + /** Set Write-off Amount. + * Amount to write-off + */ + public void setWriteOffAmt (BigDecimal WriteOffAmt); + + /** Get Write-off Amount. + * Amount to write-off + */ + public BigDecimal getWriteOffAmt(); +} diff --git a/base/src/org/compiere/model/I_C_Tax.java b/base/src/org/compiere/model/I_C_Tax.java new file mode 100644 index 0000000000..7df9e5bf32 --- /dev/null +++ b/base/src/org/compiere/model/I_C_Tax.java @@ -0,0 +1,319 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for C_Tax + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_C_Tax +{ + + /** TableName=C_Tax */ + public static final String Table_Name = "C_Tax"; + + /** AD_Table_ID=261 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 2 - Client + */ + BigDecimal accessLevel = BigDecimal.valueOf(2); + + /** Load Meta Data */ + + /** Column name AD_Rule_ID */ + public static final String COLUMNNAME_AD_Rule_ID = "AD_Rule_ID"; + + /** Set Rule */ + public void setAD_Rule_ID (int AD_Rule_ID); + + /** Get Rule */ + public int getAD_Rule_ID(); + + public I_AD_Rule getAD_Rule() throws Exception; + + /** Column name C_Country_ID */ + public static final String COLUMNNAME_C_Country_ID = "C_Country_ID"; + + /** Set Country. + * Country + */ + public void setC_Country_ID (int C_Country_ID); + + /** Get Country. + * Country + */ + public int getC_Country_ID(); + + /** Column name C_Region_ID */ + public static final String COLUMNNAME_C_Region_ID = "C_Region_ID"; + + /** Set Region. + * Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID); + + /** Get Region. + * Identifies a geographical Region + */ + public int getC_Region_ID(); + + /** Column name C_TaxCategory_ID */ + public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID"; + + /** Set Tax Category. + * Tax Category + */ + public void setC_TaxCategory_ID (int C_TaxCategory_ID); + + /** Get Tax Category. + * Tax Category + */ + public int getC_TaxCategory_ID(); + + public I_C_TaxCategory getC_TaxCategory() throws Exception; + + /** Column name C_Tax_ID */ + public static final String COLUMNNAME_C_Tax_ID = "C_Tax_ID"; + + /** Set Tax. + * Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID); + + /** Get Tax. + * Tax identifier + */ + public int getC_Tax_ID(); + + /** 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 IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name IsDocumentLevel */ + public static final String COLUMNNAME_IsDocumentLevel = "IsDocumentLevel"; + + /** Set Document Level. + * Tax is calculated on document level (rather than line by line) + */ + public void setIsDocumentLevel (boolean IsDocumentLevel); + + /** Get Document Level. + * Tax is calculated on document level (rather than line by line) + */ + public boolean isDocumentLevel(); + + /** Column name IsSalesTax */ + public static final String COLUMNNAME_IsSalesTax = "IsSalesTax"; + + /** Set Sales Tax. + * This is a sales tax (i.e. not a value added tax) + */ + public void setIsSalesTax (boolean IsSalesTax); + + /** Get Sales Tax. + * This is a sales tax (i.e. not a value added tax) + */ + public boolean isSalesTax(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name IsTaxExempt */ + public static final String COLUMNNAME_IsTaxExempt = "IsTaxExempt"; + + /** Set Tax exempt. + * Business partner is exempt from tax + */ + public void setIsTaxExempt (boolean IsTaxExempt); + + /** Get Tax exempt. + * Business partner is exempt from tax + */ + public boolean isTaxExempt(); + + /** 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 Parent_Tax_ID */ + public static final String COLUMNNAME_Parent_Tax_ID = "Parent_Tax_ID"; + + /** Set Parent Tax. + * Parent Tax indicates a tax that is made up of multiple taxes + */ + public void setParent_Tax_ID (int Parent_Tax_ID); + + /** Get Parent Tax. + * Parent Tax indicates a tax that is made up of multiple taxes + */ + public int getParent_Tax_ID(); + + /** Column name Rate */ + public static final String COLUMNNAME_Rate = "Rate"; + + /** Set Rate. + * Rate or Tax or Exchange + */ + public void setRate (BigDecimal Rate); + + /** Get Rate. + * Rate or Tax or Exchange + */ + public BigDecimal getRate(); + + /** Column name RequiresTaxCertificate */ + public static final String COLUMNNAME_RequiresTaxCertificate = "RequiresTaxCertificate"; + + /** Set Requires Tax Certificate. + * This tax rate requires the Business Partner to be tax exempt + */ + public void setRequiresTaxCertificate (boolean RequiresTaxCertificate); + + /** Get Requires Tax Certificate. + * This tax rate requires the Business Partner to be tax exempt + */ + public boolean isRequiresTaxCertificate(); + + /** Column name SOPOType */ + public static final String COLUMNNAME_SOPOType = "SOPOType"; + + /** Set SO/PO Type. + * Sales Tax applies to sales situations, Purchase Tax to purchase situations + */ + public void setSOPOType (String SOPOType); + + /** Get SO/PO Type. + * Sales Tax applies to sales situations, Purchase Tax to purchase situations + */ + public String getSOPOType(); + + /** Column name TaxIndicator */ + public static final String COLUMNNAME_TaxIndicator = "TaxIndicator"; + + /** Set Tax Indicator. + * Short form for Tax to be printed on documents + */ + public void setTaxIndicator (String TaxIndicator); + + /** Get Tax Indicator. + * Short form for Tax to be printed on documents + */ + public String getTaxIndicator(); + + /** Column name To_Country_ID */ + public static final String COLUMNNAME_To_Country_ID = "To_Country_ID"; + + /** Set To. + * Receiving Country + */ + public void setTo_Country_ID (int To_Country_ID); + + /** Get To. + * Receiving Country + */ + public int getTo_Country_ID(); + + /** Column name To_Region_ID */ + public static final String COLUMNNAME_To_Region_ID = "To_Region_ID"; + + /** Set To. + * Receiving Region + */ + public void setTo_Region_ID (int To_Region_ID); + + /** Get To. + * Receiving Region + */ + public int getTo_Region_ID(); + + /** 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(); +} diff --git a/base/src/org/compiere/model/I_GL_Journal.java b/base/src/org/compiere/model/I_GL_Journal.java new file mode 100644 index 0000000000..f2ae44095e --- /dev/null +++ b/base/src/org/compiere/model/I_GL_Journal.java @@ -0,0 +1,407 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for GL_Journal + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_GL_Journal +{ + + /** TableName=GL_Journal */ + public static final String Table_Name = "GL_Journal"; + + /** AD_Table_ID=224 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(1); + + /** Load Meta Data */ + + /** Column name C_AcctSchema_ID */ + public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID"; + + /** Set Accounting Schema. + * Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID); + + /** Get Accounting Schema. + * Rules for accounting + */ + public int getC_AcctSchema_ID(); + + public I_C_AcctSchema getC_AcctSchema() throws Exception; + + /** Column name C_ConversionType_ID */ + public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; + + /** Set Currency Type. + * Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID); + + /** Get Currency Type. + * Currency Conversion Rate Type + */ + public int getC_ConversionType_ID(); + + public I_C_ConversionType getC_ConversionType() throws Exception; + + /** 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 I_C_Currency getC_Currency() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getC_DocType() throws Exception; + + /** Column name C_Period_ID */ + public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; + + /** Set Period. + * Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID); + + /** Get Period. + * Period of the Calendar + */ + public int getC_Period_ID(); + + /** Column name ControlAmt */ + public static final String COLUMNNAME_ControlAmt = "ControlAmt"; + + /** Set Control Amount. + * If not zero, the Debit amount of the document must be equal this amount + */ + public void setControlAmt (BigDecimal ControlAmt); + + /** Get Control Amount. + * If not zero, the Debit amount of the document must be equal this amount + */ + public BigDecimal getControlAmt(); + + /** Column name CurrencyRate */ + public static final String COLUMNNAME_CurrencyRate = "CurrencyRate"; + + /** Set Rate. + * Currency Conversion Rate + */ + public void setCurrencyRate (BigDecimal CurrencyRate); + + /** Get Rate. + * Currency Conversion Rate + */ + public BigDecimal getCurrencyRate(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateDoc */ + public static final String COLUMNNAME_DateDoc = "DateDoc"; + + /** Set Document Date. + * Date of the Document + */ + public void setDateDoc (Timestamp DateDoc); + + /** Get Document Date. + * Date of the Document + */ + public Timestamp getDateDoc(); + + /** 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 DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** 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 GL_Budget_ID */ + public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID"; + + /** Set Budget. + * General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID); + + /** Get Budget. + * General Ledger Budget + */ + public int getGL_Budget_ID(); + + public I_GL_Budget getGL_Budget() throws Exception; + + /** Column name GL_Category_ID */ + public static final String COLUMNNAME_GL_Category_ID = "GL_Category_ID"; + + /** Set GL Category. + * General Ledger Category + */ + public void setGL_Category_ID (int GL_Category_ID); + + /** Get GL Category. + * General Ledger Category + */ + public int getGL_Category_ID(); + + public I_GL_Category getGL_Category() throws Exception; + + /** Column name GL_JournalBatch_ID */ + public static final String COLUMNNAME_GL_JournalBatch_ID = "GL_JournalBatch_ID"; + + /** Set Journal Batch. + * General Ledger Journal Batch + */ + public void setGL_JournalBatch_ID (int GL_JournalBatch_ID); + + /** Get Journal Batch. + * General Ledger Journal Batch + */ + public int getGL_JournalBatch_ID(); + + public I_GL_JournalBatch getGL_JournalBatch() throws Exception; + + /** Column name GL_Journal_ID */ + public static final String COLUMNNAME_GL_Journal_ID = "GL_Journal_ID"; + + /** Set Journal. + * General Ledger Journal + */ + public void setGL_Journal_ID (int GL_Journal_ID); + + /** Get Journal. + * General Ledger Journal + */ + public int getGL_Journal_ID(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name IsPrinted */ + public static final String COLUMNNAME_IsPrinted = "IsPrinted"; + + /** Set Printed. + * Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted); + + /** Get Printed. + * Indicates if this document / line is printed + */ + public boolean isPrinted(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name PostingType */ + public static final String COLUMNNAME_PostingType = "PostingType"; + + /** Set PostingType. + * The type of posted amount for the transaction + */ + public void setPostingType (String PostingType); + + /** Get PostingType. + * The type of posted amount for the transaction + */ + public String getPostingType(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Reversal_ID */ + public static final String COLUMNNAME_Reversal_ID = "Reversal_ID"; + + /** Set Reversal ID. + * ID of document reversal + */ + public void setReversal_ID (int Reversal_ID); + + /** Get Reversal ID. + * ID of document reversal + */ + public int getReversal_ID(); + + /** Column name TotalCr */ + public static final String COLUMNNAME_TotalCr = "TotalCr"; + + /** Set Total Credit. + * Total Credit in document currency + */ + public void setTotalCr (BigDecimal TotalCr); + + /** Get Total Credit. + * Total Credit in document currency + */ + public BigDecimal getTotalCr(); + + /** Column name TotalDr */ + public static final String COLUMNNAME_TotalDr = "TotalDr"; + + /** Set Total Debit. + * Total debit in document currency + */ + public void setTotalDr (BigDecimal TotalDr); + + /** Get Total Debit. + * Total debit in document currency + */ + public BigDecimal getTotalDr(); +} diff --git a/base/src/org/compiere/model/I_GL_JournalBatch.java b/base/src/org/compiere/model/I_GL_JournalBatch.java new file mode 100644 index 0000000000..235d19b124 --- /dev/null +++ b/base/src/org/compiere/model/I_GL_JournalBatch.java @@ -0,0 +1,321 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for GL_JournalBatch + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_GL_JournalBatch +{ + + /** TableName=GL_JournalBatch */ + public static final String Table_Name = "GL_JournalBatch"; + + /** AD_Table_ID=225 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(1); + + /** Load Meta Data */ + + /** 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 I_C_Currency getC_Currency() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getC_DocType() throws Exception; + + /** Column name C_Period_ID */ + public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; + + /** Set Period. + * Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID); + + /** Get Period. + * Period of the Calendar + */ + public int getC_Period_ID(); + + /** Column name ControlAmt */ + public static final String COLUMNNAME_ControlAmt = "ControlAmt"; + + /** Set Control Amount. + * If not zero, the Debit amount of the document must be equal this amount + */ + public void setControlAmt (BigDecimal ControlAmt); + + /** Get Control Amount. + * If not zero, the Debit amount of the document must be equal this amount + */ + public BigDecimal getControlAmt(); + + /** Column name CopyFrom */ + public static final String COLUMNNAME_CopyFrom = "CopyFrom"; + + /** Set Copy From. + * Copy From Record + */ + public void setCopyFrom (String CopyFrom); + + /** Get Copy From. + * Copy From Record + */ + public String getCopyFrom(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateDoc */ + public static final String COLUMNNAME_DateDoc = "DateDoc"; + + /** Set Document Date. + * Date of the Document + */ + public void setDateDoc (Timestamp DateDoc); + + /** Get Document Date. + * Date of the Document + */ + public Timestamp getDateDoc(); + + /** 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 DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** 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 GL_Category_ID */ + public static final String COLUMNNAME_GL_Category_ID = "GL_Category_ID"; + + /** Set GL Category. + * General Ledger Category + */ + public void setGL_Category_ID (int GL_Category_ID); + + /** Get GL Category. + * General Ledger Category + */ + public int getGL_Category_ID(); + + public I_GL_Category getGL_Category() throws Exception; + + /** Column name GL_JournalBatch_ID */ + public static final String COLUMNNAME_GL_JournalBatch_ID = "GL_JournalBatch_ID"; + + /** Set Journal Batch. + * General Ledger Journal Batch + */ + public void setGL_JournalBatch_ID (int GL_JournalBatch_ID); + + /** Get Journal Batch. + * General Ledger Journal Batch + */ + public int getGL_JournalBatch_ID(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name PostingType */ + public static final String COLUMNNAME_PostingType = "PostingType"; + + /** Set PostingType. + * The type of posted amount for the transaction + */ + public void setPostingType (String PostingType); + + /** Get PostingType. + * The type of posted amount for the transaction + */ + public String getPostingType(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Reversal_ID */ + public static final String COLUMNNAME_Reversal_ID = "Reversal_ID"; + + /** Set Reversal ID. + * ID of document reversal + */ + public void setReversal_ID (int Reversal_ID); + + /** Get Reversal ID. + * ID of document reversal + */ + public int getReversal_ID(); + + /** Column name TotalCr */ + public static final String COLUMNNAME_TotalCr = "TotalCr"; + + /** Set Total Credit. + * Total Credit in document currency + */ + public void setTotalCr (BigDecimal TotalCr); + + /** Get Total Credit. + * Total Credit in document currency + */ + public BigDecimal getTotalCr(); + + /** Column name TotalDr */ + public static final String COLUMNNAME_TotalDr = "TotalDr"; + + /** Set Total Debit. + * Total debit in document currency + */ + public void setTotalDr (BigDecimal TotalDr); + + /** Get Total Debit. + * Total debit in document currency + */ + public BigDecimal getTotalDr(); +} diff --git a/base/src/org/compiere/model/I_M_DiscountSchemaLine.java b/base/src/org/compiere/model/I_M_DiscountSchemaLine.java new file mode 100644 index 0000000000..345712c354 --- /dev/null +++ b/base/src/org/compiere/model/I_M_DiscountSchemaLine.java @@ -0,0 +1,483 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for M_DiscountSchemaLine + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_M_DiscountSchemaLine +{ + + /** TableName=M_DiscountSchemaLine */ + public static final String Table_Name = "M_DiscountSchemaLine"; + + /** AD_Table_ID=477 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(3); + + /** Load Meta Data */ + + /** 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 I_C_BPartner getC_BPartner() throws Exception; + + /** Column name C_ConversionType_ID */ + public static final String COLUMNNAME_C_ConversionType_ID = "C_ConversionType_ID"; + + /** Set Currency Type. + * Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID); + + /** Get Currency Type. + * Currency Conversion Rate Type + */ + public int getC_ConversionType_ID(); + + public I_C_ConversionType getC_ConversionType() throws Exception; + + /** Column name Classification */ + public static final String COLUMNNAME_Classification = "Classification"; + + /** Set Classification. + * Classification for grouping + */ + public void setClassification (String Classification); + + /** Get Classification. + * Classification for grouping + */ + public String getClassification(); + + /** Column name ConversionDate */ + public static final String COLUMNNAME_ConversionDate = "ConversionDate"; + + /** Set Conversion Date. + * Date for selecting conversion rate + */ + public void setConversionDate (Timestamp ConversionDate); + + /** Get Conversion Date. + * Date for selecting conversion rate + */ + public Timestamp getConversionDate(); + + /** Column name Group1 */ + public static final String COLUMNNAME_Group1 = "Group1"; + + /** Set Group1 */ + public void setGroup1 (String Group1); + + /** Get Group1 */ + public String getGroup1(); + + /** Column name Group2 */ + public static final String COLUMNNAME_Group2 = "Group2"; + + /** Set Group2 */ + public void setGroup2 (String Group2); + + /** Get Group2 */ + public String getGroup2(); + + /** Column name Limit_AddAmt */ + public static final String COLUMNNAME_Limit_AddAmt = "Limit_AddAmt"; + + /** Set Limit price Surcharge Amount. + * Amount added to the converted/copied price before multiplying + */ + public void setLimit_AddAmt (BigDecimal Limit_AddAmt); + + /** Get Limit price Surcharge Amount. + * Amount added to the converted/copied price before multiplying + */ + public BigDecimal getLimit_AddAmt(); + + /** Column name Limit_Base */ + public static final String COLUMNNAME_Limit_Base = "Limit_Base"; + + /** Set Limit price Base. + * Base price for calculation of the new price + */ + public void setLimit_Base (String Limit_Base); + + /** Get Limit price Base. + * Base price for calculation of the new price + */ + public String getLimit_Base(); + + /** Column name Limit_Discount */ + public static final String COLUMNNAME_Limit_Discount = "Limit_Discount"; + + /** Set Limit price Discount %. + * Discount in percent to be subtracted from base, if negative it will be added to base price + */ + public void setLimit_Discount (BigDecimal Limit_Discount); + + /** Get Limit price Discount %. + * Discount in percent to be subtracted from base, if negative it will be added to base price + */ + public BigDecimal getLimit_Discount(); + + /** Column name Limit_Fixed */ + public static final String COLUMNNAME_Limit_Fixed = "Limit_Fixed"; + + /** Set Fixed Limit Price. + * Fixed Limit Price (not calculated) + */ + public void setLimit_Fixed (BigDecimal Limit_Fixed); + + /** Get Fixed Limit Price. + * Fixed Limit Price (not calculated) + */ + public BigDecimal getLimit_Fixed(); + + /** Column name Limit_MaxAmt */ + public static final String COLUMNNAME_Limit_MaxAmt = "Limit_MaxAmt"; + + /** Set Limit price max Margin. + * Maximum difference to original limit price; + ignored if zero + */ + public void setLimit_MaxAmt (BigDecimal Limit_MaxAmt); + + /** Get Limit price max Margin. + * Maximum difference to original limit price; + ignored if zero + */ + public BigDecimal getLimit_MaxAmt(); + + /** Column name Limit_MinAmt */ + public static final String COLUMNNAME_Limit_MinAmt = "Limit_MinAmt"; + + /** Set Limit price min Margin. + * Minimum difference to original limit price; + ignored if zero + */ + public void setLimit_MinAmt (BigDecimal Limit_MinAmt); + + /** Get Limit price min Margin. + * Minimum difference to original limit price; + ignored if zero + */ + public BigDecimal getLimit_MinAmt(); + + /** Column name Limit_Rounding */ + public static final String COLUMNNAME_Limit_Rounding = "Limit_Rounding"; + + /** Set Limit price Rounding. + * Rounding of the final result + */ + public void setLimit_Rounding (String Limit_Rounding); + + /** Get Limit price Rounding. + * Rounding of the final result + */ + public String getLimit_Rounding(); + + /** Column name List_AddAmt */ + public static final String COLUMNNAME_List_AddAmt = "List_AddAmt"; + + /** Set List price Surcharge Amount. + * List Price Surcharge Amount + */ + public void setList_AddAmt (BigDecimal List_AddAmt); + + /** Get List price Surcharge Amount. + * List Price Surcharge Amount + */ + public BigDecimal getList_AddAmt(); + + /** Column name List_Base */ + public static final String COLUMNNAME_List_Base = "List_Base"; + + /** Set List price Base. + * Price used as the basis for price list calculations + */ + public void setList_Base (String List_Base); + + /** Get List price Base. + * Price used as the basis for price list calculations + */ + public String getList_Base(); + + /** Column name List_Discount */ + public static final String COLUMNNAME_List_Discount = "List_Discount"; + + /** Set List price Discount %. + * Discount from list price as a percentage + */ + public void setList_Discount (BigDecimal List_Discount); + + /** Get List price Discount %. + * Discount from list price as a percentage + */ + public BigDecimal getList_Discount(); + + /** Column name List_Fixed */ + public static final String COLUMNNAME_List_Fixed = "List_Fixed"; + + /** Set Fixed List Price. + * Fixes List Price (not calculated) + */ + public void setList_Fixed (BigDecimal List_Fixed); + + /** Get Fixed List Price. + * Fixes List Price (not calculated) + */ + public BigDecimal getList_Fixed(); + + /** Column name List_MaxAmt */ + public static final String COLUMNNAME_List_MaxAmt = "List_MaxAmt"; + + /** Set List price max Margin. + * Maximum margin for a product + */ + public void setList_MaxAmt (BigDecimal List_MaxAmt); + + /** Get List price max Margin. + * Maximum margin for a product + */ + public BigDecimal getList_MaxAmt(); + + /** Column name List_MinAmt */ + public static final String COLUMNNAME_List_MinAmt = "List_MinAmt"; + + /** Set List price min Margin. + * Minimum margin for a product + */ + public void setList_MinAmt (BigDecimal List_MinAmt); + + /** Get List price min Margin. + * Minimum margin for a product + */ + public BigDecimal getList_MinAmt(); + + /** Column name List_Rounding */ + public static final String COLUMNNAME_List_Rounding = "List_Rounding"; + + /** Set List price Rounding. + * Rounding rule for final list price + */ + public void setList_Rounding (String List_Rounding); + + /** Get List price Rounding. + * Rounding rule for final list price + */ + public String getList_Rounding(); + + /** Column name M_DiscountSchemaLine_ID */ + public static final String COLUMNNAME_M_DiscountSchemaLine_ID = "M_DiscountSchemaLine_ID"; + + /** Set Discount Pricelist. + * Line of the pricelist trade discount schema + */ + public void setM_DiscountSchemaLine_ID (int M_DiscountSchemaLine_ID); + + /** Get Discount Pricelist. + * Line of the pricelist trade discount schema + */ + public int getM_DiscountSchemaLine_ID(); + + /** Column name M_DiscountSchema_ID */ + public static final String COLUMNNAME_M_DiscountSchema_ID = "M_DiscountSchema_ID"; + + /** Set Discount Schema. + * Schema to calculate the trade discount percentage + */ + public void setM_DiscountSchema_ID (int M_DiscountSchema_ID); + + /** Get Discount Schema. + * Schema to calculate the trade discount percentage + */ + public int getM_DiscountSchema_ID(); + + public I_M_DiscountSchema getM_DiscountSchema() throws Exception; + + /** Column name M_Product_Category_ID */ + public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; + + /** Set Product Category. + * Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID); + + /** Get Product Category. + * Category of a Product + */ + public int getM_Product_Category_ID(); + + public I_M_Product_Category getM_Product_Category() throws Exception; + + /** 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 I_M_Product getM_Product() throws Exception; + + /** Column name SeqNo */ + public static final String COLUMNNAME_SeqNo = "SeqNo"; + + /** Set Sequence. + * Method of ordering records; + lowest number comes first + */ + public void setSeqNo (int SeqNo); + + /** Get Sequence. + * Method of ordering records; + lowest number comes first + */ + public int getSeqNo(); + + /** Column name Std_AddAmt */ + public static final String COLUMNNAME_Std_AddAmt = "Std_AddAmt"; + + /** Set Standard price Surcharge Amount. + * Amount added to a price as a surcharge + */ + public void setStd_AddAmt (BigDecimal Std_AddAmt); + + /** Get Standard price Surcharge Amount. + * Amount added to a price as a surcharge + */ + public BigDecimal getStd_AddAmt(); + + /** Column name Std_Base */ + public static final String COLUMNNAME_Std_Base = "Std_Base"; + + /** Set Standard price Base. + * Base price for calculating new standard price + */ + public void setStd_Base (String Std_Base); + + /** Get Standard price Base. + * Base price for calculating new standard price + */ + public String getStd_Base(); + + /** Column name Std_Discount */ + public static final String COLUMNNAME_Std_Discount = "Std_Discount"; + + /** Set Standard price Discount %. + * Discount percentage to subtract from base price + */ + public void setStd_Discount (BigDecimal Std_Discount); + + /** Get Standard price Discount %. + * Discount percentage to subtract from base price + */ + public BigDecimal getStd_Discount(); + + /** Column name Std_Fixed */ + public static final String COLUMNNAME_Std_Fixed = "Std_Fixed"; + + /** Set Fixed Standard Price. + * Fixed Standard Price (not calculated) + */ + public void setStd_Fixed (BigDecimal Std_Fixed); + + /** Get Fixed Standard Price. + * Fixed Standard Price (not calculated) + */ + public BigDecimal getStd_Fixed(); + + /** Column name Std_MaxAmt */ + public static final String COLUMNNAME_Std_MaxAmt = "Std_MaxAmt"; + + /** Set Standard max Margin. + * Maximum margin allowed for a product + */ + public void setStd_MaxAmt (BigDecimal Std_MaxAmt); + + /** Get Standard max Margin. + * Maximum margin allowed for a product + */ + public BigDecimal getStd_MaxAmt(); + + /** Column name Std_MinAmt */ + public static final String COLUMNNAME_Std_MinAmt = "Std_MinAmt"; + + /** Set Standard price min Margin. + * Minimum margin allowed for a product + */ + public void setStd_MinAmt (BigDecimal Std_MinAmt); + + /** Get Standard price min Margin. + * Minimum margin allowed for a product + */ + public BigDecimal getStd_MinAmt(); + + /** Column name Std_Rounding */ + public static final String COLUMNNAME_Std_Rounding = "Std_Rounding"; + + /** Set Standard price Rounding. + * Rounding rule for calculated price + */ + public void setStd_Rounding (String Std_Rounding); + + /** Get Standard price Rounding. + * Rounding rule for calculated price + */ + public String getStd_Rounding(); +} diff --git a/base/src/org/compiere/model/I_M_Forecast.java b/base/src/org/compiere/model/I_M_Forecast.java new file mode 100644 index 0000000000..74d41364ab --- /dev/null +++ b/base/src/org/compiere/model/I_M_Forecast.java @@ -0,0 +1,162 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for M_Forecast + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_M_Forecast +{ + + /** TableName=M_Forecast */ + public static final String Table_Name = "M_Forecast"; + + /** AD_Table_ID=720 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(3); + + /** Load Meta Data */ + + /** Column name C_Calendar_ID */ + public static final String COLUMNNAME_C_Calendar_ID = "C_Calendar_ID"; + + /** Set Calendar. + * Accounting Calendar Name + */ + public void setC_Calendar_ID (int C_Calendar_ID); + + /** Get Calendar. + * Accounting Calendar Name + */ + public int getC_Calendar_ID(); + + public I_C_Calendar getC_Calendar() throws Exception; + + /** Column name C_Year_ID */ + public static final String COLUMNNAME_C_Year_ID = "C_Year_ID"; + + /** Set Year. + * Calendar Year + */ + public void setC_Year_ID (int C_Year_ID); + + /** Get Year. + * Calendar Year + */ + public int getC_Year_ID(); + + public I_C_Year getC_Year() throws Exception; + + /** 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 Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name IsDefault */ + public static final String COLUMNNAME_IsDefault = "IsDefault"; + + /** Set Default. + * Default value + */ + public void setIsDefault (boolean IsDefault); + + /** Get Default. + * Default value + */ + public boolean isDefault(); + + /** Column name M_Forecast_ID */ + public static final String COLUMNNAME_M_Forecast_ID = "M_Forecast_ID"; + + /** Set Forecast. + * Material Forecast + */ + public void setM_Forecast_ID (int M_Forecast_ID); + + /** Get Forecast. + * Material Forecast + */ + public int getM_Forecast_ID(); + + /** 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 Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); +} diff --git a/base/src/org/compiere/model/I_M_ForecastLine.java b/base/src/org/compiere/model/I_M_ForecastLine.java new file mode 100644 index 0000000000..24dd265843 --- /dev/null +++ b/base/src/org/compiere/model/I_M_ForecastLine.java @@ -0,0 +1,171 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for M_ForecastLine + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_M_ForecastLine +{ + + /** TableName=M_ForecastLine */ + public static final String Table_Name = "M_ForecastLine"; + + /** AD_Table_ID=722 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(3); + + /** Load Meta Data */ + + /** Column name C_Period_ID */ + public static final String COLUMNNAME_C_Period_ID = "C_Period_ID"; + + /** Set Period. + * Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID); + + /** Get Period. + * Period of the Calendar + */ + public int getC_Period_ID(); + + public I_C_Period getC_Period() throws Exception; + + /** Column name DatePromised */ + public static final String COLUMNNAME_DatePromised = "DatePromised"; + + /** Set Date Promised. + * Date Order was promised + */ + public void setDatePromised (Timestamp DatePromised); + + /** Get Date Promised. + * Date Order was promised + */ + public Timestamp getDatePromised(); + + /** Column name M_ForecastLine_ID */ + public static final String COLUMNNAME_M_ForecastLine_ID = "M_ForecastLine_ID"; + + /** Set Forecast Line. + * Forecast Line + */ + public void setM_ForecastLine_ID (int M_ForecastLine_ID); + + /** Get Forecast Line. + * Forecast Line + */ + public int getM_ForecastLine_ID(); + + /** Column name M_Forecast_ID */ + public static final String COLUMNNAME_M_Forecast_ID = "M_Forecast_ID"; + + /** Set Forecast. + * Material Forecast + */ + public void setM_Forecast_ID (int M_Forecast_ID); + + /** Get Forecast. + * Material Forecast + */ + public int getM_Forecast_ID(); + + public I_M_Forecast getM_Forecast() throws Exception; + + /** 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 I_M_Product getM_Product() throws Exception; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getM_Warehouse() throws Exception; + + /** Column name Qty */ + public static final String COLUMNNAME_Qty = "Qty"; + + /** Set Quantity. + * Quantity + */ + public void setQty (BigDecimal Qty); + + /** Get Quantity. + * Quantity + */ + public BigDecimal getQty(); + + /** Column name QtyCalculated */ + public static final String COLUMNNAME_QtyCalculated = "QtyCalculated"; + + /** Set Calculated Quantity. + * Calculated Quantity + */ + public void setQtyCalculated (BigDecimal QtyCalculated); + + /** Get Calculated Quantity. + * Calculated Quantity + */ + public BigDecimal getQtyCalculated(); +} diff --git a/base/src/org/compiere/model/I_M_InOut.java b/base/src/org/compiere/model/I_M_InOut.java new file mode 100644 index 0000000000..7833b7b8f2 --- /dev/null +++ b/base/src/org/compiere/model/I_M_InOut.java @@ -0,0 +1,793 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for M_InOut + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_M_InOut +{ + + /** TableName=M_InOut */ + public static final String Table_Name = "M_InOut"; + + /** AD_Table_ID=319 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(1); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_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 I_AD_User getAD_User() throws Exception; + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getC_Activity() throws Exception; + + /** 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 I_C_BPartner getC_BPartner() throws Exception; + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + public I_C_BPartner_Location getC_BPartner_Location() throws Exception; + + /** 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 I_C_Campaign getC_Campaign() throws Exception; + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + public I_C_Invoice getC_Invoice() throws Exception; + + /** 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 I_C_Order getC_Order() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getC_Project() throws Exception; + + /** Column name ChargeAmt */ + public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; + + /** Set Charge amount. + * Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt); + + /** Get Charge amount. + * Charge Amount + */ + public BigDecimal getChargeAmt(); + + /** Column name CreateConfirm */ + public static final String COLUMNNAME_CreateConfirm = "CreateConfirm"; + + /** Set Create Confirm */ + public void setCreateConfirm (String CreateConfirm); + + /** Get Create Confirm */ + public String getCreateConfirm(); + + /** Column name CreateFrom */ + public static final String COLUMNNAME_CreateFrom = "CreateFrom"; + + /** Set Create lines from. + * Process which will generate a new document lines based on an existing document + */ + public void setCreateFrom (String CreateFrom); + + /** Get Create lines from. + * Process which will generate a new document lines based on an existing document + */ + public String getCreateFrom(); + + /** Column name CreatePackage */ + public static final String COLUMNNAME_CreatePackage = "CreatePackage"; + + /** Set Create Package */ + public void setCreatePackage (String CreatePackage); + + /** Get Create Package */ + public String getCreatePackage(); + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (Timestamp DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public Timestamp getDateAcct(); + + /** Column name DateOrdered */ + public static final String COLUMNNAME_DateOrdered = "DateOrdered"; + + /** Set Date Ordered. + * Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered); + + /** Get Date Ordered. + * Date of Order + */ + public Timestamp getDateOrdered(); + + /** Column name DatePrinted */ + public static final String COLUMNNAME_DatePrinted = "DatePrinted"; + + /** Set Date printed. + * Date the document was printed. + */ + public void setDatePrinted (Timestamp DatePrinted); + + /** Get Date printed. + * Date the document was printed. + */ + public Timestamp getDatePrinted(); + + /** Column name DateReceived */ + public static final String COLUMNNAME_DateReceived = "DateReceived"; + + /** Set Date received. + * Date a product was received + */ + public void setDateReceived (Timestamp DateReceived); + + /** Get Date received. + * Date a product was received + */ + public Timestamp getDateReceived(); + + /** Column name DeliveryRule */ + public static final String COLUMNNAME_DeliveryRule = "DeliveryRule"; + + /** Set Delivery Rule. + * Defines the timing of Delivery + */ + public void setDeliveryRule (String DeliveryRule); + + /** Get Delivery Rule. + * Defines the timing of Delivery + */ + public String getDeliveryRule(); + + /** Column name DeliveryViaRule */ + public static final String COLUMNNAME_DeliveryViaRule = "DeliveryViaRule"; + + /** Set Delivery Via. + * How the order will be delivered + */ + public void setDeliveryViaRule (String DeliveryViaRule); + + /** Get Delivery Via. + * How the order will be delivered + */ + public String getDeliveryViaRule(); + + /** 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 DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** 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 FreightAmt */ + public static final String COLUMNNAME_FreightAmt = "FreightAmt"; + + /** Set Freight Amount. + * Freight Amount + */ + public void setFreightAmt (BigDecimal FreightAmt); + + /** Get Freight Amount. + * Freight Amount + */ + public BigDecimal getFreightAmt(); + + /** Column name FreightCostRule */ + public static final String COLUMNNAME_FreightCostRule = "FreightCostRule"; + + /** Set Freight Cost Rule. + * Method for charging Freight + */ + public void setFreightCostRule (String FreightCostRule); + + /** Get Freight Cost Rule. + * Method for charging Freight + */ + public String getFreightCostRule(); + + /** Column name GenerateTo */ + public static final String COLUMNNAME_GenerateTo = "GenerateTo"; + + /** Set Generate To. + * Generate To + */ + public void setGenerateTo (String GenerateTo); + + /** Get Generate To. + * Generate To + */ + public String getGenerateTo(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name IsInDispute */ + public static final String COLUMNNAME_IsInDispute = "IsInDispute"; + + /** Set In Dispute. + * Document is in dispute + */ + public void setIsInDispute (boolean IsInDispute); + + /** Get In Dispute. + * Document is in dispute + */ + public boolean isInDispute(); + + /** Column name IsInTransit */ + public static final String COLUMNNAME_IsInTransit = "IsInTransit"; + + /** Set In Transit. + * Movement is in transit + */ + public void setIsInTransit (boolean IsInTransit); + + /** Get In Transit. + * Movement is in transit + */ + public boolean isInTransit(); + + /** Column name IsPrinted */ + public static final String COLUMNNAME_IsPrinted = "IsPrinted"; + + /** Set Printed. + * Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted); + + /** Get Printed. + * Indicates if this document / line is printed + */ + public boolean isPrinted(); + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name M_InOut_ID */ + public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID"; + + /** Set Shipment/Receipt. + * Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID); + + /** Get Shipment/Receipt. + * Material Shipment Document + */ + public int getM_InOut_ID(); + + /** Column name M_RMA_ID */ + public static final String COLUMNNAME_M_RMA_ID = "M_RMA_ID"; + + /** Set RMA. + * Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID); + + /** Get RMA. + * Return Material Authorization + */ + public int getM_RMA_ID(); + + public I_M_RMA getM_RMA() throws Exception; + + /** Column name M_Shipper_ID */ + public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; + + /** Set Shipper. + * Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID); + + /** Get Shipper. + * Method or manner of product delivery + */ + public int getM_Shipper_ID(); + + public I_M_Shipper getM_Shipper() throws Exception; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getM_Warehouse() throws Exception; + + /** Column name MovementDate */ + public static final String COLUMNNAME_MovementDate = "MovementDate"; + + /** Set Movement Date. + * Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate); + + /** Get Movement Date. + * Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate(); + + /** Column name MovementType */ + public static final String COLUMNNAME_MovementType = "MovementType"; + + /** Set Movement Type. + * Method of moving the inventory + */ + public void setMovementType (String MovementType); + + /** Get Movement Type. + * Method of moving the inventory + */ + public String getMovementType(); + + /** Column name NoPackages */ + public static final String COLUMNNAME_NoPackages = "NoPackages"; + + /** Set No Packages. + * Number of packages shipped + */ + public void setNoPackages (int NoPackages); + + /** Get No Packages. + * Number of packages shipped + */ + public int getNoPackages(); + + /** Column name POReference */ + public static final String COLUMNNAME_POReference = "POReference"; + + /** Set Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference); + + /** Get Order Reference. + * Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference(); + + /** Column name PickDate */ + public static final String COLUMNNAME_PickDate = "PickDate"; + + /** Set Pick Date. + * Date/Time when picked for Shipment + */ + public void setPickDate (Timestamp PickDate); + + /** Get Pick Date. + * Date/Time when picked for Shipment + */ + public Timestamp getPickDate(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name PriorityRule */ + public static final String COLUMNNAME_PriorityRule = "PriorityRule"; + + /** Set Priority. + * Priority of a document + */ + public void setPriorityRule (String PriorityRule); + + /** Get Priority. + * Priority of a document + */ + public String getPriorityRule(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Ref_InOut_ID */ + public static final String COLUMNNAME_Ref_InOut_ID = "Ref_InOut_ID"; + + /** Set Referenced Shipment */ + public void setRef_InOut_ID (int Ref_InOut_ID); + + /** Get Referenced Shipment */ + public int getRef_InOut_ID(); + + /** Column name Reversal_ID */ + public static final String COLUMNNAME_Reversal_ID = "Reversal_ID"; + + /** Set Reversal ID. + * ID of document reversal + */ + public void setReversal_ID (int Reversal_ID); + + /** Get Reversal ID. + * ID of document reversal + */ + public int getReversal_ID(); + + /** 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 SendEMail */ + public static final String COLUMNNAME_SendEMail = "SendEMail"; + + /** Set Send EMail. + * Enable sending Document EMail + */ + public void setSendEMail (boolean SendEMail); + + /** Get Send EMail. + * Enable sending Document EMail + */ + public boolean isSendEMail(); + + /** Column name ShipDate */ + public static final String COLUMNNAME_ShipDate = "ShipDate"; + + /** Set Ship Date. + * Shipment Date/Time + */ + public void setShipDate (Timestamp ShipDate); + + /** Get Ship Date. + * Shipment Date/Time + */ + public Timestamp getShipDate(); + + /** Column name TrackingNo */ + public static final String COLUMNNAME_TrackingNo = "TrackingNo"; + + /** Set Tracking No. + * Number to track the shipment + */ + public void setTrackingNo (String TrackingNo); + + /** Get Tracking No. + * Number to track the shipment + */ + public String getTrackingNo(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); + + /** Column name Volume */ + public static final String COLUMNNAME_Volume = "Volume"; + + /** Set Volume. + * Volume of a product + */ + public void setVolume (BigDecimal Volume); + + /** Get Volume. + * Volume of a product + */ + public BigDecimal getVolume(); + + /** Column name Weight */ + public static final String COLUMNNAME_Weight = "Weight"; + + /** Set Weight. + * Weight of a product + */ + public void setWeight (BigDecimal Weight); + + /** Get Weight. + * Weight of a product + */ + public BigDecimal getWeight(); +} diff --git a/base/src/org/compiere/model/I_M_Inventory.java b/base/src/org/compiere/model/I_M_Inventory.java new file mode 100644 index 0000000000..7e857b9204 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Inventory.java @@ -0,0 +1,362 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for M_Inventory + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_M_Inventory +{ + + /** TableName=M_Inventory */ + public static final String Table_Name = "M_Inventory"; + + /** AD_Table_ID=321 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(1); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_ID(); + + /** Column name ApprovalAmt */ + public static final String COLUMNNAME_ApprovalAmt = "ApprovalAmt"; + + /** Set Approval Amount. + * Document Approval Amount + */ + public void setApprovalAmt (BigDecimal ApprovalAmt); + + /** Get Approval Amount. + * Document Approval Amount + */ + public BigDecimal getApprovalAmt(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getC_Activity() throws Exception; + + /** 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 I_C_Campaign getC_Campaign() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getC_DocType() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getC_Project() throws Exception; + + /** 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 DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** 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 GenerateList */ + public static final String COLUMNNAME_GenerateList = "GenerateList"; + + /** Set Generate List. + * Generate List + */ + public void setGenerateList (String GenerateList); + + /** Get Generate List. + * Generate List + */ + public String getGenerateList(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name M_Inventory_ID */ + public static final String COLUMNNAME_M_Inventory_ID = "M_Inventory_ID"; + + /** Set Phys.Inventory. + * Parameters for a Physical Inventory + */ + public void setM_Inventory_ID (int M_Inventory_ID); + + /** Get Phys.Inventory. + * Parameters for a Physical Inventory + */ + public int getM_Inventory_ID(); + + /** Column name M_PerpetualInv_ID */ + public static final String COLUMNNAME_M_PerpetualInv_ID = "M_PerpetualInv_ID"; + + /** Set Perpetual Inventory. + * Rules for generating physical inventory + */ + public void setM_PerpetualInv_ID (int M_PerpetualInv_ID); + + /** Get Perpetual Inventory. + * Rules for generating physical inventory + */ + public int getM_PerpetualInv_ID(); + + public I_M_PerpetualInv getM_PerpetualInv() throws Exception; + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getM_Warehouse() throws Exception; + + /** Column name MovementDate */ + public static final String COLUMNNAME_MovementDate = "MovementDate"; + + /** Set Movement Date. + * Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate); + + /** Get Movement Date. + * Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Reversal_ID */ + public static final String COLUMNNAME_Reversal_ID = "Reversal_ID"; + + /** Set Reversal ID. + * ID of document reversal + */ + public void setReversal_ID (int Reversal_ID); + + /** Get Reversal ID. + * ID of document reversal + */ + public int getReversal_ID(); + + /** Column name UpdateQty */ + public static final String COLUMNNAME_UpdateQty = "UpdateQty"; + + /** Set Update Quantities */ + public void setUpdateQty (String UpdateQty); + + /** Get Update Quantities */ + public String getUpdateQty(); + + /** Column name User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); +} diff --git a/base/src/org/compiere/model/I_M_Movement.java b/base/src/org/compiere/model/I_M_Movement.java new file mode 100644 index 0000000000..6400ba1312 --- /dev/null +++ b/base/src/org/compiere/model/I_M_Movement.java @@ -0,0 +1,522 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for M_Movement + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_M_Movement +{ + + /** TableName=M_Movement */ + public static final String Table_Name = "M_Movement"; + + /** AD_Table_ID=323 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(1); + + /** Load Meta Data */ + + /** Column name AD_OrgTrx_ID */ + public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID"; + + /** Set Trx Organization. + * Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID); + + /** Get Trx Organization. + * Performing or initiating organization + */ + public int getAD_OrgTrx_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(); + + /** Column name ApprovalAmt */ + public static final String COLUMNNAME_ApprovalAmt = "ApprovalAmt"; + + /** Set Approval Amount. + * Document Approval Amount + */ + public void setApprovalAmt (BigDecimal ApprovalAmt); + + /** Get Approval Amount. + * Document Approval Amount + */ + public BigDecimal getApprovalAmt(); + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getC_Activity() throws Exception; + + /** 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 I_C_BPartner getC_BPartner() throws Exception; + + /** Column name C_BPartner_Location_ID */ + public static final String COLUMNNAME_C_BPartner_Location_ID = "C_BPartner_Location_ID"; + + /** Set Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID); + + /** Get Partner Location. + * Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID(); + + /** 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 I_C_Campaign getC_Campaign() throws Exception; + + /** Column name C_Charge_ID */ + public static final String COLUMNNAME_C_Charge_ID = "C_Charge_ID"; + + /** Set Charge. + * Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID); + + /** Get Charge. + * Additional document charges + */ + public int getC_Charge_ID(); + + public I_C_Charge getC_Charge() throws Exception; + + /** Column name C_DocType_ID */ + public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID"; + + /** Set Document Type. + * Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID); + + /** Get Document Type. + * Document type or rules + */ + public int getC_DocType_ID(); + + public I_C_DocType getC_DocType() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getC_Project() throws Exception; + + /** Column name ChargeAmt */ + public static final String COLUMNNAME_ChargeAmt = "ChargeAmt"; + + /** Set Charge amount. + * Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt); + + /** Get Charge amount. + * Charge Amount + */ + public BigDecimal getChargeAmt(); + + /** Column name CreateFrom */ + public static final String COLUMNNAME_CreateFrom = "CreateFrom"; + + /** Set Create lines from. + * Process which will generate a new document lines based on an existing document + */ + public void setCreateFrom (String CreateFrom); + + /** Get Create lines from. + * Process which will generate a new document lines based on an existing document + */ + public String getCreateFrom(); + + /** Column name DD_Order_ID */ + public static final String COLUMNNAME_DD_Order_ID = "DD_Order_ID"; + + /** Set Distribution Order */ + public void setDD_Order_ID (int DD_Order_ID); + + /** Get Distribution Order */ + public int getDD_Order_ID(); + + public org.eevolution.model.I_DD_Order getDD_Order() throws Exception; + + /** Column name DateReceived */ + public static final String COLUMNNAME_DateReceived = "DateReceived"; + + /** Set Date received. + * Date a product was received + */ + public void setDateReceived (Timestamp DateReceived); + + /** Get Date received. + * Date a product was received + */ + public Timestamp getDateReceived(); + + /** Column name DeliveryRule */ + public static final String COLUMNNAME_DeliveryRule = "DeliveryRule"; + + /** Set Delivery Rule. + * Defines the timing of Delivery + */ + public void setDeliveryRule (String DeliveryRule); + + /** Get Delivery Rule. + * Defines the timing of Delivery + */ + public String getDeliveryRule(); + + /** Column name DeliveryViaRule */ + public static final String COLUMNNAME_DeliveryViaRule = "DeliveryViaRule"; + + /** Set Delivery Via. + * How the order will be delivered + */ + public void setDeliveryViaRule (String DeliveryViaRule); + + /** Get Delivery Via. + * How the order will be delivered + */ + public String getDeliveryViaRule(); + + /** 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 DocAction */ + public static final String COLUMNNAME_DocAction = "DocAction"; + + /** Set Document Action. + * The targeted status of the document + */ + public void setDocAction (String DocAction); + + /** Get Document Action. + * The targeted status of the document + */ + public String getDocAction(); + + /** Column name DocStatus */ + public static final String COLUMNNAME_DocStatus = "DocStatus"; + + /** Set Document Status. + * The current status of the document + */ + public void setDocStatus (String DocStatus); + + /** Get Document Status. + * The current status of the document + */ + public String getDocStatus(); + + /** 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 FreightAmt */ + public static final String COLUMNNAME_FreightAmt = "FreightAmt"; + + /** Set Freight Amount. + * Freight Amount + */ + public void setFreightAmt (BigDecimal FreightAmt); + + /** Get Freight Amount. + * Freight Amount + */ + public BigDecimal getFreightAmt(); + + /** Column name FreightCostRule */ + public static final String COLUMNNAME_FreightCostRule = "FreightCostRule"; + + /** Set Freight Cost Rule. + * Method for charging Freight + */ + public void setFreightCostRule (String FreightCostRule); + + /** Get Freight Cost Rule. + * Method for charging Freight + */ + public String getFreightCostRule(); + + /** Column name IsApproved */ + public static final String COLUMNNAME_IsApproved = "IsApproved"; + + /** Set Approved. + * Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved); + + /** Get Approved. + * Indicates if this document requires approval + */ + public boolean isApproved(); + + /** Column name IsInTransit */ + public static final String COLUMNNAME_IsInTransit = "IsInTransit"; + + /** Set In Transit. + * Movement is in transit + */ + public void setIsInTransit (boolean IsInTransit); + + /** Get In Transit. + * Movement is in transit + */ + public boolean isInTransit(); + + /** Column name M_Movement_ID */ + public static final String COLUMNNAME_M_Movement_ID = "M_Movement_ID"; + + /** Set Inventory Move. + * Movement of Inventory + */ + public void setM_Movement_ID (int M_Movement_ID); + + /** Get Inventory Move. + * Movement of Inventory + */ + public int getM_Movement_ID(); + + /** Column name M_Shipper_ID */ + public static final String COLUMNNAME_M_Shipper_ID = "M_Shipper_ID"; + + /** Set Shipper. + * Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID); + + /** Get Shipper. + * Method or manner of product delivery + */ + public int getM_Shipper_ID(); + + public I_M_Shipper getM_Shipper() throws Exception; + + /** Column name MovementDate */ + public static final String COLUMNNAME_MovementDate = "MovementDate"; + + /** Set Movement Date. + * Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate); + + /** Get Movement Date. + * Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate(); + + /** Column name Posted */ + public static final String COLUMNNAME_Posted = "Posted"; + + /** Set Posted. + * Posting status + */ + public void setPosted (boolean Posted); + + /** Get Posted. + * Posting status + */ + public boolean isPosted(); + + /** Column name PriorityRule */ + public static final String COLUMNNAME_PriorityRule = "PriorityRule"; + + /** Set Priority. + * Priority of a document + */ + public void setPriorityRule (String PriorityRule); + + /** Get Priority. + * Priority of a document + */ + public String getPriorityRule(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name Reversal_ID */ + public static final String COLUMNNAME_Reversal_ID = "Reversal_ID"; + + /** Set Reversal ID. + * ID of document reversal + */ + public void setReversal_ID (int Reversal_ID); + + /** Get Reversal ID. + * ID of document reversal + */ + public int getReversal_ID(); + + /** 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 User1_ID */ + public static final String COLUMNNAME_User1_ID = "User1_ID"; + + /** Set User List 1. + * User defined list element #1 + */ + public void setUser1_ID (int User1_ID); + + /** Get User List 1. + * User defined list element #1 + */ + public int getUser1_ID(); + + /** Column name User2_ID */ + public static final String COLUMNNAME_User2_ID = "User2_ID"; + + /** Set User List 2. + * User defined list element #2 + */ + public void setUser2_ID (int User2_ID); + + /** Get User List 2. + * User defined list element #2 + */ + public int getUser2_ID(); +} diff --git a/base/src/org/compiere/model/I_M_MovementLine.java b/base/src/org/compiere/model/I_M_MovementLine.java new file mode 100644 index 0000000000..af52294a03 --- /dev/null +++ b/base/src/org/compiere/model/I_M_MovementLine.java @@ -0,0 +1,266 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for M_MovementLine + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_M_MovementLine +{ + + /** TableName=M_MovementLine */ + public static final String Table_Name = "M_MovementLine"; + + /** AD_Table_ID=324 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(1); + + /** Load Meta Data */ + + /** Column name ConfirmedQty */ + public static final String COLUMNNAME_ConfirmedQty = "ConfirmedQty"; + + /** Set Confirmed Quantity. + * Confirmation of a received quantity + */ + public void setConfirmedQty (BigDecimal ConfirmedQty); + + /** Get Confirmed Quantity. + * Confirmation of a received quantity + */ + public BigDecimal getConfirmedQty(); + + /** Column name DD_OrderLine_ID */ + public static final String COLUMNNAME_DD_OrderLine_ID = "DD_OrderLine_ID"; + + /** Set Distribution Order Line */ + public void setDD_OrderLine_ID (int DD_OrderLine_ID); + + /** Get Distribution Order Line */ + public int getDD_OrderLine_ID(); + + public org.eevolution.model.I_DD_OrderLine getDD_OrderLine() throws Exception; + + /** 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 Line */ + public static final String COLUMNNAME_Line = "Line"; + + /** Set Line No. + * Unique line for this document + */ + public void setLine (int Line); + + /** Get Line No. + * Unique line for this document + */ + public int getLine(); + + /** Column name M_AttributeSetInstanceTo_ID */ + public static final String COLUMNNAME_M_AttributeSetInstanceTo_ID = "M_AttributeSetInstanceTo_ID"; + + /** Set Attribute Set Instance To. + * Target Product Attribute Set Instance + */ + public void setM_AttributeSetInstanceTo_ID (int M_AttributeSetInstanceTo_ID); + + /** Get Attribute Set Instance To. + * Target Product Attribute Set Instance + */ + public int getM_AttributeSetInstanceTo_ID(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_LocatorTo_ID */ + public static final String COLUMNNAME_M_LocatorTo_ID = "M_LocatorTo_ID"; + + /** Set Locator To. + * Location inventory is moved to + */ + public void setM_LocatorTo_ID (int M_LocatorTo_ID); + + /** Get Locator To. + * Location inventory is moved to + */ + public int getM_LocatorTo_ID(); + + /** Column name M_Locator_ID */ + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** Set Locator. + * Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID); + + /** Get Locator. + * Warehouse Locator + */ + public int getM_Locator_ID(); + + /** Column name M_MovementLine_ID */ + public static final String COLUMNNAME_M_MovementLine_ID = "M_MovementLine_ID"; + + /** Set Move Line. + * Inventory Move document Line + */ + public void setM_MovementLine_ID (int M_MovementLine_ID); + + /** Get Move Line. + * Inventory Move document Line + */ + public int getM_MovementLine_ID(); + + /** Column name M_Movement_ID */ + public static final String COLUMNNAME_M_Movement_ID = "M_Movement_ID"; + + /** Set Inventory Move. + * Movement of Inventory + */ + public void setM_Movement_ID (int M_Movement_ID); + + /** Get Inventory Move. + * Movement of Inventory + */ + public int getM_Movement_ID(); + + public I_M_Movement getM_Movement() throws Exception; + + /** 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(); + + /** Column name MovementQty */ + public static final String COLUMNNAME_MovementQty = "MovementQty"; + + /** Set Movement Quantity. + * Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty); + + /** Get Movement Quantity. + * Quantity of a product moved. + */ + public BigDecimal getMovementQty(); + + /** Column name Processed */ + public static final String COLUMNNAME_Processed = "Processed"; + + /** Set Processed. + * The document has been processed + */ + public void setProcessed (boolean Processed); + + /** Get Processed. + * The document has been processed + */ + public boolean isProcessed(); + + /** Column name ScrappedQty */ + public static final String COLUMNNAME_ScrappedQty = "ScrappedQty"; + + /** Set Scrapped Quantity. + * The Quantity scrapped due to QA issues + */ + public void setScrappedQty (BigDecimal ScrappedQty); + + /** Get Scrapped Quantity. + * The Quantity scrapped due to QA issues + */ + public BigDecimal getScrappedQty(); + + /** Column name TargetQty */ + public static final String COLUMNNAME_TargetQty = "TargetQty"; + + /** Set Target Quantity. + * Target Movement Quantity + */ + public void setTargetQty (BigDecimal TargetQty); + + /** Get Target Quantity. + * Target Movement Quantity + */ + public BigDecimal getTargetQty(); + + /** 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(); +} diff --git a/base/src/org/compiere/model/I_M_Product.java b/base/src/org/compiere/model/I_M_Product.java new file mode 100644 index 0000000000..cd79afafda --- /dev/null +++ b/base/src/org/compiere/model/I_M_Product.java @@ -0,0 +1,737 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for M_Product + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_M_Product +{ + + /** TableName=M_Product */ + public static final String Table_Name = "M_Product"; + + /** AD_Table_ID=208 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(3); + + /** Load Meta Data */ + + /** Column name C_RevenueRecognition_ID */ + public static final String COLUMNNAME_C_RevenueRecognition_ID = "C_RevenueRecognition_ID"; + + /** Set Revenue Recognition. + * Method for recording revenue + */ + public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID); + + /** Get Revenue Recognition. + * Method for recording revenue + */ + public int getC_RevenueRecognition_ID(); + + public I_C_RevenueRecognition getC_RevenueRecognition() throws Exception; + + /** Column name C_SubscriptionType_ID */ + public static final String COLUMNNAME_C_SubscriptionType_ID = "C_SubscriptionType_ID"; + + /** Set Subscription Type. + * Type of subscription + */ + public void setC_SubscriptionType_ID (int C_SubscriptionType_ID); + + /** Get Subscription Type. + * Type of subscription + */ + public int getC_SubscriptionType_ID(); + + /** Column name C_TaxCategory_ID */ + public static final String COLUMNNAME_C_TaxCategory_ID = "C_TaxCategory_ID"; + + /** Set Tax Category. + * Tax Category + */ + public void setC_TaxCategory_ID (int C_TaxCategory_ID); + + /** Get Tax Category. + * Tax Category + */ + public int getC_TaxCategory_ID(); + + public I_C_TaxCategory getC_TaxCategory() throws Exception; + + /** Column name C_UOM_ID */ + public static final String COLUMNNAME_C_UOM_ID = "C_UOM_ID"; + + /** Set UOM. + * Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID); + + /** Get UOM. + * Unit of Measure + */ + public int getC_UOM_ID(); + + public I_C_UOM getC_UOM() throws Exception; + + /** Column name Classification */ + public static final String COLUMNNAME_Classification = "Classification"; + + /** Set Classification. + * Classification for grouping + */ + public void setClassification (String Classification); + + /** Get Classification. + * Classification for grouping + */ + public String getClassification(); + + /** 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 DescriptionURL */ + public static final String COLUMNNAME_DescriptionURL = "DescriptionURL"; + + /** Set Description URL. + * URL for the description + */ + public void setDescriptionURL (String DescriptionURL); + + /** Get Description URL. + * URL for the description + */ + public String getDescriptionURL(); + + /** Column name Discontinued */ + public static final String COLUMNNAME_Discontinued = "Discontinued"; + + /** Set Discontinued. + * This product is no longer available + */ + public void setDiscontinued (boolean Discontinued); + + /** Get Discontinued. + * This product is no longer available + */ + public boolean isDiscontinued(); + + /** Column name DiscontinuedBy */ + public static final String COLUMNNAME_DiscontinuedBy = "DiscontinuedBy"; + + /** Set Discontinued by. + * Discontinued By + */ + public void setDiscontinuedBy (Timestamp DiscontinuedBy); + + /** Get Discontinued by. + * Discontinued By + */ + public Timestamp getDiscontinuedBy(); + + /** Column name DocumentNote */ + public static final String COLUMNNAME_DocumentNote = "DocumentNote"; + + /** Set Document Note. + * Additional information for a Document + */ + public void setDocumentNote (String DocumentNote); + + /** Get Document Note. + * Additional information for a Document + */ + public String getDocumentNote(); + + /** Column name Group1 */ + public static final String COLUMNNAME_Group1 = "Group1"; + + /** Set Group1 */ + public void setGroup1 (String Group1); + + /** Get Group1 */ + public String getGroup1(); + + /** Column name Group2 */ + public static final String COLUMNNAME_Group2 = "Group2"; + + /** Set Group2 */ + public void setGroup2 (String Group2); + + /** Get Group2 */ + public String getGroup2(); + + /** Column name GuaranteeDays */ + public static final String COLUMNNAME_GuaranteeDays = "GuaranteeDays"; + + /** Set Guarantee Days. + * Number of days the product is guaranteed or available + */ + public void setGuaranteeDays (int GuaranteeDays); + + /** Get Guarantee Days. + * Number of days the product is guaranteed or available + */ + public int getGuaranteeDays(); + + /** Column name GuaranteeDaysMin */ + public static final String COLUMNNAME_GuaranteeDaysMin = "GuaranteeDaysMin"; + + /** Set Min Guarantee Days. + * Minumum number of guarantee days + */ + public void setGuaranteeDaysMin (int GuaranteeDaysMin); + + /** Get Min Guarantee Days. + * Minumum number of guarantee days + */ + public int getGuaranteeDaysMin(); + + /** Column name Help */ + public static final String COLUMNNAME_Help = "Help"; + + /** Set Comment/Help. + * Comment or Hint + */ + public void setHelp (String Help); + + /** Get Comment/Help. + * Comment or Hint + */ + public String getHelp(); + + /** Column name ImageURL */ + public static final String COLUMNNAME_ImageURL = "ImageURL"; + + /** Set Image URL. + * URL of image + */ + public void setImageURL (String ImageURL); + + /** Get Image URL. + * URL of image + */ + public String getImageURL(); + + /** Column name IsBOM */ + public static final String COLUMNNAME_IsBOM = "IsBOM"; + + /** Set Bill of Materials. + * Bill of Materials + */ + public void setIsBOM (boolean IsBOM); + + /** Get Bill of Materials. + * Bill of Materials + */ + public boolean isBOM(); + + /** Column name IsDropShip */ + public static final String COLUMNNAME_IsDropShip = "IsDropShip"; + + /** Set Drop Shipment. + * Drop Shipments are sent from the Vendor directly to the Customer + */ + public void setIsDropShip (boolean IsDropShip); + + /** Get Drop Shipment. + * Drop Shipments are sent from the Vendor directly to the Customer + */ + public boolean isDropShip(); + + /** Column name IsExcludeAutoDelivery */ + public static final String COLUMNNAME_IsExcludeAutoDelivery = "IsExcludeAutoDelivery"; + + /** Set Exclude Auto Delivery. + * Exclude from automatic Delivery + */ + public void setIsExcludeAutoDelivery (boolean IsExcludeAutoDelivery); + + /** Get Exclude Auto Delivery. + * Exclude from automatic Delivery + */ + public boolean isExcludeAutoDelivery(); + + /** Column name IsInvoicePrintDetails */ + public static final String COLUMNNAME_IsInvoicePrintDetails = "IsInvoicePrintDetails"; + + /** Set Print detail records on invoice . + * Print detail BOM elements on the invoice + */ + public void setIsInvoicePrintDetails (boolean IsInvoicePrintDetails); + + /** Get Print detail records on invoice . + * Print detail BOM elements on the invoice + */ + public boolean isInvoicePrintDetails(); + + /** Column name IsPickListPrintDetails */ + public static final String COLUMNNAME_IsPickListPrintDetails = "IsPickListPrintDetails"; + + /** Set Print detail records on pick list. + * Print detail BOM elements on the pick list + */ + public void setIsPickListPrintDetails (boolean IsPickListPrintDetails); + + /** Get Print detail records on pick list. + * Print detail BOM elements on the pick list + */ + public boolean isPickListPrintDetails(); + + /** Column name IsPurchased */ + public static final String COLUMNNAME_IsPurchased = "IsPurchased"; + + /** Set Purchased. + * Organization purchases this product + */ + public void setIsPurchased (boolean IsPurchased); + + /** Get Purchased. + * Organization purchases this product + */ + public boolean isPurchased(); + + /** Column name IsSelfService */ + public static final String COLUMNNAME_IsSelfService = "IsSelfService"; + + /** Set Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService); + + /** Get Self-Service. + * This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService(); + + /** Column name IsSold */ + public static final String COLUMNNAME_IsSold = "IsSold"; + + /** Set Sold. + * Organization sells this product + */ + public void setIsSold (boolean IsSold); + + /** Get Sold. + * Organization sells this product + */ + public boolean isSold(); + + /** Column name IsStocked */ + public static final String COLUMNNAME_IsStocked = "IsStocked"; + + /** Set Stocked. + * Organization stocks this product + */ + public void setIsStocked (boolean IsStocked); + + /** Get Stocked. + * Organization stocks this product + */ + public boolean isStocked(); + + /** Column name IsSummary */ + public static final String COLUMNNAME_IsSummary = "IsSummary"; + + /** Set Summary Level. + * This is a summary entity + */ + public void setIsSummary (boolean IsSummary); + + /** Get Summary Level. + * This is a summary entity + */ + public boolean isSummary(); + + /** Column name IsVerified */ + public static final String COLUMNNAME_IsVerified = "IsVerified"; + + /** Set Verified. + * The BOM configuration has been verified + */ + public void setIsVerified (boolean IsVerified); + + /** Get Verified. + * The BOM configuration has been verified + */ + public boolean isVerified(); + + /** Column name IsWebStoreFeatured */ + public static final String COLUMNNAME_IsWebStoreFeatured = "IsWebStoreFeatured"; + + /** Set Featured in Web Store. + * If selected, the product is displayed in the inital or any empy search + */ + public void setIsWebStoreFeatured (boolean IsWebStoreFeatured); + + /** Get Featured in Web Store. + * If selected, the product is displayed in the inital or any empy search + */ + public boolean isWebStoreFeatured(); + + /** Column name LowLevel */ + public static final String COLUMNNAME_LowLevel = "LowLevel"; + + /** Set LowLevel */ + public void setLowLevel (int LowLevel); + + /** Get LowLevel */ + public int getLowLevel(); + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_AttributeSet_ID */ + public static final String COLUMNNAME_M_AttributeSet_ID = "M_AttributeSet_ID"; + + /** Set Attribute Set. + * Product Attribute Set + */ + public void setM_AttributeSet_ID (int M_AttributeSet_ID); + + /** Get Attribute Set. + * Product Attribute Set + */ + public int getM_AttributeSet_ID(); + + public I_M_AttributeSet getM_AttributeSet() throws Exception; + + /** Column name M_FreightCategory_ID */ + public static final String COLUMNNAME_M_FreightCategory_ID = "M_FreightCategory_ID"; + + /** Set Freight Category. + * Category of the Freight + */ + public void setM_FreightCategory_ID (int M_FreightCategory_ID); + + /** Get Freight Category. + * Category of the Freight + */ + public int getM_FreightCategory_ID(); + + public I_M_FreightCategory getM_FreightCategory() throws Exception; + + /** Column name M_Locator_ID */ + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** Set Locator. + * Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID); + + /** Get Locator. + * Warehouse Locator + */ + public int getM_Locator_ID(); + + /** Column name M_Product_Category_ID */ + public static final String COLUMNNAME_M_Product_Category_ID = "M_Product_Category_ID"; + + /** Set Product Category. + * Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID); + + /** Get Product Category. + * Category of a Product + */ + public int getM_Product_Category_ID(); + + public I_M_Product_Category getM_Product_Category() throws Exception; + + /** 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(); + + /** 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 Processing */ + public static final String COLUMNNAME_Processing = "Processing"; + + /** Set Process Now */ + public void setProcessing (boolean Processing); + + /** Get Process Now */ + public boolean isProcessing(); + + /** Column name ProductType */ + public static final String COLUMNNAME_ProductType = "ProductType"; + + /** Set Product Type. + * Type of product + */ + public void setProductType (String ProductType); + + /** Get Product Type. + * Type of product + */ + public String getProductType(); + + /** Column name R_MailText_ID */ + public static final String COLUMNNAME_R_MailText_ID = "R_MailText_ID"; + + /** Set Mail Template. + * Text templates for mailings + */ + public void setR_MailText_ID (int R_MailText_ID); + + /** Get Mail Template. + * Text templates for mailings + */ + public int getR_MailText_ID(); + + public I_R_MailText getR_MailText() throws Exception; + + /** Column name SKU */ + public static final String COLUMNNAME_SKU = "SKU"; + + /** Set SKU. + * Stock Keeping Unit + */ + public void setSKU (String SKU); + + /** Get SKU. + * Stock Keeping Unit + */ + public String getSKU(); + + /** Column name S_ExpenseType_ID */ + public static final String COLUMNNAME_S_ExpenseType_ID = "S_ExpenseType_ID"; + + /** Set Expense Type. + * Expense report type + */ + public void setS_ExpenseType_ID (int S_ExpenseType_ID); + + /** Get Expense Type. + * Expense report type + */ + public int getS_ExpenseType_ID(); + + public I_S_ExpenseType getS_ExpenseType() throws Exception; + + /** Column name S_Resource_ID */ + public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID"; + + /** Set Resource. + * Resource + */ + public void setS_Resource_ID (int S_Resource_ID); + + /** Get Resource. + * Resource + */ + public int getS_Resource_ID(); + + public I_S_Resource getS_Resource() throws Exception; + + /** 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 ShelfDepth */ + public static final String COLUMNNAME_ShelfDepth = "ShelfDepth"; + + /** Set Shelf Depth. + * Shelf depth required + */ + public void setShelfDepth (int ShelfDepth); + + /** Get Shelf Depth. + * Shelf depth required + */ + public int getShelfDepth(); + + /** Column name ShelfHeight */ + public static final String COLUMNNAME_ShelfHeight = "ShelfHeight"; + + /** Set Shelf Height. + * Shelf height required + */ + public void setShelfHeight (BigDecimal ShelfHeight); + + /** Get Shelf Height. + * Shelf height required + */ + public BigDecimal getShelfHeight(); + + /** Column name ShelfWidth */ + public static final String COLUMNNAME_ShelfWidth = "ShelfWidth"; + + /** Set Shelf Width. + * Shelf width required + */ + public void setShelfWidth (int ShelfWidth); + + /** Get Shelf Width. + * Shelf width required + */ + public int getShelfWidth(); + + /** Column name UPC */ + public static final String COLUMNNAME_UPC = "UPC"; + + /** Set UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC); + + /** Get UPC/EAN. + * Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC(); + + /** Column name UnitsPerPallet */ + public static final String COLUMNNAME_UnitsPerPallet = "UnitsPerPallet"; + + /** Set Units Per Pallet. + * Units Per Pallet + */ + public void setUnitsPerPallet (BigDecimal UnitsPerPallet); + + /** Get Units Per Pallet. + * Units Per Pallet + */ + public BigDecimal getUnitsPerPallet(); + + /** 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(); + + /** Column name VersionNo */ + public static final String COLUMNNAME_VersionNo = "VersionNo"; + + /** Set Version No. + * Version Number + */ + public void setVersionNo (String VersionNo); + + /** Get Version No. + * Version Number + */ + public String getVersionNo(); + + /** Column name Volume */ + public static final String COLUMNNAME_Volume = "Volume"; + + /** Set Volume. + * Volume of a product + */ + public void setVolume (BigDecimal Volume); + + /** Get Volume. + * Volume of a product + */ + public BigDecimal getVolume(); + + /** Column name Weight */ + public static final String COLUMNNAME_Weight = "Weight"; + + /** Set Weight. + * Weight of a product + */ + public void setWeight (BigDecimal Weight); + + /** Get Weight. + * Weight of a product + */ + public BigDecimal getWeight(); +} diff --git a/base/src/org/compiere/model/I_M_Transaction.java b/base/src/org/compiere/model/I_M_Transaction.java new file mode 100644 index 0000000000..235f985ffd --- /dev/null +++ b/base/src/org/compiere/model/I_M_Transaction.java @@ -0,0 +1,245 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for M_Transaction + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_M_Transaction +{ + + /** TableName=M_Transaction */ + public static final String Table_Name = "M_Transaction"; + + /** AD_Table_ID=329 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 1 - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(1); + + /** Load Meta Data */ + + /** Column name C_ProjectIssue_ID */ + public static final String COLUMNNAME_C_ProjectIssue_ID = "C_ProjectIssue_ID"; + + /** Set Project Issue. + * Project Issues (Material, Labor) + */ + public void setC_ProjectIssue_ID (int C_ProjectIssue_ID); + + /** Get Project Issue. + * Project Issues (Material, Labor) + */ + public int getC_ProjectIssue_ID(); + + public I_C_ProjectIssue getC_ProjectIssue() throws Exception; + + /** Column name M_AttributeSetInstance_ID */ + public static final String COLUMNNAME_M_AttributeSetInstance_ID = "M_AttributeSetInstance_ID"; + + /** Set Attribute Set Instance. + * Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID); + + /** Get Attribute Set Instance. + * Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID(); + + /** Column name M_InOutLine_ID */ + public static final String COLUMNNAME_M_InOutLine_ID = "M_InOutLine_ID"; + + /** Set Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID); + + /** Get Shipment/Receipt Line. + * Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID(); + + public I_M_InOutLine getM_InOutLine() throws Exception; + + /** Column name M_InventoryLine_ID */ + public static final String COLUMNNAME_M_InventoryLine_ID = "M_InventoryLine_ID"; + + /** Set Phys.Inventory Line. + * Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID); + + /** Get Phys.Inventory Line. + * Unique line in an Inventory document + */ + public int getM_InventoryLine_ID(); + + public I_M_InventoryLine getM_InventoryLine() throws Exception; + + /** Column name M_Locator_ID */ + public static final String COLUMNNAME_M_Locator_ID = "M_Locator_ID"; + + /** Set Locator. + * Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID); + + /** Get Locator. + * Warehouse Locator + */ + public int getM_Locator_ID(); + + /** Column name M_MovementLine_ID */ + public static final String COLUMNNAME_M_MovementLine_ID = "M_MovementLine_ID"; + + /** Set Move Line. + * Inventory Move document Line + */ + public void setM_MovementLine_ID (int M_MovementLine_ID); + + /** Get Move Line. + * Inventory Move document Line + */ + public int getM_MovementLine_ID(); + + public I_M_MovementLine getM_MovementLine() throws Exception; + + /** 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 I_M_Product getM_Product() throws Exception; + + /** Column name M_ProductionLine_ID */ + public static final String COLUMNNAME_M_ProductionLine_ID = "M_ProductionLine_ID"; + + /** Set Production Line. + * Document Line representing a production + */ + public void setM_ProductionLine_ID (int M_ProductionLine_ID); + + /** Get Production Line. + * Document Line representing a production + */ + public int getM_ProductionLine_ID(); + + public I_M_ProductionLine getM_ProductionLine() throws Exception; + + /** Column name M_Transaction_ID */ + public static final String COLUMNNAME_M_Transaction_ID = "M_Transaction_ID"; + + /** Set Inventory Transaction */ + public void setM_Transaction_ID (int M_Transaction_ID); + + /** Get Inventory Transaction */ + public int getM_Transaction_ID(); + + /** Column name MovementDate */ + public static final String COLUMNNAME_MovementDate = "MovementDate"; + + /** Set Movement Date. + * Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate); + + /** Get Movement Date. + * Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate(); + + /** Column name MovementQty */ + public static final String COLUMNNAME_MovementQty = "MovementQty"; + + /** Set Movement Quantity. + * Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty); + + /** Get Movement Quantity. + * Quantity of a product moved. + */ + public BigDecimal getMovementQty(); + + /** Column name MovementType */ + public static final String COLUMNNAME_MovementType = "MovementType"; + + /** Set Movement Type. + * Method of moving the inventory + */ + public void setMovementType (String MovementType); + + /** Get Movement Type. + * Method of moving the inventory + */ + public String getMovementType(); + + /** Column name PP_Order_BOMLine_ID */ + public static final String COLUMNNAME_PP_Order_BOMLine_ID = "PP_Order_BOMLine_ID"; + + /** Set PP_Order_BOMLine_ID */ + public void setPP_Order_BOMLine_ID (int PP_Order_BOMLine_ID); + + /** Get PP_Order_BOMLine_ID */ + public int getPP_Order_BOMLine_ID(); + + public org.eevolution.model.I_PP_Order_BOMLine getPP_Order_BOMLine() throws Exception; + + /** Column name PP_Order_ID */ + public static final String COLUMNNAME_PP_Order_ID = "PP_Order_ID"; + + /** Set PP_Order_ID */ + public void setPP_Order_ID (int PP_Order_ID); + + /** Get PP_Order_ID */ + public int getPP_Order_ID(); + + public org.eevolution.model.I_PP_Order getPP_Order() throws Exception; +} diff --git a/base/src/org/compiere/model/I_M_Warehouse.java b/base/src/org/compiere/model/I_M_Warehouse.java new file mode 100644 index 0000000000..12a173817b --- /dev/null +++ b/base/src/org/compiere/model/I_M_Warehouse.java @@ -0,0 +1,175 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for M_Warehouse + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_M_Warehouse +{ + + /** TableName=M_Warehouse */ + public static final String Table_Name = "M_Warehouse"; + + /** AD_Table_ID=190 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(3); + + /** Load Meta Data */ + + /** 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(); + + /** 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 IsInTransit */ + public static final String COLUMNNAME_IsInTransit = "IsInTransit"; + + /** Set In Transit. + * Movement is in transit + */ + public void setIsInTransit (boolean IsInTransit); + + /** Get In Transit. + * Movement is in transit + */ + public boolean isInTransit(); + + /** Column name M_WarehouseSource_ID */ + public static final String COLUMNNAME_M_WarehouseSource_ID = "M_WarehouseSource_ID"; + + /** Set Source Warehouse. + * Optional Warehouse to replenish from + */ + public void setM_WarehouseSource_ID (int M_WarehouseSource_ID); + + /** Get Source Warehouse. + * Optional Warehouse to replenish from + */ + public int getM_WarehouseSource_ID(); + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + /** 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 ReplenishmentClass */ + public static final String COLUMNNAME_ReplenishmentClass = "ReplenishmentClass"; + + /** Set Replenishment Class. + * Custom class to calculate Quantity to Order + */ + public void setReplenishmentClass (String ReplenishmentClass); + + /** Get Replenishment Class. + * Custom class to calculate Quantity to Order + */ + public String getReplenishmentClass(); + + /** Column name Separator */ + public static final String COLUMNNAME_Separator = "Separator"; + + /** Set Element Separator. + * Element Separator + */ + public void setSeparator (String Separator); + + /** Get Element Separator. + * Element Separator + */ + public String getSeparator(); + + /** 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(); +} diff --git a/base/src/org/compiere/model/I_S_Resource.java b/base/src/org/compiere/model/I_S_Resource.java new file mode 100644 index 0000000000..214ce1b6e0 --- /dev/null +++ b/base/src/org/compiere/model/I_S_Resource.java @@ -0,0 +1,231 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for S_Resource + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_S_Resource +{ + + /** TableName=S_Resource */ + public static final String Table_Name = "S_Resource"; + + /** AD_Table_ID=487 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(3); + + /** Load Meta Data */ + + /** 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 I_AD_User getAD_User() throws Exception; + + /** Column name ChargeableQty */ + public static final String COLUMNNAME_ChargeableQty = "ChargeableQty"; + + /** Set Chargeable Quantity */ + public void setChargeableQty (BigDecimal ChargeableQty); + + /** Get Chargeable Quantity */ + public BigDecimal getChargeableQty(); + + /** Column name DailyCapacity */ + public static final String COLUMNNAME_DailyCapacity = "DailyCapacity"; + + /** Set DailyCapacity */ + public void setDailyCapacity (BigDecimal DailyCapacity); + + /** Get DailyCapacity */ + public BigDecimal getDailyCapacity(); + + /** 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 IsAvailable */ + public static final String COLUMNNAME_IsAvailable = "IsAvailable"; + + /** Set Available. + * Resource is available + */ + public void setIsAvailable (boolean IsAvailable); + + /** Get Available. + * Resource is available + */ + public boolean isAvailable(); + + /** Column name IsManufacturingResource */ + public static final String COLUMNNAME_IsManufacturingResource = "IsManufacturingResource"; + + /** Set IsManufacturingResource */ + public void setIsManufacturingResource (boolean IsManufacturingResource); + + /** Get IsManufacturingResource */ + public boolean isManufacturingResource(); + + /** Column name M_Warehouse_ID */ + public static final String COLUMNNAME_M_Warehouse_ID = "M_Warehouse_ID"; + + /** Set Warehouse. + * Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID); + + /** Get Warehouse. + * Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID(); + + public I_M_Warehouse getM_Warehouse() throws Exception; + + /** Column name ManufacturingResourceType */ + public static final String COLUMNNAME_ManufacturingResourceType = "ManufacturingResourceType"; + + /** Set ManufacturingResourceType */ + public void setManufacturingResourceType (String ManufacturingResourceType); + + /** Get ManufacturingResourceType */ + public String getManufacturingResourceType(); + + /** 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 PercentUtilization */ + public static final String COLUMNNAME_PercentUtilization = "PercentUtilization"; + + /** Set PercentUtilization */ + public void setPercentUtilization (BigDecimal PercentUtilization); + + /** Get PercentUtilization */ + public BigDecimal getPercentUtilization(); + + /** Column name QueuingTime */ + public static final String COLUMNNAME_QueuingTime = "QueuingTime"; + + /** Set QueuingTime */ + public void setQueuingTime (BigDecimal QueuingTime); + + /** Get QueuingTime */ + public BigDecimal getQueuingTime(); + + /** Column name S_ResourceType_ID */ + public static final String COLUMNNAME_S_ResourceType_ID = "S_ResourceType_ID"; + + /** Set Resource Type */ + public void setS_ResourceType_ID (int S_ResourceType_ID); + + /** Get Resource Type */ + public int getS_ResourceType_ID(); + + public I_S_ResourceType getS_ResourceType() throws Exception; + + /** Column name S_Resource_ID */ + public static final String COLUMNNAME_S_Resource_ID = "S_Resource_ID"; + + /** Set Resource. + * Resource + */ + public void setS_Resource_ID (int S_Resource_ID); + + /** Get Resource. + * Resource + */ + public int getS_Resource_ID(); + + /** 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(); + + /** Column name WaitingTime */ + public static final String COLUMNNAME_WaitingTime = "WaitingTime"; + + /** Set Waiting Time. + * Workflow Simulation Waiting time + */ + public void setWaitingTime (BigDecimal WaitingTime); + + /** Get Waiting Time. + * Workflow Simulation Waiting time + */ + public BigDecimal getWaitingTime(); +} diff --git a/base/src/org/compiere/model/I_T_Aging.java b/base/src/org/compiere/model/I_T_Aging.java new file mode 100644 index 0000000000..74f386003d --- /dev/null +++ b/base/src/org/compiere/model/I_T_Aging.java @@ -0,0 +1,482 @@ +/********************************************************************** + * This file is part of Adempiere ERP Bazaar * + * http://www.adempiere.org * + * * + * Copyright (C) Trifon Trifonov. * + * Copyright (C) Contributors * + * * + * This program is free software; + you can redistribute it and/or * + * modify it under the terms of the GNU General Public License * + * as published by the Free Software Foundation; + either version 2 * + * of the License, or (at your option) any later version. * + * * + * 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., 51 Franklin Street, Fifth Floor, Boston, * + * MA 02110-1301, USA. * + * * + * Contributors: * + * - Trifon Trifonov (trifonnt@users.sourceforge.net) * + * * + * Sponsors: * + * - Company (http://www.site.com) * + **********************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for T_Aging + * @author Trifon Trifonov (generated) + * @version Release 3.5.1a + */ +public interface I_T_Aging +{ + + /** TableName=T_Aging */ + public static final String Table_Name = "T_Aging"; + + /** AD_Table_ID=631 */ + public static final int Table_ID = MTable.getTable_ID(Table_Name); + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(3); + + /** Load Meta Data */ + + /** Column name AD_PInstance_ID */ + public static final String COLUMNNAME_AD_PInstance_ID = "AD_PInstance_ID"; + + /** Set Process Instance. + * Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID); + + /** Get Process Instance. + * Instance of the process + */ + public int getAD_PInstance_ID(); + + public I_AD_PInstance getAD_PInstance() throws Exception; + + /** Column name C_Activity_ID */ + public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID"; + + /** Set Activity. + * Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID); + + /** Get Activity. + * Business Activity + */ + public int getC_Activity_ID(); + + public I_C_Activity getC_Activity() throws Exception; + + /** Column name C_BP_Group_ID */ + public static final String COLUMNNAME_C_BP_Group_ID = "C_BP_Group_ID"; + + /** Set Business Partner Group. + * Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID); + + /** Get Business Partner Group. + * Business Partner Group + */ + public int getC_BP_Group_ID(); + + public I_C_BP_Group getC_BP_Group() throws Exception; + + /** 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 I_C_BPartner getC_BPartner() throws Exception; + + /** 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 I_C_Campaign getC_Campaign() throws Exception; + + /** 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 I_C_Currency getC_Currency() throws Exception; + + /** Column name C_InvoicePaySchedule_ID */ + public static final String COLUMNNAME_C_InvoicePaySchedule_ID = "C_InvoicePaySchedule_ID"; + + /** Set Invoice Payment Schedule. + * Invoice Payment Schedule + */ + public void setC_InvoicePaySchedule_ID (int C_InvoicePaySchedule_ID); + + /** Get Invoice Payment Schedule. + * Invoice Payment Schedule + */ + public int getC_InvoicePaySchedule_ID(); + + public I_C_InvoicePaySchedule getC_InvoicePaySchedule() throws Exception; + + /** Column name C_Invoice_ID */ + public static final String COLUMNNAME_C_Invoice_ID = "C_Invoice_ID"; + + /** Set Invoice. + * Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID); + + /** Get Invoice. + * Invoice Identifier + */ + public int getC_Invoice_ID(); + + public I_C_Invoice getC_Invoice() throws Exception; + + /** Column name C_Project_ID */ + public static final String COLUMNNAME_C_Project_ID = "C_Project_ID"; + + /** Set Project. + * Financial Project + */ + public void setC_Project_ID (int C_Project_ID); + + /** Get Project. + * Financial Project + */ + public int getC_Project_ID(); + + public I_C_Project getC_Project() throws Exception; + + /** Column name DateAcct */ + public static final String COLUMNNAME_DateAcct = "DateAcct"; + + /** Set Account Date. + * Accounting Date + */ + public void setDateAcct (boolean DateAcct); + + /** Get Account Date. + * Accounting Date + */ + public boolean isDateAcct(); + + /** Column name DaysDue */ + public static final String COLUMNNAME_DaysDue = "DaysDue"; + + /** Set Days due. + * Number of days due (negative: due in number of days) + */ + public void setDaysDue (int DaysDue); + + /** Get Days due. + * Number of days due (negative: due in number of days) + */ + public int getDaysDue(); + + /** Column name Due0 */ + public static final String COLUMNNAME_Due0 = "Due0"; + + /** Set Due Today */ + public void setDue0 (BigDecimal Due0); + + /** Get Due Today */ + public BigDecimal getDue0(); + + /** Column name Due0_30 */ + public static final String COLUMNNAME_Due0_30 = "Due0_30"; + + /** Set Due Today-30 */ + public void setDue0_30 (BigDecimal Due0_30); + + /** Get Due Today-30 */ + public BigDecimal getDue0_30(); + + /** Column name Due0_7 */ + public static final String COLUMNNAME_Due0_7 = "Due0_7"; + + /** Set Due Today-7 */ + public void setDue0_7 (BigDecimal Due0_7); + + /** Get Due Today-7 */ + public BigDecimal getDue0_7(); + + /** Column name Due1_7 */ + public static final String COLUMNNAME_Due1_7 = "Due1_7"; + + /** Set Due 1-7 */ + public void setDue1_7 (BigDecimal Due1_7); + + /** Get Due 1-7 */ + public BigDecimal getDue1_7(); + + /** Column name Due31_60 */ + public static final String COLUMNNAME_Due31_60 = "Due31_60"; + + /** Set Due 31-60 */ + public void setDue31_60 (BigDecimal Due31_60); + + /** Get Due 31-60 */ + public BigDecimal getDue31_60(); + + /** Column name Due31_Plus */ + public static final String COLUMNNAME_Due31_Plus = "Due31_Plus"; + + /** Set Due > 31 */ + public void setDue31_Plus (BigDecimal Due31_Plus); + + /** Get Due > 31 */ + public BigDecimal getDue31_Plus(); + + /** Column name Due61_90 */ + public static final String COLUMNNAME_Due61_90 = "Due61_90"; + + /** Set Due 61-90 */ + public void setDue61_90 (BigDecimal Due61_90); + + /** Get Due 61-90 */ + public BigDecimal getDue61_90(); + + /** Column name Due61_Plus */ + public static final String COLUMNNAME_Due61_Plus = "Due61_Plus"; + + /** Set Due > 61 */ + public void setDue61_Plus (BigDecimal Due61_Plus); + + /** Get Due > 61 */ + public BigDecimal getDue61_Plus(); + + /** Column name Due8_30 */ + public static final String COLUMNNAME_Due8_30 = "Due8_30"; + + /** Set Due 8-30 */ + public void setDue8_30 (BigDecimal Due8_30); + + /** Get Due 8-30 */ + public BigDecimal getDue8_30(); + + /** Column name Due91_Plus */ + public static final String COLUMNNAME_Due91_Plus = "Due91_Plus"; + + /** Set Due > 91 */ + public void setDue91_Plus (BigDecimal Due91_Plus); + + /** Get Due > 91 */ + public BigDecimal getDue91_Plus(); + + /** Column name DueAmt */ + public static final String COLUMNNAME_DueAmt = "DueAmt"; + + /** Set Amount due. + * Amount of the payment due + */ + public void setDueAmt (BigDecimal DueAmt); + + /** Get Amount due. + * Amount of the payment due + */ + public BigDecimal getDueAmt(); + + /** Column name DueDate */ + public static final String COLUMNNAME_DueDate = "DueDate"; + + /** Set Due Date. + * Date when the payment is due + */ + public void setDueDate (Timestamp DueDate); + + /** Get Due Date. + * Date when the payment is due + */ + public Timestamp getDueDate(); + + /** Column name InvoicedAmt */ + public static final String COLUMNNAME_InvoicedAmt = "InvoicedAmt"; + + /** Set Invoiced Amount. + * The amount invoiced + */ + public void setInvoicedAmt (BigDecimal InvoicedAmt); + + /** Get Invoiced Amount. + * The amount invoiced + */ + public BigDecimal getInvoicedAmt(); + + /** Column name IsListInvoices */ + public static final String COLUMNNAME_IsListInvoices = "IsListInvoices"; + + /** Set List Invoices. + * Include List of Invoices + */ + public void setIsListInvoices (boolean IsListInvoices); + + /** Get List Invoices. + * Include List of Invoices + */ + public boolean isListInvoices(); + + /** Column name IsSOTrx */ + public static final String COLUMNNAME_IsSOTrx = "IsSOTrx"; + + /** Set Sales Transaction. + * This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx); + + /** Get Sales Transaction. + * This is a Sales Transaction + */ + public boolean isSOTrx(); + + /** Column name OpenAmt */ + public static final String COLUMNNAME_OpenAmt = "OpenAmt"; + + /** Set Open Amount. + * Open item amount + */ + public void setOpenAmt (BigDecimal OpenAmt); + + /** Get Open Amount. + * Open item amount + */ + public BigDecimal getOpenAmt(); + + /** Column name PastDue1_30 */ + public static final String COLUMNNAME_PastDue1_30 = "PastDue1_30"; + + /** Set Past Due 1-30 */ + public void setPastDue1_30 (BigDecimal PastDue1_30); + + /** Get Past Due 1-30 */ + public BigDecimal getPastDue1_30(); + + /** Column name PastDue1_7 */ + public static final String COLUMNNAME_PastDue1_7 = "PastDue1_7"; + + /** Set Past Due 1-7 */ + public void setPastDue1_7 (BigDecimal PastDue1_7); + + /** Get Past Due 1-7 */ + public BigDecimal getPastDue1_7(); + + /** Column name PastDue31_60 */ + public static final String COLUMNNAME_PastDue31_60 = "PastDue31_60"; + + /** Set Past Due 31-60 */ + public void setPastDue31_60 (BigDecimal PastDue31_60); + + /** Get Past Due 31-60 */ + public BigDecimal getPastDue31_60(); + + /** Column name PastDue31_Plus */ + public static final String COLUMNNAME_PastDue31_Plus = "PastDue31_Plus"; + + /** Set Past Due > 31 */ + public void setPastDue31_Plus (BigDecimal PastDue31_Plus); + + /** Get Past Due > 31 */ + public BigDecimal getPastDue31_Plus(); + + /** Column name PastDue61_90 */ + public static final String COLUMNNAME_PastDue61_90 = "PastDue61_90"; + + /** Set Past Due 61-90 */ + public void setPastDue61_90 (BigDecimal PastDue61_90); + + /** Get Past Due 61-90 */ + public BigDecimal getPastDue61_90(); + + /** Column name PastDue61_Plus */ + public static final String COLUMNNAME_PastDue61_Plus = "PastDue61_Plus"; + + /** Set Past Due > 61 */ + public void setPastDue61_Plus (BigDecimal PastDue61_Plus); + + /** Get Past Due > 61 */ + public BigDecimal getPastDue61_Plus(); + + /** Column name PastDue8_30 */ + public static final String COLUMNNAME_PastDue8_30 = "PastDue8_30"; + + /** Set Past Due 8-30 */ + public void setPastDue8_30 (BigDecimal PastDue8_30); + + /** Get Past Due 8-30 */ + public BigDecimal getPastDue8_30(); + + /** Column name PastDue91_Plus */ + public static final String COLUMNNAME_PastDue91_Plus = "PastDue91_Plus"; + + /** Set Past Due > 91 */ + public void setPastDue91_Plus (BigDecimal PastDue91_Plus); + + /** Get Past Due > 91 */ + public BigDecimal getPastDue91_Plus(); + + /** Column name PastDueAmt */ + public static final String COLUMNNAME_PastDueAmt = "PastDueAmt"; + + /** Set Past Due */ + public void setPastDueAmt (BigDecimal PastDueAmt); + + /** Get Past Due */ + public BigDecimal getPastDueAmt(); + + /** Column name StatementDate */ + public static final String COLUMNNAME_StatementDate = "StatementDate"; + + /** Set Statement date. + * Date of the statement + */ + public void setStatementDate (Timestamp StatementDate); + + /** Get Statement date. + * Date of the statement + */ + public Timestamp getStatementDate(); +} diff --git a/base/src/org/compiere/model/X_AD_Client.java b/base/src/org/compiere/model/X_AD_Client.java new file mode 100644 index 0000000000..e2296f0902 --- /dev/null +++ b/base/src/org/compiere/model/X_AD_Client.java @@ -0,0 +1,773 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.sql.ResultSet; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.KeyNamePair; + +/** Generated Model for AD_Client + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_AD_Client extends PO implements I_AD_Client, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Client (Properties ctx, int AD_Client_ID, String trxName) + { + super (ctx, AD_Client_ID, trxName); + /** if (AD_Client_ID == 0) + { + setAutoArchive (null); +// N + setIsCostImmediate (false); +// N + setIsMultiLingualDocument (false); + setIsPostImmediate (false); +// N + setIsServerEMail (false); + setIsSmtpAuthorization (false); +// N + setIsUseASP (false); +// N + setIsUseBetaFunctions (true); +// Y + setMMPolicy (null); +// F + setName (null); + setStoreArchiveOnFileSystem (false); + setStoreAttachmentsOnFileSystem (false); + setValue (null); + } */ + } + + /** Load Constructor */ + public X_AD_Client (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + 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_AD_Client[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** AD_Language AD_Reference_ID=327 */ + public static final int AD_LANGUAGE_AD_Reference_ID=327; + /** Set Language. + @param AD_Language + Language for this entity + */ + public void setAD_Language (String AD_Language) + { + + if (AD_Language != null && AD_Language.length() > 6) + { + log.warning("Length > 6 - truncated"); + AD_Language = AD_Language.substring(0, 6); + } + set_Value (COLUMNNAME_AD_Language, AD_Language); + } + + /** Get Language. + @return Language for this entity + */ + public String getAD_Language () + { + return (String)get_Value(COLUMNNAME_AD_Language); + } + + public I_AD_ReplicationStrategy getAD_ReplicationStrategy() throws Exception + { + Class clazz = MTable.getClass(I_AD_ReplicationStrategy.Table_Name); + I_AD_ReplicationStrategy result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_ReplicationStrategy)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_ReplicationStrategy_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Replication Strategy. + @param AD_ReplicationStrategy_ID + Data Replication Strategy + */ + public void setAD_ReplicationStrategy_ID (int AD_ReplicationStrategy_ID) + { + if (AD_ReplicationStrategy_ID < 1) + set_Value (COLUMNNAME_AD_ReplicationStrategy_ID, null); + else + set_Value (COLUMNNAME_AD_ReplicationStrategy_ID, Integer.valueOf(AD_ReplicationStrategy_ID)); + } + + /** Get Replication Strategy. + @return Data Replication Strategy + */ + public int getAD_ReplicationStrategy_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ReplicationStrategy_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** AutoArchive AD_Reference_ID=334 */ + public static final int AUTOARCHIVE_AD_Reference_ID=334; + /** None = N */ + public static final String AUTOARCHIVE_None = "N"; + /** All (Reports, Documents) = 1 */ + public static final String AUTOARCHIVE_AllReportsDocuments = "1"; + /** Documents = 2 */ + public static final String AUTOARCHIVE_Documents = "2"; + /** External Documents = 3 */ + public static final String AUTOARCHIVE_ExternalDocuments = "3"; + /** Set Auto Archive. + @param AutoArchive + Enable and level of automatic Archive of documents + */ + public void setAutoArchive (String AutoArchive) + { + if (AutoArchive == null) throw new IllegalArgumentException ("AutoArchive is mandatory"); + if (AutoArchive.equals("N") || AutoArchive.equals("1") || AutoArchive.equals("2") || AutoArchive.equals("3")); else throw new IllegalArgumentException ("AutoArchive Invalid value - " + AutoArchive + " - Reference_ID=334 - N - 1 - 2 - 3"); + if (AutoArchive.length() > 1) + { + log.warning("Length > 1 - truncated"); + AutoArchive = AutoArchive.substring(0, 1); + } + set_Value (COLUMNNAME_AutoArchive, AutoArchive); + } + + /** Get Auto Archive. + @return Enable and level of automatic Archive of documents + */ + public String getAutoArchive () + { + return (String)get_Value(COLUMNNAME_AutoArchive); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + 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 Directory. + @param DocumentDir + Directory for documents from the application server + */ + public void setDocumentDir (String DocumentDir) + { + + if (DocumentDir != null && DocumentDir.length() > 60) + { + log.warning("Length > 60 - truncated"); + DocumentDir = DocumentDir.substring(0, 60); + } + set_Value (COLUMNNAME_DocumentDir, DocumentDir); + } + + /** Get Document Directory. + @return Directory for documents from the application server + */ + public String getDocumentDir () + { + return (String)get_Value(COLUMNNAME_DocumentDir); + } + + /** Set EMail Test. + @param EMailTest + Test EMail + */ + public void setEMailTest (String EMailTest) + { + + if (EMailTest != null && EMailTest.length() > 1) + { + log.warning("Length > 1 - truncated"); + EMailTest = EMailTest.substring(0, 1); + } + set_Value (COLUMNNAME_EMailTest, EMailTest); + } + + /** Get EMail Test. + @return Test EMail + */ + public String getEMailTest () + { + return (String)get_Value(COLUMNNAME_EMailTest); + } + + /** Set Cost Immediately. + @param IsCostImmediate + Update Costs immediately for testing + */ + public void setIsCostImmediate (boolean IsCostImmediate) + { + set_Value (COLUMNNAME_IsCostImmediate, Boolean.valueOf(IsCostImmediate)); + } + + /** Get Cost Immediately. + @return Update Costs immediately for testing + */ + public boolean isCostImmediate () + { + Object oo = get_Value(COLUMNNAME_IsCostImmediate); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Multi Lingual Documents. + @param IsMultiLingualDocument + Documents are Multi Lingual + */ + public void setIsMultiLingualDocument (boolean IsMultiLingualDocument) + { + set_Value (COLUMNNAME_IsMultiLingualDocument, Boolean.valueOf(IsMultiLingualDocument)); + } + + /** Get Multi Lingual Documents. + @return Documents are Multi Lingual + */ + public boolean isMultiLingualDocument () + { + Object oo = get_Value(COLUMNNAME_IsMultiLingualDocument); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Post Immediately. + @param IsPostImmediate + Post the accounting immediately for testing + */ + public void setIsPostImmediate (boolean IsPostImmediate) + { + set_Value (COLUMNNAME_IsPostImmediate, Boolean.valueOf(IsPostImmediate)); + } + + /** Get Post Immediately. + @return Post the accounting immediately for testing + */ + public boolean isPostImmediate () + { + Object oo = get_Value(COLUMNNAME_IsPostImmediate); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Server EMail. + @param IsServerEMail + Send EMail from Server + */ + public void setIsServerEMail (boolean IsServerEMail) + { + set_Value (COLUMNNAME_IsServerEMail, Boolean.valueOf(IsServerEMail)); + } + + /** Get Server EMail. + @return Send EMail from Server + */ + public boolean isServerEMail () + { + Object oo = get_Value(COLUMNNAME_IsServerEMail); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set SMTP Authentication. + @param IsSmtpAuthorization + Your mail server requires Authentication + */ + public void setIsSmtpAuthorization (boolean IsSmtpAuthorization) + { + set_Value (COLUMNNAME_IsSmtpAuthorization, Boolean.valueOf(IsSmtpAuthorization)); + } + + /** Get SMTP Authentication. + @return Your mail server requires Authentication + */ + public boolean isSmtpAuthorization () + { + Object oo = get_Value(COLUMNNAME_IsSmtpAuthorization); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set IsUseASP. + @param IsUseASP IsUseASP */ + public void setIsUseASP (boolean IsUseASP) + { + set_Value (COLUMNNAME_IsUseASP, Boolean.valueOf(IsUseASP)); + } + + /** Get IsUseASP. + @return IsUseASP */ + public boolean isUseASP () + { + Object oo = get_Value(COLUMNNAME_IsUseASP); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Use Beta Functions. + @param IsUseBetaFunctions + Enable the use of Beta Functionality + */ + public void setIsUseBetaFunctions (boolean IsUseBetaFunctions) + { + set_Value (COLUMNNAME_IsUseBetaFunctions, Boolean.valueOf(IsUseBetaFunctions)); + } + + /** Get Use Beta Functions. + @return Enable the use of Beta Functionality + */ + public boolean isUseBetaFunctions () + { + Object oo = get_Value(COLUMNNAME_IsUseBetaFunctions); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** MMPolicy AD_Reference_ID=335 */ + public static final int MMPOLICY_AD_Reference_ID=335; + /** LiFo = L */ + public static final String MMPOLICY_LiFo = "L"; + /** FiFo = F */ + public static final String MMPOLICY_FiFo = "F"; + /** Set Material Policy. + @param MMPolicy + Material Movement Policy + */ + public void setMMPolicy (String MMPolicy) + { + if (MMPolicy == null) throw new IllegalArgumentException ("MMPolicy is mandatory"); + if (MMPolicy.equals("L") || MMPolicy.equals("F")); else throw new IllegalArgumentException ("MMPolicy Invalid value - " + MMPolicy + " - Reference_ID=335 - L - F"); + if (MMPolicy.length() > 1) + { + log.warning("Length > 1 - truncated"); + MMPolicy = MMPolicy.substring(0, 1); + } + set_Value (COLUMNNAME_MMPolicy, MMPolicy); + } + + /** Get Material Policy. + @return Material Movement Policy + */ + public String getMMPolicy () + { + return (String)get_Value(COLUMNNAME_MMPolicy); + } + + /** Set Model Validation Classes. + @param ModelValidationClasses + List of data model validation classes separated by ; + */ + public void setModelValidationClasses (String ModelValidationClasses) + { + + if (ModelValidationClasses != null && ModelValidationClasses.length() > 255) + { + log.warning("Length > 255 - truncated"); + ModelValidationClasses = ModelValidationClasses.substring(0, 255); + } + set_Value (COLUMNNAME_ModelValidationClasses, ModelValidationClasses); + } + + /** Get Model Validation Classes. + @return List of data model validation classes separated by ; + */ + public String getModelValidationClasses () + { + return (String)get_Value(COLUMNNAME_ModelValidationClasses); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 60); + } + 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 Request EMail. + @param RequestEMail + EMail address to send automated mails from or receive mails for automated processing (fully qualified) + */ + public void setRequestEMail (String RequestEMail) + { + + if (RequestEMail != null && RequestEMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + RequestEMail = RequestEMail.substring(0, 60); + } + set_Value (COLUMNNAME_RequestEMail, RequestEMail); + } + + /** Get Request EMail. + @return EMail address to send automated mails from or receive mails for automated processing (fully qualified) + */ + public String getRequestEMail () + { + return (String)get_Value(COLUMNNAME_RequestEMail); + } + + /** Set Request Folder. + @param RequestFolder + EMail folder to process incoming emails; if empty INBOX is used + */ + public void setRequestFolder (String RequestFolder) + { + + if (RequestFolder != null && RequestFolder.length() > 20) + { + log.warning("Length > 20 - truncated"); + RequestFolder = RequestFolder.substring(0, 20); + } + set_Value (COLUMNNAME_RequestFolder, RequestFolder); + } + + /** Get Request Folder. + @return EMail folder to process incoming emails; if empty INBOX is used + */ + public String getRequestFolder () + { + return (String)get_Value(COLUMNNAME_RequestFolder); + } + + /** Set Request User. + @param RequestUser + User Name (ID) of the email owner + */ + public void setRequestUser (String RequestUser) + { + + if (RequestUser != null && RequestUser.length() > 60) + { + log.warning("Length > 60 - truncated"); + RequestUser = RequestUser.substring(0, 60); + } + set_Value (COLUMNNAME_RequestUser, RequestUser); + } + + /** Get Request User. + @return User Name (ID) of the email owner + */ + public String getRequestUser () + { + return (String)get_Value(COLUMNNAME_RequestUser); + } + + /** Set Request User Password. + @param RequestUserPW + Password of the user name (ID) for mail processing + */ + public void setRequestUserPW (String RequestUserPW) + { + + if (RequestUserPW != null && RequestUserPW.length() > 20) + { + log.warning("Length > 20 - truncated"); + RequestUserPW = RequestUserPW.substring(0, 20); + } + set_Value (COLUMNNAME_RequestUserPW, RequestUserPW); + } + + /** Get Request User Password. + @return Password of the user name (ID) for mail processing + */ + public String getRequestUserPW () + { + return (String)get_Value(COLUMNNAME_RequestUserPW); + } + + /** Set Mail Host. + @param SMTPHost + Hostname of Mail Server for SMTP and IMAP + */ + public void setSMTPHost (String SMTPHost) + { + + if (SMTPHost != null && SMTPHost.length() > 60) + { + log.warning("Length > 60 - truncated"); + SMTPHost = SMTPHost.substring(0, 60); + } + set_Value (COLUMNNAME_SMTPHost, SMTPHost); + } + + /** Get Mail Host. + @return Hostname of Mail Server for SMTP and IMAP + */ + public String getSMTPHost () + { + return (String)get_Value(COLUMNNAME_SMTPHost); + } + + /** Set Store Archive On File System. + @param StoreArchiveOnFileSystem Store Archive On File System */ + public void setStoreArchiveOnFileSystem (boolean StoreArchiveOnFileSystem) + { + set_Value (COLUMNNAME_StoreArchiveOnFileSystem, Boolean.valueOf(StoreArchiveOnFileSystem)); + } + + /** Get Store Archive On File System. + @return Store Archive On File System */ + public boolean isStoreArchiveOnFileSystem () + { + Object oo = get_Value(COLUMNNAME_StoreArchiveOnFileSystem); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Store Attachments On File System. + @param StoreAttachmentsOnFileSystem Store Attachments On File System */ + public void setStoreAttachmentsOnFileSystem (boolean StoreAttachmentsOnFileSystem) + { + set_Value (COLUMNNAME_StoreAttachmentsOnFileSystem, Boolean.valueOf(StoreAttachmentsOnFileSystem)); + } + + /** Get Store Attachments On File System. + @return Store Attachments On File System */ + public boolean isStoreAttachmentsOnFileSystem () + { + Object oo = get_Value(COLUMNNAME_StoreAttachmentsOnFileSystem); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Unix Archive Path. + @param UnixArchivePath Unix Archive Path */ + public void setUnixArchivePath (String UnixArchivePath) + { + + if (UnixArchivePath != null && UnixArchivePath.length() > 255) + { + log.warning("Length > 255 - truncated"); + UnixArchivePath = UnixArchivePath.substring(0, 255); + } + set_Value (COLUMNNAME_UnixArchivePath, UnixArchivePath); + } + + /** Get Unix Archive Path. + @return Unix Archive Path */ + public String getUnixArchivePath () + { + return (String)get_Value(COLUMNNAME_UnixArchivePath); + } + + /** Set Unix Attachment Path. + @param UnixAttachmentPath Unix Attachment Path */ + public void setUnixAttachmentPath (String UnixAttachmentPath) + { + + if (UnixAttachmentPath != null && UnixAttachmentPath.length() > 255) + { + log.warning("Length > 255 - truncated"); + UnixAttachmentPath = UnixAttachmentPath.substring(0, 255); + } + set_Value (COLUMNNAME_UnixAttachmentPath, UnixAttachmentPath); + } + + /** Get Unix Attachment Path. + @return Unix Attachment Path */ + public String getUnixAttachmentPath () + { + return (String)get_Value(COLUMNNAME_UnixAttachmentPath); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 40); + } + 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); + } + + /** Set Windows Archive Path. + @param WindowsArchivePath Windows Archive Path */ + public void setWindowsArchivePath (String WindowsArchivePath) + { + + if (WindowsArchivePath != null && WindowsArchivePath.length() > 255) + { + log.warning("Length > 255 - truncated"); + WindowsArchivePath = WindowsArchivePath.substring(0, 255); + } + set_Value (COLUMNNAME_WindowsArchivePath, WindowsArchivePath); + } + + /** Get Windows Archive Path. + @return Windows Archive Path */ + public String getWindowsArchivePath () + { + return (String)get_Value(COLUMNNAME_WindowsArchivePath); + } + + /** Set Windows Attachment Path. + @param WindowsAttachmentPath Windows Attachment Path */ + public void setWindowsAttachmentPath (String WindowsAttachmentPath) + { + + if (WindowsAttachmentPath != null && WindowsAttachmentPath.length() > 255) + { + log.warning("Length > 255 - truncated"); + WindowsAttachmentPath = WindowsAttachmentPath.substring(0, 255); + } + set_Value (COLUMNNAME_WindowsAttachmentPath, WindowsAttachmentPath); + } + + /** Get Windows Attachment Path. + @return Windows Attachment Path */ + public String getWindowsAttachmentPath () + { + return (String)get_Value(COLUMNNAME_WindowsAttachmentPath); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_ReplicationStrategy.java b/base/src/org/compiere/model/X_AD_ReplicationStrategy.java new file mode 100644 index 0000000000..b1e0ddadfc --- /dev/null +++ b/base/src/org/compiere/model/X_AD_ReplicationStrategy.java @@ -0,0 +1,239 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.sql.ResultSet; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.KeyNamePair; + +/** Generated Model for AD_ReplicationStrategy + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_AD_ReplicationStrategy extends PO implements I_AD_ReplicationStrategy, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_ReplicationStrategy (Properties ctx, int AD_ReplicationStrategy_ID, String trxName) + { + super (ctx, AD_ReplicationStrategy_ID, trxName); + /** if (AD_ReplicationStrategy_ID == 0) + { + setAD_ReplicationStrategy_ID (0); + setEntityType (null); +// U + setName (null); + } */ + } + + /** Load Constructor */ + public X_AD_ReplicationStrategy (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + 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_AD_ReplicationStrategy[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Replication Strategy. + @param AD_ReplicationStrategy_ID + Data Replication Strategy + */ + public void setAD_ReplicationStrategy_ID (int AD_ReplicationStrategy_ID) + { + if (AD_ReplicationStrategy_ID < 1) + throw new IllegalArgumentException ("AD_ReplicationStrategy_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_ReplicationStrategy_ID, Integer.valueOf(AD_ReplicationStrategy_ID)); + } + + /** Get Replication Strategy. + @return Data Replication Strategy + */ + public int getAD_ReplicationStrategy_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ReplicationStrategy_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + public org.eevolution.model.I_EXP_Processor getEXP_Processor() throws Exception + { + Class clazz = MTable.getClass(org.eevolution.model.I_EXP_Processor.Table_Name); + org.eevolution.model.I_EXP_Processor result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (org.eevolution.model.I_EXP_Processor)constructor.newInstance(new Object[] {getCtx(), new Integer(getEXP_Processor_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set EXP_Processor_ID. + @param EXP_Processor_ID EXP_Processor_ID */ + public void setEXP_Processor_ID (int EXP_Processor_ID) + { + if (EXP_Processor_ID < 1) + set_Value (COLUMNNAME_EXP_Processor_ID, null); + else + set_Value (COLUMNNAME_EXP_Processor_ID, Integer.valueOf(EXP_Processor_ID)); + } + + /** Get EXP_Processor_ID. + @return EXP_Processor_ID */ + public int getEXP_Processor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_EXP_Processor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** EntityType AD_Reference_ID=389 */ + public static final int ENTITYTYPE_AD_Reference_ID=389; + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + + if (EntityType.length() > 40) + { + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 2000); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 60); + } + 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()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Role.java b/base/src/org/compiere/model/X_AD_Role.java new file mode 100644 index 0000000000..374d40da0a --- /dev/null +++ b/base/src/org/compiere/model/X_AD_Role.java @@ -0,0 +1,1013 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for AD_Role + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_AD_Role extends PO implements I_AD_Role, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Role (Properties ctx, int AD_Role_ID, String trxName) + { + super (ctx, AD_Role_ID, trxName); + /** if (AD_Role_ID == 0) + { + setAD_Role_ID (0); + setConfirmQueryRecords (0); +// 0 + setIsAccessAllOrgs (false); +// N + setIsCanApproveOwnDoc (false); + setIsCanExport (true); +// Y + setIsCanReport (true); +// Y + setIsChangeLog (false); +// N + setIsManual (false); + setIsPersonalAccess (false); +// N + setIsPersonalLock (false); +// N + setIsShowAcct (false); +// N + setIsUseUserOrgAccess (false); +// N + setMaxQueryRecords (0); +// 0 + setName (null); + setOverwritePriceLimit (false); +// N + setPreferenceType (null); +// O + setUserLevel (null); +// O + } */ + } + + /** Load Constructor */ + public X_AD_Role (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + 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_AD_Role[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID < 0) + throw new IllegalArgumentException ("AD_Role_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** AD_Tree_Menu_ID AD_Reference_ID=184 */ + public static final int AD_TREE_MENU_ID_AD_Reference_ID=184; + /** Set Menu Tree. + @param AD_Tree_Menu_ID + Tree of the menu + */ + public void setAD_Tree_Menu_ID (int AD_Tree_Menu_ID) + { + if (AD_Tree_Menu_ID < 1) + set_Value (COLUMNNAME_AD_Tree_Menu_ID, null); + else + set_Value (COLUMNNAME_AD_Tree_Menu_ID, Integer.valueOf(AD_Tree_Menu_ID)); + } + + /** Get Menu Tree. + @return Tree of the menu + */ + public int getAD_Tree_Menu_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Menu_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** AD_Tree_Org_ID AD_Reference_ID=184 */ + public static final int AD_TREE_ORG_ID_AD_Reference_ID=184; + /** Set Organization Tree. + @param AD_Tree_Org_ID + Tree to determine organizational hierarchy + */ + public void setAD_Tree_Org_ID (int AD_Tree_Org_ID) + { + if (AD_Tree_Org_ID < 1) + set_Value (COLUMNNAME_AD_Tree_Org_ID, null); + else + set_Value (COLUMNNAME_AD_Tree_Org_ID, Integer.valueOf(AD_Tree_Org_ID)); + } + + /** Get Organization Tree. + @return Tree to determine organizational hierarchy + */ + public int getAD_Tree_Org_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Org_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Allow Info Account. + @param Allow_Info_Account Allow Info Account */ + public void setAllow_Info_Account (boolean Allow_Info_Account) + { + set_Value (COLUMNNAME_Allow_Info_Account, Boolean.valueOf(Allow_Info_Account)); + } + + /** Get Allow Info Account. + @return Allow Info Account */ + public boolean isAllow_Info_Account () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_Account); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info Asset. + @param Allow_Info_Asset Allow Info Asset */ + public void setAllow_Info_Asset (boolean Allow_Info_Asset) + { + set_Value (COLUMNNAME_Allow_Info_Asset, Boolean.valueOf(Allow_Info_Asset)); + } + + /** Get Allow Info Asset. + @return Allow Info Asset */ + public boolean isAllow_Info_Asset () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_Asset); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info BPartner. + @param Allow_Info_BPartner Allow Info BPartner */ + public void setAllow_Info_BPartner (boolean Allow_Info_BPartner) + { + set_Value (COLUMNNAME_Allow_Info_BPartner, Boolean.valueOf(Allow_Info_BPartner)); + } + + /** Get Allow Info BPartner. + @return Allow Info BPartner */ + public boolean isAllow_Info_BPartner () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_BPartner); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info CRP. + @param Allow_Info_CRP Allow Info CRP */ + public void setAllow_Info_CRP (boolean Allow_Info_CRP) + { + set_Value (COLUMNNAME_Allow_Info_CRP, Boolean.valueOf(Allow_Info_CRP)); + } + + /** Get Allow Info CRP. + @return Allow Info CRP */ + public boolean isAllow_Info_CRP () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_CRP); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info CashJournal. + @param Allow_Info_CashJournal Allow Info CashJournal */ + public void setAllow_Info_CashJournal (boolean Allow_Info_CashJournal) + { + set_Value (COLUMNNAME_Allow_Info_CashJournal, Boolean.valueOf(Allow_Info_CashJournal)); + } + + /** Get Allow Info CashJournal. + @return Allow Info CashJournal */ + public boolean isAllow_Info_CashJournal () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_CashJournal); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info InOut. + @param Allow_Info_InOut Allow Info InOut */ + public void setAllow_Info_InOut (boolean Allow_Info_InOut) + { + set_Value (COLUMNNAME_Allow_Info_InOut, Boolean.valueOf(Allow_Info_InOut)); + } + + /** Get Allow Info InOut. + @return Allow Info InOut */ + public boolean isAllow_Info_InOut () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_InOut); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info Invoice. + @param Allow_Info_Invoice Allow Info Invoice */ + public void setAllow_Info_Invoice (boolean Allow_Info_Invoice) + { + set_Value (COLUMNNAME_Allow_Info_Invoice, Boolean.valueOf(Allow_Info_Invoice)); + } + + /** Get Allow Info Invoice. + @return Allow Info Invoice */ + public boolean isAllow_Info_Invoice () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_Invoice); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info MRP. + @param Allow_Info_MRP Allow Info MRP */ + public void setAllow_Info_MRP (boolean Allow_Info_MRP) + { + set_Value (COLUMNNAME_Allow_Info_MRP, Boolean.valueOf(Allow_Info_MRP)); + } + + /** Get Allow Info MRP. + @return Allow Info MRP */ + public boolean isAllow_Info_MRP () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_MRP); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info Order. + @param Allow_Info_Order Allow Info Order */ + public void setAllow_Info_Order (boolean Allow_Info_Order) + { + set_Value (COLUMNNAME_Allow_Info_Order, Boolean.valueOf(Allow_Info_Order)); + } + + /** Get Allow Info Order. + @return Allow Info Order */ + public boolean isAllow_Info_Order () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_Order); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info Payment. + @param Allow_Info_Payment Allow Info Payment */ + public void setAllow_Info_Payment (boolean Allow_Info_Payment) + { + set_Value (COLUMNNAME_Allow_Info_Payment, Boolean.valueOf(Allow_Info_Payment)); + } + + /** Get Allow Info Payment. + @return Allow Info Payment */ + public boolean isAllow_Info_Payment () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_Payment); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info Product. + @param Allow_Info_Product Allow Info Product */ + public void setAllow_Info_Product (boolean Allow_Info_Product) + { + set_Value (COLUMNNAME_Allow_Info_Product, Boolean.valueOf(Allow_Info_Product)); + } + + /** Get Allow Info Product. + @return Allow Info Product */ + public boolean isAllow_Info_Product () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_Product); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info Resource. + @param Allow_Info_Resource Allow Info Resource */ + public void setAllow_Info_Resource (boolean Allow_Info_Resource) + { + set_Value (COLUMNNAME_Allow_Info_Resource, Boolean.valueOf(Allow_Info_Resource)); + } + + /** Get Allow Info Resource. + @return Allow Info Resource */ + public boolean isAllow_Info_Resource () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_Resource); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Info Schedule. + @param Allow_Info_Schedule Allow Info Schedule */ + public void setAllow_Info_Schedule (boolean Allow_Info_Schedule) + { + set_Value (COLUMNNAME_Allow_Info_Schedule, Boolean.valueOf(Allow_Info_Schedule)); + } + + /** Get Allow Info Schedule. + @return Allow Info Schedule */ + public boolean isAllow_Info_Schedule () + { + Object oo = get_Value(COLUMNNAME_Allow_Info_Schedule); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Approval Amount. + @param AmtApproval + The approval amount limit for this role + */ + public void setAmtApproval (BigDecimal AmtApproval) + { + set_Value (COLUMNNAME_AmtApproval, AmtApproval); + } + + /** Get Approval Amount. + @return The approval amount limit for this role + */ + public BigDecimal getAmtApproval () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtApproval); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_Currency getC_Currency() throws Exception + { + Class clazz = MTable.getClass(I_C_Currency.Table_Name); + I_C_Currency result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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 Confirm Query Records. + @param ConfirmQueryRecords + Require Confirmation if more records will be returned by the query (If not defined 500) + */ + public void setConfirmQueryRecords (int ConfirmQueryRecords) + { + set_Value (COLUMNNAME_ConfirmQueryRecords, Integer.valueOf(ConfirmQueryRecords)); + } + + /** Get Confirm Query Records. + @return Require Confirmation if more records will be returned by the query (If not defined 500) + */ + public int getConfirmQueryRecords () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ConfirmQueryRecords); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** ConnectionProfile AD_Reference_ID=364 */ + public static final int CONNECTIONPROFILE_AD_Reference_ID=364; + /** LAN = L */ + public static final String CONNECTIONPROFILE_LAN = "L"; + /** Terminal Server = T */ + public static final String CONNECTIONPROFILE_TerminalServer = "T"; + /** VPN = V */ + public static final String CONNECTIONPROFILE_VPN = "V"; + /** WAN = W */ + public static final String CONNECTIONPROFILE_WAN = "W"; + /** Set Connection Profile. + @param ConnectionProfile + How a Java Client connects to the server(s) + */ + public void setConnectionProfile (String ConnectionProfile) + { + + if (ConnectionProfile == null || ConnectionProfile.equals("L") || ConnectionProfile.equals("T") || ConnectionProfile.equals("V") || ConnectionProfile.equals("W")); else throw new IllegalArgumentException ("ConnectionProfile Invalid value - " + ConnectionProfile + " - Reference_ID=364 - L - T - V - W"); + if (ConnectionProfile != null && ConnectionProfile.length() > 1) + { + log.warning("Length > 1 - truncated"); + ConnectionProfile = ConnectionProfile.substring(0, 1); + } + set_Value (COLUMNNAME_ConnectionProfile, ConnectionProfile); + } + + /** Get Connection Profile. + @return How a Java Client connects to the server(s) + */ + public String getConnectionProfile () + { + return (String)get_Value(COLUMNNAME_ConnectionProfile); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Access all Orgs. + @param IsAccessAllOrgs + Access all Organizations (no org access control) of the client + */ + public void setIsAccessAllOrgs (boolean IsAccessAllOrgs) + { + set_Value (COLUMNNAME_IsAccessAllOrgs, Boolean.valueOf(IsAccessAllOrgs)); + } + + /** Get Access all Orgs. + @return Access all Organizations (no org access control) of the client + */ + public boolean isAccessAllOrgs () + { + Object oo = get_Value(COLUMNNAME_IsAccessAllOrgs); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Approve own Documents. + @param IsCanApproveOwnDoc + Users with this role can approve their own documents + */ + public void setIsCanApproveOwnDoc (boolean IsCanApproveOwnDoc) + { + set_Value (COLUMNNAME_IsCanApproveOwnDoc, Boolean.valueOf(IsCanApproveOwnDoc)); + } + + /** Get Approve own Documents. + @return Users with this role can approve their own documents + */ + public boolean isCanApproveOwnDoc () + { + Object oo = get_Value(COLUMNNAME_IsCanApproveOwnDoc); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Can Export. + @param IsCanExport + Users with this role can export data + */ + public void setIsCanExport (boolean IsCanExport) + { + set_Value (COLUMNNAME_IsCanExport, Boolean.valueOf(IsCanExport)); + } + + /** Get Can Export. + @return Users with this role can export data + */ + public boolean isCanExport () + { + Object oo = get_Value(COLUMNNAME_IsCanExport); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Can Report. + @param IsCanReport + Users with this role can create reports + */ + public void setIsCanReport (boolean IsCanReport) + { + set_Value (COLUMNNAME_IsCanReport, Boolean.valueOf(IsCanReport)); + } + + /** Get Can Report. + @return Users with this role can create reports + */ + public boolean isCanReport () + { + Object oo = get_Value(COLUMNNAME_IsCanReport); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Maintain Change Log. + @param IsChangeLog + Maintain a log of changes + */ + public void setIsChangeLog (boolean IsChangeLog) + { + set_Value (COLUMNNAME_IsChangeLog, Boolean.valueOf(IsChangeLog)); + } + + /** Get Maintain Change Log. + @return Maintain a log of changes + */ + public boolean isChangeLog () + { + Object oo = get_Value(COLUMNNAME_IsChangeLog); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Manual. + @param IsManual + This is a manual process + */ + public void setIsManual (boolean IsManual) + { + set_Value (COLUMNNAME_IsManual, Boolean.valueOf(IsManual)); + } + + /** Get Manual. + @return This is a manual process + */ + public boolean isManual () + { + Object oo = get_Value(COLUMNNAME_IsManual); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Personal Access. + @param IsPersonalAccess + Allow access to all personal records + */ + public void setIsPersonalAccess (boolean IsPersonalAccess) + { + set_Value (COLUMNNAME_IsPersonalAccess, Boolean.valueOf(IsPersonalAccess)); + } + + /** Get Personal Access. + @return Allow access to all personal records + */ + public boolean isPersonalAccess () + { + Object oo = get_Value(COLUMNNAME_IsPersonalAccess); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Personal Lock. + @param IsPersonalLock + Allow users with role to lock access to personal records + */ + public void setIsPersonalLock (boolean IsPersonalLock) + { + set_Value (COLUMNNAME_IsPersonalLock, Boolean.valueOf(IsPersonalLock)); + } + + /** Get Personal Lock. + @return Allow users with role to lock access to personal records + */ + public boolean isPersonalLock () + { + Object oo = get_Value(COLUMNNAME_IsPersonalLock); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Show Accounting. + @param IsShowAcct + Users with this role can see accounting information + */ + public void setIsShowAcct (boolean IsShowAcct) + { + set_Value (COLUMNNAME_IsShowAcct, Boolean.valueOf(IsShowAcct)); + } + + /** Get Show Accounting. + @return Users with this role can see accounting information + */ + public boolean isShowAcct () + { + Object oo = get_Value(COLUMNNAME_IsShowAcct); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Use User Org Access. + @param IsUseUserOrgAccess + Use Org Access defined by user instead of Role Org Access + */ + public void setIsUseUserOrgAccess (boolean IsUseUserOrgAccess) + { + set_Value (COLUMNNAME_IsUseUserOrgAccess, Boolean.valueOf(IsUseUserOrgAccess)); + } + + /** Get Use User Org Access. + @return Use Org Access defined by user instead of Role Org Access + */ + public boolean isUseUserOrgAccess () + { + Object oo = get_Value(COLUMNNAME_IsUseUserOrgAccess); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Max Query Records. + @param MaxQueryRecords + If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records + */ + public void setMaxQueryRecords (int MaxQueryRecords) + { + set_Value (COLUMNNAME_MaxQueryRecords, Integer.valueOf(MaxQueryRecords)); + } + + /** Get Max Query Records. + @return If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records + */ + public int getMaxQueryRecords () + { + Integer ii = (Integer)get_Value(COLUMNNAME_MaxQueryRecords); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 60); + } + 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 Overwrite Price Limit. + @param OverwritePriceLimit + Overwrite Price Limit if the Price List enforces the Price Limit + */ + public void setOverwritePriceLimit (boolean OverwritePriceLimit) + { + set_Value (COLUMNNAME_OverwritePriceLimit, Boolean.valueOf(OverwritePriceLimit)); + } + + /** Get Overwrite Price Limit. + @return Overwrite Price Limit if the Price List enforces the Price Limit + */ + public boolean isOverwritePriceLimit () + { + Object oo = get_Value(COLUMNNAME_OverwritePriceLimit); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** PreferenceType AD_Reference_ID=330 */ + public static final int PREFERENCETYPE_AD_Reference_ID=330; + /** Client = C */ + public static final String PREFERENCETYPE_Client = "C"; + /** Organization = O */ + public static final String PREFERENCETYPE_Organization = "O"; + /** User = U */ + public static final String PREFERENCETYPE_User = "U"; + /** None = N */ + public static final String PREFERENCETYPE_None = "N"; + /** Set Preference Level. + @param PreferenceType + Determines what preferences the user can set + */ + public void setPreferenceType (String PreferenceType) + { + if (PreferenceType == null) throw new IllegalArgumentException ("PreferenceType is mandatory"); + if (PreferenceType.equals("C") || PreferenceType.equals("O") || PreferenceType.equals("U") || PreferenceType.equals("N")); else throw new IllegalArgumentException ("PreferenceType Invalid value - " + PreferenceType + " - Reference_ID=330 - C - O - U - N"); + if (PreferenceType.length() > 1) + { + log.warning("Length > 1 - truncated"); + PreferenceType = PreferenceType.substring(0, 1); + } + set_Value (COLUMNNAME_PreferenceType, PreferenceType); + } + + /** Get Preference Level. + @return Determines what preferences the user can set + */ + public String getPreferenceType () + { + return (String)get_Value(COLUMNNAME_PreferenceType); + } + + /** Supervisor_ID AD_Reference_ID=286 */ + public static final int SUPERVISOR_ID_AD_Reference_ID=286; + /** Set Supervisor. + @param Supervisor_ID + Supervisor for this user/organization - used for escalation and approval + */ + public void setSupervisor_ID (int Supervisor_ID) + { + if (Supervisor_ID < 1) + set_Value (COLUMNNAME_Supervisor_ID, null); + else + set_Value (COLUMNNAME_Supervisor_ID, Integer.valueOf(Supervisor_ID)); + } + + /** Get Supervisor. + @return Supervisor for this user/organization - used for escalation and approval + */ + public int getSupervisor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Supervisor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set UserDiscount. + @param UserDiscount UserDiscount */ + public void setUserDiscount (BigDecimal UserDiscount) + { + set_Value (COLUMNNAME_UserDiscount, UserDiscount); + } + + /** Get UserDiscount. + @return UserDiscount */ + public BigDecimal getUserDiscount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_UserDiscount); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** UserLevel AD_Reference_ID=226 */ + public static final int USERLEVEL_AD_Reference_ID=226; + /** System = S */ + public static final String USERLEVEL_System = "S "; + /** Client = C */ + public static final String USERLEVEL_Client = " C "; + /** Organization = O */ + public static final String USERLEVEL_Organization = " O"; + /** Client+Organization = CO */ + public static final String USERLEVEL_ClientPlusOrganization = " CO"; + /** Set User Level. + @param UserLevel + System Client Organization + */ + public void setUserLevel (String UserLevel) + { + if (UserLevel == null) throw new IllegalArgumentException ("UserLevel is mandatory"); + if (UserLevel.equals("S ") || UserLevel.equals(" C ") || UserLevel.equals(" O") || UserLevel.equals(" CO")); else throw new IllegalArgumentException ("UserLevel Invalid value - " + UserLevel + " - Reference_ID=226 - S - C - O - CO"); + if (UserLevel.length() > 3) + { + log.warning("Length > 3 - truncated"); + UserLevel = UserLevel.substring(0, 3); + } + set_Value (COLUMNNAME_UserLevel, UserLevel); + } + + /** Get User Level. + @return System Client Organization + */ + public String getUserLevel () + { + return (String)get_Value(COLUMNNAME_UserLevel); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_SysConfig.java b/base/src/org/compiere/model/X_AD_SysConfig.java new file mode 100644 index 0000000000..e5ef52bba1 --- /dev/null +++ b/base/src/org/compiere/model/X_AD_SysConfig.java @@ -0,0 +1,233 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.util.Properties; +import org.compiere.util.KeyNamePair; + +/** Generated Model for AD_SysConfig + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_AD_SysConfig extends PO implements I_AD_SysConfig, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_SysConfig (Properties ctx, int AD_SysConfig_ID, String trxName) + { + super (ctx, AD_SysConfig_ID, trxName); + /** if (AD_SysConfig_ID == 0) + { + setAD_SysConfig_ID (0); + setEntityType (null); +// U + setName (null); + setValue (null); + } */ + } + + /** Load Constructor */ + public X_AD_SysConfig (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + 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_AD_SysConfig[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set System Configurator. + @param AD_SysConfig_ID System Configurator */ + public void setAD_SysConfig_ID (int AD_SysConfig_ID) + { + if (AD_SysConfig_ID < 1) + throw new IllegalArgumentException ("AD_SysConfig_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_SysConfig_ID, Integer.valueOf(AD_SysConfig_ID)); + } + + /** Get System Configurator. + @return System Configurator */ + public int getAD_SysConfig_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_SysConfig_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** ConfigurationLevel AD_Reference_ID=53222 */ + public static final int CONFIGURATIONLEVEL_AD_Reference_ID=53222; + /** System = S */ + public static final String CONFIGURATIONLEVEL_System = "S"; + /** Client = C */ + public static final String CONFIGURATIONLEVEL_Client = "C"; + /** Organization = O */ + public static final String CONFIGURATIONLEVEL_Organization = "O"; + /** Set Configuration Level. + @param ConfigurationLevel + Configuration Level for this parameter + */ + public void setConfigurationLevel (String ConfigurationLevel) + { + + if (ConfigurationLevel == null || ConfigurationLevel.equals("S") || ConfigurationLevel.equals("C") || ConfigurationLevel.equals("O")); else throw new IllegalArgumentException ("ConfigurationLevel Invalid value - " + ConfigurationLevel + " - Reference_ID=53222 - S - C - O"); + if (ConfigurationLevel != null && ConfigurationLevel.length() > 1) + { + log.warning("Length > 1 - truncated"); + ConfigurationLevel = ConfigurationLevel.substring(0, 1); + } + set_Value (COLUMNNAME_ConfigurationLevel, ConfigurationLevel); + } + + /** Get Configuration Level. + @return Configuration Level for this parameter + */ + public String getConfigurationLevel () + { + return (String)get_Value(COLUMNNAME_ConfigurationLevel); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** EntityType AD_Reference_ID=389 */ + public static final int ENTITYTYPE_AD_Reference_ID=389; + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + + if (EntityType.length() > 40) + { + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + + if (Name.length() > 100) + { + log.warning("Length > 100 - truncated"); + Name = Name.substring(0, 100); + } + 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 Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + + if (Value.length() > 255) + { + log.warning("Length > 255 - truncated"); + Value = Value.substring(0, 255); + } + 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); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Table_ScriptValidator.java b/base/src/org/compiere/model/X_AD_Table_ScriptValidator.java new file mode 100644 index 0000000000..6837e6468b --- /dev/null +++ b/base/src/org/compiere/model/X_AD_Table_ScriptValidator.java @@ -0,0 +1,272 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.sql.ResultSet; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.KeyNamePair; + +/** Generated Model for AD_Table_ScriptValidator + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_AD_Table_ScriptValidator extends PO implements I_AD_Table_ScriptValidator, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Table_ScriptValidator (Properties ctx, int AD_Table_ScriptValidator_ID, String trxName) + { + super (ctx, AD_Table_ScriptValidator_ID, trxName); + /** if (AD_Table_ScriptValidator_ID == 0) + { + setAD_Rule_ID (0); + setAD_Table_ID (0); + setAD_Table_ScriptValidator_ID (0); + setEventModelValidator (null); + setSeqNo (0); +// 0 + } */ + } + + /** Load Constructor */ + public X_AD_Table_ScriptValidator (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 4 - System + */ + 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_AD_Table_ScriptValidator[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Rule getAD_Rule() throws Exception + { + Class clazz = MTable.getClass(I_AD_Rule.Table_Name); + I_AD_Rule result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_Rule)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Rule_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Rule. + @param AD_Rule_ID Rule */ + public void setAD_Rule_ID (int AD_Rule_ID) + { + if (AD_Rule_ID < 1) + throw new IllegalArgumentException ("AD_Rule_ID is mandatory."); + set_Value (COLUMNNAME_AD_Rule_ID, Integer.valueOf(AD_Rule_ID)); + } + + /** Get Rule. + @return Rule */ + public int getAD_Rule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Rule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getAD_Table() throws Exception + { + Class clazz = MTable.getClass(I_AD_Table.Table_Name); + I_AD_Table result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + throw new IllegalArgumentException ("AD_Table_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Table Script Validator. + @param AD_Table_ScriptValidator_ID Table Script Validator */ + public void setAD_Table_ScriptValidator_ID (int AD_Table_ScriptValidator_ID) + { + if (AD_Table_ScriptValidator_ID < 1) + throw new IllegalArgumentException ("AD_Table_ScriptValidator_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Table_ScriptValidator_ID, Integer.valueOf(AD_Table_ScriptValidator_ID)); + } + + /** Get Table Script Validator. + @return Table Script Validator */ + public int getAD_Table_ScriptValidator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ScriptValidator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** EventModelValidator AD_Reference_ID=53237 */ + public static final int EVENTMODELVALIDATOR_AD_Reference_ID=53237; + /** Table Before New = TBN */ + public static final String EVENTMODELVALIDATOR_TableBeforeNew = "TBN"; + /** Table Before Change = TBC */ + public static final String EVENTMODELVALIDATOR_TableBeforeChange = "TBC"; + /** Table Before Delete = TBD */ + public static final String EVENTMODELVALIDATOR_TableBeforeDelete = "TBD"; + /** Table After New = TAN */ + public static final String EVENTMODELVALIDATOR_TableAfterNew = "TAN"; + /** Table After Change = TAC */ + public static final String EVENTMODELVALIDATOR_TableAfterChange = "TAC"; + /** Table After Delete = TAD */ + public static final String EVENTMODELVALIDATOR_TableAfterDelete = "TAD"; + /** Document Before Prepare = DBPR */ + public static final String EVENTMODELVALIDATOR_DocumentBeforePrepare = "DBPR"; + /** Document Before Void = DBVO */ + public static final String EVENTMODELVALIDATOR_DocumentBeforeVoid = "DBVO"; + /** Document Before Close = DBCL */ + public static final String EVENTMODELVALIDATOR_DocumentBeforeClose = "DBCL"; + /** Document Before Reactivate = DBAC */ + public static final String EVENTMODELVALIDATOR_DocumentBeforeReactivate = "DBAC"; + /** Document Before Reverse Correct = DBRC */ + public static final String EVENTMODELVALIDATOR_DocumentBeforeReverseCorrect = "DBRC"; + /** Document Before Reverse Accrual = DBRA */ + public static final String EVENTMODELVALIDATOR_DocumentBeforeReverseAccrual = "DBRA"; + /** Document Before Complete = DBCO */ + public static final String EVENTMODELVALIDATOR_DocumentBeforeComplete = "DBCO"; + /** Document Before Post = DBPO */ + public static final String EVENTMODELVALIDATOR_DocumentBeforePost = "DBPO"; + /** Document After Prepare = DAPR */ + public static final String EVENTMODELVALIDATOR_DocumentAfterPrepare = "DAPR"; + /** Document After Void = DAVO */ + public static final String EVENTMODELVALIDATOR_DocumentAfterVoid = "DAVO"; + /** Document After Close = DACL */ + public static final String EVENTMODELVALIDATOR_DocumentAfterClose = "DACL"; + /** Document After Reactivate = DAAC */ + public static final String EVENTMODELVALIDATOR_DocumentAfterReactivate = "DAAC"; + /** Document After Reverse Correct = DARC */ + public static final String EVENTMODELVALIDATOR_DocumentAfterReverseCorrect = "DARC"; + /** Document After Reverse Accrual = DARA */ + public static final String EVENTMODELVALIDATOR_DocumentAfterReverseAccrual = "DARA"; + /** Document After Complete = DACO */ + public static final String EVENTMODELVALIDATOR_DocumentAfterComplete = "DACO"; + /** Document After Post = DAPO */ + public static final String EVENTMODELVALIDATOR_DocumentAfterPost = "DAPO"; + /** Table After New Replication = TANR */ + public static final String EVENTMODELVALIDATOR_TableAfterNewReplication = "TANR"; + /** Table After Change Replication = TACR */ + public static final String EVENTMODELVALIDATOR_TableAfterChangeReplication = "TACR"; + /** Table Before Delete Replication = TBDR */ + public static final String EVENTMODELVALIDATOR_TableBeforeDeleteReplication = "TBDR"; + /** Set Event Model Validator. + @param EventModelValidator Event Model Validator */ + public void setEventModelValidator (String EventModelValidator) + { + if (EventModelValidator == null) throw new IllegalArgumentException ("EventModelValidator is mandatory"); + if (EventModelValidator.equals("TBN") || EventModelValidator.equals("TBC") || EventModelValidator.equals("TBD") || EventModelValidator.equals("TAN") || EventModelValidator.equals("TAC") || EventModelValidator.equals("TAD") || EventModelValidator.equals("DBPR") || EventModelValidator.equals("DBVO") || EventModelValidator.equals("DBCL") || EventModelValidator.equals("DBAC") || EventModelValidator.equals("DBRC") || EventModelValidator.equals("DBRA") || EventModelValidator.equals("DBCO") || EventModelValidator.equals("DBPO") || EventModelValidator.equals("DAPR") || EventModelValidator.equals("DAVO") || EventModelValidator.equals("DACL") || EventModelValidator.equals("DAAC") || EventModelValidator.equals("DARC") || EventModelValidator.equals("DARA") || EventModelValidator.equals("DACO") || EventModelValidator.equals("DAPO") || EventModelValidator.equals("TANR") || EventModelValidator.equals("TACR") || EventModelValidator.equals("TBDR")); else throw new IllegalArgumentException ("EventModelValidator Invalid value - " + EventModelValidator + " - Reference_ID=53237 - TBN - TBC - TBD - TAN - TAC - TAD - DBPR - DBVO - DBCL - DBAC - DBRC - DBRA - DBCO - DBPO - DAPR - DAVO - DACL - DAAC - DARC - DARA - DACO - DAPO - TANR - TACR - TBDR"); + if (EventModelValidator.length() > 4) + { + log.warning("Length > 4 - truncated"); + EventModelValidator = EventModelValidator.substring(0, 4); + } + set_Value (COLUMNNAME_EventModelValidator, EventModelValidator); + } + + /** Get Event Model Validator. + @return Event Model Validator */ + public String getEventModelValidator () + { + return (String)get_Value(COLUMNNAME_EventModelValidator); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getEventModelValidator())); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_UserBPAccess.java b/base/src/org/compiere/model/X_AD_UserBPAccess.java new file mode 100644 index 0000000000..9da23d8e51 --- /dev/null +++ b/base/src/org/compiere/model/X_AD_UserBPAccess.java @@ -0,0 +1,300 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.sql.ResultSet; +import java.util.Properties; +import java.util.logging.Level; + +/** Generated Model for AD_UserBPAccess + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_AD_UserBPAccess extends PO implements I_AD_UserBPAccess, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_UserBPAccess (Properties ctx, int AD_UserBPAccess_ID, String trxName) + { + super (ctx, AD_UserBPAccess_ID, trxName); + /** if (AD_UserBPAccess_ID == 0) + { + setAD_UserBPAccess_ID (0); + setAD_User_ID (0); + setBPAccessType (null); + } */ + } + + /** Load Constructor */ + public X_AD_UserBPAccess (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + 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_AD_UserBPAccess[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set User BP Access. + @param AD_UserBPAccess_ID + User/concat access to Business Partner information and resources + */ + public void setAD_UserBPAccess_ID (int AD_UserBPAccess_ID) + { + if (AD_UserBPAccess_ID < 1) + throw new IllegalArgumentException ("AD_UserBPAccess_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_UserBPAccess_ID, Integer.valueOf(AD_UserBPAccess_ID)); + } + + /** Get User BP Access. + @return User/concat access to Business Partner information and resources + */ + public int getAD_UserBPAccess_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_UserBPAccess_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getAD_User() throws Exception + { + Class clazz = MTable.getClass(I_AD_User.Table_Name); + I_AD_User result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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) + throw new IllegalArgumentException ("AD_User_ID is mandatory."); + 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(); + } + + /** BPAccessType AD_Reference_ID=358 */ + public static final int BPACCESSTYPE_AD_Reference_ID=358; + /** Business Documents = B */ + public static final String BPACCESSTYPE_BusinessDocuments = "B"; + /** Requests = R */ + public static final String BPACCESSTYPE_Requests = "R"; + /** Assets, Download = A */ + public static final String BPACCESSTYPE_AssetsDownload = "A"; + /** Set Access Type. + @param BPAccessType + Type of Access of the user/contact to Business Partner information and resources + */ + public void setBPAccessType (String BPAccessType) + { + if (BPAccessType == null) throw new IllegalArgumentException ("BPAccessType is mandatory"); + if (BPAccessType.equals("B") || BPAccessType.equals("R") || BPAccessType.equals("A")); else throw new IllegalArgumentException ("BPAccessType Invalid value - " + BPAccessType + " - Reference_ID=358 - B - R - A"); + if (BPAccessType.length() > 1) + { + log.warning("Length > 1 - truncated"); + BPAccessType = BPAccessType.substring(0, 1); + } + set_Value (COLUMNNAME_BPAccessType, BPAccessType); + } + + /** Get Access Type. + @return Type of Access of the user/contact to Business Partner information and resources + */ + public String getBPAccessType () + { + return (String)get_Value(COLUMNNAME_BPAccessType); + } + + /** DocBaseType AD_Reference_ID=183 */ + public static final int DOCBASETYPE_AD_Reference_ID=183; + /** GL Journal = GLJ */ + public static final String DOCBASETYPE_GLJournal = "GLJ"; + /** GL Document = GLD */ + public static final String DOCBASETYPE_GLDocument = "GLD"; + /** AP Invoice = API */ + public static final String DOCBASETYPE_APInvoice = "API"; + /** AP Payment = APP */ + public static final String DOCBASETYPE_APPayment = "APP"; + /** AR Invoice = ARI */ + public static final String DOCBASETYPE_ARInvoice = "ARI"; + /** AR Receipt = ARR */ + public static final String DOCBASETYPE_ARReceipt = "ARR"; + /** Sales Order = SOO */ + public static final String DOCBASETYPE_SalesOrder = "SOO"; + /** AR Pro Forma Invoice = ARF */ + public static final String DOCBASETYPE_ARProFormaInvoice = "ARF"; + /** Material Delivery = MMS */ + public static final String DOCBASETYPE_MaterialDelivery = "MMS"; + /** Material Receipt = MMR */ + public static final String DOCBASETYPE_MaterialReceipt = "MMR"; + /** Material Movement = MMM */ + public static final String DOCBASETYPE_MaterialMovement = "MMM"; + /** Purchase Order = POO */ + public static final String DOCBASETYPE_PurchaseOrder = "POO"; + /** Purchase Requisition = POR */ + public static final String DOCBASETYPE_PurchaseRequisition = "POR"; + /** Material Physical Inventory = MMI */ + public static final String DOCBASETYPE_MaterialPhysicalInventory = "MMI"; + /** AP Credit Memo = APC */ + public static final String DOCBASETYPE_APCreditMemo = "APC"; + /** AR Credit Memo = ARC */ + public static final String DOCBASETYPE_ARCreditMemo = "ARC"; + /** Bank Statement = CMB */ + public static final String DOCBASETYPE_BankStatement = "CMB"; + /** Cash Journal = CMC */ + public static final String DOCBASETYPE_CashJournal = "CMC"; + /** Payment Allocation = CMA */ + public static final String DOCBASETYPE_PaymentAllocation = "CMA"; + /** Material Production = MMP */ + public static final String DOCBASETYPE_MaterialProduction = "MMP"; + /** Match Invoice = MXI */ + public static final String DOCBASETYPE_MatchInvoice = "MXI"; + /** Match PO = MXP */ + public static final String DOCBASETYPE_MatchPO = "MXP"; + /** Project Issue = PJI */ + public static final String DOCBASETYPE_ProjectIssue = "PJI"; + /** Manufacturing Operation Activity = MOA */ + public static final String DOCBASETYPE_ManufacturingOperationActivity = "MOA"; + /** Maintenance Order = MOF */ + public static final String DOCBASETYPE_MaintenanceOrder = "MOF"; + /** Manufacturing Order Issue = MOI */ + public static final String DOCBASETYPE_ManufacturingOrderIssue = "MOI"; + /** Manufacturing Order Method Variation = MOM */ + public static final String DOCBASETYPE_ManufacturingOrderMethodVariation = "MOM"; + /** Manufacturing Order = MOP */ + public static final String DOCBASETYPE_ManufacturingOrder = "MOP"; + /** Manufacturing Order Receipt = MOR */ + public static final String DOCBASETYPE_ManufacturingOrderReceipt = "MOR"; + /** Manufacturing Order Use Variation = MOU */ + public static final String DOCBASETYPE_ManufacturingOrderUseVariation = "MOU"; + /** Manufacturing Order Rate Variation = MOV */ + public static final String DOCBASETYPE_ManufacturingOrderRateVariation = "MOV"; + /** Quality Order = MQO */ + public static final String DOCBASETYPE_QualityOrder = "MQO"; + /** Payroll = HRP */ + public static final String DOCBASETYPE_Payroll = "HRP"; + /** Distribution Order = DOO */ + public static final String DOCBASETYPE_DistributionOrder = "DOO"; + /** Set Document BaseType. + @param DocBaseType + Logical type of document + */ + public void setDocBaseType (String DocBaseType) + { + + if (DocBaseType == null || DocBaseType.equals("GLJ") || DocBaseType.equals("GLD") || DocBaseType.equals("API") || DocBaseType.equals("APP") || DocBaseType.equals("ARI") || DocBaseType.equals("ARR") || DocBaseType.equals("SOO") || DocBaseType.equals("ARF") || DocBaseType.equals("MMS") || DocBaseType.equals("MMR") || DocBaseType.equals("MMM") || DocBaseType.equals("POO") || DocBaseType.equals("POR") || DocBaseType.equals("MMI") || DocBaseType.equals("APC") || DocBaseType.equals("ARC") || DocBaseType.equals("CMB") || DocBaseType.equals("CMC") || DocBaseType.equals("CMA") || DocBaseType.equals("MMP") || DocBaseType.equals("MXI") || DocBaseType.equals("MXP") || DocBaseType.equals("PJI") || DocBaseType.equals("MOA") || DocBaseType.equals("MOF") || DocBaseType.equals("MOI") || DocBaseType.equals("MOM") || DocBaseType.equals("MOP") || DocBaseType.equals("MOR") || DocBaseType.equals("MOU") || DocBaseType.equals("MOV") || DocBaseType.equals("MQO") || DocBaseType.equals("HRP") || DocBaseType.equals("DOO")); else throw new IllegalArgumentException ("DocBaseType Invalid value - " + DocBaseType + " - Reference_ID=183 - GLJ - GLD - API - APP - ARI - ARR - SOO - ARF - MMS - MMR - MMM - POO - POR - MMI - APC - ARC - CMB - CMC - CMA - MMP - MXI - MXP - PJI - MOA - MOF - MOI - MOM - MOP - MOR - MOU - MOV - MQO - HRP - DOO"); + if (DocBaseType != null && DocBaseType.length() > 10) + { + log.warning("Length > 10 - truncated"); + DocBaseType = DocBaseType.substring(0, 10); + } + set_Value (COLUMNNAME_DocBaseType, DocBaseType); + } + + /** Get Document BaseType. + @return Logical type of document + */ + public String getDocBaseType () + { + return (String)get_Value(COLUMNNAME_DocBaseType); + } + + public I_R_RequestType getR_RequestType() throws Exception + { + Class clazz = MTable.getClass(I_R_RequestType.Table_Name); + I_R_RequestType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_R_RequestType)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_RequestType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Request Type. + @param R_RequestType_ID + Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID) + { + if (R_RequestType_ID < 1) + set_Value (COLUMNNAME_R_RequestType_ID, null); + else + set_Value (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); + } + + /** Get Request Type. + @return Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_WF_Node.java b/base/src/org/compiere/model/X_AD_WF_Node.java new file mode 100644 index 0000000000..ab2491732c --- /dev/null +++ b/base/src/org/compiere/model/X_AD_WF_Node.java @@ -0,0 +1,1516 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for AD_WF_Node + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_WF_Node (Properties ctx, int AD_WF_Node_ID, String trxName) + { + super (ctx, AD_WF_Node_ID, trxName); + /** if (AD_WF_Node_ID == 0) + { + setAD_WF_Node_ID (0); + setAD_Workflow_ID (0); + setAction (null); +// N + setCost (Env.ZERO); + setDuration (0); + setEntityType (null); +// 'U' + setIsCentrallyMaintained (true); +// Y + setJoinElement (null); +// X + setLimit (0); + setName (null); + setSplitElement (null); +// X + setValue (null); + setWaitingTime (0); + setXPosition (0); + setYPosition (0); + } */ + } + + /** Load Constructor */ + public X_AD_WF_Node (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + 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_AD_WF_Node[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Column getAD_Column() throws Exception + { + Class clazz = MTable.getClass(I_AD_Column.Table_Name); + I_AD_Column result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_Column)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Column_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Column. + @param AD_Column_ID + Column in the table + */ + public void setAD_Column_ID (int AD_Column_ID) + { + if (AD_Column_ID < 1) + set_Value (COLUMNNAME_AD_Column_ID, null); + else + set_Value (COLUMNNAME_AD_Column_ID, Integer.valueOf(AD_Column_ID)); + } + + /** Get Column. + @return Column in the table + */ + public int getAD_Column_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Column_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Form getAD_Form() throws Exception + { + Class clazz = MTable.getClass(I_AD_Form.Table_Name); + I_AD_Form result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_Form)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Form_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Special Form. + @param AD_Form_ID + Special Form + */ + public void setAD_Form_ID (int AD_Form_ID) + { + if (AD_Form_ID < 1) + set_Value (COLUMNNAME_AD_Form_ID, null); + else + set_Value (COLUMNNAME_AD_Form_ID, Integer.valueOf(AD_Form_ID)); + } + + /** Get Special Form. + @return Special Form + */ + public int getAD_Form_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Form_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Image getAD_Image() throws Exception + { + Class clazz = MTable.getClass(I_AD_Image.Table_Name); + I_AD_Image result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_Image)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Image_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Image. + @param AD_Image_ID + Image or Icon + */ + public void setAD_Image_ID (int AD_Image_ID) + { + if (AD_Image_ID < 1) + set_Value (COLUMNNAME_AD_Image_ID, null); + else + set_Value (COLUMNNAME_AD_Image_ID, Integer.valueOf(AD_Image_ID)); + } + + /** Get Image. + @return Image or Icon + */ + public int getAD_Image_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Image_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Process getAD_Process() throws Exception + { + Class clazz = MTable.getClass(I_AD_Process.Table_Name); + I_AD_Process result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_Process)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Process_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Process. + @param AD_Process_ID + Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID) + { + if (AD_Process_ID < 1) + set_Value (COLUMNNAME_AD_Process_ID, null); + else + set_Value (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + } + + /** Get Process. + @return Process or Report + */ + public int getAD_Process_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Task getAD_Task() throws Exception + { + Class clazz = MTable.getClass(I_AD_Task.Table_Name); + I_AD_Task result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_Task)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Task_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set OS Task. + @param AD_Task_ID + Operation System Task + */ + public void setAD_Task_ID (int AD_Task_ID) + { + if (AD_Task_ID < 1) + set_Value (COLUMNNAME_AD_Task_ID, null); + else + set_Value (COLUMNNAME_AD_Task_ID, Integer.valueOf(AD_Task_ID)); + } + + /** Get OS Task. + @return Operation System Task + */ + public int getAD_Task_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Task_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_Block getAD_WF_Block() throws Exception + { + Class clazz = MTable.getClass(I_AD_WF_Block.Table_Name); + I_AD_WF_Block result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_WF_Block)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Block_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Workflow Block. + @param AD_WF_Block_ID + Workflow Transaction Execution Block + */ + public void setAD_WF_Block_ID (int AD_WF_Block_ID) + { + if (AD_WF_Block_ID < 1) + set_Value (COLUMNNAME_AD_WF_Block_ID, null); + else + set_Value (COLUMNNAME_AD_WF_Block_ID, Integer.valueOf(AD_WF_Block_ID)); + } + + /** Get Workflow Block. + @return Workflow Transaction Execution Block + */ + public int getAD_WF_Block_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Block_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Node. + @param AD_WF_Node_ID + Workflow Node (activity), step or process + */ + public void setAD_WF_Node_ID (int AD_WF_Node_ID) + { + if (AD_WF_Node_ID < 1) + throw new IllegalArgumentException ("AD_WF_Node_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID)); + } + + /** Get Node. + @return Workflow Node (activity), step or process + */ + public int getAD_WF_Node_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_Responsible getAD_WF_Responsible() throws Exception + { + Class clazz = MTable.getClass(I_AD_WF_Responsible.Table_Name); + I_AD_WF_Responsible result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_WF_Responsible)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Responsible_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Workflow Responsible. + @param AD_WF_Responsible_ID + Responsible for Workflow Execution + */ + public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID) + { + if (AD_WF_Responsible_ID < 1) + set_Value (COLUMNNAME_AD_WF_Responsible_ID, null); + else + set_Value (COLUMNNAME_AD_WF_Responsible_ID, Integer.valueOf(AD_WF_Responsible_ID)); + } + + /** Get Workflow Responsible. + @return Responsible for Workflow Execution + */ + public int getAD_WF_Responsible_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Responsible_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Window getAD_Window() throws Exception + { + Class clazz = MTable.getClass(I_AD_Window.Table_Name); + I_AD_Window result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_Window)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Window_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Window. + @param AD_Window_ID + Data entry or display window + */ + public void setAD_Window_ID (int AD_Window_ID) + { + if (AD_Window_ID < 1) + set_Value (COLUMNNAME_AD_Window_ID, null); + else + set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID)); + } + + /** Get Window. + @return Data entry or display window + */ + public int getAD_Window_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Window_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Workflow getAD_Workflow() throws Exception + { + Class clazz = MTable.getClass(I_AD_Workflow.Table_Name); + I_AD_Workflow result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_Workflow)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Workflow_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Workflow. + @param AD_Workflow_ID + Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID) + { + if (AD_Workflow_ID < 1) + throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + } + + /** Get Workflow. + @return Workflow or combination of tasks + */ + public int getAD_Workflow_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workflow_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Action AD_Reference_ID=302 */ + public static final int ACTION_AD_Reference_ID=302; + /** Wait (Sleep) = Z */ + public static final String ACTION_WaitSleep = "Z"; + /** User Choice = C */ + public static final String ACTION_UserChoice = "C"; + /** Sub Workflow = F */ + public static final String ACTION_SubWorkflow = "F"; + /** Set Variable = V */ + public static final String ACTION_SetVariable = "V"; + /** User Window = W */ + public static final String ACTION_UserWindow = "W"; + /** User Form = X */ + public static final String ACTION_UserForm = "X"; + /** Apps Task = T */ + public static final String ACTION_AppsTask = "T"; + /** Apps Report = R */ + public static final String ACTION_AppsReport = "R"; + /** Apps Process = P */ + public static final String ACTION_AppsProcess = "P"; + /** Document Action = D */ + public static final String ACTION_DocumentAction = "D"; + /** EMail = M */ + public static final String ACTION_EMail = "M"; + /** User Workbench = B */ + public static final String ACTION_UserWorkbench = "B"; + /** Set Action. + @param Action + Indicates the Action to be performed + */ + public void setAction (String Action) + { + if (Action == null) throw new IllegalArgumentException ("Action is mandatory"); + if (Action.equals("Z") || Action.equals("C") || Action.equals("F") || Action.equals("V") || Action.equals("W") || Action.equals("X") || Action.equals("T") || Action.equals("R") || Action.equals("P") || Action.equals("D") || Action.equals("M") || Action.equals("B")); else throw new IllegalArgumentException ("Action Invalid value - " + Action + " - Reference_ID=302 - Z - C - F - V - W - X - T - R - P - D - M - B"); + if (Action.length() > 1) + { + log.warning("Length > 1 - truncated"); + Action = Action.substring(0, 1); + } + set_Value (COLUMNNAME_Action, Action); + } + + /** Get Action. + @return Indicates the Action to be performed + */ + public String getAction () + { + return (String)get_Value(COLUMNNAME_Action); + } + + /** Set Attribute Name. + @param AttributeName + Name of the Attribute + */ + public void setAttributeName (String AttributeName) + { + + if (AttributeName != null && AttributeName.length() > 60) + { + log.warning("Length > 60 - truncated"); + AttributeName = AttributeName.substring(0, 60); + } + set_Value (COLUMNNAME_AttributeName, AttributeName); + } + + /** Get Attribute Name. + @return Name of the Attribute + */ + public String getAttributeName () + { + return (String)get_Value(COLUMNNAME_AttributeName); + } + + /** Set Attribute Value. + @param AttributeValue + Value of the Attribute + */ + public void setAttributeValue (String AttributeValue) + { + + if (AttributeValue != null && AttributeValue.length() > 60) + { + log.warning("Length > 60 - truncated"); + AttributeValue = AttributeValue.substring(0, 60); + } + set_Value (COLUMNNAME_AttributeValue, AttributeValue); + } + + /** Get Attribute Value. + @return Value of the Attribute + */ + public String getAttributeValue () + { + return (String)get_Value(COLUMNNAME_AttributeValue); + } + + public I_C_BPartner getC_BPartner() throws Exception + { + Class clazz = MTable.getClass(I_C_BPartner.Table_Name); + I_C_BPartner result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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(); + } + + /** Set Cost. + @param Cost + Cost information + */ + public void setCost (BigDecimal Cost) + { + if (Cost == null) + throw new IllegalArgumentException ("Cost is mandatory."); + 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; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** DocAction AD_Reference_ID=135 */ + public static final int DOCACTION_AD_Reference_ID=135; + /** Complete = CO */ + public static final String DOCACTION_Complete = "CO"; + /** Approve = AP */ + public static final String DOCACTION_Approve = "AP"; + /** Reject = RJ */ + public static final String DOCACTION_Reject = "RJ"; + /** Post = PO */ + public static final String DOCACTION_Post = "PO"; + /** Void = VO */ + public static final String DOCACTION_Void = "VO"; + /** Close = CL */ + public static final String DOCACTION_Close = "CL"; + /** Reverse - Correct = RC */ + public static final String DOCACTION_Reverse_Correct = "RC"; + /** Reverse - Accrual = RA */ + public static final String DOCACTION_Reverse_Accrual = "RA"; + /** Invalidate = IN */ + public static final String DOCACTION_Invalidate = "IN"; + /** Re-activate = RE */ + public static final String DOCACTION_Re_Activate = "RE"; + /** = -- */ + public static final String DOCACTION_None = "--"; + /** Prepare = PR */ + public static final String DOCACTION_Prepare = "PR"; + /** Unlock = XL */ + public static final String DOCACTION_Unlock = "XL"; + /** Wait Complete = WC */ + public static final String DOCACTION_WaitComplete = "WC"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { + + if (DocAction == null || DocAction.equals("CO") || DocAction.equals("AP") || DocAction.equals("RJ") || DocAction.equals("PO") || DocAction.equals("VO") || DocAction.equals("CL") || DocAction.equals("RC") || DocAction.equals("RA") || DocAction.equals("IN") || DocAction.equals("RE") || DocAction.equals("--") || DocAction.equals("PR") || DocAction.equals("XL") || DocAction.equals("WC")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - CO - AP - RJ - PO - VO - CL - RC - RA - IN - RE - -- - PR - XL - WC"); + if (DocAction != null && DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 2); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } + + /** Set Duration. + @param Duration + Normal Duration in Duration Unit + */ + public void setDuration (int Duration) + { + set_Value (COLUMNNAME_Duration, Integer.valueOf(Duration)); + } + + /** Get Duration. + @return Normal Duration in Duration Unit + */ + public int getDuration () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Duration); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Dynamic Priority Change. + @param DynPriorityChange + Change of priority when Activity is suspended waiting for user + */ + public void setDynPriorityChange (BigDecimal DynPriorityChange) + { + set_Value (COLUMNNAME_DynPriorityChange, DynPriorityChange); + } + + /** Get Dynamic Priority Change. + @return Change of priority when Activity is suspended waiting for user + */ + public BigDecimal getDynPriorityChange () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DynPriorityChange); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** DynPriorityUnit AD_Reference_ID=221 */ + public static final int DYNPRIORITYUNIT_AD_Reference_ID=221; + /** Minute = M */ + public static final String DYNPRIORITYUNIT_Minute = "M"; + /** Hour = H */ + public static final String DYNPRIORITYUNIT_Hour = "H"; + /** Day = D */ + public static final String DYNPRIORITYUNIT_Day = "D"; + /** Set Dynamic Priority Unit. + @param DynPriorityUnit + Change of priority when Activity is suspended waiting for user + */ + public void setDynPriorityUnit (String DynPriorityUnit) + { + + if (DynPriorityUnit == null || DynPriorityUnit.equals("M") || DynPriorityUnit.equals("H") || DynPriorityUnit.equals("D")); else throw new IllegalArgumentException ("DynPriorityUnit Invalid value - " + DynPriorityUnit + " - Reference_ID=221 - M - H - D"); + if (DynPriorityUnit != null && DynPriorityUnit.length() > 1) + { + log.warning("Length > 1 - truncated"); + DynPriorityUnit = DynPriorityUnit.substring(0, 1); + } + set_Value (COLUMNNAME_DynPriorityUnit, DynPriorityUnit); + } + + /** Get Dynamic Priority Unit. + @return Change of priority when Activity is suspended waiting for user + */ + public String getDynPriorityUnit () + { + return (String)get_Value(COLUMNNAME_DynPriorityUnit); + } + + /** Set EMail Address. + @param EMail + Electronic Mail Address + */ + public void setEMail (String EMail) + { + + if (EMail != null && EMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + EMail = EMail.substring(0, 60); + } + set_Value (COLUMNNAME_EMail, EMail); + } + + /** Get EMail Address. + @return Electronic Mail Address + */ + public String getEMail () + { + return (String)get_Value(COLUMNNAME_EMail); + } + + /** EMailRecipient AD_Reference_ID=363 */ + public static final int EMAILRECIPIENT_AD_Reference_ID=363; + /** Document Owner = D */ + public static final String EMAILRECIPIENT_DocumentOwner = "D"; + /** Document Business Partner = B */ + public static final String EMAILRECIPIENT_DocumentBusinessPartner = "B"; + /** WF Responsible = R */ + public static final String EMAILRECIPIENT_WFResponsible = "R"; + /** Set EMail Recipient. + @param EMailRecipient + Recipient of the EMail + */ + public void setEMailRecipient (String EMailRecipient) + { + + if (EMailRecipient == null || EMailRecipient.equals("D") || EMailRecipient.equals("B") || EMailRecipient.equals("R")); else throw new IllegalArgumentException ("EMailRecipient Invalid value - " + EMailRecipient + " - Reference_ID=363 - D - B - R"); + if (EMailRecipient != null && EMailRecipient.length() > 1) + { + log.warning("Length > 1 - truncated"); + EMailRecipient = EMailRecipient.substring(0, 1); + } + set_Value (COLUMNNAME_EMailRecipient, EMailRecipient); + } + + /** Get EMail Recipient. + @return Recipient of the EMail + */ + public String getEMailRecipient () + { + return (String)get_Value(COLUMNNAME_EMailRecipient); + } + + /** EntityType AD_Reference_ID=389 */ + public static final int ENTITYTYPE_AD_Reference_ID=389; + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + + if (EntityType.length() > 40) + { + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** FinishMode AD_Reference_ID=303 */ + public static final int FINISHMODE_AD_Reference_ID=303; + /** Automatic = A */ + public static final String FINISHMODE_Automatic = "A"; + /** Manual = M */ + public static final String FINISHMODE_Manual = "M"; + /** Set Finish Mode. + @param FinishMode + Workflow Activity Finish Mode + */ + public void setFinishMode (String FinishMode) + { + + if (FinishMode == null || FinishMode.equals("A") || FinishMode.equals("M")); else throw new IllegalArgumentException ("FinishMode Invalid value - " + FinishMode + " - Reference_ID=303 - A - M"); + if (FinishMode != null && FinishMode.length() > 1) + { + log.warning("Length > 1 - truncated"); + FinishMode = FinishMode.substring(0, 1); + } + set_Value (COLUMNNAME_FinishMode, FinishMode); + } + + /** Get Finish Mode. + @return Workflow Activity Finish Mode + */ + public String getFinishMode () + { + return (String)get_Value(COLUMNNAME_FinishMode); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 2000); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Centrally maintained. + @param IsCentrallyMaintained + Information maintained in System Element table + */ + public void setIsCentrallyMaintained (boolean IsCentrallyMaintained) + { + set_Value (COLUMNNAME_IsCentrallyMaintained, Boolean.valueOf(IsCentrallyMaintained)); + } + + /** Get Centrally maintained. + @return Information maintained in System Element table + */ + public boolean isCentrallyMaintained () + { + Object oo = get_Value(COLUMNNAME_IsCentrallyMaintained); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set IsMilestone. + @param IsMilestone IsMilestone */ + public void setIsMilestone (boolean IsMilestone) + { + set_Value (COLUMNNAME_IsMilestone, Boolean.valueOf(IsMilestone)); + } + + /** Get IsMilestone. + @return IsMilestone */ + public boolean isMilestone () + { + Object oo = get_Value(COLUMNNAME_IsMilestone); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set IsSubcontracting. + @param IsSubcontracting IsSubcontracting */ + public void setIsSubcontracting (boolean IsSubcontracting) + { + set_Value (COLUMNNAME_IsSubcontracting, Boolean.valueOf(IsSubcontracting)); + } + + /** Get IsSubcontracting. + @return IsSubcontracting */ + public boolean isSubcontracting () + { + Object oo = get_Value(COLUMNNAME_IsSubcontracting); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** JoinElement AD_Reference_ID=301 */ + public static final int JOINELEMENT_AD_Reference_ID=301; + /** AND = A */ + public static final String JOINELEMENT_AND = "A"; + /** XOR = X */ + public static final String JOINELEMENT_XOR = "X"; + /** Set Join Element. + @param JoinElement + Semantics for multiple incoming Transitions + */ + public void setJoinElement (String JoinElement) + { + if (JoinElement == null) throw new IllegalArgumentException ("JoinElement is mandatory"); + if (JoinElement.equals("A") || JoinElement.equals("X")); else throw new IllegalArgumentException ("JoinElement Invalid value - " + JoinElement + " - Reference_ID=301 - A - X"); + if (JoinElement.length() > 1) + { + log.warning("Length > 1 - truncated"); + JoinElement = JoinElement.substring(0, 1); + } + set_Value (COLUMNNAME_JoinElement, JoinElement); + } + + /** Get Join Element. + @return Semantics for multiple incoming Transitions + */ + public String getJoinElement () + { + return (String)get_Value(COLUMNNAME_JoinElement); + } + + /** Set Duration Limit. + @param Limit + Maximum Duration in Duration Unit + */ + public void setLimit (int Limit) + { + set_Value (COLUMNNAME_Limit, Integer.valueOf(Limit)); + } + + /** Get Duration Limit. + @return Maximum Duration in Duration Unit + */ + public int getLimit () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Limit); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set MovingTime. + @param MovingTime MovingTime */ + public void setMovingTime (int MovingTime) + { + set_Value (COLUMNNAME_MovingTime, Integer.valueOf(MovingTime)); + } + + /** Get MovingTime. + @return MovingTime */ + public int getMovingTime () + { + Integer ii = (Integer)get_Value(COLUMNNAME_MovingTime); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 60); + } + 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 OverlapUnits. + @param OverlapUnits OverlapUnits */ + public void setOverlapUnits (int OverlapUnits) + { + set_Value (COLUMNNAME_OverlapUnits, Integer.valueOf(OverlapUnits)); + } + + /** Get OverlapUnits. + @return OverlapUnits */ + public int getOverlapUnits () + { + Integer ii = (Integer)get_Value(COLUMNNAME_OverlapUnits); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Priority. + @param Priority + Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (int Priority) + { + set_Value (COLUMNNAME_Priority, Integer.valueOf(Priority)); + } + + /** Get Priority. + @return Indicates if this request is of a high, medium or low priority. + */ + public int getPriority () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Priority); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set QueuingTime. + @param QueuingTime QueuingTime */ + public void setQueuingTime (int QueuingTime) + { + set_Value (COLUMNNAME_QueuingTime, Integer.valueOf(QueuingTime)); + } + + /** Get QueuingTime. + @return QueuingTime */ + public int getQueuingTime () + { + Integer ii = (Integer)get_Value(COLUMNNAME_QueuingTime); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_MailText getR_MailText() throws Exception + { + Class clazz = MTable.getClass(I_R_MailText.Table_Name); + I_R_MailText result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_R_MailText)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_MailText_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Mail Template. + @param R_MailText_ID + Text templates for mailings + */ + public void setR_MailText_ID (int R_MailText_ID) + { + if (R_MailText_ID < 1) + set_Value (COLUMNNAME_R_MailText_ID, null); + else + set_Value (COLUMNNAME_R_MailText_ID, Integer.valueOf(R_MailText_ID)); + } + + /** Get Mail Template. + @return Text templates for mailings + */ + public int getR_MailText_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_MailText_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_S_Resource getS_Resource() throws Exception + { + Class clazz = MTable.getClass(I_S_Resource.Table_Name); + I_S_Resource result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_S_Resource)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_Resource_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Resource. + @param S_Resource_ID + Resource + */ + public void setS_Resource_ID (int S_Resource_ID) + { + if (S_Resource_ID < 1) + set_Value (COLUMNNAME_S_Resource_ID, null); + else + set_Value (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID)); + } + + /** Get Resource. + @return Resource + */ + public int getS_Resource_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_Resource_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Setup Time. + @param SetupTime + Setup time before starting Production + */ + public void setSetupTime (int SetupTime) + { + set_Value (COLUMNNAME_SetupTime, Integer.valueOf(SetupTime)); + } + + /** Get Setup Time. + @return Setup time before starting Production + */ + public int getSetupTime () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SetupTime); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** SplitElement AD_Reference_ID=301 */ + public static final int SPLITELEMENT_AD_Reference_ID=301; + /** AND = A */ + public static final String SPLITELEMENT_AND = "A"; + /** XOR = X */ + public static final String SPLITELEMENT_XOR = "X"; + /** Set Split Element. + @param SplitElement + Semantics for multiple outgoing Transitions + */ + public void setSplitElement (String SplitElement) + { + if (SplitElement == null) throw new IllegalArgumentException ("SplitElement is mandatory"); + if (SplitElement.equals("A") || SplitElement.equals("X")); else throw new IllegalArgumentException ("SplitElement Invalid value - " + SplitElement + " - Reference_ID=301 - A - X"); + if (SplitElement.length() > 1) + { + log.warning("Length > 1 - truncated"); + SplitElement = SplitElement.substring(0, 1); + } + set_Value (COLUMNNAME_SplitElement, SplitElement); + } + + /** Get Split Element. + @return Semantics for multiple outgoing Transitions + */ + public String getSplitElement () + { + return (String)get_Value(COLUMNNAME_SplitElement); + } + + /** StartMode AD_Reference_ID=303 */ + public static final int STARTMODE_AD_Reference_ID=303; + /** Automatic = A */ + public static final String STARTMODE_Automatic = "A"; + /** Manual = M */ + public static final String STARTMODE_Manual = "M"; + /** Set Start Mode. + @param StartMode + Workflow Activity Start Mode + */ + public void setStartMode (String StartMode) + { + + if (StartMode == null || StartMode.equals("A") || StartMode.equals("M")); else throw new IllegalArgumentException ("StartMode Invalid value - " + StartMode + " - Reference_ID=303 - A - M"); + if (StartMode != null && StartMode.length() > 1) + { + log.warning("Length > 1 - truncated"); + StartMode = StartMode.substring(0, 1); + } + set_Value (COLUMNNAME_StartMode, StartMode); + } + + /** Get Start Mode. + @return Workflow Activity Start Mode + */ + public String getStartMode () + { + return (String)get_Value(COLUMNNAME_StartMode); + } + + /** SubflowExecution AD_Reference_ID=307 */ + public static final int SUBFLOWEXECUTION_AD_Reference_ID=307; + /** Asynchronously = A */ + public static final String SUBFLOWEXECUTION_Asynchronously = "A"; + /** Synchronously = S */ + public static final String SUBFLOWEXECUTION_Synchronously = "S"; + /** Set Subflow Execution. + @param SubflowExecution + Mode how the sub-workflow is executed + */ + public void setSubflowExecution (String SubflowExecution) + { + + if (SubflowExecution == null || SubflowExecution.equals("A") || SubflowExecution.equals("S")); else throw new IllegalArgumentException ("SubflowExecution Invalid value - " + SubflowExecution + " - Reference_ID=307 - A - S"); + if (SubflowExecution != null && SubflowExecution.length() > 1) + { + log.warning("Length > 1 - truncated"); + SubflowExecution = SubflowExecution.substring(0, 1); + } + set_Value (COLUMNNAME_SubflowExecution, SubflowExecution); + } + + /** Get Subflow Execution. + @return Mode how the sub-workflow is executed + */ + public String getSubflowExecution () + { + return (String)get_Value(COLUMNNAME_SubflowExecution); + } + + /** Set UnitsCycles. + @param UnitsCycles UnitsCycles */ + public void setUnitsCycles (BigDecimal UnitsCycles) + { + set_Value (COLUMNNAME_UnitsCycles, UnitsCycles); + } + + /** Get UnitsCycles. + @return UnitsCycles */ + public BigDecimal getUnitsCycles () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_UnitsCycles); + 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); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 40); + } + 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); + } + + /** Set Wait Time. + @param WaitTime + Time in minutes to wait (sleep) + */ + public void setWaitTime (int WaitTime) + { + set_Value (COLUMNNAME_WaitTime, Integer.valueOf(WaitTime)); + } + + /** Get Wait Time. + @return Time in minutes to wait (sleep) + */ + public int getWaitTime () + { + Integer ii = (Integer)get_Value(COLUMNNAME_WaitTime); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Waiting Time. + @param WaitingTime + Workflow Simulation Waiting time + */ + public void setWaitingTime (int WaitingTime) + { + set_Value (COLUMNNAME_WaitingTime, Integer.valueOf(WaitingTime)); + } + + /** Get Waiting Time. + @return Workflow Simulation Waiting time + */ + public int getWaitingTime () + { + Integer ii = (Integer)get_Value(COLUMNNAME_WaitingTime); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Workflow_ID AD_Reference_ID=174 */ + public static final int WORKFLOW_ID_AD_Reference_ID=174; + /** Set Workflow. + @param Workflow_ID + Workflow or tasks + */ + public void setWorkflow_ID (int Workflow_ID) + { + if (Workflow_ID < 1) + set_Value (COLUMNNAME_Workflow_ID, null); + else + set_Value (COLUMNNAME_Workflow_ID, Integer.valueOf(Workflow_ID)); + } + + /** Get Workflow. + @return Workflow or tasks + */ + public int getWorkflow_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Workflow_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Working Time. + @param WorkingTime + Workflow Simulation Execution Time + */ + public void setWorkingTime (int WorkingTime) + { + set_Value (COLUMNNAME_WorkingTime, Integer.valueOf(WorkingTime)); + } + + /** Get Working Time. + @return Workflow Simulation Execution Time + */ + public int getWorkingTime () + { + Integer ii = (Integer)get_Value(COLUMNNAME_WorkingTime); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set X Position. + @param XPosition + Absolute X (horizontal) position in 1/72 of an inch + */ + public void setXPosition (int XPosition) + { + set_Value (COLUMNNAME_XPosition, Integer.valueOf(XPosition)); + } + + /** Get X Position. + @return Absolute X (horizontal) position in 1/72 of an inch + */ + public int getXPosition () + { + Integer ii = (Integer)get_Value(COLUMNNAME_XPosition); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Y Position. + @param YPosition + Absolute Y (vertical) position in 1/72 of an inch + */ + public void setYPosition (int YPosition) + { + set_Value (COLUMNNAME_YPosition, Integer.valueOf(YPosition)); + } + + /** Get Y Position. + @return Absolute Y (vertical) position in 1/72 of an inch + */ + public int getYPosition () + { + Integer ii = (Integer)get_Value(COLUMNNAME_YPosition); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_AD_Workflow.java b/base/src/org/compiere/model/X_AD_Workflow.java new file mode 100644 index 0000000000..974494c418 --- /dev/null +++ b/base/src/org/compiere/model/X_AD_Workflow.java @@ -0,0 +1,1005 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for AD_Workflow + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_AD_Workflow (Properties ctx, int AD_Workflow_ID, String trxName) + { + super (ctx, AD_Workflow_ID, trxName); + /** if (AD_Workflow_ID == 0) + { + setAD_Workflow_ID (0); + setAccessLevel (null); + setAuthor (null); + setCost (0); + setDuration (0); + setEntityType (null); +// U + setIsDefault (false); + setIsValid (false); + setName (null); + setPublishStatus (null); +// U + setValue (null); + setVersion (0); + setWaitingTime (0); + setWorkflowType (null); +// G + setWorkingTime (0); + } */ + } + + /** Load Constructor */ + public X_AD_Workflow (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + 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_AD_Workflow[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Table getAD_Table() throws Exception + { + Class clazz = MTable.getClass(I_AD_Table.Table_Name); + I_AD_Table result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_Node getAD_WF_Node() throws Exception + { + Class clazz = MTable.getClass(I_AD_WF_Node.Table_Name); + I_AD_WF_Node result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_WF_Node)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Node_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Node. + @param AD_WF_Node_ID + Workflow Node (activity), step or process + */ + public void setAD_WF_Node_ID (int AD_WF_Node_ID) + { + if (AD_WF_Node_ID < 1) + set_Value (COLUMNNAME_AD_WF_Node_ID, null); + else + set_Value (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID)); + } + + /** Get Node. + @return Workflow Node (activity), step or process + */ + public int getAD_WF_Node_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Node_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WF_Responsible getAD_WF_Responsible() throws Exception + { + Class clazz = MTable.getClass(I_AD_WF_Responsible.Table_Name); + I_AD_WF_Responsible result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_WF_Responsible)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WF_Responsible_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Workflow Responsible. + @param AD_WF_Responsible_ID + Responsible for Workflow Execution + */ + public void setAD_WF_Responsible_ID (int AD_WF_Responsible_ID) + { + if (AD_WF_Responsible_ID < 1) + set_Value (COLUMNNAME_AD_WF_Responsible_ID, null); + else + set_Value (COLUMNNAME_AD_WF_Responsible_ID, Integer.valueOf(AD_WF_Responsible_ID)); + } + + /** Get Workflow Responsible. + @return Responsible for Workflow Execution + */ + public int getAD_WF_Responsible_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Responsible_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_WorkflowProcessor getAD_WorkflowProcessor() throws Exception + { + Class clazz = MTable.getClass(I_AD_WorkflowProcessor.Table_Name); + I_AD_WorkflowProcessor result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_WorkflowProcessor)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_WorkflowProcessor_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Workflow Processor. + @param AD_WorkflowProcessor_ID + Workflow Processor Server + */ + public void setAD_WorkflowProcessor_ID (int AD_WorkflowProcessor_ID) + { + if (AD_WorkflowProcessor_ID < 1) + set_Value (COLUMNNAME_AD_WorkflowProcessor_ID, null); + else + set_Value (COLUMNNAME_AD_WorkflowProcessor_ID, Integer.valueOf(AD_WorkflowProcessor_ID)); + } + + /** Get Workflow Processor. + @return Workflow Processor Server + */ + public int getAD_WorkflowProcessor_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_WorkflowProcessor_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Workflow. + @param AD_Workflow_ID + Workflow or combination of tasks + */ + public void setAD_Workflow_ID (int AD_Workflow_ID) + { + if (AD_Workflow_ID < 1) + throw new IllegalArgumentException ("AD_Workflow_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_Workflow_ID, Integer.valueOf(AD_Workflow_ID)); + } + + /** Get Workflow. + @return Workflow or combination of tasks + */ + public int getAD_Workflow_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Workflow_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** AccessLevel AD_Reference_ID=5 */ + public static final int ACCESSLEVEL_AD_Reference_ID=5; + /** Organization = 1 */ + public static final String ACCESSLEVEL_Organization = "1"; + /** Client+Organization = 3 */ + public static final String ACCESSLEVEL_ClientPlusOrganization = "3"; + /** System only = 4 */ + public static final String ACCESSLEVEL_SystemOnly = "4"; + /** All = 7 */ + public static final String ACCESSLEVEL_All = "7"; + /** System+Client = 6 */ + public static final String ACCESSLEVEL_SystemPlusClient = "6"; + /** Client only = 2 */ + public static final String ACCESSLEVEL_ClientOnly = "2"; + /** Set Data Access Level. + @param AccessLevel + Access Level required + */ + public void setAccessLevel (String AccessLevel) + { + if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory"); + if (AccessLevel.equals("1") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("7") || AccessLevel.equals("6") || AccessLevel.equals("2")); else throw new IllegalArgumentException ("AccessLevel Invalid value - " + AccessLevel + " - Reference_ID=5 - 1 - 3 - 4 - 7 - 6 - 2"); + if (AccessLevel.length() > 1) + { + log.warning("Length > 1 - truncated"); + AccessLevel = AccessLevel.substring(0, 1); + } + set_Value (COLUMNNAME_AccessLevel, AccessLevel); + } + + /** Get Data Access Level. + @return Access Level required + */ + public String getAccessLevel () + { + return (String)get_Value(COLUMNNAME_AccessLevel); + } + + /** Set Author. + @param Author + Author/Creator of the Entity + */ + public void setAuthor (String Author) + { + if (Author == null) + throw new IllegalArgumentException ("Author is mandatory."); + + if (Author.length() > 20) + { + log.warning("Length > 20 - truncated"); + Author = Author.substring(0, 20); + } + set_Value (COLUMNNAME_Author, Author); + } + + /** Get Author. + @return Author/Creator of the Entity + */ + public String getAuthor () + { + return (String)get_Value(COLUMNNAME_Author); + } + + /** Set Cost. + @param Cost + Cost information + */ + public void setCost (int Cost) + { + set_Value (COLUMNNAME_Cost, Integer.valueOf(Cost)); + } + + /** Get Cost. + @return Cost information + */ + public int getCost () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Cost); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + 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 Value Logic. + @param DocValueLogic + Logic to determine Workflow Start - If true, a workflow process is started for the document + */ + public void setDocValueLogic (String DocValueLogic) + { + + if (DocValueLogic != null && DocValueLogic.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + DocValueLogic = DocValueLogic.substring(0, 2000); + } + set_Value (COLUMNNAME_DocValueLogic, DocValueLogic); + } + + /** Get Document Value Logic. + @return Logic to determine Workflow Start - If true, a workflow process is started for the document + */ + public String getDocValueLogic () + { + return (String)get_Value(COLUMNNAME_DocValueLogic); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + + if (DocumentNo != null && DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 30); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Set Duration. + @param Duration + Normal Duration in Duration Unit + */ + public void setDuration (int Duration) + { + set_Value (COLUMNNAME_Duration, Integer.valueOf(Duration)); + } + + /** Get Duration. + @return Normal Duration in Duration Unit + */ + public int getDuration () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Duration); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** DurationUnit AD_Reference_ID=299 */ + public static final int DURATIONUNIT_AD_Reference_ID=299; + /** Year = Y */ + public static final String DURATIONUNIT_Year = "Y"; + /** Month = M */ + public static final String DURATIONUNIT_Month = "M"; + /** Day = D */ + public static final String DURATIONUNIT_Day = "D"; + /** hour = h */ + public static final String DURATIONUNIT_Hour = "h"; + /** minute = m */ + public static final String DURATIONUNIT_Minute = "m"; + /** second = s */ + public static final String DURATIONUNIT_Second = "s"; + /** Set Duration Unit. + @param DurationUnit + Unit of Duration + */ + public void setDurationUnit (String DurationUnit) + { + + if (DurationUnit == null || DurationUnit.equals("Y") || DurationUnit.equals("M") || DurationUnit.equals("D") || DurationUnit.equals("h") || DurationUnit.equals("m") || DurationUnit.equals("s")); else throw new IllegalArgumentException ("DurationUnit Invalid value - " + DurationUnit + " - Reference_ID=299 - Y - M - D - h - m - s"); + if (DurationUnit != null && DurationUnit.length() > 1) + { + log.warning("Length > 1 - truncated"); + DurationUnit = DurationUnit.substring(0, 1); + } + set_Value (COLUMNNAME_DurationUnit, DurationUnit); + } + + /** Get Duration Unit. + @return Unit of Duration + */ + public String getDurationUnit () + { + return (String)get_Value(COLUMNNAME_DurationUnit); + } + + /** EntityType AD_Reference_ID=389 */ + public static final int ENTITYTYPE_AD_Reference_ID=389; + /** Set Entity Type. + @param EntityType + Dictionary Entity Type; Determines ownership and synchronization + */ + public void setEntityType (String EntityType) + { + + if (EntityType.length() > 40) + { + log.warning("Length > 40 - truncated"); + EntityType = EntityType.substring(0, 40); + } + set_Value (COLUMNNAME_EntityType, EntityType); + } + + /** Get Entity Type. + @return Dictionary Entity Type; Determines ownership and synchronization + */ + public String getEntityType () + { + return (String)get_Value(COLUMNNAME_EntityType); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 2000); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Valid. + @param IsValid + Element is valid + */ + public void setIsValid (boolean IsValid) + { + set_Value (COLUMNNAME_IsValid, Boolean.valueOf(IsValid)); + } + + /** Get Valid. + @return Element is valid + */ + public boolean isValid () + { + Object oo = get_Value(COLUMNNAME_IsValid); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Duration Limit. + @param Limit + Maximum Duration in Duration Unit + */ + public void setLimit (int Limit) + { + set_Value (COLUMNNAME_Limit, Integer.valueOf(Limit)); + } + + /** Get Duration Limit. + @return Maximum Duration in Duration Unit + */ + public int getLimit () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Limit); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set MovingTime. + @param MovingTime MovingTime */ + public void setMovingTime (int MovingTime) + { + set_Value (COLUMNNAME_MovingTime, Integer.valueOf(MovingTime)); + } + + /** Get MovingTime. + @return MovingTime */ + public int getMovingTime () + { + Integer ii = (Integer)get_Value(COLUMNNAME_MovingTime); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 60); + } + 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 Priority. + @param Priority + Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (int Priority) + { + set_Value (COLUMNNAME_Priority, Integer.valueOf(Priority)); + } + + /** Get Priority. + @return Indicates if this request is of a high, medium or low priority. + */ + public int getPriority () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Priority); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** ProcessType AD_Reference_ID=53224 */ + public static final int PROCESSTYPE_AD_Reference_ID=53224; + /** Batch Flow = BF */ + public static final String PROCESSTYPE_BatchFlow = "BF"; + /** Continuous Flow = CF */ + public static final String PROCESSTYPE_ContinuousFlow = "CF"; + /** Dedicate Repetititive Flow = DR */ + public static final String PROCESSTYPE_DedicateRepetititiveFlow = "DR"; + /** Job Shop = JS */ + public static final String PROCESSTYPE_JobShop = "JS"; + /** Mixed Repetitive Flow = MR */ + public static final String PROCESSTYPE_MixedRepetitiveFlow = "MR"; + /** Plant = PL */ + public static final String PROCESSTYPE_Plant = "PL"; + /** Set ProcessType. + @param ProcessType ProcessType */ + public void setProcessType (String ProcessType) + { + + if (ProcessType == null || ProcessType.equals("BF") || ProcessType.equals("CF") || ProcessType.equals("DR") || ProcessType.equals("JS") || ProcessType.equals("MR") || ProcessType.equals("PL")); else throw new IllegalArgumentException ("ProcessType Invalid value - " + ProcessType + " - Reference_ID=53224 - BF - CF - DR - JS - MR - PL"); + if (ProcessType != null && ProcessType.length() > 2) + { + log.warning("Length > 2 - truncated"); + ProcessType = ProcessType.substring(0, 2); + } + set_Value (COLUMNNAME_ProcessType, ProcessType); + } + + /** Get ProcessType. + @return ProcessType */ + public String getProcessType () + { + return (String)get_Value(COLUMNNAME_ProcessType); + } + + /** PublishStatus AD_Reference_ID=310 */ + public static final int PUBLISHSTATUS_AD_Reference_ID=310; + /** Released = R */ + public static final String PUBLISHSTATUS_Released = "R"; + /** Test = T */ + public static final String PUBLISHSTATUS_Test = "T"; + /** Under Revision = U */ + public static final String PUBLISHSTATUS_UnderRevision = "U"; + /** Void = V */ + public static final String PUBLISHSTATUS_Void = "V"; + /** Set Publication Status. + @param PublishStatus + Status of Publication + */ + public void setPublishStatus (String PublishStatus) + { + if (PublishStatus == null) throw new IllegalArgumentException ("PublishStatus is mandatory"); + if (PublishStatus.equals("R") || PublishStatus.equals("T") || PublishStatus.equals("U") || PublishStatus.equals("V")); else throw new IllegalArgumentException ("PublishStatus Invalid value - " + PublishStatus + " - Reference_ID=310 - R - T - U - V"); + if (PublishStatus.length() > 1) + { + log.warning("Length > 1 - truncated"); + PublishStatus = PublishStatus.substring(0, 1); + } + set_Value (COLUMNNAME_PublishStatus, PublishStatus); + } + + /** Get Publication Status. + @return Status of Publication + */ + public String getPublishStatus () + { + return (String)get_Value(COLUMNNAME_PublishStatus); + } + + /** Set QtyBatchSize. + @param QtyBatchSize QtyBatchSize */ + public void setQtyBatchSize (BigDecimal QtyBatchSize) + { + set_Value (COLUMNNAME_QtyBatchSize, QtyBatchSize); + } + + /** Get QtyBatchSize. + @return QtyBatchSize */ + public BigDecimal getQtyBatchSize () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyBatchSize); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set QueuingTime. + @param QueuingTime QueuingTime */ + public void setQueuingTime (int QueuingTime) + { + set_Value (COLUMNNAME_QueuingTime, Integer.valueOf(QueuingTime)); + } + + /** Get QueuingTime. + @return QueuingTime */ + public int getQueuingTime () + { + Integer ii = (Integer)get_Value(COLUMNNAME_QueuingTime); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_S_Resource getS_Resource() throws Exception + { + Class clazz = MTable.getClass(I_S_Resource.Table_Name); + I_S_Resource result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_S_Resource)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_Resource_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Resource. + @param S_Resource_ID + Resource + */ + public void setS_Resource_ID (int S_Resource_ID) + { + if (S_Resource_ID < 1) + set_Value (COLUMNNAME_S_Resource_ID, null); + else + set_Value (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID)); + } + + /** Get Resource. + @return Resource + */ + public int getS_Resource_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_Resource_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Setup Time. + @param SetupTime + Setup time before starting Production + */ + public void setSetupTime (int SetupTime) + { + set_Value (COLUMNNAME_SetupTime, Integer.valueOf(SetupTime)); + } + + /** Get Setup Time. + @return Setup time before starting Production + */ + public int getSetupTime () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SetupTime); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** 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); + } + + /** Set Validate Workflow. + @param ValidateWorkflow Validate Workflow */ + public void setValidateWorkflow (String ValidateWorkflow) + { + + if (ValidateWorkflow != null && ValidateWorkflow.length() > 1) + { + log.warning("Length > 1 - truncated"); + ValidateWorkflow = ValidateWorkflow.substring(0, 1); + } + set_Value (COLUMNNAME_ValidateWorkflow, ValidateWorkflow); + } + + /** Get Validate Workflow. + @return Validate Workflow */ + public String getValidateWorkflow () + { + return (String)get_Value(COLUMNNAME_ValidateWorkflow); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 40); + } + 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); + } + + /** Set Version. + @param Version + Version of the table definition + */ + public void setVersion (int Version) + { + set_Value (COLUMNNAME_Version, Integer.valueOf(Version)); + } + + /** Get Version. + @return Version of the table definition + */ + public int getVersion () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Version); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Waiting Time. + @param WaitingTime + Workflow Simulation Waiting time + */ + public void setWaitingTime (int WaitingTime) + { + set_Value (COLUMNNAME_WaitingTime, Integer.valueOf(WaitingTime)); + } + + /** Get Waiting Time. + @return Workflow Simulation Waiting time + */ + public int getWaitingTime () + { + Integer ii = (Integer)get_Value(COLUMNNAME_WaitingTime); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** WorkflowType AD_Reference_ID=328 */ + public static final int WORKFLOWTYPE_AD_Reference_ID=328; + /** General = G */ + public static final String WORKFLOWTYPE_General = "G"; + /** Document Process = P */ + public static final String WORKFLOWTYPE_DocumentProcess = "P"; + /** Document Value = V */ + public static final String WORKFLOWTYPE_DocumentValue = "V"; + /** Manufacturing = M */ + public static final String WORKFLOWTYPE_Manufacturing = "M"; + /** Quality = Q */ + public static final String WORKFLOWTYPE_Quality = "Q"; + /** Set Workflow Type. + @param WorkflowType + Type of Worflow + */ + public void setWorkflowType (String WorkflowType) + { + if (WorkflowType == null) throw new IllegalArgumentException ("WorkflowType is mandatory"); + if (WorkflowType.equals("G") || WorkflowType.equals("P") || WorkflowType.equals("V") || WorkflowType.equals("M") || WorkflowType.equals("Q")); else throw new IllegalArgumentException ("WorkflowType Invalid value - " + WorkflowType + " - Reference_ID=328 - G - P - V - M - Q"); + if (WorkflowType.length() > 1) + { + log.warning("Length > 1 - truncated"); + WorkflowType = WorkflowType.substring(0, 1); + } + set_Value (COLUMNNAME_WorkflowType, WorkflowType); + } + + /** Get Workflow Type. + @return Type of Worflow + */ + public String getWorkflowType () + { + return (String)get_Value(COLUMNNAME_WorkflowType); + } + + /** Set Working Time. + @param WorkingTime + Workflow Simulation Execution Time + */ + public void setWorkingTime (int WorkingTime) + { + set_Value (COLUMNNAME_WorkingTime, Integer.valueOf(WorkingTime)); + } + + /** Get Working Time. + @return Workflow Simulation Execution Time + */ + public int getWorkingTime () + { + Integer ii = (Integer)get_Value(COLUMNNAME_WorkingTime); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_AcctSchema.java b/base/src/org/compiere/model/X_C_AcctSchema.java new file mode 100644 index 0000000000..e7b3d6371c --- /dev/null +++ b/base/src/org/compiere/model/X_C_AcctSchema.java @@ -0,0 +1,851 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.sql.ResultSet; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.KeyNamePair; + +/** Generated Model for C_AcctSchema + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_C_AcctSchema extends PO implements I_C_AcctSchema, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_AcctSchema (Properties ctx, int C_AcctSchema_ID, String trxName) + { + super (ctx, C_AcctSchema_ID, trxName); + /** if (C_AcctSchema_ID == 0) + { + setAutoPeriodControl (false); + setC_AcctSchema_ID (0); + setC_Currency_ID (0); + setCommitmentType (null); +// N + setCostingLevel (null); +// C + setCostingMethod (null); +// S + setGAAP (null); + setHasAlias (false); + setHasCombination (false); + setIsAccrual (true); +// Y + setIsAdjustCOGS (false); + setIsDiscountCorrectsTax (false); + setIsExplicitCostAdjustment (false); +// N + setIsPostServices (false); +// N + setIsTradeDiscountPosted (false); + setM_CostType_ID (0); + setName (null); + setSeparator (null); +// - + setTaxCorrectionType (null); + } */ + } + + /** Load Constructor */ + public X_C_AcctSchema (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + 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_AcctSchema[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** AD_OrgOnly_ID AD_Reference_ID=322 */ + public static final int AD_ORGONLY_ID_AD_Reference_ID=322; + /** Set Only Organization. + @param AD_OrgOnly_ID + Create posting entries only for this organization + */ + public void setAD_OrgOnly_ID (int AD_OrgOnly_ID) + { + if (AD_OrgOnly_ID < 1) + set_Value (COLUMNNAME_AD_OrgOnly_ID, null); + else + set_Value (COLUMNNAME_AD_OrgOnly_ID, Integer.valueOf(AD_OrgOnly_ID)); + } + + /** Get Only Organization. + @return Create posting entries only for this organization + */ + public int getAD_OrgOnly_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgOnly_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Automatic Period Control. + @param AutoPeriodControl + If selected, the periods are automatically opened and closed + */ + public void setAutoPeriodControl (boolean AutoPeriodControl) + { + set_Value (COLUMNNAME_AutoPeriodControl, Boolean.valueOf(AutoPeriodControl)); + } + + /** Get Automatic Period Control. + @return If selected, the periods are automatically opened and closed + */ + public boolean isAutoPeriodControl () + { + Object oo = get_Value(COLUMNNAME_AutoPeriodControl); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getC_Currency() throws Exception + { + Class clazz = MTable.getClass(I_C_Currency.Table_Name); + I_C_Currency result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + 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(); + } + + public I_C_Period getC_Period() throws Exception + { + Class clazz = MTable.getClass(I_C_Period.Table_Name); + I_C_Period result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Period)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Period_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Period. + @param C_Period_ID + Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID) + { + if (C_Period_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Period_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + } + + /** Get Period. + @return Period of the Calendar + */ + public int getC_Period_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Period_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** CommitmentType AD_Reference_ID=359 */ + public static final int COMMITMENTTYPE_AD_Reference_ID=359; + /** PO Commitment only = C */ + public static final String COMMITMENTTYPE_POCommitmentOnly = "C"; + /** PO Commitment & Reservation = B */ + public static final String COMMITMENTTYPE_POCommitmentReservation = "B"; + /** None = N */ + public static final String COMMITMENTTYPE_None = "N"; + /** PO/SO Commitment & Reservation = A */ + public static final String COMMITMENTTYPE_POSOCommitmentReservation = "A"; + /** SO Commitment only = S */ + public static final String COMMITMENTTYPE_SOCommitmentOnly = "S"; + /** PO/SO Commitment = O */ + public static final String COMMITMENTTYPE_POSOCommitment = "O"; + /** Set Commitment Type. + @param CommitmentType + Create Commitment and/or Reservations for Budget Control + */ + public void setCommitmentType (String CommitmentType) + { + if (CommitmentType == null) throw new IllegalArgumentException ("CommitmentType is mandatory"); + if (CommitmentType.equals("C") || CommitmentType.equals("B") || CommitmentType.equals("N") || CommitmentType.equals("A") || CommitmentType.equals("S") || CommitmentType.equals("O")); else throw new IllegalArgumentException ("CommitmentType Invalid value - " + CommitmentType + " - Reference_ID=359 - C - B - N - A - S - O"); + if (CommitmentType.length() > 1) + { + log.warning("Length > 1 - truncated"); + CommitmentType = CommitmentType.substring(0, 1); + } + set_Value (COLUMNNAME_CommitmentType, CommitmentType); + } + + /** Get Commitment Type. + @return Create Commitment and/or Reservations for Budget Control + */ + public String getCommitmentType () + { + return (String)get_Value(COLUMNNAME_CommitmentType); + } + + /** CostingLevel AD_Reference_ID=355 */ + public static final int COSTINGLEVEL_AD_Reference_ID=355; + /** Client = C */ + public static final String COSTINGLEVEL_Client = "C"; + /** Organization = O */ + public static final String COSTINGLEVEL_Organization = "O"; + /** Batch/Lot = B */ + public static final String COSTINGLEVEL_BatchLot = "B"; + /** Set Costing Level. + @param CostingLevel + The lowest level to accumulate Costing Information + */ + public void setCostingLevel (String CostingLevel) + { + if (CostingLevel == null) throw new IllegalArgumentException ("CostingLevel is mandatory"); + if (CostingLevel.equals("C") || CostingLevel.equals("O") || CostingLevel.equals("B")); else throw new IllegalArgumentException ("CostingLevel Invalid value - " + CostingLevel + " - Reference_ID=355 - C - O - B"); + if (CostingLevel.length() > 1) + { + log.warning("Length > 1 - truncated"); + CostingLevel = CostingLevel.substring(0, 1); + } + set_Value (COLUMNNAME_CostingLevel, CostingLevel); + } + + /** Get Costing Level. + @return The lowest level to accumulate Costing Information + */ + public String getCostingLevel () + { + return (String)get_Value(COLUMNNAME_CostingLevel); + } + + /** CostingMethod AD_Reference_ID=122 */ + public static final int COSTINGMETHOD_AD_Reference_ID=122; + /** Standard Costing = S */ + public static final String COSTINGMETHOD_StandardCosting = "S"; + /** Average PO = A */ + public static final String COSTINGMETHOD_AveragePO = "A"; + /** Lifo = L */ + public static final String COSTINGMETHOD_Lifo = "L"; + /** Fifo = F */ + public static final String COSTINGMETHOD_Fifo = "F"; + /** Last PO Price = p */ + public static final String COSTINGMETHOD_LastPOPrice = "p"; + /** Average Invoice = I */ + public static final String COSTINGMETHOD_AverageInvoice = "I"; + /** Last Invoice = i */ + public static final String COSTINGMETHOD_LastInvoice = "i"; + /** User Defined = U */ + public static final String COSTINGMETHOD_UserDefined = "U"; + /** _ = x */ + public static final String COSTINGMETHOD__ = "x"; + /** Set Costing Method. + @param CostingMethod + Indicates how Costs will be calculated + */ + public void setCostingMethod (String CostingMethod) + { + if (CostingMethod == null) throw new IllegalArgumentException ("CostingMethod is mandatory"); + if (CostingMethod.equals("S") || CostingMethod.equals("A") || CostingMethod.equals("L") || CostingMethod.equals("F") || CostingMethod.equals("p") || CostingMethod.equals("I") || CostingMethod.equals("i") || CostingMethod.equals("U") || CostingMethod.equals("x")); else throw new IllegalArgumentException ("CostingMethod Invalid value - " + CostingMethod + " - Reference_ID=122 - S - A - L - F - p - I - i - U - x"); + if (CostingMethod.length() > 1) + { + log.warning("Length > 1 - truncated"); + CostingMethod = CostingMethod.substring(0, 1); + } + set_Value (COLUMNNAME_CostingMethod, CostingMethod); + } + + /** Get Costing Method. + @return Indicates how Costs will be calculated + */ + public String getCostingMethod () + { + return (String)get_Value(COLUMNNAME_CostingMethod); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** GAAP AD_Reference_ID=123 */ + public static final int GAAP_AD_Reference_ID=123; + /** International GAAP = UN */ + public static final String GAAP_InternationalGAAP = "UN"; + /** US GAAP = US */ + public static final String GAAP_USGAAP = "US"; + /** German HGB = DE */ + public static final String GAAP_GermanHGB = "DE"; + /** French Accounting Standard = FR */ + public static final String GAAP_FrenchAccountingStandard = "FR"; + /** Custom Accounting Rules = XX */ + public static final String GAAP_CustomAccountingRules = "XX"; + /** Set GAAP. + @param GAAP + Generally Accepted Accounting Principles + */ + public void setGAAP (String GAAP) + { + if (GAAP == null) throw new IllegalArgumentException ("GAAP is mandatory"); + if (GAAP.equals("UN") || GAAP.equals("US") || GAAP.equals("DE") || GAAP.equals("FR") || GAAP.equals("XX")); else throw new IllegalArgumentException ("GAAP Invalid value - " + GAAP + " - Reference_ID=123 - UN - US - DE - FR - XX"); + if (GAAP.length() > 2) + { + log.warning("Length > 2 - truncated"); + GAAP = GAAP.substring(0, 2); + } + set_Value (COLUMNNAME_GAAP, GAAP); + } + + /** Get GAAP. + @return Generally Accepted Accounting Principles + */ + public String getGAAP () + { + return (String)get_Value(COLUMNNAME_GAAP); + } + + /** Set Use Account Alias. + @param HasAlias + Ability to select (partial) account combinations by an Alias + */ + public void setHasAlias (boolean HasAlias) + { + set_Value (COLUMNNAME_HasAlias, Boolean.valueOf(HasAlias)); + } + + /** Get Use Account Alias. + @return Ability to select (partial) account combinations by an Alias + */ + public boolean isHasAlias () + { + Object oo = get_Value(COLUMNNAME_HasAlias); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Use Account Combination Control. + @param HasCombination + Combination of account elements are checked + */ + public void setHasCombination (boolean HasCombination) + { + set_Value (COLUMNNAME_HasCombination, Boolean.valueOf(HasCombination)); + } + + /** Get Use Account Combination Control. + @return Combination of account elements are checked + */ + public boolean isHasCombination () + { + Object oo = get_Value(COLUMNNAME_HasCombination); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Accrual. + @param IsAccrual + Indicates if Accrual or Cash Based accounting will be used + */ + public void setIsAccrual (boolean IsAccrual) + { + set_Value (COLUMNNAME_IsAccrual, Boolean.valueOf(IsAccrual)); + } + + /** Get Accrual. + @return Indicates if Accrual or Cash Based accounting will be used + */ + public boolean isAccrual () + { + Object oo = get_Value(COLUMNNAME_IsAccrual); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Adjust COGS. + @param IsAdjustCOGS + Adjust Cost of Good Sold + */ + public void setIsAdjustCOGS (boolean IsAdjustCOGS) + { + set_Value (COLUMNNAME_IsAdjustCOGS, Boolean.valueOf(IsAdjustCOGS)); + } + + /** Get Adjust COGS. + @return Adjust Cost of Good Sold + */ + public boolean isAdjustCOGS () + { + Object oo = get_Value(COLUMNNAME_IsAdjustCOGS); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Allow Negative Posting. + @param IsAllowNegativePosting + Allow to post negative accounting values + */ + public void setIsAllowNegativePosting (boolean IsAllowNegativePosting) + { + set_Value (COLUMNNAME_IsAllowNegativePosting, Boolean.valueOf(IsAllowNegativePosting)); + } + + /** Get Allow Negative Posting. + @return Allow to post negative accounting values + */ + public boolean isAllowNegativePosting () + { + Object oo = get_Value(COLUMNNAME_IsAllowNegativePosting); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Correct tax for Discounts/Charges. + @param IsDiscountCorrectsTax + Correct the tax for payment discount and charges + */ + public void setIsDiscountCorrectsTax (boolean IsDiscountCorrectsTax) + { + set_Value (COLUMNNAME_IsDiscountCorrectsTax, Boolean.valueOf(IsDiscountCorrectsTax)); + } + + /** Get Correct tax for Discounts/Charges. + @return Correct the tax for payment discount and charges + */ + public boolean isDiscountCorrectsTax () + { + Object oo = get_Value(COLUMNNAME_IsDiscountCorrectsTax); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Explicit Cost Adjustment. + @param IsExplicitCostAdjustment + Post the cost adjustment explicitly + */ + public void setIsExplicitCostAdjustment (boolean IsExplicitCostAdjustment) + { + set_Value (COLUMNNAME_IsExplicitCostAdjustment, Boolean.valueOf(IsExplicitCostAdjustment)); + } + + /** Get Explicit Cost Adjustment. + @return Post the cost adjustment explicitly + */ + public boolean isExplicitCostAdjustment () + { + Object oo = get_Value(COLUMNNAME_IsExplicitCostAdjustment); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Post if Clearing Equal. + @param IsPostIfClearingEqual + This flag controls if Adempiere must post when clearing (transit) and final accounts are the same + */ + public void setIsPostIfClearingEqual (boolean IsPostIfClearingEqual) + { + set_Value (COLUMNNAME_IsPostIfClearingEqual, Boolean.valueOf(IsPostIfClearingEqual)); + } + + /** Get Post if Clearing Equal. + @return This flag controls if Adempiere must post when clearing (transit) and final accounts are the same + */ + public boolean isPostIfClearingEqual () + { + Object oo = get_Value(COLUMNNAME_IsPostIfClearingEqual); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Post Services Separately. + @param IsPostServices + Differentiate between Services and Product Receivable/Payables + */ + public void setIsPostServices (boolean IsPostServices) + { + set_Value (COLUMNNAME_IsPostServices, Boolean.valueOf(IsPostServices)); + } + + /** Get Post Services Separately. + @return Differentiate between Services and Product Receivable/Payables + */ + public boolean isPostServices () + { + Object oo = get_Value(COLUMNNAME_IsPostServices); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Post Trade Discount. + @param IsTradeDiscountPosted + Generate postings for trade discounts + */ + public void setIsTradeDiscountPosted (boolean IsTradeDiscountPosted) + { + set_Value (COLUMNNAME_IsTradeDiscountPosted, Boolean.valueOf(IsTradeDiscountPosted)); + } + + /** Get Post Trade Discount. + @return Generate postings for trade discounts + */ + public boolean isTradeDiscountPosted () + { + Object oo = get_Value(COLUMNNAME_IsTradeDiscountPosted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_CostType getM_CostType() throws Exception + { + Class clazz = MTable.getClass(I_M_CostType.Table_Name); + I_M_CostType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_CostType)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_CostType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Cost Type. + @param M_CostType_ID + Type of Cost (e.g. Current, Plan, Future) + */ + public void setM_CostType_ID (int M_CostType_ID) + { + if (M_CostType_ID < 1) + throw new IllegalArgumentException ("M_CostType_ID is mandatory."); + set_Value (COLUMNNAME_M_CostType_ID, Integer.valueOf(M_CostType_ID)); + } + + /** Get Cost Type. + @return Type of Cost (e.g. Current, Plan, Future) + */ + public int getM_CostType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_CostType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 60); + } + 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 Future Days. + @param Period_OpenFuture + Number of days to be able to post to a future date (based on system date) + */ + public void setPeriod_OpenFuture (int Period_OpenFuture) + { + set_Value (COLUMNNAME_Period_OpenFuture, Integer.valueOf(Period_OpenFuture)); + } + + /** Get Future Days. + @return Number of days to be able to post to a future date (based on system date) + */ + public int getPeriod_OpenFuture () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Period_OpenFuture); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set History Days. + @param Period_OpenHistory + Number of days to be able to post in the past (based on system date) + */ + public void setPeriod_OpenHistory (int Period_OpenHistory) + { + set_Value (COLUMNNAME_Period_OpenHistory, Integer.valueOf(Period_OpenHistory)); + } + + /** Get History Days. + @return Number of days to be able to post in the past (based on system date) + */ + public int getPeriod_OpenHistory () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Period_OpenHistory); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. + @return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Element Separator. + @param Separator + Element Separator + */ + public void setSeparator (String Separator) + { + if (Separator == null) + throw new IllegalArgumentException ("Separator is mandatory."); + + if (Separator.length() > 1) + { + log.warning("Length > 1 - truncated"); + Separator = Separator.substring(0, 1); + } + set_Value (COLUMNNAME_Separator, Separator); + } + + /** Get Element Separator. + @return Element Separator + */ + public String getSeparator () + { + return (String)get_Value(COLUMNNAME_Separator); + } + + /** TaxCorrectionType AD_Reference_ID=392 */ + public static final int TAXCORRECTIONTYPE_AD_Reference_ID=392; + /** None = N */ + public static final String TAXCORRECTIONTYPE_None = "N"; + /** Write-off only = W */ + public static final String TAXCORRECTIONTYPE_Write_OffOnly = "W"; + /** Discount only = D */ + public static final String TAXCORRECTIONTYPE_DiscountOnly = "D"; + /** Write-off and Discount = B */ + public static final String TAXCORRECTIONTYPE_Write_OffAndDiscount = "B"; + /** Set Tax Correction. + @param TaxCorrectionType + Type of Tax Correction + */ + public void setTaxCorrectionType (String TaxCorrectionType) + { + if (TaxCorrectionType == null) throw new IllegalArgumentException ("TaxCorrectionType is mandatory"); + if (TaxCorrectionType.equals("N") || TaxCorrectionType.equals("W") || TaxCorrectionType.equals("D") || TaxCorrectionType.equals("B")); else throw new IllegalArgumentException ("TaxCorrectionType Invalid value - " + TaxCorrectionType + " - Reference_ID=392 - N - W - D - B"); + if (TaxCorrectionType.length() > 1) + { + log.warning("Length > 1 - truncated"); + TaxCorrectionType = TaxCorrectionType.substring(0, 1); + } + set_Value (COLUMNNAME_TaxCorrectionType, TaxCorrectionType); + } + + /** Get Tax Correction. + @return Type of Tax Correction + */ + public String getTaxCorrectionType () + { + return (String)get_Value(COLUMNNAME_TaxCorrectionType); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_BPartner.java b/base/src/org/compiere/model/X_C_BPartner.java new file mode 100644 index 0000000000..4492860f52 --- /dev/null +++ b/base/src/org/compiere/model/X_C_BPartner.java @@ -0,0 +1,1652 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for C_BPartner + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_C_BPartner extends PO implements I_C_BPartner, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_BPartner (Properties ctx, int C_BPartner_ID, String trxName) + { + super (ctx, C_BPartner_ID, trxName); + /** if (C_BPartner_ID == 0) + { + setC_BP_Group_ID (0); + setC_BPartner_ID (0); + setIsCustomer (false); + setIsEmployee (false); + setIsOneTime (false); + setIsProspect (false); + setIsSalesRep (false); + setIsSummary (false); + setIsVendor (false); + setName (null); + setSO_CreditLimit (Env.ZERO); + setSO_CreditUsed (Env.ZERO); + setSendEMail (false); + setValue (null); + } */ + } + + /** Load Constructor */ + public X_C_BPartner (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_BPartner[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** AD_Language AD_Reference_ID=327 */ + public static final int AD_LANGUAGE_AD_Reference_ID=327; + /** Set Language. + @param AD_Language + Language for this entity + */ + public void setAD_Language (String AD_Language) + { + + if (AD_Language != null && AD_Language.length() > 6) + { + log.warning("Length > 6 - truncated"); + AD_Language = AD_Language.substring(0, 6); + } + set_Value (COLUMNNAME_AD_Language, AD_Language); + } + + /** Get Language. + @return Language for this entity + */ + public String getAD_Language () + { + return (String)get_Value(COLUMNNAME_AD_Language); + } + + /** Set Linked Organization. + @param AD_OrgBP_ID + The Business Partner is another Organization for explicit Inter-Org transactions + */ + public void setAD_OrgBP_ID (String AD_OrgBP_ID) + { + + if (AD_OrgBP_ID != null && AD_OrgBP_ID.length() > 22) + { + log.warning("Length > 22 - truncated"); + AD_OrgBP_ID = AD_OrgBP_ID.substring(0, 22); + } + set_Value (COLUMNNAME_AD_OrgBP_ID, AD_OrgBP_ID); + } + + /** Get Linked Organization. + @return The Business Partner is another Organization for explicit Inter-Org transactions + */ + public String getAD_OrgBP_ID () + { + return (String)get_Value(COLUMNNAME_AD_OrgBP_ID); + } + + /** Set Acquisition Cost. + @param AcqusitionCost + The cost of gaining the prospect as a customer + */ + public void setAcqusitionCost (BigDecimal AcqusitionCost) + { + set_Value (COLUMNNAME_AcqusitionCost, AcqusitionCost); + } + + /** Get Acquisition Cost. + @return The cost of gaining the prospect as a customer + */ + public BigDecimal getAcqusitionCost () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AcqusitionCost); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Actual Life Time Value. + @param ActualLifeTimeValue + Actual Life Time Revenue + */ + public void setActualLifeTimeValue (BigDecimal ActualLifeTimeValue) + { + set_Value (COLUMNNAME_ActualLifeTimeValue, ActualLifeTimeValue); + } + + /** Get Actual Life Time Value. + @return Actual Life Time Revenue + */ + public BigDecimal getActualLifeTimeValue () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ActualLifeTimeValue); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Partner Parent. + @param BPartner_Parent_ID + Business Partner Parent + */ + public void setBPartner_Parent_ID (int BPartner_Parent_ID) + { + if (BPartner_Parent_ID < 1) + set_Value (COLUMNNAME_BPartner_Parent_ID, null); + else + set_Value (COLUMNNAME_BPartner_Parent_ID, Integer.valueOf(BPartner_Parent_ID)); + } + + /** Get Partner Parent. + @return Business Partner Parent + */ + public int getBPartner_Parent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_BPartner_Parent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BP_Group getC_BP_Group() throws Exception + { + Class clazz = MTable.getClass(I_C_BP_Group.Table_Name); + I_C_BP_Group result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BP_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BP_Group_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Business Partner Group. + @param C_BP_Group_ID + Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID) + { + if (C_BP_Group_ID < 1) + throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); + set_Value (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); + } + + /** Get Business Partner Group. + @return Business Partner Group + */ + public int getC_BP_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** 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) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + 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 I_C_Dunning getC_Dunning() throws Exception + { + Class clazz = MTable.getClass(I_C_Dunning.Table_Name); + I_C_Dunning result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Dunning)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Dunning_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Dunning. + @param C_Dunning_ID + Dunning Rules for overdue invoices + */ + public void setC_Dunning_ID (int C_Dunning_ID) + { + if (C_Dunning_ID < 1) + set_Value (COLUMNNAME_C_Dunning_ID, null); + else + set_Value (COLUMNNAME_C_Dunning_ID, Integer.valueOf(C_Dunning_ID)); + } + + /** Get Dunning. + @return Dunning Rules for overdue invoices + */ + public int getC_Dunning_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Dunning_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Greeting getC_Greeting() throws Exception + { + Class clazz = MTable.getClass(I_C_Greeting.Table_Name); + I_C_Greeting result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Greeting)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Greeting_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Greeting. + @param C_Greeting_ID + Greeting to print on correspondence + */ + public void setC_Greeting_ID (int C_Greeting_ID) + { + if (C_Greeting_ID < 1) + set_Value (COLUMNNAME_C_Greeting_ID, null); + else + set_Value (COLUMNNAME_C_Greeting_ID, Integer.valueOf(C_Greeting_ID)); + } + + /** Get Greeting. + @return Greeting to print on correspondence + */ + public int getC_Greeting_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Greeting_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_InvoiceSchedule getC_InvoiceSchedule() throws Exception + { + Class clazz = MTable.getClass(I_C_InvoiceSchedule.Table_Name); + I_C_InvoiceSchedule result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_InvoiceSchedule)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoiceSchedule_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Invoice Schedule. + @param C_InvoiceSchedule_ID + Schedule for generating Invoices + */ + public void setC_InvoiceSchedule_ID (int C_InvoiceSchedule_ID) + { + if (C_InvoiceSchedule_ID < 1) + set_Value (COLUMNNAME_C_InvoiceSchedule_ID, null); + else + set_Value (COLUMNNAME_C_InvoiceSchedule_ID, Integer.valueOf(C_InvoiceSchedule_ID)); + } + + /** Get Invoice Schedule. + @return Schedule for generating Invoices + */ + public int getC_InvoiceSchedule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceSchedule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_PaymentTerm getC_PaymentTerm() throws Exception + { + Class clazz = MTable.getClass(I_C_PaymentTerm.Table_Name); + I_C_PaymentTerm result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_PaymentTerm)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentTerm_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Payment Term. + @param C_PaymentTerm_ID + The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) + { + if (C_PaymentTerm_ID < 1) + set_Value (COLUMNNAME_C_PaymentTerm_ID, null); + else + set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + } + + /** Get Payment Term. + @return The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentTerm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public org.eevolution.model.I_C_TaxGroup getC_TaxGroup() throws Exception + { + Class clazz = MTable.getClass(org.eevolution.model.I_C_TaxGroup.Table_Name); + org.eevolution.model.I_C_TaxGroup result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (org.eevolution.model.I_C_TaxGroup)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_TaxGroup_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Tax Group. + @param C_TaxGroup_ID Tax Group */ + public void setC_TaxGroup_ID (int C_TaxGroup_ID) + { + if (C_TaxGroup_ID < 1) + set_Value (COLUMNNAME_C_TaxGroup_ID, null); + else + set_Value (COLUMNNAME_C_TaxGroup_ID, Integer.valueOf(C_TaxGroup_ID)); + } + + /** Get Tax Group. + @return Tax Group */ + public int getC_TaxGroup_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_TaxGroup_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set D-U-N-S. + @param DUNS + Dun & Bradstreet Number + */ + public void setDUNS (String DUNS) + { + + if (DUNS != null && DUNS.length() > 11) + { + log.warning("Length > 11 - truncated"); + DUNS = DUNS.substring(0, 11); + } + set_Value (COLUMNNAME_DUNS, DUNS); + } + + /** Get D-U-N-S. + @return Dun & Bradstreet Number + */ + public String getDUNS () + { + return (String)get_Value(COLUMNNAME_DUNS); + } + + /** DeliveryRule AD_Reference_ID=151 */ + public static final int DELIVERYRULE_AD_Reference_ID=151; + /** After Receipt = R */ + public static final String DELIVERYRULE_AfterReceipt = "R"; + /** Availability = A */ + public static final String DELIVERYRULE_Availability = "A"; + /** Complete Line = L */ + public static final String DELIVERYRULE_CompleteLine = "L"; + /** Complete Order = O */ + public static final String DELIVERYRULE_CompleteOrder = "O"; + /** Force = F */ + public static final String DELIVERYRULE_Force = "F"; + /** Manual = M */ + public static final String DELIVERYRULE_Manual = "M"; + /** Set Delivery Rule. + @param DeliveryRule + Defines the timing of Delivery + */ + public void setDeliveryRule (String DeliveryRule) + { + + if (DeliveryRule == null || DeliveryRule.equals("R") || DeliveryRule.equals("A") || DeliveryRule.equals("L") || DeliveryRule.equals("O") || DeliveryRule.equals("F") || DeliveryRule.equals("M")); else throw new IllegalArgumentException ("DeliveryRule Invalid value - " + DeliveryRule + " - Reference_ID=151 - R - A - L - O - F - M"); + if (DeliveryRule != null && DeliveryRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + DeliveryRule = DeliveryRule.substring(0, 1); + } + set_Value (COLUMNNAME_DeliveryRule, DeliveryRule); + } + + /** Get Delivery Rule. + @return Defines the timing of Delivery + */ + public String getDeliveryRule () + { + return (String)get_Value(COLUMNNAME_DeliveryRule); + } + + /** DeliveryViaRule AD_Reference_ID=152 */ + public static final int DELIVERYVIARULE_AD_Reference_ID=152; + /** Pickup = P */ + public static final String DELIVERYVIARULE_Pickup = "P"; + /** Delivery = D */ + public static final String DELIVERYVIARULE_Delivery = "D"; + /** Shipper = S */ + public static final String DELIVERYVIARULE_Shipper = "S"; + /** Set Delivery Via. + @param DeliveryViaRule + How the order will be delivered + */ + public void setDeliveryViaRule (String DeliveryViaRule) + { + + if (DeliveryViaRule == null || DeliveryViaRule.equals("P") || DeliveryViaRule.equals("D") || DeliveryViaRule.equals("S")); else throw new IllegalArgumentException ("DeliveryViaRule Invalid value - " + DeliveryViaRule + " - Reference_ID=152 - P - D - S"); + if (DeliveryViaRule != null && DeliveryViaRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + DeliveryViaRule = DeliveryViaRule.substring(0, 1); + } + set_Value (COLUMNNAME_DeliveryViaRule, DeliveryViaRule); + } + + /** Get Delivery Via. + @return How the order will be delivered + */ + public String getDeliveryViaRule () + { + return (String)get_Value(COLUMNNAME_DeliveryViaRule); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + 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 Copies. + @param DocumentCopies + Number of copies to be printed + */ + public void setDocumentCopies (int DocumentCopies) + { + set_Value (COLUMNNAME_DocumentCopies, Integer.valueOf(DocumentCopies)); + } + + /** Get Document Copies. + @return Number of copies to be printed + */ + public int getDocumentCopies () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DocumentCopies); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Dunning Grace. + @param DunningGrace Dunning Grace */ + public void setDunningGrace (Timestamp DunningGrace) + { + set_Value (COLUMNNAME_DunningGrace, DunningGrace); + } + + /** Get Dunning Grace. + @return Dunning Grace */ + public Timestamp getDunningGrace () + { + return (Timestamp)get_Value(COLUMNNAME_DunningGrace); + } + + /** Set First Sale. + @param FirstSale + Date of First Sale + */ + public void setFirstSale (Timestamp FirstSale) + { + set_Value (COLUMNNAME_FirstSale, FirstSale); + } + + /** Get First Sale. + @return Date of First Sale + */ + public Timestamp getFirstSale () + { + return (Timestamp)get_Value(COLUMNNAME_FirstSale); + } + + /** Set Flat Discount %. + @param FlatDiscount + Flat discount percentage + */ + public void setFlatDiscount (BigDecimal FlatDiscount) + { + set_Value (COLUMNNAME_FlatDiscount, FlatDiscount); + } + + /** Get Flat Discount %. + @return Flat discount percentage + */ + public BigDecimal getFlatDiscount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FlatDiscount); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** FreightCostRule AD_Reference_ID=153 */ + public static final int FREIGHTCOSTRULE_AD_Reference_ID=153; + /** Freight included = I */ + public static final String FREIGHTCOSTRULE_FreightIncluded = "I"; + /** Fix price = F */ + public static final String FREIGHTCOSTRULE_FixPrice = "F"; + /** Calculated = C */ + public static final String FREIGHTCOSTRULE_Calculated = "C"; + /** Line = L */ + public static final String FREIGHTCOSTRULE_Line = "L"; + /** Set Freight Cost Rule. + @param FreightCostRule + Method for charging Freight + */ + public void setFreightCostRule (String FreightCostRule) + { + + if (FreightCostRule == null || FreightCostRule.equals("I") || FreightCostRule.equals("F") || FreightCostRule.equals("C") || FreightCostRule.equals("L")); else throw new IllegalArgumentException ("FreightCostRule Invalid value - " + FreightCostRule + " - Reference_ID=153 - I - F - C - L"); + if (FreightCostRule != null && FreightCostRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + FreightCostRule = FreightCostRule.substring(0, 1); + } + set_Value (COLUMNNAME_FreightCostRule, FreightCostRule); + } + + /** Get Freight Cost Rule. + @return Method for charging Freight + */ + public String getFreightCostRule () + { + return (String)get_Value(COLUMNNAME_FreightCostRule); + } + + /** InvoiceRule AD_Reference_ID=150 */ + public static final int INVOICERULE_AD_Reference_ID=150; + /** After Order delivered = O */ + public static final String INVOICERULE_AfterOrderDelivered = "O"; + /** After Delivery = D */ + public static final String INVOICERULE_AfterDelivery = "D"; + /** Customer Schedule after Delivery = S */ + public static final String INVOICERULE_CustomerScheduleAfterDelivery = "S"; + /** Immediate = I */ + public static final String INVOICERULE_Immediate = "I"; + /** Set Invoice Rule. + @param InvoiceRule + Frequency and method of invoicing + */ + public void setInvoiceRule (String InvoiceRule) + { + + if (InvoiceRule == null || InvoiceRule.equals("O") || InvoiceRule.equals("D") || InvoiceRule.equals("S") || InvoiceRule.equals("I")); else throw new IllegalArgumentException ("InvoiceRule Invalid value - " + InvoiceRule + " - Reference_ID=150 - O - D - S - I"); + if (InvoiceRule != null && InvoiceRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + InvoiceRule = InvoiceRule.substring(0, 1); + } + set_Value (COLUMNNAME_InvoiceRule, InvoiceRule); + } + + /** Get Invoice Rule. + @return Frequency and method of invoicing + */ + public String getInvoiceRule () + { + return (String)get_Value(COLUMNNAME_InvoiceRule); + } + + /** Invoice_PrintFormat_ID AD_Reference_ID=261 */ + public static final int INVOICE_PRINTFORMAT_ID_AD_Reference_ID=261; + /** Set Invoice Print Format. + @param Invoice_PrintFormat_ID + Print Format for printing Invoices + */ + public void setInvoice_PrintFormat_ID (int Invoice_PrintFormat_ID) + { + if (Invoice_PrintFormat_ID < 1) + set_Value (COLUMNNAME_Invoice_PrintFormat_ID, null); + else + set_Value (COLUMNNAME_Invoice_PrintFormat_ID, Integer.valueOf(Invoice_PrintFormat_ID)); + } + + /** Get Invoice Print Format. + @return Print Format for printing Invoices + */ + public int getInvoice_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Invoice_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Customer. + @param IsCustomer + Indicates if this Business Partner is a Customer + */ + public void setIsCustomer (boolean IsCustomer) + { + set_Value (COLUMNNAME_IsCustomer, Boolean.valueOf(IsCustomer)); + } + + /** Get Customer. + @return Indicates if this Business Partner is a Customer + */ + public boolean isCustomer () + { + Object oo = get_Value(COLUMNNAME_IsCustomer); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Discount Printed. + @param IsDiscountPrinted + Print Discount on Invoice and Order + */ + public void setIsDiscountPrinted (boolean IsDiscountPrinted) + { + set_Value (COLUMNNAME_IsDiscountPrinted, Boolean.valueOf(IsDiscountPrinted)); + } + + /** Get Discount Printed. + @return Print Discount on Invoice and Order + */ + public boolean isDiscountPrinted () + { + Object oo = get_Value(COLUMNNAME_IsDiscountPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Employee. + @param IsEmployee + Indicates if this Business Partner is an employee + */ + public void setIsEmployee (boolean IsEmployee) + { + set_Value (COLUMNNAME_IsEmployee, Boolean.valueOf(IsEmployee)); + } + + /** Get Employee. + @return Indicates if this Business Partner is an employee + */ + public boolean isEmployee () + { + Object oo = get_Value(COLUMNNAME_IsEmployee); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set One time transaction. + @param IsOneTime One time transaction */ + public void setIsOneTime (boolean IsOneTime) + { + set_Value (COLUMNNAME_IsOneTime, Boolean.valueOf(IsOneTime)); + } + + /** Get One time transaction. + @return One time transaction */ + public boolean isOneTime () + { + Object oo = get_Value(COLUMNNAME_IsOneTime); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Prospect. + @param IsProspect + Indicates this is a Prospect + */ + public void setIsProspect (boolean IsProspect) + { + set_Value (COLUMNNAME_IsProspect, Boolean.valueOf(IsProspect)); + } + + /** Get Prospect. + @return Indicates this is a Prospect + */ + public boolean isProspect () + { + Object oo = get_Value(COLUMNNAME_IsProspect); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Representative. + @param IsSalesRep + Indicates if the business partner is a sales representative or company agent + */ + public void setIsSalesRep (boolean IsSalesRep) + { + set_Value (COLUMNNAME_IsSalesRep, Boolean.valueOf(IsSalesRep)); + } + + /** Get Sales Representative. + @return Indicates if the business partner is a sales representative or company agent + */ + public boolean isSalesRep () + { + Object oo = get_Value(COLUMNNAME_IsSalesRep); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Tax exempt. + @param IsTaxExempt + Business partner is exempt from tax + */ + public void setIsTaxExempt (boolean IsTaxExempt) + { + set_Value (COLUMNNAME_IsTaxExempt, Boolean.valueOf(IsTaxExempt)); + } + + /** Get Tax exempt. + @return Business partner is exempt from tax + */ + public boolean isTaxExempt () + { + Object oo = get_Value(COLUMNNAME_IsTaxExempt); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Vendor. + @param IsVendor + Indicates if this Business Partner is a Vendor + */ + public void setIsVendor (boolean IsVendor) + { + set_Value (COLUMNNAME_IsVendor, Boolean.valueOf(IsVendor)); + } + + /** Get Vendor. + @return Indicates if this Business Partner is a Vendor + */ + public boolean isVendor () + { + Object oo = get_Value(COLUMNNAME_IsVendor); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** M_DiscountSchema_ID AD_Reference_ID=325 */ + public static final int M_DISCOUNTSCHEMA_ID_AD_Reference_ID=325; + /** Set Discount Schema. + @param M_DiscountSchema_ID + Schema to calculate the trade discount percentage + */ + public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) + { + if (M_DiscountSchema_ID < 1) + set_Value (COLUMNNAME_M_DiscountSchema_ID, null); + else + set_Value (COLUMNNAME_M_DiscountSchema_ID, Integer.valueOf(M_DiscountSchema_ID)); + } + + /** Get Discount Schema. + @return Schema to calculate the trade discount percentage + */ + public int getM_DiscountSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DiscountSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_PriceList getM_PriceList() throws Exception + { + Class clazz = MTable.getClass(I_M_PriceList.Table_Name); + I_M_PriceList result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID < 1) + set_Value (COLUMNNAME_M_PriceList_ID, null); + else + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set NAICS/SIC. + @param NAICS + Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html + */ + public void setNAICS (String NAICS) + { + + if (NAICS != null && NAICS.length() > 6) + { + log.warning("Length > 6 - truncated"); + NAICS = NAICS.substring(0, 6); + } + set_Value (COLUMNNAME_NAICS, NAICS); + } + + /** Get NAICS/SIC. + @return Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html + */ + public String getNAICS () + { + return (String)get_Value(COLUMNNAME_NAICS); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 60); + } + 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 Name 2. + @param Name2 + Additional Name + */ + public void setName2 (String Name2) + { + + if (Name2 != null && Name2.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name2 = Name2.substring(0, 60); + } + set_Value (COLUMNNAME_Name2, Name2); + } + + /** Get Name 2. + @return Additional Name + */ + public String getName2 () + { + return (String)get_Value(COLUMNNAME_Name2); + } + + /** Set Employees. + @param NumberEmployees + Number of employees + */ + public void setNumberEmployees (int NumberEmployees) + { + set_Value (COLUMNNAME_NumberEmployees, Integer.valueOf(NumberEmployees)); + } + + /** Get Employees. + @return Number of employees + */ + public int getNumberEmployees () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NumberEmployees); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order Reference. + @param POReference + Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference) + { + + if (POReference != null && POReference.length() > 20) + { + log.warning("Length > 20 - truncated"); + POReference = POReference.substring(0, 20); + } + set_Value (COLUMNNAME_POReference, POReference); + } + + /** Get Order Reference. + @return Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference () + { + return (String)get_Value(COLUMNNAME_POReference); + } + + /** PO_DiscountSchema_ID AD_Reference_ID=325 */ + public static final int PO_DISCOUNTSCHEMA_ID_AD_Reference_ID=325; + /** Set PO Discount Schema. + @param PO_DiscountSchema_ID + Schema to calculate the purchase trade discount percentage + */ + public void setPO_DiscountSchema_ID (int PO_DiscountSchema_ID) + { + if (PO_DiscountSchema_ID < 1) + set_Value (COLUMNNAME_PO_DiscountSchema_ID, null); + else + set_Value (COLUMNNAME_PO_DiscountSchema_ID, Integer.valueOf(PO_DiscountSchema_ID)); + } + + /** Get PO Discount Schema. + @return Schema to calculate the purchase trade discount percentage + */ + public int getPO_DiscountSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PO_DiscountSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** PO_PaymentTerm_ID AD_Reference_ID=227 */ + public static final int PO_PAYMENTTERM_ID_AD_Reference_ID=227; + /** Set PO Payment Term. + @param PO_PaymentTerm_ID + Payment rules for a purchase order + */ + public void setPO_PaymentTerm_ID (int PO_PaymentTerm_ID) + { + if (PO_PaymentTerm_ID < 1) + set_Value (COLUMNNAME_PO_PaymentTerm_ID, null); + else + set_Value (COLUMNNAME_PO_PaymentTerm_ID, Integer.valueOf(PO_PaymentTerm_ID)); + } + + /** Get PO Payment Term. + @return Payment rules for a purchase order + */ + public int getPO_PaymentTerm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PO_PaymentTerm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** PO_PriceList_ID AD_Reference_ID=166 */ + public static final int PO_PRICELIST_ID_AD_Reference_ID=166; + /** Set Purchase Pricelist. + @param PO_PriceList_ID + Price List used by this Business Partner + */ + public void setPO_PriceList_ID (int PO_PriceList_ID) + { + if (PO_PriceList_ID < 1) + set_Value (COLUMNNAME_PO_PriceList_ID, null); + else + set_Value (COLUMNNAME_PO_PriceList_ID, Integer.valueOf(PO_PriceList_ID)); + } + + /** Get Purchase Pricelist. + @return Price List used by this Business Partner + */ + public int getPO_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PO_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** PaymentRule AD_Reference_ID=195 */ + public static final int PAYMENTRULE_AD_Reference_ID=195; + /** Cash = B */ + public static final String PAYMENTRULE_Cash = "B"; + /** Credit Card = K */ + public static final String PAYMENTRULE_CreditCard = "K"; + /** Direct Deposit = T */ + public static final String PAYMENTRULE_DirectDeposit = "T"; + /** Check = S */ + public static final String PAYMENTRULE_Check = "S"; + /** On Credit = P */ + public static final String PAYMENTRULE_OnCredit = "P"; + /** Direct Debit = D */ + public static final String PAYMENTRULE_DirectDebit = "D"; + /** Set Payment Rule. + @param PaymentRule + How you pay the invoice + */ + public void setPaymentRule (String PaymentRule) + { + + if (PaymentRule == null || PaymentRule.equals("B") || PaymentRule.equals("K") || PaymentRule.equals("T") || PaymentRule.equals("S") || PaymentRule.equals("P") || PaymentRule.equals("D")); else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - K - T - S - P - D"); + if (PaymentRule != null && PaymentRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + PaymentRule = PaymentRule.substring(0, 1); + } + set_Value (COLUMNNAME_PaymentRule, PaymentRule); + } + + /** Get Payment Rule. + @return How you pay the invoice + */ + public String getPaymentRule () + { + return (String)get_Value(COLUMNNAME_PaymentRule); + } + + /** PaymentRulePO AD_Reference_ID=195 */ + public static final int PAYMENTRULEPO_AD_Reference_ID=195; + /** Cash = B */ + public static final String PAYMENTRULEPO_Cash = "B"; + /** Credit Card = K */ + public static final String PAYMENTRULEPO_CreditCard = "K"; + /** Direct Deposit = T */ + public static final String PAYMENTRULEPO_DirectDeposit = "T"; + /** Check = S */ + public static final String PAYMENTRULEPO_Check = "S"; + /** On Credit = P */ + public static final String PAYMENTRULEPO_OnCredit = "P"; + /** Direct Debit = D */ + public static final String PAYMENTRULEPO_DirectDebit = "D"; + /** Set Payment Rule. + @param PaymentRulePO + Purchase payment option + */ + public void setPaymentRulePO (String PaymentRulePO) + { + + if (PaymentRulePO == null || PaymentRulePO.equals("B") || PaymentRulePO.equals("K") || PaymentRulePO.equals("T") || PaymentRulePO.equals("S") || PaymentRulePO.equals("P") || PaymentRulePO.equals("D")); else throw new IllegalArgumentException ("PaymentRulePO Invalid value - " + PaymentRulePO + " - Reference_ID=195 - B - K - T - S - P - D"); + if (PaymentRulePO != null && PaymentRulePO.length() > 1) + { + log.warning("Length > 1 - truncated"); + PaymentRulePO = PaymentRulePO.substring(0, 1); + } + set_Value (COLUMNNAME_PaymentRulePO, PaymentRulePO); + } + + /** Get Payment Rule. + @return Purchase payment option + */ + public String getPaymentRulePO () + { + return (String)get_Value(COLUMNNAME_PaymentRulePO); + } + + /** Set Potential Life Time Value. + @param PotentialLifeTimeValue + Total Revenue expected + */ + public void setPotentialLifeTimeValue (BigDecimal PotentialLifeTimeValue) + { + set_Value (COLUMNNAME_PotentialLifeTimeValue, PotentialLifeTimeValue); + } + + /** Get Potential Life Time Value. + @return Total Revenue expected + */ + public BigDecimal getPotentialLifeTimeValue () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PotentialLifeTimeValue); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Rating. + @param Rating + Classification or Importance + */ + public void setRating (String Rating) + { + + if (Rating != null && Rating.length() > 1) + { + log.warning("Length > 1 - truncated"); + Rating = Rating.substring(0, 1); + } + set_Value (COLUMNNAME_Rating, Rating); + } + + /** Get Rating. + @return Classification or Importance + */ + public String getRating () + { + return (String)get_Value(COLUMNNAME_Rating); + } + + /** Set Reference No. + @param ReferenceNo + Your customer or vendor number at the Business Partner's site + */ + public void setReferenceNo (String ReferenceNo) + { + + if (ReferenceNo != null && ReferenceNo.length() > 40) + { + log.warning("Length > 40 - truncated"); + ReferenceNo = ReferenceNo.substring(0, 40); + } + set_Value (COLUMNNAME_ReferenceNo, ReferenceNo); + } + + /** Get Reference No. + @return Your customer or vendor number at the Business Partner's site + */ + public String getReferenceNo () + { + return (String)get_Value(COLUMNNAME_ReferenceNo); + } + + /** SOCreditStatus AD_Reference_ID=289 */ + public static final int SOCREDITSTATUS_AD_Reference_ID=289; + /** Credit Stop = S */ + public static final String SOCREDITSTATUS_CreditStop = "S"; + /** Credit Hold = H */ + public static final String SOCREDITSTATUS_CreditHold = "H"; + /** Credit Watch = W */ + public static final String SOCREDITSTATUS_CreditWatch = "W"; + /** No Credit Check = X */ + public static final String SOCREDITSTATUS_NoCreditCheck = "X"; + /** Credit OK = O */ + public static final String SOCREDITSTATUS_CreditOK = "O"; + /** Set Credit Status. + @param SOCreditStatus + Business Partner Credit Status + */ + public void setSOCreditStatus (String SOCreditStatus) + { + + if (SOCreditStatus == null || SOCreditStatus.equals("S") || SOCreditStatus.equals("H") || SOCreditStatus.equals("W") || SOCreditStatus.equals("X") || SOCreditStatus.equals("O")); else throw new IllegalArgumentException ("SOCreditStatus Invalid value - " + SOCreditStatus + " - Reference_ID=289 - S - H - W - X - O"); + if (SOCreditStatus != null && SOCreditStatus.length() > 1) + { + log.warning("Length > 1 - truncated"); + SOCreditStatus = SOCreditStatus.substring(0, 1); + } + set_Value (COLUMNNAME_SOCreditStatus, SOCreditStatus); + } + + /** Get Credit Status. + @return Business Partner Credit Status + */ + public String getSOCreditStatus () + { + return (String)get_Value(COLUMNNAME_SOCreditStatus); + } + + /** Set Credit Limit. + @param SO_CreditLimit + Total outstanding invoice amounts allowed + */ + public void setSO_CreditLimit (BigDecimal SO_CreditLimit) + { + if (SO_CreditLimit == null) + throw new IllegalArgumentException ("SO_CreditLimit is mandatory."); + set_Value (COLUMNNAME_SO_CreditLimit, SO_CreditLimit); + } + + /** Get Credit Limit. + @return Total outstanding invoice amounts allowed + */ + public BigDecimal getSO_CreditLimit () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SO_CreditLimit); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Credit Used. + @param SO_CreditUsed + Current open balance + */ + public void setSO_CreditUsed (BigDecimal SO_CreditUsed) + { + if (SO_CreditUsed == null) + throw new IllegalArgumentException ("SO_CreditUsed is mandatory."); + set_ValueNoCheck (COLUMNNAME_SO_CreditUsed, SO_CreditUsed); + } + + /** Get Credit Used. + @return Current open balance + */ + public BigDecimal getSO_CreditUsed () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_SO_CreditUsed); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Order Description. + @param SO_Description + Description to be used on orders + */ + public void setSO_Description (String SO_Description) + { + + if (SO_Description != null && SO_Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + SO_Description = SO_Description.substring(0, 255); + } + set_Value (COLUMNNAME_SO_Description, SO_Description); + } + + /** Get Order Description. + @return Description to be used on orders + */ + public String getSO_Description () + { + return (String)get_Value(COLUMNNAME_SO_Description); + } + + /** SalesRep_ID AD_Reference_ID=190 */ + public static final int SALESREP_ID_AD_Reference_ID=190; + /** 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 Sales Volume in 1.000. + @param SalesVolume + Total Volume of Sales in Thousands of Currency + */ + public void setSalesVolume (int SalesVolume) + { + set_Value (COLUMNNAME_SalesVolume, Integer.valueOf(SalesVolume)); + } + + /** Get Sales Volume in 1.000. + @return Total Volume of Sales in Thousands of Currency + */ + public int getSalesVolume () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SalesVolume); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Send EMail. + @param SendEMail + Enable sending Document EMail + */ + public void setSendEMail (boolean SendEMail) + { + set_Value (COLUMNNAME_SendEMail, Boolean.valueOf(SendEMail)); + } + + /** Get Send EMail. + @return Enable sending Document EMail + */ + public boolean isSendEMail () + { + Object oo = get_Value(COLUMNNAME_SendEMail); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Share. + @param ShareOfCustomer + Share of Customer's business as a percentage + */ + public void setShareOfCustomer (int ShareOfCustomer) + { + set_Value (COLUMNNAME_ShareOfCustomer, Integer.valueOf(ShareOfCustomer)); + } + + /** Get Share. + @return Share of Customer's business as a percentage + */ + public int getShareOfCustomer () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ShareOfCustomer); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Min Shelf Life %. + @param ShelfLifeMinPct + Minimum Shelf Life in percent based on Product Instance Guarantee Date + */ + public void setShelfLifeMinPct (int ShelfLifeMinPct) + { + set_Value (COLUMNNAME_ShelfLifeMinPct, Integer.valueOf(ShelfLifeMinPct)); + } + + /** Get Min Shelf Life %. + @return Minimum Shelf Life in percent based on Product Instance Guarantee Date + */ + public int getShelfLifeMinPct () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ShelfLifeMinPct); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax ID. + @param TaxID + Tax Identification + */ + public void setTaxID (String TaxID) + { + + if (TaxID != null && TaxID.length() > 20) + { + log.warning("Length > 20 - truncated"); + TaxID = TaxID.substring(0, 20); + } + set_Value (COLUMNNAME_TaxID, TaxID); + } + + /** Get Tax ID. + @return Tax Identification + */ + public String getTaxID () + { + return (String)get_Value(COLUMNNAME_TaxID); + } + + /** Set Open Balance. + @param TotalOpenBalance + Total Open Balance Amount in primary Accounting Currency + */ + public void setTotalOpenBalance (BigDecimal TotalOpenBalance) + { + set_Value (COLUMNNAME_TotalOpenBalance, TotalOpenBalance); + } + + /** Get Open Balance. + @return Total Open Balance Amount in primary Accounting Currency + */ + public BigDecimal getTotalOpenBalance () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalOpenBalance); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set URL. + @param URL + Full URL address - e.g. http://www.adempiere.org + */ + public void setURL (String URL) + { + + if (URL != null && URL.length() > 120) + { + log.warning("Length > 120 - truncated"); + URL = URL.substring(0, 120); + } + set_Value (COLUMNNAME_URL, URL); + } + + /** Get URL. + @return Full URL address - e.g. http://www.adempiere.org + */ + public String getURL () + { + return (String)get_Value(COLUMNNAME_URL); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 40); + } + 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); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_CashLine.java b/base/src/org/compiere/model/X_C_CashLine.java new file mode 100644 index 0000000000..0216f80cdf --- /dev/null +++ b/base/src/org/compiere/model/X_C_CashLine.java @@ -0,0 +1,537 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for C_CashLine + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_C_CashLine extends PO implements I_C_CashLine, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_CashLine (Properties ctx, int C_CashLine_ID, String trxName) + { + super (ctx, C_CashLine_ID, trxName); + /** if (C_CashLine_ID == 0) + { + setAmount (Env.ZERO); + setC_CashLine_ID (0); + setC_Cash_ID (0); + setCashType (null); +// E + setLine (0); +// @SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM C_CashLine WHERE C_Cash_ID=@C_Cash_ID@ + setProcessed (false); + } */ + } + + /** Load Constructor */ + public X_C_CashLine (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_CashLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Amount. + @param Amount + Amount in a defined currency + */ + public void setAmount (BigDecimal Amount) + { + if (Amount == null) + throw new IllegalArgumentException ("Amount is mandatory."); + set_Value (COLUMNNAME_Amount, Amount); + } + + /** Get Amount. + @return Amount in a defined currency + */ + public BigDecimal getAmount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Amount); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_BankAccount getC_BankAccount() throws Exception + { + Class clazz = MTable.getClass(I_C_BankAccount.Table_Name); + I_C_BankAccount result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankAccount_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Bank Account. + @param C_BankAccount_ID + Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID) + { + if (C_BankAccount_ID < 1) + set_Value (COLUMNNAME_C_BankAccount_ID, null); + else + set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + } + + /** Get Bank Account. + @return Account at the Bank + */ + public int getC_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Cash Journal Line. + @param C_CashLine_ID + Cash Journal Line + */ + public void setC_CashLine_ID (int C_CashLine_ID) + { + if (C_CashLine_ID < 1) + throw new IllegalArgumentException ("C_CashLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_CashLine_ID, Integer.valueOf(C_CashLine_ID)); + } + + /** Get Cash Journal Line. + @return Cash Journal Line + */ + public int getC_CashLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CashLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Cash getC_Cash() throws Exception + { + Class clazz = MTable.getClass(I_C_Cash.Table_Name); + I_C_Cash result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Cash)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Cash_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Cash Journal. + @param C_Cash_ID + Cash Journal + */ + public void setC_Cash_ID (int C_Cash_ID) + { + if (C_Cash_ID < 1) + throw new IllegalArgumentException ("C_Cash_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Cash_ID, Integer.valueOf(C_Cash_ID)); + } + + /** Get Cash Journal. + @return Cash Journal + */ + public int getC_Cash_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Cash_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(getC_Cash_ID())); + } + + public I_C_Charge getC_Charge() throws Exception + { + Class clazz = MTable.getClass(I_C_Charge.Table_Name); + I_C_Charge result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID < 1) + set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getC_Currency() throws Exception + { + Class clazz = MTable.getClass(I_C_Currency.Table_Name); + I_C_Currency result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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_ValueNoCheck (COLUMNNAME_C_Currency_ID, null); + else + set_ValueNoCheck (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(); + } + + public I_C_Invoice getC_Invoice() throws Exception + { + Class clazz = MTable.getClass(I_C_Invoice.Table_Name); + I_C_Invoice result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Payment getC_Payment() throws Exception + { + Class clazz = MTable.getClass(I_C_Payment.Table_Name); + I_C_Payment result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID < 1) + set_Value (COLUMNNAME_C_Payment_ID, null); + else + set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** CashType AD_Reference_ID=217 */ + public static final int CASHTYPE_AD_Reference_ID=217; + /** Bank Account Transfer = T */ + public static final String CASHTYPE_BankAccountTransfer = "T"; + /** Invoice = I */ + public static final String CASHTYPE_Invoice = "I"; + /** General Expense = E */ + public static final String CASHTYPE_GeneralExpense = "E"; + /** General Receipts = R */ + public static final String CASHTYPE_GeneralReceipts = "R"; + /** Charge = C */ + public static final String CASHTYPE_Charge = "C"; + /** Difference = D */ + public static final String CASHTYPE_Difference = "D"; + /** Set Cash Type. + @param CashType + Source of Cash + */ + public void setCashType (String CashType) + { + if (CashType == null) throw new IllegalArgumentException ("CashType is mandatory"); + if (CashType.equals("T") || CashType.equals("I") || CashType.equals("E") || CashType.equals("R") || CashType.equals("C") || CashType.equals("D")); else throw new IllegalArgumentException ("CashType Invalid value - " + CashType + " - Reference_ID=217 - T - I - E - R - C - D"); + if (CashType.length() > 1) + { + log.warning("Length > 1 - truncated"); + CashType = CashType.substring(0, 1); + } + set_ValueNoCheck (COLUMNNAME_CashType, CashType); + } + + /** Get Cash Type. + @return Source of Cash + */ + public String getCashType () + { + return (String)get_Value(COLUMNNAME_CashType); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Discount Amount. + @param DiscountAmt + Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt) + { + set_Value (COLUMNNAME_DiscountAmt, DiscountAmt); + } + + /** Get Discount Amount. + @return Calculated amount of discount + */ + public BigDecimal getDiscountAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DiscountAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Generated. + @param IsGenerated + This Line is generated + */ + public void setIsGenerated (boolean IsGenerated) + { + set_ValueNoCheck (COLUMNNAME_IsGenerated, Boolean.valueOf(IsGenerated)); + } + + /** Get Generated. + @return This Line is generated + */ + public boolean isGenerated () + { + Object oo = get_Value(COLUMNNAME_IsGenerated); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Write-off Amount. + @param WriteOffAmt + Amount to write-off + */ + public void setWriteOffAmt (BigDecimal WriteOffAmt) + { + set_Value (COLUMNNAME_WriteOffAmt, WriteOffAmt); + } + + /** Get Write-off Amount. + @return Amount to write-off + */ + public BigDecimal getWriteOffAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_WriteOffAmt); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_DocType.java b/base/src/org/compiere/model/X_C_DocType.java new file mode 100644 index 0000000000..4f39fa8824 --- /dev/null +++ b/base/src/org/compiere/model/X_C_DocType.java @@ -0,0 +1,930 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.sql.ResultSet; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.KeyNamePair; + +/** Generated Model for C_DocType + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_C_DocType extends PO implements I_C_DocType, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_DocType (Properties ctx, int C_DocType_ID, String trxName) + { + super (ctx, C_DocType_ID, trxName); + /** if (C_DocType_ID == 0) + { + setC_DocType_ID (0); + setDocBaseType (null); + setDocumentCopies (0); +// 1 + setGL_Category_ID (0); + setHasCharges (false); + setIsCreateCounter (true); +// Y + setIsDefault (false); + setIsDefaultCounterDoc (false); + setIsDocNoControlled (true); +// Y + setIsInTransit (false); + setIsIndexed (false); + setIsPickQAConfirm (false); + setIsSOTrx (false); + setIsShipConfirm (false); + setIsSplitWhenDifference (false); +// N + setName (null); + setPrintName (null); + } */ + } + + /** Load Constructor */ + public X_C_DocType (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + 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_DocType[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PrintFormat getAD_PrintFormat() throws Exception + { + Class clazz = MTable.getClass(I_AD_PrintFormat.Table_Name); + I_AD_PrintFormat result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_PrintFormat)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PrintFormat_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Print Format. + @param AD_PrintFormat_ID + Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) + { + if (AD_PrintFormat_ID < 1) + set_Value (COLUMNNAME_AD_PrintFormat_ID, null); + else + set_Value (COLUMNNAME_AD_PrintFormat_ID, Integer.valueOf(AD_PrintFormat_ID)); + } + + /** Get Print Format. + @return Data Print Format + */ + public int getAD_PrintFormat_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** C_DocTypeDifference_ID AD_Reference_ID=170 */ + public static final int C_DOCTYPEDIFFERENCE_ID_AD_Reference_ID=170; + /** Set Difference Document. + @param C_DocTypeDifference_ID + Document type for generating in dispute Shipments + */ + public void setC_DocTypeDifference_ID (int C_DocTypeDifference_ID) + { + if (C_DocTypeDifference_ID < 1) + set_Value (COLUMNNAME_C_DocTypeDifference_ID, null); + else + set_Value (COLUMNNAME_C_DocTypeDifference_ID, Integer.valueOf(C_DocTypeDifference_ID)); + } + + /** Get Difference Document. + @return Document type for generating in dispute Shipments + */ + public int getC_DocTypeDifference_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeDifference_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** C_DocTypeInvoice_ID AD_Reference_ID=170 */ + public static final int C_DOCTYPEINVOICE_ID_AD_Reference_ID=170; + /** Set Document Type for Invoice. + @param C_DocTypeInvoice_ID + Document type used for invoices generated from this sales document + */ + public void setC_DocTypeInvoice_ID (int C_DocTypeInvoice_ID) + { + if (C_DocTypeInvoice_ID < 1) + set_Value (COLUMNNAME_C_DocTypeInvoice_ID, null); + else + set_Value (COLUMNNAME_C_DocTypeInvoice_ID, Integer.valueOf(C_DocTypeInvoice_ID)); + } + + /** Get Document Type for Invoice. + @return Document type used for invoices generated from this sales document + */ + public int getC_DocTypeInvoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeInvoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** C_DocTypeProforma_ID AD_Reference_ID=170 */ + public static final int C_DOCTYPEPROFORMA_ID_AD_Reference_ID=170; + /** Set Document Type for ProForma. + @param C_DocTypeProforma_ID + Document type used for pro forma invoices generated from this sales document + */ + public void setC_DocTypeProforma_ID (int C_DocTypeProforma_ID) + { + if (C_DocTypeProforma_ID < 1) + set_Value (COLUMNNAME_C_DocTypeProforma_ID, null); + else + set_Value (COLUMNNAME_C_DocTypeProforma_ID, Integer.valueOf(C_DocTypeProforma_ID)); + } + + /** Get Document Type for ProForma. + @return Document type used for pro forma invoices generated from this sales document + */ + public int getC_DocTypeProforma_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeProforma_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** C_DocTypeShipment_ID AD_Reference_ID=170 */ + public static final int C_DOCTYPESHIPMENT_ID_AD_Reference_ID=170; + /** Set Document Type for Shipment. + @param C_DocTypeShipment_ID + Document type used for shipments generated from this sales document + */ + public void setC_DocTypeShipment_ID (int C_DocTypeShipment_ID) + { + if (C_DocTypeShipment_ID < 1) + set_Value (COLUMNNAME_C_DocTypeShipment_ID, null); + else + set_Value (COLUMNNAME_C_DocTypeShipment_ID, Integer.valueOf(C_DocTypeShipment_ID)); + } + + /** Get Document Type for Shipment. + @return Document type used for shipments generated from this sales document + */ + public int getC_DocTypeShipment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeShipment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** DefiniteSequence_ID AD_Reference_ID=128 */ + public static final int DEFINITESEQUENCE_ID_AD_Reference_ID=128; + /** Set Definite Sequence. + @param DefiniteSequence_ID Definite Sequence */ + public void setDefiniteSequence_ID (int DefiniteSequence_ID) + { + if (DefiniteSequence_ID < 1) + set_Value (COLUMNNAME_DefiniteSequence_ID, null); + else + set_Value (COLUMNNAME_DefiniteSequence_ID, Integer.valueOf(DefiniteSequence_ID)); + } + + /** Get Definite Sequence. + @return Definite Sequence */ + public int getDefiniteSequence_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DefiniteSequence_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** DocBaseType AD_Reference_ID=183 */ + public static final int DOCBASETYPE_AD_Reference_ID=183; + /** GL Journal = GLJ */ + public static final String DOCBASETYPE_GLJournal = "GLJ"; + /** GL Document = GLD */ + public static final String DOCBASETYPE_GLDocument = "GLD"; + /** AP Invoice = API */ + public static final String DOCBASETYPE_APInvoice = "API"; + /** AP Payment = APP */ + public static final String DOCBASETYPE_APPayment = "APP"; + /** AR Invoice = ARI */ + public static final String DOCBASETYPE_ARInvoice = "ARI"; + /** AR Receipt = ARR */ + public static final String DOCBASETYPE_ARReceipt = "ARR"; + /** Sales Order = SOO */ + public static final String DOCBASETYPE_SalesOrder = "SOO"; + /** AR Pro Forma Invoice = ARF */ + public static final String DOCBASETYPE_ARProFormaInvoice = "ARF"; + /** Material Delivery = MMS */ + public static final String DOCBASETYPE_MaterialDelivery = "MMS"; + /** Material Receipt = MMR */ + public static final String DOCBASETYPE_MaterialReceipt = "MMR"; + /** Material Movement = MMM */ + public static final String DOCBASETYPE_MaterialMovement = "MMM"; + /** Purchase Order = POO */ + public static final String DOCBASETYPE_PurchaseOrder = "POO"; + /** Purchase Requisition = POR */ + public static final String DOCBASETYPE_PurchaseRequisition = "POR"; + /** Material Physical Inventory = MMI */ + public static final String DOCBASETYPE_MaterialPhysicalInventory = "MMI"; + /** AP Credit Memo = APC */ + public static final String DOCBASETYPE_APCreditMemo = "APC"; + /** AR Credit Memo = ARC */ + public static final String DOCBASETYPE_ARCreditMemo = "ARC"; + /** Bank Statement = CMB */ + public static final String DOCBASETYPE_BankStatement = "CMB"; + /** Cash Journal = CMC */ + public static final String DOCBASETYPE_CashJournal = "CMC"; + /** Payment Allocation = CMA */ + public static final String DOCBASETYPE_PaymentAllocation = "CMA"; + /** Material Production = MMP */ + public static final String DOCBASETYPE_MaterialProduction = "MMP"; + /** Match Invoice = MXI */ + public static final String DOCBASETYPE_MatchInvoice = "MXI"; + /** Match PO = MXP */ + public static final String DOCBASETYPE_MatchPO = "MXP"; + /** Project Issue = PJI */ + public static final String DOCBASETYPE_ProjectIssue = "PJI"; + /** Manufacturing Operation Activity = MOA */ + public static final String DOCBASETYPE_ManufacturingOperationActivity = "MOA"; + /** Maintenance Order = MOF */ + public static final String DOCBASETYPE_MaintenanceOrder = "MOF"; + /** Manufacturing Order Issue = MOI */ + public static final String DOCBASETYPE_ManufacturingOrderIssue = "MOI"; + /** Manufacturing Order Method Variation = MOM */ + public static final String DOCBASETYPE_ManufacturingOrderMethodVariation = "MOM"; + /** Manufacturing Order = MOP */ + public static final String DOCBASETYPE_ManufacturingOrder = "MOP"; + /** Manufacturing Order Receipt = MOR */ + public static final String DOCBASETYPE_ManufacturingOrderReceipt = "MOR"; + /** Manufacturing Order Use Variation = MOU */ + public static final String DOCBASETYPE_ManufacturingOrderUseVariation = "MOU"; + /** Manufacturing Order Rate Variation = MOV */ + public static final String DOCBASETYPE_ManufacturingOrderRateVariation = "MOV"; + /** Quality Order = MQO */ + public static final String DOCBASETYPE_QualityOrder = "MQO"; + /** Payroll = HRP */ + public static final String DOCBASETYPE_Payroll = "HRP"; + /** Distribution Order = DOO */ + public static final String DOCBASETYPE_DistributionOrder = "DOO"; + /** Set Document BaseType. + @param DocBaseType + Logical type of document + */ + public void setDocBaseType (String DocBaseType) + { + if (DocBaseType == null) throw new IllegalArgumentException ("DocBaseType is mandatory"); + if (DocBaseType.equals("GLJ") || DocBaseType.equals("GLD") || DocBaseType.equals("API") || DocBaseType.equals("APP") || DocBaseType.equals("ARI") || DocBaseType.equals("ARR") || DocBaseType.equals("SOO") || DocBaseType.equals("ARF") || DocBaseType.equals("MMS") || DocBaseType.equals("MMR") || DocBaseType.equals("MMM") || DocBaseType.equals("POO") || DocBaseType.equals("POR") || DocBaseType.equals("MMI") || DocBaseType.equals("APC") || DocBaseType.equals("ARC") || DocBaseType.equals("CMB") || DocBaseType.equals("CMC") || DocBaseType.equals("CMA") || DocBaseType.equals("MMP") || DocBaseType.equals("MXI") || DocBaseType.equals("MXP") || DocBaseType.equals("PJI") || DocBaseType.equals("MOA") || DocBaseType.equals("MOF") || DocBaseType.equals("MOI") || DocBaseType.equals("MOM") || DocBaseType.equals("MOP") || DocBaseType.equals("MOR") || DocBaseType.equals("MOU") || DocBaseType.equals("MOV") || DocBaseType.equals("MQO") || DocBaseType.equals("HRP") || DocBaseType.equals("DOO")); else throw new IllegalArgumentException ("DocBaseType Invalid value - " + DocBaseType + " - Reference_ID=183 - GLJ - GLD - API - APP - ARI - ARR - SOO - ARF - MMS - MMR - MMM - POO - POR - MMI - APC - ARC - CMB - CMC - CMA - MMP - MXI - MXP - PJI - MOA - MOF - MOI - MOM - MOP - MOR - MOU - MOV - MQO - HRP - DOO"); + if (DocBaseType.length() > 3) + { + log.warning("Length > 3 - truncated"); + DocBaseType = DocBaseType.substring(0, 3); + } + set_Value (COLUMNNAME_DocBaseType, DocBaseType); + } + + /** Get Document BaseType. + @return Logical type of document + */ + public String getDocBaseType () + { + return (String)get_Value(COLUMNNAME_DocBaseType); + } + + /** DocNoSequence_ID AD_Reference_ID=128 */ + public static final int DOCNOSEQUENCE_ID_AD_Reference_ID=128; + /** Set Document Sequence. + @param DocNoSequence_ID + Document sequence determines the numbering of documents + */ + public void setDocNoSequence_ID (int DocNoSequence_ID) + { + if (DocNoSequence_ID < 1) + set_Value (COLUMNNAME_DocNoSequence_ID, null); + else + set_Value (COLUMNNAME_DocNoSequence_ID, Integer.valueOf(DocNoSequence_ID)); + } + + /** Get Document Sequence. + @return Document sequence determines the numbering of documents + */ + public int getDocNoSequence_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DocNoSequence_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** DocSubTypeSO AD_Reference_ID=148 */ + public static final int DOCSUBTYPESO_AD_Reference_ID=148; + /** On Credit Order = WI */ + public static final String DOCSUBTYPESO_OnCreditOrder = "WI"; + /** POS Order = WR */ + public static final String DOCSUBTYPESO_POSOrder = "WR"; + /** Warehouse Order = WP */ + public static final String DOCSUBTYPESO_WarehouseOrder = "WP"; + /** Standard Order = SO */ + public static final String DOCSUBTYPESO_StandardOrder = "SO"; + /** Proposal = ON */ + public static final String DOCSUBTYPESO_Proposal = "ON"; + /** Quotation = OB */ + public static final String DOCSUBTYPESO_Quotation = "OB"; + /** Return Material = RM */ + public static final String DOCSUBTYPESO_ReturnMaterial = "RM"; + /** Prepay Order = PR */ + public static final String DOCSUBTYPESO_PrepayOrder = "PR"; + /** Set SO Sub Type. + @param DocSubTypeSO + Sales Order Sub Type + */ + public void setDocSubTypeSO (String DocSubTypeSO) + { + + if (DocSubTypeSO == null || DocSubTypeSO.equals("WI") || DocSubTypeSO.equals("WR") || DocSubTypeSO.equals("WP") || DocSubTypeSO.equals("SO") || DocSubTypeSO.equals("ON") || DocSubTypeSO.equals("OB") || DocSubTypeSO.equals("RM") || DocSubTypeSO.equals("PR")); else throw new IllegalArgumentException ("DocSubTypeSO Invalid value - " + DocSubTypeSO + " - Reference_ID=148 - WI - WR - WP - SO - ON - OB - RM - PR"); + if (DocSubTypeSO != null && DocSubTypeSO.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocSubTypeSO = DocSubTypeSO.substring(0, 2); + } + set_Value (COLUMNNAME_DocSubTypeSO, DocSubTypeSO); + } + + /** Get SO Sub Type. + @return Sales Order Sub Type + */ + public String getDocSubTypeSO () + { + return (String)get_Value(COLUMNNAME_DocSubTypeSO); + } + + /** Set Document Copies. + @param DocumentCopies + Number of copies to be printed + */ + public void setDocumentCopies (int DocumentCopies) + { + set_Value (COLUMNNAME_DocumentCopies, Integer.valueOf(DocumentCopies)); + } + + /** Get Document Copies. + @return Number of copies to be printed + */ + public int getDocumentCopies () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DocumentCopies); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Document Note. + @param DocumentNote + Additional information for a Document + */ + public void setDocumentNote (String DocumentNote) + { + + if (DocumentNote != null && DocumentNote.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + DocumentNote = DocumentNote.substring(0, 2000); + } + set_Value (COLUMNNAME_DocumentNote, DocumentNote); + } + + /** Get Document Note. + @return Additional information for a Document + */ + public String getDocumentNote () + { + return (String)get_Value(COLUMNNAME_DocumentNote); + } + + public I_GL_Category getGL_Category() throws Exception + { + Class clazz = MTable.getClass(I_GL_Category.Table_Name); + I_GL_Category result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_GL_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Category_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set GL Category. + @param GL_Category_ID + General Ledger Category + */ + public void setGL_Category_ID (int GL_Category_ID) + { + if (GL_Category_ID < 1) + throw new IllegalArgumentException ("GL_Category_ID is mandatory."); + set_Value (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); + } + + /** Get GL Category. + @return General Ledger Category + */ + public int getGL_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charges. + @param HasCharges + Charges can be added to the document + */ + public void setHasCharges (boolean HasCharges) + { + set_Value (COLUMNNAME_HasCharges, Boolean.valueOf(HasCharges)); + } + + /** Get Charges. + @return Charges can be added to the document + */ + public boolean isHasCharges () + { + Object oo = get_Value(COLUMNNAME_HasCharges); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Pro forma Invoice. + @param HasProforma + Indicates if Pro Forma Invoices can be generated from this document + */ + public void setHasProforma (boolean HasProforma) + { + set_Value (COLUMNNAME_HasProforma, Boolean.valueOf(HasProforma)); + } + + /** Get Pro forma Invoice. + @return Indicates if Pro Forma Invoices can be generated from this document + */ + public boolean isHasProforma () + { + Object oo = get_Value(COLUMNNAME_HasProforma); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Create Counter Document. + @param IsCreateCounter + Create Counter Document + */ + public void setIsCreateCounter (boolean IsCreateCounter) + { + set_Value (COLUMNNAME_IsCreateCounter, Boolean.valueOf(IsCreateCounter)); + } + + /** Get Create Counter Document. + @return Create Counter Document + */ + public boolean isCreateCounter () + { + Object oo = get_Value(COLUMNNAME_IsCreateCounter); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Default Counter Document. + @param IsDefaultCounterDoc + The document type is the default counter document type + */ + public void setIsDefaultCounterDoc (boolean IsDefaultCounterDoc) + { + set_Value (COLUMNNAME_IsDefaultCounterDoc, Boolean.valueOf(IsDefaultCounterDoc)); + } + + /** Get Default Counter Document. + @return The document type is the default counter document type + */ + public boolean isDefaultCounterDoc () + { + Object oo = get_Value(COLUMNNAME_IsDefaultCounterDoc); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Document is Number Controlled. + @param IsDocNoControlled + The document has a document sequence + */ + public void setIsDocNoControlled (boolean IsDocNoControlled) + { + set_Value (COLUMNNAME_IsDocNoControlled, Boolean.valueOf(IsDocNoControlled)); + } + + /** Get Document is Number Controlled. + @return The document has a document sequence + */ + public boolean isDocNoControlled () + { + Object oo = get_Value(COLUMNNAME_IsDocNoControlled); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set In Transit. + @param IsInTransit + Movement is in transit + */ + public void setIsInTransit (boolean IsInTransit) + { + set_Value (COLUMNNAME_IsInTransit, Boolean.valueOf(IsInTransit)); + } + + /** Get In Transit. + @return Movement is in transit + */ + public boolean isInTransit () + { + Object oo = get_Value(COLUMNNAME_IsInTransit); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Indexed. + @param IsIndexed + Index the document for the internal search engine + */ + public void setIsIndexed (boolean IsIndexed) + { + set_Value (COLUMNNAME_IsIndexed, Boolean.valueOf(IsIndexed)); + } + + /** Get Indexed. + @return Index the document for the internal search engine + */ + public boolean isIndexed () + { + Object oo = get_Value(COLUMNNAME_IsIndexed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Overwrite Date on Complete. + @param IsOverwriteDateOnComplete Overwrite Date on Complete */ + public void setIsOverwriteDateOnComplete (boolean IsOverwriteDateOnComplete) + { + set_Value (COLUMNNAME_IsOverwriteDateOnComplete, Boolean.valueOf(IsOverwriteDateOnComplete)); + } + + /** Get Overwrite Date on Complete. + @return Overwrite Date on Complete */ + public boolean isOverwriteDateOnComplete () + { + Object oo = get_Value(COLUMNNAME_IsOverwriteDateOnComplete); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Overwrite Sequence on Complete. + @param IsOverwriteSeqOnComplete Overwrite Sequence on Complete */ + public void setIsOverwriteSeqOnComplete (boolean IsOverwriteSeqOnComplete) + { + set_Value (COLUMNNAME_IsOverwriteSeqOnComplete, Boolean.valueOf(IsOverwriteSeqOnComplete)); + } + + /** Get Overwrite Sequence on Complete. + @return Overwrite Sequence on Complete */ + public boolean isOverwriteSeqOnComplete () + { + Object oo = get_Value(COLUMNNAME_IsOverwriteSeqOnComplete); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Pick/QA Confirmation. + @param IsPickQAConfirm + Require Pick or QA Confirmation before processing + */ + public void setIsPickQAConfirm (boolean IsPickQAConfirm) + { + set_Value (COLUMNNAME_IsPickQAConfirm, Boolean.valueOf(IsPickQAConfirm)); + } + + /** Get Pick/QA Confirmation. + @return Require Pick or QA Confirmation before processing + */ + public boolean isPickQAConfirm () + { + Object oo = get_Value(COLUMNNAME_IsPickQAConfirm); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Ship/Receipt Confirmation. + @param IsShipConfirm + Require Ship or Receipt Confirmation before processing + */ + public void setIsShipConfirm (boolean IsShipConfirm) + { + set_Value (COLUMNNAME_IsShipConfirm, Boolean.valueOf(IsShipConfirm)); + } + + /** Get Ship/Receipt Confirmation. + @return Require Ship or Receipt Confirmation before processing + */ + public boolean isShipConfirm () + { + Object oo = get_Value(COLUMNNAME_IsShipConfirm); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Split when Difference. + @param IsSplitWhenDifference + Split document when there is a difference + */ + public void setIsSplitWhenDifference (boolean IsSplitWhenDifference) + { + set_Value (COLUMNNAME_IsSplitWhenDifference, Boolean.valueOf(IsSplitWhenDifference)); + } + + /** Get Split when Difference. + @return Split document when there is a difference + */ + public boolean isSplitWhenDifference () + { + Object oo = get_Value(COLUMNNAME_IsSplitWhenDifference); + 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) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 60); + } + 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 Print Text. + @param PrintName + The label text to be printed on a document or correspondence. + */ + public void setPrintName (String PrintName) + { + if (PrintName == null) + throw new IllegalArgumentException ("PrintName is mandatory."); + + if (PrintName.length() > 60) + { + log.warning("Length > 60 - truncated"); + PrintName = PrintName.substring(0, 60); + } + set_Value (COLUMNNAME_PrintName, PrintName); + } + + /** Get Print Text. + @return The label text to be printed on a document or correspondence. + */ + public String getPrintName () + { + return (String)get_Value(COLUMNNAME_PrintName); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Invoice.java b/base/src/org/compiere/model/X_C_Invoice.java new file mode 100644 index 0000000000..39a1db1ddc --- /dev/null +++ b/base/src/org/compiere/model/X_C_Invoice.java @@ -0,0 +1,1754 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for C_Invoice + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_C_Invoice extends PO implements I_C_Invoice, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Invoice (Properties ctx, int C_Invoice_ID, String trxName) + { + super (ctx, C_Invoice_ID, trxName); + /** if (C_Invoice_ID == 0) + { + setC_BPartner_ID (0); + setC_BPartner_Location_ID (0); + setC_Currency_ID (0); +// @C_Currency_ID@ + setC_DocTypeTarget_ID (0); + setC_DocType_ID (0); +// 0 + setC_Invoice_ID (0); + setC_PaymentTerm_ID (0); + setDateAcct (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDateInvoiced (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setGrandTotal (Env.ZERO); + setIsApproved (false); +// @IsApproved@ + setIsDiscountPrinted (false); + setIsInDispute (false); +// N + setIsPaid (false); + setIsPayScheduleValid (false); + setIsPrinted (false); + setIsSOTrx (false); +// @IsSOTrx@ + setIsSelfService (false); + setIsTaxIncluded (false); + setIsTransferred (false); + setM_PriceList_ID (0); + setPaymentRule (null); +// P + setPosted (false); +// N + setProcessed (false); + setSendEMail (false); + setTotalLines (Env.ZERO); + } */ + } + + /** Load Constructor */ + public X_C_Invoice (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - 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_Invoice[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** AD_OrgTrx_ID AD_Reference_ID=130 */ + public static final int AD_ORGTRX_ID_AD_Reference_ID=130; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID < 1) + set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getAD_User() throws Exception + { + Class clazz = MTable.getClass(I_AD_User.Table_Name); + I_AD_User result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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 I_C_Activity getC_Activity() throws Exception + { + Class clazz = MTable.getClass(I_C_Activity.Table_Name); + I_C_Activity result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID < 1) + set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner getC_BPartner() throws Exception + { + Class clazz = MTable.getClass(I_C_BPartner.Table_Name); + I_C_BPartner result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + 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 I_C_BPartner_Location getC_BPartner_Location() throws Exception + { + Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); + I_C_BPartner_Location result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID < 1) + throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getC_Campaign() throws Exception + { + Class clazz = MTable.getClass(I_C_Campaign.Table_Name); + I_C_Campaign result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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 I_C_CashLine getC_CashLine() throws Exception + { + Class clazz = MTable.getClass(I_C_CashLine.Table_Name); + I_C_CashLine result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_CashLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CashLine_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Cash Journal Line. + @param C_CashLine_ID + Cash Journal Line + */ + public void setC_CashLine_ID (int C_CashLine_ID) + { + if (C_CashLine_ID < 1) + set_Value (COLUMNNAME_C_CashLine_ID, null); + else + set_Value (COLUMNNAME_C_CashLine_ID, Integer.valueOf(C_CashLine_ID)); + } + + /** Get Cash Journal Line. + @return Cash Journal Line + */ + public int getC_CashLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CashLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** C_Charge_ID AD_Reference_ID=200 */ + public static final int C_CHARGE_ID_AD_Reference_ID=200; + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID < 1) + set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ConversionType getC_ConversionType() throws Exception + { + Class clazz = MTable.getClass(I_C_ConversionType.Table_Name); + I_C_ConversionType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_ConversionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ConversionType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Currency Type. + @param C_ConversionType_ID + Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID) + { + if (C_ConversionType_ID < 1) + set_Value (COLUMNNAME_C_ConversionType_ID, null); + else + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + } + + /** Get Currency Type. + @return Currency Conversion Rate Type + */ + public int getC_ConversionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getC_Currency() throws Exception + { + Class clazz = MTable.getClass(I_C_Currency.Table_Name); + I_C_Currency result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + 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(); + } + + /** C_DocTypeTarget_ID AD_Reference_ID=170 */ + public static final int C_DOCTYPETARGET_ID_AD_Reference_ID=170; + /** Set Target Document Type. + @param C_DocTypeTarget_ID + Target document type for conversing documents + */ + public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID) + { + if (C_DocTypeTarget_ID < 1) + throw new IllegalArgumentException ("C_DocTypeTarget_ID is mandatory."); + set_Value (COLUMNNAME_C_DocTypeTarget_ID, Integer.valueOf(C_DocTypeTarget_ID)); + } + + /** Get Target Document Type. + @return Target document type for conversing documents + */ + public int getC_DocTypeTarget_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeTarget_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getC_DocType() throws Exception + { + Class clazz = MTable.getClass(I_C_DocType.Table_Name); + I_C_DocType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DunningLevel getC_DunningLevel() throws Exception + { + Class clazz = MTable.getClass(I_C_DunningLevel.Table_Name); + I_C_DunningLevel result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_DunningLevel)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DunningLevel_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Dunning Level. + @param C_DunningLevel_ID Dunning Level */ + public void setC_DunningLevel_ID (int C_DunningLevel_ID) + { + if (C_DunningLevel_ID < 1) + set_Value (COLUMNNAME_C_DunningLevel_ID, null); + else + set_Value (COLUMNNAME_C_DunningLevel_ID, Integer.valueOf(C_DunningLevel_ID)); + } + + /** Get Dunning Level. + @return Dunning Level */ + public int getC_DunningLevel_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DunningLevel_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID < 1) + throw new IllegalArgumentException ("C_Invoice_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Order getC_Order() throws Exception + { + Class clazz = MTable.getClass(I_C_Order.Table_Name); + I_C_Order result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Order_ID, null); + else + set_ValueNoCheck (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(); + } + + public I_C_PaymentTerm getC_PaymentTerm() throws Exception + { + Class clazz = MTable.getClass(I_C_PaymentTerm.Table_Name); + I_C_PaymentTerm result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_PaymentTerm)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentTerm_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Payment Term. + @param C_PaymentTerm_ID + The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) + { + if (C_PaymentTerm_ID < 1) + throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); + set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + } + + /** Get Payment Term. + @return The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentTerm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Payment getC_Payment() throws Exception + { + Class clazz = MTable.getClass(I_C_Payment.Table_Name); + I_C_Payment result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID < 1) + set_Value (COLUMNNAME_C_Payment_ID, null); + else + set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getC_Project() throws Exception + { + Class clazz = MTable.getClass(I_C_Project.Table_Name); + I_C_Project result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID < 1) + set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge amount. + @param ChargeAmt + Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt) + { + set_Value (COLUMNNAME_ChargeAmt, ChargeAmt); + } + + /** Get Charge amount. + @return Charge Amount + */ + public BigDecimal getChargeAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Copy From. + @param CopyFrom + Copy From Record + */ + public void setCopyFrom (String CopyFrom) + { + + if (CopyFrom != null && CopyFrom.length() > 1) + { + log.warning("Length > 1 - truncated"); + CopyFrom = CopyFrom.substring(0, 1); + } + set_Value (COLUMNNAME_CopyFrom, CopyFrom); + } + + /** Get Copy From. + @return Copy From Record + */ + public String getCopyFrom () + { + return (String)get_Value(COLUMNNAME_CopyFrom); + } + + /** Set Create lines from. + @param CreateFrom + Process which will generate a new document lines based on an existing document + */ + public void setCreateFrom (String CreateFrom) + { + + if (CreateFrom != null && CreateFrom.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreateFrom = CreateFrom.substring(0, 1); + } + set_Value (COLUMNNAME_CreateFrom, CreateFrom); + } + + /** Get Create lines from. + @return Process which will generate a new document lines based on an existing document + */ + public String getCreateFrom () + { + return (String)get_Value(COLUMNNAME_CreateFrom); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Date Invoiced. + @param DateInvoiced + Date printed on Invoice + */ + public void setDateInvoiced (Timestamp DateInvoiced) + { + if (DateInvoiced == null) + throw new IllegalArgumentException ("DateInvoiced is mandatory."); + set_Value (COLUMNNAME_DateInvoiced, DateInvoiced); + } + + /** Get Date Invoiced. + @return Date printed on Invoice + */ + public Timestamp getDateInvoiced () + { + return (Timestamp)get_Value(COLUMNNAME_DateInvoiced); + } + + /** Set Date Ordered. + @param DateOrdered + Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered) + { + set_ValueNoCheck (COLUMNNAME_DateOrdered, DateOrdered); + } + + /** Get Date Ordered. + @return Date of Order + */ + public Timestamp getDateOrdered () + { + return (Timestamp)get_Value(COLUMNNAME_DateOrdered); + } + + /** Set Date printed. + @param DatePrinted + Date the document was printed. + */ + public void setDatePrinted (Timestamp DatePrinted) + { + set_Value (COLUMNNAME_DatePrinted, DatePrinted); + } + + /** Get Date printed. + @return Date the document was printed. + */ + public Timestamp getDatePrinted () + { + return (Timestamp)get_Value(COLUMNNAME_DatePrinted); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** DocAction AD_Reference_ID=135 */ + public static final int DOCACTION_AD_Reference_ID=135; + /** Complete = CO */ + public static final String DOCACTION_Complete = "CO"; + /** Approve = AP */ + public static final String DOCACTION_Approve = "AP"; + /** Reject = RJ */ + public static final String DOCACTION_Reject = "RJ"; + /** Post = PO */ + public static final String DOCACTION_Post = "PO"; + /** Void = VO */ + public static final String DOCACTION_Void = "VO"; + /** Close = CL */ + public static final String DOCACTION_Close = "CL"; + /** Reverse - Correct = RC */ + public static final String DOCACTION_Reverse_Correct = "RC"; + /** Reverse - Accrual = RA */ + public static final String DOCACTION_Reverse_Accrual = "RA"; + /** Invalidate = IN */ + public static final String DOCACTION_Invalidate = "IN"; + /** Re-activate = RE */ + public static final String DOCACTION_Re_Activate = "RE"; + /** = -- */ + public static final String DOCACTION_None = "--"; + /** Prepare = PR */ + public static final String DOCACTION_Prepare = "PR"; + /** Unlock = XL */ + public static final String DOCACTION_Unlock = "XL"; + /** Wait Complete = WC */ + public static final String DOCACTION_WaitComplete = "WC"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { + if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + if (DocAction.equals("CO") || DocAction.equals("AP") || DocAction.equals("RJ") || DocAction.equals("PO") || DocAction.equals("VO") || DocAction.equals("CL") || DocAction.equals("RC") || DocAction.equals("RA") || DocAction.equals("IN") || DocAction.equals("RE") || DocAction.equals("--") || DocAction.equals("PR") || DocAction.equals("XL") || DocAction.equals("WC")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - CO - AP - RJ - PO - VO - CL - RC - RA - IN - RE - -- - PR - XL - WC"); + if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 2); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } + + /** DocStatus AD_Reference_ID=131 */ + public static final int DOCSTATUS_AD_Reference_ID=131; + /** Drafted = DR */ + public static final String DOCSTATUS_Drafted = "DR"; + /** Completed = CO */ + public static final String DOCSTATUS_Completed = "CO"; + /** Approved = AP */ + public static final String DOCSTATUS_Approved = "AP"; + /** Not Approved = NA */ + public static final String DOCSTATUS_NotApproved = "NA"; + /** Voided = VO */ + public static final String DOCSTATUS_Voided = "VO"; + /** Invalid = IN */ + public static final String DOCSTATUS_Invalid = "IN"; + /** Reversed = RE */ + public static final String DOCSTATUS_Reversed = "RE"; + /** Closed = CL */ + public static final String DOCSTATUS_Closed = "CL"; + /** Unknown = ?? */ + public static final String DOCSTATUS_Unknown = "??"; + /** In Progress = IP */ + public static final String DOCSTATUS_InProgress = "IP"; + /** Waiting Payment = WP */ + public static final String DOCSTATUS_WaitingPayment = "WP"; + /** Waiting Confirmation = WC */ + public static final String DOCSTATUS_WaitingConfirmation = "WC"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { + if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + if (DocStatus.equals("DR") || DocStatus.equals("CO") || DocStatus.equals("AP") || DocStatus.equals("NA") || DocStatus.equals("VO") || DocStatus.equals("IN") || DocStatus.equals("RE") || DocStatus.equals("CL") || DocStatus.equals("??") || DocStatus.equals("IP") || DocStatus.equals("WP") || DocStatus.equals("WC")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - DR - CO - AP - NA - VO - IN - RE - CL - ?? - IP - WP - WC"); + if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 2); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 30); + } + set_ValueNoCheck (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 Dunning Grace. + @param DunningGrace Dunning Grace */ + public void setDunningGrace (Timestamp DunningGrace) + { + set_Value (COLUMNNAME_DunningGrace, DunningGrace); + } + + /** Get Dunning Grace. + @return Dunning Grace */ + public Timestamp getDunningGrace () + { + return (Timestamp)get_Value(COLUMNNAME_DunningGrace); + } + + /** Set Generate To. + @param GenerateTo + Generate To + */ + public void setGenerateTo (String GenerateTo) + { + + if (GenerateTo != null && GenerateTo.length() > 1) + { + log.warning("Length > 1 - truncated"); + GenerateTo = GenerateTo.substring(0, 1); + } + set_Value (COLUMNNAME_GenerateTo, GenerateTo); + } + + /** Get Generate To. + @return Generate To + */ + public String getGenerateTo () + { + return (String)get_Value(COLUMNNAME_GenerateTo); + } + + /** Set Grand Total. + @param GrandTotal + Total amount of document + */ + public void setGrandTotal (BigDecimal GrandTotal) + { + if (GrandTotal == null) + throw new IllegalArgumentException ("GrandTotal is mandatory."); + set_ValueNoCheck (COLUMNNAME_GrandTotal, GrandTotal); + } + + /** Get Grand Total. + @return Total amount of document + */ + public BigDecimal getGrandTotal () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_GrandTotal); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** InvoiceCollectionType AD_Reference_ID=394 */ + public static final int INVOICECOLLECTIONTYPE_AD_Reference_ID=394; + /** Dunning = D */ + public static final String INVOICECOLLECTIONTYPE_Dunning = "D"; + /** Collection Agency = C */ + public static final String INVOICECOLLECTIONTYPE_CollectionAgency = "C"; + /** Legal Procedure = L */ + public static final String INVOICECOLLECTIONTYPE_LegalProcedure = "L"; + /** Uncollectable = U */ + public static final String INVOICECOLLECTIONTYPE_Uncollectable = "U"; + /** Set Collection Status. + @param InvoiceCollectionType + Invoice Collection Status + */ + public void setInvoiceCollectionType (String InvoiceCollectionType) + { + + if (InvoiceCollectionType == null || InvoiceCollectionType.equals("D") || InvoiceCollectionType.equals("C") || InvoiceCollectionType.equals("L") || InvoiceCollectionType.equals("U")); else throw new IllegalArgumentException ("InvoiceCollectionType Invalid value - " + InvoiceCollectionType + " - Reference_ID=394 - D - C - L - U"); + if (InvoiceCollectionType != null && InvoiceCollectionType.length() > 1) + { + log.warning("Length > 1 - truncated"); + InvoiceCollectionType = InvoiceCollectionType.substring(0, 1); + } + set_Value (COLUMNNAME_InvoiceCollectionType, InvoiceCollectionType); + } + + /** Get Collection Status. + @return Invoice Collection Status + */ + public String getInvoiceCollectionType () + { + return (String)get_Value(COLUMNNAME_InvoiceCollectionType); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_ValueNoCheck (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Discount Printed. + @param IsDiscountPrinted + Print Discount on Invoice and Order + */ + public void setIsDiscountPrinted (boolean IsDiscountPrinted) + { + set_Value (COLUMNNAME_IsDiscountPrinted, Boolean.valueOf(IsDiscountPrinted)); + } + + /** Get Discount Printed. + @return Print Discount on Invoice and Order + */ + public boolean isDiscountPrinted () + { + Object oo = get_Value(COLUMNNAME_IsDiscountPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set In Dispute. + @param IsInDispute + Document is in dispute + */ + public void setIsInDispute (boolean IsInDispute) + { + set_Value (COLUMNNAME_IsInDispute, Boolean.valueOf(IsInDispute)); + } + + /** Get In Dispute. + @return Document is in dispute + */ + public boolean isInDispute () + { + Object oo = get_Value(COLUMNNAME_IsInDispute); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Paid. + @param IsPaid + The document is paid + */ + public void setIsPaid (boolean IsPaid) + { + set_Value (COLUMNNAME_IsPaid, Boolean.valueOf(IsPaid)); + } + + /** Get Paid. + @return The document is paid + */ + public boolean isPaid () + { + Object oo = get_Value(COLUMNNAME_IsPaid); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Pay Schedule valid. + @param IsPayScheduleValid + Is the Payment Schedule is valid + */ + public void setIsPayScheduleValid (boolean IsPayScheduleValid) + { + set_ValueNoCheck (COLUMNNAME_IsPayScheduleValid, Boolean.valueOf(IsPayScheduleValid)); + } + + /** Get Pay Schedule valid. + @return Is the Payment Schedule is valid + */ + public boolean isPayScheduleValid () + { + Object oo = get_Value(COLUMNNAME_IsPayScheduleValid); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Printed. + @param IsPrinted + Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted) + { + set_ValueNoCheck (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); + } + + /** Get Printed. + @return Indicates if this document / line is printed + */ + public boolean isPrinted () + { + Object oo = get_Value(COLUMNNAME_IsPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_ValueNoCheck (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Price includes Tax. + @param IsTaxIncluded + Tax is included in the price + */ + public void setIsTaxIncluded (boolean IsTaxIncluded) + { + set_Value (COLUMNNAME_IsTaxIncluded, Boolean.valueOf(IsTaxIncluded)); + } + + /** Get Price includes Tax. + @return Tax is included in the price + */ + public boolean isTaxIncluded () + { + Object oo = get_Value(COLUMNNAME_IsTaxIncluded); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Transferred. + @param IsTransferred + Transferred to General Ledger (i.e. accounted) + */ + public void setIsTransferred (boolean IsTransferred) + { + set_ValueNoCheck (COLUMNNAME_IsTransferred, Boolean.valueOf(IsTransferred)); + } + + /** Get Transferred. + @return Transferred to General Ledger (i.e. accounted) + */ + public boolean isTransferred () + { + Object oo = get_Value(COLUMNNAME_IsTransferred); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_PriceList getM_PriceList() throws Exception + { + Class clazz = MTable.getClass(I_M_PriceList.Table_Name); + I_M_PriceList result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID < 1) + throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_RMA getM_RMA() throws Exception + { + Class clazz = MTable.getClass(I_M_RMA.Table_Name); + I_M_RMA result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_RMA)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_RMA_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set RMA. + @param M_RMA_ID + Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID) + { + if (M_RMA_ID < 1) + set_Value (COLUMNNAME_M_RMA_ID, null); + else + set_Value (COLUMNNAME_M_RMA_ID, Integer.valueOf(M_RMA_ID)); + } + + /** Get RMA. + @return Return Material Authorization + */ + public int getM_RMA_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_RMA_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order Reference. + @param POReference + Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference) + { + + if (POReference != null && POReference.length() > 20) + { + log.warning("Length > 20 - truncated"); + POReference = POReference.substring(0, 20); + } + set_Value (COLUMNNAME_POReference, POReference); + } + + /** Get Order Reference. + @return Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference () + { + return (String)get_Value(COLUMNNAME_POReference); + } + + /** PaymentRule AD_Reference_ID=195 */ + public static final int PAYMENTRULE_AD_Reference_ID=195; + /** Cash = B */ + public static final String PAYMENTRULE_Cash = "B"; + /** Credit Card = K */ + public static final String PAYMENTRULE_CreditCard = "K"; + /** Direct Deposit = T */ + public static final String PAYMENTRULE_DirectDeposit = "T"; + /** Check = S */ + public static final String PAYMENTRULE_Check = "S"; + /** On Credit = P */ + public static final String PAYMENTRULE_OnCredit = "P"; + /** Direct Debit = D */ + public static final String PAYMENTRULE_DirectDebit = "D"; + /** Set Payment Rule. + @param PaymentRule + How you pay the invoice + */ + public void setPaymentRule (String PaymentRule) + { + if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory"); + if (PaymentRule.equals("B") || PaymentRule.equals("K") || PaymentRule.equals("T") || PaymentRule.equals("S") || PaymentRule.equals("P") || PaymentRule.equals("D")); else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - K - T - S - P - D"); + if (PaymentRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + PaymentRule = PaymentRule.substring(0, 1); + } + set_Value (COLUMNNAME_PaymentRule, PaymentRule); + } + + /** Get Payment Rule. + @return How you pay the invoice + */ + public String getPaymentRule () + { + return (String)get_Value(COLUMNNAME_PaymentRule); + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_ValueNoCheck (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. + @return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Referenced Invoice. + @param Ref_Invoice_ID Referenced Invoice */ + public void setRef_Invoice_ID (int Ref_Invoice_ID) + { + if (Ref_Invoice_ID < 1) + set_Value (COLUMNNAME_Ref_Invoice_ID, null); + else + set_Value (COLUMNNAME_Ref_Invoice_ID, Integer.valueOf(Ref_Invoice_ID)); + } + + /** Get Referenced Invoice. + @return Referenced Invoice */ + public int getRef_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ref_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Reversal_ID AD_Reference_ID=336 */ + public static final int REVERSAL_ID_AD_Reference_ID=336; + /** Set Reversal ID. + @param Reversal_ID + ID of document reversal + */ + public void setReversal_ID (int Reversal_ID) + { + if (Reversal_ID < 1) + set_Value (COLUMNNAME_Reversal_ID, null); + else + set_Value (COLUMNNAME_Reversal_ID, Integer.valueOf(Reversal_ID)); + } + + /** Get Reversal ID. + @return ID of document reversal + */ + public int getReversal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Reversal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** SalesRep_ID AD_Reference_ID=190 */ + public static final int SALESREP_ID_AD_Reference_ID=190; + /** 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 Send EMail. + @param SendEMail + Enable sending Document EMail + */ + public void setSendEMail (boolean SendEMail) + { + set_Value (COLUMNNAME_SendEMail, Boolean.valueOf(SendEMail)); + } + + /** Get Send EMail. + @return Enable sending Document EMail + */ + public boolean isSendEMail () + { + Object oo = get_Value(COLUMNNAME_SendEMail); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Total Lines. + @param TotalLines + Total of all document lines + */ + public void setTotalLines (BigDecimal TotalLines) + { + if (TotalLines == null) + throw new IllegalArgumentException ("TotalLines is mandatory."); + set_ValueNoCheck (COLUMNNAME_TotalLines, TotalLines); + } + + /** Get Total Lines. + @return Total of all document lines + */ + public BigDecimal getTotalLines () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalLines); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** User1_ID AD_Reference_ID=134 */ + public static final int USER1_ID_AD_Reference_ID=134; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID < 1) + set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** User2_ID AD_Reference_ID=137 */ + public static final int USER2_ID_AD_Reference_ID=137; + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID < 1) + set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Order.java b/base/src/org/compiere/model/X_C_Order.java new file mode 100644 index 0000000000..3db090876a --- /dev/null +++ b/base/src/org/compiere/model/X_C_Order.java @@ -0,0 +1,2140 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for C_Order + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_C_Order extends PO implements I_C_Order, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Order (Properties ctx, int C_Order_ID, String trxName) + { + super (ctx, C_Order_ID, trxName); + /** if (C_Order_ID == 0) + { + setC_BPartner_ID (0); + setC_BPartner_Location_ID (0); + setC_Currency_ID (0); +// @C_Currency_ID@ + setC_DocTypeTarget_ID (0); + setC_DocType_ID (0); +// 0 + setC_Order_ID (0); + setC_PaymentTerm_ID (0); + setDateAcct (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDateOrdered (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDatePromised (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDeliveryRule (null); +// F + setDeliveryViaRule (null); +// P + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setFreightAmt (Env.ZERO); + setFreightCostRule (null); +// I + setGrandTotal (Env.ZERO); + setInvoiceRule (null); +// I + setIsApproved (false); +// @IsApproved@ + setIsCreditApproved (false); + setIsDelivered (false); + setIsDiscountPrinted (false); + setIsDropShip (false); +// N + setIsInvoiced (false); + setIsPrinted (false); + setIsSOTrx (false); +// @IsSOTrx@ + setIsSelected (false); + setIsSelfService (false); + setIsTaxIncluded (false); + setIsTransferred (false); + setM_PriceList_ID (0); + setM_Warehouse_ID (0); + setPaymentRule (null); +// B + setPosted (false); +// N + setPriorityRule (null); +// 5 + setProcessed (false); + setSalesRep_ID (0); + setSendEMail (false); + setTotalLines (Env.ZERO); + } */ + } + + /** Load Constructor */ + public X_C_Order (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - 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_Order[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** AD_OrgTrx_ID AD_Reference_ID=130 */ + public static final int AD_ORGTRX_ID_AD_Reference_ID=130; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID < 1) + set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getAD_User() throws Exception + { + Class clazz = MTable.getClass(I_AD_User.Table_Name); + I_AD_User result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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 AmountRefunded. + @param AmountRefunded AmountRefunded */ + public void setAmountRefunded (BigDecimal AmountRefunded) + { + set_Value (COLUMNNAME_AmountRefunded, AmountRefunded); + } + + /** Get AmountRefunded. + @return AmountRefunded */ + public BigDecimal getAmountRefunded () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmountRefunded); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set AmountTendered. + @param AmountTendered AmountTendered */ + public void setAmountTendered (BigDecimal AmountTendered) + { + set_Value (COLUMNNAME_AmountTendered, AmountTendered); + } + + /** Get AmountTendered. + @return AmountTendered */ + public BigDecimal getAmountTendered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmountTendered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Bill_BPartner_ID AD_Reference_ID=138 */ + public static final int BILL_BPARTNER_ID_AD_Reference_ID=138; + /** Set Invoice Partner. + @param Bill_BPartner_ID + Business Partner to be invoiced + */ + public void setBill_BPartner_ID (int Bill_BPartner_ID) + { + if (Bill_BPartner_ID < 1) + set_Value (COLUMNNAME_Bill_BPartner_ID, null); + else + set_Value (COLUMNNAME_Bill_BPartner_ID, Integer.valueOf(Bill_BPartner_ID)); + } + + /** Get Invoice Partner. + @return Business Partner to be invoiced + */ + public int getBill_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Bill_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Bill_Location_ID AD_Reference_ID=159 */ + public static final int BILL_LOCATION_ID_AD_Reference_ID=159; + /** Set Invoice Location. + @param Bill_Location_ID + Business Partner Location for invoicing + */ + public void setBill_Location_ID (int Bill_Location_ID) + { + if (Bill_Location_ID < 1) + set_Value (COLUMNNAME_Bill_Location_ID, null); + else + set_Value (COLUMNNAME_Bill_Location_ID, Integer.valueOf(Bill_Location_ID)); + } + + /** Get Invoice Location. + @return Business Partner Location for invoicing + */ + public int getBill_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Bill_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Bill_User_ID AD_Reference_ID=110 */ + public static final int BILL_USER_ID_AD_Reference_ID=110; + /** Set Invoice Contact. + @param Bill_User_ID + Business Partner Contact for invoicing + */ + public void setBill_User_ID (int Bill_User_ID) + { + if (Bill_User_ID < 1) + set_Value (COLUMNNAME_Bill_User_ID, null); + else + set_Value (COLUMNNAME_Bill_User_ID, Integer.valueOf(Bill_User_ID)); + } + + /** Get Invoice Contact. + @return Business Partner Contact for invoicing + */ + public int getBill_User_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Bill_User_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getC_Activity() throws Exception + { + Class clazz = MTable.getClass(I_C_Activity.Table_Name); + I_C_Activity result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID < 1) + set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner getC_BPartner() throws Exception + { + Class clazz = MTable.getClass(I_C_BPartner.Table_Name); + I_C_BPartner result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + 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 I_C_BPartner_Location getC_BPartner_Location() throws Exception + { + Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); + I_C_BPartner_Location result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID < 1) + throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getC_Campaign() throws Exception + { + Class clazz = MTable.getClass(I_C_Campaign.Table_Name); + I_C_Campaign result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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 I_C_CashLine getC_CashLine() throws Exception + { + Class clazz = MTable.getClass(I_C_CashLine.Table_Name); + I_C_CashLine result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_CashLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CashLine_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Cash Journal Line. + @param C_CashLine_ID + Cash Journal Line + */ + public void setC_CashLine_ID (int C_CashLine_ID) + { + if (C_CashLine_ID < 1) + set_Value (COLUMNNAME_C_CashLine_ID, null); + else + set_Value (COLUMNNAME_C_CashLine_ID, Integer.valueOf(C_CashLine_ID)); + } + + /** Get Cash Journal Line. + @return Cash Journal Line + */ + public int getC_CashLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CashLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** C_Charge_ID AD_Reference_ID=200 */ + public static final int C_CHARGE_ID_AD_Reference_ID=200; + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID < 1) + set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ConversionType getC_ConversionType() throws Exception + { + Class clazz = MTable.getClass(I_C_ConversionType.Table_Name); + I_C_ConversionType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_ConversionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ConversionType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Currency Type. + @param C_ConversionType_ID + Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID) + { + if (C_ConversionType_ID < 1) + set_Value (COLUMNNAME_C_ConversionType_ID, null); + else + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + } + + /** Get Currency Type. + @return Currency Conversion Rate Type + */ + public int getC_ConversionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getC_Currency() throws Exception + { + Class clazz = MTable.getClass(I_C_Currency.Table_Name); + I_C_Currency result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_ValueNoCheck (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(); + } + + /** C_DocTypeTarget_ID AD_Reference_ID=170 */ + public static final int C_DOCTYPETARGET_ID_AD_Reference_ID=170; + /** Set Target Document Type. + @param C_DocTypeTarget_ID + Target document type for conversing documents + */ + public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID) + { + if (C_DocTypeTarget_ID < 1) + throw new IllegalArgumentException ("C_DocTypeTarget_ID is mandatory."); + set_Value (COLUMNNAME_C_DocTypeTarget_ID, Integer.valueOf(C_DocTypeTarget_ID)); + } + + /** Get Target Document Type. + @return Target document type for conversing documents + */ + public int getC_DocTypeTarget_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocTypeTarget_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** C_DocType_ID AD_Reference_ID=170 */ + public static final int C_DOCTYPE_ID_AD_Reference_ID=170; + public I_C_DocType getC_DocType() throws Exception + { + Class clazz = MTable.getClass(I_C_DocType.Table_Name); + I_C_DocType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID < 1) + throw new IllegalArgumentException ("C_Order_ID is mandatory."); + set_ValueNoCheck (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(); + } + + public I_C_POS getC_POS() throws Exception + { + Class clazz = MTable.getClass(I_C_POS.Table_Name); + I_C_POS result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_POS)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_POS_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set POS Terminal. + @param C_POS_ID + Point of Sales Terminal + */ + public void setC_POS_ID (int C_POS_ID) + { + if (C_POS_ID < 1) + set_Value (COLUMNNAME_C_POS_ID, null); + else + set_Value (COLUMNNAME_C_POS_ID, Integer.valueOf(C_POS_ID)); + } + + /** Get POS Terminal. + @return Point of Sales Terminal + */ + public int getC_POS_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_POS_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_PaymentTerm getC_PaymentTerm() throws Exception + { + Class clazz = MTable.getClass(I_C_PaymentTerm.Table_Name); + I_C_PaymentTerm result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_PaymentTerm)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentTerm_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Payment Term. + @param C_PaymentTerm_ID + The terms of Payment (timing, discount) + */ + public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) + { + if (C_PaymentTerm_ID < 1) + throw new IllegalArgumentException ("C_PaymentTerm_ID is mandatory."); + set_Value (COLUMNNAME_C_PaymentTerm_ID, Integer.valueOf(C_PaymentTerm_ID)); + } + + /** Get Payment Term. + @return The terms of Payment (timing, discount) + */ + public int getC_PaymentTerm_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentTerm_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Payment getC_Payment() throws Exception + { + Class clazz = MTable.getClass(I_C_Payment.Table_Name); + I_C_Payment result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID < 1) + set_Value (COLUMNNAME_C_Payment_ID, null); + else + set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getC_Project() throws Exception + { + Class clazz = MTable.getClass(I_C_Project.Table_Name); + I_C_Project result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID < 1) + set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge amount. + @param ChargeAmt + Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt) + { + set_Value (COLUMNNAME_ChargeAmt, ChargeAmt); + } + + /** Get Charge amount. + @return Charge Amount + */ + public BigDecimal getChargeAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Copy From. + @param CopyFrom + Copy From Record + */ + public void setCopyFrom (String CopyFrom) + { + + if (CopyFrom != null && CopyFrom.length() > 1) + { + log.warning("Length > 1 - truncated"); + CopyFrom = CopyFrom.substring(0, 1); + } + set_Value (COLUMNNAME_CopyFrom, CopyFrom); + } + + /** Get Copy From. + @return Copy From Record + */ + public String getCopyFrom () + { + return (String)get_Value(COLUMNNAME_CopyFrom); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Date Ordered. + @param DateOrdered + Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered) + { + if (DateOrdered == null) + throw new IllegalArgumentException ("DateOrdered is mandatory."); + set_Value (COLUMNNAME_DateOrdered, DateOrdered); + } + + /** Get Date Ordered. + @return Date of Order + */ + public Timestamp getDateOrdered () + { + return (Timestamp)get_Value(COLUMNNAME_DateOrdered); + } + + /** Set Date printed. + @param DatePrinted + Date the document was printed. + */ + public void setDatePrinted (Timestamp DatePrinted) + { + set_Value (COLUMNNAME_DatePrinted, DatePrinted); + } + + /** Get Date printed. + @return Date the document was printed. + */ + public Timestamp getDatePrinted () + { + return (Timestamp)get_Value(COLUMNNAME_DatePrinted); + } + + /** Set Date Promised. + @param DatePromised + Date Order was promised + */ + public void setDatePromised (Timestamp DatePromised) + { + if (DatePromised == null) + throw new IllegalArgumentException ("DatePromised is mandatory."); + set_Value (COLUMNNAME_DatePromised, DatePromised); + } + + /** Get Date Promised. + @return Date Order was promised + */ + public Timestamp getDatePromised () + { + return (Timestamp)get_Value(COLUMNNAME_DatePromised); + } + + /** DeliveryRule AD_Reference_ID=151 */ + public static final int DELIVERYRULE_AD_Reference_ID=151; + /** After Receipt = R */ + public static final String DELIVERYRULE_AfterReceipt = "R"; + /** Availability = A */ + public static final String DELIVERYRULE_Availability = "A"; + /** Complete Line = L */ + public static final String DELIVERYRULE_CompleteLine = "L"; + /** Complete Order = O */ + public static final String DELIVERYRULE_CompleteOrder = "O"; + /** Force = F */ + public static final String DELIVERYRULE_Force = "F"; + /** Manual = M */ + public static final String DELIVERYRULE_Manual = "M"; + /** Set Delivery Rule. + @param DeliveryRule + Defines the timing of Delivery + */ + public void setDeliveryRule (String DeliveryRule) + { + if (DeliveryRule == null) throw new IllegalArgumentException ("DeliveryRule is mandatory"); + if (DeliveryRule.equals("R") || DeliveryRule.equals("A") || DeliveryRule.equals("L") || DeliveryRule.equals("O") || DeliveryRule.equals("F") || DeliveryRule.equals("M")); else throw new IllegalArgumentException ("DeliveryRule Invalid value - " + DeliveryRule + " - Reference_ID=151 - R - A - L - O - F - M"); + if (DeliveryRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + DeliveryRule = DeliveryRule.substring(0, 1); + } + set_Value (COLUMNNAME_DeliveryRule, DeliveryRule); + } + + /** Get Delivery Rule. + @return Defines the timing of Delivery + */ + public String getDeliveryRule () + { + return (String)get_Value(COLUMNNAME_DeliveryRule); + } + + /** DeliveryViaRule AD_Reference_ID=152 */ + public static final int DELIVERYVIARULE_AD_Reference_ID=152; + /** Pickup = P */ + public static final String DELIVERYVIARULE_Pickup = "P"; + /** Delivery = D */ + public static final String DELIVERYVIARULE_Delivery = "D"; + /** Shipper = S */ + public static final String DELIVERYVIARULE_Shipper = "S"; + /** Set Delivery Via. + @param DeliveryViaRule + How the order will be delivered + */ + public void setDeliveryViaRule (String DeliveryViaRule) + { + if (DeliveryViaRule == null) throw new IllegalArgumentException ("DeliveryViaRule is mandatory"); + if (DeliveryViaRule.equals("P") || DeliveryViaRule.equals("D") || DeliveryViaRule.equals("S")); else throw new IllegalArgumentException ("DeliveryViaRule Invalid value - " + DeliveryViaRule + " - Reference_ID=152 - P - D - S"); + if (DeliveryViaRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + DeliveryViaRule = DeliveryViaRule.substring(0, 1); + } + set_Value (COLUMNNAME_DeliveryViaRule, DeliveryViaRule); + } + + /** Get Delivery Via. + @return How the order will be delivered + */ + public String getDeliveryViaRule () + { + return (String)get_Value(COLUMNNAME_DeliveryViaRule); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** DocAction AD_Reference_ID=135 */ + public static final int DOCACTION_AD_Reference_ID=135; + /** Complete = CO */ + public static final String DOCACTION_Complete = "CO"; + /** Approve = AP */ + public static final String DOCACTION_Approve = "AP"; + /** Reject = RJ */ + public static final String DOCACTION_Reject = "RJ"; + /** Post = PO */ + public static final String DOCACTION_Post = "PO"; + /** Void = VO */ + public static final String DOCACTION_Void = "VO"; + /** Close = CL */ + public static final String DOCACTION_Close = "CL"; + /** Reverse - Correct = RC */ + public static final String DOCACTION_Reverse_Correct = "RC"; + /** Reverse - Accrual = RA */ + public static final String DOCACTION_Reverse_Accrual = "RA"; + /** Invalidate = IN */ + public static final String DOCACTION_Invalidate = "IN"; + /** Re-activate = RE */ + public static final String DOCACTION_Re_Activate = "RE"; + /** = -- */ + public static final String DOCACTION_None = "--"; + /** Prepare = PR */ + public static final String DOCACTION_Prepare = "PR"; + /** Unlock = XL */ + public static final String DOCACTION_Unlock = "XL"; + /** Wait Complete = WC */ + public static final String DOCACTION_WaitComplete = "WC"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { + if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + if (DocAction.equals("CO") || DocAction.equals("AP") || DocAction.equals("RJ") || DocAction.equals("PO") || DocAction.equals("VO") || DocAction.equals("CL") || DocAction.equals("RC") || DocAction.equals("RA") || DocAction.equals("IN") || DocAction.equals("RE") || DocAction.equals("--") || DocAction.equals("PR") || DocAction.equals("XL") || DocAction.equals("WC")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - CO - AP - RJ - PO - VO - CL - RC - RA - IN - RE - -- - PR - XL - WC"); + if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 2); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } + + /** DocStatus AD_Reference_ID=131 */ + public static final int DOCSTATUS_AD_Reference_ID=131; + /** Drafted = DR */ + public static final String DOCSTATUS_Drafted = "DR"; + /** Completed = CO */ + public static final String DOCSTATUS_Completed = "CO"; + /** Approved = AP */ + public static final String DOCSTATUS_Approved = "AP"; + /** Not Approved = NA */ + public static final String DOCSTATUS_NotApproved = "NA"; + /** Voided = VO */ + public static final String DOCSTATUS_Voided = "VO"; + /** Invalid = IN */ + public static final String DOCSTATUS_Invalid = "IN"; + /** Reversed = RE */ + public static final String DOCSTATUS_Reversed = "RE"; + /** Closed = CL */ + public static final String DOCSTATUS_Closed = "CL"; + /** Unknown = ?? */ + public static final String DOCSTATUS_Unknown = "??"; + /** In Progress = IP */ + public static final String DOCSTATUS_InProgress = "IP"; + /** Waiting Payment = WP */ + public static final String DOCSTATUS_WaitingPayment = "WP"; + /** Waiting Confirmation = WC */ + public static final String DOCSTATUS_WaitingConfirmation = "WC"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { + if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + if (DocStatus.equals("DR") || DocStatus.equals("CO") || DocStatus.equals("AP") || DocStatus.equals("NA") || DocStatus.equals("VO") || DocStatus.equals("IN") || DocStatus.equals("RE") || DocStatus.equals("CL") || DocStatus.equals("??") || DocStatus.equals("IP") || DocStatus.equals("WP") || DocStatus.equals("WC")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - DR - CO - AP - NA - VO - IN - RE - CL - ?? - IP - WP - WC"); + if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 2); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 30); + } + set_ValueNoCheck (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 Freight Amount. + @param FreightAmt + Freight Amount + */ + public void setFreightAmt (BigDecimal FreightAmt) + { + if (FreightAmt == null) + throw new IllegalArgumentException ("FreightAmt is mandatory."); + set_Value (COLUMNNAME_FreightAmt, FreightAmt); + } + + /** Get Freight Amount. + @return Freight Amount + */ + public BigDecimal getFreightAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FreightAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** FreightCostRule AD_Reference_ID=153 */ + public static final int FREIGHTCOSTRULE_AD_Reference_ID=153; + /** Freight included = I */ + public static final String FREIGHTCOSTRULE_FreightIncluded = "I"; + /** Fix price = F */ + public static final String FREIGHTCOSTRULE_FixPrice = "F"; + /** Calculated = C */ + public static final String FREIGHTCOSTRULE_Calculated = "C"; + /** Line = L */ + public static final String FREIGHTCOSTRULE_Line = "L"; + /** Set Freight Cost Rule. + @param FreightCostRule + Method for charging Freight + */ + public void setFreightCostRule (String FreightCostRule) + { + if (FreightCostRule == null) throw new IllegalArgumentException ("FreightCostRule is mandatory"); + if (FreightCostRule.equals("I") || FreightCostRule.equals("F") || FreightCostRule.equals("C") || FreightCostRule.equals("L")); else throw new IllegalArgumentException ("FreightCostRule Invalid value - " + FreightCostRule + " - Reference_ID=153 - I - F - C - L"); + if (FreightCostRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + FreightCostRule = FreightCostRule.substring(0, 1); + } + set_Value (COLUMNNAME_FreightCostRule, FreightCostRule); + } + + /** Get Freight Cost Rule. + @return Method for charging Freight + */ + public String getFreightCostRule () + { + return (String)get_Value(COLUMNNAME_FreightCostRule); + } + + /** Set Grand Total. + @param GrandTotal + Total amount of document + */ + public void setGrandTotal (BigDecimal GrandTotal) + { + if (GrandTotal == null) + throw new IllegalArgumentException ("GrandTotal is mandatory."); + set_ValueNoCheck (COLUMNNAME_GrandTotal, GrandTotal); + } + + /** Get Grand Total. + @return Total amount of document + */ + public BigDecimal getGrandTotal () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_GrandTotal); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** InvoiceRule AD_Reference_ID=150 */ + public static final int INVOICERULE_AD_Reference_ID=150; + /** After Order delivered = O */ + public static final String INVOICERULE_AfterOrderDelivered = "O"; + /** After Delivery = D */ + public static final String INVOICERULE_AfterDelivery = "D"; + /** Customer Schedule after Delivery = S */ + public static final String INVOICERULE_CustomerScheduleAfterDelivery = "S"; + /** Immediate = I */ + public static final String INVOICERULE_Immediate = "I"; + /** Set Invoice Rule. + @param InvoiceRule + Frequency and method of invoicing + */ + public void setInvoiceRule (String InvoiceRule) + { + if (InvoiceRule == null) throw new IllegalArgumentException ("InvoiceRule is mandatory"); + if (InvoiceRule.equals("O") || InvoiceRule.equals("D") || InvoiceRule.equals("S") || InvoiceRule.equals("I")); else throw new IllegalArgumentException ("InvoiceRule Invalid value - " + InvoiceRule + " - Reference_ID=150 - O - D - S - I"); + if (InvoiceRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + InvoiceRule = InvoiceRule.substring(0, 1); + } + set_Value (COLUMNNAME_InvoiceRule, InvoiceRule); + } + + /** Get Invoice Rule. + @return Frequency and method of invoicing + */ + public String getInvoiceRule () + { + return (String)get_Value(COLUMNNAME_InvoiceRule); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_ValueNoCheck (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Credit Approved. + @param IsCreditApproved + Credit has been approved + */ + public void setIsCreditApproved (boolean IsCreditApproved) + { + set_ValueNoCheck (COLUMNNAME_IsCreditApproved, Boolean.valueOf(IsCreditApproved)); + } + + /** Get Credit Approved. + @return Credit has been approved + */ + public boolean isCreditApproved () + { + Object oo = get_Value(COLUMNNAME_IsCreditApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Delivered. + @param IsDelivered Delivered */ + public void setIsDelivered (boolean IsDelivered) + { + set_ValueNoCheck (COLUMNNAME_IsDelivered, Boolean.valueOf(IsDelivered)); + } + + /** Get Delivered. + @return Delivered */ + public boolean isDelivered () + { + Object oo = get_Value(COLUMNNAME_IsDelivered); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Discount Printed. + @param IsDiscountPrinted + Print Discount on Invoice and Order + */ + public void setIsDiscountPrinted (boolean IsDiscountPrinted) + { + set_Value (COLUMNNAME_IsDiscountPrinted, Boolean.valueOf(IsDiscountPrinted)); + } + + /** Get Discount Printed. + @return Print Discount on Invoice and Order + */ + public boolean isDiscountPrinted () + { + Object oo = get_Value(COLUMNNAME_IsDiscountPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Drop Shipment. + @param IsDropShip + Drop Shipments are sent from the Vendor directly to the Customer + */ + public void setIsDropShip (boolean IsDropShip) + { + set_ValueNoCheck (COLUMNNAME_IsDropShip, Boolean.valueOf(IsDropShip)); + } + + /** Get Drop Shipment. + @return Drop Shipments are sent from the Vendor directly to the Customer + */ + public boolean isDropShip () + { + Object oo = get_Value(COLUMNNAME_IsDropShip); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Invoiced. + @param IsInvoiced + Is this invoiced? + */ + public void setIsInvoiced (boolean IsInvoiced) + { + set_ValueNoCheck (COLUMNNAME_IsInvoiced, Boolean.valueOf(IsInvoiced)); + } + + /** Get Invoiced. + @return Is this invoiced? + */ + public boolean isInvoiced () + { + Object oo = get_Value(COLUMNNAME_IsInvoiced); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Printed. + @param IsPrinted + Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted) + { + set_ValueNoCheck (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); + } + + /** Get Printed. + @return Indicates if this document / line is printed + */ + public boolean isPrinted () + { + Object oo = get_Value(COLUMNNAME_IsPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Selected. + @param IsSelected Selected */ + public void setIsSelected (boolean IsSelected) + { + set_Value (COLUMNNAME_IsSelected, Boolean.valueOf(IsSelected)); + } + + /** Get Selected. + @return Selected */ + public boolean isSelected () + { + Object oo = get_Value(COLUMNNAME_IsSelected); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Price includes Tax. + @param IsTaxIncluded + Tax is included in the price + */ + public void setIsTaxIncluded (boolean IsTaxIncluded) + { + set_Value (COLUMNNAME_IsTaxIncluded, Boolean.valueOf(IsTaxIncluded)); + } + + /** Get Price includes Tax. + @return Tax is included in the price + */ + public boolean isTaxIncluded () + { + Object oo = get_Value(COLUMNNAME_IsTaxIncluded); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Transferred. + @param IsTransferred + Transferred to General Ledger (i.e. accounted) + */ + public void setIsTransferred (boolean IsTransferred) + { + set_ValueNoCheck (COLUMNNAME_IsTransferred, Boolean.valueOf(IsTransferred)); + } + + /** Get Transferred. + @return Transferred to General Ledger (i.e. accounted) + */ + public boolean isTransferred () + { + Object oo = get_Value(COLUMNNAME_IsTransferred); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Link_Order_ID AD_Reference_ID=290 */ + public static final int LINK_ORDER_ID_AD_Reference_ID=290; + /** Set Linked Order. + @param Link_Order_ID + This field links a sales order to the purchase order that is generated from it. + */ + public void setLink_Order_ID (int Link_Order_ID) + { + if (Link_Order_ID < 1) + set_ValueNoCheck (COLUMNNAME_Link_Order_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Link_Order_ID, Integer.valueOf(Link_Order_ID)); + } + + /** Get Linked Order. + @return This field links a sales order to the purchase order that is generated from it. + */ + public int getLink_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Link_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_PriceList getM_PriceList() throws Exception + { + Class clazz = MTable.getClass(I_M_PriceList.Table_Name); + I_M_PriceList result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID < 1) + throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Shipper getM_Shipper() throws Exception + { + Class clazz = MTable.getClass(I_M_Shipper.Table_Name); + I_M_Shipper result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Shipper)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Shipper_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Shipper. + @param M_Shipper_ID + Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID) + { + if (M_Shipper_ID < 1) + set_Value (COLUMNNAME_M_Shipper_ID, null); + else + set_Value (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); + } + + /** Get Shipper. + @return Method or manner of product delivery + */ + public int getM_Shipper_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Shipper_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getM_Warehouse() throws Exception + { + Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); + I_M_Warehouse result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set OrderType. + @param OrderType OrderType */ + public void setOrderType (String OrderType) + { + + if (OrderType != null && OrderType.length() > 510) + { + log.warning("Length > 510 - truncated"); + OrderType = OrderType.substring(0, 510); + } + set_Value (COLUMNNAME_OrderType, OrderType); + } + + /** Get OrderType. + @return OrderType */ + public String getOrderType () + { + return (String)get_Value(COLUMNNAME_OrderType); + } + + /** Set Order Reference. + @param POReference + Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference) + { + + if (POReference != null && POReference.length() > 20) + { + log.warning("Length > 20 - truncated"); + POReference = POReference.substring(0, 20); + } + set_Value (COLUMNNAME_POReference, POReference); + } + + /** Get Order Reference. + @return Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference () + { + return (String)get_Value(COLUMNNAME_POReference); + } + + /** Set Payment BPartner. + @param Pay_BPartner_ID + Business Partner responsible for the payment + */ + public void setPay_BPartner_ID (int Pay_BPartner_ID) + { + if (Pay_BPartner_ID < 1) + set_Value (COLUMNNAME_Pay_BPartner_ID, null); + else + set_Value (COLUMNNAME_Pay_BPartner_ID, Integer.valueOf(Pay_BPartner_ID)); + } + + /** Get Payment BPartner. + @return Business Partner responsible for the payment + */ + public int getPay_BPartner_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Pay_BPartner_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment Location. + @param Pay_Location_ID + Location of the Business Partner responsible for the payment + */ + public void setPay_Location_ID (int Pay_Location_ID) + { + if (Pay_Location_ID < 1) + set_Value (COLUMNNAME_Pay_Location_ID, null); + else + set_Value (COLUMNNAME_Pay_Location_ID, Integer.valueOf(Pay_Location_ID)); + } + + /** Get Payment Location. + @return Location of the Business Partner responsible for the payment + */ + public int getPay_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Pay_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** PaymentRule AD_Reference_ID=195 */ + public static final int PAYMENTRULE_AD_Reference_ID=195; + /** Cash = B */ + public static final String PAYMENTRULE_Cash = "B"; + /** Credit Card = K */ + public static final String PAYMENTRULE_CreditCard = "K"; + /** Direct Deposit = T */ + public static final String PAYMENTRULE_DirectDeposit = "T"; + /** Check = S */ + public static final String PAYMENTRULE_Check = "S"; + /** On Credit = P */ + public static final String PAYMENTRULE_OnCredit = "P"; + /** Direct Debit = D */ + public static final String PAYMENTRULE_DirectDebit = "D"; + /** Set Payment Rule. + @param PaymentRule + How you pay the invoice + */ + public void setPaymentRule (String PaymentRule) + { + if (PaymentRule == null) throw new IllegalArgumentException ("PaymentRule is mandatory"); + if (PaymentRule.equals("B") || PaymentRule.equals("K") || PaymentRule.equals("T") || PaymentRule.equals("S") || PaymentRule.equals("P") || PaymentRule.equals("D")); else throw new IllegalArgumentException ("PaymentRule Invalid value - " + PaymentRule + " - Reference_ID=195 - B - K - T - S - P - D"); + if (PaymentRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + PaymentRule = PaymentRule.substring(0, 1); + } + set_Value (COLUMNNAME_PaymentRule, PaymentRule); + } + + /** Get Payment Rule. + @return How you pay the invoice + */ + public String getPaymentRule () + { + return (String)get_Value(COLUMNNAME_PaymentRule); + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** PriorityRule AD_Reference_ID=154 */ + public static final int PRIORITYRULE_AD_Reference_ID=154; + /** High = 3 */ + public static final String PRIORITYRULE_High = "3"; + /** Medium = 5 */ + public static final String PRIORITYRULE_Medium = "5"; + /** Low = 7 */ + public static final String PRIORITYRULE_Low = "7"; + /** Urgent = 1 */ + public static final String PRIORITYRULE_Urgent = "1"; + /** Minor = 9 */ + public static final String PRIORITYRULE_Minor = "9"; + /** Set Priority. + @param PriorityRule + Priority of a document + */ + public void setPriorityRule (String PriorityRule) + { + if (PriorityRule == null) throw new IllegalArgumentException ("PriorityRule is mandatory"); + if (PriorityRule.equals("3") || PriorityRule.equals("5") || PriorityRule.equals("7") || PriorityRule.equals("1") || PriorityRule.equals("9")); else throw new IllegalArgumentException ("PriorityRule Invalid value - " + PriorityRule + " - Reference_ID=154 - 3 - 5 - 7 - 1 - 9"); + if (PriorityRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + PriorityRule = PriorityRule.substring(0, 1); + } + set_Value (COLUMNNAME_PriorityRule, PriorityRule); + } + + /** Get Priority. + @return Priority of a document + */ + public String getPriorityRule () + { + return (String)get_Value(COLUMNNAME_PriorityRule); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_ValueNoCheck (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. + @return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Ref_Order_ID AD_Reference_ID=290 */ + public static final int REF_ORDER_ID_AD_Reference_ID=290; + /** Set Referenced Order. + @param Ref_Order_ID + Reference to corresponding Sales/Purchase Order + */ + public void setRef_Order_ID (int Ref_Order_ID) + { + if (Ref_Order_ID < 1) + set_Value (COLUMNNAME_Ref_Order_ID, null); + else + set_Value (COLUMNNAME_Ref_Order_ID, Integer.valueOf(Ref_Order_ID)); + } + + /** Get Referenced Order. + @return Reference to corresponding Sales/Purchase Order + */ + public int getRef_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ref_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** SalesRep_ID AD_Reference_ID=190 */ + public static final int SALESREP_ID_AD_Reference_ID=190; + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID < 1) + throw new IllegalArgumentException ("SalesRep_ID is mandatory."); + 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 Send EMail. + @param SendEMail + Enable sending Document EMail + */ + public void setSendEMail (boolean SendEMail) + { + set_Value (COLUMNNAME_SendEMail, Boolean.valueOf(SendEMail)); + } + + /** Get Send EMail. + @return Enable sending Document EMail + */ + public boolean isSendEMail () + { + Object oo = get_Value(COLUMNNAME_SendEMail); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Total Lines. + @param TotalLines + Total of all document lines + */ + public void setTotalLines (BigDecimal TotalLines) + { + if (TotalLines == null) + throw new IllegalArgumentException ("TotalLines is mandatory."); + set_ValueNoCheck (COLUMNNAME_TotalLines, TotalLines); + } + + /** Get Total Lines. + @return Total of all document lines + */ + public BigDecimal getTotalLines () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalLines); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** User1_ID AD_Reference_ID=134 */ + public static final int USER1_ID_AD_Reference_ID=134; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID < 1) + set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** User2_ID AD_Reference_ID=137 */ + public static final int USER2_ID_AD_Reference_ID=137; + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID < 1) + set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Volume. + @param Volume + Volume of a product + */ + public void setVolume (BigDecimal Volume) + { + set_Value (COLUMNNAME_Volume, Volume); + } + + /** Get Volume. + @return Volume of a product + */ + public BigDecimal getVolume () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Volume); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Weight. + @param Weight + Weight of a product + */ + public void setWeight (BigDecimal Weight) + { + set_Value (COLUMNNAME_Weight, Weight); + } + + /** Get Weight. + @return Weight of a product + */ + public BigDecimal getWeight () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Weight); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_OrderLine.java b/base/src/org/compiere/model/X_C_OrderLine.java new file mode 100644 index 0000000000..da91eab677 --- /dev/null +++ b/base/src/org/compiere/model/X_C_OrderLine.java @@ -0,0 +1,1376 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for C_OrderLine + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_C_OrderLine extends PO implements I_C_OrderLine, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_OrderLine (Properties ctx, int C_OrderLine_ID, String trxName) + { + super (ctx, C_OrderLine_ID, trxName); + /** if (C_OrderLine_ID == 0) + { + setC_BPartner_Location_ID (0); +// @C_BPartner_Location_ID@ + setC_Currency_ID (0); +// @C_Currency_ID@ + setC_OrderLine_ID (0); + setC_Order_ID (0); + setC_Tax_ID (0); + setC_UOM_ID (0); +// @#C_UOM_ID@ + setDateOrdered (new Timestamp(System.currentTimeMillis())); +// @DateOrdered@ + setFreightAmt (Env.ZERO); + setIsDescription (false); +// N + setLine (0); +// @SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM C_OrderLine WHERE C_Order_ID=@C_Order_ID@ + setLineNetAmt (Env.ZERO); + setM_AttributeSetInstance_ID (0); + setM_Warehouse_ID (0); +// @M_Warehouse_ID@ + setPriceActual (Env.ZERO); + setPriceEntered (Env.ZERO); + setPriceLimit (Env.ZERO); + setPriceList (Env.ZERO); + setProcessed (false); + setQtyDelivered (Env.ZERO); + setQtyEntered (Env.ZERO); +// 1 + setQtyInvoiced (Env.ZERO); + setQtyLostSales (Env.ZERO); + setQtyOrdered (Env.ZERO); +// 1 + setQtyReserved (Env.ZERO); + } */ + } + + /** Load Constructor */ + public X_C_OrderLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - 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_OrderLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** AD_OrgTrx_ID AD_Reference_ID=130 */ + public static final int AD_ORGTRX_ID_AD_Reference_ID=130; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID < 1) + set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getC_Activity() throws Exception + { + Class clazz = MTable.getClass(I_C_Activity.Table_Name); + I_C_Activity result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID < 1) + set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner getC_BPartner() throws Exception + { + Class clazz = MTable.getClass(I_C_BPartner.Table_Name); + I_C_BPartner result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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 I_C_BPartner_Location getC_BPartner_Location() throws Exception + { + Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); + I_C_BPartner_Location result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID < 1) + throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getC_Campaign() throws Exception + { + Class clazz = MTable.getClass(I_C_Campaign.Table_Name); + I_C_Campaign result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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 I_C_Charge getC_Charge() throws Exception + { + Class clazz = MTable.getClass(I_C_Charge.Table_Name); + I_C_Charge result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID < 1) + set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getC_Currency() throws Exception + { + Class clazz = MTable.getClass(I_C_Currency.Table_Name); + I_C_Currency result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_ValueNoCheck (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 Sales Order Line. + @param C_OrderLine_ID + Sales Order Line + */ + public void setC_OrderLine_ID (int C_OrderLine_ID) + { + if (C_OrderLine_ID < 1) + throw new IllegalArgumentException ("C_OrderLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID)); + } + + /** Get Sales Order Line. + @return Sales Order Line + */ + public int getC_OrderLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_OrderLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Order getC_Order() throws Exception + { + Class clazz = MTable.getClass(I_C_Order.Table_Name); + I_C_Order result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID < 1) + throw new IllegalArgumentException ("C_Order_ID is mandatory."); + set_ValueNoCheck (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(); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getC_Order_ID())); + } + + public I_C_ProjectPhase getC_ProjectPhase() throws Exception + { + Class clazz = MTable.getClass(I_C_ProjectPhase.Table_Name); + I_C_ProjectPhase result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_ProjectPhase)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectPhase_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Project Phase. + @param C_ProjectPhase_ID + Phase of a Project + */ + public void setC_ProjectPhase_ID (int C_ProjectPhase_ID) + { + if (C_ProjectPhase_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectPhase_ID, Integer.valueOf(C_ProjectPhase_ID)); + } + + /** Get Project Phase. + @return Phase of a Project + */ + public int getC_ProjectPhase_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectPhase_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ProjectTask getC_ProjectTask() throws Exception + { + Class clazz = MTable.getClass(I_C_ProjectTask.Table_Name); + I_C_ProjectTask result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_ProjectTask)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectTask_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Project Task. + @param C_ProjectTask_ID + Actual Project Task in a Phase + */ + public void setC_ProjectTask_ID (int C_ProjectTask_ID) + { + if (C_ProjectTask_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ProjectTask_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectTask_ID, Integer.valueOf(C_ProjectTask_ID)); + } + + /** Get Project Task. + @return Actual Project Task in a Phase + */ + public int getC_ProjectTask_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectTask_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getC_Project() throws Exception + { + Class clazz = MTable.getClass(I_C_Project.Table_Name); + I_C_Project result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID < 1) + set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Tax getC_Tax() throws Exception + { + Class clazz = MTable.getClass(I_C_Tax.Table_Name); + I_C_Tax result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Tax)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Tax_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Tax. + @param C_Tax_ID + Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID) + { + if (C_Tax_ID < 1) + throw new IllegalArgumentException ("C_Tax_ID is mandatory."); + set_Value (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + } + + /** Get Tax. + @return Tax identifier + */ + public int getC_Tax_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Tax_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getC_UOM() throws Exception + { + Class clazz = MTable.getClass(I_C_UOM.Table_Name); + I_C_UOM result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID < 1) + throw new IllegalArgumentException ("C_UOM_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Date Delivered. + @param DateDelivered + Date when the product was delivered + */ + public void setDateDelivered (Timestamp DateDelivered) + { + set_ValueNoCheck (COLUMNNAME_DateDelivered, DateDelivered); + } + + /** Get Date Delivered. + @return Date when the product was delivered + */ + public Timestamp getDateDelivered () + { + return (Timestamp)get_Value(COLUMNNAME_DateDelivered); + } + + /** Set Date Invoiced. + @param DateInvoiced + Date printed on Invoice + */ + public void setDateInvoiced (Timestamp DateInvoiced) + { + set_ValueNoCheck (COLUMNNAME_DateInvoiced, DateInvoiced); + } + + /** Get Date Invoiced. + @return Date printed on Invoice + */ + public Timestamp getDateInvoiced () + { + return (Timestamp)get_Value(COLUMNNAME_DateInvoiced); + } + + /** Set Date Ordered. + @param DateOrdered + Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered) + { + if (DateOrdered == null) + throw new IllegalArgumentException ("DateOrdered is mandatory."); + set_Value (COLUMNNAME_DateOrdered, DateOrdered); + } + + /** Get Date Ordered. + @return Date of Order + */ + public Timestamp getDateOrdered () + { + return (Timestamp)get_Value(COLUMNNAME_DateOrdered); + } + + /** Set Date Promised. + @param DatePromised + Date Order was promised + */ + public void setDatePromised (Timestamp DatePromised) + { + set_Value (COLUMNNAME_DatePromised, DatePromised); + } + + /** Get Date Promised. + @return Date Order was promised + */ + public Timestamp getDatePromised () + { + return (Timestamp)get_Value(COLUMNNAME_DatePromised); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** 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 Freight Amount. + @param FreightAmt + Freight Amount + */ + public void setFreightAmt (BigDecimal FreightAmt) + { + if (FreightAmt == null) + throw new IllegalArgumentException ("FreightAmt is mandatory."); + set_Value (COLUMNNAME_FreightAmt, FreightAmt); + } + + /** Get Freight Amount. + @return Freight Amount + */ + public BigDecimal getFreightAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FreightAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description Only. + @param IsDescription + if true, the line is just description and no transaction + */ + public void setIsDescription (boolean IsDescription) + { + set_Value (COLUMNNAME_IsDescription, Boolean.valueOf(IsDescription)); + } + + /** Get Description Only. + @return if true, the line is just description and no transaction + */ + public boolean isDescription () + { + Object oo = get_Value(COLUMNNAME_IsDescription); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Line Amount. + @param LineNetAmt + Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public void setLineNetAmt (BigDecimal LineNetAmt) + { + if (LineNetAmt == null) + throw new IllegalArgumentException ("LineNetAmt is mandatory."); + set_ValueNoCheck (COLUMNNAME_LineNetAmt, LineNetAmt); + } + + /** Get Line Amount. + @return Line Extended Amount (Quantity * Actual Price) without Freight and Charges + */ + public BigDecimal getLineNetAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_LineNetAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Link_OrderLine_ID AD_Reference_ID=271 */ + public static final int LINK_ORDERLINE_ID_AD_Reference_ID=271; + /** Set Linked Order Line. + @param Link_OrderLine_ID + This field links a sales order line to the purchase order line that is generated from it. + */ + public void setLink_OrderLine_ID (int Link_OrderLine_ID) + { + if (Link_OrderLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_Link_OrderLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Link_OrderLine_ID, Integer.valueOf(Link_OrderLine_ID)); + } + + /** Get Linked Order Line. + @return This field links a sales order line to the purchase order line that is generated from it. + */ + public int getLink_OrderLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Link_OrderLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Product getM_Product() throws Exception + { + Class clazz = MTable.getClass(I_M_Product.Table_Name); + I_M_Product result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Shipper getM_Shipper() throws Exception + { + Class clazz = MTable.getClass(I_M_Shipper.Table_Name); + I_M_Shipper result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Shipper)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Shipper_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Shipper. + @param M_Shipper_ID + Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID) + { + if (M_Shipper_ID < 1) + set_Value (COLUMNNAME_M_Shipper_ID, null); + else + set_Value (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); + } + + /** Get Shipper. + @return Method or manner of product delivery + */ + public int getM_Shipper_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Shipper_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** M_Warehouse_ID AD_Reference_ID=197 */ + public static final int M_WAREHOUSE_ID_AD_Reference_ID=197; + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Unit Price. + @param PriceActual + Actual Price + */ + public void setPriceActual (BigDecimal PriceActual) + { + if (PriceActual == null) + throw new IllegalArgumentException ("PriceActual is mandatory."); + set_ValueNoCheck (COLUMNNAME_PriceActual, PriceActual); + } + + /** Get Unit Price. + @return Actual Price + */ + public BigDecimal getPriceActual () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceActual); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Cost Price. + @param PriceCost + Price per Unit of Measure including all indirect costs (Freight, etc.) + */ + public void setPriceCost (BigDecimal PriceCost) + { + set_Value (COLUMNNAME_PriceCost, PriceCost); + } + + /** Get Cost Price. + @return Price per Unit of Measure including all indirect costs (Freight, etc.) + */ + public BigDecimal getPriceCost () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceCost); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Price. + @param PriceEntered + Price Entered - the price based on the selected/base UoM + */ + public void setPriceEntered (BigDecimal PriceEntered) + { + if (PriceEntered == null) + throw new IllegalArgumentException ("PriceEntered is mandatory."); + set_Value (COLUMNNAME_PriceEntered, PriceEntered); + } + + /** Get Price. + @return Price Entered - the price based on the selected/base UoM + */ + public BigDecimal getPriceEntered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceEntered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Limit Price. + @param PriceLimit + Lowest price for a product + */ + public void setPriceLimit (BigDecimal PriceLimit) + { + if (PriceLimit == null) + throw new IllegalArgumentException ("PriceLimit is mandatory."); + 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) + { + if (PriceList == null) + throw new IllegalArgumentException ("PriceList is mandatory."); + 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; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Delivered Quantity. + @param QtyDelivered + Delivered Quantity + */ + public void setQtyDelivered (BigDecimal QtyDelivered) + { + if (QtyDelivered == null) + throw new IllegalArgumentException ("QtyDelivered is mandatory."); + set_ValueNoCheck (COLUMNNAME_QtyDelivered, QtyDelivered); + } + + /** Get Delivered Quantity. + @return Delivered Quantity + */ + public BigDecimal getQtyDelivered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyDelivered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity. + @param QtyEntered + The Quantity Entered is based on the selected UoM + */ + public void setQtyEntered (BigDecimal QtyEntered) + { + if (QtyEntered == null) + throw new IllegalArgumentException ("QtyEntered is mandatory."); + set_Value (COLUMNNAME_QtyEntered, QtyEntered); + } + + /** Get Quantity. + @return The Quantity Entered is based on the selected UoM + */ + public BigDecimal getQtyEntered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyEntered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity Invoiced. + @param QtyInvoiced + Invoiced Quantity + */ + public void setQtyInvoiced (BigDecimal QtyInvoiced) + { + if (QtyInvoiced == null) + throw new IllegalArgumentException ("QtyInvoiced is mandatory."); + set_ValueNoCheck (COLUMNNAME_QtyInvoiced, QtyInvoiced); + } + + /** Get Quantity Invoiced. + @return Invoiced Quantity + */ + public BigDecimal getQtyInvoiced () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyInvoiced); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Lost Sales Qty. + @param QtyLostSales + Quantity of potential sales + */ + public void setQtyLostSales (BigDecimal QtyLostSales) + { + if (QtyLostSales == null) + throw new IllegalArgumentException ("QtyLostSales is mandatory."); + set_Value (COLUMNNAME_QtyLostSales, QtyLostSales); + } + + /** Get Lost Sales Qty. + @return Quantity of potential sales + */ + public BigDecimal getQtyLostSales () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyLostSales); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Ordered Quantity. + @param QtyOrdered + Ordered Quantity + */ + public void setQtyOrdered (BigDecimal QtyOrdered) + { + if (QtyOrdered == null) + throw new IllegalArgumentException ("QtyOrdered is mandatory."); + set_Value (COLUMNNAME_QtyOrdered, QtyOrdered); + } + + /** Get Ordered Quantity. + @return Ordered Quantity + */ + public BigDecimal getQtyOrdered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyOrdered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Reserved Quantity. + @param QtyReserved + Reserved Quantity + */ + public void setQtyReserved (BigDecimal QtyReserved) + { + if (QtyReserved == null) + throw new IllegalArgumentException ("QtyReserved is mandatory."); + set_ValueNoCheck (COLUMNNAME_QtyReserved, QtyReserved); + } + + /** Get Reserved Quantity. + @return Reserved Quantity + */ + public BigDecimal getQtyReserved () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyReserved); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Revenue Recognition Amt. + @param RRAmt + Revenue Recognition Amount + */ + public void setRRAmt (BigDecimal RRAmt) + { + set_Value (COLUMNNAME_RRAmt, RRAmt); + } + + /** Get Revenue Recognition Amt. + @return Revenue Recognition Amount + */ + public BigDecimal getRRAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_RRAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Revenue Recognition Start. + @param RRStartDate + Revenue Recognition Start Date + */ + public void setRRStartDate (Timestamp RRStartDate) + { + set_Value (COLUMNNAME_RRStartDate, RRStartDate); + } + + /** Get Revenue Recognition Start. + @return Revenue Recognition Start Date + */ + public Timestamp getRRStartDate () + { + return (Timestamp)get_Value(COLUMNNAME_RRStartDate); + } + + /** Ref_OrderLine_ID AD_Reference_ID=271 */ + public static final int REF_ORDERLINE_ID_AD_Reference_ID=271; + /** Set Referenced Order Line. + @param Ref_OrderLine_ID + Reference to corresponding Sales/Purchase Order + */ + public void setRef_OrderLine_ID (int Ref_OrderLine_ID) + { + if (Ref_OrderLine_ID < 1) + set_Value (COLUMNNAME_Ref_OrderLine_ID, null); + else + set_Value (COLUMNNAME_Ref_OrderLine_ID, Integer.valueOf(Ref_OrderLine_ID)); + } + + /** Get Referenced Order Line. + @return Reference to corresponding Sales/Purchase Order + */ + public int getRef_OrderLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ref_OrderLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Resource Assignment. + @param S_ResourceAssignment_ID + Resource Assignment + */ + public void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID) + { + if (S_ResourceAssignment_ID < 1) + set_Value (COLUMNNAME_S_ResourceAssignment_ID, null); + else + set_Value (COLUMNNAME_S_ResourceAssignment_ID, Integer.valueOf(S_ResourceAssignment_ID)); + } + + /** Get Resource Assignment. + @return Resource Assignment + */ + public int getS_ResourceAssignment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_ResourceAssignment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** User1_ID AD_Reference_ID=134 */ + public static final int USER1_ID_AD_Reference_ID=134; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID < 1) + set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** User2_ID AD_Reference_ID=137 */ + public static final int USER2_ID_AD_Reference_ID=137; + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID < 1) + set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_POS.java b/base/src/org/compiere/model/X_C_POS.java new file mode 100644 index 0000000000..030f8b8079 --- /dev/null +++ b/base/src/org/compiere/model/X_C_POS.java @@ -0,0 +1,529 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.sql.ResultSet; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.KeyNamePair; + +/** Generated Model for C_POS + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_C_POS extends PO implements I_C_POS, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_POS (Properties ctx, int C_POS_ID, String trxName) + { + super (ctx, C_POS_ID, trxName); + /** if (C_POS_ID == 0) + { + setC_CashBook_ID (0); + setC_POS_ID (0); + setIsModifyPrice (false); +// N + setM_PriceList_ID (0); + setM_Warehouse_ID (0); + setName (null); + setSalesRep_ID (0); + } */ + } + + /** Load Constructor */ + public X_C_POS (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + 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_POS[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** C_BPartnerCashTrx_ID AD_Reference_ID=173 */ + public static final int C_BPARTNERCASHTRX_ID_AD_Reference_ID=173; + /** Set Template B.Partner. + @param C_BPartnerCashTrx_ID + Business Partner used for creating new Business Partners on the fly + */ + public void setC_BPartnerCashTrx_ID (int C_BPartnerCashTrx_ID) + { + if (C_BPartnerCashTrx_ID < 1) + set_Value (COLUMNNAME_C_BPartnerCashTrx_ID, null); + else + set_Value (COLUMNNAME_C_BPartnerCashTrx_ID, Integer.valueOf(C_BPartnerCashTrx_ID)); + } + + /** Get Template B.Partner. + @return Business Partner used for creating new Business Partners on the fly + */ + public int getC_BPartnerCashTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartnerCashTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BankAccount getC_BankAccount() throws Exception + { + Class clazz = MTable.getClass(I_C_BankAccount.Table_Name); + I_C_BankAccount result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankAccount_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Bank Account. + @param C_BankAccount_ID + Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID) + { + if (C_BankAccount_ID < 1) + set_Value (COLUMNNAME_C_BankAccount_ID, null); + else + set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + } + + /** Get Bank Account. + @return Account at the Bank + */ + public int getC_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_CashBook getC_CashBook() throws Exception + { + Class clazz = MTable.getClass(I_C_CashBook.Table_Name); + I_C_CashBook result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_CashBook)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_CashBook_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Cash Book. + @param C_CashBook_ID + Cash Book for recording petty cash transactions + */ + public void setC_CashBook_ID (int C_CashBook_ID) + { + if (C_CashBook_ID < 1) + throw new IllegalArgumentException ("C_CashBook_ID is mandatory."); + set_Value (COLUMNNAME_C_CashBook_ID, Integer.valueOf(C_CashBook_ID)); + } + + /** Get Cash Book. + @return Cash Book for recording petty cash transactions + */ + public int getC_CashBook_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_CashBook_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getC_DocType() throws Exception + { + Class clazz = MTable.getClass(I_C_DocType.Table_Name); + I_C_DocType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 1) + set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_POSKeyLayout getC_POSKeyLayout() throws Exception + { + Class clazz = MTable.getClass(I_C_POSKeyLayout.Table_Name); + I_C_POSKeyLayout result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_POSKeyLayout)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_POSKeyLayout_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set POS Key Layout. + @param C_POSKeyLayout_ID + POS Function Key Layout + */ + public void setC_POSKeyLayout_ID (int C_POSKeyLayout_ID) + { + if (C_POSKeyLayout_ID < 1) + set_Value (COLUMNNAME_C_POSKeyLayout_ID, null); + else + set_Value (COLUMNNAME_C_POSKeyLayout_ID, Integer.valueOf(C_POSKeyLayout_ID)); + } + + /** Get POS Key Layout. + @return POS Function Key Layout + */ + public int getC_POSKeyLayout_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_POSKeyLayout_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set POS Terminal. + @param C_POS_ID + Point of Sales Terminal + */ + public void setC_POS_ID (int C_POS_ID) + { + if (C_POS_ID < 1) + throw new IllegalArgumentException ("C_POS_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_POS_ID, Integer.valueOf(C_POS_ID)); + } + + /** Get POS Terminal. + @return Point of Sales Terminal + */ + public int getC_POS_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_POS_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set CashDrawer. + @param CashDrawer CashDrawer */ + public void setCashDrawer (String CashDrawer) + { + + if (CashDrawer != null && CashDrawer.length() > 120) + { + log.warning("Length > 120 - truncated"); + CashDrawer = CashDrawer.substring(0, 120); + } + set_Value (COLUMNNAME_CashDrawer, CashDrawer); + } + + /** Get CashDrawer. + @return CashDrawer */ + public String getCashDrawer () + { + return (String)get_Value(COLUMNNAME_CashDrawer); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 2000); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Modify Price. + @param IsModifyPrice + Allow modifying the price + */ + public void setIsModifyPrice (boolean IsModifyPrice) + { + set_Value (COLUMNNAME_IsModifyPrice, Boolean.valueOf(IsModifyPrice)); + } + + /** Get Modify Price. + @return Allow modifying the price + */ + public boolean isModifyPrice () + { + Object oo = get_Value(COLUMNNAME_IsModifyPrice); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_PriceList getM_PriceList() throws Exception + { + Class clazz = MTable.getClass(I_M_PriceList.Table_Name); + I_M_PriceList result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_PriceList)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Price List. + @param M_PriceList_ID + Unique identifier of a Price List + */ + public void setM_PriceList_ID (int M_PriceList_ID) + { + if (M_PriceList_ID < 1) + throw new IllegalArgumentException ("M_PriceList_ID is mandatory."); + set_Value (COLUMNNAME_M_PriceList_ID, Integer.valueOf(M_PriceList_ID)); + } + + /** Get Price List. + @return Unique identifier of a Price List + */ + public int getM_PriceList_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getM_Warehouse() throws Exception + { + Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); + I_M_Warehouse result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 60); + } + 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 Printer Name. + @param PrinterName + Name of the Printer + */ + public void setPrinterName (String PrinterName) + { + + if (PrinterName != null && PrinterName.length() > 60) + { + log.warning("Length > 60 - truncated"); + PrinterName = PrinterName.substring(0, 60); + } + set_Value (COLUMNNAME_PrinterName, PrinterName); + } + + /** Get Printer Name. + @return Name of the Printer + */ + public String getPrinterName () + { + return (String)get_Value(COLUMNNAME_PrinterName); + } + + /** SalesRep_ID AD_Reference_ID=190 */ + public static final int SALESREP_ID_AD_Reference_ID=190; + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID < 1) + throw new IllegalArgumentException ("SalesRep_ID is mandatory."); + 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(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Payment.java b/base/src/org/compiere/model/X_C_Payment.java new file mode 100644 index 0000000000..16a3ef3840 --- /dev/null +++ b/base/src/org/compiere/model/X_C_Payment.java @@ -0,0 +1,2225 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for C_Payment + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_C_Payment extends PO implements I_C_Payment, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Payment (Properties ctx, int C_Payment_ID, String trxName) + { + super (ctx, C_Payment_ID, trxName); + /** if (C_Payment_ID == 0) + { + setC_BPartner_ID (0); + setC_BankAccount_ID (0); + setC_Currency_ID (0); + setC_DocType_ID (0); + setC_Payment_ID (0); + setDateAcct (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDateTrx (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setIsAllocated (false); + setIsApproved (false); +// N + setIsDelayedCapture (false); + setIsOnline (false); + setIsOverUnderPayment (false); +// N + setIsPrepayment (false); + setIsReceipt (false); + setIsReconciled (false); + setIsSelfService (false); + setPayAmt (Env.ZERO); +// 0 + setPosted (false); +// N + setProcessed (false); + setTenderType (null); +// K + setTrxType (null); +// S + } */ + } + + /** Load Constructor */ + public X_C_Payment (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - 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_Payment[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** AD_OrgTrx_ID AD_Reference_ID=130 */ + public static final int AD_ORGTRX_ID_AD_Reference_ID=130; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID < 1) + set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Account City. + @param A_City + City or the Credit Card or Account Holder + */ + public void setA_City (String A_City) + { + + if (A_City != null && A_City.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_City = A_City.substring(0, 60); + } + set_Value (COLUMNNAME_A_City, A_City); + } + + /** Get Account City. + @return City or the Credit Card or Account Holder + */ + public String getA_City () + { + return (String)get_Value(COLUMNNAME_A_City); + } + + /** Set Account Country. + @param A_Country + Country + */ + public void setA_Country (String A_Country) + { + + if (A_Country != null && A_Country.length() > 40) + { + log.warning("Length > 40 - truncated"); + A_Country = A_Country.substring(0, 40); + } + set_Value (COLUMNNAME_A_Country, A_Country); + } + + /** Get Account Country. + @return Country + */ + public String getA_Country () + { + return (String)get_Value(COLUMNNAME_A_Country); + } + + /** Set Account EMail. + @param A_EMail + Email Address + */ + public void setA_EMail (String A_EMail) + { + + if (A_EMail != null && A_EMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_EMail = A_EMail.substring(0, 60); + } + set_Value (COLUMNNAME_A_EMail, A_EMail); + } + + /** Get Account EMail. + @return Email Address + */ + public String getA_EMail () + { + return (String)get_Value(COLUMNNAME_A_EMail); + } + + /** Set Driver License. + @param A_Ident_DL + Payment Identification - Driver License + */ + public void setA_Ident_DL (String A_Ident_DL) + { + + if (A_Ident_DL != null && A_Ident_DL.length() > 20) + { + log.warning("Length > 20 - truncated"); + A_Ident_DL = A_Ident_DL.substring(0, 20); + } + set_Value (COLUMNNAME_A_Ident_DL, A_Ident_DL); + } + + /** Get Driver License. + @return Payment Identification - Driver License + */ + public String getA_Ident_DL () + { + return (String)get_Value(COLUMNNAME_A_Ident_DL); + } + + /** Set Social Security No. + @param A_Ident_SSN + Payment Identification - Social Security No + */ + public void setA_Ident_SSN (String A_Ident_SSN) + { + + if (A_Ident_SSN != null && A_Ident_SSN.length() > 20) + { + log.warning("Length > 20 - truncated"); + A_Ident_SSN = A_Ident_SSN.substring(0, 20); + } + set_Value (COLUMNNAME_A_Ident_SSN, A_Ident_SSN); + } + + /** Get Social Security No. + @return Payment Identification - Social Security No + */ + public String getA_Ident_SSN () + { + return (String)get_Value(COLUMNNAME_A_Ident_SSN); + } + + /** Set Account Name. + @param A_Name + Name on Credit Card or Account holder + */ + public void setA_Name (String A_Name) + { + + if (A_Name != null && A_Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_Name = A_Name.substring(0, 60); + } + set_Value (COLUMNNAME_A_Name, A_Name); + } + + /** Get Account Name. + @return Name on Credit Card or Account holder + */ + public String getA_Name () + { + return (String)get_Value(COLUMNNAME_A_Name); + } + + /** Set Account State. + @param A_State + State of the Credit Card or Account holder + */ + public void setA_State (String A_State) + { + + if (A_State != null && A_State.length() > 40) + { + log.warning("Length > 40 - truncated"); + A_State = A_State.substring(0, 40); + } + set_Value (COLUMNNAME_A_State, A_State); + } + + /** Get Account State. + @return State of the Credit Card or Account holder + */ + public String getA_State () + { + return (String)get_Value(COLUMNNAME_A_State); + } + + /** Set Account Street. + @param A_Street + Street address of the Credit Card or Account holder + */ + public void setA_Street (String A_Street) + { + + if (A_Street != null && A_Street.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_Street = A_Street.substring(0, 60); + } + set_Value (COLUMNNAME_A_Street, A_Street); + } + + /** Get Account Street. + @return Street address of the Credit Card or Account holder + */ + public String getA_Street () + { + return (String)get_Value(COLUMNNAME_A_Street); + } + + /** Set Account Zip/Postal. + @param A_Zip + Zip Code of the Credit Card or Account Holder + */ + public void setA_Zip (String A_Zip) + { + + if (A_Zip != null && A_Zip.length() > 20) + { + log.warning("Length > 20 - truncated"); + A_Zip = A_Zip.substring(0, 20); + } + set_Value (COLUMNNAME_A_Zip, A_Zip); + } + + /** Get Account Zip/Postal. + @return Zip Code of the Credit Card or Account Holder + */ + public String getA_Zip () + { + return (String)get_Value(COLUMNNAME_A_Zip); + } + + /** Set Account No. + @param AccountNo + Account Number + */ + public void setAccountNo (String AccountNo) + { + + if (AccountNo != null && AccountNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + AccountNo = AccountNo.substring(0, 20); + } + set_Value (COLUMNNAME_AccountNo, AccountNo); + } + + /** Get Account No. + @return Account Number + */ + public String getAccountNo () + { + return (String)get_Value(COLUMNNAME_AccountNo); + } + + public I_C_Activity getC_Activity() throws Exception + { + Class clazz = MTable.getClass(I_C_Activity.Table_Name); + I_C_Activity result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID < 1) + set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BP_BankAccount getC_BP_BankAccount() throws Exception + { + Class clazz = MTable.getClass(I_C_BP_BankAccount.Table_Name); + I_C_BP_BankAccount result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BP_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BP_BankAccount_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Partner Bank Account. + @param C_BP_BankAccount_ID + Bank Account of the Business Partner + */ + public void setC_BP_BankAccount_ID (int C_BP_BankAccount_ID) + { + if (C_BP_BankAccount_ID < 1) + set_Value (COLUMNNAME_C_BP_BankAccount_ID, null); + else + set_Value (COLUMNNAME_C_BP_BankAccount_ID, Integer.valueOf(C_BP_BankAccount_ID)); + } + + /** Get Partner Bank Account. + @return Bank Account of the Business Partner + */ + public int getC_BP_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner getC_BPartner() throws Exception + { + Class clazz = MTable.getClass(I_C_BPartner.Table_Name); + I_C_BPartner result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + 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 I_C_BankAccount getC_BankAccount() throws Exception + { + Class clazz = MTable.getClass(I_C_BankAccount.Table_Name); + I_C_BankAccount result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankAccount_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Bank Account. + @param C_BankAccount_ID + Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID) + { + if (C_BankAccount_ID < 1) + throw new IllegalArgumentException ("C_BankAccount_ID is mandatory."); + set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + } + + /** Get Bank Account. + @return Account at the Bank + */ + public int getC_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getC_Campaign() throws Exception + { + Class clazz = MTable.getClass(I_C_Campaign.Table_Name); + I_C_Campaign result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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 I_C_Charge getC_Charge() throws Exception + { + Class clazz = MTable.getClass(I_C_Charge.Table_Name); + I_C_Charge result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID < 1) + set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ConversionType getC_ConversionType() throws Exception + { + Class clazz = MTable.getClass(I_C_ConversionType.Table_Name); + I_C_ConversionType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_ConversionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ConversionType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Currency Type. + @param C_ConversionType_ID + Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID) + { + if (C_ConversionType_ID < 1) + set_Value (COLUMNNAME_C_ConversionType_ID, null); + else + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + } + + /** Get Currency Type. + @return Currency Conversion Rate Type + */ + public int getC_ConversionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getC_Currency() throws Exception + { + Class clazz = MTable.getClass(I_C_Currency.Table_Name); + I_C_Currency result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + 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(); + } + + public I_C_DocType getC_DocType() throws Exception + { + Class clazz = MTable.getClass(I_C_DocType.Table_Name); + I_C_DocType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Invoice getC_Invoice() throws Exception + { + Class clazz = MTable.getClass(I_C_Invoice.Table_Name); + I_C_Invoice result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID < 1) + set_Value (COLUMNNAME_C_Invoice_ID, null); + else + set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Order getC_Order() throws Exception + { + Class clazz = MTable.getClass(I_C_Order.Table_Name); + I_C_Order result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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(); + } + + public I_C_PaymentBatch getC_PaymentBatch() throws Exception + { + Class clazz = MTable.getClass(I_C_PaymentBatch.Table_Name); + I_C_PaymentBatch result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_PaymentBatch)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_PaymentBatch_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Payment Batch. + @param C_PaymentBatch_ID + Payment batch for EFT + */ + public void setC_PaymentBatch_ID (int C_PaymentBatch_ID) + { + if (C_PaymentBatch_ID < 1) + set_Value (COLUMNNAME_C_PaymentBatch_ID, null); + else + set_Value (COLUMNNAME_C_PaymentBatch_ID, Integer.valueOf(C_PaymentBatch_ID)); + } + + /** Get Payment Batch. + @return Payment batch for EFT + */ + public int getC_PaymentBatch_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PaymentBatch_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID < 1) + throw new IllegalArgumentException ("C_Payment_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getC_Project() throws Exception + { + Class clazz = MTable.getClass(I_C_Project.Table_Name); + I_C_Project result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID < 1) + set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge amount. + @param ChargeAmt + Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt) + { + set_Value (COLUMNNAME_ChargeAmt, ChargeAmt); + } + + /** Get Charge amount. + @return Charge Amount + */ + public BigDecimal getChargeAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Check No. + @param CheckNo + Check Number + */ + public void setCheckNo (String CheckNo) + { + + if (CheckNo != null && CheckNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + CheckNo = CheckNo.substring(0, 20); + } + set_Value (COLUMNNAME_CheckNo, CheckNo); + } + + /** Get Check No. + @return Check Number + */ + public String getCheckNo () + { + return (String)get_Value(COLUMNNAME_CheckNo); + } + + /** Set Exp. Month. + @param CreditCardExpMM + Expiry Month + */ + public void setCreditCardExpMM (int CreditCardExpMM) + { + set_Value (COLUMNNAME_CreditCardExpMM, Integer.valueOf(CreditCardExpMM)); + } + + /** Get Exp. Month. + @return Expiry Month + */ + public int getCreditCardExpMM () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CreditCardExpMM); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Exp. Year. + @param CreditCardExpYY + Expiry Year + */ + public void setCreditCardExpYY (int CreditCardExpYY) + { + set_Value (COLUMNNAME_CreditCardExpYY, Integer.valueOf(CreditCardExpYY)); + } + + /** Get Exp. Year. + @return Expiry Year + */ + public int getCreditCardExpYY () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CreditCardExpYY); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Number. + @param CreditCardNumber + Credit Card Number + */ + public void setCreditCardNumber (String CreditCardNumber) + { + + if (CreditCardNumber != null && CreditCardNumber.length() > 20) + { + log.warning("Length > 20 - truncated"); + CreditCardNumber = CreditCardNumber.substring(0, 20); + } + set_Value (COLUMNNAME_CreditCardNumber, CreditCardNumber); + } + + /** Get Number. + @return Credit Card Number + */ + public String getCreditCardNumber () + { + return (String)get_Value(COLUMNNAME_CreditCardNumber); + } + + /** CreditCardType AD_Reference_ID=149 */ + public static final int CREDITCARDTYPE_AD_Reference_ID=149; + /** Amex = A */ + public static final String CREDITCARDTYPE_Amex = "A"; + /** MasterCard = M */ + public static final String CREDITCARDTYPE_MasterCard = "M"; + /** Visa = V */ + public static final String CREDITCARDTYPE_Visa = "V"; + /** ATM = C */ + public static final String CREDITCARDTYPE_ATM = "C"; + /** Diners = D */ + public static final String CREDITCARDTYPE_Diners = "D"; + /** Discover = N */ + public static final String CREDITCARDTYPE_Discover = "N"; + /** Purchase Card = P */ + public static final String CREDITCARDTYPE_PurchaseCard = "P"; + /** Set Credit Card. + @param CreditCardType + Credit Card (Visa, MC, AmEx) + */ + public void setCreditCardType (String CreditCardType) + { + + if (CreditCardType == null || CreditCardType.equals("A") || CreditCardType.equals("M") || CreditCardType.equals("V") || CreditCardType.equals("C") || CreditCardType.equals("D") || CreditCardType.equals("N") || CreditCardType.equals("P")); else throw new IllegalArgumentException ("CreditCardType Invalid value - " + CreditCardType + " - Reference_ID=149 - A - M - V - C - D - N - P"); + if (CreditCardType != null && CreditCardType.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreditCardType = CreditCardType.substring(0, 1); + } + set_Value (COLUMNNAME_CreditCardType, CreditCardType); + } + + /** Get Credit Card. + @return Credit Card (Visa, MC, AmEx) + */ + public String getCreditCardType () + { + return (String)get_Value(COLUMNNAME_CreditCardType); + } + + /** Set Verification Code. + @param CreditCardVV + Credit Card Verification code on credit card + */ + public void setCreditCardVV (String CreditCardVV) + { + + if (CreditCardVV != null && CreditCardVV.length() > 4) + { + log.warning("Length > 4 - truncated"); + CreditCardVV = CreditCardVV.substring(0, 4); + } + set_Value (COLUMNNAME_CreditCardVV, CreditCardVV); + } + + /** Get Verification Code. + @return Credit Card Verification code on credit card + */ + public String getCreditCardVV () + { + return (String)get_Value(COLUMNNAME_CreditCardVV); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Transaction Date. + @param DateTrx + Transaction Date + */ + public void setDateTrx (Timestamp DateTrx) + { + if (DateTrx == null) + throw new IllegalArgumentException ("DateTrx is mandatory."); + set_Value (COLUMNNAME_DateTrx, DateTrx); + } + + /** Get Transaction Date. + @return Transaction Date + */ + public Timestamp getDateTrx () + { + return (Timestamp)get_Value(COLUMNNAME_DateTrx); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Discount Amount. + @param DiscountAmt + Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt) + { + set_Value (COLUMNNAME_DiscountAmt, DiscountAmt); + } + + /** Get Discount Amount. + @return Calculated amount of discount + */ + public BigDecimal getDiscountAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DiscountAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** DocAction AD_Reference_ID=135 */ + public static final int DOCACTION_AD_Reference_ID=135; + /** Complete = CO */ + public static final String DOCACTION_Complete = "CO"; + /** Approve = AP */ + public static final String DOCACTION_Approve = "AP"; + /** Reject = RJ */ + public static final String DOCACTION_Reject = "RJ"; + /** Post = PO */ + public static final String DOCACTION_Post = "PO"; + /** Void = VO */ + public static final String DOCACTION_Void = "VO"; + /** Close = CL */ + public static final String DOCACTION_Close = "CL"; + /** Reverse - Correct = RC */ + public static final String DOCACTION_Reverse_Correct = "RC"; + /** Reverse - Accrual = RA */ + public static final String DOCACTION_Reverse_Accrual = "RA"; + /** Invalidate = IN */ + public static final String DOCACTION_Invalidate = "IN"; + /** Re-activate = RE */ + public static final String DOCACTION_Re_Activate = "RE"; + /** = -- */ + public static final String DOCACTION_None = "--"; + /** Prepare = PR */ + public static final String DOCACTION_Prepare = "PR"; + /** Unlock = XL */ + public static final String DOCACTION_Unlock = "XL"; + /** Wait Complete = WC */ + public static final String DOCACTION_WaitComplete = "WC"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { + if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + if (DocAction.equals("CO") || DocAction.equals("AP") || DocAction.equals("RJ") || DocAction.equals("PO") || DocAction.equals("VO") || DocAction.equals("CL") || DocAction.equals("RC") || DocAction.equals("RA") || DocAction.equals("IN") || DocAction.equals("RE") || DocAction.equals("--") || DocAction.equals("PR") || DocAction.equals("XL") || DocAction.equals("WC")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - CO - AP - RJ - PO - VO - CL - RC - RA - IN - RE - -- - PR - XL - WC"); + if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 2); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } + + /** DocStatus AD_Reference_ID=131 */ + public static final int DOCSTATUS_AD_Reference_ID=131; + /** Drafted = DR */ + public static final String DOCSTATUS_Drafted = "DR"; + /** Completed = CO */ + public static final String DOCSTATUS_Completed = "CO"; + /** Approved = AP */ + public static final String DOCSTATUS_Approved = "AP"; + /** Not Approved = NA */ + public static final String DOCSTATUS_NotApproved = "NA"; + /** Voided = VO */ + public static final String DOCSTATUS_Voided = "VO"; + /** Invalid = IN */ + public static final String DOCSTATUS_Invalid = "IN"; + /** Reversed = RE */ + public static final String DOCSTATUS_Reversed = "RE"; + /** Closed = CL */ + public static final String DOCSTATUS_Closed = "CL"; + /** Unknown = ?? */ + public static final String DOCSTATUS_Unknown = "??"; + /** In Progress = IP */ + public static final String DOCSTATUS_InProgress = "IP"; + /** Waiting Payment = WP */ + public static final String DOCSTATUS_WaitingPayment = "WP"; + /** Waiting Confirmation = WC */ + public static final String DOCSTATUS_WaitingConfirmation = "WC"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { + if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + if (DocStatus.equals("DR") || DocStatus.equals("CO") || DocStatus.equals("AP") || DocStatus.equals("NA") || DocStatus.equals("VO") || DocStatus.equals("IN") || DocStatus.equals("RE") || DocStatus.equals("CL") || DocStatus.equals("??") || DocStatus.equals("IP") || DocStatus.equals("WP") || DocStatus.equals("WC")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - DR - CO - AP - NA - VO - IN - RE - CL - ?? - IP - WP - WC"); + if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 2); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 30); + } + 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 Allocated. + @param IsAllocated + Indicates if the payment has been allocated + */ + public void setIsAllocated (boolean IsAllocated) + { + set_Value (COLUMNNAME_IsAllocated, Boolean.valueOf(IsAllocated)); + } + + /** Get Allocated. + @return Indicates if the payment has been allocated + */ + public boolean isAllocated () + { + Object oo = get_Value(COLUMNNAME_IsAllocated); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_ValueNoCheck (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Delayed Capture. + @param IsDelayedCapture + Charge after Shipment + */ + public void setIsDelayedCapture (boolean IsDelayedCapture) + { + set_Value (COLUMNNAME_IsDelayedCapture, Boolean.valueOf(IsDelayedCapture)); + } + + /** Get Delayed Capture. + @return Charge after Shipment + */ + public boolean isDelayedCapture () + { + Object oo = get_Value(COLUMNNAME_IsDelayedCapture); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Online Access. + @param IsOnline + Can be accessed online + */ + public void setIsOnline (boolean IsOnline) + { + set_Value (COLUMNNAME_IsOnline, Boolean.valueOf(IsOnline)); + } + + /** Get Online Access. + @return Can be accessed online + */ + public boolean isOnline () + { + Object oo = get_Value(COLUMNNAME_IsOnline); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Over/Under Payment. + @param IsOverUnderPayment + Over-Payment (unallocated) or Under-Payment (partial payment) + */ + public void setIsOverUnderPayment (boolean IsOverUnderPayment) + { + set_Value (COLUMNNAME_IsOverUnderPayment, Boolean.valueOf(IsOverUnderPayment)); + } + + /** Get Over/Under Payment. + @return Over-Payment (unallocated) or Under-Payment (partial payment) + */ + public boolean isOverUnderPayment () + { + Object oo = get_Value(COLUMNNAME_IsOverUnderPayment); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Prepayment. + @param IsPrepayment + The Payment/Receipt is a Prepayment + */ + public void setIsPrepayment (boolean IsPrepayment) + { + set_Value (COLUMNNAME_IsPrepayment, Boolean.valueOf(IsPrepayment)); + } + + /** Get Prepayment. + @return The Payment/Receipt is a Prepayment + */ + public boolean isPrepayment () + { + Object oo = get_Value(COLUMNNAME_IsPrepayment); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Receipt. + @param IsReceipt + This is a sales transaction (receipt) + */ + public void setIsReceipt (boolean IsReceipt) + { + set_Value (COLUMNNAME_IsReceipt, Boolean.valueOf(IsReceipt)); + } + + /** Get Receipt. + @return This is a sales transaction (receipt) + */ + public boolean isReceipt () + { + Object oo = get_Value(COLUMNNAME_IsReceipt); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Reconciled. + @param IsReconciled + Payment is reconciled with bank statement + */ + public void setIsReconciled (boolean IsReconciled) + { + set_Value (COLUMNNAME_IsReconciled, Boolean.valueOf(IsReconciled)); + } + + /** Get Reconciled. + @return Payment is reconciled with bank statement + */ + public boolean isReconciled () + { + Object oo = get_Value(COLUMNNAME_IsReconciled); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Micr. + @param Micr + Combination of routing no, account and check no + */ + public void setMicr (String Micr) + { + + if (Micr != null && Micr.length() > 20) + { + log.warning("Length > 20 - truncated"); + Micr = Micr.substring(0, 20); + } + set_Value (COLUMNNAME_Micr, Micr); + } + + /** Get Micr. + @return Combination of routing no, account and check no + */ + public String getMicr () + { + return (String)get_Value(COLUMNNAME_Micr); + } + + /** Set Online Processing. + @param OProcessing + This payment can be processed online + */ + public void setOProcessing (String OProcessing) + { + + if (OProcessing != null && OProcessing.length() > 1) + { + log.warning("Length > 1 - truncated"); + OProcessing = OProcessing.substring(0, 1); + } + set_Value (COLUMNNAME_OProcessing, OProcessing); + } + + /** Get Online Processing. + @return This payment can be processed online + */ + public String getOProcessing () + { + return (String)get_Value(COLUMNNAME_OProcessing); + } + + /** Set Original Transaction ID. + @param Orig_TrxID + Original Transaction ID + */ + public void setOrig_TrxID (String Orig_TrxID) + { + + if (Orig_TrxID != null && Orig_TrxID.length() > 20) + { + log.warning("Length > 20 - truncated"); + Orig_TrxID = Orig_TrxID.substring(0, 20); + } + set_Value (COLUMNNAME_Orig_TrxID, Orig_TrxID); + } + + /** Get Original Transaction ID. + @return Original Transaction ID + */ + public String getOrig_TrxID () + { + return (String)get_Value(COLUMNNAME_Orig_TrxID); + } + + /** Set Over/Under Payment. + @param OverUnderAmt + Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public void setOverUnderAmt (BigDecimal OverUnderAmt) + { + set_Value (COLUMNNAME_OverUnderAmt, OverUnderAmt); + } + + /** Get Over/Under Payment. + @return Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public BigDecimal getOverUnderAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OverUnderAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set PO Number. + @param PONum + Purchase Order Number + */ + public void setPONum (String PONum) + { + + if (PONum != null && PONum.length() > 60) + { + log.warning("Length > 60 - truncated"); + PONum = PONum.substring(0, 60); + } + set_Value (COLUMNNAME_PONum, PONum); + } + + /** Get PO Number. + @return Purchase Order Number + */ + public String getPONum () + { + return (String)get_Value(COLUMNNAME_PONum); + } + + /** Set Payment amount. + @param PayAmt + Amount being paid + */ + public void setPayAmt (BigDecimal PayAmt) + { + if (PayAmt == null) + throw new IllegalArgumentException ("PayAmt is mandatory."); + set_Value (COLUMNNAME_PayAmt, PayAmt); + } + + /** Get Payment amount. + @return Amount being paid + */ + public BigDecimal getPayAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PayAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. + @return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Authorization Code. + @param R_AuthCode + Authorization Code returned + */ + public void setR_AuthCode (String R_AuthCode) + { + + if (R_AuthCode != null && R_AuthCode.length() > 20) + { + log.warning("Length > 20 - truncated"); + R_AuthCode = R_AuthCode.substring(0, 20); + } + set_ValueNoCheck (COLUMNNAME_R_AuthCode, R_AuthCode); + } + + /** Get Authorization Code. + @return Authorization Code returned + */ + public String getR_AuthCode () + { + return (String)get_Value(COLUMNNAME_R_AuthCode); + } + + /** Set Authorization Code (DC). + @param R_AuthCode_DC + Authorization Code Delayed Capture returned + */ + public void setR_AuthCode_DC (String R_AuthCode_DC) + { + + if (R_AuthCode_DC != null && R_AuthCode_DC.length() > 20) + { + log.warning("Length > 20 - truncated"); + R_AuthCode_DC = R_AuthCode_DC.substring(0, 20); + } + set_ValueNoCheck (COLUMNNAME_R_AuthCode_DC, R_AuthCode_DC); + } + + /** Get Authorization Code (DC). + @return Authorization Code Delayed Capture returned + */ + public String getR_AuthCode_DC () + { + return (String)get_Value(COLUMNNAME_R_AuthCode_DC); + } + + /** R_AvsAddr AD_Reference_ID=213 */ + public static final int R_AVSADDR_AD_Reference_ID=213; + /** Match = Y */ + public static final String R_AVSADDR_Match = "Y"; + /** No Match = N */ + public static final String R_AVSADDR_NoMatch = "N"; + /** Unavailable = X */ + public static final String R_AVSADDR_Unavailable = "X"; + /** Set Address verified. + @param R_AvsAddr + This address has been verified + */ + public void setR_AvsAddr (String R_AvsAddr) + { + + if (R_AvsAddr == null || R_AvsAddr.equals("Y") || R_AvsAddr.equals("N") || R_AvsAddr.equals("X")); else throw new IllegalArgumentException ("R_AvsAddr Invalid value - " + R_AvsAddr + " - Reference_ID=213 - Y - N - X"); + if (R_AvsAddr != null && R_AvsAddr.length() > 1) + { + log.warning("Length > 1 - truncated"); + R_AvsAddr = R_AvsAddr.substring(0, 1); + } + set_ValueNoCheck (COLUMNNAME_R_AvsAddr, R_AvsAddr); + } + + /** Get Address verified. + @return This address has been verified + */ + public String getR_AvsAddr () + { + return (String)get_Value(COLUMNNAME_R_AvsAddr); + } + + /** R_AvsZip AD_Reference_ID=213 */ + public static final int R_AVSZIP_AD_Reference_ID=213; + /** Match = Y */ + public static final String R_AVSZIP_Match = "Y"; + /** No Match = N */ + public static final String R_AVSZIP_NoMatch = "N"; + /** Unavailable = X */ + public static final String R_AVSZIP_Unavailable = "X"; + /** Set Zip verified. + @param R_AvsZip + The Zip Code has been verified + */ + public void setR_AvsZip (String R_AvsZip) + { + + if (R_AvsZip == null || R_AvsZip.equals("Y") || R_AvsZip.equals("N") || R_AvsZip.equals("X")); else throw new IllegalArgumentException ("R_AvsZip Invalid value - " + R_AvsZip + " - Reference_ID=213 - Y - N - X"); + if (R_AvsZip != null && R_AvsZip.length() > 1) + { + log.warning("Length > 1 - truncated"); + R_AvsZip = R_AvsZip.substring(0, 1); + } + set_ValueNoCheck (COLUMNNAME_R_AvsZip, R_AvsZip); + } + + /** Get Zip verified. + @return The Zip Code has been verified + */ + public String getR_AvsZip () + { + return (String)get_Value(COLUMNNAME_R_AvsZip); + } + + /** Set CVV Match. + @param R_CVV2Match + Credit Card Verification Code Match + */ + public void setR_CVV2Match (boolean R_CVV2Match) + { + set_ValueNoCheck (COLUMNNAME_R_CVV2Match, Boolean.valueOf(R_CVV2Match)); + } + + /** Get CVV Match. + @return Credit Card Verification Code Match + */ + public boolean isR_CVV2Match () + { + Object oo = get_Value(COLUMNNAME_R_CVV2Match); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Info. + @param R_Info + Response info + */ + public void setR_Info (String R_Info) + { + + if (R_Info != null && R_Info.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + R_Info = R_Info.substring(0, 2000); + } + set_ValueNoCheck (COLUMNNAME_R_Info, R_Info); + } + + /** Get Info. + @return Response info + */ + public String getR_Info () + { + return (String)get_Value(COLUMNNAME_R_Info); + } + + /** Set Reference. + @param R_PnRef + Payment reference + */ + public void setR_PnRef (String R_PnRef) + { + + if (R_PnRef != null && R_PnRef.length() > 20) + { + log.warning("Length > 20 - truncated"); + R_PnRef = R_PnRef.substring(0, 20); + } + set_ValueNoCheck (COLUMNNAME_R_PnRef, R_PnRef); + } + + /** Get Reference. + @return Payment reference + */ + public String getR_PnRef () + { + return (String)get_Value(COLUMNNAME_R_PnRef); + } + + /** Set Reference (DC). + @param R_PnRef_DC + Payment Reference Delayed Capture + */ + public void setR_PnRef_DC (String R_PnRef_DC) + { + + if (R_PnRef_DC != null && R_PnRef_DC.length() > 20) + { + log.warning("Length > 20 - truncated"); + R_PnRef_DC = R_PnRef_DC.substring(0, 20); + } + set_ValueNoCheck (COLUMNNAME_R_PnRef_DC, R_PnRef_DC); + } + + /** Get Reference (DC). + @return Payment Reference Delayed Capture + */ + public String getR_PnRef_DC () + { + return (String)get_Value(COLUMNNAME_R_PnRef_DC); + } + + /** Set Response Message. + @param R_RespMsg + Response message + */ + public void setR_RespMsg (String R_RespMsg) + { + + if (R_RespMsg != null && R_RespMsg.length() > 60) + { + log.warning("Length > 60 - truncated"); + R_RespMsg = R_RespMsg.substring(0, 60); + } + set_ValueNoCheck (COLUMNNAME_R_RespMsg, R_RespMsg); + } + + /** Get Response Message. + @return Response message + */ + public String getR_RespMsg () + { + return (String)get_Value(COLUMNNAME_R_RespMsg); + } + + /** Set Result. + @param R_Result + Result of transmission + */ + public void setR_Result (String R_Result) + { + + if (R_Result != null && R_Result.length() > 20) + { + log.warning("Length > 20 - truncated"); + R_Result = R_Result.substring(0, 20); + } + set_ValueNoCheck (COLUMNNAME_R_Result, R_Result); + } + + /** Get Result. + @return Result of transmission + */ + public String getR_Result () + { + return (String)get_Value(COLUMNNAME_R_Result); + } + + /** Ref_Payment_ID AD_Reference_ID=343 */ + public static final int REF_PAYMENT_ID_AD_Reference_ID=343; + /** Set Referenced Payment. + @param Ref_Payment_ID Referenced Payment */ + public void setRef_Payment_ID (int Ref_Payment_ID) + { + if (Ref_Payment_ID < 1) + set_ValueNoCheck (COLUMNNAME_Ref_Payment_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Ref_Payment_ID, Integer.valueOf(Ref_Payment_ID)); + } + + /** Get Referenced Payment. + @return Referenced Payment */ + public int getRef_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ref_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Reversal_ID AD_Reference_ID=343 */ + public static final int REVERSAL_ID_AD_Reference_ID=343; + /** Set Reversal ID. + @param Reversal_ID + ID of document reversal + */ + public void setReversal_ID (int Reversal_ID) + { + if (Reversal_ID < 1) + set_Value (COLUMNNAME_Reversal_ID, null); + else + set_Value (COLUMNNAME_Reversal_ID, Integer.valueOf(Reversal_ID)); + } + + /** Get Reversal ID. + @return ID of document reversal + */ + public int getReversal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Reversal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Routing No. + @param RoutingNo + Bank Routing Number + */ + public void setRoutingNo (String RoutingNo) + { + + if (RoutingNo != null && RoutingNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + RoutingNo = RoutingNo.substring(0, 20); + } + set_Value (COLUMNNAME_RoutingNo, RoutingNo); + } + + /** Get Routing No. + @return Bank Routing Number + */ + public String getRoutingNo () + { + return (String)get_Value(COLUMNNAME_RoutingNo); + } + + /** Set Swipe. + @param Swipe + Track 1 and 2 of the Credit Card + */ + public void setSwipe (String Swipe) + { + + if (Swipe != null && Swipe.length() > 80) + { + log.warning("Length > 80 - truncated"); + Swipe = Swipe.substring(0, 80); + } + set_ValueNoCheck (COLUMNNAME_Swipe, Swipe); + } + + /** Get Swipe. + @return Track 1 and 2 of the Credit Card + */ + public String getSwipe () + { + return (String)get_Value(COLUMNNAME_Swipe); + } + + /** Set Tax Amount. + @param TaxAmt + Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt) + { + set_Value (COLUMNNAME_TaxAmt, TaxAmt); + } + + /** Get Tax Amount. + @return Tax Amount for a document + */ + public BigDecimal getTaxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TaxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** TenderType AD_Reference_ID=214 */ + public static final int TENDERTYPE_AD_Reference_ID=214; + /** Credit Card = C */ + public static final String TENDERTYPE_CreditCard = "C"; + /** Check = K */ + public static final String TENDERTYPE_Check = "K"; + /** Direct Deposit = A */ + public static final String TENDERTYPE_DirectDeposit = "A"; + /** Direct Debit = D */ + public static final String TENDERTYPE_DirectDebit = "D"; + /** Account = T */ + public static final String TENDERTYPE_Account = "T"; + /** Set Tender type. + @param TenderType + Method of Payment + */ + public void setTenderType (String TenderType) + { + if (TenderType == null) throw new IllegalArgumentException ("TenderType is mandatory"); + if (TenderType.equals("C") || TenderType.equals("K") || TenderType.equals("A") || TenderType.equals("D") || TenderType.equals("T")); else throw new IllegalArgumentException ("TenderType Invalid value - " + TenderType + " - Reference_ID=214 - C - K - A - D - T"); + if (TenderType.length() > 1) + { + log.warning("Length > 1 - truncated"); + TenderType = TenderType.substring(0, 1); + } + set_Value (COLUMNNAME_TenderType, TenderType); + } + + /** Get Tender type. + @return Method of Payment + */ + public String getTenderType () + { + return (String)get_Value(COLUMNNAME_TenderType); + } + + /** TrxType AD_Reference_ID=215 */ + public static final int TRXTYPE_AD_Reference_ID=215; + /** Sales = S */ + public static final String TRXTYPE_Sales = "S"; + /** Delayed Capture = D */ + public static final String TRXTYPE_DelayedCapture = "D"; + /** Credit (Payment) = C */ + public static final String TRXTYPE_CreditPayment = "C"; + /** Voice Authorization = F */ + public static final String TRXTYPE_VoiceAuthorization = "F"; + /** Authorization = A */ + public static final String TRXTYPE_Authorization = "A"; + /** Void = V */ + public static final String TRXTYPE_Void = "V"; + /** Set Transaction Type. + @param TrxType + Type of credit card transaction + */ + public void setTrxType (String TrxType) + { + if (TrxType == null) throw new IllegalArgumentException ("TrxType is mandatory"); + if (TrxType.equals("S") || TrxType.equals("D") || TrxType.equals("C") || TrxType.equals("F") || TrxType.equals("A") || TrxType.equals("V")); else throw new IllegalArgumentException ("TrxType Invalid value - " + TrxType + " - Reference_ID=215 - S - D - C - F - A - V"); + if (TrxType.length() > 1) + { + log.warning("Length > 1 - truncated"); + TrxType = TrxType.substring(0, 1); + } + set_Value (COLUMNNAME_TrxType, TrxType); + } + + /** Get Transaction Type. + @return Type of credit card transaction + */ + public String getTrxType () + { + return (String)get_Value(COLUMNNAME_TrxType); + } + + /** User1_ID AD_Reference_ID=134 */ + public static final int USER1_ID_AD_Reference_ID=134; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID < 1) + set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** User2_ID AD_Reference_ID=137 */ + public static final int USER2_ID_AD_Reference_ID=137; + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID < 1) + set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Voice authorization code. + @param VoiceAuthCode + Voice Authorization Code from credit card company + */ + public void setVoiceAuthCode (String VoiceAuthCode) + { + + if (VoiceAuthCode != null && VoiceAuthCode.length() > 20) + { + log.warning("Length > 20 - truncated"); + VoiceAuthCode = VoiceAuthCode.substring(0, 20); + } + set_Value (COLUMNNAME_VoiceAuthCode, VoiceAuthCode); + } + + /** Get Voice authorization code. + @return Voice Authorization Code from credit card company + */ + public String getVoiceAuthCode () + { + return (String)get_Value(COLUMNNAME_VoiceAuthCode); + } + + /** Set Write-off Amount. + @param WriteOffAmt + Amount to write-off + */ + public void setWriteOffAmt (BigDecimal WriteOffAmt) + { + set_Value (COLUMNNAME_WriteOffAmt, WriteOffAmt); + } + + /** Get Write-off Amount. + @return Amount to write-off + */ + public BigDecimal getWriteOffAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_WriteOffAmt); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_PeriodControl.java b/base/src/org/compiere/model/X_C_PeriodControl.java new file mode 100644 index 0000000000..9ebf7da84c --- /dev/null +++ b/base/src/org/compiere/model/X_C_PeriodControl.java @@ -0,0 +1,326 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.sql.ResultSet; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.KeyNamePair; + +/** Generated Model for C_PeriodControl + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_C_PeriodControl extends PO implements I_C_PeriodControl, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_PeriodControl (Properties ctx, int C_PeriodControl_ID, String trxName) + { + super (ctx, C_PeriodControl_ID, trxName); + /** if (C_PeriodControl_ID == 0) + { + setC_PeriodControl_ID (0); + setC_Period_ID (0); + setDocBaseType (null); + setPeriodAction (null); +// N + } */ + } + + /** Load Constructor */ + public X_C_PeriodControl (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + 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_PeriodControl[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Period Control. + @param C_PeriodControl_ID Period Control */ + public void setC_PeriodControl_ID (int C_PeriodControl_ID) + { + if (C_PeriodControl_ID < 1) + throw new IllegalArgumentException ("C_PeriodControl_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_PeriodControl_ID, Integer.valueOf(C_PeriodControl_ID)); + } + + /** Get Period Control. + @return Period Control */ + public int getC_PeriodControl_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_PeriodControl_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(getC_PeriodControl_ID())); + } + + public I_C_Period getC_Period() throws Exception + { + Class clazz = MTable.getClass(I_C_Period.Table_Name); + I_C_Period result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Period)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Period_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Period. + @param C_Period_ID + Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID) + { + if (C_Period_ID < 1) + throw new IllegalArgumentException ("C_Period_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + } + + /** Get Period. + @return Period of the Calendar + */ + public int getC_Period_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Period_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** DocBaseType AD_Reference_ID=183 */ + public static final int DOCBASETYPE_AD_Reference_ID=183; + /** GL Journal = GLJ */ + public static final String DOCBASETYPE_GLJournal = "GLJ"; + /** GL Document = GLD */ + public static final String DOCBASETYPE_GLDocument = "GLD"; + /** AP Invoice = API */ + public static final String DOCBASETYPE_APInvoice = "API"; + /** AP Payment = APP */ + public static final String DOCBASETYPE_APPayment = "APP"; + /** AR Invoice = ARI */ + public static final String DOCBASETYPE_ARInvoice = "ARI"; + /** AR Receipt = ARR */ + public static final String DOCBASETYPE_ARReceipt = "ARR"; + /** Sales Order = SOO */ + public static final String DOCBASETYPE_SalesOrder = "SOO"; + /** AR Pro Forma Invoice = ARF */ + public static final String DOCBASETYPE_ARProFormaInvoice = "ARF"; + /** Material Delivery = MMS */ + public static final String DOCBASETYPE_MaterialDelivery = "MMS"; + /** Material Receipt = MMR */ + public static final String DOCBASETYPE_MaterialReceipt = "MMR"; + /** Material Movement = MMM */ + public static final String DOCBASETYPE_MaterialMovement = "MMM"; + /** Purchase Order = POO */ + public static final String DOCBASETYPE_PurchaseOrder = "POO"; + /** Purchase Requisition = POR */ + public static final String DOCBASETYPE_PurchaseRequisition = "POR"; + /** Material Physical Inventory = MMI */ + public static final String DOCBASETYPE_MaterialPhysicalInventory = "MMI"; + /** AP Credit Memo = APC */ + public static final String DOCBASETYPE_APCreditMemo = "APC"; + /** AR Credit Memo = ARC */ + public static final String DOCBASETYPE_ARCreditMemo = "ARC"; + /** Bank Statement = CMB */ + public static final String DOCBASETYPE_BankStatement = "CMB"; + /** Cash Journal = CMC */ + public static final String DOCBASETYPE_CashJournal = "CMC"; + /** Payment Allocation = CMA */ + public static final String DOCBASETYPE_PaymentAllocation = "CMA"; + /** Material Production = MMP */ + public static final String DOCBASETYPE_MaterialProduction = "MMP"; + /** Match Invoice = MXI */ + public static final String DOCBASETYPE_MatchInvoice = "MXI"; + /** Match PO = MXP */ + public static final String DOCBASETYPE_MatchPO = "MXP"; + /** Project Issue = PJI */ + public static final String DOCBASETYPE_ProjectIssue = "PJI"; + /** Manufacturing Operation Activity = MOA */ + public static final String DOCBASETYPE_ManufacturingOperationActivity = "MOA"; + /** Maintenance Order = MOF */ + public static final String DOCBASETYPE_MaintenanceOrder = "MOF"; + /** Manufacturing Order Issue = MOI */ + public static final String DOCBASETYPE_ManufacturingOrderIssue = "MOI"; + /** Manufacturing Order Method Variation = MOM */ + public static final String DOCBASETYPE_ManufacturingOrderMethodVariation = "MOM"; + /** Manufacturing Order = MOP */ + public static final String DOCBASETYPE_ManufacturingOrder = "MOP"; + /** Manufacturing Order Receipt = MOR */ + public static final String DOCBASETYPE_ManufacturingOrderReceipt = "MOR"; + /** Manufacturing Order Use Variation = MOU */ + public static final String DOCBASETYPE_ManufacturingOrderUseVariation = "MOU"; + /** Manufacturing Order Rate Variation = MOV */ + public static final String DOCBASETYPE_ManufacturingOrderRateVariation = "MOV"; + /** Quality Order = MQO */ + public static final String DOCBASETYPE_QualityOrder = "MQO"; + /** Payroll = HRP */ + public static final String DOCBASETYPE_Payroll = "HRP"; + /** Distribution Order = DOO */ + public static final String DOCBASETYPE_DistributionOrder = "DOO"; + /** Set Document BaseType. + @param DocBaseType + Logical type of document + */ + public void setDocBaseType (String DocBaseType) + { + if (DocBaseType == null) throw new IllegalArgumentException ("DocBaseType is mandatory"); + if (DocBaseType.equals("GLJ") || DocBaseType.equals("GLD") || DocBaseType.equals("API") || DocBaseType.equals("APP") || DocBaseType.equals("ARI") || DocBaseType.equals("ARR") || DocBaseType.equals("SOO") || DocBaseType.equals("ARF") || DocBaseType.equals("MMS") || DocBaseType.equals("MMR") || DocBaseType.equals("MMM") || DocBaseType.equals("POO") || DocBaseType.equals("POR") || DocBaseType.equals("MMI") || DocBaseType.equals("APC") || DocBaseType.equals("ARC") || DocBaseType.equals("CMB") || DocBaseType.equals("CMC") || DocBaseType.equals("CMA") || DocBaseType.equals("MMP") || DocBaseType.equals("MXI") || DocBaseType.equals("MXP") || DocBaseType.equals("PJI") || DocBaseType.equals("MOA") || DocBaseType.equals("MOF") || DocBaseType.equals("MOI") || DocBaseType.equals("MOM") || DocBaseType.equals("MOP") || DocBaseType.equals("MOR") || DocBaseType.equals("MOU") || DocBaseType.equals("MOV") || DocBaseType.equals("MQO") || DocBaseType.equals("HRP") || DocBaseType.equals("DOO")); else throw new IllegalArgumentException ("DocBaseType Invalid value - " + DocBaseType + " - Reference_ID=183 - GLJ - GLD - API - APP - ARI - ARR - SOO - ARF - MMS - MMR - MMM - POO - POR - MMI - APC - ARC - CMB - CMC - CMA - MMP - MXI - MXP - PJI - MOA - MOF - MOI - MOM - MOP - MOR - MOU - MOV - MQO - HRP - DOO"); + if (DocBaseType.length() > 3) + { + log.warning("Length > 3 - truncated"); + DocBaseType = DocBaseType.substring(0, 3); + } + set_ValueNoCheck (COLUMNNAME_DocBaseType, DocBaseType); + } + + /** Get Document BaseType. + @return Logical type of document + */ + public String getDocBaseType () + { + return (String)get_Value(COLUMNNAME_DocBaseType); + } + + /** PeriodAction AD_Reference_ID=176 */ + public static final int PERIODACTION_AD_Reference_ID=176; + /** Open Period = O */ + public static final String PERIODACTION_OpenPeriod = "O"; + /** Close Period = C */ + public static final String PERIODACTION_ClosePeriod = "C"; + /** Permanently Close Period = P */ + public static final String PERIODACTION_PermanentlyClosePeriod = "P"; + /** = N */ + public static final String PERIODACTION_NoAction = "N"; + /** Set Period Action. + @param PeriodAction + Action taken for this period + */ + public void setPeriodAction (String PeriodAction) + { + if (PeriodAction == null) throw new IllegalArgumentException ("PeriodAction is mandatory"); + if (PeriodAction.equals("O") || PeriodAction.equals("C") || PeriodAction.equals("P") || PeriodAction.equals("N")); else throw new IllegalArgumentException ("PeriodAction Invalid value - " + PeriodAction + " - Reference_ID=176 - O - C - P - N"); + if (PeriodAction.length() > 1) + { + log.warning("Length > 1 - truncated"); + PeriodAction = PeriodAction.substring(0, 1); + } + set_Value (COLUMNNAME_PeriodAction, PeriodAction); + } + + /** Get Period Action. + @return Action taken for this period + */ + public String getPeriodAction () + { + return (String)get_Value(COLUMNNAME_PeriodAction); + } + + /** PeriodStatus AD_Reference_ID=177 */ + public static final int PERIODSTATUS_AD_Reference_ID=177; + /** Open = O */ + public static final String PERIODSTATUS_Open = "O"; + /** Closed = C */ + public static final String PERIODSTATUS_Closed = "C"; + /** Permanently closed = P */ + public static final String PERIODSTATUS_PermanentlyClosed = "P"; + /** Never opened = N */ + public static final String PERIODSTATUS_NeverOpened = "N"; + /** Set Period Status. + @param PeriodStatus + Current state of this period + */ + public void setPeriodStatus (String PeriodStatus) + { + + if (PeriodStatus == null || PeriodStatus.equals("O") || PeriodStatus.equals("C") || PeriodStatus.equals("P") || PeriodStatus.equals("N")); else throw new IllegalArgumentException ("PeriodStatus Invalid value - " + PeriodStatus + " - Reference_ID=177 - O - C - P - N"); + if (PeriodStatus != null && PeriodStatus.length() > 1) + { + log.warning("Length > 1 - truncated"); + PeriodStatus = PeriodStatus.substring(0, 1); + } + set_ValueNoCheck (COLUMNNAME_PeriodStatus, PeriodStatus); + } + + /** Get Period Status. + @return Current state of this period + */ + public String getPeriodStatus () + { + return (String)get_Value(COLUMNNAME_PeriodStatus); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. + @return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_C_Tax.java b/base/src/org/compiere/model/X_C_Tax.java new file mode 100644 index 0000000000..ba4baee1b5 --- /dev/null +++ b/base/src/org/compiere/model/X_C_Tax.java @@ -0,0 +1,607 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for C_Tax + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_C_Tax extends PO implements I_C_Tax, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_C_Tax (Properties ctx, int C_Tax_ID, String trxName) + { + super (ctx, C_Tax_ID, trxName); + /** if (C_Tax_ID == 0) + { + setC_TaxCategory_ID (0); + setC_Tax_ID (0); + setIsDefault (false); + setIsDocumentLevel (false); + setIsSalesTax (false); +// N + setIsSummary (false); + setIsTaxExempt (false); + setName (null); + setRate (Env.ZERO); + setRequiresTaxCertificate (false); + setSOPOType (null); +// B + setValidFrom (new Timestamp(System.currentTimeMillis())); + } */ + } + + /** Load Constructor */ + public X_C_Tax (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + 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_Tax[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Rule getAD_Rule() throws Exception + { + Class clazz = MTable.getClass(I_AD_Rule.Table_Name); + I_AD_Rule result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_Rule)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Rule_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Rule. + @param AD_Rule_ID Rule */ + public void setAD_Rule_ID (int AD_Rule_ID) + { + if (AD_Rule_ID < 1) + set_Value (COLUMNNAME_AD_Rule_ID, null); + else + set_Value (COLUMNNAME_AD_Rule_ID, Integer.valueOf(AD_Rule_ID)); + } + + /** Get Rule. + @return Rule */ + public int getAD_Rule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Rule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** C_Country_ID AD_Reference_ID=156 */ + public static final int C_COUNTRY_ID_AD_Reference_ID=156; + /** Set Country. + @param C_Country_ID + Country + */ + public void setC_Country_ID (int C_Country_ID) + { + if (C_Country_ID < 1) + set_Value (COLUMNNAME_C_Country_ID, null); + else + set_Value (COLUMNNAME_C_Country_ID, Integer.valueOf(C_Country_ID)); + } + + /** Get Country. + @return Country + */ + public int getC_Country_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Country_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** C_Region_ID AD_Reference_ID=157 */ + public static final int C_REGION_ID_AD_Reference_ID=157; + /** Set Region. + @param C_Region_ID + Identifies a geographical Region + */ + public void setC_Region_ID (int C_Region_ID) + { + if (C_Region_ID < 1) + set_Value (COLUMNNAME_C_Region_ID, null); + else + set_Value (COLUMNNAME_C_Region_ID, Integer.valueOf(C_Region_ID)); + } + + /** Get Region. + @return Identifies a geographical Region + */ + public int getC_Region_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Region_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_TaxCategory getC_TaxCategory() throws Exception + { + Class clazz = MTable.getClass(I_C_TaxCategory.Table_Name); + I_C_TaxCategory result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_TaxCategory)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_TaxCategory_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Tax Category. + @param C_TaxCategory_ID + Tax Category + */ + public void setC_TaxCategory_ID (int C_TaxCategory_ID) + { + if (C_TaxCategory_ID < 1) + throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); + set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); + } + + /** Get Tax Category. + @return Tax Category + */ + public int getC_TaxCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_TaxCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Tax. + @param C_Tax_ID + Tax identifier + */ + public void setC_Tax_ID (int C_Tax_ID) + { + if (C_Tax_ID < 1) + throw new IllegalArgumentException ("C_Tax_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); + } + + /** Get Tax. + @return Tax identifier + */ + public int getC_Tax_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Tax_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Document Level. + @param IsDocumentLevel + Tax is calculated on document level (rather than line by line) + */ + public void setIsDocumentLevel (boolean IsDocumentLevel) + { + set_Value (COLUMNNAME_IsDocumentLevel, Boolean.valueOf(IsDocumentLevel)); + } + + /** Get Document Level. + @return Tax is calculated on document level (rather than line by line) + */ + public boolean isDocumentLevel () + { + Object oo = get_Value(COLUMNNAME_IsDocumentLevel); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Tax. + @param IsSalesTax + This is a sales tax (i.e. not a value added tax) + */ + public void setIsSalesTax (boolean IsSalesTax) + { + set_Value (COLUMNNAME_IsSalesTax, Boolean.valueOf(IsSalesTax)); + } + + /** Get Sales Tax. + @return This is a sales tax (i.e. not a value added tax) + */ + public boolean isSalesTax () + { + Object oo = get_Value(COLUMNNAME_IsSalesTax); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Tax exempt. + @param IsTaxExempt + Business partner is exempt from tax + */ + public void setIsTaxExempt (boolean IsTaxExempt) + { + set_Value (COLUMNNAME_IsTaxExempt, Boolean.valueOf(IsTaxExempt)); + } + + /** Get Tax exempt. + @return Business partner is exempt from tax + */ + public boolean isTaxExempt () + { + Object oo = get_Value(COLUMNNAME_IsTaxExempt); + 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) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 60); + } + 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()); + } + + /** Parent_Tax_ID AD_Reference_ID=158 */ + public static final int PARENT_TAX_ID_AD_Reference_ID=158; + /** Set Parent Tax. + @param Parent_Tax_ID + Parent Tax indicates a tax that is made up of multiple taxes + */ + public void setParent_Tax_ID (int Parent_Tax_ID) + { + if (Parent_Tax_ID < 1) + set_Value (COLUMNNAME_Parent_Tax_ID, null); + else + set_Value (COLUMNNAME_Parent_Tax_ID, Integer.valueOf(Parent_Tax_ID)); + } + + /** Get Parent Tax. + @return Parent Tax indicates a tax that is made up of multiple taxes + */ + public int getParent_Tax_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Parent_Tax_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Rate. + @param Rate + Rate or Tax or Exchange + */ + public void setRate (BigDecimal Rate) + { + if (Rate == null) + throw new IllegalArgumentException ("Rate is mandatory."); + set_Value (COLUMNNAME_Rate, Rate); + } + + /** Get Rate. + @return Rate or Tax or Exchange + */ + public BigDecimal getRate () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Rate); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Requires Tax Certificate. + @param RequiresTaxCertificate + This tax rate requires the Business Partner to be tax exempt + */ + public void setRequiresTaxCertificate (boolean RequiresTaxCertificate) + { + set_Value (COLUMNNAME_RequiresTaxCertificate, Boolean.valueOf(RequiresTaxCertificate)); + } + + /** Get Requires Tax Certificate. + @return This tax rate requires the Business Partner to be tax exempt + */ + public boolean isRequiresTaxCertificate () + { + Object oo = get_Value(COLUMNNAME_RequiresTaxCertificate); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** SOPOType AD_Reference_ID=287 */ + public static final int SOPOTYPE_AD_Reference_ID=287; + /** Both = B */ + public static final String SOPOTYPE_Both = "B"; + /** Sales Tax = S */ + public static final String SOPOTYPE_SalesTax = "S"; + /** Purchase Tax = P */ + public static final String SOPOTYPE_PurchaseTax = "P"; + /** Set SO/PO Type. + @param SOPOType + Sales Tax applies to sales situations, Purchase Tax to purchase situations + */ + public void setSOPOType (String SOPOType) + { + if (SOPOType == null) throw new IllegalArgumentException ("SOPOType is mandatory"); + if (SOPOType.equals("B") || SOPOType.equals("S") || SOPOType.equals("P")); else throw new IllegalArgumentException ("SOPOType Invalid value - " + SOPOType + " - Reference_ID=287 - B - S - P"); + if (SOPOType.length() > 1) + { + log.warning("Length > 1 - truncated"); + SOPOType = SOPOType.substring(0, 1); + } + set_Value (COLUMNNAME_SOPOType, SOPOType); + } + + /** Get SO/PO Type. + @return Sales Tax applies to sales situations, Purchase Tax to purchase situations + */ + public String getSOPOType () + { + return (String)get_Value(COLUMNNAME_SOPOType); + } + + /** Set Tax Indicator. + @param TaxIndicator + Short form for Tax to be printed on documents + */ + public void setTaxIndicator (String TaxIndicator) + { + + if (TaxIndicator != null && TaxIndicator.length() > 10) + { + log.warning("Length > 10 - truncated"); + TaxIndicator = TaxIndicator.substring(0, 10); + } + set_Value (COLUMNNAME_TaxIndicator, TaxIndicator); + } + + /** Get Tax Indicator. + @return Short form for Tax to be printed on documents + */ + public String getTaxIndicator () + { + return (String)get_Value(COLUMNNAME_TaxIndicator); + } + + /** To_Country_ID AD_Reference_ID=156 */ + public static final int TO_COUNTRY_ID_AD_Reference_ID=156; + /** Set To. + @param To_Country_ID + Receiving Country + */ + public void setTo_Country_ID (int To_Country_ID) + { + if (To_Country_ID < 1) + set_Value (COLUMNNAME_To_Country_ID, null); + else + set_Value (COLUMNNAME_To_Country_ID, Integer.valueOf(To_Country_ID)); + } + + /** Get To. + @return Receiving Country + */ + public int getTo_Country_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_To_Country_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** To_Region_ID AD_Reference_ID=157 */ + public static final int TO_REGION_ID_AD_Reference_ID=157; + /** Set To. + @param To_Region_ID + Receiving Region + */ + public void setTo_Region_ID (int To_Region_ID) + { + if (To_Region_ID < 1) + set_Value (COLUMNNAME_To_Region_ID, null); + else + set_Value (COLUMNNAME_To_Region_ID, Integer.valueOf(To_Region_ID)); + } + + /** Get To. + @return Receiving Region + */ + public int getTo_Region_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_To_Region_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Valid from. + @param ValidFrom + Valid from including this date (first day) + */ + public void setValidFrom (Timestamp ValidFrom) + { + if (ValidFrom == null) + throw new IllegalArgumentException ("ValidFrom is mandatory."); + 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); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_GL_BudgetControl.java b/base/src/org/compiere/model/X_GL_BudgetControl.java new file mode 100644 index 0000000000..f90685e719 --- /dev/null +++ b/base/src/org/compiere/model/X_GL_BudgetControl.java @@ -0,0 +1,352 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.sql.ResultSet; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.KeyNamePair; + +/** Generated Model for GL_BudgetControl + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_GL_BudgetControl extends PO implements I_GL_BudgetControl, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_GL_BudgetControl (Properties ctx, int GL_BudgetControl_ID, String trxName) + { + super (ctx, GL_BudgetControl_ID, trxName); + /** if (GL_BudgetControl_ID == 0) + { + setBudgetControlScope (null); + setC_AcctSchema_ID (0); + setCommitmentType (null); +// C + setGL_BudgetControl_ID (0); + setGL_Budget_ID (0); + setIsBeforeApproval (false); + setName (null); + } */ + } + + /** Load Constructor */ + public X_GL_BudgetControl (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + 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_GL_BudgetControl[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** BudgetControlScope AD_Reference_ID=361 */ + public static final int BUDGETCONTROLSCOPE_AD_Reference_ID=361; + /** Period only = P */ + public static final String BUDGETCONTROLSCOPE_PeriodOnly = "P"; + /** Year To Date = Y */ + public static final String BUDGETCONTROLSCOPE_YearToDate = "Y"; + /** Total = T */ + public static final String BUDGETCONTROLSCOPE_Total = "T"; + /** Set Control Scope. + @param BudgetControlScope + Scope of the Budget Control + */ + public void setBudgetControlScope (String BudgetControlScope) + { + if (BudgetControlScope == null) throw new IllegalArgumentException ("BudgetControlScope is mandatory"); + if (BudgetControlScope.equals("P") || BudgetControlScope.equals("Y") || BudgetControlScope.equals("T")); else throw new IllegalArgumentException ("BudgetControlScope Invalid value - " + BudgetControlScope + " - Reference_ID=361 - P - Y - T"); + if (BudgetControlScope.length() > 1) + { + log.warning("Length > 1 - truncated"); + BudgetControlScope = BudgetControlScope.substring(0, 1); + } + set_Value (COLUMNNAME_BudgetControlScope, BudgetControlScope); + } + + /** Get Control Scope. + @return Scope of the Budget Control + */ + public String getBudgetControlScope () + { + return (String)get_Value(COLUMNNAME_BudgetControlScope); + } + + public I_C_AcctSchema getC_AcctSchema() throws Exception + { + Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); + I_C_AcctSchema result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_Value (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** CommitmentType AD_Reference_ID=359 */ + public static final int COMMITMENTTYPE_AD_Reference_ID=359; + /** PO Commitment only = C */ + public static final String COMMITMENTTYPE_POCommitmentOnly = "C"; + /** PO Commitment & Reservation = B */ + public static final String COMMITMENTTYPE_POCommitmentReservation = "B"; + /** None = N */ + public static final String COMMITMENTTYPE_None = "N"; + /** PO/SO Commitment & Reservation = A */ + public static final String COMMITMENTTYPE_POSOCommitmentReservation = "A"; + /** SO Commitment only = S */ + public static final String COMMITMENTTYPE_SOCommitmentOnly = "S"; + /** PO/SO Commitment = O */ + public static final String COMMITMENTTYPE_POSOCommitment = "O"; + /** Set Commitment Type. + @param CommitmentType + Create Commitment and/or Reservations for Budget Control + */ + public void setCommitmentType (String CommitmentType) + { + if (CommitmentType == null) throw new IllegalArgumentException ("CommitmentType is mandatory"); + if (CommitmentType.equals("C") || CommitmentType.equals("B") || CommitmentType.equals("N") || CommitmentType.equals("A") || CommitmentType.equals("S") || CommitmentType.equals("O")); else throw new IllegalArgumentException ("CommitmentType Invalid value - " + CommitmentType + " - Reference_ID=359 - C - B - N - A - S - O"); + if (CommitmentType.length() > 1) + { + log.warning("Length > 1 - truncated"); + CommitmentType = CommitmentType.substring(0, 1); + } + set_Value (COLUMNNAME_CommitmentType, CommitmentType); + } + + /** Get Commitment Type. + @return Create Commitment and/or Reservations for Budget Control + */ + public String getCommitmentType () + { + return (String)get_Value(COLUMNNAME_CommitmentType); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Budget Control. + @param GL_BudgetControl_ID + Budget Control + */ + public void setGL_BudgetControl_ID (int GL_BudgetControl_ID) + { + if (GL_BudgetControl_ID < 1) + throw new IllegalArgumentException ("GL_BudgetControl_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_GL_BudgetControl_ID, Integer.valueOf(GL_BudgetControl_ID)); + } + + /** Get Budget Control. + @return Budget Control + */ + public int getGL_BudgetControl_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_BudgetControl_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_GL_Budget getGL_Budget() throws Exception + { + Class clazz = MTable.getClass(I_GL_Budget.Table_Name); + I_GL_Budget result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_GL_Budget)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Budget_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Budget. + @param GL_Budget_ID + General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID) + { + if (GL_Budget_ID < 1) + throw new IllegalArgumentException ("GL_Budget_ID is mandatory."); + set_Value (COLUMNNAME_GL_Budget_ID, Integer.valueOf(GL_Budget_ID)); + } + + /** Get Budget. + @return General Ledger Budget + */ + public int getGL_Budget_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Budget_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 2000); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Before Approval. + @param IsBeforeApproval + The Check is before the (manual) approval + */ + public void setIsBeforeApproval (boolean IsBeforeApproval) + { + set_Value (COLUMNNAME_IsBeforeApproval, Boolean.valueOf(IsBeforeApproval)); + } + + /** Get Before Approval. + @return The Check is before the (manual) approval + */ + public boolean isBeforeApproval () + { + Object oo = get_Value(COLUMNNAME_IsBeforeApproval); + 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) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + + if (Name.length() > 120) + { + log.warning("Length > 120 - truncated"); + Name = Name.substring(0, 120); + } + 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()); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_GL_Journal.java b/base/src/org/compiere/model/X_GL_Journal.java new file mode 100644 index 0000000000..9a811ef344 --- /dev/null +++ b/base/src/org/compiere/model/X_GL_Journal.java @@ -0,0 +1,890 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for GL_Journal + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_GL_Journal extends PO implements I_GL_Journal, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_GL_Journal (Properties ctx, int GL_Journal_ID, String trxName) + { + super (ctx, GL_Journal_ID, trxName); + /** if (GL_Journal_ID == 0) + { + setC_AcctSchema_ID (0); +// @$C_AcctSchema_ID@ + setC_ConversionType_ID (0); + setC_Currency_ID (0); +// @C_Currency_ID@ + setC_DocType_ID (0); +// @C_DocType_ID@ + setC_Period_ID (0); +// @C_Period_ID@ + setCurrencyRate (Env.ZERO); +// 1 + setDateAcct (new Timestamp(System.currentTimeMillis())); +// @DateAcct@ + setDateDoc (new Timestamp(System.currentTimeMillis())); +// @DateDoc@ + setDescription (null); + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setGL_Category_ID (0); +// @GL_Category_ID@ + setGL_Journal_ID (0); + setIsApproved (true); +// Y + setIsPrinted (false); +// N + setPosted (false); +// N + setPostingType (null); +// @PostingType@ + setTotalCr (Env.ZERO); +// 0 + setTotalDr (Env.ZERO); +// 0 + } */ + } + + /** Load Constructor */ + public X_GL_Journal (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - 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_GL_Journal[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_AcctSchema getC_AcctSchema() throws Exception + { + Class clazz = MTable.getClass(I_C_AcctSchema.Table_Name); + I_C_AcctSchema result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Accounting Schema. + @param C_AcctSchema_ID + Rules for accounting + */ + public void setC_AcctSchema_ID (int C_AcctSchema_ID) + { + if (C_AcctSchema_ID < 1) + throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); + } + + /** Get Accounting Schema. + @return Rules for accounting + */ + public int getC_AcctSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_ConversionType getC_ConversionType() throws Exception + { + Class clazz = MTable.getClass(I_C_ConversionType.Table_Name); + I_C_ConversionType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_ConversionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ConversionType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Currency Type. + @param C_ConversionType_ID + Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID) + { + if (C_ConversionType_ID < 1) + throw new IllegalArgumentException ("C_ConversionType_ID is mandatory."); + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + } + + /** Get Currency Type. + @return Currency Conversion Rate Type + */ + public int getC_ConversionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getC_Currency() throws Exception + { + Class clazz = MTable.getClass(I_C_Currency.Table_Name); + I_C_Currency result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + 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(); + } + + public I_C_DocType getC_DocType() throws Exception + { + Class clazz = MTable.getClass(I_C_DocType.Table_Name); + I_C_DocType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** C_Period_ID AD_Reference_ID=275 */ + public static final int C_PERIOD_ID_AD_Reference_ID=275; + /** Set Period. + @param C_Period_ID + Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID) + { + if (C_Period_ID < 1) + throw new IllegalArgumentException ("C_Period_ID is mandatory."); + set_Value (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + } + + /** Get Period. + @return Period of the Calendar + */ + public int getC_Period_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Period_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Control Amount. + @param ControlAmt + If not zero, the Debit amount of the document must be equal this amount + */ + public void setControlAmt (BigDecimal ControlAmt) + { + set_Value (COLUMNNAME_ControlAmt, ControlAmt); + } + + /** Get Control Amount. + @return If not zero, the Debit amount of the document must be equal this amount + */ + public BigDecimal getControlAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ControlAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Rate. + @param CurrencyRate + Currency Conversion Rate + */ + public void setCurrencyRate (BigDecimal CurrencyRate) + { + if (CurrencyRate == null) + throw new IllegalArgumentException ("CurrencyRate is mandatory."); + set_Value (COLUMNNAME_CurrencyRate, CurrencyRate); + } + + /** Get Rate. + @return Currency Conversion Rate + */ + public BigDecimal getCurrencyRate () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CurrencyRate); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Document Date. + @param DateDoc + Date of the Document + */ + public void setDateDoc (Timestamp DateDoc) + { + if (DateDoc == null) + throw new IllegalArgumentException ("DateDoc is mandatory."); + set_Value (COLUMNNAME_DateDoc, DateDoc); + } + + /** Get Document Date. + @return Date of the Document + */ + public Timestamp getDateDoc () + { + return (Timestamp)get_Value(COLUMNNAME_DateDoc); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description == null) + throw new IllegalArgumentException ("Description is mandatory."); + + if (Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** DocAction AD_Reference_ID=135 */ + public static final int DOCACTION_AD_Reference_ID=135; + /** Complete = CO */ + public static final String DOCACTION_Complete = "CO"; + /** Approve = AP */ + public static final String DOCACTION_Approve = "AP"; + /** Reject = RJ */ + public static final String DOCACTION_Reject = "RJ"; + /** Post = PO */ + public static final String DOCACTION_Post = "PO"; + /** Void = VO */ + public static final String DOCACTION_Void = "VO"; + /** Close = CL */ + public static final String DOCACTION_Close = "CL"; + /** Reverse - Correct = RC */ + public static final String DOCACTION_Reverse_Correct = "RC"; + /** Reverse - Accrual = RA */ + public static final String DOCACTION_Reverse_Accrual = "RA"; + /** Invalidate = IN */ + public static final String DOCACTION_Invalidate = "IN"; + /** Re-activate = RE */ + public static final String DOCACTION_Re_Activate = "RE"; + /** = -- */ + public static final String DOCACTION_None = "--"; + /** Prepare = PR */ + public static final String DOCACTION_Prepare = "PR"; + /** Unlock = XL */ + public static final String DOCACTION_Unlock = "XL"; + /** Wait Complete = WC */ + public static final String DOCACTION_WaitComplete = "WC"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { + if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + if (DocAction.equals("CO") || DocAction.equals("AP") || DocAction.equals("RJ") || DocAction.equals("PO") || DocAction.equals("VO") || DocAction.equals("CL") || DocAction.equals("RC") || DocAction.equals("RA") || DocAction.equals("IN") || DocAction.equals("RE") || DocAction.equals("--") || DocAction.equals("PR") || DocAction.equals("XL") || DocAction.equals("WC")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - CO - AP - RJ - PO - VO - CL - RC - RA - IN - RE - -- - PR - XL - WC"); + if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 2); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } + + /** DocStatus AD_Reference_ID=131 */ + public static final int DOCSTATUS_AD_Reference_ID=131; + /** Drafted = DR */ + public static final String DOCSTATUS_Drafted = "DR"; + /** Completed = CO */ + public static final String DOCSTATUS_Completed = "CO"; + /** Approved = AP */ + public static final String DOCSTATUS_Approved = "AP"; + /** Not Approved = NA */ + public static final String DOCSTATUS_NotApproved = "NA"; + /** Voided = VO */ + public static final String DOCSTATUS_Voided = "VO"; + /** Invalid = IN */ + public static final String DOCSTATUS_Invalid = "IN"; + /** Reversed = RE */ + public static final String DOCSTATUS_Reversed = "RE"; + /** Closed = CL */ + public static final String DOCSTATUS_Closed = "CL"; + /** Unknown = ?? */ + public static final String DOCSTATUS_Unknown = "??"; + /** In Progress = IP */ + public static final String DOCSTATUS_InProgress = "IP"; + /** Waiting Payment = WP */ + public static final String DOCSTATUS_WaitingPayment = "WP"; + /** Waiting Confirmation = WC */ + public static final String DOCSTATUS_WaitingConfirmation = "WC"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { + if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + if (DocStatus.equals("DR") || DocStatus.equals("CO") || DocStatus.equals("AP") || DocStatus.equals("NA") || DocStatus.equals("VO") || DocStatus.equals("IN") || DocStatus.equals("RE") || DocStatus.equals("CL") || DocStatus.equals("??") || DocStatus.equals("IP") || DocStatus.equals("WP") || DocStatus.equals("WC")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - DR - CO - AP - NA - VO - IN - RE - CL - ?? - IP - WP - WC"); + if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 2); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 30); + } + set_ValueNoCheck (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()); + } + + public I_GL_Budget getGL_Budget() throws Exception + { + Class clazz = MTable.getClass(I_GL_Budget.Table_Name); + I_GL_Budget result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_GL_Budget)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Budget_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Budget. + @param GL_Budget_ID + General Ledger Budget + */ + public void setGL_Budget_ID (int GL_Budget_ID) + { + if (GL_Budget_ID < 1) + set_Value (COLUMNNAME_GL_Budget_ID, null); + else + set_Value (COLUMNNAME_GL_Budget_ID, Integer.valueOf(GL_Budget_ID)); + } + + /** Get Budget. + @return General Ledger Budget + */ + public int getGL_Budget_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Budget_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_GL_Category getGL_Category() throws Exception + { + Class clazz = MTable.getClass(I_GL_Category.Table_Name); + I_GL_Category result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_GL_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Category_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set GL Category. + @param GL_Category_ID + General Ledger Category + */ + public void setGL_Category_ID (int GL_Category_ID) + { + if (GL_Category_ID < 1) + throw new IllegalArgumentException ("GL_Category_ID is mandatory."); + set_Value (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); + } + + /** Get GL Category. + @return General Ledger Category + */ + public int getGL_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_GL_JournalBatch getGL_JournalBatch() throws Exception + { + Class clazz = MTable.getClass(I_GL_JournalBatch.Table_Name); + I_GL_JournalBatch result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_GL_JournalBatch)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_JournalBatch_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Journal Batch. + @param GL_JournalBatch_ID + General Ledger Journal Batch + */ + public void setGL_JournalBatch_ID (int GL_JournalBatch_ID) + { + if (GL_JournalBatch_ID < 1) + set_ValueNoCheck (COLUMNNAME_GL_JournalBatch_ID, null); + else + set_ValueNoCheck (COLUMNNAME_GL_JournalBatch_ID, Integer.valueOf(GL_JournalBatch_ID)); + } + + /** Get Journal Batch. + @return General Ledger Journal Batch + */ + public int getGL_JournalBatch_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_JournalBatch_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Journal. + @param GL_Journal_ID + General Ledger Journal + */ + public void setGL_Journal_ID (int GL_Journal_ID) + { + if (GL_Journal_ID < 1) + throw new IllegalArgumentException ("GL_Journal_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_GL_Journal_ID, Integer.valueOf(GL_Journal_ID)); + } + + /** Get Journal. + @return General Ledger Journal + */ + public int getGL_Journal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Journal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_ValueNoCheck (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Printed. + @param IsPrinted + Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted) + { + set_ValueNoCheck (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); + } + + /** Get Printed. + @return Indicates if this document / line is printed + */ + public boolean isPrinted () + { + Object oo = get_Value(COLUMNNAME_IsPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_ValueNoCheck (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** PostingType AD_Reference_ID=125 */ + public static final int POSTINGTYPE_AD_Reference_ID=125; + /** Actual = A */ + public static final String POSTINGTYPE_Actual = "A"; + /** Budget = B */ + public static final String POSTINGTYPE_Budget = "B"; + /** Commitment = E */ + public static final String POSTINGTYPE_Commitment = "E"; + /** Statistical = S */ + public static final String POSTINGTYPE_Statistical = "S"; + /** Reservation = R */ + public static final String POSTINGTYPE_Reservation = "R"; + /** Set PostingType. + @param PostingType + The type of posted amount for the transaction + */ + public void setPostingType (String PostingType) + { + if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory"); + if (PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("S") || PostingType.equals("R")); else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - S - R"); + if (PostingType.length() > 1) + { + log.warning("Length > 1 - truncated"); + PostingType = PostingType.substring(0, 1); + } + set_Value (COLUMNNAME_PostingType, PostingType); + } + + /** Get PostingType. + @return The type of posted amount for the transaction + */ + public String getPostingType () + { + return (String)get_Value(COLUMNNAME_PostingType); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. + @return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Reversal_ID AD_Reference_ID=53250 */ + public static final int REVERSAL_ID_AD_Reference_ID=53250; + /** Set Reversal ID. + @param Reversal_ID + ID of document reversal + */ + public void setReversal_ID (int Reversal_ID) + { + if (Reversal_ID < 1) + set_Value (COLUMNNAME_Reversal_ID, null); + else + set_Value (COLUMNNAME_Reversal_ID, Integer.valueOf(Reversal_ID)); + } + + /** Get Reversal ID. + @return ID of document reversal + */ + public int getReversal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Reversal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Total Credit. + @param TotalCr + Total Credit in document currency + */ + public void setTotalCr (BigDecimal TotalCr) + { + if (TotalCr == null) + throw new IllegalArgumentException ("TotalCr is mandatory."); + set_ValueNoCheck (COLUMNNAME_TotalCr, TotalCr); + } + + /** Get Total Credit. + @return Total Credit in document currency + */ + public BigDecimal getTotalCr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalCr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Total Debit. + @param TotalDr + Total debit in document currency + */ + public void setTotalDr (BigDecimal TotalDr) + { + if (TotalDr == null) + throw new IllegalArgumentException ("TotalDr is mandatory."); + set_ValueNoCheck (COLUMNNAME_TotalDr, TotalDr); + } + + /** Get Total Debit. + @return Total debit in document currency + */ + public BigDecimal getTotalDr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalDr); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_GL_JournalBatch.java b/base/src/org/compiere/model/X_GL_JournalBatch.java new file mode 100644 index 0000000000..15b424e4b7 --- /dev/null +++ b/base/src/org/compiere/model/X_GL_JournalBatch.java @@ -0,0 +1,666 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for GL_JournalBatch + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_GL_JournalBatch extends PO implements I_GL_JournalBatch, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_GL_JournalBatch (Properties ctx, int GL_JournalBatch_ID, String trxName) + { + super (ctx, GL_JournalBatch_ID, trxName); + /** if (GL_JournalBatch_ID == 0) + { + setC_DocType_ID (0); + setDescription (null); + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setGL_JournalBatch_ID (0); + setPostingType (null); +// A + setProcessed (false); + setProcessing (false); + setTotalCr (Env.ZERO); + setTotalDr (Env.ZERO); + } */ + } + + /** Load Constructor */ + public X_GL_JournalBatch (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - 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_GL_JournalBatch[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_Currency getC_Currency() throws Exception + { + Class clazz = MTable.getClass(I_C_Currency.Table_Name); + I_C_Currency result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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(); + } + + public I_C_DocType getC_DocType() throws Exception + { + Class clazz = MTable.getClass(I_C_DocType.Table_Name); + I_C_DocType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** C_Period_ID AD_Reference_ID=275 */ + public static final int C_PERIOD_ID_AD_Reference_ID=275; + /** Set Period. + @param C_Period_ID + Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID) + { + if (C_Period_ID < 1) + set_Value (COLUMNNAME_C_Period_ID, null); + else + set_Value (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + } + + /** Get Period. + @return Period of the Calendar + */ + public int getC_Period_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Period_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Control Amount. + @param ControlAmt + If not zero, the Debit amount of the document must be equal this amount + */ + public void setControlAmt (BigDecimal ControlAmt) + { + set_Value (COLUMNNAME_ControlAmt, ControlAmt); + } + + /** Get Control Amount. + @return If not zero, the Debit amount of the document must be equal this amount + */ + public BigDecimal getControlAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ControlAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Copy From. + @param CopyFrom + Copy From Record + */ + public void setCopyFrom (String CopyFrom) + { + + if (CopyFrom != null && CopyFrom.length() > 1) + { + log.warning("Length > 1 - truncated"); + CopyFrom = CopyFrom.substring(0, 1); + } + set_Value (COLUMNNAME_CopyFrom, CopyFrom); + } + + /** Get Copy From. + @return Copy From Record + */ + public String getCopyFrom () + { + return (String)get_Value(COLUMNNAME_CopyFrom); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Document Date. + @param DateDoc + Date of the Document + */ + public void setDateDoc (Timestamp DateDoc) + { + set_Value (COLUMNNAME_DateDoc, DateDoc); + } + + /** Get Document Date. + @return Date of the Document + */ + public Timestamp getDateDoc () + { + return (Timestamp)get_Value(COLUMNNAME_DateDoc); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + if (Description == null) + throw new IllegalArgumentException ("Description is mandatory."); + + if (Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** DocAction AD_Reference_ID=135 */ + public static final int DOCACTION_AD_Reference_ID=135; + /** Complete = CO */ + public static final String DOCACTION_Complete = "CO"; + /** Approve = AP */ + public static final String DOCACTION_Approve = "AP"; + /** Reject = RJ */ + public static final String DOCACTION_Reject = "RJ"; + /** Post = PO */ + public static final String DOCACTION_Post = "PO"; + /** Void = VO */ + public static final String DOCACTION_Void = "VO"; + /** Close = CL */ + public static final String DOCACTION_Close = "CL"; + /** Reverse - Correct = RC */ + public static final String DOCACTION_Reverse_Correct = "RC"; + /** Reverse - Accrual = RA */ + public static final String DOCACTION_Reverse_Accrual = "RA"; + /** Invalidate = IN */ + public static final String DOCACTION_Invalidate = "IN"; + /** Re-activate = RE */ + public static final String DOCACTION_Re_Activate = "RE"; + /** = -- */ + public static final String DOCACTION_None = "--"; + /** Prepare = PR */ + public static final String DOCACTION_Prepare = "PR"; + /** Unlock = XL */ + public static final String DOCACTION_Unlock = "XL"; + /** Wait Complete = WC */ + public static final String DOCACTION_WaitComplete = "WC"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { + if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + if (DocAction.equals("CO") || DocAction.equals("AP") || DocAction.equals("RJ") || DocAction.equals("PO") || DocAction.equals("VO") || DocAction.equals("CL") || DocAction.equals("RC") || DocAction.equals("RA") || DocAction.equals("IN") || DocAction.equals("RE") || DocAction.equals("--") || DocAction.equals("PR") || DocAction.equals("XL") || DocAction.equals("WC")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - CO - AP - RJ - PO - VO - CL - RC - RA - IN - RE - -- - PR - XL - WC"); + if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 2); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } + + /** DocStatus AD_Reference_ID=131 */ + public static final int DOCSTATUS_AD_Reference_ID=131; + /** Drafted = DR */ + public static final String DOCSTATUS_Drafted = "DR"; + /** Completed = CO */ + public static final String DOCSTATUS_Completed = "CO"; + /** Approved = AP */ + public static final String DOCSTATUS_Approved = "AP"; + /** Not Approved = NA */ + public static final String DOCSTATUS_NotApproved = "NA"; + /** Voided = VO */ + public static final String DOCSTATUS_Voided = "VO"; + /** Invalid = IN */ + public static final String DOCSTATUS_Invalid = "IN"; + /** Reversed = RE */ + public static final String DOCSTATUS_Reversed = "RE"; + /** Closed = CL */ + public static final String DOCSTATUS_Closed = "CL"; + /** Unknown = ?? */ + public static final String DOCSTATUS_Unknown = "??"; + /** In Progress = IP */ + public static final String DOCSTATUS_InProgress = "IP"; + /** Waiting Payment = WP */ + public static final String DOCSTATUS_WaitingPayment = "WP"; + /** Waiting Confirmation = WC */ + public static final String DOCSTATUS_WaitingConfirmation = "WC"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { + if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + if (DocStatus.equals("DR") || DocStatus.equals("CO") || DocStatus.equals("AP") || DocStatus.equals("NA") || DocStatus.equals("VO") || DocStatus.equals("IN") || DocStatus.equals("RE") || DocStatus.equals("CL") || DocStatus.equals("??") || DocStatus.equals("IP") || DocStatus.equals("WP") || DocStatus.equals("WC")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - DR - CO - AP - NA - VO - IN - RE - CL - ?? - IP - WP - WC"); + if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 2); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 30); + } + set_ValueNoCheck (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()); + } + + public I_GL_Category getGL_Category() throws Exception + { + Class clazz = MTable.getClass(I_GL_Category.Table_Name); + I_GL_Category result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_GL_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Category_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set GL Category. + @param GL_Category_ID + General Ledger Category + */ + public void setGL_Category_ID (int GL_Category_ID) + { + if (GL_Category_ID < 1) + set_Value (COLUMNNAME_GL_Category_ID, null); + else + set_Value (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); + } + + /** Get GL Category. + @return General Ledger Category + */ + public int getGL_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Journal Batch. + @param GL_JournalBatch_ID + General Ledger Journal Batch + */ + public void setGL_JournalBatch_ID (int GL_JournalBatch_ID) + { + if (GL_JournalBatch_ID < 1) + throw new IllegalArgumentException ("GL_JournalBatch_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_GL_JournalBatch_ID, Integer.valueOf(GL_JournalBatch_ID)); + } + + /** Get Journal Batch. + @return General Ledger Journal Batch + */ + public int getGL_JournalBatch_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GL_JournalBatch_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** PostingType AD_Reference_ID=125 */ + public static final int POSTINGTYPE_AD_Reference_ID=125; + /** Actual = A */ + public static final String POSTINGTYPE_Actual = "A"; + /** Budget = B */ + public static final String POSTINGTYPE_Budget = "B"; + /** Commitment = E */ + public static final String POSTINGTYPE_Commitment = "E"; + /** Statistical = S */ + public static final String POSTINGTYPE_Statistical = "S"; + /** Reservation = R */ + public static final String POSTINGTYPE_Reservation = "R"; + /** Set PostingType. + @param PostingType + The type of posted amount for the transaction + */ + public void setPostingType (String PostingType) + { + if (PostingType == null) throw new IllegalArgumentException ("PostingType is mandatory"); + if (PostingType.equals("A") || PostingType.equals("B") || PostingType.equals("E") || PostingType.equals("S") || PostingType.equals("R")); else throw new IllegalArgumentException ("PostingType Invalid value - " + PostingType + " - Reference_ID=125 - A - B - E - S - R"); + if (PostingType.length() > 1) + { + log.warning("Length > 1 - truncated"); + PostingType = PostingType.substring(0, 1); + } + set_Value (COLUMNNAME_PostingType, PostingType); + } + + /** Get PostingType. + @return The type of posted amount for the transaction + */ + public String getPostingType () + { + return (String)get_Value(COLUMNNAME_PostingType); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. + @return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Reversal_ID AD_Reference_ID=53251 */ + public static final int REVERSAL_ID_AD_Reference_ID=53251; + /** Set Reversal ID. + @param Reversal_ID + ID of document reversal + */ + public void setReversal_ID (int Reversal_ID) + { + if (Reversal_ID < 1) + set_Value (COLUMNNAME_Reversal_ID, null); + else + set_Value (COLUMNNAME_Reversal_ID, Integer.valueOf(Reversal_ID)); + } + + /** Get Reversal ID. + @return ID of document reversal + */ + public int getReversal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Reversal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Total Credit. + @param TotalCr + Total Credit in document currency + */ + public void setTotalCr (BigDecimal TotalCr) + { + if (TotalCr == null) + throw new IllegalArgumentException ("TotalCr is mandatory."); + set_ValueNoCheck (COLUMNNAME_TotalCr, TotalCr); + } + + /** Get Total Credit. + @return Total Credit in document currency + */ + public BigDecimal getTotalCr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalCr); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Total Debit. + @param TotalDr + Total debit in document currency + */ + public void setTotalDr (BigDecimal TotalDr) + { + if (TotalDr == null) + throw new IllegalArgumentException ("TotalDr is mandatory."); + set_ValueNoCheck (COLUMNNAME_TotalDr, TotalDr); + } + + /** Get Total Debit. + @return Total debit in document currency + */ + public BigDecimal getTotalDr () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TotalDr); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_I_Payment.java b/base/src/org/compiere/model/X_I_Payment.java new file mode 100644 index 0000000000..e38b5ddf4b --- /dev/null +++ b/base/src/org/compiere/model/X_I_Payment.java @@ -0,0 +1,1605 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; + +/** Generated Model for I_Payment + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_I_Payment extends PO implements I_I_Payment, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_I_Payment (Properties ctx, int I_Payment_ID, String trxName) + { + super (ctx, I_Payment_ID, trxName); + /** if (I_Payment_ID == 0) + { + setI_IsImported (false); + setI_Payment_ID (0); + } */ + } + + /** Load Constructor */ + public X_I_Payment (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 2 - Client + */ + 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_I_Payment[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Account City. + @param A_City + City or the Credit Card or Account Holder + */ + public void setA_City (String A_City) + { + + if (A_City != null && A_City.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_City = A_City.substring(0, 60); + } + set_Value (COLUMNNAME_A_City, A_City); + } + + /** Get Account City. + @return City or the Credit Card or Account Holder + */ + public String getA_City () + { + return (String)get_Value(COLUMNNAME_A_City); + } + + /** Set Account Country. + @param A_Country + Country + */ + public void setA_Country (String A_Country) + { + + if (A_Country != null && A_Country.length() > 40) + { + log.warning("Length > 40 - truncated"); + A_Country = A_Country.substring(0, 40); + } + set_Value (COLUMNNAME_A_Country, A_Country); + } + + /** Get Account Country. + @return Country + */ + public String getA_Country () + { + return (String)get_Value(COLUMNNAME_A_Country); + } + + /** Set Account EMail. + @param A_EMail + Email Address + */ + public void setA_EMail (String A_EMail) + { + + if (A_EMail != null && A_EMail.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_EMail = A_EMail.substring(0, 60); + } + set_Value (COLUMNNAME_A_EMail, A_EMail); + } + + /** Get Account EMail. + @return Email Address + */ + public String getA_EMail () + { + return (String)get_Value(COLUMNNAME_A_EMail); + } + + /** Set Driver License. + @param A_Ident_DL + Payment Identification - Driver License + */ + public void setA_Ident_DL (String A_Ident_DL) + { + + if (A_Ident_DL != null && A_Ident_DL.length() > 20) + { + log.warning("Length > 20 - truncated"); + A_Ident_DL = A_Ident_DL.substring(0, 20); + } + set_Value (COLUMNNAME_A_Ident_DL, A_Ident_DL); + } + + /** Get Driver License. + @return Payment Identification - Driver License + */ + public String getA_Ident_DL () + { + return (String)get_Value(COLUMNNAME_A_Ident_DL); + } + + /** Set Social Security No. + @param A_Ident_SSN + Payment Identification - Social Security No + */ + public void setA_Ident_SSN (String A_Ident_SSN) + { + + if (A_Ident_SSN != null && A_Ident_SSN.length() > 20) + { + log.warning("Length > 20 - truncated"); + A_Ident_SSN = A_Ident_SSN.substring(0, 20); + } + set_Value (COLUMNNAME_A_Ident_SSN, A_Ident_SSN); + } + + /** Get Social Security No. + @return Payment Identification - Social Security No + */ + public String getA_Ident_SSN () + { + return (String)get_Value(COLUMNNAME_A_Ident_SSN); + } + + /** Set Account Name. + @param A_Name + Name on Credit Card or Account holder + */ + public void setA_Name (String A_Name) + { + + if (A_Name != null && A_Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_Name = A_Name.substring(0, 60); + } + set_Value (COLUMNNAME_A_Name, A_Name); + } + + /** Get Account Name. + @return Name on Credit Card or Account holder + */ + public String getA_Name () + { + return (String)get_Value(COLUMNNAME_A_Name); + } + + /** Set Account State. + @param A_State + State of the Credit Card or Account holder + */ + public void setA_State (String A_State) + { + + if (A_State != null && A_State.length() > 40) + { + log.warning("Length > 40 - truncated"); + A_State = A_State.substring(0, 40); + } + set_Value (COLUMNNAME_A_State, A_State); + } + + /** Get Account State. + @return State of the Credit Card or Account holder + */ + public String getA_State () + { + return (String)get_Value(COLUMNNAME_A_State); + } + + /** Set Account Street. + @param A_Street + Street address of the Credit Card or Account holder + */ + public void setA_Street (String A_Street) + { + + if (A_Street != null && A_Street.length() > 60) + { + log.warning("Length > 60 - truncated"); + A_Street = A_Street.substring(0, 60); + } + set_Value (COLUMNNAME_A_Street, A_Street); + } + + /** Get Account Street. + @return Street address of the Credit Card or Account holder + */ + public String getA_Street () + { + return (String)get_Value(COLUMNNAME_A_Street); + } + + /** Set Account Zip/Postal. + @param A_Zip + Zip Code of the Credit Card or Account Holder + */ + public void setA_Zip (String A_Zip) + { + + if (A_Zip != null && A_Zip.length() > 20) + { + log.warning("Length > 20 - truncated"); + A_Zip = A_Zip.substring(0, 20); + } + set_Value (COLUMNNAME_A_Zip, A_Zip); + } + + /** Get Account Zip/Postal. + @return Zip Code of the Credit Card or Account Holder + */ + public String getA_Zip () + { + return (String)get_Value(COLUMNNAME_A_Zip); + } + + /** Set Account No. + @param AccountNo + Account Number + */ + public void setAccountNo (String AccountNo) + { + + if (AccountNo != null && AccountNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + AccountNo = AccountNo.substring(0, 20); + } + set_Value (COLUMNNAME_AccountNo, AccountNo); + } + + /** Get Account No. + @return Account Number + */ + public String getAccountNo () + { + return (String)get_Value(COLUMNNAME_AccountNo); + } + + /** Set Business Partner Key. + @param BPartnerValue + Key of the Business Partner + */ + public void setBPartnerValue (String BPartnerValue) + { + + if (BPartnerValue != null && BPartnerValue.length() > 40) + { + log.warning("Length > 40 - truncated"); + BPartnerValue = BPartnerValue.substring(0, 40); + } + set_Value (COLUMNNAME_BPartnerValue, BPartnerValue); + } + + /** Get Business Partner Key. + @return Key of the Business Partner + */ + public String getBPartnerValue () + { + return (String)get_Value(COLUMNNAME_BPartnerValue); + } + + /** Set Bank Account No. + @param BankAccountNo + Bank Account Number + */ + public void setBankAccountNo (String BankAccountNo) + { + + if (BankAccountNo != null && BankAccountNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + BankAccountNo = BankAccountNo.substring(0, 20); + } + set_Value (COLUMNNAME_BankAccountNo, BankAccountNo); + } + + /** Get Bank Account No. + @return Bank Account Number + */ + public String getBankAccountNo () + { + return (String)get_Value(COLUMNNAME_BankAccountNo); + } + + public I_C_BPartner getC_BPartner() throws Exception + { + Class clazz = MTable.getClass(I_C_BPartner.Table_Name); + I_C_BPartner result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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 I_C_BankAccount getC_BankAccount() throws Exception + { + Class clazz = MTable.getClass(I_C_BankAccount.Table_Name); + I_C_BankAccount result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BankAccount)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BankAccount_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Bank Account. + @param C_BankAccount_ID + Account at the Bank + */ + public void setC_BankAccount_ID (int C_BankAccount_ID) + { + if (C_BankAccount_ID < 1) + set_Value (COLUMNNAME_C_BankAccount_ID, null); + else + set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID)); + } + + /** Get Bank Account. + @return Account at the Bank + */ + public int getC_BankAccount_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Charge getC_Charge() throws Exception + { + Class clazz = MTable.getClass(I_C_Charge.Table_Name); + I_C_Charge result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID < 1) + set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Currency getC_Currency() throws Exception + { + Class clazz = MTable.getClass(I_C_Currency.Table_Name); + I_C_Currency result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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(); + } + + public I_C_DocType getC_DocType() throws Exception + { + Class clazz = MTable.getClass(I_C_DocType.Table_Name); + I_C_DocType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 1) + set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Invoice getC_Invoice() throws Exception + { + Class clazz = MTable.getClass(I_C_Invoice.Table_Name); + I_C_Invoice result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID < 1) + set_Value (COLUMNNAME_C_Invoice_ID, null); + else + set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Payment getC_Payment() throws Exception + { + Class clazz = MTable.getClass(I_C_Payment.Table_Name); + I_C_Payment result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID < 1) + set_Value (COLUMNNAME_C_Payment_ID, null); + else + set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge amount. + @param ChargeAmt + Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt) + { + set_Value (COLUMNNAME_ChargeAmt, ChargeAmt); + } + + /** Get Charge amount. + @return Charge Amount + */ + public BigDecimal getChargeAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Charge Name. + @param ChargeName + Name of the Charge + */ + public void setChargeName (String ChargeName) + { + + if (ChargeName != null && ChargeName.length() > 60) + { + log.warning("Length > 60 - truncated"); + ChargeName = ChargeName.substring(0, 60); + } + set_Value (COLUMNNAME_ChargeName, ChargeName); + } + + /** Get Charge Name. + @return Name of the Charge + */ + public String getChargeName () + { + return (String)get_Value(COLUMNNAME_ChargeName); + } + + /** Set Check No. + @param CheckNo + Check Number + */ + public void setCheckNo (String CheckNo) + { + + if (CheckNo != null && CheckNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + CheckNo = CheckNo.substring(0, 20); + } + set_Value (COLUMNNAME_CheckNo, CheckNo); + } + + /** Get Check No. + @return Check Number + */ + public String getCheckNo () + { + return (String)get_Value(COLUMNNAME_CheckNo); + } + + /** Set Exp. Month. + @param CreditCardExpMM + Expiry Month + */ + public void setCreditCardExpMM (int CreditCardExpMM) + { + set_Value (COLUMNNAME_CreditCardExpMM, Integer.valueOf(CreditCardExpMM)); + } + + /** Get Exp. Month. + @return Expiry Month + */ + public int getCreditCardExpMM () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CreditCardExpMM); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Exp. Year. + @param CreditCardExpYY + Expiry Year + */ + public void setCreditCardExpYY (int CreditCardExpYY) + { + set_Value (COLUMNNAME_CreditCardExpYY, Integer.valueOf(CreditCardExpYY)); + } + + /** Get Exp. Year. + @return Expiry Year + */ + public int getCreditCardExpYY () + { + Integer ii = (Integer)get_Value(COLUMNNAME_CreditCardExpYY); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Number. + @param CreditCardNumber + Credit Card Number + */ + public void setCreditCardNumber (String CreditCardNumber) + { + + if (CreditCardNumber != null && CreditCardNumber.length() > 20) + { + log.warning("Length > 20 - truncated"); + CreditCardNumber = CreditCardNumber.substring(0, 20); + } + set_Value (COLUMNNAME_CreditCardNumber, CreditCardNumber); + } + + /** Get Number. + @return Credit Card Number + */ + public String getCreditCardNumber () + { + return (String)get_Value(COLUMNNAME_CreditCardNumber); + } + + /** CreditCardType AD_Reference_ID=149 */ + public static final int CREDITCARDTYPE_AD_Reference_ID=149; + /** Amex = A */ + public static final String CREDITCARDTYPE_Amex = "A"; + /** MasterCard = M */ + public static final String CREDITCARDTYPE_MasterCard = "M"; + /** Visa = V */ + public static final String CREDITCARDTYPE_Visa = "V"; + /** ATM = C */ + public static final String CREDITCARDTYPE_ATM = "C"; + /** Diners = D */ + public static final String CREDITCARDTYPE_Diners = "D"; + /** Discover = N */ + public static final String CREDITCARDTYPE_Discover = "N"; + /** Purchase Card = P */ + public static final String CREDITCARDTYPE_PurchaseCard = "P"; + /** Set Credit Card. + @param CreditCardType + Credit Card (Visa, MC, AmEx) + */ + public void setCreditCardType (String CreditCardType) + { + + if (CreditCardType == null || CreditCardType.equals("A") || CreditCardType.equals("M") || CreditCardType.equals("V") || CreditCardType.equals("C") || CreditCardType.equals("D") || CreditCardType.equals("N") || CreditCardType.equals("P")); else throw new IllegalArgumentException ("CreditCardType Invalid value - " + CreditCardType + " - Reference_ID=149 - A - M - V - C - D - N - P"); + if (CreditCardType != null && CreditCardType.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreditCardType = CreditCardType.substring(0, 1); + } + set_Value (COLUMNNAME_CreditCardType, CreditCardType); + } + + /** Get Credit Card. + @return Credit Card (Visa, MC, AmEx) + */ + public String getCreditCardType () + { + return (String)get_Value(COLUMNNAME_CreditCardType); + } + + /** Set Verification Code. + @param CreditCardVV + Credit Card Verification code on credit card + */ + public void setCreditCardVV (String CreditCardVV) + { + + if (CreditCardVV != null && CreditCardVV.length() > 4) + { + log.warning("Length > 4 - truncated"); + CreditCardVV = CreditCardVV.substring(0, 4); + } + set_Value (COLUMNNAME_CreditCardVV, CreditCardVV); + } + + /** Get Verification Code. + @return Credit Card Verification code on credit card + */ + public String getCreditCardVV () + { + return (String)get_Value(COLUMNNAME_CreditCardVV); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Transaction Date. + @param DateTrx + Transaction Date + */ + public void setDateTrx (Timestamp DateTrx) + { + set_Value (COLUMNNAME_DateTrx, DateTrx); + } + + /** Get Transaction Date. + @return Transaction Date + */ + public Timestamp getDateTrx () + { + return (Timestamp)get_Value(COLUMNNAME_DateTrx); + } + + /** Set Discount Amount. + @param DiscountAmt + Calculated amount of discount + */ + public void setDiscountAmt (BigDecimal DiscountAmt) + { + set_Value (COLUMNNAME_DiscountAmt, DiscountAmt); + } + + /** Get Discount Amount. + @return Calculated amount of discount + */ + public BigDecimal getDiscountAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DiscountAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Document Type Name. + @param DocTypeName + Name of the Document Type + */ + public void setDocTypeName (String DocTypeName) + { + + if (DocTypeName != null && DocTypeName.length() > 60) + { + log.warning("Length > 60 - truncated"); + DocTypeName = DocTypeName.substring(0, 60); + } + set_Value (COLUMNNAME_DocTypeName, DocTypeName); + } + + /** Get Document Type Name. + @return Name of the Document Type + */ + public String getDocTypeName () + { + return (String)get_Value(COLUMNNAME_DocTypeName); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + + if (DocumentNo != null && DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 30); + } + set_Value (COLUMNNAME_DocumentNo, DocumentNo); + } + + /** Get Document No. + @return Document sequence number of the document + */ + public String getDocumentNo () + { + return (String)get_Value(COLUMNNAME_DocumentNo); + } + + /** Set ISO Currency Code. + @param ISO_Code + Three letter ISO 4217 Code of the Currency + */ + public void setISO_Code (String ISO_Code) + { + + if (ISO_Code != null && ISO_Code.length() > 3) + { + log.warning("Length > 3 - truncated"); + ISO_Code = ISO_Code.substring(0, 3); + } + set_Value (COLUMNNAME_ISO_Code, ISO_Code); + } + + /** Get ISO Currency Code. + @return Three letter ISO 4217 Code of the Currency + */ + public String getISO_Code () + { + return (String)get_Value(COLUMNNAME_ISO_Code); + } + + /** Set Import Error Message. + @param I_ErrorMsg + Messages generated from import process + */ + public void setI_ErrorMsg (String I_ErrorMsg) + { + + if (I_ErrorMsg != null && I_ErrorMsg.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + I_ErrorMsg = I_ErrorMsg.substring(0, 2000); + } + set_Value (COLUMNNAME_I_ErrorMsg, I_ErrorMsg); + } + + /** Get Import Error Message. + @return Messages generated from import process + */ + public String getI_ErrorMsg () + { + return (String)get_Value(COLUMNNAME_I_ErrorMsg); + } + + /** Set Imported. + @param I_IsImported + Has this import been processed + */ + public void setI_IsImported (boolean I_IsImported) + { + set_Value (COLUMNNAME_I_IsImported, Boolean.valueOf(I_IsImported)); + } + + /** Get Imported. + @return Has this import been processed + */ + public boolean isI_IsImported () + { + Object oo = get_Value(COLUMNNAME_I_IsImported); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Import Payment. + @param I_Payment_ID + Import Payment + */ + public void setI_Payment_ID (int I_Payment_ID) + { + if (I_Payment_ID < 1) + throw new IllegalArgumentException ("I_Payment_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_I_Payment_ID, Integer.valueOf(I_Payment_ID)); + } + + /** Get Import Payment. + @return Import Payment + */ + public int getI_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_I_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Invoice Document No. + @param InvoiceDocumentNo + Document Number of the Invoice + */ + public void setInvoiceDocumentNo (String InvoiceDocumentNo) + { + + if (InvoiceDocumentNo != null && InvoiceDocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + InvoiceDocumentNo = InvoiceDocumentNo.substring(0, 30); + } + set_Value (COLUMNNAME_InvoiceDocumentNo, InvoiceDocumentNo); + } + + /** Get Invoice Document No. + @return Document Number of the Invoice + */ + public String getInvoiceDocumentNo () + { + return (String)get_Value(COLUMNNAME_InvoiceDocumentNo); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Delayed Capture. + @param IsDelayedCapture + Charge after Shipment + */ + public void setIsDelayedCapture (boolean IsDelayedCapture) + { + set_Value (COLUMNNAME_IsDelayedCapture, Boolean.valueOf(IsDelayedCapture)); + } + + /** Get Delayed Capture. + @return Charge after Shipment + */ + public boolean isDelayedCapture () + { + Object oo = get_Value(COLUMNNAME_IsDelayedCapture); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Over/Under Payment. + @param IsOverUnderPayment + Over-Payment (unallocated) or Under-Payment (partial payment) + */ + public void setIsOverUnderPayment (boolean IsOverUnderPayment) + { + set_Value (COLUMNNAME_IsOverUnderPayment, Boolean.valueOf(IsOverUnderPayment)); + } + + /** Get Over/Under Payment. + @return Over-Payment (unallocated) or Under-Payment (partial payment) + */ + public boolean isOverUnderPayment () + { + Object oo = get_Value(COLUMNNAME_IsOverUnderPayment); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Receipt. + @param IsReceipt + This is a sales transaction (receipt) + */ + public void setIsReceipt (boolean IsReceipt) + { + set_Value (COLUMNNAME_IsReceipt, Boolean.valueOf(IsReceipt)); + } + + /** Get Receipt. + @return This is a sales transaction (receipt) + */ + public boolean isReceipt () + { + Object oo = get_Value(COLUMNNAME_IsReceipt); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Micr. + @param Micr + Combination of routing no, account and check no + */ + public void setMicr (String Micr) + { + + if (Micr != null && Micr.length() > 20) + { + log.warning("Length > 20 - truncated"); + Micr = Micr.substring(0, 20); + } + set_Value (COLUMNNAME_Micr, Micr); + } + + /** Get Micr. + @return Combination of routing no, account and check no + */ + public String getMicr () + { + return (String)get_Value(COLUMNNAME_Micr); + } + + /** Set Original Transaction ID. + @param Orig_TrxID + Original Transaction ID + */ + public void setOrig_TrxID (String Orig_TrxID) + { + + if (Orig_TrxID != null && Orig_TrxID.length() > 20) + { + log.warning("Length > 20 - truncated"); + Orig_TrxID = Orig_TrxID.substring(0, 20); + } + set_Value (COLUMNNAME_Orig_TrxID, Orig_TrxID); + } + + /** Get Original Transaction ID. + @return Original Transaction ID + */ + public String getOrig_TrxID () + { + return (String)get_Value(COLUMNNAME_Orig_TrxID); + } + + /** Set Over/Under Payment. + @param OverUnderAmt + Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public void setOverUnderAmt (BigDecimal OverUnderAmt) + { + set_Value (COLUMNNAME_OverUnderAmt, OverUnderAmt); + } + + /** Get Over/Under Payment. + @return Over-Payment (unallocated) or Under-Payment (partial payment) Amount + */ + public BigDecimal getOverUnderAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OverUnderAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set PO Number. + @param PONum + Purchase Order Number + */ + public void setPONum (String PONum) + { + + if (PONum != null && PONum.length() > 60) + { + log.warning("Length > 60 - truncated"); + PONum = PONum.substring(0, 60); + } + set_Value (COLUMNNAME_PONum, PONum); + } + + /** Get PO Number. + @return Purchase Order Number + */ + public String getPONum () + { + return (String)get_Value(COLUMNNAME_PONum); + } + + /** Set Payment amount. + @param PayAmt + Amount being paid + */ + public void setPayAmt (BigDecimal PayAmt) + { + set_Value (COLUMNNAME_PayAmt, PayAmt); + } + + /** Get Payment amount. + @return Amount being paid + */ + public BigDecimal getPayAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PayAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. + @return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Authorization Code. + @param R_AuthCode + Authorization Code returned + */ + public void setR_AuthCode (String R_AuthCode) + { + + if (R_AuthCode != null && R_AuthCode.length() > 20) + { + log.warning("Length > 20 - truncated"); + R_AuthCode = R_AuthCode.substring(0, 20); + } + set_Value (COLUMNNAME_R_AuthCode, R_AuthCode); + } + + /** Get Authorization Code. + @return Authorization Code returned + */ + public String getR_AuthCode () + { + return (String)get_Value(COLUMNNAME_R_AuthCode); + } + + /** Set Info. + @param R_Info + Response info + */ + public void setR_Info (String R_Info) + { + + if (R_Info != null && R_Info.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + R_Info = R_Info.substring(0, 2000); + } + set_Value (COLUMNNAME_R_Info, R_Info); + } + + /** Get Info. + @return Response info + */ + public String getR_Info () + { + return (String)get_Value(COLUMNNAME_R_Info); + } + + /** Set Reference. + @param R_PnRef + Payment reference + */ + public void setR_PnRef (String R_PnRef) + { + + if (R_PnRef != null && R_PnRef.length() > 20) + { + log.warning("Length > 20 - truncated"); + R_PnRef = R_PnRef.substring(0, 20); + } + set_Value (COLUMNNAME_R_PnRef, R_PnRef); + } + + /** Get Reference. + @return Payment reference + */ + public String getR_PnRef () + { + return (String)get_Value(COLUMNNAME_R_PnRef); + } + + /** Set Response Message. + @param R_RespMsg + Response message + */ + public void setR_RespMsg (String R_RespMsg) + { + + if (R_RespMsg != null && R_RespMsg.length() > 60) + { + log.warning("Length > 60 - truncated"); + R_RespMsg = R_RespMsg.substring(0, 60); + } + set_Value (COLUMNNAME_R_RespMsg, R_RespMsg); + } + + /** Get Response Message. + @return Response message + */ + public String getR_RespMsg () + { + return (String)get_Value(COLUMNNAME_R_RespMsg); + } + + /** Set Result. + @param R_Result + Result of transmission + */ + public void setR_Result (String R_Result) + { + + if (R_Result != null && R_Result.length() > 20) + { + log.warning("Length > 20 - truncated"); + R_Result = R_Result.substring(0, 20); + } + set_Value (COLUMNNAME_R_Result, R_Result); + } + + /** Get Result. + @return Result of transmission + */ + public String getR_Result () + { + return (String)get_Value(COLUMNNAME_R_Result); + } + + /** Set Routing No. + @param RoutingNo + Bank Routing Number + */ + public void setRoutingNo (String RoutingNo) + { + + if (RoutingNo != null && RoutingNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + RoutingNo = RoutingNo.substring(0, 20); + } + set_Value (COLUMNNAME_RoutingNo, RoutingNo); + } + + /** Get Routing No. + @return Bank Routing Number + */ + public String getRoutingNo () + { + return (String)get_Value(COLUMNNAME_RoutingNo); + } + + /** Set Swipe. + @param Swipe + Track 1 and 2 of the Credit Card + */ + public void setSwipe (String Swipe) + { + + if (Swipe != null && Swipe.length() > 80) + { + log.warning("Length > 80 - truncated"); + Swipe = Swipe.substring(0, 80); + } + set_Value (COLUMNNAME_Swipe, Swipe); + } + + /** Get Swipe. + @return Track 1 and 2 of the Credit Card + */ + public String getSwipe () + { + return (String)get_Value(COLUMNNAME_Swipe); + } + + /** Set Tax Amount. + @param TaxAmt + Tax Amount for a document + */ + public void setTaxAmt (BigDecimal TaxAmt) + { + set_Value (COLUMNNAME_TaxAmt, TaxAmt); + } + + /** Get Tax Amount. + @return Tax Amount for a document + */ + public BigDecimal getTaxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TaxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** TenderType AD_Reference_ID=214 */ + public static final int TENDERTYPE_AD_Reference_ID=214; + /** Credit Card = C */ + public static final String TENDERTYPE_CreditCard = "C"; + /** Check = K */ + public static final String TENDERTYPE_Check = "K"; + /** Direct Deposit = A */ + public static final String TENDERTYPE_DirectDeposit = "A"; + /** Direct Debit = D */ + public static final String TENDERTYPE_DirectDebit = "D"; + /** Account = T */ + public static final String TENDERTYPE_Account = "T"; + /** Set Tender type. + @param TenderType + Method of Payment + */ + public void setTenderType (String TenderType) + { + + if (TenderType == null || TenderType.equals("C") || TenderType.equals("K") || TenderType.equals("A") || TenderType.equals("D") || TenderType.equals("T")); else throw new IllegalArgumentException ("TenderType Invalid value - " + TenderType + " - Reference_ID=214 - C - K - A - D - T"); + if (TenderType != null && TenderType.length() > 1) + { + log.warning("Length > 1 - truncated"); + TenderType = TenderType.substring(0, 1); + } + set_Value (COLUMNNAME_TenderType, TenderType); + } + + /** Get Tender type. + @return Method of Payment + */ + public String getTenderType () + { + return (String)get_Value(COLUMNNAME_TenderType); + } + + /** TrxType AD_Reference_ID=215 */ + public static final int TRXTYPE_AD_Reference_ID=215; + /** Sales = S */ + public static final String TRXTYPE_Sales = "S"; + /** Delayed Capture = D */ + public static final String TRXTYPE_DelayedCapture = "D"; + /** Credit (Payment) = C */ + public static final String TRXTYPE_CreditPayment = "C"; + /** Voice Authorization = F */ + public static final String TRXTYPE_VoiceAuthorization = "F"; + /** Authorization = A */ + public static final String TRXTYPE_Authorization = "A"; + /** Void = V */ + public static final String TRXTYPE_Void = "V"; + /** Set Transaction Type. + @param TrxType + Type of credit card transaction + */ + public void setTrxType (String TrxType) + { + + if (TrxType == null || TrxType.equals("S") || TrxType.equals("D") || TrxType.equals("C") || TrxType.equals("F") || TrxType.equals("A") || TrxType.equals("V")); else throw new IllegalArgumentException ("TrxType Invalid value - " + TrxType + " - Reference_ID=215 - S - D - C - F - A - V"); + if (TrxType != null && TrxType.length() > 1) + { + log.warning("Length > 1 - truncated"); + TrxType = TrxType.substring(0, 1); + } + set_Value (COLUMNNAME_TrxType, TrxType); + } + + /** Get Transaction Type. + @return Type of credit card transaction + */ + public String getTrxType () + { + return (String)get_Value(COLUMNNAME_TrxType); + } + + /** Set Voice authorization code. + @param VoiceAuthCode + Voice Authorization Code from credit card company + */ + public void setVoiceAuthCode (String VoiceAuthCode) + { + + if (VoiceAuthCode != null && VoiceAuthCode.length() > 20) + { + log.warning("Length > 20 - truncated"); + VoiceAuthCode = VoiceAuthCode.substring(0, 20); + } + set_Value (COLUMNNAME_VoiceAuthCode, VoiceAuthCode); + } + + /** Get Voice authorization code. + @return Voice Authorization Code from credit card company + */ + public String getVoiceAuthCode () + { + return (String)get_Value(COLUMNNAME_VoiceAuthCode); + } + + /** Set Write-off Amount. + @param WriteOffAmt + Amount to write-off + */ + public void setWriteOffAmt (BigDecimal WriteOffAmt) + { + set_Value (COLUMNNAME_WriteOffAmt, WriteOffAmt); + } + + /** Get Write-off Amount. + @return Amount to write-off + */ + public BigDecimal getWriteOffAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_WriteOffAmt); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_BOM.java b/base/src/org/compiere/model/X_M_BOM.java new file mode 100644 index 0000000000..369e73853a --- /dev/null +++ b/base/src/org/compiere/model/X_M_BOM.java @@ -0,0 +1,357 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.sql.ResultSet; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.KeyNamePair; + +/** Generated Model for M_BOM + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_M_BOM extends PO implements I_M_BOM, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_BOM (Properties ctx, int M_BOM_ID, String trxName) + { + super (ctx, M_BOM_ID, trxName); + /** if (M_BOM_ID == 0) + { + setBOMType (null); +// A + setBOMUse (null); +// A + setM_BOM_ID (0); + setM_Product_ID (0); + setName (null); + } */ + } + + /** Load Constructor */ + public X_M_BOM (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_BOM[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** BOMType AD_Reference_ID=347 */ + public static final int BOMTYPE_AD_Reference_ID=347; + /** Current Active = A */ + public static final String BOMTYPE_CurrentActive = "A"; + /** Make-To-Order = O */ + public static final String BOMTYPE_Make_To_Order = "O"; + /** Previous = P */ + public static final String BOMTYPE_Previous = "P"; + /** Previous, Spare = S */ + public static final String BOMTYPE_PreviousSpare = "S"; + /** Future = F */ + public static final String BOMTYPE_Future = "F"; + /** Maintenance = M */ + public static final String BOMTYPE_Maintenance = "M"; + /** Repair = R */ + public static final String BOMTYPE_Repair = "R"; + /** Product Configure = C */ + public static final String BOMTYPE_ProductConfigure = "C"; + /** Set BOM Type. + @param BOMType + Type of BOM + */ + public void setBOMType (String BOMType) + { + if (BOMType == null) throw new IllegalArgumentException ("BOMType is mandatory"); + if (BOMType.equals("A") || BOMType.equals("O") || BOMType.equals("P") || BOMType.equals("S") || BOMType.equals("F") || BOMType.equals("M") || BOMType.equals("R") || BOMType.equals("C")); else throw new IllegalArgumentException ("BOMType Invalid value - " + BOMType + " - Reference_ID=347 - A - O - P - S - F - M - R - C"); + if (BOMType.length() > 1) + { + log.warning("Length > 1 - truncated"); + BOMType = BOMType.substring(0, 1); + } + set_Value (COLUMNNAME_BOMType, BOMType); + } + + /** Get BOM Type. + @return Type of BOM + */ + public String getBOMType () + { + return (String)get_Value(COLUMNNAME_BOMType); + } + + /** BOMUse AD_Reference_ID=348 */ + public static final int BOMUSE_AD_Reference_ID=348; + /** Master = A */ + public static final String BOMUSE_Master = "A"; + /** Engineering = E */ + public static final String BOMUSE_Engineering = "E"; + /** Manufacturing = M */ + public static final String BOMUSE_Manufacturing = "M"; + /** Planning = P */ + public static final String BOMUSE_Planning = "P"; + /** Quality = Q */ + public static final String BOMUSE_Quality = "Q"; + /** Set BOM Use. + @param BOMUse + The use of the Bill of Material + */ + public void setBOMUse (String BOMUse) + { + if (BOMUse == null) throw new IllegalArgumentException ("BOMUse is mandatory"); + if (BOMUse.equals("A") || BOMUse.equals("E") || BOMUse.equals("M") || BOMUse.equals("P") || BOMUse.equals("Q")); else throw new IllegalArgumentException ("BOMUse Invalid value - " + BOMUse + " - Reference_ID=348 - A - E - M - P - Q"); + if (BOMUse.length() > 1) + { + log.warning("Length > 1 - truncated"); + BOMUse = BOMUse.substring(0, 1); + } + set_Value (COLUMNNAME_BOMUse, BOMUse); + } + + /** Get BOM Use. + @return The use of the Bill of Material + */ + public String getBOMUse () + { + return (String)get_Value(COLUMNNAME_BOMUse); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 2000); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set BOM. + @param M_BOM_ID + Bill of Material + */ + public void setM_BOM_ID (int M_BOM_ID) + { + if (M_BOM_ID < 1) + throw new IllegalArgumentException ("M_BOM_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_BOM_ID, Integer.valueOf(M_BOM_ID)); + } + + /** Get BOM. + @return Bill of Material + */ + public int getM_BOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_BOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_ChangeNotice getM_ChangeNotice() throws Exception + { + Class clazz = MTable.getClass(I_M_ChangeNotice.Table_Name); + I_M_ChangeNotice result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_ChangeNotice)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_ChangeNotice_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Change Notice. + @param M_ChangeNotice_ID + Bill of Materials (Engineering) Change Notice (Version) + */ + public void setM_ChangeNotice_ID (int M_ChangeNotice_ID) + { + if (M_ChangeNotice_ID < 1) + set_Value (COLUMNNAME_M_ChangeNotice_ID, null); + else + set_Value (COLUMNNAME_M_ChangeNotice_ID, Integer.valueOf(M_ChangeNotice_ID)); + } + + /** Get Change Notice. + @return Bill of Materials (Engineering) Change Notice (Version) + */ + public int getM_ChangeNotice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ChangeNotice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Product getM_Product() throws Exception + { + Class clazz = MTable.getClass(I_M_Product.Table_Name); + I_M_Product result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + 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(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 60); + } + 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 Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. + @return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_DiscountSchemaLine.java b/base/src/org/compiere/model/X_M_DiscountSchemaLine.java new file mode 100644 index 0000000000..9d74606fb1 --- /dev/null +++ b/base/src/org/compiere/model/X_M_DiscountSchemaLine.java @@ -0,0 +1,984 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for M_DiscountSchemaLine + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_M_DiscountSchemaLine extends PO implements I_M_DiscountSchemaLine, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_DiscountSchemaLine (Properties ctx, int M_DiscountSchemaLine_ID, String trxName) + { + super (ctx, M_DiscountSchemaLine_ID, trxName); + /** if (M_DiscountSchemaLine_ID == 0) + { + setC_ConversionType_ID (0); + setConversionDate (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setLimit_AddAmt (Env.ZERO); + setLimit_Base (null); +// X + setLimit_Discount (Env.ZERO); + setLimit_MaxAmt (Env.ZERO); + setLimit_MinAmt (Env.ZERO); + setLimit_Rounding (null); +// C + setList_AddAmt (Env.ZERO); + setList_Base (null); +// L + setList_Discount (Env.ZERO); + setList_MaxAmt (Env.ZERO); + setList_MinAmt (Env.ZERO); + setList_Rounding (null); +// C + setM_DiscountSchemaLine_ID (0); + setM_DiscountSchema_ID (0); + setSeqNo (0); +// @SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM M_DiscountSchemaLine WHERE M_DiscountSchema_ID=@M_DiscountSchema_ID@ + setStd_AddAmt (Env.ZERO); + setStd_Base (null); +// S + setStd_Discount (Env.ZERO); + setStd_MaxAmt (Env.ZERO); + setStd_MinAmt (Env.ZERO); + setStd_Rounding (null); +// C + } */ + } + + /** Load Constructor */ + public X_M_DiscountSchemaLine (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_DiscountSchemaLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_BPartner getC_BPartner() throws Exception + { + Class clazz = MTable.getClass(I_C_BPartner.Table_Name); + I_C_BPartner result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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 I_C_ConversionType getC_ConversionType() throws Exception + { + Class clazz = MTable.getClass(I_C_ConversionType.Table_Name); + I_C_ConversionType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_ConversionType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ConversionType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Currency Type. + @param C_ConversionType_ID + Currency Conversion Rate Type + */ + public void setC_ConversionType_ID (int C_ConversionType_ID) + { + if (C_ConversionType_ID < 1) + throw new IllegalArgumentException ("C_ConversionType_ID is mandatory."); + set_Value (COLUMNNAME_C_ConversionType_ID, Integer.valueOf(C_ConversionType_ID)); + } + + /** Get Currency Type. + @return Currency Conversion Rate Type + */ + public int getC_ConversionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ConversionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Classification. + @param Classification + Classification for grouping + */ + public void setClassification (String Classification) + { + + if (Classification != null && Classification.length() > 12) + { + log.warning("Length > 12 - truncated"); + Classification = Classification.substring(0, 12); + } + set_Value (COLUMNNAME_Classification, Classification); + } + + /** Get Classification. + @return Classification for grouping + */ + public String getClassification () + { + return (String)get_Value(COLUMNNAME_Classification); + } + + /** Set Conversion Date. + @param ConversionDate + Date for selecting conversion rate + */ + public void setConversionDate (Timestamp ConversionDate) + { + if (ConversionDate == null) + throw new IllegalArgumentException ("ConversionDate is mandatory."); + set_Value (COLUMNNAME_ConversionDate, ConversionDate); + } + + /** Get Conversion Date. + @return Date for selecting conversion rate + */ + public Timestamp getConversionDate () + { + return (Timestamp)get_Value(COLUMNNAME_ConversionDate); + } + + /** Set Group1. + @param Group1 Group1 */ + public void setGroup1 (String Group1) + { + + if (Group1 != null && Group1.length() > 255) + { + log.warning("Length > 255 - truncated"); + Group1 = Group1.substring(0, 255); + } + set_Value (COLUMNNAME_Group1, Group1); + } + + /** Get Group1. + @return Group1 */ + public String getGroup1 () + { + return (String)get_Value(COLUMNNAME_Group1); + } + + /** Set Group2. + @param Group2 Group2 */ + public void setGroup2 (String Group2) + { + + if (Group2 != null && Group2.length() > 255) + { + log.warning("Length > 255 - truncated"); + Group2 = Group2.substring(0, 255); + } + set_Value (COLUMNNAME_Group2, Group2); + } + + /** Get Group2. + @return Group2 */ + public String getGroup2 () + { + return (String)get_Value(COLUMNNAME_Group2); + } + + /** Set Limit price Surcharge Amount. + @param Limit_AddAmt + Amount added to the converted/copied price before multiplying + */ + public void setLimit_AddAmt (BigDecimal Limit_AddAmt) + { + if (Limit_AddAmt == null) + throw new IllegalArgumentException ("Limit_AddAmt is mandatory."); + set_Value (COLUMNNAME_Limit_AddAmt, Limit_AddAmt); + } + + /** Get Limit price Surcharge Amount. + @return Amount added to the converted/copied price before multiplying + */ + public BigDecimal getLimit_AddAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Limit_AddAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Limit_Base AD_Reference_ID=194 */ + public static final int LIMIT_BASE_AD_Reference_ID=194; + /** List Price = L */ + public static final String LIMIT_BASE_ListPrice = "L"; + /** Standard Price = S */ + public static final String LIMIT_BASE_StandardPrice = "S"; + /** Limit (PO) Price = X */ + public static final String LIMIT_BASE_LimitPOPrice = "X"; + /** Fixed Price = F */ + public static final String LIMIT_BASE_FixedPrice = "F"; + /** Set Limit price Base. + @param Limit_Base + Base price for calculation of the new price + */ + public void setLimit_Base (String Limit_Base) + { + if (Limit_Base == null) throw new IllegalArgumentException ("Limit_Base is mandatory"); + if (Limit_Base.equals("L") || Limit_Base.equals("S") || Limit_Base.equals("X") || Limit_Base.equals("F")); else throw new IllegalArgumentException ("Limit_Base Invalid value - " + Limit_Base + " - Reference_ID=194 - L - S - X - F"); + if (Limit_Base.length() > 1) + { + log.warning("Length > 1 - truncated"); + Limit_Base = Limit_Base.substring(0, 1); + } + set_Value (COLUMNNAME_Limit_Base, Limit_Base); + } + + /** Get Limit price Base. + @return Base price for calculation of the new price + */ + public String getLimit_Base () + { + return (String)get_Value(COLUMNNAME_Limit_Base); + } + + /** Set Limit price Discount %. + @param Limit_Discount + Discount in percent to be subtracted from base, if negative it will be added to base price + */ + public void setLimit_Discount (BigDecimal Limit_Discount) + { + if (Limit_Discount == null) + throw new IllegalArgumentException ("Limit_Discount is mandatory."); + set_Value (COLUMNNAME_Limit_Discount, Limit_Discount); + } + + /** Get Limit price Discount %. + @return Discount in percent to be subtracted from base, if negative it will be added to base price + */ + public BigDecimal getLimit_Discount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Limit_Discount); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Fixed Limit Price. + @param Limit_Fixed + Fixed Limit Price (not calculated) + */ + public void setLimit_Fixed (BigDecimal Limit_Fixed) + { + set_Value (COLUMNNAME_Limit_Fixed, Limit_Fixed); + } + + /** Get Fixed Limit Price. + @return Fixed Limit Price (not calculated) + */ + public BigDecimal getLimit_Fixed () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Limit_Fixed); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Limit price max Margin. + @param Limit_MaxAmt + Maximum difference to original limit price; ignored if zero + */ + public void setLimit_MaxAmt (BigDecimal Limit_MaxAmt) + { + if (Limit_MaxAmt == null) + throw new IllegalArgumentException ("Limit_MaxAmt is mandatory."); + set_Value (COLUMNNAME_Limit_MaxAmt, Limit_MaxAmt); + } + + /** Get Limit price max Margin. + @return Maximum difference to original limit price; ignored if zero + */ + public BigDecimal getLimit_MaxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Limit_MaxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Limit price min Margin. + @param Limit_MinAmt + Minimum difference to original limit price; ignored if zero + */ + public void setLimit_MinAmt (BigDecimal Limit_MinAmt) + { + if (Limit_MinAmt == null) + throw new IllegalArgumentException ("Limit_MinAmt is mandatory."); + set_Value (COLUMNNAME_Limit_MinAmt, Limit_MinAmt); + } + + /** Get Limit price min Margin. + @return Minimum difference to original limit price; ignored if zero + */ + public BigDecimal getLimit_MinAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Limit_MinAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Limit_Rounding AD_Reference_ID=155 */ + public static final int LIMIT_ROUNDING_AD_Reference_ID=155; + /** Whole Number .00 = 0 */ + public static final String LIMIT_ROUNDING_WholeNumber00 = "0"; + /** No Rounding = N */ + public static final String LIMIT_ROUNDING_NoRounding = "N"; + /** Quarter .25 .50 .75 = Q */ + public static final String LIMIT_ROUNDING_Quarter255075 = "Q"; + /** Dime .10, .20, .30, ... = D */ + public static final String LIMIT_ROUNDING_Dime102030 = "D"; + /** Nickel .05, .10, .15, ... = 5 */ + public static final String LIMIT_ROUNDING_Nickel051015 = "5"; + /** Ten 10.00, 20.00, .. = T */ + public static final String LIMIT_ROUNDING_Ten10002000 = "T"; + /** Currency Precision = C */ + public static final String LIMIT_ROUNDING_CurrencyPrecision = "C"; + /** Ending in 9/5 = 9 */ + public static final String LIMIT_ROUNDING_EndingIn95 = "9"; + /** Set Limit price Rounding. + @param Limit_Rounding + Rounding of the final result + */ + public void setLimit_Rounding (String Limit_Rounding) + { + if (Limit_Rounding == null) throw new IllegalArgumentException ("Limit_Rounding is mandatory"); + if (Limit_Rounding.equals("0") || Limit_Rounding.equals("N") || Limit_Rounding.equals("Q") || Limit_Rounding.equals("D") || Limit_Rounding.equals("5") || Limit_Rounding.equals("T") || Limit_Rounding.equals("C") || Limit_Rounding.equals("9")); else throw new IllegalArgumentException ("Limit_Rounding Invalid value - " + Limit_Rounding + " - Reference_ID=155 - 0 - N - Q - D - 5 - T - C - 9"); + if (Limit_Rounding.length() > 1) + { + log.warning("Length > 1 - truncated"); + Limit_Rounding = Limit_Rounding.substring(0, 1); + } + set_Value (COLUMNNAME_Limit_Rounding, Limit_Rounding); + } + + /** Get Limit price Rounding. + @return Rounding of the final result + */ + public String getLimit_Rounding () + { + return (String)get_Value(COLUMNNAME_Limit_Rounding); + } + + /** Set List price Surcharge Amount. + @param List_AddAmt + List Price Surcharge Amount + */ + public void setList_AddAmt (BigDecimal List_AddAmt) + { + if (List_AddAmt == null) + throw new IllegalArgumentException ("List_AddAmt is mandatory."); + set_Value (COLUMNNAME_List_AddAmt, List_AddAmt); + } + + /** Get List price Surcharge Amount. + @return List Price Surcharge Amount + */ + public BigDecimal getList_AddAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_List_AddAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** List_Base AD_Reference_ID=194 */ + public static final int LIST_BASE_AD_Reference_ID=194; + /** List Price = L */ + public static final String LIST_BASE_ListPrice = "L"; + /** Standard Price = S */ + public static final String LIST_BASE_StandardPrice = "S"; + /** Limit (PO) Price = X */ + public static final String LIST_BASE_LimitPOPrice = "X"; + /** Fixed Price = F */ + public static final String LIST_BASE_FixedPrice = "F"; + /** Set List price Base. + @param List_Base + Price used as the basis for price list calculations + */ + public void setList_Base (String List_Base) + { + if (List_Base == null) throw new IllegalArgumentException ("List_Base is mandatory"); + if (List_Base.equals("L") || List_Base.equals("S") || List_Base.equals("X") || List_Base.equals("F")); else throw new IllegalArgumentException ("List_Base Invalid value - " + List_Base + " - Reference_ID=194 - L - S - X - F"); + if (List_Base.length() > 1) + { + log.warning("Length > 1 - truncated"); + List_Base = List_Base.substring(0, 1); + } + set_Value (COLUMNNAME_List_Base, List_Base); + } + + /** Get List price Base. + @return Price used as the basis for price list calculations + */ + public String getList_Base () + { + return (String)get_Value(COLUMNNAME_List_Base); + } + + /** Set List price Discount %. + @param List_Discount + Discount from list price as a percentage + */ + public void setList_Discount (BigDecimal List_Discount) + { + if (List_Discount == null) + throw new IllegalArgumentException ("List_Discount is mandatory."); + set_Value (COLUMNNAME_List_Discount, List_Discount); + } + + /** Get List price Discount %. + @return Discount from list price as a percentage + */ + public BigDecimal getList_Discount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_List_Discount); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Fixed List Price. + @param List_Fixed + Fixes List Price (not calculated) + */ + public void setList_Fixed (BigDecimal List_Fixed) + { + set_Value (COLUMNNAME_List_Fixed, List_Fixed); + } + + /** Get Fixed List Price. + @return Fixes List Price (not calculated) + */ + public BigDecimal getList_Fixed () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_List_Fixed); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set List price max Margin. + @param List_MaxAmt + Maximum margin for a product + */ + public void setList_MaxAmt (BigDecimal List_MaxAmt) + { + if (List_MaxAmt == null) + throw new IllegalArgumentException ("List_MaxAmt is mandatory."); + set_Value (COLUMNNAME_List_MaxAmt, List_MaxAmt); + } + + /** Get List price max Margin. + @return Maximum margin for a product + */ + public BigDecimal getList_MaxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_List_MaxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set List price min Margin. + @param List_MinAmt + Minimum margin for a product + */ + public void setList_MinAmt (BigDecimal List_MinAmt) + { + if (List_MinAmt == null) + throw new IllegalArgumentException ("List_MinAmt is mandatory."); + set_Value (COLUMNNAME_List_MinAmt, List_MinAmt); + } + + /** Get List price min Margin. + @return Minimum margin for a product + */ + public BigDecimal getList_MinAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_List_MinAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** List_Rounding AD_Reference_ID=155 */ + public static final int LIST_ROUNDING_AD_Reference_ID=155; + /** Whole Number .00 = 0 */ + public static final String LIST_ROUNDING_WholeNumber00 = "0"; + /** No Rounding = N */ + public static final String LIST_ROUNDING_NoRounding = "N"; + /** Quarter .25 .50 .75 = Q */ + public static final String LIST_ROUNDING_Quarter255075 = "Q"; + /** Dime .10, .20, .30, ... = D */ + public static final String LIST_ROUNDING_Dime102030 = "D"; + /** Nickel .05, .10, .15, ... = 5 */ + public static final String LIST_ROUNDING_Nickel051015 = "5"; + /** Ten 10.00, 20.00, .. = T */ + public static final String LIST_ROUNDING_Ten10002000 = "T"; + /** Currency Precision = C */ + public static final String LIST_ROUNDING_CurrencyPrecision = "C"; + /** Ending in 9/5 = 9 */ + public static final String LIST_ROUNDING_EndingIn95 = "9"; + /** Set List price Rounding. + @param List_Rounding + Rounding rule for final list price + */ + public void setList_Rounding (String List_Rounding) + { + if (List_Rounding == null) throw new IllegalArgumentException ("List_Rounding is mandatory"); + if (List_Rounding.equals("0") || List_Rounding.equals("N") || List_Rounding.equals("Q") || List_Rounding.equals("D") || List_Rounding.equals("5") || List_Rounding.equals("T") || List_Rounding.equals("C") || List_Rounding.equals("9")); else throw new IllegalArgumentException ("List_Rounding Invalid value - " + List_Rounding + " - Reference_ID=155 - 0 - N - Q - D - 5 - T - C - 9"); + if (List_Rounding.length() > 1) + { + log.warning("Length > 1 - truncated"); + List_Rounding = List_Rounding.substring(0, 1); + } + set_Value (COLUMNNAME_List_Rounding, List_Rounding); + } + + /** Get List price Rounding. + @return Rounding rule for final list price + */ + public String getList_Rounding () + { + return (String)get_Value(COLUMNNAME_List_Rounding); + } + + /** Set Discount Pricelist. + @param M_DiscountSchemaLine_ID + Line of the pricelist trade discount schema + */ + public void setM_DiscountSchemaLine_ID (int M_DiscountSchemaLine_ID) + { + if (M_DiscountSchemaLine_ID < 1) + throw new IllegalArgumentException ("M_DiscountSchemaLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DiscountSchemaLine_ID, Integer.valueOf(M_DiscountSchemaLine_ID)); + } + + /** Get Discount Pricelist. + @return Line of the pricelist trade discount schema + */ + public int getM_DiscountSchemaLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DiscountSchemaLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_DiscountSchema getM_DiscountSchema() throws Exception + { + Class clazz = MTable.getClass(I_M_DiscountSchema.Table_Name); + I_M_DiscountSchema result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_DiscountSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_DiscountSchema_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Discount Schema. + @param M_DiscountSchema_ID + Schema to calculate the trade discount percentage + */ + public void setM_DiscountSchema_ID (int M_DiscountSchema_ID) + { + if (M_DiscountSchema_ID < 1) + throw new IllegalArgumentException ("M_DiscountSchema_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_DiscountSchema_ID, Integer.valueOf(M_DiscountSchema_ID)); + } + + /** Get Discount Schema. + @return Schema to calculate the trade discount percentage + */ + public int getM_DiscountSchema_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_DiscountSchema_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Product_Category getM_Product_Category() throws Exception + { + Class clazz = MTable.getClass(I_M_Product_Category.Table_Name); + I_M_Product_Category result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Product_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_Category_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Product Category. + @param M_Product_Category_ID + Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID) + { + if (M_Product_Category_ID < 1) + set_Value (COLUMNNAME_M_Product_Category_ID, null); + else + set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + } + + /** Get Product Category. + @return Category of a Product + */ + public int getM_Product_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Product getM_Product() throws Exception + { + Class clazz = MTable.getClass(I_M_Product.Table_Name); + I_M_Product result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Sequence. + @param SeqNo + Method of ordering records; lowest number comes first + */ + public void setSeqNo (int SeqNo) + { + set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo)); + } + + /** Get Sequence. + @return Method of ordering records; lowest number comes first + */ + public int getSeqNo () + { + Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo); + 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(getSeqNo())); + } + + /** Set Standard price Surcharge Amount. + @param Std_AddAmt + Amount added to a price as a surcharge + */ + public void setStd_AddAmt (BigDecimal Std_AddAmt) + { + if (Std_AddAmt == null) + throw new IllegalArgumentException ("Std_AddAmt is mandatory."); + set_Value (COLUMNNAME_Std_AddAmt, Std_AddAmt); + } + + /** Get Standard price Surcharge Amount. + @return Amount added to a price as a surcharge + */ + public BigDecimal getStd_AddAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Std_AddAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Std_Base AD_Reference_ID=194 */ + public static final int STD_BASE_AD_Reference_ID=194; + /** List Price = L */ + public static final String STD_BASE_ListPrice = "L"; + /** Standard Price = S */ + public static final String STD_BASE_StandardPrice = "S"; + /** Limit (PO) Price = X */ + public static final String STD_BASE_LimitPOPrice = "X"; + /** Fixed Price = F */ + public static final String STD_BASE_FixedPrice = "F"; + /** Set Standard price Base. + @param Std_Base + Base price for calculating new standard price + */ + public void setStd_Base (String Std_Base) + { + if (Std_Base == null) throw new IllegalArgumentException ("Std_Base is mandatory"); + if (Std_Base.equals("L") || Std_Base.equals("S") || Std_Base.equals("X") || Std_Base.equals("F")); else throw new IllegalArgumentException ("Std_Base Invalid value - " + Std_Base + " - Reference_ID=194 - L - S - X - F"); + if (Std_Base.length() > 1) + { + log.warning("Length > 1 - truncated"); + Std_Base = Std_Base.substring(0, 1); + } + set_Value (COLUMNNAME_Std_Base, Std_Base); + } + + /** Get Standard price Base. + @return Base price for calculating new standard price + */ + public String getStd_Base () + { + return (String)get_Value(COLUMNNAME_Std_Base); + } + + /** Set Standard price Discount %. + @param Std_Discount + Discount percentage to subtract from base price + */ + public void setStd_Discount (BigDecimal Std_Discount) + { + if (Std_Discount == null) + throw new IllegalArgumentException ("Std_Discount is mandatory."); + set_Value (COLUMNNAME_Std_Discount, Std_Discount); + } + + /** Get Standard price Discount %. + @return Discount percentage to subtract from base price + */ + public BigDecimal getStd_Discount () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Std_Discount); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Fixed Standard Price. + @param Std_Fixed + Fixed Standard Price (not calculated) + */ + public void setStd_Fixed (BigDecimal Std_Fixed) + { + set_Value (COLUMNNAME_Std_Fixed, Std_Fixed); + } + + /** Get Fixed Standard Price. + @return Fixed Standard Price (not calculated) + */ + public BigDecimal getStd_Fixed () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Std_Fixed); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Standard max Margin. + @param Std_MaxAmt + Maximum margin allowed for a product + */ + public void setStd_MaxAmt (BigDecimal Std_MaxAmt) + { + if (Std_MaxAmt == null) + throw new IllegalArgumentException ("Std_MaxAmt is mandatory."); + set_Value (COLUMNNAME_Std_MaxAmt, Std_MaxAmt); + } + + /** Get Standard max Margin. + @return Maximum margin allowed for a product + */ + public BigDecimal getStd_MaxAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Std_MaxAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Standard price min Margin. + @param Std_MinAmt + Minimum margin allowed for a product + */ + public void setStd_MinAmt (BigDecimal Std_MinAmt) + { + if (Std_MinAmt == null) + throw new IllegalArgumentException ("Std_MinAmt is mandatory."); + set_Value (COLUMNNAME_Std_MinAmt, Std_MinAmt); + } + + /** Get Standard price min Margin. + @return Minimum margin allowed for a product + */ + public BigDecimal getStd_MinAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Std_MinAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Std_Rounding AD_Reference_ID=155 */ + public static final int STD_ROUNDING_AD_Reference_ID=155; + /** Whole Number .00 = 0 */ + public static final String STD_ROUNDING_WholeNumber00 = "0"; + /** No Rounding = N */ + public static final String STD_ROUNDING_NoRounding = "N"; + /** Quarter .25 .50 .75 = Q */ + public static final String STD_ROUNDING_Quarter255075 = "Q"; + /** Dime .10, .20, .30, ... = D */ + public static final String STD_ROUNDING_Dime102030 = "D"; + /** Nickel .05, .10, .15, ... = 5 */ + public static final String STD_ROUNDING_Nickel051015 = "5"; + /** Ten 10.00, 20.00, .. = T */ + public static final String STD_ROUNDING_Ten10002000 = "T"; + /** Currency Precision = C */ + public static final String STD_ROUNDING_CurrencyPrecision = "C"; + /** Ending in 9/5 = 9 */ + public static final String STD_ROUNDING_EndingIn95 = "9"; + /** Set Standard price Rounding. + @param Std_Rounding + Rounding rule for calculated price + */ + public void setStd_Rounding (String Std_Rounding) + { + if (Std_Rounding == null) throw new IllegalArgumentException ("Std_Rounding is mandatory"); + if (Std_Rounding.equals("0") || Std_Rounding.equals("N") || Std_Rounding.equals("Q") || Std_Rounding.equals("D") || Std_Rounding.equals("5") || Std_Rounding.equals("T") || Std_Rounding.equals("C") || Std_Rounding.equals("9")); else throw new IllegalArgumentException ("Std_Rounding Invalid value - " + Std_Rounding + " - Reference_ID=155 - 0 - N - Q - D - 5 - T - C - 9"); + if (Std_Rounding.length() > 1) + { + log.warning("Length > 1 - truncated"); + Std_Rounding = Std_Rounding.substring(0, 1); + } + set_Value (COLUMNNAME_Std_Rounding, Std_Rounding); + } + + /** Get Standard price Rounding. + @return Rounding rule for calculated price + */ + public String getStd_Rounding () + { + return (String)get_Value(COLUMNNAME_Std_Rounding); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Forecast.java b/base/src/org/compiere/model/X_M_Forecast.java new file mode 100644 index 0000000000..6f4a54d7d1 --- /dev/null +++ b/base/src/org/compiere/model/X_M_Forecast.java @@ -0,0 +1,300 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.sql.ResultSet; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.KeyNamePair; + +/** Generated Model for M_Forecast + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_M_Forecast extends PO implements I_M_Forecast, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Forecast (Properties ctx, int M_Forecast_ID, String trxName) + { + super (ctx, M_Forecast_ID, trxName); + /** if (M_Forecast_ID == 0) + { + setC_Calendar_ID (0); + setC_Year_ID (0); + setIsDefault (false); + setM_Forecast_ID (0); + setName (null); + } */ + } + + /** Load Constructor */ + public X_M_Forecast (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_Forecast[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_Calendar getC_Calendar() throws Exception + { + Class clazz = MTable.getClass(I_C_Calendar.Table_Name); + I_C_Calendar result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Calendar)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Calendar_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Calendar. + @param C_Calendar_ID + Accounting Calendar Name + */ + public void setC_Calendar_ID (int C_Calendar_ID) + { + if (C_Calendar_ID < 1) + throw new IllegalArgumentException ("C_Calendar_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Calendar_ID, Integer.valueOf(C_Calendar_ID)); + } + + /** Get Calendar. + @return Accounting Calendar Name + */ + public int getC_Calendar_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Calendar_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Year getC_Year() throws Exception + { + Class clazz = MTable.getClass(I_C_Year.Table_Name); + I_C_Year result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Year)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Year_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Year. + @param C_Year_ID + Calendar Year + */ + public void setC_Year_ID (int C_Year_ID) + { + if (C_Year_ID < 1) + throw new IllegalArgumentException ("C_Year_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Year_ID, Integer.valueOf(C_Year_ID)); + } + + /** Get Year. + @return Calendar Year + */ + public int getC_Year_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Year_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 2000); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Default. + @param IsDefault + Default value + */ + public void setIsDefault (boolean IsDefault) + { + set_Value (COLUMNNAME_IsDefault, Boolean.valueOf(IsDefault)); + } + + /** Get Default. + @return Default value + */ + public boolean isDefault () + { + Object oo = get_Value(COLUMNNAME_IsDefault); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Forecast. + @param M_Forecast_ID + Material Forecast + */ + public void setM_Forecast_ID (int M_Forecast_ID) + { + if (M_Forecast_ID < 1) + throw new IllegalArgumentException ("M_Forecast_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Forecast_ID, Integer.valueOf(M_Forecast_ID)); + } + + /** Get Forecast. + @return Material Forecast + */ + public int getM_Forecast_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Forecast_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 60); + } + 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 Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. + @return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_ForecastLine.java b/base/src/org/compiere/model/X_M_ForecastLine.java new file mode 100644 index 0000000000..47df7a1b4a --- /dev/null +++ b/base/src/org/compiere/model/X_M_ForecastLine.java @@ -0,0 +1,329 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for M_ForecastLine + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_M_ForecastLine extends PO implements I_M_ForecastLine, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_ForecastLine (Properties ctx, int M_ForecastLine_ID, String trxName) + { + super (ctx, M_ForecastLine_ID, trxName); + /** if (M_ForecastLine_ID == 0) + { + setC_Period_ID (0); + setDatePromised (new Timestamp(System.currentTimeMillis())); + setM_ForecastLine_ID (0); + setM_Forecast_ID (0); + setM_Product_ID (0); + setM_Warehouse_ID (0); + setQty (Env.ZERO); + setQtyCalculated (Env.ZERO); + } */ + } + + /** Load Constructor */ + public X_M_ForecastLine (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_ForecastLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_Period getC_Period() throws Exception + { + Class clazz = MTable.getClass(I_C_Period.Table_Name); + I_C_Period result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Period)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Period_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Period. + @param C_Period_ID + Period of the Calendar + */ + public void setC_Period_ID (int C_Period_ID) + { + if (C_Period_ID < 1) + throw new IllegalArgumentException ("C_Period_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); + } + + /** Get Period. + @return Period of the Calendar + */ + public int getC_Period_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Period_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(getC_Period_ID())); + } + + /** Set Date Promised. + @param DatePromised + Date Order was promised + */ + public void setDatePromised (Timestamp DatePromised) + { + if (DatePromised == null) + throw new IllegalArgumentException ("DatePromised is mandatory."); + set_Value (COLUMNNAME_DatePromised, DatePromised); + } + + /** Get Date Promised. + @return Date Order was promised + */ + public Timestamp getDatePromised () + { + return (Timestamp)get_Value(COLUMNNAME_DatePromised); + } + + /** Set Forecast Line. + @param M_ForecastLine_ID + Forecast Line + */ + public void setM_ForecastLine_ID (int M_ForecastLine_ID) + { + if (M_ForecastLine_ID < 1) + throw new IllegalArgumentException ("M_ForecastLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_ForecastLine_ID, Integer.valueOf(M_ForecastLine_ID)); + } + + /** Get Forecast Line. + @return Forecast Line + */ + public int getM_ForecastLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ForecastLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Forecast getM_Forecast() throws Exception + { + Class clazz = MTable.getClass(I_M_Forecast.Table_Name); + I_M_Forecast result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Forecast)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Forecast_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Forecast. + @param M_Forecast_ID + Material Forecast + */ + public void setM_Forecast_ID (int M_Forecast_ID) + { + if (M_Forecast_ID < 1) + throw new IllegalArgumentException ("M_Forecast_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Forecast_ID, Integer.valueOf(M_Forecast_ID)); + } + + /** Get Forecast. + @return Material Forecast + */ + public int getM_Forecast_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Forecast_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Product getM_Product() throws Exception + { + Class clazz = MTable.getClass(I_M_Product.Table_Name); + I_M_Product result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + 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(); + } + + public I_M_Warehouse getM_Warehouse() throws Exception + { + Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); + I_M_Warehouse result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Quantity. + @param Qty + Quantity + */ + public void setQty (BigDecimal Qty) + { + if (Qty == null) + throw new IllegalArgumentException ("Qty is mandatory."); + set_Value (COLUMNNAME_Qty, Qty); + } + + /** Get Quantity. + @return Quantity + */ + public BigDecimal getQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Calculated Quantity. + @param QtyCalculated + Calculated Quantity + */ + public void setQtyCalculated (BigDecimal QtyCalculated) + { + if (QtyCalculated == null) + throw new IllegalArgumentException ("QtyCalculated is mandatory."); + set_Value (COLUMNNAME_QtyCalculated, QtyCalculated); + } + + /** Get Calculated Quantity. + @return Calculated Quantity + */ + public BigDecimal getQtyCalculated () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyCalculated); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_InOut.java b/base/src/org/compiere/model/X_M_InOut.java new file mode 100644 index 0000000000..34787f5cb1 --- /dev/null +++ b/base/src/org/compiere/model/X_M_InOut.java @@ -0,0 +1,1668 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for M_InOut + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_M_InOut extends PO implements I_M_InOut, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_InOut (Properties ctx, int M_InOut_ID, String trxName) + { + super (ctx, M_InOut_ID, trxName); + /** if (M_InOut_ID == 0) + { + setC_BPartner_ID (0); + setC_BPartner_Location_ID (0); + setC_DocType_ID (0); + setDateAcct (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setDeliveryRule (null); +// A + setDeliveryViaRule (null); +// P + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setFreightCostRule (null); +// I + setIsApproved (false); + setIsInDispute (false); + setIsInTransit (false); + setIsPrinted (false); + setIsSOTrx (false); +// @IsSOTrx@ + setM_InOut_ID (0); + setM_Warehouse_ID (0); + setMovementDate (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setMovementType (null); + setPosted (false); + setPriorityRule (null); +// 5 + setProcessed (false); + setSendEMail (false); + } */ + } + + /** Load Constructor */ + public X_M_InOut (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - 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_InOut[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** AD_OrgTrx_ID AD_Reference_ID=130 */ + public static final int AD_ORGTRX_ID_AD_Reference_ID=130; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID < 1) + set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getAD_User() throws Exception + { + Class clazz = MTable.getClass(I_AD_User.Table_Name); + I_AD_User result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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 I_C_Activity getC_Activity() throws Exception + { + Class clazz = MTable.getClass(I_C_Activity.Table_Name); + I_C_Activity result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID < 1) + set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner getC_BPartner() throws Exception + { + Class clazz = MTable.getClass(I_C_BPartner.Table_Name); + I_C_BPartner result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + 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 I_C_BPartner_Location getC_BPartner_Location() throws Exception + { + Class clazz = MTable.getClass(I_C_BPartner_Location.Table_Name); + I_C_BPartner_Location result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BPartner_Location)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_Location_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID < 1) + throw new IllegalArgumentException ("C_BPartner_Location_ID is mandatory."); + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getC_Campaign() throws Exception + { + Class clazz = MTable.getClass(I_C_Campaign.Table_Name); + I_C_Campaign result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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(); + } + + /** C_Charge_ID AD_Reference_ID=200 */ + public static final int C_CHARGE_ID_AD_Reference_ID=200; + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID < 1) + set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** C_DocType_ID AD_Reference_ID=170 */ + public static final int C_DOCTYPE_ID_AD_Reference_ID=170; + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Invoice getC_Invoice() throws Exception + { + Class clazz = MTable.getClass(I_C_Invoice.Table_Name); + I_C_Invoice result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Order getC_Order() throws Exception + { + Class clazz = MTable.getClass(I_C_Order.Table_Name); + I_C_Order result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Order. + @param C_Order_ID + Order + */ + public void setC_Order_ID (int C_Order_ID) + { + if (C_Order_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Order_ID, null); + else + set_ValueNoCheck (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(); + } + + public I_C_Project getC_Project() throws Exception + { + Class clazz = MTable.getClass(I_C_Project.Table_Name); + I_C_Project result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID < 1) + set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge amount. + @param ChargeAmt + Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt) + { + set_Value (COLUMNNAME_ChargeAmt, ChargeAmt); + } + + /** Get Charge amount. + @return Charge Amount + */ + public BigDecimal getChargeAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Create Confirm. + @param CreateConfirm Create Confirm */ + public void setCreateConfirm (String CreateConfirm) + { + + if (CreateConfirm != null && CreateConfirm.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreateConfirm = CreateConfirm.substring(0, 1); + } + set_Value (COLUMNNAME_CreateConfirm, CreateConfirm); + } + + /** Get Create Confirm. + @return Create Confirm */ + public String getCreateConfirm () + { + return (String)get_Value(COLUMNNAME_CreateConfirm); + } + + /** Set Create lines from. + @param CreateFrom + Process which will generate a new document lines based on an existing document + */ + public void setCreateFrom (String CreateFrom) + { + + if (CreateFrom != null && CreateFrom.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreateFrom = CreateFrom.substring(0, 1); + } + set_Value (COLUMNNAME_CreateFrom, CreateFrom); + } + + /** Get Create lines from. + @return Process which will generate a new document lines based on an existing document + */ + public String getCreateFrom () + { + return (String)get_Value(COLUMNNAME_CreateFrom); + } + + /** Set Create Package. + @param CreatePackage Create Package */ + public void setCreatePackage (String CreatePackage) + { + + if (CreatePackage != null && CreatePackage.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreatePackage = CreatePackage.substring(0, 1); + } + set_Value (COLUMNNAME_CreatePackage, CreatePackage); + } + + /** Get Create Package. + @return Create Package */ + public String getCreatePackage () + { + return (String)get_Value(COLUMNNAME_CreatePackage); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (Timestamp DateAcct) + { + if (DateAcct == null) + throw new IllegalArgumentException ("DateAcct is mandatory."); + set_Value (COLUMNNAME_DateAcct, DateAcct); + } + + /** Get Account Date. + @return Accounting Date + */ + public Timestamp getDateAcct () + { + return (Timestamp)get_Value(COLUMNNAME_DateAcct); + } + + /** Set Date Ordered. + @param DateOrdered + Date of Order + */ + public void setDateOrdered (Timestamp DateOrdered) + { + set_ValueNoCheck (COLUMNNAME_DateOrdered, DateOrdered); + } + + /** Get Date Ordered. + @return Date of Order + */ + public Timestamp getDateOrdered () + { + return (Timestamp)get_Value(COLUMNNAME_DateOrdered); + } + + /** Set Date printed. + @param DatePrinted + Date the document was printed. + */ + public void setDatePrinted (Timestamp DatePrinted) + { + set_Value (COLUMNNAME_DatePrinted, DatePrinted); + } + + /** Get Date printed. + @return Date the document was printed. + */ + public Timestamp getDatePrinted () + { + return (Timestamp)get_Value(COLUMNNAME_DatePrinted); + } + + /** Set Date received. + @param DateReceived + Date a product was received + */ + public void setDateReceived (Timestamp DateReceived) + { + set_Value (COLUMNNAME_DateReceived, DateReceived); + } + + /** Get Date received. + @return Date a product was received + */ + public Timestamp getDateReceived () + { + return (Timestamp)get_Value(COLUMNNAME_DateReceived); + } + + /** DeliveryRule AD_Reference_ID=151 */ + public static final int DELIVERYRULE_AD_Reference_ID=151; + /** After Receipt = R */ + public static final String DELIVERYRULE_AfterReceipt = "R"; + /** Availability = A */ + public static final String DELIVERYRULE_Availability = "A"; + /** Complete Line = L */ + public static final String DELIVERYRULE_CompleteLine = "L"; + /** Complete Order = O */ + public static final String DELIVERYRULE_CompleteOrder = "O"; + /** Force = F */ + public static final String DELIVERYRULE_Force = "F"; + /** Manual = M */ + public static final String DELIVERYRULE_Manual = "M"; + /** Set Delivery Rule. + @param DeliveryRule + Defines the timing of Delivery + */ + public void setDeliveryRule (String DeliveryRule) + { + if (DeliveryRule == null) throw new IllegalArgumentException ("DeliveryRule is mandatory"); + if (DeliveryRule.equals("R") || DeliveryRule.equals("A") || DeliveryRule.equals("L") || DeliveryRule.equals("O") || DeliveryRule.equals("F") || DeliveryRule.equals("M")); else throw new IllegalArgumentException ("DeliveryRule Invalid value - " + DeliveryRule + " - Reference_ID=151 - R - A - L - O - F - M"); + if (DeliveryRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + DeliveryRule = DeliveryRule.substring(0, 1); + } + set_Value (COLUMNNAME_DeliveryRule, DeliveryRule); + } + + /** Get Delivery Rule. + @return Defines the timing of Delivery + */ + public String getDeliveryRule () + { + return (String)get_Value(COLUMNNAME_DeliveryRule); + } + + /** DeliveryViaRule AD_Reference_ID=152 */ + public static final int DELIVERYVIARULE_AD_Reference_ID=152; + /** Pickup = P */ + public static final String DELIVERYVIARULE_Pickup = "P"; + /** Delivery = D */ + public static final String DELIVERYVIARULE_Delivery = "D"; + /** Shipper = S */ + public static final String DELIVERYVIARULE_Shipper = "S"; + /** Set Delivery Via. + @param DeliveryViaRule + How the order will be delivered + */ + public void setDeliveryViaRule (String DeliveryViaRule) + { + if (DeliveryViaRule == null) throw new IllegalArgumentException ("DeliveryViaRule is mandatory"); + if (DeliveryViaRule.equals("P") || DeliveryViaRule.equals("D") || DeliveryViaRule.equals("S")); else throw new IllegalArgumentException ("DeliveryViaRule Invalid value - " + DeliveryViaRule + " - Reference_ID=152 - P - D - S"); + if (DeliveryViaRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + DeliveryViaRule = DeliveryViaRule.substring(0, 1); + } + set_Value (COLUMNNAME_DeliveryViaRule, DeliveryViaRule); + } + + /** Get Delivery Via. + @return How the order will be delivered + */ + public String getDeliveryViaRule () + { + return (String)get_Value(COLUMNNAME_DeliveryViaRule); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** DocAction AD_Reference_ID=135 */ + public static final int DOCACTION_AD_Reference_ID=135; + /** Complete = CO */ + public static final String DOCACTION_Complete = "CO"; + /** Approve = AP */ + public static final String DOCACTION_Approve = "AP"; + /** Reject = RJ */ + public static final String DOCACTION_Reject = "RJ"; + /** Post = PO */ + public static final String DOCACTION_Post = "PO"; + /** Void = VO */ + public static final String DOCACTION_Void = "VO"; + /** Close = CL */ + public static final String DOCACTION_Close = "CL"; + /** Reverse - Correct = RC */ + public static final String DOCACTION_Reverse_Correct = "RC"; + /** Reverse - Accrual = RA */ + public static final String DOCACTION_Reverse_Accrual = "RA"; + /** Invalidate = IN */ + public static final String DOCACTION_Invalidate = "IN"; + /** Re-activate = RE */ + public static final String DOCACTION_Re_Activate = "RE"; + /** = -- */ + public static final String DOCACTION_None = "--"; + /** Prepare = PR */ + public static final String DOCACTION_Prepare = "PR"; + /** Unlock = XL */ + public static final String DOCACTION_Unlock = "XL"; + /** Wait Complete = WC */ + public static final String DOCACTION_WaitComplete = "WC"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { + if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + if (DocAction.equals("CO") || DocAction.equals("AP") || DocAction.equals("RJ") || DocAction.equals("PO") || DocAction.equals("VO") || DocAction.equals("CL") || DocAction.equals("RC") || DocAction.equals("RA") || DocAction.equals("IN") || DocAction.equals("RE") || DocAction.equals("--") || DocAction.equals("PR") || DocAction.equals("XL") || DocAction.equals("WC")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - CO - AP - RJ - PO - VO - CL - RC - RA - IN - RE - -- - PR - XL - WC"); + if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 2); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } + + /** DocStatus AD_Reference_ID=131 */ + public static final int DOCSTATUS_AD_Reference_ID=131; + /** Drafted = DR */ + public static final String DOCSTATUS_Drafted = "DR"; + /** Completed = CO */ + public static final String DOCSTATUS_Completed = "CO"; + /** Approved = AP */ + public static final String DOCSTATUS_Approved = "AP"; + /** Not Approved = NA */ + public static final String DOCSTATUS_NotApproved = "NA"; + /** Voided = VO */ + public static final String DOCSTATUS_Voided = "VO"; + /** Invalid = IN */ + public static final String DOCSTATUS_Invalid = "IN"; + /** Reversed = RE */ + public static final String DOCSTATUS_Reversed = "RE"; + /** Closed = CL */ + public static final String DOCSTATUS_Closed = "CL"; + /** Unknown = ?? */ + public static final String DOCSTATUS_Unknown = "??"; + /** In Progress = IP */ + public static final String DOCSTATUS_InProgress = "IP"; + /** Waiting Payment = WP */ + public static final String DOCSTATUS_WaitingPayment = "WP"; + /** Waiting Confirmation = WC */ + public static final String DOCSTATUS_WaitingConfirmation = "WC"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { + if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + if (DocStatus.equals("DR") || DocStatus.equals("CO") || DocStatus.equals("AP") || DocStatus.equals("NA") || DocStatus.equals("VO") || DocStatus.equals("IN") || DocStatus.equals("RE") || DocStatus.equals("CL") || DocStatus.equals("??") || DocStatus.equals("IP") || DocStatus.equals("WP") || DocStatus.equals("WC")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - DR - CO - AP - NA - VO - IN - RE - CL - ?? - IP - WP - WC"); + if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 2); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 30); + } + set_ValueNoCheck (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 Freight Amount. + @param FreightAmt + Freight Amount + */ + public void setFreightAmt (BigDecimal FreightAmt) + { + set_Value (COLUMNNAME_FreightAmt, FreightAmt); + } + + /** Get Freight Amount. + @return Freight Amount + */ + public BigDecimal getFreightAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FreightAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** FreightCostRule AD_Reference_ID=153 */ + public static final int FREIGHTCOSTRULE_AD_Reference_ID=153; + /** Freight included = I */ + public static final String FREIGHTCOSTRULE_FreightIncluded = "I"; + /** Fix price = F */ + public static final String FREIGHTCOSTRULE_FixPrice = "F"; + /** Calculated = C */ + public static final String FREIGHTCOSTRULE_Calculated = "C"; + /** Line = L */ + public static final String FREIGHTCOSTRULE_Line = "L"; + /** Set Freight Cost Rule. + @param FreightCostRule + Method for charging Freight + */ + public void setFreightCostRule (String FreightCostRule) + { + if (FreightCostRule == null) throw new IllegalArgumentException ("FreightCostRule is mandatory"); + if (FreightCostRule.equals("I") || FreightCostRule.equals("F") || FreightCostRule.equals("C") || FreightCostRule.equals("L")); else throw new IllegalArgumentException ("FreightCostRule Invalid value - " + FreightCostRule + " - Reference_ID=153 - I - F - C - L"); + if (FreightCostRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + FreightCostRule = FreightCostRule.substring(0, 1); + } + set_Value (COLUMNNAME_FreightCostRule, FreightCostRule); + } + + /** Get Freight Cost Rule. + @return Method for charging Freight + */ + public String getFreightCostRule () + { + return (String)get_Value(COLUMNNAME_FreightCostRule); + } + + /** Set Generate To. + @param GenerateTo + Generate To + */ + public void setGenerateTo (String GenerateTo) + { + + if (GenerateTo != null && GenerateTo.length() > 1) + { + log.warning("Length > 1 - truncated"); + GenerateTo = GenerateTo.substring(0, 1); + } + set_Value (COLUMNNAME_GenerateTo, GenerateTo); + } + + /** Get Generate To. + @return Generate To + */ + public String getGenerateTo () + { + return (String)get_Value(COLUMNNAME_GenerateTo); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set In Dispute. + @param IsInDispute + Document is in dispute + */ + public void setIsInDispute (boolean IsInDispute) + { + set_Value (COLUMNNAME_IsInDispute, Boolean.valueOf(IsInDispute)); + } + + /** Get In Dispute. + @return Document is in dispute + */ + public boolean isInDispute () + { + Object oo = get_Value(COLUMNNAME_IsInDispute); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set In Transit. + @param IsInTransit + Movement is in transit + */ + public void setIsInTransit (boolean IsInTransit) + { + set_Value (COLUMNNAME_IsInTransit, Boolean.valueOf(IsInTransit)); + } + + /** Get In Transit. + @return Movement is in transit + */ + public boolean isInTransit () + { + Object oo = get_Value(COLUMNNAME_IsInTransit); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Printed. + @param IsPrinted + Indicates if this document / line is printed + */ + public void setIsPrinted (boolean IsPrinted) + { + set_Value (COLUMNNAME_IsPrinted, Boolean.valueOf(IsPrinted)); + } + + /** Get Printed. + @return Indicates if this document / line is printed + */ + public boolean isPrinted () + { + Object oo = get_Value(COLUMNNAME_IsPrinted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Shipment/Receipt. + @param M_InOut_ID + Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID) + { + if (M_InOut_ID < 1) + throw new IllegalArgumentException ("M_InOut_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID)); + } + + /** Get Shipment/Receipt. + @return Material Shipment Document + */ + public int getM_InOut_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOut_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_RMA getM_RMA() throws Exception + { + Class clazz = MTable.getClass(I_M_RMA.Table_Name); + I_M_RMA result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_RMA)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_RMA_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set RMA. + @param M_RMA_ID + Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID) + { + if (M_RMA_ID < 1) + set_Value (COLUMNNAME_M_RMA_ID, null); + else + set_Value (COLUMNNAME_M_RMA_ID, Integer.valueOf(M_RMA_ID)); + } + + /** Get RMA. + @return Return Material Authorization + */ + public int getM_RMA_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_RMA_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Shipper getM_Shipper() throws Exception + { + Class clazz = MTable.getClass(I_M_Shipper.Table_Name); + I_M_Shipper result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Shipper)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Shipper_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Shipper. + @param M_Shipper_ID + Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID) + { + if (M_Shipper_ID < 1) + set_Value (COLUMNNAME_M_Shipper_ID, null); + else + set_Value (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); + } + + /** Get Shipper. + @return Method or manner of product delivery + */ + public int getM_Shipper_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Shipper_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getM_Warehouse() throws Exception + { + Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); + I_M_Warehouse result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Movement Date. + @param MovementDate + Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate) + { + if (MovementDate == null) + throw new IllegalArgumentException ("MovementDate is mandatory."); + set_Value (COLUMNNAME_MovementDate, MovementDate); + } + + /** Get Movement Date. + @return Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate () + { + return (Timestamp)get_Value(COLUMNNAME_MovementDate); + } + + /** MovementType AD_Reference_ID=189 */ + public static final int MOVEMENTTYPE_AD_Reference_ID=189; + /** Customer Shipment = C- */ + public static final String MOVEMENTTYPE_CustomerShipment = "C-"; + /** Customer Returns = C+ */ + public static final String MOVEMENTTYPE_CustomerReturns = "C+"; + /** Vendor Receipts = V+ */ + public static final String MOVEMENTTYPE_VendorReceipts = "V+"; + /** Vendor Returns = V- */ + public static final String MOVEMENTTYPE_VendorReturns = "V-"; + /** Inventory Out = I- */ + public static final String MOVEMENTTYPE_InventoryOut = "I-"; + /** Inventory In = I+ */ + public static final String MOVEMENTTYPE_InventoryIn = "I+"; + /** Movement From = M- */ + public static final String MOVEMENTTYPE_MovementFrom = "M-"; + /** Movement To = M+ */ + public static final String MOVEMENTTYPE_MovementTo = "M+"; + /** Production + = P+ */ + public static final String MOVEMENTTYPE_ProductionPlus = "P+"; + /** Production - = P- */ + public static final String MOVEMENTTYPE_Production_ = "P-"; + /** Work Order + = W+ */ + public static final String MOVEMENTTYPE_WorkOrderPlus = "W+"; + /** Work Order - = W- */ + public static final String MOVEMENTTYPE_WorkOrder_ = "W-"; + /** Set Movement Type. + @param MovementType + Method of moving the inventory + */ + public void setMovementType (String MovementType) + { + if (MovementType == null) throw new IllegalArgumentException ("MovementType is mandatory"); + if (MovementType.equals("C-") || MovementType.equals("C+") || MovementType.equals("V+") || MovementType.equals("V-") || MovementType.equals("I-") || MovementType.equals("I+") || MovementType.equals("M-") || MovementType.equals("M+") || MovementType.equals("P+") || MovementType.equals("P-") || MovementType.equals("W+") || MovementType.equals("W-")); else throw new IllegalArgumentException ("MovementType Invalid value - " + MovementType + " - Reference_ID=189 - C- - C+ - V+ - V- - I- - I+ - M- - M+ - P+ - P- - W+ - W-"); + if (MovementType.length() > 2) + { + log.warning("Length > 2 - truncated"); + MovementType = MovementType.substring(0, 2); + } + set_ValueNoCheck (COLUMNNAME_MovementType, MovementType); + } + + /** Get Movement Type. + @return Method of moving the inventory + */ + public String getMovementType () + { + return (String)get_Value(COLUMNNAME_MovementType); + } + + /** Set No Packages. + @param NoPackages + Number of packages shipped + */ + public void setNoPackages (int NoPackages) + { + set_Value (COLUMNNAME_NoPackages, Integer.valueOf(NoPackages)); + } + + /** Get No Packages. + @return Number of packages shipped + */ + public int getNoPackages () + { + Integer ii = (Integer)get_Value(COLUMNNAME_NoPackages); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Order Reference. + @param POReference + Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public void setPOReference (String POReference) + { + + if (POReference != null && POReference.length() > 20) + { + log.warning("Length > 20 - truncated"); + POReference = POReference.substring(0, 20); + } + set_Value (COLUMNNAME_POReference, POReference); + } + + /** Get Order Reference. + @return Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner + */ + public String getPOReference () + { + return (String)get_Value(COLUMNNAME_POReference); + } + + /** Set Pick Date. + @param PickDate + Date/Time when picked for Shipment + */ + public void setPickDate (Timestamp PickDate) + { + set_Value (COLUMNNAME_PickDate, PickDate); + } + + /** Get Pick Date. + @return Date/Time when picked for Shipment + */ + public Timestamp getPickDate () + { + return (Timestamp)get_Value(COLUMNNAME_PickDate); + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** PriorityRule AD_Reference_ID=154 */ + public static final int PRIORITYRULE_AD_Reference_ID=154; + /** High = 3 */ + public static final String PRIORITYRULE_High = "3"; + /** Medium = 5 */ + public static final String PRIORITYRULE_Medium = "5"; + /** Low = 7 */ + public static final String PRIORITYRULE_Low = "7"; + /** Urgent = 1 */ + public static final String PRIORITYRULE_Urgent = "1"; + /** Minor = 9 */ + public static final String PRIORITYRULE_Minor = "9"; + /** Set Priority. + @param PriorityRule + Priority of a document + */ + public void setPriorityRule (String PriorityRule) + { + if (PriorityRule == null) throw new IllegalArgumentException ("PriorityRule is mandatory"); + if (PriorityRule.equals("3") || PriorityRule.equals("5") || PriorityRule.equals("7") || PriorityRule.equals("1") || PriorityRule.equals("9")); else throw new IllegalArgumentException ("PriorityRule Invalid value - " + PriorityRule + " - Reference_ID=154 - 3 - 5 - 7 - 1 - 9"); + if (PriorityRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + PriorityRule = PriorityRule.substring(0, 1); + } + set_Value (COLUMNNAME_PriorityRule, PriorityRule); + } + + /** Get Priority. + @return Priority of a document + */ + public String getPriorityRule () + { + return (String)get_Value(COLUMNNAME_PriorityRule); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. + @return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Referenced Shipment. + @param Ref_InOut_ID Referenced Shipment */ + public void setRef_InOut_ID (int Ref_InOut_ID) + { + if (Ref_InOut_ID < 1) + set_Value (COLUMNNAME_Ref_InOut_ID, null); + else + set_Value (COLUMNNAME_Ref_InOut_ID, Integer.valueOf(Ref_InOut_ID)); + } + + /** Get Referenced Shipment. + @return Referenced Shipment */ + public int getRef_InOut_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Ref_InOut_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Reversal_ID AD_Reference_ID=337 */ + public static final int REVERSAL_ID_AD_Reference_ID=337; + /** Set Reversal ID. + @param Reversal_ID + ID of document reversal + */ + public void setReversal_ID (int Reversal_ID) + { + if (Reversal_ID < 1) + set_Value (COLUMNNAME_Reversal_ID, null); + else + set_Value (COLUMNNAME_Reversal_ID, Integer.valueOf(Reversal_ID)); + } + + /** Get Reversal ID. + @return ID of document reversal + */ + public int getReversal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Reversal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** SalesRep_ID AD_Reference_ID=190 */ + public static final int SALESREP_ID_AD_Reference_ID=190; + /** 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 Send EMail. + @param SendEMail + Enable sending Document EMail + */ + public void setSendEMail (boolean SendEMail) + { + set_Value (COLUMNNAME_SendEMail, Boolean.valueOf(SendEMail)); + } + + /** Get Send EMail. + @return Enable sending Document EMail + */ + public boolean isSendEMail () + { + Object oo = get_Value(COLUMNNAME_SendEMail); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Ship Date. + @param ShipDate + Shipment Date/Time + */ + public void setShipDate (Timestamp ShipDate) + { + set_Value (COLUMNNAME_ShipDate, ShipDate); + } + + /** Get Ship Date. + @return Shipment Date/Time + */ + public Timestamp getShipDate () + { + return (Timestamp)get_Value(COLUMNNAME_ShipDate); + } + + /** Set Tracking No. + @param TrackingNo + Number to track the shipment + */ + public void setTrackingNo (String TrackingNo) + { + + if (TrackingNo != null && TrackingNo.length() > 60) + { + log.warning("Length > 60 - truncated"); + TrackingNo = TrackingNo.substring(0, 60); + } + set_Value (COLUMNNAME_TrackingNo, TrackingNo); + } + + /** Get Tracking No. + @return Number to track the shipment + */ + public String getTrackingNo () + { + return (String)get_Value(COLUMNNAME_TrackingNo); + } + + /** User1_ID AD_Reference_ID=134 */ + public static final int USER1_ID_AD_Reference_ID=134; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID < 1) + set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** User2_ID AD_Reference_ID=137 */ + public static final int USER2_ID_AD_Reference_ID=137; + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID < 1) + set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Volume. + @param Volume + Volume of a product + */ + public void setVolume (BigDecimal Volume) + { + set_Value (COLUMNNAME_Volume, Volume); + } + + /** Get Volume. + @return Volume of a product + */ + public BigDecimal getVolume () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Volume); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Weight. + @param Weight + Weight of a product + */ + public void setWeight (BigDecimal Weight) + { + set_Value (COLUMNNAME_Weight, Weight); + } + + /** Get Weight. + @return Weight of a product + */ + public BigDecimal getWeight () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Weight); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Inventory.java b/base/src/org/compiere/model/X_M_Inventory.java new file mode 100644 index 0000000000..f8f5debef9 --- /dev/null +++ b/base/src/org/compiere/model/X_M_Inventory.java @@ -0,0 +1,778 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for M_Inventory + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_M_Inventory extends PO implements I_M_Inventory, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Inventory (Properties ctx, int M_Inventory_ID, String trxName) + { + super (ctx, M_Inventory_ID, trxName); + /** if (M_Inventory_ID == 0) + { + setC_DocType_ID (0); + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setIsApproved (false); + setM_Inventory_ID (0); + setM_Warehouse_ID (0); + setMovementDate (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setPosted (false); + setProcessed (false); + } */ + } + + /** Load Constructor */ + public X_M_Inventory (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - 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_Inventory[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** AD_OrgTrx_ID AD_Reference_ID=130 */ + public static final int AD_ORGTRX_ID_AD_Reference_ID=130; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID < 1) + set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Approval Amount. + @param ApprovalAmt + Document Approval Amount + */ + public void setApprovalAmt (BigDecimal ApprovalAmt) + { + set_Value (COLUMNNAME_ApprovalAmt, ApprovalAmt); + } + + /** Get Approval Amount. + @return Document Approval Amount + */ + public BigDecimal getApprovalAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ApprovalAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_Activity getC_Activity() throws Exception + { + Class clazz = MTable.getClass(I_C_Activity.Table_Name); + I_C_Activity result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID < 1) + set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getC_Campaign() throws Exception + { + Class clazz = MTable.getClass(I_C_Campaign.Table_Name); + I_C_Campaign result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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 I_C_DocType getC_DocType() throws Exception + { + Class clazz = MTable.getClass(I_C_DocType.Table_Name); + I_C_DocType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getC_Project() throws Exception + { + Class clazz = MTable.getClass(I_C_Project.Table_Name); + I_C_Project result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID < 1) + set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** DocAction AD_Reference_ID=135 */ + public static final int DOCACTION_AD_Reference_ID=135; + /** Complete = CO */ + public static final String DOCACTION_Complete = "CO"; + /** Approve = AP */ + public static final String DOCACTION_Approve = "AP"; + /** Reject = RJ */ + public static final String DOCACTION_Reject = "RJ"; + /** Post = PO */ + public static final String DOCACTION_Post = "PO"; + /** Void = VO */ + public static final String DOCACTION_Void = "VO"; + /** Close = CL */ + public static final String DOCACTION_Close = "CL"; + /** Reverse - Correct = RC */ + public static final String DOCACTION_Reverse_Correct = "RC"; + /** Reverse - Accrual = RA */ + public static final String DOCACTION_Reverse_Accrual = "RA"; + /** Invalidate = IN */ + public static final String DOCACTION_Invalidate = "IN"; + /** Re-activate = RE */ + public static final String DOCACTION_Re_Activate = "RE"; + /** = -- */ + public static final String DOCACTION_None = "--"; + /** Prepare = PR */ + public static final String DOCACTION_Prepare = "PR"; + /** Unlock = XL */ + public static final String DOCACTION_Unlock = "XL"; + /** Wait Complete = WC */ + public static final String DOCACTION_WaitComplete = "WC"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { + if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + if (DocAction.equals("CO") || DocAction.equals("AP") || DocAction.equals("RJ") || DocAction.equals("PO") || DocAction.equals("VO") || DocAction.equals("CL") || DocAction.equals("RC") || DocAction.equals("RA") || DocAction.equals("IN") || DocAction.equals("RE") || DocAction.equals("--") || DocAction.equals("PR") || DocAction.equals("XL") || DocAction.equals("WC")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - CO - AP - RJ - PO - VO - CL - RC - RA - IN - RE - -- - PR - XL - WC"); + if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 2); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } + + /** DocStatus AD_Reference_ID=131 */ + public static final int DOCSTATUS_AD_Reference_ID=131; + /** Drafted = DR */ + public static final String DOCSTATUS_Drafted = "DR"; + /** Completed = CO */ + public static final String DOCSTATUS_Completed = "CO"; + /** Approved = AP */ + public static final String DOCSTATUS_Approved = "AP"; + /** Not Approved = NA */ + public static final String DOCSTATUS_NotApproved = "NA"; + /** Voided = VO */ + public static final String DOCSTATUS_Voided = "VO"; + /** Invalid = IN */ + public static final String DOCSTATUS_Invalid = "IN"; + /** Reversed = RE */ + public static final String DOCSTATUS_Reversed = "RE"; + /** Closed = CL */ + public static final String DOCSTATUS_Closed = "CL"; + /** Unknown = ?? */ + public static final String DOCSTATUS_Unknown = "??"; + /** In Progress = IP */ + public static final String DOCSTATUS_InProgress = "IP"; + /** Waiting Payment = WP */ + public static final String DOCSTATUS_WaitingPayment = "WP"; + /** Waiting Confirmation = WC */ + public static final String DOCSTATUS_WaitingConfirmation = "WC"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { + if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + if (DocStatus.equals("DR") || DocStatus.equals("CO") || DocStatus.equals("AP") || DocStatus.equals("NA") || DocStatus.equals("VO") || DocStatus.equals("IN") || DocStatus.equals("RE") || DocStatus.equals("CL") || DocStatus.equals("??") || DocStatus.equals("IP") || DocStatus.equals("WP") || DocStatus.equals("WC")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - DR - CO - AP - NA - VO - IN - RE - CL - ?? - IP - WP - WC"); + if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 2); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 30); + } + 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 Generate List. + @param GenerateList + Generate List + */ + public void setGenerateList (String GenerateList) + { + + if (GenerateList != null && GenerateList.length() > 1) + { + log.warning("Length > 1 - truncated"); + GenerateList = GenerateList.substring(0, 1); + } + set_Value (COLUMNNAME_GenerateList, GenerateList); + } + + /** Get Generate List. + @return Generate List + */ + public String getGenerateList () + { + return (String)get_Value(COLUMNNAME_GenerateList); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Phys.Inventory. + @param M_Inventory_ID + Parameters for a Physical Inventory + */ + public void setM_Inventory_ID (int M_Inventory_ID) + { + if (M_Inventory_ID < 1) + throw new IllegalArgumentException ("M_Inventory_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Inventory_ID, Integer.valueOf(M_Inventory_ID)); + } + + /** Get Phys.Inventory. + @return Parameters for a Physical Inventory + */ + public int getM_Inventory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Inventory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_PerpetualInv getM_PerpetualInv() throws Exception + { + Class clazz = MTable.getClass(I_M_PerpetualInv.Table_Name); + I_M_PerpetualInv result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_PerpetualInv)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PerpetualInv_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Perpetual Inventory. + @param M_PerpetualInv_ID + Rules for generating physical inventory + */ + public void setM_PerpetualInv_ID (int M_PerpetualInv_ID) + { + if (M_PerpetualInv_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_PerpetualInv_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_PerpetualInv_ID, Integer.valueOf(M_PerpetualInv_ID)); + } + + /** Get Perpetual Inventory. + @return Rules for generating physical inventory + */ + public int getM_PerpetualInv_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_PerpetualInv_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getM_Warehouse() throws Exception + { + Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); + I_M_Warehouse result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Movement Date. + @param MovementDate + Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate) + { + if (MovementDate == null) + throw new IllegalArgumentException ("MovementDate is mandatory."); + set_Value (COLUMNNAME_MovementDate, MovementDate); + } + + /** Get Movement Date. + @return Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate () + { + return (Timestamp)get_Value(COLUMNNAME_MovementDate); + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. + @return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Reversal_ID AD_Reference_ID=53249 */ + public static final int REVERSAL_ID_AD_Reference_ID=53249; + /** Set Reversal ID. + @param Reversal_ID + ID of document reversal + */ + public void setReversal_ID (int Reversal_ID) + { + if (Reversal_ID < 1) + set_Value (COLUMNNAME_Reversal_ID, null); + else + set_Value (COLUMNNAME_Reversal_ID, Integer.valueOf(Reversal_ID)); + } + + /** Get Reversal ID. + @return ID of document reversal + */ + public int getReversal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Reversal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Update Quantities. + @param UpdateQty Update Quantities */ + public void setUpdateQty (String UpdateQty) + { + + if (UpdateQty != null && UpdateQty.length() > 1) + { + log.warning("Length > 1 - truncated"); + UpdateQty = UpdateQty.substring(0, 1); + } + set_Value (COLUMNNAME_UpdateQty, UpdateQty); + } + + /** Get Update Quantities. + @return Update Quantities */ + public String getUpdateQty () + { + return (String)get_Value(COLUMNNAME_UpdateQty); + } + + /** User1_ID AD_Reference_ID=134 */ + public static final int USER1_ID_AD_Reference_ID=134; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID < 1) + set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** User2_ID AD_Reference_ID=137 */ + public static final int USER2_ID_AD_Reference_ID=137; + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID < 1) + set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Movement.java b/base/src/org/compiere/model/X_M_Movement.java new file mode 100644 index 0000000000..25ec057e03 --- /dev/null +++ b/base/src/org/compiere/model/X_M_Movement.java @@ -0,0 +1,1128 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for M_Movement + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_M_Movement extends PO implements I_M_Movement, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Movement (Properties ctx, int M_Movement_ID, String trxName) + { + super (ctx, M_Movement_ID, trxName); + /** if (M_Movement_ID == 0) + { + setC_DocType_ID (0); + setDocAction (null); +// CO + setDocStatus (null); +// DR + setDocumentNo (null); + setIsApproved (false); + setIsInTransit (false); + setM_Movement_ID (0); + setMovementDate (new Timestamp(System.currentTimeMillis())); +// @#Date@ + setPosted (false); + setProcessed (false); + } */ + } + + /** Load Constructor */ + public X_M_Movement (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - 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_Movement[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** AD_OrgTrx_ID AD_Reference_ID=130 */ + public static final int AD_ORGTRX_ID_AD_Reference_ID=130; + /** Set Trx Organization. + @param AD_OrgTrx_ID + Performing or initiating organization + */ + public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) + { + if (AD_OrgTrx_ID < 1) + set_Value (COLUMNNAME_AD_OrgTrx_ID, null); + else + set_Value (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); + } + + /** Get Trx Organization. + @return Performing or initiating organization + */ + public int getAD_OrgTrx_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** AD_User_ID AD_Reference_ID=286 */ + public static final int AD_USER_ID_AD_Reference_ID=286; + /** 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 Approval Amount. + @param ApprovalAmt + Document Approval Amount + */ + public void setApprovalAmt (BigDecimal ApprovalAmt) + { + set_Value (COLUMNNAME_ApprovalAmt, ApprovalAmt); + } + + /** Get Approval Amount. + @return Document Approval Amount + */ + public BigDecimal getApprovalAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ApprovalAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_C_Activity getC_Activity() throws Exception + { + Class clazz = MTable.getClass(I_C_Activity.Table_Name); + I_C_Activity result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID < 1) + set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner getC_BPartner() throws Exception + { + Class clazz = MTable.getClass(I_C_BPartner.Table_Name); + I_C_BPartner result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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(); + } + + /** Set Partner Location. + @param C_BPartner_Location_ID + Identifies the (ship to) address for this Business Partner + */ + public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) + { + if (C_BPartner_Location_ID < 1) + set_Value (COLUMNNAME_C_BPartner_Location_ID, null); + else + set_Value (COLUMNNAME_C_BPartner_Location_ID, Integer.valueOf(C_BPartner_Location_ID)); + } + + /** Get Partner Location. + @return Identifies the (ship to) address for this Business Partner + */ + public int getC_BPartner_Location_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_Location_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Campaign getC_Campaign() throws Exception + { + Class clazz = MTable.getClass(I_C_Campaign.Table_Name); + I_C_Campaign result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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 I_C_Charge getC_Charge() throws Exception + { + Class clazz = MTable.getClass(I_C_Charge.Table_Name); + I_C_Charge result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Charge)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Charge_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Charge. + @param C_Charge_ID + Additional document charges + */ + public void setC_Charge_ID (int C_Charge_ID) + { + if (C_Charge_ID < 1) + set_Value (COLUMNNAME_C_Charge_ID, null); + else + set_Value (COLUMNNAME_C_Charge_ID, Integer.valueOf(C_Charge_ID)); + } + + /** Get Charge. + @return Additional document charges + */ + public int getC_Charge_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Charge_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_DocType getC_DocType() throws Exception + { + Class clazz = MTable.getClass(I_C_DocType.Table_Name); + I_C_DocType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 0) + throw new IllegalArgumentException ("C_DocType_ID is mandatory."); + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getC_Project() throws Exception + { + Class clazz = MTable.getClass(I_C_Project.Table_Name); + I_C_Project result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID < 1) + set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Charge amount. + @param ChargeAmt + Charge Amount + */ + public void setChargeAmt (BigDecimal ChargeAmt) + { + set_Value (COLUMNNAME_ChargeAmt, ChargeAmt); + } + + /** Get Charge amount. + @return Charge Amount + */ + public BigDecimal getChargeAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Create lines from. + @param CreateFrom + Process which will generate a new document lines based on an existing document + */ + public void setCreateFrom (String CreateFrom) + { + + if (CreateFrom != null && CreateFrom.length() > 1) + { + log.warning("Length > 1 - truncated"); + CreateFrom = CreateFrom.substring(0, 1); + } + set_Value (COLUMNNAME_CreateFrom, CreateFrom); + } + + /** Get Create lines from. + @return Process which will generate a new document lines based on an existing document + */ + public String getCreateFrom () + { + return (String)get_Value(COLUMNNAME_CreateFrom); + } + + public org.eevolution.model.I_DD_Order getDD_Order() throws Exception + { + Class clazz = MTable.getClass(org.eevolution.model.I_DD_Order.Table_Name); + org.eevolution.model.I_DD_Order result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (org.eevolution.model.I_DD_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getDD_Order_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Distribution Order. + @param DD_Order_ID Distribution Order */ + public void setDD_Order_ID (int DD_Order_ID) + { + if (DD_Order_ID < 1) + set_ValueNoCheck (COLUMNNAME_DD_Order_ID, null); + else + set_ValueNoCheck (COLUMNNAME_DD_Order_ID, Integer.valueOf(DD_Order_ID)); + } + + /** Get Distribution Order. + @return Distribution Order */ + public int getDD_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DD_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Date received. + @param DateReceived + Date a product was received + */ + public void setDateReceived (Timestamp DateReceived) + { + set_Value (COLUMNNAME_DateReceived, DateReceived); + } + + /** Get Date received. + @return Date a product was received + */ + public Timestamp getDateReceived () + { + return (Timestamp)get_Value(COLUMNNAME_DateReceived); + } + + /** DeliveryRule AD_Reference_ID=151 */ + public static final int DELIVERYRULE_AD_Reference_ID=151; + /** After Receipt = R */ + public static final String DELIVERYRULE_AfterReceipt = "R"; + /** Availability = A */ + public static final String DELIVERYRULE_Availability = "A"; + /** Complete Line = L */ + public static final String DELIVERYRULE_CompleteLine = "L"; + /** Complete Order = O */ + public static final String DELIVERYRULE_CompleteOrder = "O"; + /** Force = F */ + public static final String DELIVERYRULE_Force = "F"; + /** Manual = M */ + public static final String DELIVERYRULE_Manual = "M"; + /** Set Delivery Rule. + @param DeliveryRule + Defines the timing of Delivery + */ + public void setDeliveryRule (String DeliveryRule) + { + + if (DeliveryRule == null || DeliveryRule.equals("R") || DeliveryRule.equals("A") || DeliveryRule.equals("L") || DeliveryRule.equals("O") || DeliveryRule.equals("F") || DeliveryRule.equals("M")); else throw new IllegalArgumentException ("DeliveryRule Invalid value - " + DeliveryRule + " - Reference_ID=151 - R - A - L - O - F - M"); + if (DeliveryRule != null && DeliveryRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + DeliveryRule = DeliveryRule.substring(0, 1); + } + set_Value (COLUMNNAME_DeliveryRule, DeliveryRule); + } + + /** Get Delivery Rule. + @return Defines the timing of Delivery + */ + public String getDeliveryRule () + { + return (String)get_Value(COLUMNNAME_DeliveryRule); + } + + /** DeliveryViaRule AD_Reference_ID=152 */ + public static final int DELIVERYVIARULE_AD_Reference_ID=152; + /** Pickup = P */ + public static final String DELIVERYVIARULE_Pickup = "P"; + /** Delivery = D */ + public static final String DELIVERYVIARULE_Delivery = "D"; + /** Shipper = S */ + public static final String DELIVERYVIARULE_Shipper = "S"; + /** Set Delivery Via. + @param DeliveryViaRule + How the order will be delivered + */ + public void setDeliveryViaRule (String DeliveryViaRule) + { + + if (DeliveryViaRule == null || DeliveryViaRule.equals("P") || DeliveryViaRule.equals("D") || DeliveryViaRule.equals("S")); else throw new IllegalArgumentException ("DeliveryViaRule Invalid value - " + DeliveryViaRule + " - Reference_ID=152 - P - D - S"); + if (DeliveryViaRule != null && DeliveryViaRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + DeliveryViaRule = DeliveryViaRule.substring(0, 1); + } + set_Value (COLUMNNAME_DeliveryViaRule, DeliveryViaRule); + } + + /** Get Delivery Via. + @return How the order will be delivered + */ + public String getDeliveryViaRule () + { + return (String)get_Value(COLUMNNAME_DeliveryViaRule); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** DocAction AD_Reference_ID=135 */ + public static final int DOCACTION_AD_Reference_ID=135; + /** Complete = CO */ + public static final String DOCACTION_Complete = "CO"; + /** Approve = AP */ + public static final String DOCACTION_Approve = "AP"; + /** Reject = RJ */ + public static final String DOCACTION_Reject = "RJ"; + /** Post = PO */ + public static final String DOCACTION_Post = "PO"; + /** Void = VO */ + public static final String DOCACTION_Void = "VO"; + /** Close = CL */ + public static final String DOCACTION_Close = "CL"; + /** Reverse - Correct = RC */ + public static final String DOCACTION_Reverse_Correct = "RC"; + /** Reverse - Accrual = RA */ + public static final String DOCACTION_Reverse_Accrual = "RA"; + /** Invalidate = IN */ + public static final String DOCACTION_Invalidate = "IN"; + /** Re-activate = RE */ + public static final String DOCACTION_Re_Activate = "RE"; + /** = -- */ + public static final String DOCACTION_None = "--"; + /** Prepare = PR */ + public static final String DOCACTION_Prepare = "PR"; + /** Unlock = XL */ + public static final String DOCACTION_Unlock = "XL"; + /** Wait Complete = WC */ + public static final String DOCACTION_WaitComplete = "WC"; + /** Set Document Action. + @param DocAction + The targeted status of the document + */ + public void setDocAction (String DocAction) + { + if (DocAction == null) throw new IllegalArgumentException ("DocAction is mandatory"); + if (DocAction.equals("CO") || DocAction.equals("AP") || DocAction.equals("RJ") || DocAction.equals("PO") || DocAction.equals("VO") || DocAction.equals("CL") || DocAction.equals("RC") || DocAction.equals("RA") || DocAction.equals("IN") || DocAction.equals("RE") || DocAction.equals("--") || DocAction.equals("PR") || DocAction.equals("XL") || DocAction.equals("WC")); else throw new IllegalArgumentException ("DocAction Invalid value - " + DocAction + " - Reference_ID=135 - CO - AP - RJ - PO - VO - CL - RC - RA - IN - RE - -- - PR - XL - WC"); + if (DocAction.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocAction = DocAction.substring(0, 2); + } + set_Value (COLUMNNAME_DocAction, DocAction); + } + + /** Get Document Action. + @return The targeted status of the document + */ + public String getDocAction () + { + return (String)get_Value(COLUMNNAME_DocAction); + } + + /** DocStatus AD_Reference_ID=131 */ + public static final int DOCSTATUS_AD_Reference_ID=131; + /** Drafted = DR */ + public static final String DOCSTATUS_Drafted = "DR"; + /** Completed = CO */ + public static final String DOCSTATUS_Completed = "CO"; + /** Approved = AP */ + public static final String DOCSTATUS_Approved = "AP"; + /** Not Approved = NA */ + public static final String DOCSTATUS_NotApproved = "NA"; + /** Voided = VO */ + public static final String DOCSTATUS_Voided = "VO"; + /** Invalid = IN */ + public static final String DOCSTATUS_Invalid = "IN"; + /** Reversed = RE */ + public static final String DOCSTATUS_Reversed = "RE"; + /** Closed = CL */ + public static final String DOCSTATUS_Closed = "CL"; + /** Unknown = ?? */ + public static final String DOCSTATUS_Unknown = "??"; + /** In Progress = IP */ + public static final String DOCSTATUS_InProgress = "IP"; + /** Waiting Payment = WP */ + public static final String DOCSTATUS_WaitingPayment = "WP"; + /** Waiting Confirmation = WC */ + public static final String DOCSTATUS_WaitingConfirmation = "WC"; + /** Set Document Status. + @param DocStatus + The current status of the document + */ + public void setDocStatus (String DocStatus) + { + if (DocStatus == null) throw new IllegalArgumentException ("DocStatus is mandatory"); + if (DocStatus.equals("DR") || DocStatus.equals("CO") || DocStatus.equals("AP") || DocStatus.equals("NA") || DocStatus.equals("VO") || DocStatus.equals("IN") || DocStatus.equals("RE") || DocStatus.equals("CL") || DocStatus.equals("??") || DocStatus.equals("IP") || DocStatus.equals("WP") || DocStatus.equals("WC")); else throw new IllegalArgumentException ("DocStatus Invalid value - " + DocStatus + " - Reference_ID=131 - DR - CO - AP - NA - VO - IN - RE - CL - ?? - IP - WP - WC"); + if (DocStatus.length() > 2) + { + log.warning("Length > 2 - truncated"); + DocStatus = DocStatus.substring(0, 2); + } + set_Value (COLUMNNAME_DocStatus, DocStatus); + } + + /** Get Document Status. + @return The current status of the document + */ + public String getDocStatus () + { + return (String)get_Value(COLUMNNAME_DocStatus); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 30); + } + 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 Freight Amount. + @param FreightAmt + Freight Amount + */ + public void setFreightAmt (BigDecimal FreightAmt) + { + set_Value (COLUMNNAME_FreightAmt, FreightAmt); + } + + /** Get Freight Amount. + @return Freight Amount + */ + public BigDecimal getFreightAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_FreightAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** FreightCostRule AD_Reference_ID=153 */ + public static final int FREIGHTCOSTRULE_AD_Reference_ID=153; + /** Freight included = I */ + public static final String FREIGHTCOSTRULE_FreightIncluded = "I"; + /** Fix price = F */ + public static final String FREIGHTCOSTRULE_FixPrice = "F"; + /** Calculated = C */ + public static final String FREIGHTCOSTRULE_Calculated = "C"; + /** Line = L */ + public static final String FREIGHTCOSTRULE_Line = "L"; + /** Set Freight Cost Rule. + @param FreightCostRule + Method for charging Freight + */ + public void setFreightCostRule (String FreightCostRule) + { + + if (FreightCostRule == null || FreightCostRule.equals("I") || FreightCostRule.equals("F") || FreightCostRule.equals("C") || FreightCostRule.equals("L")); else throw new IllegalArgumentException ("FreightCostRule Invalid value - " + FreightCostRule + " - Reference_ID=153 - I - F - C - L"); + if (FreightCostRule != null && FreightCostRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + FreightCostRule = FreightCostRule.substring(0, 1); + } + set_Value (COLUMNNAME_FreightCostRule, FreightCostRule); + } + + /** Get Freight Cost Rule. + @return Method for charging Freight + */ + public String getFreightCostRule () + { + return (String)get_Value(COLUMNNAME_FreightCostRule); + } + + /** Set Approved. + @param IsApproved + Indicates if this document requires approval + */ + public void setIsApproved (boolean IsApproved) + { + set_Value (COLUMNNAME_IsApproved, Boolean.valueOf(IsApproved)); + } + + /** Get Approved. + @return Indicates if this document requires approval + */ + public boolean isApproved () + { + Object oo = get_Value(COLUMNNAME_IsApproved); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set In Transit. + @param IsInTransit + Movement is in transit + */ + public void setIsInTransit (boolean IsInTransit) + { + set_Value (COLUMNNAME_IsInTransit, Boolean.valueOf(IsInTransit)); + } + + /** Get In Transit. + @return Movement is in transit + */ + public boolean isInTransit () + { + Object oo = get_Value(COLUMNNAME_IsInTransit); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Inventory Move. + @param M_Movement_ID + Movement of Inventory + */ + public void setM_Movement_ID (int M_Movement_ID) + { + if (M_Movement_ID < 1) + throw new IllegalArgumentException ("M_Movement_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Movement_ID, Integer.valueOf(M_Movement_ID)); + } + + /** Get Inventory Move. + @return Movement of Inventory + */ + public int getM_Movement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Movement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Shipper getM_Shipper() throws Exception + { + Class clazz = MTable.getClass(I_M_Shipper.Table_Name); + I_M_Shipper result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Shipper)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Shipper_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Shipper. + @param M_Shipper_ID + Method or manner of product delivery + */ + public void setM_Shipper_ID (int M_Shipper_ID) + { + if (M_Shipper_ID < 1) + set_Value (COLUMNNAME_M_Shipper_ID, null); + else + set_Value (COLUMNNAME_M_Shipper_ID, Integer.valueOf(M_Shipper_ID)); + } + + /** Get Shipper. + @return Method or manner of product delivery + */ + public int getM_Shipper_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Shipper_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Movement Date. + @param MovementDate + Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate) + { + if (MovementDate == null) + throw new IllegalArgumentException ("MovementDate is mandatory."); + set_Value (COLUMNNAME_MovementDate, MovementDate); + } + + /** Get Movement Date. + @return Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate () + { + return (Timestamp)get_Value(COLUMNNAME_MovementDate); + } + + /** Set Posted. + @param Posted + Posting status + */ + public void setPosted (boolean Posted) + { + set_Value (COLUMNNAME_Posted, Boolean.valueOf(Posted)); + } + + /** Get Posted. + @return Posting status + */ + public boolean isPosted () + { + Object oo = get_Value(COLUMNNAME_Posted); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** PriorityRule AD_Reference_ID=154 */ + public static final int PRIORITYRULE_AD_Reference_ID=154; + /** High = 3 */ + public static final String PRIORITYRULE_High = "3"; + /** Medium = 5 */ + public static final String PRIORITYRULE_Medium = "5"; + /** Low = 7 */ + public static final String PRIORITYRULE_Low = "7"; + /** Urgent = 1 */ + public static final String PRIORITYRULE_Urgent = "1"; + /** Minor = 9 */ + public static final String PRIORITYRULE_Minor = "9"; + /** Set Priority. + @param PriorityRule + Priority of a document + */ + public void setPriorityRule (String PriorityRule) + { + + if (PriorityRule == null || PriorityRule.equals("3") || PriorityRule.equals("5") || PriorityRule.equals("7") || PriorityRule.equals("1") || PriorityRule.equals("9")); else throw new IllegalArgumentException ("PriorityRule Invalid value - " + PriorityRule + " - Reference_ID=154 - 3 - 5 - 7 - 1 - 9"); + if (PriorityRule != null && PriorityRule.length() > 1) + { + log.warning("Length > 1 - truncated"); + PriorityRule = PriorityRule.substring(0, 1); + } + set_Value (COLUMNNAME_PriorityRule, PriorityRule); + } + + /** Get Priority. + @return Priority of a document + */ + public String getPriorityRule () + { + return (String)get_Value(COLUMNNAME_PriorityRule); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. + @return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Reversal_ID AD_Reference_ID=53252 */ + public static final int REVERSAL_ID_AD_Reference_ID=53252; + /** Set Reversal ID. + @param Reversal_ID + ID of document reversal + */ + public void setReversal_ID (int Reversal_ID) + { + if (Reversal_ID < 1) + set_Value (COLUMNNAME_Reversal_ID, null); + else + set_Value (COLUMNNAME_Reversal_ID, Integer.valueOf(Reversal_ID)); + } + + /** Get Reversal ID. + @return ID of document reversal + */ + public int getReversal_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Reversal_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** SalesRep_ID AD_Reference_ID=190 */ + public static final int SALESREP_ID_AD_Reference_ID=190; + /** 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(); + } + + /** User1_ID AD_Reference_ID=134 */ + public static final int USER1_ID_AD_Reference_ID=134; + /** Set User List 1. + @param User1_ID + User defined list element #1 + */ + public void setUser1_ID (int User1_ID) + { + if (User1_ID < 1) + set_Value (COLUMNNAME_User1_ID, null); + else + set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); + } + + /** Get User List 1. + @return User defined list element #1 + */ + public int getUser1_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** User2_ID AD_Reference_ID=137 */ + public static final int USER2_ID_AD_Reference_ID=137; + /** Set User List 2. + @param User2_ID + User defined list element #2 + */ + public void setUser2_ID (int User2_ID) + { + if (User2_ID < 1) + set_Value (COLUMNNAME_User2_ID, null); + else + set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); + } + + /** Get User List 2. + @return User defined list element #2 + */ + public int getUser2_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_MovementLine.java b/base/src/org/compiere/model/X_M_MovementLine.java new file mode 100644 index 0000000000..f870321fd9 --- /dev/null +++ b/base/src/org/compiere/model/X_M_MovementLine.java @@ -0,0 +1,476 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for M_MovementLine + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_M_MovementLine extends PO implements I_M_MovementLine, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_MovementLine (Properties ctx, int M_MovementLine_ID, String trxName) + { + super (ctx, M_MovementLine_ID, trxName); + /** if (M_MovementLine_ID == 0) + { + setLine (0); +// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM M_MovementLine WHERE M_Movement_ID=@M_Movement_ID@ + setM_LocatorTo_ID (0); +// @M_LocatorTo_ID@ + setM_Locator_ID (0); +// @M_Locator_ID@ + setM_MovementLine_ID (0); + setM_Movement_ID (0); + setM_Product_ID (0); + setMovementQty (Env.ZERO); +// 1 + setProcessed (false); + setTargetQty (Env.ZERO); +// 0 + } */ + } + + /** Load Constructor */ + public X_M_MovementLine (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - 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_MovementLine[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Confirmed Quantity. + @param ConfirmedQty + Confirmation of a received quantity + */ + public void setConfirmedQty (BigDecimal ConfirmedQty) + { + set_Value (COLUMNNAME_ConfirmedQty, ConfirmedQty); + } + + /** Get Confirmed Quantity. + @return Confirmation of a received quantity + */ + public BigDecimal getConfirmedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ConfirmedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + public org.eevolution.model.I_DD_OrderLine getDD_OrderLine() throws Exception + { + Class clazz = MTable.getClass(org.eevolution.model.I_DD_OrderLine.Table_Name); + org.eevolution.model.I_DD_OrderLine result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (org.eevolution.model.I_DD_OrderLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getDD_OrderLine_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Distribution Order Line. + @param DD_OrderLine_ID Distribution Order Line */ + public void setDD_OrderLine_ID (int DD_OrderLine_ID) + { + if (DD_OrderLine_ID < 1) + set_Value (COLUMNNAME_DD_OrderLine_ID, null); + else + set_Value (COLUMNNAME_DD_OrderLine_ID, Integer.valueOf(DD_OrderLine_ID)); + } + + /** Get Distribution Order Line. + @return Distribution Order Line */ + public int getDD_OrderLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DD_OrderLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Line No. + @param Line + Unique line for this document + */ + public void setLine (int Line) + { + set_Value (COLUMNNAME_Line, Integer.valueOf(Line)); + } + + /** Get Line No. + @return Unique line for this document + */ + public int getLine () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Line); + 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(getLine())); + } + + /** Set Attribute Set Instance To. + @param M_AttributeSetInstanceTo_ID + Target Product Attribute Set Instance + */ + public void setM_AttributeSetInstanceTo_ID (int M_AttributeSetInstanceTo_ID) + { + if (M_AttributeSetInstanceTo_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstanceTo_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstanceTo_ID, Integer.valueOf(M_AttributeSetInstanceTo_ID)); + } + + /** Get Attribute Set Instance To. + @return Target Product Attribute Set Instance + */ + public int getM_AttributeSetInstanceTo_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstanceTo_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 1) + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, null); + else + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** M_LocatorTo_ID AD_Reference_ID=191 */ + public static final int M_LOCATORTO_ID_AD_Reference_ID=191; + /** Set Locator To. + @param M_LocatorTo_ID + Location inventory is moved to + */ + public void setM_LocatorTo_ID (int M_LocatorTo_ID) + { + if (M_LocatorTo_ID < 1) + throw new IllegalArgumentException ("M_LocatorTo_ID is mandatory."); + set_Value (COLUMNNAME_M_LocatorTo_ID, Integer.valueOf(M_LocatorTo_ID)); + } + + /** Get Locator To. + @return Location inventory is moved to + */ + public int getM_LocatorTo_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_LocatorTo_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Locator. + @param M_Locator_ID + Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID) + { + if (M_Locator_ID < 1) + throw new IllegalArgumentException ("M_Locator_ID is mandatory."); + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + } + + /** Get Locator. + @return Warehouse Locator + */ + public int getM_Locator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Move Line. + @param M_MovementLine_ID + Inventory Move document Line + */ + public void setM_MovementLine_ID (int M_MovementLine_ID) + { + if (M_MovementLine_ID < 1) + throw new IllegalArgumentException ("M_MovementLine_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_MovementLine_ID, Integer.valueOf(M_MovementLine_ID)); + } + + /** Get Move Line. + @return Inventory Move document Line + */ + public int getM_MovementLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_MovementLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Movement getM_Movement() throws Exception + { + Class clazz = MTable.getClass(I_M_Movement.Table_Name); + I_M_Movement result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Movement)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Movement_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Inventory Move. + @param M_Movement_ID + Movement of Inventory + */ + public void setM_Movement_ID (int M_Movement_ID) + { + if (M_Movement_ID < 1) + throw new IllegalArgumentException ("M_Movement_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Movement_ID, Integer.valueOf(M_Movement_ID)); + } + + /** Get Inventory Move. + @return Movement of Inventory + */ + public int getM_Movement_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Movement_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** M_Product_ID AD_Reference_ID=171 */ + public static final int M_PRODUCT_ID_AD_Reference_ID=171; + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Movement Quantity. + @param MovementQty + Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty) + { + if (MovementQty == null) + throw new IllegalArgumentException ("MovementQty is mandatory."); + set_Value (COLUMNNAME_MovementQty, MovementQty); + } + + /** Get Movement Quantity. + @return Quantity of a product moved. + */ + public BigDecimal getMovementQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MovementQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Scrapped Quantity. + @param ScrappedQty + The Quantity scrapped due to QA issues + */ + public void setScrappedQty (BigDecimal ScrappedQty) + { + set_Value (COLUMNNAME_ScrappedQty, ScrappedQty); + } + + /** Get Scrapped Quantity. + @return The Quantity scrapped due to QA issues + */ + public BigDecimal getScrappedQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ScrappedQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Target Quantity. + @param TargetQty + Target Movement Quantity + */ + public void setTargetQty (BigDecimal TargetQty) + { + if (TargetQty == null) + throw new IllegalArgumentException ("TargetQty is mandatory."); + set_Value (COLUMNNAME_TargetQty, TargetQty); + } + + /** Get Target Quantity. + @return Target Movement Quantity + */ + public BigDecimal getTargetQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_TargetQty); + 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) + { + throw new IllegalArgumentException ("Value is virtual column"); } + + /** 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); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Product.java b/base/src/org/compiere/model/X_M_Product.java new file mode 100644 index 0000000000..cd3d872f66 --- /dev/null +++ b/base/src/org/compiere/model/X_M_Product.java @@ -0,0 +1,1437 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for M_Product + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_M_Product extends PO implements I_M_Product, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Product (Properties ctx, int M_Product_ID, String trxName) + { + super (ctx, M_Product_ID, trxName); + /** if (M_Product_ID == 0) + { + setC_TaxCategory_ID (0); + setC_UOM_ID (0); + setIsBOM (false); +// N + setIsDropShip (false); + setIsExcludeAutoDelivery (false); +// N + setIsInvoicePrintDetails (false); + setIsPickListPrintDetails (false); + setIsPurchased (true); +// Y + setIsSelfService (true); +// Y + setIsSold (true); +// Y + setIsStocked (true); +// Y + setIsSummary (false); + setIsVerified (false); +// N + setIsWebStoreFeatured (false); + setM_AttributeSetInstance_ID (0); + setM_Product_Category_ID (0); + setM_Product_ID (0); + setName (null); + setProductType (null); +// I + setValue (null); + } */ + } + + /** Load Constructor */ + public X_M_Product (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_Product[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_RevenueRecognition getC_RevenueRecognition() throws Exception + { + Class clazz = MTable.getClass(I_C_RevenueRecognition.Table_Name); + I_C_RevenueRecognition result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_RevenueRecognition)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_RevenueRecognition_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Revenue Recognition. + @param C_RevenueRecognition_ID + Method for recording revenue + */ + public void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID) + { + if (C_RevenueRecognition_ID < 1) + set_Value (COLUMNNAME_C_RevenueRecognition_ID, null); + else + set_Value (COLUMNNAME_C_RevenueRecognition_ID, Integer.valueOf(C_RevenueRecognition_ID)); + } + + /** Get Revenue Recognition. + @return Method for recording revenue + */ + public int getC_RevenueRecognition_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_RevenueRecognition_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Subscription Type. + @param C_SubscriptionType_ID + Type of subscription + */ + public void setC_SubscriptionType_ID (int C_SubscriptionType_ID) + { + if (C_SubscriptionType_ID < 1) + set_Value (COLUMNNAME_C_SubscriptionType_ID, null); + else + set_Value (COLUMNNAME_C_SubscriptionType_ID, Integer.valueOf(C_SubscriptionType_ID)); + } + + /** Get Subscription Type. + @return Type of subscription + */ + public int getC_SubscriptionType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_SubscriptionType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_TaxCategory getC_TaxCategory() throws Exception + { + Class clazz = MTable.getClass(I_C_TaxCategory.Table_Name); + I_C_TaxCategory result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_TaxCategory)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_TaxCategory_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Tax Category. + @param C_TaxCategory_ID + Tax Category + */ + public void setC_TaxCategory_ID (int C_TaxCategory_ID) + { + if (C_TaxCategory_ID < 1) + throw new IllegalArgumentException ("C_TaxCategory_ID is mandatory."); + set_Value (COLUMNNAME_C_TaxCategory_ID, Integer.valueOf(C_TaxCategory_ID)); + } + + /** Get Tax Category. + @return Tax Category + */ + public int getC_TaxCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_TaxCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_UOM getC_UOM() throws Exception + { + Class clazz = MTable.getClass(I_C_UOM.Table_Name); + I_C_UOM result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_UOM)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_UOM_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set UOM. + @param C_UOM_ID + Unit of Measure + */ + public void setC_UOM_ID (int C_UOM_ID) + { + if (C_UOM_ID < 1) + throw new IllegalArgumentException ("C_UOM_ID is mandatory."); + set_Value (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); + } + + /** Get UOM. + @return Unit of Measure + */ + public int getC_UOM_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Classification. + @param Classification + Classification for grouping + */ + public void setClassification (String Classification) + { + + if (Classification != null && Classification.length() > 12) + { + log.warning("Length > 12 - truncated"); + Classification = Classification.substring(0, 12); + } + set_Value (COLUMNNAME_Classification, Classification); + } + + /** Get Classification. + @return Classification for grouping + */ + public String getClassification () + { + return (String)get_Value(COLUMNNAME_Classification); + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Description URL. + @param DescriptionURL + URL for the description + */ + public void setDescriptionURL (String DescriptionURL) + { + + if (DescriptionURL != null && DescriptionURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + DescriptionURL = DescriptionURL.substring(0, 120); + } + set_Value (COLUMNNAME_DescriptionURL, DescriptionURL); + } + + /** Get Description URL. + @return URL for the description + */ + public String getDescriptionURL () + { + return (String)get_Value(COLUMNNAME_DescriptionURL); + } + + /** Set Discontinued. + @param Discontinued + This product is no longer available + */ + public void setDiscontinued (boolean Discontinued) + { + set_Value (COLUMNNAME_Discontinued, Boolean.valueOf(Discontinued)); + } + + /** Get Discontinued. + @return This product is no longer available + */ + public boolean isDiscontinued () + { + Object oo = get_Value(COLUMNNAME_Discontinued); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Discontinued by. + @param DiscontinuedBy + Discontinued By + */ + public void setDiscontinuedBy (Timestamp DiscontinuedBy) + { + set_Value (COLUMNNAME_DiscontinuedBy, DiscontinuedBy); + } + + /** Get Discontinued by. + @return Discontinued By + */ + public Timestamp getDiscontinuedBy () + { + return (Timestamp)get_Value(COLUMNNAME_DiscontinuedBy); + } + + /** Set Document Note. + @param DocumentNote + Additional information for a Document + */ + public void setDocumentNote (String DocumentNote) + { + + if (DocumentNote != null && DocumentNote.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + DocumentNote = DocumentNote.substring(0, 2000); + } + set_Value (COLUMNNAME_DocumentNote, DocumentNote); + } + + /** Get Document Note. + @return Additional information for a Document + */ + public String getDocumentNote () + { + return (String)get_Value(COLUMNNAME_DocumentNote); + } + + /** Set Group1. + @param Group1 Group1 */ + public void setGroup1 (String Group1) + { + + if (Group1 != null && Group1.length() > 255) + { + log.warning("Length > 255 - truncated"); + Group1 = Group1.substring(0, 255); + } + set_Value (COLUMNNAME_Group1, Group1); + } + + /** Get Group1. + @return Group1 */ + public String getGroup1 () + { + return (String)get_Value(COLUMNNAME_Group1); + } + + /** Set Group2. + @param Group2 Group2 */ + public void setGroup2 (String Group2) + { + + if (Group2 != null && Group2.length() > 255) + { + log.warning("Length > 255 - truncated"); + Group2 = Group2.substring(0, 255); + } + set_Value (COLUMNNAME_Group2, Group2); + } + + /** Get Group2. + @return Group2 */ + public String getGroup2 () + { + return (String)get_Value(COLUMNNAME_Group2); + } + + /** Set Guarantee Days. + @param GuaranteeDays + Number of days the product is guaranteed or available + */ + public void setGuaranteeDays (int GuaranteeDays) + { + set_Value (COLUMNNAME_GuaranteeDays, Integer.valueOf(GuaranteeDays)); + } + + /** Get Guarantee Days. + @return Number of days the product is guaranteed or available + */ + public int getGuaranteeDays () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GuaranteeDays); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Min Guarantee Days. + @param GuaranteeDaysMin + Minumum number of guarantee days + */ + public void setGuaranteeDaysMin (int GuaranteeDaysMin) + { + set_Value (COLUMNNAME_GuaranteeDaysMin, Integer.valueOf(GuaranteeDaysMin)); + } + + /** Get Min Guarantee Days. + @return Minumum number of guarantee days + */ + public int getGuaranteeDaysMin () + { + Integer ii = (Integer)get_Value(COLUMNNAME_GuaranteeDaysMin); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Comment/Help. + @param Help + Comment or Hint + */ + public void setHelp (String Help) + { + + if (Help != null && Help.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Help = Help.substring(0, 2000); + } + set_Value (COLUMNNAME_Help, Help); + } + + /** Get Comment/Help. + @return Comment or Hint + */ + public String getHelp () + { + return (String)get_Value(COLUMNNAME_Help); + } + + /** Set Image URL. + @param ImageURL + URL of image + */ + public void setImageURL (String ImageURL) + { + + if (ImageURL != null && ImageURL.length() > 120) + { + log.warning("Length > 120 - truncated"); + ImageURL = ImageURL.substring(0, 120); + } + set_Value (COLUMNNAME_ImageURL, ImageURL); + } + + /** Get Image URL. + @return URL of image + */ + public String getImageURL () + { + return (String)get_Value(COLUMNNAME_ImageURL); + } + + /** Set Bill of Materials. + @param IsBOM + Bill of Materials + */ + public void setIsBOM (boolean IsBOM) + { + set_Value (COLUMNNAME_IsBOM, Boolean.valueOf(IsBOM)); + } + + /** Get Bill of Materials. + @return Bill of Materials + */ + public boolean isBOM () + { + Object oo = get_Value(COLUMNNAME_IsBOM); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Drop Shipment. + @param IsDropShip + Drop Shipments are sent from the Vendor directly to the Customer + */ + public void setIsDropShip (boolean IsDropShip) + { + set_Value (COLUMNNAME_IsDropShip, Boolean.valueOf(IsDropShip)); + } + + /** Get Drop Shipment. + @return Drop Shipments are sent from the Vendor directly to the Customer + */ + public boolean isDropShip () + { + Object oo = get_Value(COLUMNNAME_IsDropShip); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Exclude Auto Delivery. + @param IsExcludeAutoDelivery + Exclude from automatic Delivery + */ + public void setIsExcludeAutoDelivery (boolean IsExcludeAutoDelivery) + { + set_Value (COLUMNNAME_IsExcludeAutoDelivery, Boolean.valueOf(IsExcludeAutoDelivery)); + } + + /** Get Exclude Auto Delivery. + @return Exclude from automatic Delivery + */ + public boolean isExcludeAutoDelivery () + { + Object oo = get_Value(COLUMNNAME_IsExcludeAutoDelivery); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Print detail records on invoice . + @param IsInvoicePrintDetails + Print detail BOM elements on the invoice + */ + public void setIsInvoicePrintDetails (boolean IsInvoicePrintDetails) + { + set_Value (COLUMNNAME_IsInvoicePrintDetails, Boolean.valueOf(IsInvoicePrintDetails)); + } + + /** Get Print detail records on invoice . + @return Print detail BOM elements on the invoice + */ + public boolean isInvoicePrintDetails () + { + Object oo = get_Value(COLUMNNAME_IsInvoicePrintDetails); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Print detail records on pick list. + @param IsPickListPrintDetails + Print detail BOM elements on the pick list + */ + public void setIsPickListPrintDetails (boolean IsPickListPrintDetails) + { + set_Value (COLUMNNAME_IsPickListPrintDetails, Boolean.valueOf(IsPickListPrintDetails)); + } + + /** Get Print detail records on pick list. + @return Print detail BOM elements on the pick list + */ + public boolean isPickListPrintDetails () + { + Object oo = get_Value(COLUMNNAME_IsPickListPrintDetails); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Purchased. + @param IsPurchased + Organization purchases this product + */ + public void setIsPurchased (boolean IsPurchased) + { + set_Value (COLUMNNAME_IsPurchased, Boolean.valueOf(IsPurchased)); + } + + /** Get Purchased. + @return Organization purchases this product + */ + public boolean isPurchased () + { + Object oo = get_Value(COLUMNNAME_IsPurchased); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_Value (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sold. + @param IsSold + Organization sells this product + */ + public void setIsSold (boolean IsSold) + { + set_Value (COLUMNNAME_IsSold, Boolean.valueOf(IsSold)); + } + + /** Get Sold. + @return Organization sells this product + */ + public boolean isSold () + { + Object oo = get_Value(COLUMNNAME_IsSold); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Stocked. + @param IsStocked + Organization stocks this product + */ + public void setIsStocked (boolean IsStocked) + { + set_Value (COLUMNNAME_IsStocked, Boolean.valueOf(IsStocked)); + } + + /** Get Stocked. + @return Organization stocks this product + */ + public boolean isStocked () + { + Object oo = get_Value(COLUMNNAME_IsStocked); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Summary Level. + @param IsSummary + This is a summary entity + */ + public void setIsSummary (boolean IsSummary) + { + set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary)); + } + + /** Get Summary Level. + @return This is a summary entity + */ + public boolean isSummary () + { + Object oo = get_Value(COLUMNNAME_IsSummary); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Verified. + @param IsVerified + The BOM configuration has been verified + */ + public void setIsVerified (boolean IsVerified) + { + set_ValueNoCheck (COLUMNNAME_IsVerified, Boolean.valueOf(IsVerified)); + } + + /** Get Verified. + @return The BOM configuration has been verified + */ + public boolean isVerified () + { + Object oo = get_Value(COLUMNNAME_IsVerified); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Featured in Web Store. + @param IsWebStoreFeatured + If selected, the product is displayed in the inital or any empy search + */ + public void setIsWebStoreFeatured (boolean IsWebStoreFeatured) + { + set_Value (COLUMNNAME_IsWebStoreFeatured, Boolean.valueOf(IsWebStoreFeatured)); + } + + /** Get Featured in Web Store. + @return If selected, the product is displayed in the inital or any empy search + */ + public boolean isWebStoreFeatured () + { + Object oo = get_Value(COLUMNNAME_IsWebStoreFeatured); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set LowLevel. + @param LowLevel LowLevel */ + public void setLowLevel (int LowLevel) + { + set_Value (COLUMNNAME_LowLevel, Integer.valueOf(LowLevel)); + } + + /** Get LowLevel. + @return LowLevel */ + public int getLowLevel () + { + Integer ii = (Integer)get_Value(COLUMNNAME_LowLevel); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_Value (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_AttributeSet getM_AttributeSet() throws Exception + { + Class clazz = MTable.getClass(I_M_AttributeSet.Table_Name); + I_M_AttributeSet result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_AttributeSet)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_AttributeSet_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Attribute Set. + @param M_AttributeSet_ID + Product Attribute Set + */ + public void setM_AttributeSet_ID (int M_AttributeSet_ID) + { + if (M_AttributeSet_ID < 1) + set_Value (COLUMNNAME_M_AttributeSet_ID, null); + else + set_Value (COLUMNNAME_M_AttributeSet_ID, Integer.valueOf(M_AttributeSet_ID)); + } + + /** Get Attribute Set. + @return Product Attribute Set + */ + public int getM_AttributeSet_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSet_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_FreightCategory getM_FreightCategory() throws Exception + { + Class clazz = MTable.getClass(I_M_FreightCategory.Table_Name); + I_M_FreightCategory result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_FreightCategory)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_FreightCategory_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Freight Category. + @param M_FreightCategory_ID + Category of the Freight + */ + public void setM_FreightCategory_ID (int M_FreightCategory_ID) + { + if (M_FreightCategory_ID < 1) + set_Value (COLUMNNAME_M_FreightCategory_ID, null); + else + set_Value (COLUMNNAME_M_FreightCategory_ID, Integer.valueOf(M_FreightCategory_ID)); + } + + /** Get Freight Category. + @return Category of the Freight + */ + public int getM_FreightCategory_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_FreightCategory_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Locator. + @param M_Locator_ID + Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID) + { + if (M_Locator_ID < 1) + set_Value (COLUMNNAME_M_Locator_ID, null); + else + set_Value (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + } + + /** Get Locator. + @return Warehouse Locator + */ + public int getM_Locator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** M_Product_Category_ID AD_Reference_ID=163 */ + public static final int M_PRODUCT_CATEGORY_ID_AD_Reference_ID=163; + public I_M_Product_Category getM_Product_Category() throws Exception + { + Class clazz = MTable.getClass(I_M_Product_Category.Table_Name); + I_M_Product_Category result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Product_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_Category_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Product Category. + @param M_Product_Category_ID + Category of a Product + */ + public void setM_Product_Category_ID (int M_Product_Category_ID) + { + if (M_Product_Category_ID < 1) + throw new IllegalArgumentException ("M_Product_Category_ID is mandatory."); + set_Value (COLUMNNAME_M_Product_Category_ID, Integer.valueOf(M_Product_Category_ID)); + } + + /** Get Product Category. + @return Category of a Product + */ + public int getM_Product_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + 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(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + + if (Name.length() > 255) + { + log.warning("Length > 255 - truncated"); + Name = Name.substring(0, 255); + } + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName () + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** Set Process Now. + @param Processing Process Now */ + public void setProcessing (boolean Processing) + { + set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing)); + } + + /** Get Process Now. + @return Process Now */ + public boolean isProcessing () + { + Object oo = get_Value(COLUMNNAME_Processing); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** ProductType AD_Reference_ID=270 */ + public static final int PRODUCTTYPE_AD_Reference_ID=270; + /** Item = I */ + public static final String PRODUCTTYPE_Item = "I"; + /** Service = S */ + public static final String PRODUCTTYPE_Service = "S"; + /** Resource = R */ + public static final String PRODUCTTYPE_Resource = "R"; + /** Expense type = E */ + public static final String PRODUCTTYPE_ExpenseType = "E"; + /** Online = O */ + public static final String PRODUCTTYPE_Online = "O"; + /** Set Product Type. + @param ProductType + Type of product + */ + public void setProductType (String ProductType) + { + if (ProductType == null) throw new IllegalArgumentException ("ProductType is mandatory"); + if (ProductType.equals("I") || ProductType.equals("S") || ProductType.equals("R") || ProductType.equals("E") || ProductType.equals("O")); else throw new IllegalArgumentException ("ProductType Invalid value - " + ProductType + " - Reference_ID=270 - I - S - R - E - O"); + if (ProductType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ProductType = ProductType.substring(0, 1); + } + set_Value (COLUMNNAME_ProductType, ProductType); + } + + /** Get Product Type. + @return Type of product + */ + public String getProductType () + { + return (String)get_Value(COLUMNNAME_ProductType); + } + + public I_R_MailText getR_MailText() throws Exception + { + Class clazz = MTable.getClass(I_R_MailText.Table_Name); + I_R_MailText result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_R_MailText)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_MailText_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Mail Template. + @param R_MailText_ID + Text templates for mailings + */ + public void setR_MailText_ID (int R_MailText_ID) + { + if (R_MailText_ID < 1) + set_Value (COLUMNNAME_R_MailText_ID, null); + else + set_Value (COLUMNNAME_R_MailText_ID, Integer.valueOf(R_MailText_ID)); + } + + /** Get Mail Template. + @return Text templates for mailings + */ + public int getR_MailText_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_MailText_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set SKU. + @param SKU + Stock Keeping Unit + */ + public void setSKU (String SKU) + { + + if (SKU != null && SKU.length() > 30) + { + log.warning("Length > 30 - truncated"); + SKU = SKU.substring(0, 30); + } + set_Value (COLUMNNAME_SKU, SKU); + } + + /** Get SKU. + @return Stock Keeping Unit + */ + public String getSKU () + { + return (String)get_Value(COLUMNNAME_SKU); + } + + public I_S_ExpenseType getS_ExpenseType() throws Exception + { + Class clazz = MTable.getClass(I_S_ExpenseType.Table_Name); + I_S_ExpenseType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_S_ExpenseType)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_ExpenseType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Expense Type. + @param S_ExpenseType_ID + Expense report type + */ + public void setS_ExpenseType_ID (int S_ExpenseType_ID) + { + if (S_ExpenseType_ID < 1) + set_ValueNoCheck (COLUMNNAME_S_ExpenseType_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_ExpenseType_ID, Integer.valueOf(S_ExpenseType_ID)); + } + + /** Get Expense Type. + @return Expense report type + */ + public int getS_ExpenseType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_ExpenseType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_S_Resource getS_Resource() throws Exception + { + Class clazz = MTable.getClass(I_S_Resource.Table_Name); + I_S_Resource result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_S_Resource)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_Resource_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Resource. + @param S_Resource_ID + Resource + */ + public void setS_Resource_ID (int S_Resource_ID) + { + if (S_Resource_ID < 1) + set_ValueNoCheck (COLUMNNAME_S_Resource_ID, null); + else + set_ValueNoCheck (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID)); + } + + /** Get Resource. + @return Resource + */ + public int getS_Resource_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_Resource_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** SalesRep_ID AD_Reference_ID=190 */ + public static final int SALESREP_ID_AD_Reference_ID=190; + /** 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 Shelf Depth. + @param ShelfDepth + Shelf depth required + */ + public void setShelfDepth (int ShelfDepth) + { + set_Value (COLUMNNAME_ShelfDepth, Integer.valueOf(ShelfDepth)); + } + + /** Get Shelf Depth. + @return Shelf depth required + */ + public int getShelfDepth () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ShelfDepth); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Shelf Height. + @param ShelfHeight + Shelf height required + */ + public void setShelfHeight (BigDecimal ShelfHeight) + { + set_Value (COLUMNNAME_ShelfHeight, ShelfHeight); + } + + /** Get Shelf Height. + @return Shelf height required + */ + public BigDecimal getShelfHeight () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ShelfHeight); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Shelf Width. + @param ShelfWidth + Shelf width required + */ + public void setShelfWidth (int ShelfWidth) + { + set_Value (COLUMNNAME_ShelfWidth, Integer.valueOf(ShelfWidth)); + } + + /** Get Shelf Width. + @return Shelf width required + */ + public int getShelfWidth () + { + Integer ii = (Integer)get_Value(COLUMNNAME_ShelfWidth); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set UPC/EAN. + @param UPC + Bar Code (Universal Product Code or its superset European Article Number) + */ + public void setUPC (String UPC) + { + + if (UPC != null && UPC.length() > 30) + { + log.warning("Length > 30 - truncated"); + UPC = UPC.substring(0, 30); + } + set_Value (COLUMNNAME_UPC, UPC); + } + + /** Get UPC/EAN. + @return Bar Code (Universal Product Code or its superset European Article Number) + */ + public String getUPC () + { + return (String)get_Value(COLUMNNAME_UPC); + } + + /** Set Units Per Pallet. + @param UnitsPerPallet + Units Per Pallet + */ + public void setUnitsPerPallet (BigDecimal UnitsPerPallet) + { + set_Value (COLUMNNAME_UnitsPerPallet, UnitsPerPallet); + } + + /** Get Units Per Pallet. + @return Units Per Pallet + */ + public BigDecimal getUnitsPerPallet () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_UnitsPerPallet); + 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) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 40); + } + 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); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), getValue()); + } + + /** Set Version No. + @param VersionNo + Version Number + */ + public void setVersionNo (String VersionNo) + { + + if (VersionNo != null && VersionNo.length() > 20) + { + log.warning("Length > 20 - truncated"); + VersionNo = VersionNo.substring(0, 20); + } + set_Value (COLUMNNAME_VersionNo, VersionNo); + } + + /** Get Version No. + @return Version Number + */ + public String getVersionNo () + { + return (String)get_Value(COLUMNNAME_VersionNo); + } + + /** Set Volume. + @param Volume + Volume of a product + */ + public void setVolume (BigDecimal Volume) + { + set_Value (COLUMNNAME_Volume, Volume); + } + + /** Get Volume. + @return Volume of a product + */ + public BigDecimal getVolume () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Volume); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Weight. + @param Weight + Weight of a product + */ + public void setWeight (BigDecimal Weight) + { + set_Value (COLUMNNAME_Weight, Weight); + } + + /** Get Weight. + @return Weight of a product + */ + public BigDecimal getWeight () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Weight); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Transaction.java b/base/src/org/compiere/model/X_M_Transaction.java new file mode 100644 index 0000000000..3a217ac064 --- /dev/null +++ b/base/src/org/compiere/model/X_M_Transaction.java @@ -0,0 +1,550 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for M_Transaction + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_M_Transaction extends PO implements I_M_Transaction, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Transaction (Properties ctx, int M_Transaction_ID, String trxName) + { + super (ctx, M_Transaction_ID, trxName); + /** if (M_Transaction_ID == 0) + { + setM_AttributeSetInstance_ID (0); + setM_Locator_ID (0); + setM_Product_ID (0); + setM_Transaction_ID (0); + setMovementDate (new Timestamp(System.currentTimeMillis())); + setMovementQty (Env.ZERO); + setMovementType (null); + } */ + } + + /** Load Constructor */ + public X_M_Transaction (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 1 - 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_Transaction[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_C_ProjectIssue getC_ProjectIssue() throws Exception + { + Class clazz = MTable.getClass(I_C_ProjectIssue.Table_Name); + I_C_ProjectIssue result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_ProjectIssue)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectIssue_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Project Issue. + @param C_ProjectIssue_ID + Project Issues (Material, Labor) + */ + public void setC_ProjectIssue_ID (int C_ProjectIssue_ID) + { + if (C_ProjectIssue_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_ProjectIssue_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_ProjectIssue_ID, Integer.valueOf(C_ProjectIssue_ID)); + } + + /** Get Project Issue. + @return Project Issues (Material, Labor) + */ + public int getC_ProjectIssue_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectIssue_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Attribute Set Instance. + @param M_AttributeSetInstance_ID + Product Attribute Set Instance + */ + public void setM_AttributeSetInstance_ID (int M_AttributeSetInstance_ID) + { + if (M_AttributeSetInstance_ID < 0) + throw new IllegalArgumentException ("M_AttributeSetInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_AttributeSetInstance_ID, Integer.valueOf(M_AttributeSetInstance_ID)); + } + + /** Get Attribute Set Instance. + @return Product Attribute Set Instance + */ + public int getM_AttributeSetInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_AttributeSetInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_InOutLine getM_InOutLine() throws Exception + { + Class clazz = MTable.getClass(I_M_InOutLine.Table_Name); + I_M_InOutLine result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_InOutLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOutLine_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Shipment/Receipt Line. + @param M_InOutLine_ID + Line on Shipment or Receipt document + */ + public void setM_InOutLine_ID (int M_InOutLine_ID) + { + if (M_InOutLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InOutLine_ID, Integer.valueOf(M_InOutLine_ID)); + } + + /** Get Shipment/Receipt Line. + @return Line on Shipment or Receipt document + */ + public int getM_InOutLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOutLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_InventoryLine getM_InventoryLine() throws Exception + { + Class clazz = MTable.getClass(I_M_InventoryLine.Table_Name); + I_M_InventoryLine result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_InventoryLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InventoryLine_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Phys.Inventory Line. + @param M_InventoryLine_ID + Unique line in an Inventory document + */ + public void setM_InventoryLine_ID (int M_InventoryLine_ID) + { + if (M_InventoryLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_InventoryLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_InventoryLine_ID, Integer.valueOf(M_InventoryLine_ID)); + } + + /** Get Phys.Inventory Line. + @return Unique line in an Inventory document + */ + public int getM_InventoryLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InventoryLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Locator. + @param M_Locator_ID + Warehouse Locator + */ + public void setM_Locator_ID (int M_Locator_ID) + { + if (M_Locator_ID < 1) + throw new IllegalArgumentException ("M_Locator_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); + } + + /** Get Locator. + @return Warehouse Locator + */ + public int getM_Locator_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_MovementLine getM_MovementLine() throws Exception + { + Class clazz = MTable.getClass(I_M_MovementLine.Table_Name); + I_M_MovementLine result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_MovementLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_MovementLine_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Move Line. + @param M_MovementLine_ID + Inventory Move document Line + */ + public void setM_MovementLine_ID (int M_MovementLine_ID) + { + if (M_MovementLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_MovementLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_MovementLine_ID, Integer.valueOf(M_MovementLine_ID)); + } + + /** Get Move Line. + @return Inventory Move document Line + */ + public int getM_MovementLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_MovementLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Product getM_Product() throws Exception + { + Class clazz = MTable.getClass(I_M_Product.Table_Name); + I_M_Product result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + 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(); + } + + public I_M_ProductionLine getM_ProductionLine() throws Exception + { + Class clazz = MTable.getClass(I_M_ProductionLine.Table_Name); + I_M_ProductionLine result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_ProductionLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_ProductionLine_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Production Line. + @param M_ProductionLine_ID + Document Line representing a production + */ + public void setM_ProductionLine_ID (int M_ProductionLine_ID) + { + if (M_ProductionLine_ID < 1) + set_ValueNoCheck (COLUMNNAME_M_ProductionLine_ID, null); + else + set_ValueNoCheck (COLUMNNAME_M_ProductionLine_ID, Integer.valueOf(M_ProductionLine_ID)); + } + + /** Get Production Line. + @return Document Line representing a production + */ + public int getM_ProductionLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductionLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Inventory Transaction. + @param M_Transaction_ID Inventory Transaction */ + public void setM_Transaction_ID (int M_Transaction_ID) + { + if (M_Transaction_ID < 1) + throw new IllegalArgumentException ("M_Transaction_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Transaction_ID, Integer.valueOf(M_Transaction_ID)); + } + + /** Get Inventory Transaction. + @return Inventory Transaction */ + public int getM_Transaction_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Transaction_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Movement Date. + @param MovementDate + Date a product was moved in or out of inventory + */ + public void setMovementDate (Timestamp MovementDate) + { + if (MovementDate == null) + throw new IllegalArgumentException ("MovementDate is mandatory."); + set_ValueNoCheck (COLUMNNAME_MovementDate, MovementDate); + } + + /** Get Movement Date. + @return Date a product was moved in or out of inventory + */ + public Timestamp getMovementDate () + { + return (Timestamp)get_Value(COLUMNNAME_MovementDate); + } + + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getMovementDate())); + } + + /** Set Movement Quantity. + @param MovementQty + Quantity of a product moved. + */ + public void setMovementQty (BigDecimal MovementQty) + { + if (MovementQty == null) + throw new IllegalArgumentException ("MovementQty is mandatory."); + set_ValueNoCheck (COLUMNNAME_MovementQty, MovementQty); + } + + /** Get Movement Quantity. + @return Quantity of a product moved. + */ + public BigDecimal getMovementQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MovementQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** MovementType AD_Reference_ID=189 */ + public static final int MOVEMENTTYPE_AD_Reference_ID=189; + /** Customer Shipment = C- */ + public static final String MOVEMENTTYPE_CustomerShipment = "C-"; + /** Customer Returns = C+ */ + public static final String MOVEMENTTYPE_CustomerReturns = "C+"; + /** Vendor Receipts = V+ */ + public static final String MOVEMENTTYPE_VendorReceipts = "V+"; + /** Vendor Returns = V- */ + public static final String MOVEMENTTYPE_VendorReturns = "V-"; + /** Inventory Out = I- */ + public static final String MOVEMENTTYPE_InventoryOut = "I-"; + /** Inventory In = I+ */ + public static final String MOVEMENTTYPE_InventoryIn = "I+"; + /** Movement From = M- */ + public static final String MOVEMENTTYPE_MovementFrom = "M-"; + /** Movement To = M+ */ + public static final String MOVEMENTTYPE_MovementTo = "M+"; + /** Production + = P+ */ + public static final String MOVEMENTTYPE_ProductionPlus = "P+"; + /** Production - = P- */ + public static final String MOVEMENTTYPE_Production_ = "P-"; + /** Work Order + = W+ */ + public static final String MOVEMENTTYPE_WorkOrderPlus = "W+"; + /** Work Order - = W- */ + public static final String MOVEMENTTYPE_WorkOrder_ = "W-"; + /** Set Movement Type. + @param MovementType + Method of moving the inventory + */ + public void setMovementType (String MovementType) + { + if (MovementType == null) throw new IllegalArgumentException ("MovementType is mandatory"); + if (MovementType.equals("C-") || MovementType.equals("C+") || MovementType.equals("V+") || MovementType.equals("V-") || MovementType.equals("I-") || MovementType.equals("I+") || MovementType.equals("M-") || MovementType.equals("M+") || MovementType.equals("P+") || MovementType.equals("P-") || MovementType.equals("W+") || MovementType.equals("W-")); else throw new IllegalArgumentException ("MovementType Invalid value - " + MovementType + " - Reference_ID=189 - C- - C+ - V+ - V- - I- - I+ - M- - M+ - P+ - P- - W+ - W-"); + if (MovementType.length() > 2) + { + log.warning("Length > 2 - truncated"); + MovementType = MovementType.substring(0, 2); + } + set_ValueNoCheck (COLUMNNAME_MovementType, MovementType); + } + + /** Get Movement Type. + @return Method of moving the inventory + */ + public String getMovementType () + { + return (String)get_Value(COLUMNNAME_MovementType); + } + + public org.eevolution.model.I_PP_Order_BOMLine getPP_Order_BOMLine() throws Exception + { + Class clazz = MTable.getClass(org.eevolution.model.I_PP_Order_BOMLine.Table_Name); + org.eevolution.model.I_PP_Order_BOMLine result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (org.eevolution.model.I_PP_Order_BOMLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getPP_Order_BOMLine_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set PP_Order_BOMLine_ID. + @param PP_Order_BOMLine_ID PP_Order_BOMLine_ID */ + public void setPP_Order_BOMLine_ID (int PP_Order_BOMLine_ID) + { + if (PP_Order_BOMLine_ID < 1) + set_Value (COLUMNNAME_PP_Order_BOMLine_ID, null); + else + set_Value (COLUMNNAME_PP_Order_BOMLine_ID, Integer.valueOf(PP_Order_BOMLine_ID)); + } + + /** Get PP_Order_BOMLine_ID. + @return PP_Order_BOMLine_ID */ + public int getPP_Order_BOMLine_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PP_Order_BOMLine_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public org.eevolution.model.I_PP_Order getPP_Order() throws Exception + { + Class clazz = MTable.getClass(org.eevolution.model.I_PP_Order.Table_Name); + org.eevolution.model.I_PP_Order result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (org.eevolution.model.I_PP_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getPP_Order_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set PP_Order_ID. + @param PP_Order_ID PP_Order_ID */ + public void setPP_Order_ID (int PP_Order_ID) + { + if (PP_Order_ID < 1) + set_Value (COLUMNNAME_PP_Order_ID, null); + else + set_Value (COLUMNNAME_PP_Order_ID, Integer.valueOf(PP_Order_ID)); + } + + /** Get PP_Order_ID. + @return PP_Order_ID */ + public int getPP_Order_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_PP_Order_ID); + if (ii == null) + return 0; + return ii.intValue(); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_M_Warehouse.java b/base/src/org/compiere/model/X_M_Warehouse.java new file mode 100644 index 0000000000..87dc191a9b --- /dev/null +++ b/base/src/org/compiere/model/X_M_Warehouse.java @@ -0,0 +1,299 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.util.Properties; +import org.compiere.util.KeyNamePair; + +/** Generated Model for M_Warehouse + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_M_Warehouse extends PO implements I_M_Warehouse, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_M_Warehouse (Properties ctx, int M_Warehouse_ID, String trxName) + { + super (ctx, M_Warehouse_ID, trxName); + /** if (M_Warehouse_ID == 0) + { + setC_Location_ID (0); + setM_Warehouse_ID (0); + setName (null); + setSeparator (null); +// * + setValue (null); + } */ + } + + /** Load Constructor */ + public X_M_Warehouse (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_Warehouse[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + /** Set Address. + @param C_Location_ID + Location or Address + */ + public void setC_Location_ID (int C_Location_ID) + { + if (C_Location_ID < 1) + throw new IllegalArgumentException ("C_Location_ID is mandatory."); + 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 Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set In Transit. + @param IsInTransit + Movement is in transit + */ + public void setIsInTransit (boolean IsInTransit) + { + set_Value (COLUMNNAME_IsInTransit, Boolean.valueOf(IsInTransit)); + } + + /** Get In Transit. + @return Movement is in transit + */ + public boolean isInTransit () + { + Object oo = get_Value(COLUMNNAME_IsInTransit); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** M_WarehouseSource_ID AD_Reference_ID=197 */ + public static final int M_WAREHOUSESOURCE_ID_AD_Reference_ID=197; + /** Set Source Warehouse. + @param M_WarehouseSource_ID + Optional Warehouse to replenish from + */ + public void setM_WarehouseSource_ID (int M_WarehouseSource_ID) + { + if (M_WarehouseSource_ID < 1) + set_Value (COLUMNNAME_M_WarehouseSource_ID, null); + else + set_Value (COLUMNNAME_M_WarehouseSource_ID, Integer.valueOf(M_WarehouseSource_ID)); + } + + /** Get Source Warehouse. + @return Optional Warehouse to replenish from + */ + public int getM_WarehouseSource_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_WarehouseSource_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 60); + } + 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 Replenishment Class. + @param ReplenishmentClass + Custom class to calculate Quantity to Order + */ + public void setReplenishmentClass (String ReplenishmentClass) + { + + if (ReplenishmentClass != null && ReplenishmentClass.length() > 60) + { + log.warning("Length > 60 - truncated"); + ReplenishmentClass = ReplenishmentClass.substring(0, 60); + } + set_Value (COLUMNNAME_ReplenishmentClass, ReplenishmentClass); + } + + /** Get Replenishment Class. + @return Custom class to calculate Quantity to Order + */ + public String getReplenishmentClass () + { + return (String)get_Value(COLUMNNAME_ReplenishmentClass); + } + + /** Set Element Separator. + @param Separator + Element Separator + */ + public void setSeparator (String Separator) + { + if (Separator == null) + throw new IllegalArgumentException ("Separator is mandatory."); + + if (Separator.length() > 1) + { + log.warning("Length > 1 - truncated"); + Separator = Separator.substring(0, 1); + } + set_Value (COLUMNNAME_Separator, Separator); + } + + /** Get Element Separator. + @return Element Separator + */ + public String getSeparator () + { + return (String)get_Value(COLUMNNAME_Separator); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 40); + } + 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); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_R_Request.java b/base/src/org/compiere/model/X_R_Request.java new file mode 100644 index 0000000000..fced1230d2 --- /dev/null +++ b/base/src/org/compiere/model/X_R_Request.java @@ -0,0 +1,1803 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for R_Request + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_R_Request extends PO implements I_R_Request, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_R_Request (Properties ctx, int R_Request_ID, String trxName) + { + super (ctx, R_Request_ID, trxName); + /** if (R_Request_ID == 0) + { + setConfidentialType (null); +// C + setConfidentialTypeEntry (null); +// C + setDocumentNo (null); + setDueType (null); +// 5 + setIsEscalated (false); + setIsInvoiced (false); + setIsSelfService (false); +// N + setPriority (null); +// 5 + setProcessed (false); + setR_RequestType_ID (0); + setR_Request_ID (0); + setRequestAmt (Env.ZERO); + setSalesRep_ID (0); +// @AD_User_ID@ + setSummary (null); + } */ + } + + /** Load Constructor */ + public X_R_Request (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 7 - System - 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_R_Request[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_Role getAD_Role() throws Exception + { + Class clazz = MTable.getClass(I_AD_Role.Table_Name); + I_AD_Role result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_Role)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Role_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Role. + @param AD_Role_ID + Responsibility Role + */ + public void setAD_Role_ID (int AD_Role_ID) + { + if (AD_Role_ID < 1) + set_Value (COLUMNNAME_AD_Role_ID, null); + else + set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID)); + } + + /** Get Role. + @return Responsibility Role + */ + public int getAD_Role_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_Table getAD_Table() throws Exception + { + Class clazz = MTable.getClass(I_AD_Table.Table_Name); + I_AD_Table result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_Table)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Table_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Table. + @param AD_Table_ID + Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_AD_User getAD_User() throws Exception + { + Class clazz = MTable.getClass(I_AD_User.Table_Name); + I_AD_User result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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 I_A_Asset getA_Asset() throws Exception + { + Class clazz = MTable.getClass(I_A_Asset.Table_Name); + I_A_Asset result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_A_Asset)constructor.newInstance(new Object[] {getCtx(), new Integer(getA_Asset_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Asset. + @param A_Asset_ID + Asset used internally or by customers + */ + public void setA_Asset_ID (int A_Asset_ID) + { + if (A_Asset_ID < 1) + set_Value (COLUMNNAME_A_Asset_ID, null); + else + set_Value (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); + } + + /** Get Asset. + @return Asset used internally or by customers + */ + public int getA_Asset_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getC_Activity() throws Exception + { + Class clazz = MTable.getClass(I_C_Activity.Table_Name); + I_C_Activity result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID < 1) + set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner getC_BPartner() throws Exception + { + Class clazz = MTable.getClass(I_C_BPartner.Table_Name); + I_C_BPartner result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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 I_C_Campaign getC_Campaign() throws Exception + { + Class clazz = MTable.getClass(I_C_Campaign.Table_Name); + I_C_Campaign result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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(); + } + + /** C_InvoiceRequest_ID AD_Reference_ID=336 */ + public static final int C_INVOICEREQUEST_ID_AD_Reference_ID=336; + /** Set Request Invoice. + @param C_InvoiceRequest_ID + The generated invoice for this request + */ + public void setC_InvoiceRequest_ID (int C_InvoiceRequest_ID) + { + if (C_InvoiceRequest_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_InvoiceRequest_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_InvoiceRequest_ID, Integer.valueOf(C_InvoiceRequest_ID)); + } + + /** Get Request Invoice. + @return The generated invoice for this request + */ + public int getC_InvoiceRequest_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceRequest_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Invoice getC_Invoice() throws Exception + { + Class clazz = MTable.getClass(I_C_Invoice.Table_Name); + I_C_Invoice result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID < 1) + set_Value (COLUMNNAME_C_Invoice_ID, null); + else + set_Value (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Order getC_Order() throws Exception + { + Class clazz = MTable.getClass(I_C_Order.Table_Name); + I_C_Order result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Order_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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(); + } + + public I_C_Payment getC_Payment() throws Exception + { + Class clazz = MTable.getClass(I_C_Payment.Table_Name); + I_C_Payment result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Payment)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Payment_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Payment. + @param C_Payment_ID + Payment identifier + */ + public void setC_Payment_ID (int C_Payment_ID) + { + if (C_Payment_ID < 1) + set_Value (COLUMNNAME_C_Payment_ID, null); + else + set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID)); + } + + /** Get Payment. + @return Payment identifier + */ + public int getC_Payment_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getC_Project() throws Exception + { + Class clazz = MTable.getClass(I_C_Project.Table_Name); + I_C_Project result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID < 1) + set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set 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); + } + + /** ConfidentialType AD_Reference_ID=340 */ + public static final int CONFIDENTIALTYPE_AD_Reference_ID=340; + /** Public Information = A */ + public static final String CONFIDENTIALTYPE_PublicInformation = "A"; + /** Partner Confidential = C */ + public static final String CONFIDENTIALTYPE_PartnerConfidential = "C"; + /** Internal = I */ + public static final String CONFIDENTIALTYPE_Internal = "I"; + /** Private Information = P */ + public static final String CONFIDENTIALTYPE_PrivateInformation = "P"; + /** Set Confidentiality. + @param ConfidentialType + Type of Confidentiality + */ + public void setConfidentialType (String ConfidentialType) + { + if (ConfidentialType == null) throw new IllegalArgumentException ("ConfidentialType is mandatory"); + if (ConfidentialType.equals("A") || ConfidentialType.equals("C") || ConfidentialType.equals("I") || ConfidentialType.equals("P")); else throw new IllegalArgumentException ("ConfidentialType Invalid value - " + ConfidentialType + " - Reference_ID=340 - A - C - I - P"); + if (ConfidentialType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ConfidentialType = ConfidentialType.substring(0, 1); + } + set_Value (COLUMNNAME_ConfidentialType, ConfidentialType); + } + + /** Get Confidentiality. + @return Type of Confidentiality + */ + public String getConfidentialType () + { + return (String)get_Value(COLUMNNAME_ConfidentialType); + } + + /** ConfidentialTypeEntry AD_Reference_ID=340 */ + public static final int CONFIDENTIALTYPEENTRY_AD_Reference_ID=340; + /** Public Information = A */ + public static final String CONFIDENTIALTYPEENTRY_PublicInformation = "A"; + /** Partner Confidential = C */ + public static final String CONFIDENTIALTYPEENTRY_PartnerConfidential = "C"; + /** Internal = I */ + public static final String CONFIDENTIALTYPEENTRY_Internal = "I"; + /** Private Information = P */ + public static final String CONFIDENTIALTYPEENTRY_PrivateInformation = "P"; + /** Set Entry Confidentiality. + @param ConfidentialTypeEntry + Confidentiality of the individual entry + */ + public void setConfidentialTypeEntry (String ConfidentialTypeEntry) + { + if (ConfidentialTypeEntry == null) throw new IllegalArgumentException ("ConfidentialTypeEntry is mandatory"); + if (ConfidentialTypeEntry.equals("A") || ConfidentialTypeEntry.equals("C") || ConfidentialTypeEntry.equals("I") || ConfidentialTypeEntry.equals("P")); else throw new IllegalArgumentException ("ConfidentialTypeEntry Invalid value - " + ConfidentialTypeEntry + " - Reference_ID=340 - A - C - I - P"); + if (ConfidentialTypeEntry.length() > 1) + { + log.warning("Length > 1 - truncated"); + ConfidentialTypeEntry = ConfidentialTypeEntry.substring(0, 1); + } + set_Value (COLUMNNAME_ConfidentialTypeEntry, ConfidentialTypeEntry); + } + + /** Get Entry Confidentiality. + @return Confidentiality of the individual entry + */ + public String getConfidentialTypeEntry () + { + return (String)get_Value(COLUMNNAME_ConfidentialTypeEntry); + } + + /** Set Complete Plan. + @param DateCompletePlan + Planned Completion Date + */ + public void setDateCompletePlan (Timestamp DateCompletePlan) + { + set_Value (COLUMNNAME_DateCompletePlan, DateCompletePlan); + } + + /** Get Complete Plan. + @return Planned Completion Date + */ + public Timestamp getDateCompletePlan () + { + return (Timestamp)get_Value(COLUMNNAME_DateCompletePlan); + } + + /** Set Date last action. + @param DateLastAction + Date this request was last acted on + */ + public void setDateLastAction (Timestamp DateLastAction) + { + set_ValueNoCheck (COLUMNNAME_DateLastAction, DateLastAction); + } + + /** Get Date last action. + @return Date this request was last acted on + */ + public Timestamp getDateLastAction () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastAction); + } + + /** Set Last Alert. + @param DateLastAlert + Date when last alert were sent + */ + public void setDateLastAlert (Timestamp DateLastAlert) + { + set_Value (COLUMNNAME_DateLastAlert, DateLastAlert); + } + + /** Get Last Alert. + @return Date when last alert were sent + */ + public Timestamp getDateLastAlert () + { + return (Timestamp)get_Value(COLUMNNAME_DateLastAlert); + } + + /** Set Date next action. + @param DateNextAction + Date that this request should be acted on + */ + public void setDateNextAction (Timestamp DateNextAction) + { + set_Value (COLUMNNAME_DateNextAction, DateNextAction); + } + + /** Get Date next action. + @return Date that this request should be acted on + */ + public Timestamp getDateNextAction () + { + return (Timestamp)get_Value(COLUMNNAME_DateNextAction); + } + + /** Set Start Plan. + @param DateStartPlan + Planned Start Date + */ + public void setDateStartPlan (Timestamp DateStartPlan) + { + set_Value (COLUMNNAME_DateStartPlan, DateStartPlan); + } + + /** Get Start Plan. + @return Planned Start Date + */ + public Timestamp getDateStartPlan () + { + return (Timestamp)get_Value(COLUMNNAME_DateStartPlan); + } + + /** Set Document No. + @param DocumentNo + Document sequence number of the document + */ + public void setDocumentNo (String DocumentNo) + { + if (DocumentNo == null) + throw new IllegalArgumentException ("DocumentNo is mandatory."); + + if (DocumentNo.length() > 30) + { + log.warning("Length > 30 - truncated"); + DocumentNo = DocumentNo.substring(0, 30); + } + 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()); + } + + /** DueType AD_Reference_ID=222 */ + public static final int DUETYPE_AD_Reference_ID=222; + /** Overdue = 3 */ + public static final String DUETYPE_Overdue = "3"; + /** Due = 5 */ + public static final String DUETYPE_Due = "5"; + /** Scheduled = 7 */ + public static final String DUETYPE_Scheduled = "7"; + /** Set Due type. + @param DueType + Status of the next action for this Request + */ + public void setDueType (String DueType) + { + if (DueType == null) throw new IllegalArgumentException ("DueType is mandatory"); + if (DueType.equals("3") || DueType.equals("5") || DueType.equals("7")); else throw new IllegalArgumentException ("DueType Invalid value - " + DueType + " - Reference_ID=222 - 3 - 5 - 7"); + if (DueType.length() > 1) + { + log.warning("Length > 1 - truncated"); + DueType = DueType.substring(0, 1); + } + set_Value (COLUMNNAME_DueType, DueType); + } + + /** Get Due type. + @return Status of the next action for this Request + */ + public String getDueType () + { + return (String)get_Value(COLUMNNAME_DueType); + } + + /** Set End Time. + @param EndTime + End of the time span + */ + public void setEndTime (Timestamp EndTime) + { + set_Value (COLUMNNAME_EndTime, EndTime); + } + + /** Get End Time. + @return End of the time span + */ + public Timestamp getEndTime () + { + return (Timestamp)get_Value(COLUMNNAME_EndTime); + } + + /** Set Escalated. + @param IsEscalated + This request has been escalated + */ + public void setIsEscalated (boolean IsEscalated) + { + set_Value (COLUMNNAME_IsEscalated, Boolean.valueOf(IsEscalated)); + } + + /** Get Escalated. + @return This request has been escalated + */ + public boolean isEscalated () + { + Object oo = get_Value(COLUMNNAME_IsEscalated); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Invoiced. + @param IsInvoiced + Is this invoiced? + */ + public void setIsInvoiced (boolean IsInvoiced) + { + set_Value (COLUMNNAME_IsInvoiced, Boolean.valueOf(IsInvoiced)); + } + + /** Get Invoiced. + @return Is this invoiced? + */ + public boolean isInvoiced () + { + Object oo = get_Value(COLUMNNAME_IsInvoiced); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Self-Service. + @param IsSelfService + This is a Self-Service entry or this entry can be changed via Self-Service + */ + public void setIsSelfService (boolean IsSelfService) + { + set_ValueNoCheck (COLUMNNAME_IsSelfService, Boolean.valueOf(IsSelfService)); + } + + /** Get Self-Service. + @return This is a Self-Service entry or this entry can be changed via Self-Service + */ + public boolean isSelfService () + { + Object oo = get_Value(COLUMNNAME_IsSelfService); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Last Result. + @param LastResult + Result of last contact + */ + public void setLastResult (String LastResult) + { + + if (LastResult != null && LastResult.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + LastResult = LastResult.substring(0, 2000); + } + set_Value (COLUMNNAME_LastResult, LastResult); + } + + /** Get Last Result. + @return Result of last contact + */ + public String getLastResult () + { + return (String)get_Value(COLUMNNAME_LastResult); + } + + public I_M_ChangeRequest getM_ChangeRequest() throws Exception + { + Class clazz = MTable.getClass(I_M_ChangeRequest.Table_Name); + I_M_ChangeRequest result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_ChangeRequest)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_ChangeRequest_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Change Request. + @param M_ChangeRequest_ID + BOM (Engineering) Change Request + */ + public void setM_ChangeRequest_ID (int M_ChangeRequest_ID) + { + if (M_ChangeRequest_ID < 1) + set_Value (COLUMNNAME_M_ChangeRequest_ID, null); + else + set_Value (COLUMNNAME_M_ChangeRequest_ID, Integer.valueOf(M_ChangeRequest_ID)); + } + + /** Get Change Request. + @return BOM (Engineering) Change Request + */ + public int getM_ChangeRequest_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ChangeRequest_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** M_FixChangeNotice_ID AD_Reference_ID=351 */ + public static final int M_FIXCHANGENOTICE_ID_AD_Reference_ID=351; + /** Set Fixed in. + @param M_FixChangeNotice_ID + Fixed in Change Notice + */ + public void setM_FixChangeNotice_ID (int M_FixChangeNotice_ID) + { + if (M_FixChangeNotice_ID < 1) + set_Value (COLUMNNAME_M_FixChangeNotice_ID, null); + else + set_Value (COLUMNNAME_M_FixChangeNotice_ID, Integer.valueOf(M_FixChangeNotice_ID)); + } + + /** Get Fixed in. + @return Fixed in Change Notice + */ + public int getM_FixChangeNotice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_FixChangeNotice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_InOut getM_InOut() throws Exception + { + Class clazz = MTable.getClass(I_M_InOut.Table_Name); + I_M_InOut result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_InOut)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_InOut_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Shipment/Receipt. + @param M_InOut_ID + Material Shipment Document + */ + public void setM_InOut_ID (int M_InOut_ID) + { + if (M_InOut_ID < 1) + set_Value (COLUMNNAME_M_InOut_ID, null); + else + set_Value (COLUMNNAME_M_InOut_ID, Integer.valueOf(M_InOut_ID)); + } + + /** Get Shipment/Receipt. + @return Material Shipment Document + */ + public int getM_InOut_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_InOut_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** M_ProductSpent_ID AD_Reference_ID=162 */ + public static final int M_PRODUCTSPENT_ID_AD_Reference_ID=162; + /** Set Product Used. + @param M_ProductSpent_ID + Product/Resource/Service used in Request + */ + public void setM_ProductSpent_ID (int M_ProductSpent_ID) + { + if (M_ProductSpent_ID < 1) + set_Value (COLUMNNAME_M_ProductSpent_ID, null); + else + set_Value (COLUMNNAME_M_ProductSpent_ID, Integer.valueOf(M_ProductSpent_ID)); + } + + /** Get Product Used. + @return Product/Resource/Service used in Request + */ + public int getM_ProductSpent_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductSpent_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Product getM_Product() throws Exception + { + Class clazz = MTable.getClass(I_M_Product.Table_Name); + I_M_Product result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + set_Value (COLUMNNAME_M_Product_ID, null); + else + set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID)); + } + + /** Get Product. + @return Product, Service, Item + */ + public int getM_Product_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_RMA getM_RMA() throws Exception + { + Class clazz = MTable.getClass(I_M_RMA.Table_Name); + I_M_RMA result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_RMA)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_RMA_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set RMA. + @param M_RMA_ID + Return Material Authorization + */ + public void setM_RMA_ID (int M_RMA_ID) + { + if (M_RMA_ID < 1) + set_Value (COLUMNNAME_M_RMA_ID, null); + else + set_Value (COLUMNNAME_M_RMA_ID, Integer.valueOf(M_RMA_ID)); + } + + /** Get RMA. + @return Return Material Authorization + */ + public int getM_RMA_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_RMA_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** NextAction AD_Reference_ID=219 */ + public static final int NEXTACTION_AD_Reference_ID=219; + /** None = N */ + public static final String NEXTACTION_None = "N"; + /** Follow up = F */ + public static final String NEXTACTION_FollowUp = "F"; + /** Set Next action. + @param NextAction + Next Action to be taken + */ + public void setNextAction (String NextAction) + { + + if (NextAction == null || NextAction.equals("N") || NextAction.equals("F")); else throw new IllegalArgumentException ("NextAction Invalid value - " + NextAction + " - Reference_ID=219 - N - F"); + if (NextAction != null && NextAction.length() > 1) + { + log.warning("Length > 1 - truncated"); + NextAction = NextAction.substring(0, 1); + } + set_Value (COLUMNNAME_NextAction, NextAction); + } + + /** Get Next action. + @return Next Action to be taken + */ + public String getNextAction () + { + return (String)get_Value(COLUMNNAME_NextAction); + } + + /** Priority AD_Reference_ID=154 */ + public static final int PRIORITY_AD_Reference_ID=154; + /** High = 3 */ + public static final String PRIORITY_High = "3"; + /** Medium = 5 */ + public static final String PRIORITY_Medium = "5"; + /** Low = 7 */ + public static final String PRIORITY_Low = "7"; + /** Urgent = 1 */ + public static final String PRIORITY_Urgent = "1"; + /** Minor = 9 */ + public static final String PRIORITY_Minor = "9"; + /** Set Priority. + @param Priority + Indicates if this request is of a high, medium or low priority. + */ + public void setPriority (String Priority) + { + if (Priority == null) throw new IllegalArgumentException ("Priority is mandatory"); + if (Priority.equals("3") || Priority.equals("5") || Priority.equals("7") || Priority.equals("1") || Priority.equals("9")); else throw new IllegalArgumentException ("Priority Invalid value - " + Priority + " - Reference_ID=154 - 3 - 5 - 7 - 1 - 9"); + if (Priority.length() > 1) + { + log.warning("Length > 1 - truncated"); + Priority = Priority.substring(0, 1); + } + set_Value (COLUMNNAME_Priority, Priority); + } + + /** Get Priority. + @return Indicates if this request is of a high, medium or low priority. + */ + public String getPriority () + { + return (String)get_Value(COLUMNNAME_Priority); + } + + /** PriorityUser AD_Reference_ID=154 */ + public static final int PRIORITYUSER_AD_Reference_ID=154; + /** High = 3 */ + public static final String PRIORITYUSER_High = "3"; + /** Medium = 5 */ + public static final String PRIORITYUSER_Medium = "5"; + /** Low = 7 */ + public static final String PRIORITYUSER_Low = "7"; + /** Urgent = 1 */ + public static final String PRIORITYUSER_Urgent = "1"; + /** Minor = 9 */ + public static final String PRIORITYUSER_Minor = "9"; + /** Set User Importance. + @param PriorityUser + Priority of the issue for the User + */ + public void setPriorityUser (String PriorityUser) + { + + if (PriorityUser == null || PriorityUser.equals("3") || PriorityUser.equals("5") || PriorityUser.equals("7") || PriorityUser.equals("1") || PriorityUser.equals("9")); else throw new IllegalArgumentException ("PriorityUser Invalid value - " + PriorityUser + " - Reference_ID=154 - 3 - 5 - 7 - 1 - 9"); + if (PriorityUser != null && PriorityUser.length() > 1) + { + log.warning("Length > 1 - truncated"); + PriorityUser = PriorityUser.substring(0, 1); + } + set_Value (COLUMNNAME_PriorityUser, PriorityUser); + } + + /** Get User Importance. + @return Priority of the issue for the User + */ + public String getPriorityUser () + { + return (String)get_Value(COLUMNNAME_PriorityUser); + } + + /** Set Processed. + @param Processed + The document has been processed + */ + public void setProcessed (boolean Processed) + { + set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed)); + } + + /** Get Processed. + @return The document has been processed + */ + public boolean isProcessed () + { + Object oo = get_Value(COLUMNNAME_Processed); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Quantity Invoiced. + @param QtyInvoiced + Invoiced Quantity + */ + public void setQtyInvoiced (BigDecimal QtyInvoiced) + { + set_Value (COLUMNNAME_QtyInvoiced, QtyInvoiced); + } + + /** Get Quantity Invoiced. + @return Invoiced Quantity + */ + public BigDecimal getQtyInvoiced () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyInvoiced); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity Plan. + @param QtyPlan + Planned Quantity + */ + public void setQtyPlan (BigDecimal QtyPlan) + { + set_Value (COLUMNNAME_QtyPlan, QtyPlan); + } + + /** Get Quantity Plan. + @return Planned Quantity + */ + public BigDecimal getQtyPlan () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyPlan); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity Used. + @param QtySpent + Quantity used for this event + */ + public void setQtySpent (BigDecimal QtySpent) + { + set_Value (COLUMNNAME_QtySpent, QtySpent); + } + + /** Get Quantity Used. + @return Quantity used for this event + */ + public BigDecimal getQtySpent () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtySpent); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_R_Category getR_Category() throws Exception + { + Class clazz = MTable.getClass(I_R_Category.Table_Name); + I_R_Category result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_R_Category)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Category_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Category. + @param R_Category_ID + Request Category + */ + public void setR_Category_ID (int R_Category_ID) + { + if (R_Category_ID < 1) + set_Value (COLUMNNAME_R_Category_ID, null); + else + set_Value (COLUMNNAME_R_Category_ID, Integer.valueOf(R_Category_ID)); + } + + /** Get Category. + @return Request Category + */ + public int getR_Category_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Category_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_Group getR_Group() throws Exception + { + Class clazz = MTable.getClass(I_R_Group.Table_Name); + I_R_Group result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_R_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Group_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Group. + @param R_Group_ID + Request Group + */ + public void setR_Group_ID (int R_Group_ID) + { + if (R_Group_ID < 1) + set_Value (COLUMNNAME_R_Group_ID, null); + else + set_Value (COLUMNNAME_R_Group_ID, Integer.valueOf(R_Group_ID)); + } + + /** Get Group. + @return Request Group + */ + public int getR_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_MailText getR_MailText() throws Exception + { + Class clazz = MTable.getClass(I_R_MailText.Table_Name); + I_R_MailText result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_R_MailText)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_MailText_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Mail Template. + @param R_MailText_ID + Text templates for mailings + */ + public void setR_MailText_ID (int R_MailText_ID) + { + if (R_MailText_ID < 1) + set_Value (COLUMNNAME_R_MailText_ID, null); + else + set_Value (COLUMNNAME_R_MailText_ID, Integer.valueOf(R_MailText_ID)); + } + + /** Get Mail Template. + @return Text templates for mailings + */ + public int getR_MailText_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_MailText_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** R_RequestRelated_ID AD_Reference_ID=341 */ + public static final int R_REQUESTRELATED_ID_AD_Reference_ID=341; + /** Set Related Request. + @param R_RequestRelated_ID + Related Request (Master Issue, ..) + */ + public void setR_RequestRelated_ID (int R_RequestRelated_ID) + { + if (R_RequestRelated_ID < 1) + set_Value (COLUMNNAME_R_RequestRelated_ID, null); + else + set_Value (COLUMNNAME_R_RequestRelated_ID, Integer.valueOf(R_RequestRelated_ID)); + } + + /** Get Related Request. + @return Related Request (Master Issue, ..) + */ + public int getR_RequestRelated_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestRelated_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_RequestType getR_RequestType() throws Exception + { + Class clazz = MTable.getClass(I_R_RequestType.Table_Name); + I_R_RequestType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_R_RequestType)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_RequestType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Request Type. + @param R_RequestType_ID + Type of request (e.g. Inquiry, Complaint, ..) + */ + public void setR_RequestType_ID (int R_RequestType_ID) + { + if (R_RequestType_ID < 1) + throw new IllegalArgumentException ("R_RequestType_ID is mandatory."); + set_Value (COLUMNNAME_R_RequestType_ID, Integer.valueOf(R_RequestType_ID)); + } + + /** Get Request Type. + @return Type of request (e.g. Inquiry, Complaint, ..) + */ + public int getR_RequestType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_RequestType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Request. + @param R_Request_ID + Request from a Business Partner or Prospect + */ + public void setR_Request_ID (int R_Request_ID) + { + if (R_Request_ID < 1) + throw new IllegalArgumentException ("R_Request_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_R_Request_ID, Integer.valueOf(R_Request_ID)); + } + + /** Get Request. + @return Request from a Business Partner or Prospect + */ + public int getR_Request_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Request_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_Resolution getR_Resolution() throws Exception + { + Class clazz = MTable.getClass(I_R_Resolution.Table_Name); + I_R_Resolution result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_R_Resolution)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Resolution_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Resolution. + @param R_Resolution_ID + Request Resolution + */ + public void setR_Resolution_ID (int R_Resolution_ID) + { + if (R_Resolution_ID < 1) + set_Value (COLUMNNAME_R_Resolution_ID, null); + else + set_Value (COLUMNNAME_R_Resolution_ID, Integer.valueOf(R_Resolution_ID)); + } + + /** Get Resolution. + @return Request Resolution + */ + public int getR_Resolution_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Resolution_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_StandardResponse getR_StandardResponse() throws Exception + { + Class clazz = MTable.getClass(I_R_StandardResponse.Table_Name); + I_R_StandardResponse result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_R_StandardResponse)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_StandardResponse_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Standard Response. + @param R_StandardResponse_ID + Request Standard Response + */ + public void setR_StandardResponse_ID (int R_StandardResponse_ID) + { + if (R_StandardResponse_ID < 1) + set_Value (COLUMNNAME_R_StandardResponse_ID, null); + else + set_Value (COLUMNNAME_R_StandardResponse_ID, Integer.valueOf(R_StandardResponse_ID)); + } + + /** Get Standard Response. + @return Request Standard Response + */ + public int getR_StandardResponse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_StandardResponse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_R_Status getR_Status() throws Exception + { + Class clazz = MTable.getClass(I_R_Status.Table_Name); + I_R_Status result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_R_Status)constructor.newInstance(new Object[] {getCtx(), new Integer(getR_Status_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Status. + @param R_Status_ID + Request Status + */ + public void setR_Status_ID (int R_Status_ID) + { + if (R_Status_ID < 1) + set_Value (COLUMNNAME_R_Status_ID, null); + else + set_Value (COLUMNNAME_R_Status_ID, Integer.valueOf(R_Status_ID)); + } + + /** Get Status. + @return Request Status + */ + public int getR_Status_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_R_Status_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Record ID. + @param Record_ID + Direct internal record ID + */ + public void setRecord_ID (int Record_ID) + { + if (Record_ID < 1) + set_ValueNoCheck (COLUMNNAME_Record_ID, null); + else + set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); + } + + /** Get Record ID. + @return Direct internal record ID + */ + public int getRecord_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Request Amount. + @param RequestAmt + Amount associated with this request + */ + public void setRequestAmt (BigDecimal RequestAmt) + { + if (RequestAmt == null) + throw new IllegalArgumentException ("RequestAmt is mandatory."); + set_Value (COLUMNNAME_RequestAmt, RequestAmt); + } + + /** Get Request Amount. + @return Amount associated with this request + */ + public BigDecimal getRequestAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_RequestAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Result. + @param Result + Result of the action taken + */ + public void setResult (String Result) + { + + if (Result != null && Result.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Result = Result.substring(0, 2000); + } + set_Value (COLUMNNAME_Result, Result); + } + + /** Get Result. + @return Result of the action taken + */ + public String getResult () + { + return (String)get_Value(COLUMNNAME_Result); + } + + /** SalesRep_ID AD_Reference_ID=286 */ + public static final int SALESREP_ID_AD_Reference_ID=286; + /** Set Sales Representative. + @param SalesRep_ID + Sales Representative or Company Agent + */ + public void setSalesRep_ID (int SalesRep_ID) + { + if (SalesRep_ID < 1) + throw new IllegalArgumentException ("SalesRep_ID is mandatory."); + 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); + } + + /** Set Start Time. + @param StartTime + Time started + */ + public void setStartTime (Timestamp StartTime) + { + set_Value (COLUMNNAME_StartTime, StartTime); + } + + /** Get Start Time. + @return Time started + */ + public Timestamp getStartTime () + { + return (Timestamp)get_Value(COLUMNNAME_StartTime); + } + + /** Set Summary. + @param Summary + Textual summary of this request + */ + public void setSummary (String Summary) + { + if (Summary == null) + throw new IllegalArgumentException ("Summary is mandatory."); + + if (Summary.length() > 2000) + { + log.warning("Length > 2000 - truncated"); + Summary = Summary.substring(0, 2000); + } + set_Value (COLUMNNAME_Summary, Summary); + } + + /** Get Summary. + @return Textual summary of this request + */ + public String getSummary () + { + return (String)get_Value(COLUMNNAME_Summary); + } + + /** TaskStatus AD_Reference_ID=366 */ + public static final int TASKSTATUS_AD_Reference_ID=366; + /** 0% Not Started = 0 */ + public static final String TASKSTATUS_0NotStarted = "0"; + /** 100% Complete = D */ + public static final String TASKSTATUS_100Complete = "D"; + /** 20% Started = 2 */ + public static final String TASKSTATUS_20Started = "2"; + /** 80% Nearly Done = 8 */ + public static final String TASKSTATUS_80NearlyDone = "8"; + /** 40% Busy = 4 */ + public static final String TASKSTATUS_40Busy = "4"; + /** 60% Good Progress = 6 */ + public static final String TASKSTATUS_60GoodProgress = "6"; + /** 90% Finishing = 9 */ + public static final String TASKSTATUS_90Finishing = "9"; + /** 95% Almost Done = A */ + public static final String TASKSTATUS_95AlmostDone = "A"; + /** 99% Cleaning up = C */ + public static final String TASKSTATUS_99CleaningUp = "C"; + /** Set Task Status. + @param TaskStatus + Status of the Task + */ + public void setTaskStatus (String TaskStatus) + { + + if (TaskStatus == null || TaskStatus.equals("0") || TaskStatus.equals("D") || TaskStatus.equals("2") || TaskStatus.equals("8") || TaskStatus.equals("4") || TaskStatus.equals("6") || TaskStatus.equals("9") || TaskStatus.equals("A") || TaskStatus.equals("C")); else throw new IllegalArgumentException ("TaskStatus Invalid value - " + TaskStatus + " - Reference_ID=366 - 0 - D - 2 - 8 - 4 - 6 - 9 - A - C"); + if (TaskStatus != null && TaskStatus.length() > 1) + { + log.warning("Length > 1 - truncated"); + TaskStatus = TaskStatus.substring(0, 1); + } + set_Value (COLUMNNAME_TaskStatus, TaskStatus); + } + + /** Get Task Status. + @return Status of the Task + */ + public String getTaskStatus () + { + return (String)get_Value(COLUMNNAME_TaskStatus); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_S_Resource.java b/base/src/org/compiere/model/X_S_Resource.java new file mode 100644 index 0000000000..1bd90fa8e3 --- /dev/null +++ b/base/src/org/compiere/model/X_S_Resource.java @@ -0,0 +1,461 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; + +/** Generated Model for S_Resource + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_S_Resource extends PO implements I_S_Resource, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_S_Resource (Properties ctx, int S_Resource_ID, String trxName) + { + super (ctx, S_Resource_ID, trxName); + /** if (S_Resource_ID == 0) + { + setIsAvailable (true); +// Y + setM_Warehouse_ID (0); + setName (null); + setS_ResourceType_ID (0); + setS_Resource_ID (0); + setValue (null); + } */ + } + + /** Load Constructor */ + public X_S_Resource (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_S_Resource[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_User getAD_User() throws Exception + { + Class clazz = MTable.getClass(I_AD_User.Table_Name); + I_AD_User result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_User)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_User_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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 Chargeable Quantity. + @param ChargeableQty Chargeable Quantity */ + public void setChargeableQty (BigDecimal ChargeableQty) + { + set_Value (COLUMNNAME_ChargeableQty, ChargeableQty); + } + + /** Get Chargeable Quantity. + @return Chargeable Quantity */ + public BigDecimal getChargeableQty () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ChargeableQty); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set DailyCapacity. + @param DailyCapacity DailyCapacity */ + public void setDailyCapacity (BigDecimal DailyCapacity) + { + set_Value (COLUMNNAME_DailyCapacity, DailyCapacity); + } + + /** Get DailyCapacity. + @return DailyCapacity */ + public BigDecimal getDailyCapacity () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DailyCapacity); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Description. + @param Description + Optional short description of the record + */ + public void setDescription (String Description) + { + + if (Description != null && Description.length() > 255) + { + log.warning("Length > 255 - truncated"); + Description = Description.substring(0, 255); + } + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription () + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Available. + @param IsAvailable + Resource is available + */ + public void setIsAvailable (boolean IsAvailable) + { + set_Value (COLUMNNAME_IsAvailable, Boolean.valueOf(IsAvailable)); + } + + /** Get Available. + @return Resource is available + */ + public boolean isAvailable () + { + Object oo = get_Value(COLUMNNAME_IsAvailable); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set IsManufacturingResource. + @param IsManufacturingResource IsManufacturingResource */ + public void setIsManufacturingResource (boolean IsManufacturingResource) + { + set_Value (COLUMNNAME_IsManufacturingResource, Boolean.valueOf(IsManufacturingResource)); + } + + /** Get IsManufacturingResource. + @return IsManufacturingResource */ + public boolean isManufacturingResource () + { + Object oo = get_Value(COLUMNNAME_IsManufacturingResource); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + public I_M_Warehouse getM_Warehouse() throws Exception + { + Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); + I_M_Warehouse result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_Value (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** ManufacturingResourceType AD_Reference_ID=53223 */ + public static final int MANUFACTURINGRESOURCETYPE_AD_Reference_ID=53223; + /** Production Line = PL */ + public static final String MANUFACTURINGRESOURCETYPE_ProductionLine = "PL"; + /** Plant = PT */ + public static final String MANUFACTURINGRESOURCETYPE_Plant = "PT"; + /** Work Center = WC */ + public static final String MANUFACTURINGRESOURCETYPE_WorkCenter = "WC"; + /** Work Station = WS */ + public static final String MANUFACTURINGRESOURCETYPE_WorkStation = "WS"; + /** Set ManufacturingResourceType. + @param ManufacturingResourceType ManufacturingResourceType */ + public void setManufacturingResourceType (String ManufacturingResourceType) + { + + if (ManufacturingResourceType == null || ManufacturingResourceType.equals("PL") || ManufacturingResourceType.equals("PT") || ManufacturingResourceType.equals("WC") || ManufacturingResourceType.equals("WS")); else throw new IllegalArgumentException ("ManufacturingResourceType Invalid value - " + ManufacturingResourceType + " - Reference_ID=53223 - PL - PT - WC - WS"); + if (ManufacturingResourceType != null && ManufacturingResourceType.length() > 2) + { + log.warning("Length > 2 - truncated"); + ManufacturingResourceType = ManufacturingResourceType.substring(0, 2); + } + set_Value (COLUMNNAME_ManufacturingResourceType, ManufacturingResourceType); + } + + /** Get ManufacturingResourceType. + @return ManufacturingResourceType */ + public String getManufacturingResourceType () + { + return (String)get_Value(COLUMNNAME_ManufacturingResourceType); + } + + /** Set Name. + @param Name + Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + if (Name == null) + throw new IllegalArgumentException ("Name is mandatory."); + + if (Name.length() > 60) + { + log.warning("Length > 60 - truncated"); + Name = Name.substring(0, 60); + } + 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 PercentUtilization. + @param PercentUtilization PercentUtilization */ + public void setPercentUtilization (BigDecimal PercentUtilization) + { + set_Value (COLUMNNAME_PercentUtilization, PercentUtilization); + } + + /** Get PercentUtilization. + @return PercentUtilization */ + public BigDecimal getPercentUtilization () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PercentUtilization); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set QueuingTime. + @param QueuingTime QueuingTime */ + public void setQueuingTime (BigDecimal QueuingTime) + { + set_Value (COLUMNNAME_QueuingTime, QueuingTime); + } + + /** Get QueuingTime. + @return QueuingTime */ + public BigDecimal getQueuingTime () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QueuingTime); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_S_ResourceType getS_ResourceType() throws Exception + { + Class clazz = MTable.getClass(I_S_ResourceType.Table_Name); + I_S_ResourceType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_S_ResourceType)constructor.newInstance(new Object[] {getCtx(), new Integer(getS_ResourceType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Resource Type. + @param S_ResourceType_ID Resource Type */ + public void setS_ResourceType_ID (int S_ResourceType_ID) + { + if (S_ResourceType_ID < 1) + throw new IllegalArgumentException ("S_ResourceType_ID is mandatory."); + set_Value (COLUMNNAME_S_ResourceType_ID, Integer.valueOf(S_ResourceType_ID)); + } + + /** Get Resource Type. + @return Resource Type */ + public int getS_ResourceType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_ResourceType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Resource. + @param S_Resource_ID + Resource + */ + public void setS_Resource_ID (int S_Resource_ID) + { + if (S_Resource_ID < 1) + throw new IllegalArgumentException ("S_Resource_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_S_Resource_ID, Integer.valueOf(S_Resource_ID)); + } + + /** Get Resource. + @return Resource + */ + public int getS_Resource_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_S_Resource_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Search Key. + @param Value + Search key for the record in the format required - must be unique + */ + public void setValue (String Value) + { + if (Value == null) + throw new IllegalArgumentException ("Value is mandatory."); + + if (Value.length() > 40) + { + log.warning("Length > 40 - truncated"); + Value = Value.substring(0, 40); + } + 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); + } + + /** Set Waiting Time. + @param WaitingTime + Workflow Simulation Waiting time + */ + public void setWaitingTime (BigDecimal WaitingTime) + { + set_Value (COLUMNNAME_WaitingTime, WaitingTime); + } + + /** Get Waiting Time. + @return Workflow Simulation Waiting time + */ + public BigDecimal getWaitingTime () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_WaitingTime); + if (bd == null) + return Env.ZERO; + return bd; + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_T_Aging.java b/base/src/org/compiere/model/X_T_Aging.java new file mode 100644 index 0000000000..45eabee305 --- /dev/null +++ b/base/src/org/compiere/model/X_T_Aging.java @@ -0,0 +1,1009 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.sql.Timestamp; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; + +/** Generated Model for T_Aging + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_T_Aging extends PO implements I_T_Aging, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_T_Aging (Properties ctx, int T_Aging_ID, String trxName) + { + super (ctx, T_Aging_ID, trxName); + /** if (T_Aging_ID == 0) + { + setAD_PInstance_ID (0); + setC_BP_Group_ID (0); + setC_BPartner_ID (0); + setC_Currency_ID (0); + setDue0 (Env.ZERO); + setDue0_30 (Env.ZERO); + setDue0_7 (Env.ZERO); + setDue1_7 (Env.ZERO); + setDue31_60 (Env.ZERO); + setDue31_Plus (Env.ZERO); + setDue61_90 (Env.ZERO); + setDue61_Plus (Env.ZERO); + setDue8_30 (Env.ZERO); + setDue91_Plus (Env.ZERO); + setDueAmt (Env.ZERO); + setDueDate (new Timestamp(System.currentTimeMillis())); + setInvoicedAmt (Env.ZERO); + setIsListInvoices (false); + setIsSOTrx (false); + setOpenAmt (Env.ZERO); + setPastDue1_30 (Env.ZERO); + setPastDue1_7 (Env.ZERO); + setPastDue31_60 (Env.ZERO); + setPastDue31_Plus (Env.ZERO); + setPastDue61_90 (Env.ZERO); + setPastDue61_Plus (Env.ZERO); + setPastDue8_30 (Env.ZERO); + setPastDue91_Plus (Env.ZERO); + setPastDueAmt (Env.ZERO); + setStatementDate (new Timestamp(System.currentTimeMillis())); + } */ + } + + /** Load Constructor */ + public X_T_Aging (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_T_Aging[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PInstance getAD_PInstance() throws Exception + { + Class clazz = MTable.getClass(I_AD_PInstance.Table_Name); + I_AD_PInstance result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_PInstance)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PInstance_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Process Instance. + @param AD_PInstance_ID + Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID) + { + if (AD_PInstance_ID < 1) + throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + } + + /** Get Process Instance. + @return Instance of the process + */ + public int getAD_PInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Activity getC_Activity() throws Exception + { + Class clazz = MTable.getClass(I_C_Activity.Table_Name); + I_C_Activity result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Activity. + @param C_Activity_ID + Business Activity + */ + public void setC_Activity_ID (int C_Activity_ID) + { + if (C_Activity_ID < 1) + set_Value (COLUMNNAME_C_Activity_ID, null); + else + set_Value (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); + } + + /** Get Activity. + @return Business Activity + */ + public int getC_Activity_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BP_Group getC_BP_Group() throws Exception + { + Class clazz = MTable.getClass(I_C_BP_Group.Table_Name); + I_C_BP_Group result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BP_Group)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BP_Group_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Business Partner Group. + @param C_BP_Group_ID + Business Partner Group + */ + public void setC_BP_Group_ID (int C_BP_Group_ID) + { + if (C_BP_Group_ID < 1) + throw new IllegalArgumentException ("C_BP_Group_ID is mandatory."); + set_Value (COLUMNNAME_C_BP_Group_ID, Integer.valueOf(C_BP_Group_ID)); + } + + /** Get Business Partner Group. + @return Business Partner Group + */ + public int getC_BP_Group_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_BP_Group_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner getC_BPartner() throws Exception + { + Class clazz = MTable.getClass(I_C_BPartner.Table_Name); + I_C_BPartner result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + 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 I_C_Campaign getC_Campaign() throws Exception + { + Class clazz = MTable.getClass(I_C_Campaign.Table_Name); + I_C_Campaign result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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 I_C_Currency getC_Currency() throws Exception + { + Class clazz = MTable.getClass(I_C_Currency.Table_Name); + I_C_Currency result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Currency)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Currency_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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) + throw new IllegalArgumentException ("C_Currency_ID is mandatory."); + set_ValueNoCheck (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(); + } + + public I_C_InvoicePaySchedule getC_InvoicePaySchedule() throws Exception + { + Class clazz = MTable.getClass(I_C_InvoicePaySchedule.Table_Name); + I_C_InvoicePaySchedule result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_InvoicePaySchedule)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_InvoicePaySchedule_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Invoice Payment Schedule. + @param C_InvoicePaySchedule_ID + Invoice Payment Schedule + */ + public void setC_InvoicePaySchedule_ID (int C_InvoicePaySchedule_ID) + { + if (C_InvoicePaySchedule_ID < 1) + set_Value (COLUMNNAME_C_InvoicePaySchedule_ID, null); + else + set_Value (COLUMNNAME_C_InvoicePaySchedule_ID, Integer.valueOf(C_InvoicePaySchedule_ID)); + } + + /** Get Invoice Payment Schedule. + @return Invoice Payment Schedule + */ + public int getC_InvoicePaySchedule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoicePaySchedule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Invoice getC_Invoice() throws Exception + { + Class clazz = MTable.getClass(I_C_Invoice.Table_Name); + I_C_Invoice result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Invoice)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Invoice_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Invoice. + @param C_Invoice_ID + Invoice Identifier + */ + public void setC_Invoice_ID (int C_Invoice_ID) + { + if (C_Invoice_ID < 1) + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, null); + else + set_ValueNoCheck (COLUMNNAME_C_Invoice_ID, Integer.valueOf(C_Invoice_ID)); + } + + /** Get Invoice. + @return Invoice Identifier + */ + public int getC_Invoice_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Invoice_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_Project getC_Project() throws Exception + { + Class clazz = MTable.getClass(I_C_Project.Table_Name); + I_C_Project result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Project. + @param C_Project_ID + Financial Project + */ + public void setC_Project_ID (int C_Project_ID) + { + if (C_Project_ID < 1) + set_Value (COLUMNNAME_C_Project_ID, null); + else + set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); + } + + /** Get Project. + @return Financial Project + */ + public int getC_Project_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Account Date. + @param DateAcct + Accounting Date + */ + public void setDateAcct (boolean DateAcct) + { + set_Value (COLUMNNAME_DateAcct, Boolean.valueOf(DateAcct)); + } + + /** Get Account Date. + @return Accounting Date + */ + public boolean isDateAcct () + { + Object oo = get_Value(COLUMNNAME_DateAcct); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Days due. + @param DaysDue + Number of days due (negative: due in number of days) + */ + public void setDaysDue (int DaysDue) + { + set_Value (COLUMNNAME_DaysDue, Integer.valueOf(DaysDue)); + } + + /** Get Days due. + @return Number of days due (negative: due in number of days) + */ + public int getDaysDue () + { + Integer ii = (Integer)get_Value(COLUMNNAME_DaysDue); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Due Today. + @param Due0 Due Today */ + public void setDue0 (BigDecimal Due0) + { + if (Due0 == null) + throw new IllegalArgumentException ("Due0 is mandatory."); + set_Value (COLUMNNAME_Due0, Due0); + } + + /** Get Due Today. + @return Due Today */ + public BigDecimal getDue0 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due0); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due Today-30. + @param Due0_30 Due Today-30 */ + public void setDue0_30 (BigDecimal Due0_30) + { + if (Due0_30 == null) + throw new IllegalArgumentException ("Due0_30 is mandatory."); + set_Value (COLUMNNAME_Due0_30, Due0_30); + } + + /** Get Due Today-30. + @return Due Today-30 */ + public BigDecimal getDue0_30 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due0_30); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due Today-7. + @param Due0_7 Due Today-7 */ + public void setDue0_7 (BigDecimal Due0_7) + { + if (Due0_7 == null) + throw new IllegalArgumentException ("Due0_7 is mandatory."); + set_Value (COLUMNNAME_Due0_7, Due0_7); + } + + /** Get Due Today-7. + @return Due Today-7 */ + public BigDecimal getDue0_7 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due0_7); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due 1-7. + @param Due1_7 Due 1-7 */ + public void setDue1_7 (BigDecimal Due1_7) + { + if (Due1_7 == null) + throw new IllegalArgumentException ("Due1_7 is mandatory."); + set_Value (COLUMNNAME_Due1_7, Due1_7); + } + + /** Get Due 1-7. + @return Due 1-7 */ + public BigDecimal getDue1_7 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due1_7); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due 31-60. + @param Due31_60 Due 31-60 */ + public void setDue31_60 (BigDecimal Due31_60) + { + if (Due31_60 == null) + throw new IllegalArgumentException ("Due31_60 is mandatory."); + set_Value (COLUMNNAME_Due31_60, Due31_60); + } + + /** Get Due 31-60. + @return Due 31-60 */ + public BigDecimal getDue31_60 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due31_60); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due > 31. + @param Due31_Plus Due > 31 */ + public void setDue31_Plus (BigDecimal Due31_Plus) + { + if (Due31_Plus == null) + throw new IllegalArgumentException ("Due31_Plus is mandatory."); + set_Value (COLUMNNAME_Due31_Plus, Due31_Plus); + } + + /** Get Due > 31. + @return Due > 31 */ + public BigDecimal getDue31_Plus () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due31_Plus); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due 61-90. + @param Due61_90 Due 61-90 */ + public void setDue61_90 (BigDecimal Due61_90) + { + if (Due61_90 == null) + throw new IllegalArgumentException ("Due61_90 is mandatory."); + set_Value (COLUMNNAME_Due61_90, Due61_90); + } + + /** Get Due 61-90. + @return Due 61-90 */ + public BigDecimal getDue61_90 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due61_90); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due > 61. + @param Due61_Plus Due > 61 */ + public void setDue61_Plus (BigDecimal Due61_Plus) + { + if (Due61_Plus == null) + throw new IllegalArgumentException ("Due61_Plus is mandatory."); + set_Value (COLUMNNAME_Due61_Plus, Due61_Plus); + } + + /** Get Due > 61. + @return Due > 61 */ + public BigDecimal getDue61_Plus () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due61_Plus); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due 8-30. + @param Due8_30 Due 8-30 */ + public void setDue8_30 (BigDecimal Due8_30) + { + if (Due8_30 == null) + throw new IllegalArgumentException ("Due8_30 is mandatory."); + set_Value (COLUMNNAME_Due8_30, Due8_30); + } + + /** Get Due 8-30. + @return Due 8-30 */ + public BigDecimal getDue8_30 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due8_30); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due > 91. + @param Due91_Plus Due > 91 */ + public void setDue91_Plus (BigDecimal Due91_Plus) + { + if (Due91_Plus == null) + throw new IllegalArgumentException ("Due91_Plus is mandatory."); + set_Value (COLUMNNAME_Due91_Plus, Due91_Plus); + } + + /** Get Due > 91. + @return Due > 91 */ + public BigDecimal getDue91_Plus () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Due91_Plus); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Amount due. + @param DueAmt + Amount of the payment due + */ + public void setDueAmt (BigDecimal DueAmt) + { + if (DueAmt == null) + throw new IllegalArgumentException ("DueAmt is mandatory."); + set_Value (COLUMNNAME_DueAmt, DueAmt); + } + + /** Get Amount due. + @return Amount of the payment due + */ + public BigDecimal getDueAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DueAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Due Date. + @param DueDate + Date when the payment is due + */ + public void setDueDate (Timestamp DueDate) + { + if (DueDate == null) + throw new IllegalArgumentException ("DueDate is mandatory."); + set_Value (COLUMNNAME_DueDate, DueDate); + } + + /** Get Due Date. + @return Date when the payment is due + */ + public Timestamp getDueDate () + { + return (Timestamp)get_Value(COLUMNNAME_DueDate); + } + + /** Set Invoiced Amount. + @param InvoicedAmt + The amount invoiced + */ + public void setInvoicedAmt (BigDecimal InvoicedAmt) + { + if (InvoicedAmt == null) + throw new IllegalArgumentException ("InvoicedAmt is mandatory."); + set_Value (COLUMNNAME_InvoicedAmt, InvoicedAmt); + } + + /** Get Invoiced Amount. + @return The amount invoiced + */ + public BigDecimal getInvoicedAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_InvoicedAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set List Invoices. + @param IsListInvoices + Include List of Invoices + */ + public void setIsListInvoices (boolean IsListInvoices) + { + set_Value (COLUMNNAME_IsListInvoices, Boolean.valueOf(IsListInvoices)); + } + + /** Get List Invoices. + @return Include List of Invoices + */ + public boolean isListInvoices () + { + Object oo = get_Value(COLUMNNAME_IsListInvoices); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Sales Transaction. + @param IsSOTrx + This is a Sales Transaction + */ + public void setIsSOTrx (boolean IsSOTrx) + { + set_Value (COLUMNNAME_IsSOTrx, Boolean.valueOf(IsSOTrx)); + } + + /** Get Sales Transaction. + @return This is a Sales Transaction + */ + public boolean isSOTrx () + { + Object oo = get_Value(COLUMNNAME_IsSOTrx); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + + /** Set Open Amount. + @param OpenAmt + Open item amount + */ + public void setOpenAmt (BigDecimal OpenAmt) + { + if (OpenAmt == null) + throw new IllegalArgumentException ("OpenAmt is mandatory."); + set_Value (COLUMNNAME_OpenAmt, OpenAmt); + } + + /** Get Open Amount. + @return Open item amount + */ + public BigDecimal getOpenAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_OpenAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Past Due 1-30. + @param PastDue1_30 Past Due 1-30 */ + public void setPastDue1_30 (BigDecimal PastDue1_30) + { + if (PastDue1_30 == null) + throw new IllegalArgumentException ("PastDue1_30 is mandatory."); + set_Value (COLUMNNAME_PastDue1_30, PastDue1_30); + } + + /** Get Past Due 1-30. + @return Past Due 1-30 */ + public BigDecimal getPastDue1_30 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDue1_30); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Past Due 1-7. + @param PastDue1_7 Past Due 1-7 */ + public void setPastDue1_7 (BigDecimal PastDue1_7) + { + if (PastDue1_7 == null) + throw new IllegalArgumentException ("PastDue1_7 is mandatory."); + set_Value (COLUMNNAME_PastDue1_7, PastDue1_7); + } + + /** Get Past Due 1-7. + @return Past Due 1-7 */ + public BigDecimal getPastDue1_7 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDue1_7); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Past Due 31-60. + @param PastDue31_60 Past Due 31-60 */ + public void setPastDue31_60 (BigDecimal PastDue31_60) + { + if (PastDue31_60 == null) + throw new IllegalArgumentException ("PastDue31_60 is mandatory."); + set_Value (COLUMNNAME_PastDue31_60, PastDue31_60); + } + + /** Get Past Due 31-60. + @return Past Due 31-60 */ + public BigDecimal getPastDue31_60 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDue31_60); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Past Due > 31. + @param PastDue31_Plus Past Due > 31 */ + public void setPastDue31_Plus (BigDecimal PastDue31_Plus) + { + if (PastDue31_Plus == null) + throw new IllegalArgumentException ("PastDue31_Plus is mandatory."); + set_Value (COLUMNNAME_PastDue31_Plus, PastDue31_Plus); + } + + /** Get Past Due > 31. + @return Past Due > 31 */ + public BigDecimal getPastDue31_Plus () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDue31_Plus); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Past Due 61-90. + @param PastDue61_90 Past Due 61-90 */ + public void setPastDue61_90 (BigDecimal PastDue61_90) + { + if (PastDue61_90 == null) + throw new IllegalArgumentException ("PastDue61_90 is mandatory."); + set_Value (COLUMNNAME_PastDue61_90, PastDue61_90); + } + + /** Get Past Due 61-90. + @return Past Due 61-90 */ + public BigDecimal getPastDue61_90 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDue61_90); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Past Due > 61. + @param PastDue61_Plus Past Due > 61 */ + public void setPastDue61_Plus (BigDecimal PastDue61_Plus) + { + if (PastDue61_Plus == null) + throw new IllegalArgumentException ("PastDue61_Plus is mandatory."); + set_Value (COLUMNNAME_PastDue61_Plus, PastDue61_Plus); + } + + /** Get Past Due > 61. + @return Past Due > 61 */ + public BigDecimal getPastDue61_Plus () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDue61_Plus); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Past Due 8-30. + @param PastDue8_30 Past Due 8-30 */ + public void setPastDue8_30 (BigDecimal PastDue8_30) + { + if (PastDue8_30 == null) + throw new IllegalArgumentException ("PastDue8_30 is mandatory."); + set_Value (COLUMNNAME_PastDue8_30, PastDue8_30); + } + + /** Get Past Due 8-30. + @return Past Due 8-30 */ + public BigDecimal getPastDue8_30 () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDue8_30); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Past Due > 91. + @param PastDue91_Plus Past Due > 91 */ + public void setPastDue91_Plus (BigDecimal PastDue91_Plus) + { + if (PastDue91_Plus == null) + throw new IllegalArgumentException ("PastDue91_Plus is mandatory."); + set_Value (COLUMNNAME_PastDue91_Plus, PastDue91_Plus); + } + + /** Get Past Due > 91. + @return Past Due > 91 */ + public BigDecimal getPastDue91_Plus () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDue91_Plus); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Past Due. + @param PastDueAmt Past Due */ + public void setPastDueAmt (BigDecimal PastDueAmt) + { + if (PastDueAmt == null) + throw new IllegalArgumentException ("PastDueAmt is mandatory."); + set_Value (COLUMNNAME_PastDueAmt, PastDueAmt); + } + + /** Get Past Due. + @return Past Due */ + public BigDecimal getPastDueAmt () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PastDueAmt); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Statement date. + @param StatementDate + Date of the statement + */ + public void setStatementDate (Timestamp StatementDate) + { + if (StatementDate == null) + throw new IllegalArgumentException ("StatementDate is mandatory."); + set_Value (COLUMNNAME_StatementDate, StatementDate); + } + + /** Get Statement date. + @return Date of the statement + */ + public Timestamp getStatementDate () + { + return (Timestamp)get_Value(COLUMNNAME_StatementDate); + } +} \ No newline at end of file diff --git a/base/src/org/compiere/model/X_T_Replenish.java b/base/src/org/compiere/model/X_T_Replenish.java new file mode 100644 index 0000000000..ffcad4d45f --- /dev/null +++ b/base/src/org/compiere/model/X_T_Replenish.java @@ -0,0 +1,526 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2007 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.lang.reflect.Constructor; +import java.math.BigDecimal; +import java.sql.ResultSet; +import java.util.Properties; +import java.util.logging.Level; +import org.compiere.util.Env; + +/** Generated Model for T_Replenish + * @author Adempiere (generated) + * @version Release 3.5.1a - $Id$ */ +public class X_T_Replenish extends PO implements I_T_Replenish, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 1L; + + /** Standard Constructor */ + public X_T_Replenish (Properties ctx, int T_Replenish_ID, String trxName) + { + super (ctx, T_Replenish_ID, trxName); + /** if (T_Replenish_ID == 0) + { + setAD_PInstance_ID (0); + setC_BPartner_ID (0); + setLevel_Max (Env.ZERO); + setLevel_Min (Env.ZERO); + setM_Product_ID (0); + setM_Warehouse_ID (0); + setReplenishType (null); + } */ + } + + /** Load Constructor */ + public X_T_Replenish (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_T_Replenish[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public I_AD_PInstance getAD_PInstance() throws Exception + { + Class clazz = MTable.getClass(I_AD_PInstance.Table_Name); + I_AD_PInstance result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_AD_PInstance)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_PInstance_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Process Instance. + @param AD_PInstance_ID + Instance of the process + */ + public void setAD_PInstance_ID (int AD_PInstance_ID) + { + if (AD_PInstance_ID < 1) + throw new IllegalArgumentException ("AD_PInstance_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); + } + + /** Get Process Instance. + @return Instance of the process + */ + public int getAD_PInstance_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PInstance_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_C_BPartner getC_BPartner() throws Exception + { + Class clazz = MTable.getClass(I_C_BPartner.Table_Name); + I_C_BPartner result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** 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) + throw new IllegalArgumentException ("C_BPartner_ID is mandatory."); + 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 I_C_DocType getC_DocType() throws Exception + { + Class clazz = MTable.getClass(I_C_DocType.Table_Name); + I_C_DocType result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_C_DocType)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_DocType_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Document Type. + @param C_DocType_ID + Document type or rules + */ + public void setC_DocType_ID (int C_DocType_ID) + { + if (C_DocType_ID < 1) + set_Value (COLUMNNAME_C_DocType_ID, null); + else + set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID)); + } + + /** Get Document Type. + @return Document type or rules + */ + public int getC_DocType_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Maximum Level. + @param Level_Max + Maximum Inventory level for this product + */ + public void setLevel_Max (BigDecimal Level_Max) + { + if (Level_Max == null) + throw new IllegalArgumentException ("Level_Max is mandatory."); + set_Value (COLUMNNAME_Level_Max, Level_Max); + } + + /** Get Maximum Level. + @return Maximum Inventory level for this product + */ + public BigDecimal getLevel_Max () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Level_Max); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Minimum Level. + @param Level_Min + Minimum Inventory level for this product + */ + public void setLevel_Min (BigDecimal Level_Min) + { + if (Level_Min == null) + throw new IllegalArgumentException ("Level_Min is mandatory."); + set_Value (COLUMNNAME_Level_Min, Level_Min); + } + + /** Get Minimum Level. + @return Minimum Inventory level for this product + */ + public BigDecimal getLevel_Min () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Level_Min); + if (bd == null) + return Env.ZERO; + return bd; + } + + public I_M_Product getM_Product() throws Exception + { + Class clazz = MTable.getClass(I_M_Product.Table_Name); + I_M_Product result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Product. + @param M_Product_ID + Product, Service, Item + */ + public void setM_Product_ID (int M_Product_ID) + { + if (M_Product_ID < 1) + throw new IllegalArgumentException ("M_Product_ID is mandatory."); + 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(); + } + + /** M_WarehouseSource_ID AD_Reference_ID=197 */ + public static final int M_WAREHOUSESOURCE_ID_AD_Reference_ID=197; + /** Set Source Warehouse. + @param M_WarehouseSource_ID + Optional Warehouse to replenish from + */ + public void setM_WarehouseSource_ID (int M_WarehouseSource_ID) + { + if (M_WarehouseSource_ID < 1) + set_Value (COLUMNNAME_M_WarehouseSource_ID, null); + else + set_Value (COLUMNNAME_M_WarehouseSource_ID, Integer.valueOf(M_WarehouseSource_ID)); + } + + /** Get Source Warehouse. + @return Optional Warehouse to replenish from + */ + public int getM_WarehouseSource_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_WarehouseSource_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public I_M_Warehouse getM_Warehouse() throws Exception + { + Class clazz = MTable.getClass(I_M_Warehouse.Table_Name); + I_M_Warehouse result = null; + try { + Constructor constructor = null; + constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class}); + result = (I_M_Warehouse)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Warehouse_ID()), get_TrxName()}); + } catch (Exception e) { + log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e); + log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz); + throw e; + } + return result; + } + + /** Set Warehouse. + @param M_Warehouse_ID + Storage Warehouse and Service Point + */ + public void setM_Warehouse_ID (int M_Warehouse_ID) + { + if (M_Warehouse_ID < 1) + throw new IllegalArgumentException ("M_Warehouse_ID is mandatory."); + set_ValueNoCheck (COLUMNNAME_M_Warehouse_ID, Integer.valueOf(M_Warehouse_ID)); + } + + /** Get Warehouse. + @return Storage Warehouse and Service Point + */ + public int getM_Warehouse_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_M_Warehouse_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Minimum Order Qty. + @param Order_Min + Minimum order quantity in UOM + */ + public void setOrder_Min (BigDecimal Order_Min) + { + set_Value (COLUMNNAME_Order_Min, Order_Min); + } + + /** Get Minimum Order Qty. + @return Minimum order quantity in UOM + */ + public BigDecimal getOrder_Min () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Order_Min); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Order Pack Qty. + @param Order_Pack + Package order size in UOM (e.g. order set of 5 units) + */ + public void setOrder_Pack (BigDecimal Order_Pack) + { + set_Value (COLUMNNAME_Order_Pack, Order_Pack); + } + + /** Get Order Pack Qty. + @return Package order size in UOM (e.g. order set of 5 units) + */ + public BigDecimal getOrder_Pack () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Order_Pack); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set On Hand Quantity. + @param QtyOnHand + On Hand Quantity + */ + public void setQtyOnHand (BigDecimal QtyOnHand) + { + set_Value (COLUMNNAME_QtyOnHand, QtyOnHand); + } + + /** Get On Hand Quantity. + @return On Hand Quantity + */ + public BigDecimal getQtyOnHand () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyOnHand); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Ordered Quantity. + @param QtyOrdered + Ordered Quantity + */ + public void setQtyOrdered (BigDecimal QtyOrdered) + { + set_Value (COLUMNNAME_QtyOrdered, QtyOrdered); + } + + /** Get Ordered Quantity. + @return Ordered Quantity + */ + public BigDecimal getQtyOrdered () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyOrdered); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Reserved Quantity. + @param QtyReserved + Reserved Quantity + */ + public void setQtyReserved (BigDecimal QtyReserved) + { + set_Value (COLUMNNAME_QtyReserved, QtyReserved); + } + + /** Get Reserved Quantity. + @return Reserved Quantity + */ + public BigDecimal getQtyReserved () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyReserved); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** Set Quantity to Order. + @param QtyToOrder Quantity to Order */ + public void setQtyToOrder (BigDecimal QtyToOrder) + { + set_Value (COLUMNNAME_QtyToOrder, QtyToOrder); + } + + /** Get Quantity to Order. + @return Quantity to Order */ + public BigDecimal getQtyToOrder () + { + BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyToOrder); + if (bd == null) + return Env.ZERO; + return bd; + } + + /** ReplenishType AD_Reference_ID=164 */ + public static final int REPLENISHTYPE_AD_Reference_ID=164; + /** Maintain Maximum Level = 2 */ + public static final String REPLENISHTYPE_MaintainMaximumLevel = "2"; + /** Manual = 0 */ + public static final String REPLENISHTYPE_Manual = "0"; + /** Reorder below Minimum Level = 1 */ + public static final String REPLENISHTYPE_ReorderBelowMinimumLevel = "1"; + /** Custom = 9 */ + public static final String REPLENISHTYPE_Custom = "9"; + /** Set Replenish Type. + @param ReplenishType + Method for re-ordering a product + */ + public void setReplenishType (String ReplenishType) + { + if (ReplenishType == null) throw new IllegalArgumentException ("ReplenishType is mandatory"); + if (ReplenishType.equals("2") || ReplenishType.equals("0") || ReplenishType.equals("1") || ReplenishType.equals("9")); else throw new IllegalArgumentException ("ReplenishType Invalid value - " + ReplenishType + " - Reference_ID=164 - 2 - 0 - 1 - 9"); + if (ReplenishType.length() > 1) + { + log.warning("Length > 1 - truncated"); + ReplenishType = ReplenishType.substring(0, 1); + } + set_Value (COLUMNNAME_ReplenishType, ReplenishType); + } + + /** Get Replenish Type. + @return Method for re-ordering a product + */ + public String getReplenishType () + { + return (String)get_Value(COLUMNNAME_ReplenishType); + } + + /** ReplenishmentCreate AD_Reference_ID=329 */ + public static final int REPLENISHMENTCREATE_AD_Reference_ID=329; + /** Purchase Order = POO */ + public static final String REPLENISHMENTCREATE_PurchaseOrder = "POO"; + /** Requisition = POR */ + public static final String REPLENISHMENTCREATE_Requisition = "POR"; + /** Inventory Move = MMM */ + public static final String REPLENISHMENTCREATE_InventoryMove = "MMM"; + /** Distribution Order = DOO */ + public static final String REPLENISHMENTCREATE_DistributionOrder = "DOO"; + /** Set Create. + @param ReplenishmentCreate + Create from Replenishment + */ + public void setReplenishmentCreate (String ReplenishmentCreate) + { + + if (ReplenishmentCreate == null || ReplenishmentCreate.equals("POO") || ReplenishmentCreate.equals("POR") || ReplenishmentCreate.equals("MMM") || ReplenishmentCreate.equals("DOO")); else throw new IllegalArgumentException ("ReplenishmentCreate Invalid value - " + ReplenishmentCreate + " - Reference_ID=329 - POO - POR - MMM - DOO"); + if (ReplenishmentCreate != null && ReplenishmentCreate.length() > 1) + { + log.warning("Length > 1 - truncated"); + ReplenishmentCreate = ReplenishmentCreate.substring(0, 1); + } + set_Value (COLUMNNAME_ReplenishmentCreate, ReplenishmentCreate); + } + + /** Get Create. + @return Create from Replenishment + */ + public String getReplenishmentCreate () + { + return (String)get_Value(COLUMNNAME_ReplenishmentCreate); + } +} \ No newline at end of file