diff --git a/org.adempiere.base/src/org/compiere/Base.java b/org.adempiere.base/src/org/compiere/Base.java
index a6ccb430e0..3876ea85d5 100644
--- a/org.adempiere.base/src/org/compiere/Base.java
+++ b/org.adempiere.base/src/org/compiere/Base.java
@@ -23,6 +23,7 @@ import org.compiere.model.GridWindow;
import org.compiere.model.GridWindowVO;
import org.compiere.model.MConversionRate;
import org.compiere.model.MUOMConversion;
+import org.compiere.model.SystemIDs;
import org.compiere.util.Env;
import org.compiere.util.Login;
@@ -32,7 +33,7 @@ import org.compiere.util.Login;
* @author Jorg Janke
* @version $Id: Base.java,v 1.5 2006/09/21 20:44:54 jjanke Exp $
*/
-class Base
+class Base implements SystemIDs
{
/**
* Base Test
@@ -52,7 +53,7 @@ class Base
// *******************************************************************
// Table=100, Shipper=142, Window=102, Reference=101
- int AD_Window_ID = 102;
+ int AD_Window_ID = WINDOW_WINDOW_TAB_FIELD;
long startTime = System.currentTimeMillis();
GridWindowVO vo = GridWindowVO.create(Env.getCtx(), 1, AD_Window_ID);
GridWindow w = new GridWindow(vo);
diff --git a/org.adempiere.base/src/org/compiere/impexp/ImpFormat.java b/org.adempiere.base/src/org/compiere/impexp/ImpFormat.java
index 26d475b107..10aeb1a43c 100644
--- a/org.adempiere.base/src/org/compiere/impexp/ImpFormat.java
+++ b/org.adempiere.base/src/org/compiere/impexp/ImpFormat.java
@@ -24,6 +24,7 @@ import java.util.Properties;
import java.util.logging.Level;
import org.compiere.model.I_AD_ImpFormat;
+import org.compiere.model.SystemIDs;
import org.compiere.model.X_AD_ImpFormat;
import org.compiere.model.X_I_GLJournal;
import org.compiere.util.CLogger;
@@ -39,7 +40,7 @@ import org.compiere.util.Env;
* @version $Id: ImpFormat.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
*/
-public final class ImpFormat
+public final class ImpFormat implements SystemIDs
{
/**
* Format
@@ -150,24 +151,24 @@ public final class ImpFormat
m_tableUniqueChild = "H_Commodity1"; // Vendor No may not be unique !
m_tableUniqueParent = "H_PartnrID"; // Makes it unique
}
- else if (m_AD_Table_ID == 532) // I_Product
+ else if (m_AD_Table_ID == TABLE_I_PRODUCT) // I_Product
{
m_tableUnique1 = "UPC"; // UPC = unique
m_tableUnique2 = "Value";
m_tableUniqueChild = "VendorProductNo"; // Vendor No may not be unique !
m_tableUniqueParent = "BPartner_Value"; // Makes it unique
}
- else if (m_AD_Table_ID == 533) // I_BPartner
+ else if (m_AD_Table_ID == TABLE_I_BPARTNER) // I_BPartner
{
// gody: 20070113 to allow multiple contacts per BP
// m_tableUnique1 = "Value"; // the key
}
- else if (m_AD_Table_ID == 534) // I_ElementValue
+ else if (m_AD_Table_ID == TABLE_I_ELEMENTVALUE) // I_ElementValue
{
m_tableUniqueParent = "ElementName"; // the parent key
m_tableUniqueChild = "Value"; // the key
}
- else if (m_AD_Table_ID == 535) // I_ReportLine
+ else if (m_AD_Table_ID == TABLE_I_REPORTLINE) // I_ReportLine
{
m_tableUniqueParent = "ReportLineSetName"; // the parent key
m_tableUniqueChild = "Name"; // the key
diff --git a/org.adempiere.base/src/org/compiere/model/GridFieldVO.java b/org.adempiere.base/src/org/compiere/model/GridFieldVO.java
index d322b88c47..b9594a16fd 100644
--- a/org.adempiere.base/src/org/compiere/model/GridFieldVO.java
+++ b/org.adempiere.base/src/org/compiere/model/GridFieldVO.java
@@ -39,7 +39,7 @@ import org.compiere.util.Env;
* @see http://sourceforge.net/tracker/?func=detail&atid=879335&aid=1877902&group_id=176962 to FR [1877902]
* @version $Id: GridFieldVO.java,v 1.3 2006/07/30 00:58:04 jjanke Exp $
*/
-public class GridFieldVO implements Serializable
+public class GridFieldVO implements Serializable, SystemIDs
{
/**
*
@@ -351,7 +351,7 @@ public class GridFieldVO implements Serializable
vo.ColumnName += "By";
vo.displayType = isTimestamp ? DisplayType.DateTime : DisplayType.Table;
if (!isTimestamp)
- vo.AD_Reference_Value_ID = 110; // AD_User Table Reference
+ vo.AD_Reference_Value_ID = REFERENCE_AD_USER; // AD_User Table Reference
vo.IsDisplayed = false;
vo.IsMandatory = false;
vo.IsReadOnly = false;
diff --git a/org.adempiere.base/src/org/compiere/model/GridTable.java b/org.adempiere.base/src/org/compiere/model/GridTable.java
index 874d145aba..cda332be52 100644
--- a/org.adempiere.base/src/org/compiere/model/GridTable.java
+++ b/org.adempiere.base/src/org/compiere/model/GridTable.java
@@ -85,7 +85,7 @@ import org.compiere.util.ValueNamePair;
* https://sourceforge.net/tracker/?func=detail&aid=2910368&group_id=176962&atid=879332
*/
public class GridTable extends AbstractTableModel
- implements Serializable
+ implements Serializable, SystemIDs
{
/**
* generated
@@ -1434,7 +1434,7 @@ public class GridTable extends AbstractTableModel
boolean specialZeroUpdate = false;
if (!m_inserting // not inserting, updating a record
&& manualCmd // in a manual way (pushing the save button)
- && (Env.getAD_User_ID(m_ctx) == 0 || Env.getAD_User_ID(m_ctx) == 100) // user must know what is doing -> just allowed to System or SuperUser (Hardcoded)
+ && (Env.getAD_User_ID(m_ctx) == USER_SYSTEM || Env.getAD_User_ID(m_ctx) == USER_SUPERUSER) // user must know what is doing -> just allowed to System or SuperUser (Hardcoded)
&& getKeyID(m_rowChanged) == 0) { // the record being changed has ID = 0
String tablename = getTableName(); // just the allowed tables (HardCoded)
if (tablename.equals("AD_Org") ||
diff --git a/org.adempiere.base/src/org/compiere/model/MCountry.java b/org.adempiere.base/src/org/compiere/model/MCountry.java
index f207650968..5c383f1c78 100644
--- a/org.adempiere.base/src/org/compiere/model/MCountry.java
+++ b/org.adempiere.base/src/org/compiere/model/MCountry.java
@@ -41,7 +41,7 @@ import org.compiere.util.Language;
*
BF [ 2695078 ] Country is not translated on invoice
*/
public final class MCountry extends X_C_Country
- implements Comparator, Serializable
+ implements Comparator, Serializable, SystemIDs
{
/**
*
@@ -124,7 +124,7 @@ public final class MCountry extends X_C_Country
// Country code of Client Language
if (lang != null && lang.getCountryCode().equals(c.getCountryCode()))
s_default = c;
- if (c.getC_Country_ID() == 100) // USA
+ if (c.getC_Country_ID() == COUNTRY_US) // USA
usa = c;
}
rs.close();
diff --git a/org.adempiere.base/src/org/compiere/model/MEntityType.java b/org.adempiere.base/src/org/compiere/model/MEntityType.java
index 261edcf8b2..30c23e9128 100644
--- a/org.adempiere.base/src/org/compiere/model/MEntityType.java
+++ b/org.adempiere.base/src/org/compiere/model/MEntityType.java
@@ -38,7 +38,7 @@ import org.compiere.util.CLogger;
*
BF [ 2861194 ] EntityType is not using normal PO framework for getting IDs
* https://sourceforge.net/tracker/?func=detail&aid=2861194&group_id=176962&atid=879332
*/
-public class MEntityType extends X_AD_EntityType
+public class MEntityType extends X_AD_EntityType implements SystemIDs
{
/**
*
@@ -219,7 +219,7 @@ public class MEntityType extends X_AD_EntityType
if (!newRecord)
{
int id = getAD_EntityType_ID();
- boolean systemMaintained = (id == 10 || id == 20); // C/D
+ boolean systemMaintained = (id == ENTITYTYPE_DICTIONARY || id == ENTITYTYPE_ADEMPIERE); // C/D
if (systemMaintained)
{
log.saveError("Error", "You cannot modify a System maintained entity");
diff --git a/org.adempiere.base/src/org/compiere/model/MRegion.java b/org.adempiere.base/src/org/compiere/model/MRegion.java
index d8769182ef..68010e94dc 100644
--- a/org.adempiere.base/src/org/compiere/model/MRegion.java
+++ b/org.adempiere.base/src/org/compiere/model/MRegion.java
@@ -40,7 +40,7 @@ import org.compiere.util.Env;
* @version $Id: MRegion.java,v 1.3 2006/07/30 00:58:36 jjanke Exp $
*/
public final class MRegion extends X_C_Region
- implements Comparator, Serializable
+ implements Comparator, Serializable, SystemIDs
{
/**
*
@@ -236,7 +236,7 @@ public final class MRegion extends X_C_Region
* Please make sure that the file is converted via the Java utility
* native2ascii - i.e. all seven bit code with /u0000 unicode stuff
*/
- int C_Country_ID = 216; // Japan
+ int C_Country_ID = COUNTRY_JAPAN; // Japan
MCountry country = new MCountry(Env.getCtx(), C_Country_ID, null);
// Hokkaido
MRegion temp = new MRegion (country, "\u5317\u6d77\u9053");
diff --git a/org.adempiere.base/src/org/compiere/model/MRequest.java b/org.adempiere.base/src/org/compiere/model/MRequest.java
index 8b2d5858de..9f81f17f75 100644
--- a/org.adempiere.base/src/org/compiere/model/MRequest.java
+++ b/org.adempiere.base/src/org/compiere/model/MRequest.java
@@ -38,7 +38,7 @@ import org.compiere.util.TimeUtil;
* @author Jorg Janke
* @version $Id: MRequest.java,v 1.2 2006/07/30 00:51:03 jjanke Exp $
*/
-public class MRequest extends X_R_Request
+public class MRequest extends X_R_Request implements SystemIDs
{
/**
*
@@ -1212,7 +1212,7 @@ public class MRequest extends X_R_Request
if (X_AD_User.NOTIFICATIONTYPE_Notice.equals(NotificationType)
|| X_AD_User.NOTIFICATIONTYPE_EMailPlusNotice.equals(NotificationType))
{
- int AD_Message_ID = 834;
+ int AD_Message_ID = MESSAGE_REQUESTUPDATE;
MNote note = new MNote(getCtx(), AD_Message_ID, AD_User_ID,
X_R_Request.Table_ID, getR_Request_ID(),
subject, message.toString(), get_TrxName());
diff --git a/org.adempiere.base/src/org/compiere/model/MRole.java b/org.adempiere.base/src/org/compiere/model/MRole.java
index 48bc0a4392..1f3ad18009 100644
--- a/org.adempiere.base/src/org/compiere/model/MRole.java
+++ b/org.adempiere.base/src/org/compiere/model/MRole.java
@@ -54,7 +54,7 @@ import org.compiere.util.Trace;
* @contributor KittiU - FR [ 3062553 ] - Duplicated action in DocAction list for Multiple Role Users
* @version $Id: MRole.java,v 1.5 2006/08/09 16:38:47 jjanke Exp $
*/
-public final class MRole extends X_AD_Role
+public final class MRole extends X_AD_Role implements SystemIDs
{
/**
*
@@ -246,10 +246,10 @@ public final class MRole extends X_AD_Role
public static final boolean SQL_NOTQUALIFIED = false;
/** The AD_User_ID of the SuperUser */
- public static final int SUPERUSER_USER_ID = 100;
+ public static final int SUPERUSER_USER_ID = USER_SUPERUSER;
/** The AD_User_ID of the System Administrator */
- public static final int SYSTEM_USER_ID = 0;
-
+ public static final int SYSTEM_USER_ID = USER_SYSTEM;
+
private static final String ROLE_KEY = "org.compiere.model.DefaultRole";
diff --git a/org.adempiere.base/src/org/compiere/model/MSetup.java b/org.adempiere.base/src/org/compiere/model/MSetup.java
index 3af577ef4f..79ac48dc21 100644
--- a/org.adempiere.base/src/org/compiere/model/MSetup.java
+++ b/org.adempiere.base/src/org/compiere/model/MSetup.java
@@ -46,7 +46,7 @@ import org.compiere.util.Trx;
* @author Carlos Ruiz - globalqss
*
Setup correctly IsSOTrx for return documents
*/
-public final class MSetup
+public final class MSetup implements SystemIDs
{
/**
* Constructor
@@ -1058,7 +1058,7 @@ public final class MSetup
sqlCmd.append("(C_TaxCategory_ID,").append(m_stdColumns).append(",");
sqlCmd.append(" Name,IsDefault) VALUES (");
sqlCmd.append(C_TaxCategory_ID).append(",").append(m_stdValues).append(", ");
- if (C_Country_ID == 100) // US
+ if (C_Country_ID == COUNTRY_US) // US
sqlCmd.append("'Sales Tax','Y')");
else
sqlCmd.append(defaultEntry).append("'Y')");
diff --git a/org.adempiere.base/src/org/compiere/model/SystemIDs.java b/org.adempiere.base/src/org/compiere/model/SystemIDs.java
index 5a63bb14e8..fa091d7cc4 100644
--- a/org.adempiere.base/src/org/compiere/model/SystemIDs.java
+++ b/org.adempiere.base/src/org/compiere/model/SystemIDs.java
@@ -16,6 +16,8 @@
*****************************************************************************/
package org.compiere.model;
+import org.compiere.util.DisplayType;
+
/**
* List all hardcoded ID used in the code
* @author Carlos Ruiz, Nicolas Micoud, ...
@@ -23,9 +25,113 @@ package org.compiere.model;
public interface SystemIDs
{
+ public final static int COLUMN_AD_WF_ACTIVITY_AD_USER_ID = 10443;
+ public final static int COLUMN_C_BANKSTATEMENT_C_BANKACCOUNT_ID = 4917;
+ public final static int COLUMN_C_PERIOD_AD_ORG_ID = 839;
+ public final static int COLUMN_C_INVOICE_C_BPARTNER_ID = 3499;
+ public final static int COLUMN_C_INVOICE_C_CURRENCY_ID = 3505;
+ public final static int COLUMN_C_INVOICELINE_M_PRODUCT_ID = 3840;
+ public final static int COLUMN_C_PAYMENT_V_TENDERTYPE = 8416;
+ public final static int COLUMN_C_PAYSELECTIONCHECK_C_PAYSELECTION_ID = 7670;
+ public final static int COLUMN_FACT_ACCT_C_ACCTSCHEMA_ID = 2513;
+ public final static int COLUMN_FACT_ACCT_M_PRODUCT_ID = 2527;
+ public final static int COLUMN_M_MOVEMENTLINE_M_ATTRIBUTESETINSTANCE_ID = 8851;
+ public final static int COLUMN_M_PRODUCT_M_ATTRIBUTESETINSTANCE_ID = 8418;
+ public final static int COLUMN_S_RESOURCE_S_RESOURCETYPE_ID = 6851;
+ public final static int COLUMN_S_RESOURCEASSIGNMENT_S_RESOURCE_ID = 6826;
+ public final static int COUNTRY_US = 100;
+ public final static int COUNTRY_JAPAN = 216;
+
+ public final static int ENTITYTYPE_ADEMPIERE = 20;
+ public final static int ENTITYTYPE_DICTIONARY = 10;
+
+ public final static int FORM_PAYMENT_PRINT_EXPORT = 106;
+ public final static int FORM_ARCHIVEVIEWER = 118;
+
+ public final static int MENU_NOTICE = 233;
+
+ public final static int MESSAGE_REQUESTUPDATE = 834;
+ public final static int MESSAGE_WORKFLOWRESULT = 753;
+
+ public final static int PRINTFORMAT_STATEMENTOFACCOUNT = 134;
+
+ public final static int PROCESS_AD_WORKFLOW_DOCVALUE = 305;
+ public final static int PROCESS_AD_CHANGELOG_UNDO = 306;
+ public final static int PROCESS_AD_CHANGELOG_REDO = 307;
+ public final static int PROCESS_AD_NATIVE_SEQUENCE_ENABLE = 53156;
+ public final static int PROCESS_C_INVOICE_GENERATE = 119;
+ public final static int PROCESS_C_INVOICE_GENERATE_MANUAL = 134;
+ public final static int PROCESS_C_INVOICE_GENERATERMA_MANUAL = 52002;
+ public final static int PROCESS_C_PAYSELECTION_CREATEPAYMENT = 155;
+ public final static int PROCESS_M_INOUT_GENERATE = 118;
+ public final static int PROCESS_M_INOUT_GENERATE_MANUAL = 199;
+ public final static int PROCESS_M_INOUT_GENERATERMA_MANUAL = 52001;
+ public final static int PROCESS_RPT_C_ORDER = 110;
+ public final static int PROCESS_RPT_C_PAYMENT = 313;
+ public final static int PROCESS_RPT_M_INOUT = 117;
+ public final static int PROCESS_RPT_C_INVOICE = 116;
+ public final static int PROCESS_RPT_C_PROJECT = 217;
+ public final static int PROCESS_RPT_C_RFQRESPONSE = 276;
+ public final static int PROCESS_RPT_C_DUNNING = 159;
+ public final static int PROCESS_RPT_FINREPORT = 202;
+ public final static int PROCESS_RPT_FINSTATEMENT = 204;
+
+ public final static int REFERENCE_DATATYPE_ACCOUNT = DisplayType.Account; //25
+ public final static int REFERENCE_DATATYPE_INTEGER = 11;
+ public final static int REFERENCE_DATATYPE_LIST = 17;
+ public final static int REFERENCE_DATATYPE_TEXT = 14;
+ public final static int REFERENCE_DATATYPE_MEMO = 34;
+ public final static int REFERENCE_DATATYPE_AMOUNT = 12;
+ public final static int REFERENCE_DATATYPE_DATE = 15;
+ public final static int REFERENCE_DATATYPE_DATETIME = 16;
+ public final static int REFERENCE_DATATYPE_ID = 13;
+ public final static int REFERENCE_DATATYPE_STRING = 10;
+ public final static int REFERENCE_DATATYPE_NUMBER = 22;
+ public final static int REFERENCE_DATATYPE_YES_NO = 20;
+ public final static int REFERENCE_DATATYPE_BUTTON = 28;
+ public final static int REFERENCE_DATATYPE_TABLE = 18;
+ public final static int REFERENCE_DATATYPE_TABLEDIR = 19;
+ public final static int REFERENCE_DATATYPE_SEARCH = 30;
+ public final static int REFERENCE_DATATYPE_QUANTITY = 29;
+ public final static int REFERENCE_DATATYPE_PRODUCTATTRIBUTE = 35;
+ public final static int REFERENCE_DATATYPE_LOCATOR = 31;
+ public final static int REFERENCE_DATATYPE_LOCATION = 21;
+ public final static int REFERENCE_DATATYPE_COLOR = 27;
+
+ public static final int REFERENCE_AD_USER = 110;
+ public final static int REFERENCE_DOCUMENTACTION = 135;
+ public final static int REFERENCE_PAYMENTRULE = 195;
public final static int REFERENCE_POSTING_TYPE = 125;
-
+ public final static int REFERENCE_YESNO = 319;
+
+ public final static int TABLE_AD_TABLE = 100;
+ public final static int TABLE_AD_WF_PROCESS = 645;
+ public final static int TABLE_AD_WF_ACTIVITY = 644;
+ public final static int TABLE_I_PRODUCT = 532;
+ public final static int TABLE_I_BPARTNER = 533;
+ public final static int TABLE_I_ELEMENTVALUE = 534;
+ public final static int TABLE_I_REPORTLINE = 535;
+ public final static int TABLE_T_REPORT = 544;
+
+ public final static int TREE_MENUPRIMARY = 10;
+
+ public final static int USER_SUPERUSER = 100;
+ public final static int USER_SYSTEM = 0;
+
+ public final static int WINDOW_ACCOUNTCOMBINATION = 153;
+ public static final int WINDOW_CUSTOMERRETURN = 53097;
+ public final static int WINDOW_INVENTORYMOVE = 170;
+ public final static int WINDOW_LOT = 257;
+ public final static int WINDOW_MATERIALRECEIPT = 184;
+ public final static int WINDOW_MATERIALTRANSACTIONS_INDIRECTUSER = 223;
public final static int WINDOW_MY_REQUESTS = 237;
-
+ public final static int WINDOW_PHYSICALINVENTORY = 168;
+ public final static int WINDOW_PRINTFORMAT = 240;
+ public final static int WINDOW_PRODUCTION = 191;
+ public final static int WINDOW_REQUESTS_ALL = 232;
+ public static final int WINDOW_RETURNTOVENDOR = 53098;
+ public final static int WINDOW_SHIPMENT_CUSTOMER = 169;
+ public final static int WINDOW_WAREHOUSE_LOCATOR = 139;
+ public final static int WINDOW_WINDOW_TAB_FIELD = 102;
}
diff --git a/org.adempiere.base/src/org/compiere/print/ReportEngine.java b/org.adempiere.base/src/org/compiere/print/ReportEngine.java
index 001cd13fbf..740491e981 100644
--- a/org.adempiere.base/src/org/compiere/print/ReportEngine.java
+++ b/org.adempiere.base/src/org/compiere/print/ReportEngine.java
@@ -68,6 +68,7 @@ import org.compiere.model.MProject;
import org.compiere.model.MQuery;
import org.compiere.model.MRfQResponse;
import org.compiere.model.PrintInfo;
+import org.compiere.model.SystemIDs;
import org.compiere.print.layout.LayoutEngine;
import org.compiere.process.ProcessInfo;
import org.compiere.util.CLogger;
@@ -78,7 +79,7 @@ import org.compiere.util.Ini;
import org.compiere.util.Language;
import org.compiere.util.Util;
import org.eevolution.model.MDDOrder;
-import org.eevolution.model.X_PP_Order; // to be changed by MPPOrder
+import org.eevolution.model.X_PP_Order;
/**
* Report Engine.
@@ -104,7 +105,7 @@ import org.eevolution.model.X_PP_Order; // to be changed by MPPOrder
*
* FR 2872010 - Dunning Run for a complete Dunning (not just level) - Developer: Carlos Ruiz - globalqss - Sponsor: Metas
*/
-public class ReportEngine implements PrintServiceAttributeListener
+public class ReportEngine implements PrintServiceAttributeListener, SystemIDs
{
/**
* Constructor
@@ -1567,7 +1568,7 @@ queued-job-count = 0 (class javax.print.attribute.standard.QueuedJobCount)
{
org.compiere.Adempiere.startupEnvironment(true);
//
- int AD_Table_ID = 100;
+ int AD_Table_ID = TABLE_AD_TABLE;
MQuery q = new MQuery("AD_Table");
q.addRestriction("AD_Table_ID", "<", 108);
//
diff --git a/org.adempiere.base/src/org/compiere/process/DocAction.java b/org.adempiere.base/src/org/compiere/process/DocAction.java
index 679d9578fa..5b0a238be3 100644
--- a/org.adempiere.base/src/org/compiere/process/DocAction.java
+++ b/org.adempiere.base/src/org/compiere/process/DocAction.java
@@ -21,6 +21,7 @@ import java.math.BigDecimal;
import java.util.Properties;
import org.adempiere.exceptions.AdempiereException;
+import org.compiere.model.SystemIDs;
import org.compiere.util.CLogger;
/**
@@ -88,7 +89,7 @@ public interface DocAction
public static final String STATUS_WaitingConfirmation = "WC";
/** DocAction Ref_List values **/
- public static final int AD_REFERENCE_ID = 135;
+ public static final int AD_REFERENCE_ID = SystemIDs.REFERENCE_DOCUMENTACTION;
/**
* Set Doc Status
diff --git a/org.adempiere.base/src/org/compiere/report/FinReport.java b/org.adempiere.base/src/org/compiere/report/FinReport.java
index 5fb5a9d2c8..3971d1ed1d 100644
--- a/org.adempiere.base/src/org/compiere/report/FinReport.java
+++ b/org.adempiere.base/src/org/compiere/report/FinReport.java
@@ -25,6 +25,7 @@ import java.util.logging.Level;
import org.compiere.model.MAcctSchemaElement;
import org.compiere.model.MReportCube;
+import org.compiere.model.SystemIDs;
import org.compiere.print.MPrintFormat;
import org.compiere.print.MPrintFormatItem;
import org.compiere.process.ProcessInfoParameter;
@@ -45,7 +46,7 @@ import org.compiere.util.TimeUtil;
*
* @version $Id: FinReport.java,v 1.2 2006/07/30 00:51:05 jjanke Exp $
*/
-public class FinReport extends SvrProcess
+public class FinReport extends SvrProcess implements SystemIDs
{
/** Period Parameter */
private int p_C_Period_ID = 0;
@@ -1177,7 +1178,7 @@ public class FinReport extends SvrProcess
// Create New
if (createNew)
{
- int AD_Table_ID = 544; // T_Report
+ int AD_Table_ID = TABLE_T_REPORT; // T_Report
pf = MPrintFormat.createFromTable(Env.getCtx(), AD_Table_ID);
AD_PrintFormat_ID = pf.getAD_PrintFormat_ID();
m_report.setAD_PrintFormat_ID(AD_PrintFormat_ID);
diff --git a/org.adempiere.base/src/org/compiere/report/FinStatement.java b/org.adempiere.base/src/org/compiere/report/FinStatement.java
index c7f98ca8fa..48a1c93958 100644
--- a/org.adempiere.base/src/org/compiere/report/FinStatement.java
+++ b/org.adempiere.base/src/org/compiere/report/FinStatement.java
@@ -27,6 +27,7 @@ import java.util.logging.Level;
import org.compiere.model.MAcctSchemaElement;
import org.compiere.model.MElementValue;
import org.compiere.model.MPeriod;
+import org.compiere.model.SystemIDs;
import org.compiere.print.MPrintFormat;
import org.compiere.process.ProcessInfoParameter;
import org.compiere.process.SvrProcess;
@@ -52,7 +53,7 @@ import org.compiere.util.Msg;
*
FR [2857076] User Element 1 and 2 completion - https://sourceforge.net/tracker/?func=detail&aid=2857076&group_id=176962&atid=879335
*
*/
-public class FinStatement extends SvrProcess
+public class FinStatement extends SvrProcess implements SystemIDs
{
/** AcctSchame Parameter */
private int p_C_AcctSchema_ID = 0;
@@ -273,7 +274,7 @@ public class FinStatement extends SvrProcess
createBalanceLine();
createDetailLines();
- int AD_PrintFormat_ID = 134;
+ int AD_PrintFormat_ID = PRINTFORMAT_STATEMENTOFACCOUNT;
if (Ini.isClient())
getProcessInfo().setTransientObject (MPrintFormat.get (getCtx(), AD_PrintFormat_ID, false));
else
diff --git a/org.adempiere.base/src/org/compiere/wf/DocWorkflowManager.java b/org.adempiere.base/src/org/compiere/wf/DocWorkflowManager.java
index 96c3ea3379..32cef60564 100644
--- a/org.adempiere.base/src/org/compiere/wf/DocWorkflowManager.java
+++ b/org.adempiere.base/src/org/compiere/wf/DocWorkflowManager.java
@@ -22,6 +22,7 @@ import java.util.logging.Level;
import org.compiere.model.DocWorkflowMgr;
import org.compiere.model.PO;
+import org.compiere.model.SystemIDs;
import org.compiere.process.ProcessInfo;
import org.compiere.util.CLogger;
import org.compiere.util.DB;
@@ -35,7 +36,7 @@ import org.compiere.util.Evaluator;
* @author Jorg Janke
* @version $Id: DocWorkflowManager.java,v 1.2 2006/07/30 00:51:05 jjanke Exp $
*/
-public class DocWorkflowManager implements DocWorkflowMgr
+public class DocWorkflowManager implements DocWorkflowMgr, SystemIDs
{
/**
* Get Document Workflow Manager
@@ -119,7 +120,7 @@ public class DocWorkflowManager implements DocWorkflowMgr
// Start Workflow
log.fine(logic);
- int AD_Process_ID = 305; // HARDCODED
+ int AD_Process_ID = PROCESS_AD_WORKFLOW_DOCVALUE; // HARDCODED
ProcessInfo pi = new ProcessInfo (wf.getName(), AD_Process_ID,
AD_Table_ID, document.get_ID());
pi.setAD_User_ID (Env.getAD_User_ID(document.getCtx()));
diff --git a/org.adempiere.base/src/org/compiere/wf/MWFActivity.java b/org.adempiere.base/src/org/compiere/wf/MWFActivity.java
index ecb04c4660..ea4c2e01ac 100644
--- a/org.adempiere.base/src/org/compiere/wf/MWFActivity.java
+++ b/org.adempiere.base/src/org/compiere/wf/MWFActivity.java
@@ -51,6 +51,7 @@ import org.compiere.model.MUser;
import org.compiere.model.MUserRoles;
import org.compiere.model.PO;
import org.compiere.model.Query;
+import org.compiere.model.SystemIDs;
import org.compiere.model.X_AD_WF_Activity;
import org.compiere.print.ReportEngine;
import org.compiere.process.DocAction;
@@ -72,7 +73,7 @@ import org.compiere.util.Util;
* @author Jorg Janke
* @version $Id: MWFActivity.java,v 1.4 2006/07/30 00:51:05 jjanke Exp $
*/
-public class MWFActivity extends X_AD_WF_Activity implements Runnable
+public class MWFActivity extends X_AD_WF_Activity implements Runnable, SystemIDs
{
/**
*
@@ -1048,7 +1049,7 @@ public class MWFActivity extends X_AD_WF_Activity implements Runnable
throw new IllegalStateException("Cannot create Report AD_Process_ID=" + m_node.getAD_Process_ID());
File report = re.getPDF();
// Notice
- int AD_Message_ID = 753; // HARDCODED WorkflowResult
+ int AD_Message_ID = MESSAGE_WORKFLOWRESULT; // HARDCODED WorkflowResult
MNote note = new MNote(getCtx(), AD_Message_ID, getAD_User_ID(), trx.getTrxName());
note.setTextMsg(m_node.getName(true));
note.setDescription(m_node.getDescription(true));
diff --git a/org.adempiere.base/src/org/eevolution/process/EnableNativeSequence.java b/org.adempiere.base/src/org/eevolution/process/EnableNativeSequence.java
index 2eee1ce512..c79c2a7b00 100644
--- a/org.adempiere.base/src/org/eevolution/process/EnableNativeSequence.java
+++ b/org.adempiere.base/src/org/eevolution/process/EnableNativeSequence.java
@@ -29,6 +29,7 @@ import org.compiere.model.MSequence;
import org.compiere.model.MSysConfig;
import org.compiere.model.MTable;
import org.compiere.model.Query;
+import org.compiere.model.SystemIDs;
import org.compiere.model.X_AD_Table;
import org.compiere.process.ProcessInfo;
import org.compiere.process.SvrProcess;
@@ -42,7 +43,7 @@ import org.compiere.util.Env;
* @author Victor Perez, e-Evolution, S.C.
* @author Teo Sarca, teo.sarca@gmail.com
*/
-public class EnableNativeSequence extends SvrProcess
+public class EnableNativeSequence extends SvrProcess implements SystemIDs
{
/**
@@ -128,7 +129,7 @@ public class EnableNativeSequence extends SvrProcess
CLogMgt.setLevel(Level.INFO);
Properties ctx = Env.getCtx();
- int AD_Process_ID = 53156; // HARDCODED
+ int AD_Process_ID = PROCESS_AD_NATIVE_SEQUENCE_ENABLE; // HARDCODED
MPInstance pinstance = new MPInstance(ctx, AD_Process_ID, -1);
pinstance.saveEx();
diff --git a/org.adempiere.pipo.legacy/src/org/adempiere/pipo/AbstractElementHandler.java b/org.adempiere.pipo.legacy/src/org/adempiere/pipo/AbstractElementHandler.java
index fe8a9d0645..9c70c00f3e 100644
--- a/org.adempiere.pipo.legacy/src/org/adempiere/pipo/AbstractElementHandler.java
+++ b/org.adempiere.pipo.legacy/src/org/adempiere/pipo/AbstractElementHandler.java
@@ -28,6 +28,7 @@ import javax.xml.transform.sax.TransformerHandler;
import org.compiere.model.PO;
import org.compiere.model.POInfo;
+import org.compiere.model.SystemIDs;
import org.compiere.model.X_AD_Package_Imp_Detail;
import org.compiere.util.CLogger;
import org.compiere.util.DB;
@@ -36,7 +37,7 @@ import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.AttributesImpl;
-public abstract class AbstractElementHandler implements ElementHandler {
+public abstract class AbstractElementHandler implements ElementHandler, SystemIDs {
protected CLogger log = CLogger.getCLogger("PackIn");
@@ -203,10 +204,10 @@ public abstract class AbstractElementHandler implements ElementHandler {
sqlD = new StringBuffer("SELECT MAX(AD_PACKAGE_IMP_DETAIL_ID) FROM AD_PACKAGE_IMP_DETAIL");
int idDetail = DB.getSQLValue(getTrxName(ctx),sqlD.toString())+1;
- if (referenceID == 10 || referenceID == 14 || referenceID == 34 || referenceID == 17)
+ if (referenceID == REFERENCE_DATATYPE_STRING || referenceID == REFERENCE_DATATYPE_TEXT || referenceID == REFERENCE_DATATYPE_MEMO || referenceID == REFERENCE_DATATYPE_LIST)
if (from != null && from.get_Value(i)!= null)
colValue = from.get_Value(i).toString().replaceAll("'","''");
- else if (referenceID == 20|| referenceID == 28)
+ else if (referenceID == REFERENCE_DATATYPE_YES_NO|| referenceID == REFERENCE_DATATYPE_BUTTON)
if (from != null && from.get_Value(i)!= null)
colValue = from.get_Value(i).toString().replaceAll("'","''");
else
diff --git a/org.adempiere.pipo.legacy/src/org/adempiere/pipo/PackRoll.java b/org.adempiere.pipo.legacy/src/org/adempiere/pipo/PackRoll.java
index 23deb1dc57..8216e5de83 100644
--- a/org.adempiere.pipo.legacy/src/org/adempiere/pipo/PackRoll.java
+++ b/org.adempiere.pipo.legacy/src/org/adempiere/pipo/PackRoll.java
@@ -25,6 +25,7 @@ import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.logging.Level;
+import org.compiere.model.SystemIDs;
import org.compiere.process.ProcessInfoParameter;
import org.compiere.process.SvrProcess;
import org.compiere.util.DB;
@@ -36,7 +37,7 @@ import org.compiere.util.Env;
* @author Robert Klein
*
*/
-public class PackRoll extends SvrProcess {
+public class PackRoll extends SvrProcess implements SystemIDs {
/** Package from Record */
private int m_AD_Package_Imp_ID = 0;
private String m_Processing = null;
@@ -258,14 +259,14 @@ public class PackRoll extends SvrProcess {
// Update columns that are Strings adjusting
// for single quotes
if (v_AD_Reference_ID == 10
- || v_AD_Reference_ID == 14
- || v_AD_Reference_ID == 34
- || v_AD_Reference_ID == 17
+ || v_AD_Reference_ID == REFERENCE_DATATYPE_TEXT
+ || v_AD_Reference_ID == REFERENCE_DATATYPE_MEMO
+ || v_AD_Reference_ID == REFERENCE_DATATYPE_LIST
// Carlos Ruiz globalqss, special
// treatment for EntityType
// it's a Table reference but must
// be treated as String
- || (v_AD_Reference_ID == 18 && columnName
+ || (v_AD_Reference_ID == REFERENCE_DATATYPE_TABLE && columnName
.equalsIgnoreCase("EntityType")))
if (rs2.getObject("ColValue")
.toString().equals("null")) {
@@ -285,8 +286,8 @@ public class PackRoll extends SvrProcess {
+ " = " + recordID);
}
// Update true/false columns
- else if (v_AD_Reference_ID == 20
- || v_AD_Reference_ID == 28) {
+ else if (v_AD_Reference_ID == REFERENCE_DATATYPE_YES_NO
+ || v_AD_Reference_ID == REFERENCE_DATATYPE_BUTTON) {
sqlC = new StringBuffer("UPDATE "
+ tableName
+ " SET "
@@ -301,15 +302,15 @@ public class PackRoll extends SvrProcess {
}
// Update columns that are Strings adjusting
// for single quotes
- else if (v_AD_Reference_ID == 13
- || v_AD_Reference_ID == 18
- || v_AD_Reference_ID == 19
- || v_AD_Reference_ID == 21
- || v_AD_Reference_ID == 25
- || v_AD_Reference_ID == 27
- || v_AD_Reference_ID == 30
- || v_AD_Reference_ID == 31
- || v_AD_Reference_ID == 35)
+ else if (v_AD_Reference_ID == REFERENCE_DATATYPE_ID
+ || v_AD_Reference_ID == REFERENCE_DATATYPE_TABLE
+ || v_AD_Reference_ID == REFERENCE_DATATYPE_TABLEDIR
+ || v_AD_Reference_ID == REFERENCE_DATATYPE_LOCATION
+ || v_AD_Reference_ID == REFERENCE_DATATYPE_ACCOUNT
+ || v_AD_Reference_ID == REFERENCE_DATATYPE_COLOR
+ || v_AD_Reference_ID == REFERENCE_DATATYPE_SEARCH
+ || v_AD_Reference_ID == REFERENCE_DATATYPE_LOCATOR
+ || v_AD_Reference_ID == REFERENCE_DATATYPE_PRODUCTATTRIBUTE)
sqlC = new StringBuffer("UPDATE "
+ tableName
+ " SET "
@@ -321,10 +322,10 @@ public class PackRoll extends SvrProcess {
+ " WHERE " + columnIDName
+ " = " + recordID);
// Update columns that are numbers
- else if (v_AD_Reference_ID == 11
- || v_AD_Reference_ID == 12
- || v_AD_Reference_ID == 22
- || v_AD_Reference_ID == 29)
+ else if (v_AD_Reference_ID == REFERENCE_DATATYPE_INTEGER
+ || v_AD_Reference_ID == REFERENCE_DATATYPE_AMOUNT
+ || v_AD_Reference_ID == REFERENCE_DATATYPE_NUMBER
+ || v_AD_Reference_ID == REFERENCE_DATATYPE_QUANTITY)
sqlC = new StringBuffer("UPDATE "
+ tableName
+ " SET "
@@ -336,8 +337,8 @@ public class PackRoll extends SvrProcess {
+ " WHERE " + columnIDName
+ " = " + recordID);
// Update columns that are dates
- else if (v_AD_Reference_ID == 15
- || v_AD_Reference_ID == 16)
+ else if (v_AD_Reference_ID == REFERENCE_DATATYPE_DATE
+ || v_AD_Reference_ID == REFERENCE_DATATYPE_DATETIME)
// TODO Develop portable code to update
// date columns
;// ignore
diff --git a/org.adempiere.pipo.legacy/src/org/adempiere/pipo/handler/MenuElementHandler.java b/org.adempiere.pipo.legacy/src/org/adempiere/pipo/handler/MenuElementHandler.java
index 7ad51d0f18..2dd5174b12 100644
--- a/org.adempiere.pipo.legacy/src/org/adempiere/pipo/handler/MenuElementHandler.java
+++ b/org.adempiere.pipo.legacy/src/org/adempiere/pipo/handler/MenuElementHandler.java
@@ -27,6 +27,7 @@ import javax.xml.transform.sax.TransformerHandler;
import org.adempiere.pipo.AbstractElementHandler;
import org.adempiere.pipo.Element;
import org.adempiere.pipo.PackOut;
+import org.compiere.model.SystemIDs;
import org.compiere.model.X_AD_Menu;
import org.compiere.util.DB;
import org.compiere.util.Env;
@@ -34,7 +35,7 @@ import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.AttributesImpl;
-public class MenuElementHandler extends AbstractElementHandler {
+public class MenuElementHandler extends AbstractElementHandler implements SystemIDs {
public void startElement(Properties ctx, Element element)
throws SAXException {
@@ -197,7 +198,7 @@ public class MenuElementHandler extends AbstractElementHandler {
int idBackup = DB.getNextID(Env
.getAD_Client_ID(ctx), "AD_Package_Imp_Backup",
getTrxName(ctx));
- if (referenceID == 20 || referenceID == 28)
+ if (referenceID == REFERENCE_DATATYPE_YES_NO || referenceID == REFERENCE_DATATYPE_BUTTON)
if (rs1.getObject(q).equals("Y"))
colValue = "true";
else
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/AArchive.java b/org.adempiere.ui.swing/src/org/compiere/apps/AArchive.java
index 2c14f69bf0..7e02acff5d 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/AArchive.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/AArchive.java
@@ -29,6 +29,7 @@ import javax.swing.JPopupMenu;
import org.compiere.apps.form.ArchiveViewer;
import org.compiere.apps.form.FormFrame;
import org.compiere.model.MBPartner;
+import org.compiere.model.SystemIDs;
import org.compiere.swing.CMenuItem;
import org.compiere.util.CLogger;
import org.compiere.util.DB;
@@ -43,7 +44,7 @@ import org.compiere.util.Msg;
* @author Jorg Janke
* @version $Id: AArchive.java,v 1.2 2006/07/30 00:51:27 jjanke Exp $
*/
-public class AArchive implements ActionListener
+public class AArchive implements ActionListener, SystemIDs
{
/**
* Constructor
@@ -165,7 +166,7 @@ public class AArchive implements ActionListener
*/
public void actionPerformed (ActionEvent e)
{
- int AD_Form_ID = 118; // ArchiveViewer
+ int AD_Form_ID = FORM_ARCHIVEVIEWER; // ArchiveViewer
FormFrame ff = new FormFrame(m_graphicsconfig);
ff.openForm(AD_Form_ID);
ArchiveViewer av = (ArchiveViewer)ff.getFormPanel();
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/AEnv.java b/org.adempiere.ui.swing/src/org/compiere/apps/AEnv.java
index 1ddec839d5..f7dd8ee3f2 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/AEnv.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/AEnv.java
@@ -51,6 +51,7 @@ import org.compiere.interfaces.Server;
import org.compiere.model.MMenu;
import org.compiere.model.MQuery;
import org.compiere.model.MRole;
+import org.compiere.model.SystemIDs;
import org.compiere.process.DocumentEngine;
import org.compiere.swing.CButton;
import org.compiere.swing.CFrame;
@@ -74,7 +75,7 @@ import org.compiere.util.Splash;
* @see FR [ 1966328 ] New Window Info to MRP and CRP into View http://sourceforge.net/tracker/index.php?func=detail&aid=1966328&group_id=176962&atid=879335
*
*/
-public final class AEnv
+public final class AEnv implements SystemIDs
{
// Array of active Windows
private static ArrayList s_windows = new ArrayList(20);
@@ -795,12 +796,12 @@ public final class AEnv
if (s_workflow == null)
{
s_workflow = Boolean.FALSE;
- int AD_Table_ID = 645; // AD_WF_Process
+ int AD_Table_ID = TABLE_AD_WF_PROCESS; // AD_WF_Process
if (MRole.getDefault().isTableAccess (AD_Table_ID, true)) // RO
s_workflow = Boolean.TRUE;
else
{
- AD_Table_ID = 644; // AD_WF_Activity
+ AD_Table_ID = TABLE_AD_WF_ACTIVITY; // AD_WF_Activity
if (MRole.getDefault().isTableAccess (AD_Table_ID, true)) // RO
s_workflow = Boolean.TRUE;
else
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/AMenu.java b/org.adempiere.ui.swing/src/org/compiere/apps/AMenu.java
index a080d00ded..3cce7f4d50 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/AMenu.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/AMenu.java
@@ -168,7 +168,7 @@ public final class AMenu extends CFrame
+ " INNER JOIN AD_Role r ON (ci.AD_Client_ID=r.AD_Client_ID) "
+ "WHERE AD_Role_ID=?", AD_Role_ID);
if (AD_Tree_ID <= 0)
- AD_Tree_ID = 10; // Menu
+ AD_Tree_ID = TREE_MENUPRIMARY; // Menu
treePanel.initTree(AD_Tree_ID);
// Translate
@@ -656,7 +656,7 @@ public final class AMenu extends CFrame
+ " INNER JOIN AD_TABLE t ON (t.AD_Window_ID=m.AD_Window_ID) "
+ "WHERE t.AD_Table_ID=?", 389);
if (m_note_Menu_ID == 0)
- m_note_Menu_ID = 233; // fallback HARDCODED
+ m_note_Menu_ID = MENU_NOTICE; // fallback HARDCODED
(new AMenuStartItem (m_note_Menu_ID, true, Msg.translate(m_ctx, "AD_Note_ID"), this)).start(); // async load
} // gotoMessage
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/APanel.java b/org.adempiere.ui.swing/src/org/compiere/apps/APanel.java
index 2dec7cb525..01ff68580e 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/APanel.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/APanel.java
@@ -90,6 +90,7 @@ import org.compiere.model.MRole;
import org.compiere.model.MToolBarButtonRestrict;
import org.compiere.model.MUser;
import org.compiere.model.MWindow;
+import org.compiere.model.SystemIDs;
import org.compiere.model.X_AD_ToolBarButton;
import org.compiere.plaf.CompiereColor;
import org.compiere.print.AReport;
@@ -143,7 +144,7 @@ import org.compiere.util.Util;
* @sponsor www.metas.de
*/
public final class APanel extends CPanel
- implements DataStatusListener, ChangeListener, ActionListener, IProcessMonitor
+ implements DataStatusListener, ChangeListener, ActionListener, IProcessMonitor, SystemIDs
{
/**
*
@@ -2509,7 +2510,7 @@ public final class APanel extends CPanel
record_ID = Env.getContextAsInt (m_ctx, m_curWindowNo, "AD_Language_ID");
// Record_ID - Change Log ID
if (record_ID == -1
- && (vButton.getProcess_ID() == 306 || vButton.getProcess_ID() == 307))
+ && (vButton.getProcess_ID() == PROCESS_AD_CHANGELOG_UNDO || vButton.getProcess_ID() == PROCESS_AD_CHANGELOG_REDO))
{
Integer id = (Integer)m_curTab.getValue("AD_ChangeLog_ID");
record_ID = id.intValue();
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/ARequest.java b/org.adempiere.ui.swing/src/org/compiere/apps/ARequest.java
index 11ba1644fc..db3ca66d50 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/ARequest.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/ARequest.java
@@ -41,6 +41,7 @@ import org.compiere.model.MQuery;
import org.compiere.model.MRMA;
import org.compiere.model.MRequest;
import org.compiere.model.MUser;
+import org.compiere.model.SystemIDs;
import org.compiere.swing.CMenuItem;
import org.compiere.util.CLogger;
import org.compiere.util.DB;
@@ -58,7 +59,7 @@ import org.compiere.util.Msg;
* @author Teo Sarca, SC ARHIPAC SERVICE SRL
*
BF [ 1904928 ] Request: Related Request field not filled
*/
-public class ARequest implements ActionListener
+public class ARequest implements ActionListener, SystemIDs
{
/**
* Constructor
@@ -209,7 +210,7 @@ public class ARequest implements ActionListener
query.setRecordCount(0);
}
//
- int AD_Window_ID = 232; // 232=all - 201=my
+ int AD_Window_ID = WINDOW_REQUESTS_ALL; // 232=all - 201=my
AWindow frame = new AWindow(m_graphicsconfig);
if (!frame.initWindow(AD_Window_ID, query))
return;
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/ProcessDialog.java b/org.adempiere.ui.swing/src/org/compiere/apps/ProcessDialog.java
index db0aec7bd5..d012dc951b 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/ProcessDialog.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/ProcessDialog.java
@@ -37,6 +37,7 @@ import javax.swing.JSeparator;
import org.adempiere.exceptions.AdempiereException;
import org.adempiere.exceptions.DBException;
import org.adempiere.util.IProcessMonitor;
+import org.compiere.model.SystemIDs;
import org.compiere.print.ReportCtl;
import org.compiere.print.ReportEngine;
import org.compiere.process.ProcessInfo;
@@ -64,10 +65,10 @@ import org.compiere.util.Msg;
* - Implement ShowHelp option on processes and reports
* @author Teo Sarca, SC ARHIPAC SERVICE SRL
*
BF [ 1893525 ] ProcessDialog: Cannot select the text from text field
- *
BF [ 1963128 ] Running a process w/o trl should display an error
- */
+ *