Integrate contribution from Armen [ 1661027 ] System Configurator
This commit is contained in:
parent
db79067c8f
commit
57046a00f9
|
@ -0,0 +1,113 @@
|
|||
/******************************************************************************
|
||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||
* Contributor: Goodwill Consulting (www.goodwill.co.id) *
|
||||
* 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. *
|
||||
*****************************************************************************/
|
||||
package org.compiere.model;
|
||||
|
||||
import java.sql.*;
|
||||
import java.util.*;
|
||||
import java.util.logging.*;
|
||||
|
||||
import org.compiere.util.*;
|
||||
|
||||
/**
|
||||
* System Configuration
|
||||
*
|
||||
* @author Armen Rizal
|
||||
* @version $Id: MSysConfig.java,v 1.5 2005/11/28 11:56:45 armen Exp $
|
||||
*/
|
||||
public class MSysConfig extends X_AD_SysConfig
|
||||
{
|
||||
/**
|
||||
* Standard Constructor
|
||||
* @param ctx context
|
||||
* @param AD_SysConfig_ID id
|
||||
*/
|
||||
public MSysConfig (Properties ctx, int AD_SysConfig_ID, String trxName)
|
||||
{
|
||||
super (ctx, AD_SysConfig_ID, trxName);
|
||||
if (AD_SysConfig_ID == 0)
|
||||
{
|
||||
// setName (null);
|
||||
// setValue (null);
|
||||
}
|
||||
} // MSysConfig
|
||||
|
||||
/**
|
||||
* Load Constructor
|
||||
* @param ctx context
|
||||
* @param rs result set
|
||||
*/
|
||||
public MSysConfig (Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super(ctx, rs, trxName);
|
||||
} // MSysConfig
|
||||
|
||||
/** Static Logger */
|
||||
private static CLogger s_log = CLogger.getCLogger (MSysConfig.class);
|
||||
|
||||
public static String getValue(String Name)
|
||||
{
|
||||
String str = null;
|
||||
String sql = "SELECT Value FROM AD_SysConfig WHERE Name=? and IsActive='Y'";
|
||||
try
|
||||
{
|
||||
PreparedStatement pstmt = DB.prepareStatement(sql, null);
|
||||
pstmt.setString(1, Name);
|
||||
ResultSet rs = pstmt.executeQuery();
|
||||
if (rs.next())
|
||||
str = rs.getString(1);
|
||||
rs.close();
|
||||
pstmt.close();
|
||||
}
|
||||
catch (SQLException e)
|
||||
{
|
||||
s_log.log(Level.SEVERE, "getValue", e);
|
||||
}
|
||||
return (str.trim());
|
||||
}
|
||||
|
||||
public static int getIntValue(String Name)
|
||||
{
|
||||
String s = getValue(Name);
|
||||
if (s.length() == 0)
|
||||
return 0;
|
||||
//
|
||||
try
|
||||
{
|
||||
return Integer.parseInt(s);
|
||||
}
|
||||
catch (NumberFormatException e)
|
||||
{
|
||||
s_log.log(Level.SEVERE, "getIntValue (" + Name + ") = " + s, e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static double getDoubleValue(String Name)
|
||||
{
|
||||
String s = getValue(Name);
|
||||
if (s.length() == 0)
|
||||
return 0;
|
||||
//
|
||||
try
|
||||
{
|
||||
return Double.parseDouble(s);
|
||||
}
|
||||
catch (NumberFormatException e)
|
||||
{
|
||||
s_log.log(Level.SEVERE, "getDoubleValue (" + Name + ") = " + s, e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // MSysConfig
|
|
@ -0,0 +1,172 @@
|
|||
/******************************************************************************
|
||||
* 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 *
|
||||
*****************************************************************************/
|
||||
package org.compiere.model;
|
||||
|
||||
/** Generated Model - DO NOT CHANGE */
|
||||
import java.util.*;
|
||||
import java.sql.*;
|
||||
import java.math.*;
|
||||
import org.compiere.util.*;
|
||||
/** Generated Model for AD_SysConfig
|
||||
* @author Adempiere (generated)
|
||||
* @version Release 3.1.4 - $Id$ */
|
||||
public class X_AD_SysConfig extends PO
|
||||
{
|
||||
/** Standard Constructor
|
||||
@param ctx context
|
||||
@param AD_SysConfig_ID id
|
||||
@param trxName transaction
|
||||
*/
|
||||
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);
|
||||
setName (null);
|
||||
setValue (null);
|
||||
}
|
||||
*/
|
||||
}
|
||||
/** Load Constructor
|
||||
@param ctx context
|
||||
@param rs result set
|
||||
@param trxName transaction
|
||||
*/
|
||||
public X_AD_SysConfig (Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super (ctx, rs, trxName);
|
||||
}
|
||||
/** AD_Table_ID=50009 */
|
||||
public static final int Table_ID=MTable.getTable_ID("AD_SysConfig");
|
||||
|
||||
/** TableName=AD_SysConfig */
|
||||
public static final String Table_Name="AD_SysConfig";
|
||||
|
||||
protected static KeyNamePair Model = new KeyNamePair(Table_ID,"AD_SysConfig");
|
||||
|
||||
protected BigDecimal accessLevel = BigDecimal.valueOf(6);
|
||||
/** AccessLevel
|
||||
@return 6 - System - Client
|
||||
*/
|
||||
protected int get_AccessLevel()
|
||||
{
|
||||
return accessLevel.intValue();
|
||||
}
|
||||
/** Load Meta Data
|
||||
@param ctx context
|
||||
@return PO Info
|
||||
*/
|
||||
protected POInfo initPO (Properties ctx)
|
||||
{
|
||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID);
|
||||
return poi;
|
||||
}
|
||||
/** Info
|
||||
@return info
|
||||
*/
|
||||
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 ("AD_SysConfig_ID", Integer.valueOf(AD_SysConfig_ID));
|
||||
}
|
||||
/** Get System Configurator.
|
||||
@return System Configurator */
|
||||
public int getAD_SysConfig_ID()
|
||||
{
|
||||
Integer ii = (Integer)get_Value("AD_SysConfig_ID");
|
||||
if (ii == null) return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
/** Column name AD_SysConfig_ID */
|
||||
public static final String COLUMNNAME_AD_SysConfig_ID = "AD_SysConfig_ID";
|
||||
/** 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,254);
|
||||
}
|
||||
set_Value ("Description", Description);
|
||||
}
|
||||
/** Get Description.
|
||||
@return Optional short description of the record */
|
||||
public String getDescription()
|
||||
{
|
||||
return (String)get_Value("Description");
|
||||
}
|
||||
/** Column name Description */
|
||||
public static final String COLUMNNAME_Description = "Description";
|
||||
/** 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,99);
|
||||
}
|
||||
set_Value ("Name", Name);
|
||||
}
|
||||
/** Get Name.
|
||||
@return Alphanumeric identifier of the entity */
|
||||
public String getName()
|
||||
{
|
||||
return (String)get_Value("Name");
|
||||
}
|
||||
/** Get Record ID/ColumnName
|
||||
@return ID/ColumnName pair
|
||||
*/public KeyNamePair getKeyNamePair()
|
||||
{
|
||||
return new KeyNamePair(get_ID(), getName());
|
||||
}
|
||||
/** Column name Name */
|
||||
public static final String COLUMNNAME_Name = "Name";
|
||||
/** 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,254);
|
||||
}
|
||||
set_Value ("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("Value");
|
||||
}
|
||||
/** Column name Value */
|
||||
public static final String COLUMNNAME_Value = "Value";
|
||||
}
|
|
@ -0,0 +1,572 @@
|
|||
SET DEFINE OFF;
|
||||
SET SQLBLANKLINES OFF;
|
||||
|
||||
CREATE TABLE ad_sysconfig
|
||||
(
|
||||
ad_sysconfig_id NUMBER(10) NOT NULL,
|
||||
ad_client_id NUMBER(10) NOT NULL,
|
||||
ad_org_id NUMBER(10) NOT NULL,
|
||||
created DATE NOT NULL,
|
||||
updated DATE NOT NULL,
|
||||
createdby NUMBER(10) NOT NULL,
|
||||
updatedby NUMBER(10) NOT NULL,
|
||||
isactive CHAR(1 BYTE) DEFAULT 'Y' NOT NULL,
|
||||
NAME NVARCHAR2(50) NOT NULL,
|
||||
VALUE NVARCHAR2(255) NOT NULL,
|
||||
description NVARCHAR2(255)
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX ad_sysconfig_key ON ad_sysconfig (ad_sysconfig_id);
|
||||
|
||||
ALTER TABLE ad_sysconfig ADD (
|
||||
CHECK (isactive IN ('Y','N')));
|
||||
|
||||
ALTER TABLE ad_sysconfig ADD (
|
||||
CONSTRAINT ad_sysconfig_key PRIMARY KEY (ad_sysconfig_id));
|
||||
|
||||
-- Dictionary
|
||||
|
||||
INSERT INTO ad_window
|
||||
(ad_window_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
NAME, windowtype, issotrx, entitytype, processing, isdefault,
|
||||
winheight, winwidth, isbetafunctionality
|
||||
)
|
||||
VALUES (50006, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'System Configurator', 'M', 'Y', 'D', 'N', 'N',
|
||||
0, 0, 'N'
|
||||
);
|
||||
|
||||
INSERT INTO ad_window_access
|
||||
(ad_window_id, ad_role_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
isreadwrite
|
||||
)
|
||||
VALUES (50006, 102, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'Y'
|
||||
);
|
||||
|
||||
INSERT INTO ad_window_access
|
||||
(ad_window_id, ad_role_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
isreadwrite
|
||||
)
|
||||
VALUES (50006, 50001, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'Y'
|
||||
);
|
||||
|
||||
INSERT INTO ad_window_access
|
||||
(ad_window_id, ad_role_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
isreadwrite
|
||||
)
|
||||
VALUES (50006, 0, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'Y'
|
||||
);
|
||||
|
||||
INSERT INTO ad_window_access
|
||||
(ad_window_id, ad_role_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
isreadwrite
|
||||
)
|
||||
VALUES (50006, 103, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'Y'
|
||||
);
|
||||
|
||||
INSERT INTO ad_table
|
||||
(ad_table_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
NAME, tablename, isview, accesslevel, entitytype, ad_window_id,
|
||||
loadseq, issecurityenabled, isdeleteable, ishighvolume,
|
||||
importtable, ischangelog, replicationtype, copycolumnsfromtable
|
||||
)
|
||||
VALUES (50009, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:41:08', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('02/28/2007 01:41:08', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'System Configurator', 'AD_SysConfig', 'N', '6', 'D', 50006,
|
||||
0, 'N', 'Y', 'Y',
|
||||
'N', 'N', 'L', 'N'
|
||||
);
|
||||
|
||||
INSERT INTO ad_sequence
|
||||
(ad_sequence_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
NAME, description, isautosequence, incrementno, startno,
|
||||
currentnext, currentnextsys, isaudited, istableid, startnewyear
|
||||
)
|
||||
VALUES (50009, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:41:09', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('02/28/2007 01:41:09', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'AD_SysConfig', 'Table AD_SysConfig', 'Y', 1, 1000000,
|
||||
1000000, 50000, 'N', 'Y', 'N'
|
||||
);
|
||||
|
||||
INSERT INTO ad_element
|
||||
(ad_element_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
columnname, entitytype, NAME,
|
||||
printname
|
||||
)
|
||||
VALUES (50044, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:41:28', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('02/28/2007 01:41:28', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'AD_SysConfig_ID', 'U', 'System Configurator',
|
||||
'System Configurator'
|
||||
);
|
||||
|
||||
INSERT INTO ad_column
|
||||
(ad_column_id, ad_client_id, ad_org_id, isactive,
|
||||
created,
|
||||
updated, createdby,
|
||||
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
|
||||
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
|
||||
isupdateable, isidentifier, istranslated, isencrypted,
|
||||
isselectioncolumn, ad_element_id, issyncdatabase,
|
||||
isalwaysupdateable
|
||||
)
|
||||
VALUES (50187, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:41:27', 'MM/DD/YYYY HH24:MI:SS'),
|
||||
TO_DATE ('02/28/2007 01:43:06', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
100, 'System Configurator', 0, 'D', 'AD_SysConfig_ID', 50009,
|
||||
13, 10, 'Y', 'N', 'Y',
|
||||
'N', 'N', 'N', 'N',
|
||||
'N', 50044, 'N',
|
||||
'N'
|
||||
);
|
||||
|
||||
INSERT INTO ad_column
|
||||
(ad_column_id, ad_client_id, ad_org_id, isactive,
|
||||
created,
|
||||
updated, createdby,
|
||||
updatedby, NAME, description,
|
||||
HELP,
|
||||
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
|
||||
fieldlength, iskey, isparent, ismandatory, isupdateable,
|
||||
isidentifier, istranslated, isencrypted, isselectioncolumn,
|
||||
ad_element_id, issyncdatabase, isalwaysupdateable
|
||||
)
|
||||
VALUES (50188, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:41:28', 'MM/DD/YYYY HH24:MI:SS'),
|
||||
TO_DATE ('02/28/2007 01:42:05', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
100, 'Client', 'Client/Tenant for this installation.',
|
||||
'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',
|
||||
0, 'D', 'AD_Client_ID', 50009, 19,
|
||||
10, 'N', 'N', 'Y', 'N',
|
||||
'N', 'N', 'N', 'N',
|
||||
102, 'N', 'N'
|
||||
);
|
||||
|
||||
INSERT INTO ad_column
|
||||
(ad_column_id, ad_client_id, ad_org_id, isactive,
|
||||
created,
|
||||
updated, createdby,
|
||||
updatedby, NAME, description,
|
||||
HELP,
|
||||
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
|
||||
fieldlength, iskey, isparent, ismandatory, isupdateable,
|
||||
isidentifier, istranslated, isencrypted, isselectioncolumn,
|
||||
ad_element_id, issyncdatabase, isalwaysupdateable
|
||||
)
|
||||
VALUES (50189, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:41:28', 'MM/DD/YYYY HH24:MI:SS'),
|
||||
TO_DATE ('02/28/2007 01:42:08', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
100, 'Organization', 'Organizational entity within client',
|
||||
'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',
|
||||
0, 'D', 'AD_Org_ID', 50009, 19,
|
||||
10, 'N', 'N', 'Y', 'N',
|
||||
'N', 'N', 'N', 'N',
|
||||
113, 'N', 'N'
|
||||
);
|
||||
|
||||
INSERT INTO ad_column
|
||||
(ad_column_id, ad_client_id, ad_org_id, isactive,
|
||||
created,
|
||||
updated, createdby,
|
||||
updatedby, NAME, description,
|
||||
HELP,
|
||||
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
|
||||
fieldlength, iskey, isparent, ismandatory, isupdateable,
|
||||
isidentifier, istranslated, isencrypted, isselectioncolumn,
|
||||
ad_element_id, issyncdatabase, isalwaysupdateable
|
||||
)
|
||||
VALUES (50190, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:41:28', 'MM/DD/YYYY HH24:MI:SS'),
|
||||
TO_DATE ('02/28/2007 01:43:21', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
100, 'Created', 'Date this record was created',
|
||||
'The Created field indicates the date that this record was created.',
|
||||
0, 'D', 'Created', 50009, 16,
|
||||
7, 'N', 'N', 'Y', 'N',
|
||||
'N', 'N', 'N', 'N',
|
||||
245, 'N', 'N'
|
||||
);
|
||||
|
||||
INSERT INTO ad_column
|
||||
(ad_column_id, ad_client_id, ad_org_id, isactive,
|
||||
created,
|
||||
updated, createdby,
|
||||
updatedby, NAME, description,
|
||||
HELP,
|
||||
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
|
||||
fieldlength, iskey, isparent, ismandatory, isupdateable,
|
||||
isidentifier, istranslated, isencrypted, isselectioncolumn,
|
||||
ad_element_id, issyncdatabase, isalwaysupdateable
|
||||
)
|
||||
VALUES (50191, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:41:29', 'MM/DD/YYYY HH24:MI:SS'),
|
||||
TO_DATE ('02/28/2007 01:43:40', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
100, 'Updated', 'Date this record was updated',
|
||||
'The Updated field indicates the date that this record was updated.',
|
||||
0, 'D', 'Updated', 50009, 16,
|
||||
7, 'N', 'N', 'Y', 'N',
|
||||
'N', 'N', 'N', 'N',
|
||||
607, 'N', 'N'
|
||||
);
|
||||
|
||||
INSERT INTO ad_column
|
||||
(ad_column_id, ad_client_id, ad_org_id, isactive,
|
||||
created,
|
||||
updated, createdby,
|
||||
updatedby, NAME, description,
|
||||
HELP,
|
||||
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
|
||||
ad_reference_value_id, fieldlength, iskey, isparent,
|
||||
ismandatory, isupdateable, isidentifier, istranslated,
|
||||
isencrypted, isselectioncolumn, ad_element_id, issyncdatabase,
|
||||
isalwaysupdateable
|
||||
)
|
||||
VALUES (50192, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:41:29', 'MM/DD/YYYY HH24:MI:SS'),
|
||||
TO_DATE ('02/28/2007 01:43:25', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
100, 'Created By', 'User who created this records',
|
||||
'The Created By field indicates the user who created this record.',
|
||||
0, 'D', 'CreatedBy', 50009, 18,
|
||||
110, 10, 'N', 'N',
|
||||
'Y', 'N', 'N', 'N',
|
||||
'N', 'N', 246, 'N',
|
||||
'N'
|
||||
);
|
||||
|
||||
INSERT INTO ad_column
|
||||
(ad_column_id, ad_client_id, ad_org_id, isactive,
|
||||
created,
|
||||
updated, createdby,
|
||||
updatedby, NAME, description,
|
||||
HELP,
|
||||
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
|
||||
fieldlength, iskey, isparent, ismandatory, isupdateable,
|
||||
isidentifier, seqno, istranslated, isencrypted,
|
||||
isselectioncolumn, ad_element_id, issyncdatabase,
|
||||
isalwaysupdateable
|
||||
)
|
||||
VALUES (50195, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:41:29', 'MM/DD/YYYY HH24:MI:SS'),
|
||||
TO_DATE ('02/28/2007 01:43:38', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
100, 'Name', 'Alphanumeric identifier of the entity',
|
||||
'The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',
|
||||
0, 'D', 'Name', 50009, 10,
|
||||
100, 'N', 'N', 'Y', 'Y',
|
||||
'Y', 1, 'N', 'N',
|
||||
'N', 469, 'N',
|
||||
'N'
|
||||
);
|
||||
|
||||
INSERT INTO ad_column
|
||||
(ad_column_id, ad_client_id, ad_org_id, isactive,
|
||||
created,
|
||||
updated, createdby,
|
||||
updatedby, NAME, description,
|
||||
HELP,
|
||||
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
|
||||
ad_reference_value_id, fieldlength, iskey, isparent,
|
||||
ismandatory, isupdateable, isidentifier, istranslated,
|
||||
isencrypted, isselectioncolumn, ad_element_id, issyncdatabase,
|
||||
isalwaysupdateable
|
||||
)
|
||||
VALUES (50193, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:41:29', 'MM/DD/YYYY HH24:MI:SS'),
|
||||
TO_DATE ('02/28/2007 01:43:41', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
100, 'Updated By', 'User who updated this records',
|
||||
'The Updated By field indicates the user who updated this record.',
|
||||
0, 'D', 'UpdatedBy', 50009, 18,
|
||||
110, 10, 'N', 'N',
|
||||
'Y', 'N', 'N', 'N',
|
||||
'N', 'N', 608, 'N',
|
||||
'N'
|
||||
);
|
||||
|
||||
INSERT INTO ad_column
|
||||
(ad_column_id, ad_client_id, ad_org_id, isactive,
|
||||
created,
|
||||
updated, createdby,
|
||||
updatedby, NAME, description,
|
||||
HELP,
|
||||
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
|
||||
fieldlength, iskey, isparent, ismandatory, isupdateable,
|
||||
isidentifier, istranslated, isencrypted, isselectioncolumn,
|
||||
ad_element_id, issyncdatabase, isalwaysupdateable
|
||||
)
|
||||
VALUES (50194, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:41:29', 'MM/DD/YYYY HH24:MI:SS'),
|
||||
TO_DATE ('02/28/2007 01:43:36', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
100, 'Active', 'The record is active in the system',
|
||||
'There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||
There are two reasons for de-activating and not deleting records:
|
||||
(1) The system requires the record for audit purposes.
|
||||
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',
|
||||
0, 'D', 'IsActive', 50009, 20,
|
||||
1, 'N', 'N', 'Y', 'Y',
|
||||
'N', 'N', 'N', 'N',
|
||||
348, 'N', 'N'
|
||||
);
|
||||
|
||||
INSERT INTO ad_column
|
||||
(ad_column_id, ad_client_id, ad_org_id, isactive,
|
||||
created,
|
||||
updated, createdby,
|
||||
updatedby, NAME,
|
||||
description,
|
||||
HELP,
|
||||
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
|
||||
fieldlength, iskey, isparent, ismandatory, isupdateable,
|
||||
isidentifier, istranslated, isencrypted, isselectioncolumn,
|
||||
ad_element_id, issyncdatabase, isalwaysupdateable
|
||||
)
|
||||
VALUES (50196, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:41:30', 'MM/DD/YYYY HH24:MI:SS'),
|
||||
TO_DATE ('02/28/2007 01:43:43', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
100, 'Search Key',
|
||||
'Search key for the record in the format required - must be unique',
|
||||
'A search key allows you a fast method of finding a particular record.
|
||||
|
||||
If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table (e.g. C_Order).',
|
||||
0, 'D', 'Value', 50009, 10,
|
||||
255, 'N', 'N', 'Y', 'Y',
|
||||
'N', 'N', 'N', 'N',
|
||||
620, 'N', 'N'
|
||||
);
|
||||
INSERT INTO ad_column
|
||||
(ad_column_id, ad_client_id, ad_org_id, isactive,
|
||||
created,
|
||||
updated, createdby,
|
||||
updatedby, NAME, description,
|
||||
HELP, VERSION, entitytype,
|
||||
columnname, ad_table_id, ad_reference_id, fieldlength, iskey,
|
||||
isparent, ismandatory, isupdateable, isidentifier, istranslated,
|
||||
isencrypted, isselectioncolumn, ad_element_id, issyncdatabase,
|
||||
isalwaysupdateable
|
||||
)
|
||||
VALUES (50197, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:41:30', 'MM/DD/YYYY HH24:MI:SS'),
|
||||
TO_DATE ('02/28/2007 01:43:33', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
100, 'Description', 'Optional short description of the record',
|
||||
'A description is limited to 255 characters.', 0, 'D',
|
||||
'Description', 50009, 10, 255, 'N',
|
||||
'N', 'N', 'Y', 'N', 'N',
|
||||
'N', 'N', 275, 'N',
|
||||
'N'
|
||||
);
|
||||
|
||||
INSERT INTO ad_tab
|
||||
(ad_tab_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
NAME, ad_table_id, ad_window_id, seqno, tablevel, issinglerow,
|
||||
isinfotab, istranslationtab, isreadonly, hastree, processing,
|
||||
importfields, issorttab, entitytype, isinsertrecord,
|
||||
isadvancedtab
|
||||
)
|
||||
VALUES (50009, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:45:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('02/28/2007 01:45:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'System Configurator', 50009, 50006, 10, 0, 'N',
|
||||
'N', 'N', 'N', 'N', 'N',
|
||||
'N', 'N', 'D', 'Y',
|
||||
'N'
|
||||
);
|
||||
|
||||
INSERT INTO ad_field
|
||||
(ad_field_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
NAME, description,
|
||||
HELP,
|
||||
iscentrallymaintained, ad_tab_id, ad_column_id, isdisplayed,
|
||||
displaylength, isreadonly, seqno, issameline, isheading,
|
||||
isfieldonly, isencrypted, entitytype
|
||||
)
|
||||
VALUES (50162, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:46:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('02/28/2007 01:46:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'Client', 'Client/Tenant for this installation.',
|
||||
'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',
|
||||
'Y', 50009, 50188, 'Y',
|
||||
10, 'N', 10, 'N', 'N',
|
||||
'N', 'N', 'D'
|
||||
);
|
||||
|
||||
INSERT INTO ad_field
|
||||
(ad_field_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
NAME, description,
|
||||
HELP,
|
||||
iscentrallymaintained, ad_tab_id, ad_column_id, isdisplayed,
|
||||
displaylength, isreadonly, seqno, issameline, isheading,
|
||||
isfieldonly, isencrypted, entitytype
|
||||
)
|
||||
VALUES (50161, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:46:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('02/28/2007 01:46:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'Active', 'The record is active in the system',
|
||||
'There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||
There are two reasons for de-activating and not deleting records:
|
||||
(1) The system requires the record for audit purposes.
|
||||
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',
|
||||
'Y', 50009, 50194, 'Y',
|
||||
1, 'N', 60, 'N', 'N',
|
||||
'N', 'N', 'D'
|
||||
);
|
||||
|
||||
INSERT INTO ad_field
|
||||
(ad_field_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
NAME,
|
||||
description,
|
||||
HELP,
|
||||
iscentrallymaintained, ad_tab_id, ad_column_id, isdisplayed,
|
||||
displaylength, isreadonly, seqno, issameline, isheading,
|
||||
isfieldonly, isencrypted, entitytype
|
||||
)
|
||||
VALUES (50166, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'Search Key',
|
||||
'Search key for the record in the format required - must be unique',
|
||||
'A search key allows you a fast method of finding a particular record.
|
||||
If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table (e.g. C_Order).',
|
||||
'Y', 50009, 50196, 'Y',
|
||||
255, 'N', 30, 'N', 'N',
|
||||
'N', 'N', 'D'
|
||||
);
|
||||
|
||||
INSERT INTO ad_field
|
||||
(ad_field_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
NAME, description,
|
||||
HELP, iscentrallymaintained, ad_tab_id,
|
||||
ad_column_id, isdisplayed, displaylength, isreadonly, seqno,
|
||||
issameline, isheading, isfieldonly, isencrypted, entitytype
|
||||
)
|
||||
VALUES (50163, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'Description', 'Optional short description of the record',
|
||||
'A description is limited to 255 characters.', 'Y', 50009,
|
||||
50197, 'Y', 255, 'N', 50,
|
||||
'N', 'N', 'N', 'N', 'D'
|
||||
);
|
||||
|
||||
INSERT INTO ad_field
|
||||
(ad_field_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
NAME, description,
|
||||
HELP,
|
||||
iscentrallymaintained, ad_tab_id, ad_column_id, isdisplayed,
|
||||
displaylength, isreadonly, seqno, issameline, isheading,
|
||||
isfieldonly, isencrypted, entitytype
|
||||
)
|
||||
VALUES (50165, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('02/28/2007 01:46:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'Organization', 'Organizational entity within client',
|
||||
'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',
|
||||
'Y', 50009, 50189, 'Y',
|
||||
10, 'N', 20, 'Y', 'N',
|
||||
'N', 'N', 'D'
|
||||
);
|
||||
|
||||
INSERT INTO ad_field
|
||||
(ad_field_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
NAME, description,
|
||||
HELP,
|
||||
iscentrallymaintained, ad_tab_id, ad_column_id, isdisplayed,
|
||||
displaylength, isreadonly, seqno, issameline, isheading,
|
||||
isfieldonly, isencrypted, entitytype
|
||||
)
|
||||
VALUES (50164, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'Name', 'Alphanumeric identifier of the entity',
|
||||
'The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',
|
||||
'Y', 50009, 50195, 'Y',
|
||||
100, 'N', 40, 'N', 'N',
|
||||
'N', 'N', 'D'
|
||||
);
|
||||
|
||||
INSERT INTO ad_field
|
||||
(ad_field_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
|
||||
isdisplayed, displaylength, isreadonly, seqno, issameline,
|
||||
isheading, isfieldonly, isencrypted, entitytype
|
||||
)
|
||||
VALUES (50167, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
'System Configurator', 'Y', 50009, 50187,
|
||||
'N', 10, 'N', 0, 'N',
|
||||
'N', 'N', 'N', 'D'
|
||||
);
|
||||
|
||||
INSERT INTO ad_menu
|
||||
(ad_menu_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated,
|
||||
NAME, updatedby, issummary, issotrx, isreadonly, action,
|
||||
ad_window_id, entitytype
|
||||
)
|
||||
VALUES (50008, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:46:54', 'MM/DD/YYYY HH24:MI:SS'), 100,
|
||||
TO_DATE ('02/28/2007 01:46:54', 'MM/DD/YYYY HH24:MI:SS'),
|
||||
'System Configurator', 100, 'N', 'N', 'N', 'W',
|
||||
50006, 'D'
|
||||
);
|
||||
|
||||
INSERT INTO ad_treenodemm
|
||||
(ad_tree_id, node_id, ad_client_id, ad_org_id, isactive,
|
||||
created, createdby,
|
||||
updated, updatedby,
|
||||
parent_id, seqno
|
||||
)
|
||||
VALUES (10, 50008, 0, 0, 'Y',
|
||||
TO_DATE ('02/28/2007 01:46:53', 'MM/DD/YYYY HH24:MI:SS'), 0,
|
||||
TO_DATE ('02/28/2007 01:47:50', 'MM/DD/YYYY HH24:MI:SS'), 0,
|
||||
161, 17
|
||||
);
|
||||
|
||||
COMMIT ;
|
||||
|
Loading…
Reference in New Issue