IDEMPIERE-2113 Enable import button for end users
This commit is contained in:
parent
a6f8b8429c
commit
6ad4577e1d
|
@ -0,0 +1,735 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Oct 29, 2014 7:34:07 PM COT
|
||||
-- IDEMPIERE-2113 Enable import button for end users
|
||||
INSERT INTO AD_Window (Processing,WindowType,IsSOTrx,IsDefault,WinHeight,IsBetaFunctionality,WinWidth,EntityType,Name,AD_Window_ID,AD_Window_UU,Updated,AD_Org_ID,IsActive,UpdatedBy,CreatedBy,AD_Client_ID,Created) VALUES ('N','M','Y','N',0,'N',0,'D','Import Template',200063,'4e7ba78d-2a32-410f-8d8a-f1cdf7169421',TO_DATE('2014-10-29 19:34:06','YYYY-MM-DD HH24:MI:SS'),0,'Y',100,100,0,TO_DATE('2014-10-29 19:34:06','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:34:22 PM COT
|
||||
INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Window_ID,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,IsActive,CreatedBy,UpdatedBy,AD_Client_ID,Processing,DatabaseViewDrop,EntityType,AD_Org_ID,Created,Updated) VALUES ('N','N','N','7',0,200063,200153,'N','N','Y','L','9ca97d7d-d28e-4dd1-9204-9fcec7dddeb1','Y','Y','AD_ImportTemplate','Import Template','Y',100,100,0,'N','N','D',0,TO_DATE('2014-10-29 19:34:22','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-10-29 19:34:22','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:34:23 PM COT
|
||||
INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,Description,Name,IncrementNo,AD_Sequence_UU,AD_Org_ID,CreatedBy,UpdatedBy,Updated,IsActive,StartNo,AD_Client_ID,Created) VALUES ('N',200000,'Y',1000000,'N','Y',200209,'Table AD_ImportTemplate','AD_ImportTemplate',1,'701ace15-f75d-42ef-8019-7c90221a9c52',0,100,100,TO_DATE('2014-10-29 19:34:22','YYYY-MM-DD HH24:MI:SS'),'Y',1000000,0,TO_DATE('2014-10-29 19:34:22','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:46 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES ('N',1,211767,'Y','N','N','N',22,'N','N','N','Y','a68d2cca-d10b-4449-a3a3-f923b964e469','N','AD_Client_ID','Client/Tenant for this installation.','@#AD_Client_ID@','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client','N',TO_DATE('2014-10-29 19:38:45','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:38:45','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',102,19,200153,129,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:46 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES ('N',1,211768,'Y','N','N','N',22,'N','N','N','Y','19c0a6f0-7403-4b08-8e17-e8eb6c6a9fe6','N','AD_Org_ID','Organizational entity within client','@#AD_Org_ID@','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',TO_DATE('2014-10-29 19:38:46','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:38:46','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',113,19,200153,104,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:46 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('AD_ImportTemplate_ID',202793,'Import Template','Import Template','1e789d85-c0ca-4e42-991a-4c8c7bbe72ce',TO_DATE('2014-10-29 19:38:46','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_DATE('2014-10-29 19:38:46','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:47 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('N',1,211769,'Y','N','N','N',22,'N','Y','N','Y','f5f11211-e9cf-479a-9cd5-a43c57e4bc26','N','AD_ImportTemplate_ID','Import Template','N',TO_DATE('2014-10-29 19:38:46','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:38:46','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',202793,13,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:47 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('AD_ImportTemplate_UU',202794,'AD_ImportTemplate_UU','AD_ImportTemplate_UU','93e7a635-c727-40fa-98b0-4704d07daba5',TO_DATE('2014-10-29 19:38:47','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_DATE('2014-10-29 19:38:47','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:47 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('N',1.00,211770,'N','N','N','N',36,'N','N','N','Y','55879be1-dd16-465e-b262-0e48056995e5','Y','AD_ImportTemplate_UU','AD_ImportTemplate_UU','N',TO_DATE('2014-10-29 19:38:47','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:38:47','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',202794,10,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:47 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('N',1,211771,'Y','N','N','N',7,'N','N','N','Y','c177ec13-08ac-4dac-8d47-0f4a5677cb94','N','Created','Date this record was created','SYSDATE','The Created field indicates the date that this record was created.','Created','N',TO_DATE('2014-10-29 19:38:47','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:38:47','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',245,16,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:48 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('N',1,211772,'Y','N','N','N',22,'N','N','N','Y','4b2fa6e3-ba3d-4600-9da7-84292abf5f92','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',TO_DATE('2014-10-29 19:38:47','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:38:47','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',246,18,110,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:48 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('N',1,211773,'N','N','N','N',255,'Y','N','N','Y','b7a246ce-3610-4177-b400-8afb46d75042','Y','Description','Optional short description of the record','A description is limited to 255 characters.','Description','Y',TO_DATE('2014-10-29 19:38:48','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:38:48','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',275,10,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:48 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('N',1,211774,'Y','N','N','N',1,'N','N','N','Y','90fc3332-1b46-438e-9331-fc6a1412efa0','Y','IsActive','The record is active in the system','Y','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.','Active','N',TO_DATE('2014-10-29 19:38:48','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:38:48','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',348,20,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:49 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('N',1,211775,'Y','N','Y',1,'N',60,'Y','N','N','Y','29facf3f-e3b8-4278-a338-3cdbc10f66e8','Y','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.','Name','Y',TO_DATE('2014-10-29 19:38:48','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:38:48','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',469,10,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:49 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('N',1,211776,'Y','N','N','N',7,'N','N','N','Y','b30444f7-2e96-4d4a-8943-419825051492','N','Updated','Date this record was updated','SYSDATE','The Updated field indicates the date that this record was updated.','Updated','N',TO_DATE('2014-10-29 19:38:49','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:38:49','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',607,16,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:49 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('N',1,211777,'Y','N','N','N',22,'N','N','N','Y','3414a680-d4f5-42f4-9e81-0f1ff12d4d7c','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',TO_DATE('2014-10-29 19:38:49','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:38:49','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',608,18,110,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:39:56 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211778,'N','N','N',0,'N',22,'N','N','N','Y','a301bc32-f6af-42da-848b-41b15d0dd8dc','Y','AD_Window_ID','Data entry or display window','The Window field identifies a unique Window in the system.','Window','Y',TO_DATE('2014-10-29 19:39:55','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:39:55','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',143,19,200153,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:40:07 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211779,'N','N','N',0,'N',10,'N','N','N','Y','c7469d2b-f38e-4860-b42d-6a1c92a27b29','Y','AD_Tab_ID','Tab within a Window','The Tab indicates a tab that displays within a window.','Tab','Y',TO_DATE('2014-10-29 19:40:07','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:40:07','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',125,19,200153,163,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:40:56 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('CharacterSet',202795,'Character Set','Character Set','d143d958-7f99-4be3-9f19-8d0012d9b7d7',TO_DATE('2014-10-29 19:40:55','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_DATE('2014-10-29 19:40:55','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:41:40 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'N',0,211780,'N','N','N',0,'N',20,'N','N','N','Y','1240cae1-0d8d-4306-b6d6-df18cc918d9a','Y','CharacterSet','Character Set','Y',TO_DATE('2014-10-29 19:41:39','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:41:39','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',202795,10,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:42:32 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('CSVHeader',202796,'CSV Header','CSV Header','ebb82ae8-73ad-479a-9859-b7a45dd72259',TO_DATE('2014-10-29 19:42:31','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_DATE('2014-10-29 19:42:31','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:42:45 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'N',0,211781,'N','N','N',0,'N',2000,'N','N','N','Y','ebec370b-ef9f-41c0-9728-37ec364077ff','Y','CSVHeader','CSV Header','Y',TO_DATE('2014-10-29 19:42:45','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:42:45','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',202796,10,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:12 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('CSVAliasHeader',202797,'CSV Alias Header','CSV Alias Header','f38e026b-28e5-46f7-bcef-f9148b2014dc',TO_DATE('2014-10-29 19:43:11','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_DATE('2014-10-29 19:43:11','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:25 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211782,'N','N','N',0,'N',2000,'N','N','N','Y','727ce74b-2c18-49ce-a5e0-c42812a1d20c','Y','CSVAliasHeader','CSV Alias Header','Y',TO_DATE('2014-10-29 19:43:25','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:43:25','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',202797,10,200153,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:42 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADClient_ADImportTemplate', FKConstraintType='N',Updated=TO_DATE('2014-10-29 19:43:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211767
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:42 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADOrg_ADImportTemplate', FKConstraintType='N',Updated=TO_DATE('2014-10-29 19:43:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211768
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:42 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADTab_ADImportTemplate', FKConstraintType='N',Updated=TO_DATE('2014-10-29 19:43:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211779
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:42 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADWindow_ADImportTemplate', FKConstraintType='N',Updated=TO_DATE('2014-10-29 19:43:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211778
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:43 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='CreatedBy_ADImportTemplate', FKConstraintType='N',Updated=TO_DATE('2014-10-29 19:43:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211772
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:43 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='UpdatedBy_ADImportTemplate', FKConstraintType='N',Updated=TO_DATE('2014-10-29 19:43:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211777
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:43 PM COT
|
||||
CREATE TABLE AD_ImportTemplate (AD_Client_ID NUMBER(10) NOT NULL, AD_ImportTemplate_ID NUMBER(10) NOT NULL, AD_ImportTemplate_UU VARCHAR2(36) DEFAULT NULL , AD_Org_ID NUMBER(10) NOT NULL, AD_Tab_ID NUMBER(10) DEFAULT NULL , AD_Window_ID NUMBER(10) DEFAULT NULL , CharacterSet VARCHAR2(20) DEFAULT NULL , Created DATE DEFAULT SYSDATE NOT NULL, CreatedBy NUMBER(10) NOT NULL, CSVAliasHeader VARCHAR2(2000) DEFAULT NULL , CSVHeader VARCHAR2(2000) DEFAULT NULL , Description VARCHAR2(255) DEFAULT NULL , IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, Name VARCHAR2(60) NOT NULL, Updated DATE DEFAULT SYSDATE NOT NULL, UpdatedBy NUMBER(10) NOT NULL, CONSTRAINT AD_ImportTemplate_Key PRIMARY KEY (AD_ImportTemplate_ID), CONSTRAINT AD_ImportTemplate_UU_idx UNIQUE (AD_ImportTemplate_UU))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:43 PM COT
|
||||
ALTER TABLE AD_ImportTemplate ADD CONSTRAINT ADClient_ADImportTemplate FOREIGN KEY (AD_Client_ID) REFERENCES ad_client(ad_client_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:43 PM COT
|
||||
ALTER TABLE AD_ImportTemplate ADD CONSTRAINT ADOrg_ADImportTemplate FOREIGN KEY (AD_Org_ID) REFERENCES ad_org(ad_org_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:43 PM COT
|
||||
ALTER TABLE AD_ImportTemplate ADD CONSTRAINT ADTab_ADImportTemplate FOREIGN KEY (AD_Tab_ID) REFERENCES ad_tab(ad_tab_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:43 PM COT
|
||||
ALTER TABLE AD_ImportTemplate ADD CONSTRAINT ADWindow_ADImportTemplate FOREIGN KEY (AD_Window_ID) REFERENCES ad_window(ad_window_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:43 PM COT
|
||||
ALTER TABLE AD_ImportTemplate ADD CONSTRAINT CreatedBy_ADImportTemplate FOREIGN KEY (CreatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:43 PM COT
|
||||
ALTER TABLE AD_ImportTemplate ADD CONSTRAINT UpdatedBy_ADImportTemplate FOREIGN KEY (UpdatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:44:16 PM COT
|
||||
INSERT INTO AD_TableIndex (AD_Client_ID,AD_Org_ID,AD_TableIndex_ID,AD_TableIndex_UU,CreatedBy,IsActive,Name,UpdatedBy,IsCreateConstraint,IsUnique,AD_Table_ID,EntityType,Created,Updated,Processing) VALUES (0,0,201029,'8366ba0f-e1f5-444a-8218-ff53dff18e25',100,'Y','ad_importtemplate_uu_idx',100,'N','Y',200153,'D',TO_DATE('2014-10-29 19:44:15','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-10-29 19:44:15','YYYY-MM-DD HH24:MI:SS'),'N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:44:16 PM COT
|
||||
INSERT INTO AD_IndexColumn (CreatedBy,AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,IsActive,UpdatedBy,SeqNo,Created,Updated,AD_Column_ID,AD_TableIndex_ID) VALUES (100,0,0,201254,'fa33c80a-8ce6-4354-b707-7fd0766eac0d','Y',100,1,TO_DATE('2014-10-29 19:44:16','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-10-29 19:44:16','YYYY-MM-DD HH24:MI:SS'),211770,201029)
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:37 PM COT
|
||||
INSERT INTO AD_Tab (ImportFields,Processing,AD_Window_ID,IsSingleRow,SeqNo,IsTranslationTab,IsSortTab,HasTree,IsInfoTab,IsReadOnly,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,EntityType,Name,AD_Tab_ID,AD_Org_ID,CreatedBy,Updated,UpdatedBy,IsActive,AD_Client_ID,AD_Table_ID,Created,TreeDisplayedOn) VALUES ('N','N',200063,'Y',10,'N','N','N','N','N','Y','N',0,'3159d841-8fa1-4337-a546-a4d3bfafc4b4','D','Import Template',200167,0,100,TO_DATE('2014-10-29 19:46:36','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,200153,TO_DATE('2014-10-29 19:46:36','YYYY-MM-DD HH24:MI:SS'),'B')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:40 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,22,'N','N',10,'Y',203447,'N','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client/Tenant for this installation.','Client','8ae12e54-80e8-47d3-ac46-a100b5d930f3','Y','N',100,100,TO_DATE('2014-10-29 19:46:39','YYYY-MM-DD HH24:MI:SS'),'Y','Y',10,0,2,211767,'D',0,TO_DATE('2014-10-29 19:46:39','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:40 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,IsAllowCopy,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,22,'N','N',20,'Y',203448,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organizational entity within client','Organization','cca7110d-50f9-4cd1-b5ac-28390dc95c15','Y','N','Y',100,100,TO_DATE('2014-10-29 19:46:40','YYYY-MM-DD HH24:MI:SS'),'Y','Y',20,4,0,2,211768,'D',0,TO_DATE('2014-10-29 19:46:40','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:40 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,60,'N','N',30,'Y',203449,'N','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.','Alphanumeric identifier of the entity','Name','65ee8529-ab50-4611-a9bc-6226e184c35c','Y','N',100,100,TO_DATE('2014-10-29 19:46:40','YYYY-MM-DD HH24:MI:SS'),'Y','Y',30,0,5,211775,'D',0,TO_DATE('2014-10-29 19:46:40','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:40 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,255,'N','N',40,'Y',203450,'N','A description is limited to 255 characters.','Optional short description of the record','Description','48ec102e-f6fe-434b-8ccd-1d5dba370c10','Y','N',100,100,TO_DATE('2014-10-29 19:46:40','YYYY-MM-DD HH24:MI:SS'),'Y','Y',40,0,5,211773,'D',0,TO_DATE('2014-10-29 19:46:40','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:41 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,22,'N','N','Y',203451,'N','Import Template','2f89e030-1286-4777-8c06-9d36311d47c7','N','N',100,100,TO_DATE('2014-10-29 19:46:40','YYYY-MM-DD HH24:MI:SS'),'Y','N',0,2,211769,'D',0,TO_DATE('2014-10-29 19:46:40','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:41 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,36,'N','N','Y',203452,'N','AD_ImportTemplate_UU','745d1182-5425-4467-b687-b05b68c3930c','N','N',100,100,TO_DATE('2014-10-29 19:46:41','YYYY-MM-DD HH24:MI:SS'),'Y','N',0,2,211770,'D',0,TO_DATE('2014-10-29 19:46:41','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:41 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,22,'N','N',50,'Y',203453,'N','The Window field identifies a unique Window in the system.','Data entry or display window','Window','bd029bf2-6147-48ab-b099-c4d78537b749','Y','N',100,100,TO_DATE('2014-10-29 19:46:41','YYYY-MM-DD HH24:MI:SS'),'Y','Y',50,0,2,211778,'D',0,TO_DATE('2014-10-29 19:46:41','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:41 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,10,'N','N',60,'Y',203454,'N','The Tab indicates a tab that displays within a window.','Tab within a Window','Tab','3c0d9d71-3fbe-405e-8a86-077a179cb009','Y','N',100,100,TO_DATE('2014-10-29 19:46:41','YYYY-MM-DD HH24:MI:SS'),'Y','Y',60,0,2,211779,'D',0,TO_DATE('2014-10-29 19:46:41','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:42 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,20,'N','N',70,'Y',203455,'N','Character Set','d68bae68-bb0d-40e4-91d4-b494ca3bc28f','Y','N',100,100,TO_DATE('2014-10-29 19:46:41','YYYY-MM-DD HH24:MI:SS'),'Y','Y',70,0,2,211780,'D',0,TO_DATE('2014-10-29 19:46:41','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:42 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,2000,'N','N',80,'Y',203456,'N','CSV Header','defceac6-b945-46f6-a31f-667b8fe3af46','Y','N',100,100,TO_DATE('2014-10-29 19:46:42','YYYY-MM-DD HH24:MI:SS'),'Y','Y',80,0,5,211781,'D',0,TO_DATE('2014-10-29 19:46:42','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:42 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,2000,'N','N',90,'Y',203457,'N','CSV Alias Header','62a021ba-0312-46e8-b440-c429e2de11f6','Y','N',100,100,TO_DATE('2014-10-29 19:46:42','YYYY-MM-DD HH24:MI:SS'),'Y','Y',90,0,5,211782,'D',0,TO_DATE('2014-10-29 19:46:42','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:42 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,1,'N','N',100,'Y',203458,'N','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.','The record is active in the system','Active','ff24da67-465c-4344-9c6d-107e9cc81a2d','Y','N',100,100,TO_DATE('2014-10-29 19:46:42','YYYY-MM-DD HH24:MI:SS'),'Y','Y',100,2,0,2,211774,'D',0,TO_DATE('2014-10-29 19:46:42','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:47:02 PM COT
|
||||
UPDATE AD_Field SET SeqNo=60, IsDisplayed='Y', XPosition=4,Updated=TO_DATE('2014-10-29 19:47:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203454
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:47:02 PM COT
|
||||
UPDATE AD_Field SET SeqNo=0,Updated=TO_DATE('2014-10-29 19:47:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203452
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:47:02 PM COT
|
||||
UPDATE AD_Field SET SeqNo=0,Updated=TO_DATE('2014-10-29 19:47:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203451
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:47:57 PM COT
|
||||
INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Window_ID,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,IsActive,CreatedBy,UpdatedBy,AD_Client_ID,Processing,DatabaseViewDrop,EntityType,AD_Org_ID,Created,Updated) VALUES ('N','N','N','7',0,200063,200154,'N','N','N','L','31cc0aec-6aed-48d2-94a2-131999823079','Y','Y','AD_ImportTemplateAccess','Import Template Access','Y',100,100,0,'N','N','D',0,TO_DATE('2014-10-29 19:47:56','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-10-29 19:47:56','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:47:57 PM COT
|
||||
INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,Description,Name,IncrementNo,AD_Sequence_UU,AD_Org_ID,CreatedBy,UpdatedBy,Updated,IsActive,StartNo,AD_Client_ID,Created) VALUES ('N',200000,'Y',1000000,'N','Y',200210,'Table AD_ImportTemplateAccess','AD_ImportTemplateAccess',1,'95a39113-33bd-4f9b-b7a2-ddde6f50961a',0,100,100,TO_DATE('2014-10-29 19:47:57','YYYY-MM-DD HH24:MI:SS'),'Y',1000000,0,TO_DATE('2014-10-29 19:47:57','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:02 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211783,'N','N','N',0,'N',22,'N','N','N','Y','4af37f40-a64c-4595-9e03-046e0a38683e','N','AD_Client_ID','Client/Tenant for this installation.','@#AD_Client_ID@','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client','N',TO_DATE('2014-10-29 19:49:01','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:49:01','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',102,19,200154,129,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:02 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211784,'N','N','N',0,'N',22,'N','N','N','Y','24547bb5-0c8f-4baa-a21a-2412f80e35d5','N','AD_Org_ID','Organizational entity within client','@#AD_Org_ID@','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',TO_DATE('2014-10-29 19:49:02','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:49:02','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',113,19,200154,104,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:02 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211785,'N','N','N',0,'N',22,'N','N','N','Y','bd07f0dd-5882-495f-9ae6-fc98f2d29919','N','AD_Role_ID','Responsibility Role','The Role determines security and access a user who has this Role will have in the System.','Role','Y',TO_DATE('2014-10-29 19:49:02','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:49:02','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',123,19,200154,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:03 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211786,'N','N','N',0,'N',22,'N','N','N','Y','26373bfa-05bd-44a1-b98f-249736a4d1e2','N','AD_User_ID','User within the system - Internal or Business Partner Contact','-1','The User identifies a unique user in the system. This could be an internal user or a business partner contact','User/Contact','Y',TO_DATE('2014-10-29 19:49:02','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:49:02','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',138,30,110,200154,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:03 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'N',0,211787,'Y','N','N',0,'N',7,'N','N','N','Y','22098c1b-4d2e-45a4-a61a-20e0e63d4e54','N','Created','Date this record was created','SYSDATE','The Created field indicates the date that this record was created.','Created','N',TO_DATE('2014-10-29 19:49:03','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:49:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',245,16,200154,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:03 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211788,'N','N','N',0,'N',22,'N','N','N','Y','2b02e943-27a9-4fee-aef3-56abcc178085','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',TO_DATE('2014-10-29 19:49:03','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:49:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',246,18,110,200154,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:04 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'N',0,211789,'N','N','N',0,'N',1,'N','N','N','Y','76fe1243-cd5f-418f-a160-8e2f449171e1','Y','IsActive','The record is active in the system','Y','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.','Active','N',TO_DATE('2014-10-29 19:49:03','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:49:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',348,20,200154,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:04 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('AD_ImportTemplateAccess_ID',202798,'Import Template Access','Import Template Access','b89d66eb-0d30-41cf-9c1b-50fa6bf32655',TO_DATE('2014-10-29 19:49:04','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_DATE('2014-10-29 19:49:04','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:04 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'N',0,211790,'Y','N','N',0,'N',22,'N','Y','N','Y','6807f501-7e84-4a11-baf1-02aa6c9e6c6e','N','AD_ImportTemplateAccess_ID','Import Template Access','N',TO_DATE('2014-10-29 19:49:04','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:49:04','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',202798,13,200154,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:04 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('AD_ImportTemplateAccess_UU',202799,'AD_ImportTemplateAccess_UU','AD_ImportTemplateAccess_UU','7955a0e6-7f4b-4aef-aed7-be62893b2f8c',TO_DATE('2014-10-29 19:49:04','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_DATE('2014-10-29 19:49:04','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:05 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'N',0,211791,'N','N','N',0,'N',36,'N','N','N','Y','fdfc8ac5-3e31-4cb2-a059-1dfa44d3cf76','N','AD_ImportTemplateAccess_UU','AD_ImportTemplateAccess_UU','N',TO_DATE('2014-10-29 19:49:04','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:49:04','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',202799,10,200154,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:05 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211792,'N','N','N',0,'Y',22,'N','N','N','Y','3258811a-6add-4d45-b916-fee3861dabcc','N','PA_DashboardContent_ID','Dashboard Content','Y',TO_DATE('2014-10-29 19:49:05','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:49:05','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',51006,19,200154,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:05 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'N',0,211793,'Y','N','N',0,'N',7,'N','N','N','Y','e9e14e96-da06-484d-b097-cf773351d24c','N','Updated','Date this record was updated','SYSDATE','The Updated field indicates the date that this record was updated.','Updated','N',TO_DATE('2014-10-29 19:49:05','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:49:05','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',607,16,200154,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:05 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211794,'N','N','N',0,'N',22,'N','N','N','Y','8a486d42-3bb0-4ffc-ac8a-8c5668f081d8','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',TO_DATE('2014-10-29 19:49:05','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:49:05','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',608,18,110,200154,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:59 PM COT
|
||||
UPDATE AD_Column SET IsUpdateable='N', ColumnName='AD_ImportTemplate_ID', Description=NULL, Help=NULL, Name='Import Template', AD_Element_ID=202793,Updated=TO_DATE('2014-10-29 19:49:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211792
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:50:43 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,Description,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('IsAllowInsert',202800,'Allow Insert',NULL,'Allow Insert','2cc10cf3-6dd0-48bc-9bf1-3a4901ea2085',TO_DATE('2014-10-29 19:50:42','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_DATE('2014-10-29 19:50:42','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:50:54 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('IsAllowMerge',202801,'Allow Merge','Allow Merge','9e642c38-9a48-45fd-a652-68a1e62884f7',TO_DATE('2014-10-29 19:50:54','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_DATE('2014-10-29 19:50:54','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:08 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('IsAllowUpdate',202802,'Allow Update','Allow Update','2aa5523b-35f0-4f53-a0ed-271a1d200adf',TO_DATE('2014-10-29 19:51:07','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_DATE('2014-10-29 19:51:07','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:19 PM COT
|
||||
UPDATE AD_Column SET FieldLength=1, IsUpdateable='Y', ColumnName='IsAllowInsert', Description=NULL, DefaultValue='Y', Help=NULL, Name='Allow Insert', AD_Element_ID=202800, AD_Reference_ID=20, AD_Reference_Value_ID=NULL, FKConstraintType=NULL,Updated=TO_DATE('2014-10-29 19:51:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211786
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:30 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'N',0,211795,'N','N','N',0,'N',1,'N','N','N','Y','c73d9978-6703-401e-ae04-e67cee28ec35','Y','IsAllowMerge','Y','Allow Merge','Y',TO_DATE('2014-10-29 19:51:29','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:51:29','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',202801,20,200154,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:35 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211796,'N','N','N',0,'N',1,'N','N','N','Y','c3ce0b40-1ec7-4bda-9be7-045c3d641e6b','Y','IsAllowUpdate','Y','Allow Update','Y',TO_DATE('2014-10-29 19:51:35','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2014-10-29 19:51:35','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',202802,20,200154,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:51 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADClient_ADImportTemplateAcces', FKConstraintType='N',Updated=TO_DATE('2014-10-29 19:51:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211783
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:51 PM COT
|
||||
UPDATE AD_Column SET IsUpdateable='N', FKConstraintName='ADImportTemplate_ADImportTempl', FKConstraintType='N',Updated=TO_DATE('2014-10-29 19:51:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211792
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:51 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADOrg_ADImportTemplateAccess', FKConstraintType='N',Updated=TO_DATE('2014-10-29 19:51:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211784
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADRole_ADImportTemplateAccess', FKConstraintType='N',Updated=TO_DATE('2014-10-29 19:51:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211785
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='CreatedBy_ADImportTemplateAcce', FKConstraintType='N',Updated=TO_DATE('2014-10-29 19:51:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211788
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='UpdatedBy_ADImportTemplateAcce', FKConstraintType='N',Updated=TO_DATE('2014-10-29 19:51:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211794
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
CREATE TABLE AD_ImportTemplateAccess (AD_Client_ID NUMBER(10) DEFAULT NULL , AD_ImportTemplateAccess_ID NUMBER(10) NOT NULL, AD_ImportTemplateAccess_UU VARCHAR2(36) DEFAULT NULL , AD_ImportTemplate_ID NUMBER(10) DEFAULT NULL , AD_Org_ID NUMBER(10) DEFAULT NULL , AD_Role_ID NUMBER(10) DEFAULT NULL , Created DATE DEFAULT SYSDATE NOT NULL, CreatedBy NUMBER(10) DEFAULT NULL , IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')), IsAllowInsert CHAR(1) DEFAULT 'Y' CHECK (IsAllowInsert IN ('Y','N')), IsAllowMerge CHAR(1) DEFAULT 'Y' CHECK (IsAllowMerge IN ('Y','N')), IsAllowUpdate CHAR(1) DEFAULT 'Y' CHECK (IsAllowUpdate IN ('Y','N')), Updated DATE DEFAULT SYSDATE NOT NULL, UpdatedBy NUMBER(10) DEFAULT NULL , CONSTRAINT AD_ImportTemplateAccess_Key PRIMARY KEY (AD_ImportTemplateAccess_ID), CONSTRAINT AD_ImportTemplateAccess_UU_idx UNIQUE (AD_ImportTemplateAccess_UU))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
ALTER TABLE AD_ImportTemplateAccess ADD CONSTRAINT ADClient_ADImportTemplateAcces FOREIGN KEY (AD_Client_ID) REFERENCES ad_client(ad_client_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
ALTER TABLE AD_ImportTemplateAccess ADD CONSTRAINT ADImportTemplate_ADImportTempl FOREIGN KEY (AD_ImportTemplate_ID) REFERENCES ad_importtemplate(ad_importtemplate_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
ALTER TABLE AD_ImportTemplateAccess ADD CONSTRAINT ADOrg_ADImportTemplateAccess FOREIGN KEY (AD_Org_ID) REFERENCES ad_org(ad_org_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
ALTER TABLE AD_ImportTemplateAccess ADD CONSTRAINT ADRole_ADImportTemplateAccess FOREIGN KEY (AD_Role_ID) REFERENCES ad_role(ad_role_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
ALTER TABLE AD_ImportTemplateAccess ADD CONSTRAINT CreatedBy_ADImportTemplateAcce FOREIGN KEY (CreatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
ALTER TABLE AD_ImportTemplateAccess ADD CONSTRAINT UpdatedBy_ADImportTemplateAcce FOREIGN KEY (UpdatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:52:08 PM COT
|
||||
INSERT INTO AD_TableIndex (AD_Client_ID,AD_Org_ID,AD_TableIndex_ID,AD_TableIndex_UU,CreatedBy,IsActive,Name,UpdatedBy,IsCreateConstraint,IsUnique,AD_Table_ID,EntityType,Created,Updated,Processing) VALUES (0,0,201030,'a144e4f0-adf4-4589-9b53-ea1c6bfa34bc',100,'Y','ad_importtemplateaccess_uu_idx',100,'N','Y',200154,'D',TO_DATE('2014-10-29 19:52:07','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-10-29 19:52:07','YYYY-MM-DD HH24:MI:SS'),'N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:52:08 PM COT
|
||||
INSERT INTO AD_IndexColumn (CreatedBy,AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,IsActive,UpdatedBy,SeqNo,Created,Updated,AD_Column_ID,AD_TableIndex_ID) VALUES (100,0,0,201255,'30d3191c-d73c-4a3e-9e9f-74487045ced0','Y',100,1,TO_DATE('2014-10-29 19:52:08','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-10-29 19:52:08','YYYY-MM-DD HH24:MI:SS'),211791,201030)
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:49 PM COT
|
||||
INSERT INTO AD_Tab (ImportFields,Processing,AD_Window_ID,IsSingleRow,SeqNo,IsTranslationTab,IsSortTab,HasTree,IsInfoTab,IsReadOnly,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,EntityType,Name,AD_Tab_ID,AD_Org_ID,CreatedBy,Updated,UpdatedBy,IsActive,AD_Client_ID,AD_Column_ID,AD_Table_ID,Created,TreeDisplayedOn) VALUES ('N','N',200063,'Y',20,'N','N','N','N','N','Y','N',1,'fa6ec748-a733-4ab9-94a6-eb7c388fbb69','D','Import Template Access',200168,0,100,TO_DATE('2014-10-29 19:53:48','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,211792,200154,TO_DATE('2014-10-29 19:53:48','YYYY-MM-DD HH24:MI:SS'),'B')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:53 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,22,'N','N',10,'Y',203459,'N','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client/Tenant for this installation.','Client','6cff991b-3f72-45b7-8d39-50b9d7756b63','Y','N',100,100,TO_DATE('2014-10-29 19:53:53','YYYY-MM-DD HH24:MI:SS'),'Y','Y',10,0,2,211783,'D',0,TO_DATE('2014-10-29 19:53:53','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:53 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,IsAllowCopy,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,22,'N','N',20,'Y',203460,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organizational entity within client','Organization','9453cf50-3dd4-4152-95f8-cc26bf87590a','Y','N','Y',100,100,TO_DATE('2014-10-29 19:53:53','YYYY-MM-DD HH24:MI:SS'),'Y','Y',20,4,0,2,211784,'D',0,TO_DATE('2014-10-29 19:53:53','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:53 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,22,'N','N',30,'Y',203461,'N','The Role determines security and access a user who has this Role will have in the System.','Responsibility Role','Role','0bf19755-a237-41a7-8483-418587d6ff75','Y','N',100,100,TO_DATE('2014-10-29 19:53:53','YYYY-MM-DD HH24:MI:SS'),'Y','Y',30,0,2,211785,'D',0,TO_DATE('2014-10-29 19:53:53','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:54 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,1,'N','N',40,'Y',203462,'N','Allow Insert','8b29f253-9f7b-4d97-bbb2-1246ec51b707','Y','N',100,100,TO_DATE('2014-10-29 19:53:53','YYYY-MM-DD HH24:MI:SS'),'Y','Y',40,2,0,2,211786,'D',0,TO_DATE('2014-10-29 19:53:53','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:54 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,22,'N','N','Y',203463,'N','Import Template Access','2cd5390b-dec3-45b8-88b0-a6a9bf9c7f38','N','N',100,100,TO_DATE('2014-10-29 19:53:54','YYYY-MM-DD HH24:MI:SS'),'Y','N',0,2,211790,'D',0,TO_DATE('2014-10-29 19:53:54','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:54 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,36,'N','N','Y',203464,'N','AD_ImportTemplateAccess_UU','41fad25d-e32e-4cce-831c-c4c5aa709b55','N','N',100,100,TO_DATE('2014-10-29 19:53:54','YYYY-MM-DD HH24:MI:SS'),'Y','N',0,2,211791,'D',0,TO_DATE('2014-10-29 19:53:54','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:54 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,22,'N','N',50,'Y',203465,'N','Import Template','cbe5d6c4-3c1d-4e6d-a705-0eb613f3124c','Y','N',100,100,TO_DATE('2014-10-29 19:53:54','YYYY-MM-DD HH24:MI:SS'),'Y','Y',50,0,2,211792,'D',0,TO_DATE('2014-10-29 19:53:54','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:55 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,1,'N','N',60,'Y',203466,'N','Allow Merge','8f422234-5cc3-4cc6-8c20-8d04f3069a22','Y','N',100,100,TO_DATE('2014-10-29 19:53:54','YYYY-MM-DD HH24:MI:SS'),'Y','Y',60,2,0,2,211795,'D',0,TO_DATE('2014-10-29 19:53:54','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:55 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,1,'N','N',70,'Y',203467,'N','Allow Update','63ec11ce-c1b9-4ed6-bbda-0bd0e545b31d','Y','N',100,100,TO_DATE('2014-10-29 19:53:55','YYYY-MM-DD HH24:MI:SS'),'Y','Y',70,2,0,2,211796,'D',0,TO_DATE('2014-10-29 19:53:55','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:55 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,1,'N','N',80,'Y',203468,'N','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.','The record is active in the system','Active','6b477202-85a6-41fa-90b6-a64ed915fb27','Y','N',100,100,TO_DATE('2014-10-29 19:53:55','YYYY-MM-DD HH24:MI:SS'),'Y','Y',80,2,0,2,211789,'D',0,TO_DATE('2014-10-29 19:53:55','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:54:54 PM COT
|
||||
UPDATE AD_Field SET SeqNo=30, IsDisplayed='Y', XPosition=1,Updated=TO_DATE('2014-10-29 19:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203465
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:54:54 PM COT
|
||||
UPDATE AD_Field SET SeqNo=40, IsDisplayed='Y', XPosition=4,Updated=TO_DATE('2014-10-29 19:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203461
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:54:54 PM COT
|
||||
UPDATE AD_Field SET SeqNo=50, ColumnSpan=1,Updated=TO_DATE('2014-10-29 19:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203462
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:54:54 PM COT
|
||||
UPDATE AD_Field SET SeqNo=60, IsDisplayed='Y', XPosition=3, ColumnSpan=1,Updated=TO_DATE('2014-10-29 19:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203466
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:54:54 PM COT
|
||||
UPDATE AD_Field SET SeqNo=70, IsDisplayed='Y', XPosition=4, ColumnSpan=1,Updated=TO_DATE('2014-10-29 19:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203467
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:54:54 PM COT
|
||||
UPDATE AD_Field SET SeqNo=80, IsDisplayed='Y', XPosition=5,Updated=TO_DATE('2014-10-29 19:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203468
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:54:54 PM COT
|
||||
UPDATE AD_Field SET SeqNo=0,Updated=TO_DATE('2014-10-29 19:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203464
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:54:54 PM COT
|
||||
UPDATE AD_Field SET SeqNo=0,Updated=TO_DATE('2014-10-29 19:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203463
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:05:37 PM COT
|
||||
INSERT INTO AD_Menu (AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,EntityType,IsCentrallyMaintained,Name,AD_Menu_UU,IsActive,CreatedBy,Updated,UpdatedBy,AD_Client_ID,AD_Org_ID,Created) VALUES (200095,'Y','N','N','D','N','CSV Import','3f0151f1-c384-49bf-bd3f-2263a0e0ae72','Y',100,TO_DATE('2014-10-29 20:05:36','YYYY-MM-DD HH24:MI:SS'),100,0,0,TO_DATE('2014-10-29 20:05:36','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:05:37 PM COT
|
||||
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', SysDate, 100, SysDate, 100,t.AD_Tree_ID, 200095, 0, 999, Generate_UUID() FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=200095)
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:06:15 PM COT
|
||||
UPDATE AD_Menu SET AD_Window_ID=200063, IsSummary='N', IsSOTrx='Y', Name='Import Template', Action='W',Updated=TO_DATE('2014-10-29 20:06:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=200095
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=218
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=153
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=263
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=166
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=203
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53242
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=236
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=183
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=160
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=278
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=345
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53296
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53014
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53108
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=222
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=223
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=185
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=340
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53264
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53206
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=339
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=338
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53282
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=363
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=376
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=382
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=486
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=425
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=378
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=374
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=16, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53284
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=17, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=423
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=18, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53263
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=19, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=373
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=20, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=424
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=21, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200095
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 9:42:40 PM COT
|
||||
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,CreatedBy,UpdatedBy,Created,AD_Client_ID,AD_Org_ID,Updated) VALUES ('M','CSV Import File Loader',200326,'D','9e568b5d-ccf6-4bc8-940b-ee539805712e','CSVImport','Y',100,100,TO_DATE('2014-10-29 21:42:39','YYYY-MM-DD HH24:MI:SS'),0,0,TO_DATE('2014-10-29 21:42:39','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 9:46:46 PM COT
|
||||
INSERT INTO AD_ToolBarButton (Action,SeqNo,CreatedBy,KeyStroke_Modifiers,AD_ToolBarButton_ID,Name,ComponentName,AD_Org_ID,IsCustomization,KeyStroke_KeyCode,UpdatedBy,Created,Updated,IsActive,AD_Client_ID,AD_ToolBarButton_UU,IsAdvancedButton,IsAddSeparator) VALUES ('W',270,100,0,200081,'zk Window - CSV File Import','CSVImport',0,'N',0,100,TO_DATE('2014-10-29 21:46:45','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2014-10-29 21:46:45','YYYY-MM-DD HH24:MI:SS'),'Y',0,'42b3879c-3e27-44c2-9c2c-b64b6d43d2fa','N','N')
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:40 PM COT
|
||||
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_DATE('2014-11-04 20:19:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211779
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:43 PM COT
|
||||
ALTER TABLE AD_ImportTemplate MODIFY AD_Tab_ID NUMBER(10)
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:43 PM COT
|
||||
ALTER TABLE AD_ImportTemplate MODIFY AD_Tab_ID NOT NULL
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:43 PM COT
|
||||
ALTER TABLE AD_ImportTemplate DROP CONSTRAINT adtab_adimporttemplate
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:43 PM COT
|
||||
ALTER TABLE AD_ImportTemplate ADD CONSTRAINT ADTab_ADImportTemplate FOREIGN KEY (AD_Tab_ID) REFERENCES ad_tab(ad_tab_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:51 PM COT
|
||||
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_DATE('2014-11-04 20:19:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211778
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:52 PM COT
|
||||
ALTER TABLE AD_ImportTemplate MODIFY AD_Window_ID NUMBER(10)
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:52 PM COT
|
||||
ALTER TABLE AD_ImportTemplate MODIFY AD_Window_ID NOT NULL
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:52 PM COT
|
||||
ALTER TABLE AD_ImportTemplate DROP CONSTRAINT adwindow_adimporttemplate
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:52 PM COT
|
||||
ALTER TABLE AD_ImportTemplate ADD CONSTRAINT ADWindow_ADImportTemplate FOREIGN KEY (AD_Window_ID) REFERENCES ad_window(ad_window_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:57 PM COT
|
||||
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_DATE('2014-11-04 20:19:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211780
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:59 PM COT
|
||||
ALTER TABLE AD_ImportTemplate MODIFY CharacterSet VARCHAR2(20)
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:59 PM COT
|
||||
ALTER TABLE AD_ImportTemplate MODIFY CharacterSet NOT NULL
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:20:13 PM COT
|
||||
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_DATE('2014-11-04 20:20:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211781
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:20:15 PM COT
|
||||
ALTER TABLE AD_ImportTemplate MODIFY CSVHeader VARCHAR2(2000)
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:20:15 PM COT
|
||||
ALTER TABLE AD_ImportTemplate MODIFY CSVHeader NOT NULL
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:43:10 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=203465
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:43:10 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=203460
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:43:10 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=203459
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:43:10 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=203461
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:43:10 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=203462
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:43:10 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=203466
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:43:10 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=203467
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:43:10 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=203468
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 9:07:37 PM COT
|
||||
UPDATE AD_Column SET Callout='org.compiere.model.CalloutImportTemplate.characterSet',Updated=TO_DATE('2014-11-04 21:07:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211780
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 11:20:18 PM COT
|
||||
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,AD_Message_UU,Value,IsActive,CreatedBy,UpdatedBy,Created,AD_Client_ID,EntityType,AD_Org_ID,Updated) VALUES ('E','CSV Header doesn''t match template',200327,'49bcc54d-8b87-4227-9382-547517265005','WrongCSVHeader','Y',100,100,TO_DATE('2014-11-04 23:20:18','YYYY-MM-DD HH24:MI:SS'),0,'D',0,TO_DATE('2014-11-04 23:20:18','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201411042322_IDEMPIERE-2113.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,732 @@
|
|||
-- Oct 29, 2014 7:34:07 PM COT
|
||||
-- IDEMPIERE-2113 Enable import button for end users
|
||||
INSERT INTO AD_Window (Processing,WindowType,IsSOTrx,IsDefault,WinHeight,IsBetaFunctionality,WinWidth,EntityType,Name,AD_Window_ID,AD_Window_UU,Updated,AD_Org_ID,IsActive,UpdatedBy,CreatedBy,AD_Client_ID,Created) VALUES ('N','M','Y','N',0,'N',0,'D','Import Template',200063,'4e7ba78d-2a32-410f-8d8a-f1cdf7169421',TO_TIMESTAMP('2014-10-29 19:34:06','YYYY-MM-DD HH24:MI:SS'),0,'Y',100,100,0,TO_TIMESTAMP('2014-10-29 19:34:06','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:34:22 PM COT
|
||||
INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Window_ID,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,IsActive,CreatedBy,UpdatedBy,AD_Client_ID,Processing,DatabaseViewDrop,EntityType,AD_Org_ID,Created,Updated) VALUES ('N','N','N','7',0,200063,200153,'N','N','Y','L','9ca97d7d-d28e-4dd1-9204-9fcec7dddeb1','Y','Y','AD_ImportTemplate','Import Template','Y',100,100,0,'N','N','D',0,TO_TIMESTAMP('2014-10-29 19:34:22','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2014-10-29 19:34:22','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:34:23 PM COT
|
||||
INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,Description,Name,IncrementNo,AD_Sequence_UU,AD_Org_ID,CreatedBy,UpdatedBy,Updated,IsActive,StartNo,AD_Client_ID,Created) VALUES ('N',200000,'Y',1000000,'N','Y',200209,'Table AD_ImportTemplate','AD_ImportTemplate',1,'701ace15-f75d-42ef-8019-7c90221a9c52',0,100,100,TO_TIMESTAMP('2014-10-29 19:34:22','YYYY-MM-DD HH24:MI:SS'),'Y',1000000,0,TO_TIMESTAMP('2014-10-29 19:34:22','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:46 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES ('N',1,211767,'Y','N','N','N',22,'N','N','N','Y','a68d2cca-d10b-4449-a3a3-f923b964e469','N','AD_Client_ID','Client/Tenant for this installation.','@#AD_Client_ID@','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client','N',TO_TIMESTAMP('2014-10-29 19:38:45','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:38:45','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',102,19,200153,129,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:46 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES ('N',1,211768,'Y','N','N','N',22,'N','N','N','Y','19c0a6f0-7403-4b08-8e17-e8eb6c6a9fe6','N','AD_Org_ID','Organizational entity within client','@#AD_Org_ID@','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',TO_TIMESTAMP('2014-10-29 19:38:46','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:38:46','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',113,19,200153,104,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:46 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('AD_ImportTemplate_ID',202793,'Import Template','Import Template','1e789d85-c0ca-4e42-991a-4c8c7bbe72ce',TO_TIMESTAMP('2014-10-29 19:38:46','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_TIMESTAMP('2014-10-29 19:38:46','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:47 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('N',1,211769,'Y','N','N','N',22,'N','Y','N','Y','f5f11211-e9cf-479a-9cd5-a43c57e4bc26','N','AD_ImportTemplate_ID','Import Template','N',TO_TIMESTAMP('2014-10-29 19:38:46','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:38:46','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',202793,13,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:47 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('AD_ImportTemplate_UU',202794,'AD_ImportTemplate_UU','AD_ImportTemplate_UU','93e7a635-c727-40fa-98b0-4704d07daba5',TO_TIMESTAMP('2014-10-29 19:38:47','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_TIMESTAMP('2014-10-29 19:38:47','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:47 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('N',1.00,211770,'N','N','N','N',36,'N','N','N','Y','55879be1-dd16-465e-b262-0e48056995e5','Y','AD_ImportTemplate_UU','AD_ImportTemplate_UU','N',TO_TIMESTAMP('2014-10-29 19:38:47','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:38:47','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',202794,10,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:47 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('N',1,211771,'Y','N','N','N',7,'N','N','N','Y','c177ec13-08ac-4dac-8d47-0f4a5677cb94','N','Created','Date this record was created','SYSDATE','The Created field indicates the date that this record was created.','Created','N',TO_TIMESTAMP('2014-10-29 19:38:47','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:38:47','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',245,16,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:48 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('N',1,211772,'Y','N','N','N',22,'N','N','N','Y','4b2fa6e3-ba3d-4600-9da7-84292abf5f92','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',TO_TIMESTAMP('2014-10-29 19:38:47','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:38:47','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',246,18,110,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:48 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('N',1,211773,'N','N','N','N',255,'Y','N','N','Y','b7a246ce-3610-4177-b400-8afb46d75042','Y','Description','Optional short description of the record','A description is limited to 255 characters.','Description','Y',TO_TIMESTAMP('2014-10-29 19:38:48','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:38:48','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',275,10,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:48 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('N',1,211774,'Y','N','N','N',1,'N','N','N','Y','90fc3332-1b46-438e-9331-fc6a1412efa0','Y','IsActive','The record is active in the system','Y','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.','Active','N',TO_TIMESTAMP('2014-10-29 19:38:48','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:38:48','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',348,20,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:49 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('N',1,211775,'Y','N','Y',1,'N',60,'Y','N','N','Y','29facf3f-e3b8-4278-a338-3cdbc10f66e8','Y','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.','Name','Y',TO_TIMESTAMP('2014-10-29 19:38:48','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:38:48','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',469,10,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:49 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('N',1,211776,'Y','N','N','N',7,'N','N','N','Y','b30444f7-2e96-4d4a-8943-419825051492','N','Updated','Date this record was updated','SYSDATE','The Updated field indicates the date that this record was updated.','Updated','N',TO_TIMESTAMP('2014-10-29 19:38:49','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:38:49','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',607,16,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:38:49 PM COT
|
||||
INSERT INTO AD_Column (IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES ('N',1,211777,'Y','N','N','N',22,'N','N','N','Y','3414a680-d4f5-42f4-9e81-0f1ff12d4d7c','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',TO_TIMESTAMP('2014-10-29 19:38:49','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:38:49','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',608,18,110,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:39:56 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211778,'N','N','N',0,'N',22,'N','N','N','Y','a301bc32-f6af-42da-848b-41b15d0dd8dc','Y','AD_Window_ID','Data entry or display window','The Window field identifies a unique Window in the system.','Window','Y',TO_TIMESTAMP('2014-10-29 19:39:55','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:39:55','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',143,19,200153,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:40:07 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211779,'N','N','N',0,'N',10,'N','N','N','Y','c7469d2b-f38e-4860-b42d-6a1c92a27b29','Y','AD_Tab_ID','Tab within a Window','The Tab indicates a tab that displays within a window.','Tab','Y',TO_TIMESTAMP('2014-10-29 19:40:07','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:40:07','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',125,19,200153,163,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:40:56 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('CharacterSet',202795,'Character Set','Character Set','d143d958-7f99-4be3-9f19-8d0012d9b7d7',TO_TIMESTAMP('2014-10-29 19:40:55','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_TIMESTAMP('2014-10-29 19:40:55','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:41:40 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'N',0,211780,'N','N','N',0,'N',20,'N','N','N','Y','1240cae1-0d8d-4306-b6d6-df18cc918d9a','Y','CharacterSet','Character Set','Y',TO_TIMESTAMP('2014-10-29 19:41:39','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:41:39','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',202795,10,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:42:32 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('CSVHeader',202796,'CSV Header','CSV Header','ebb82ae8-73ad-479a-9859-b7a45dd72259',TO_TIMESTAMP('2014-10-29 19:42:31','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_TIMESTAMP('2014-10-29 19:42:31','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:42:45 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'N',0,211781,'N','N','N',0,'N',2000,'N','N','N','Y','ebec370b-ef9f-41c0-9728-37ec364077ff','Y','CSVHeader','CSV Header','Y',TO_TIMESTAMP('2014-10-29 19:42:45','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:42:45','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',202796,10,200153,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:12 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('CSVAliasHeader',202797,'CSV Alias Header','CSV Alias Header','f38e026b-28e5-46f7-bcef-f9148b2014dc',TO_TIMESTAMP('2014-10-29 19:43:11','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_TIMESTAMP('2014-10-29 19:43:11','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:25 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211782,'N','N','N',0,'N',2000,'N','N','N','Y','727ce74b-2c18-49ce-a5e0-c42812a1d20c','Y','CSVAliasHeader','CSV Alias Header','Y',TO_TIMESTAMP('2014-10-29 19:43:25','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:43:25','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',202797,10,200153,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:42 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADClient_ADImportTemplate', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-10-29 19:43:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211767
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:42 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADOrg_ADImportTemplate', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-10-29 19:43:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211768
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:42 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADTab_ADImportTemplate', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-10-29 19:43:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211779
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:42 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADWindow_ADImportTemplate', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-10-29 19:43:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211778
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:43 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='CreatedBy_ADImportTemplate', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-10-29 19:43:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211772
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:43 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='UpdatedBy_ADImportTemplate', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-10-29 19:43:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211777
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:43 PM COT
|
||||
CREATE TABLE AD_ImportTemplate (AD_Client_ID NUMERIC(10) NOT NULL, AD_ImportTemplate_ID NUMERIC(10) NOT NULL, AD_ImportTemplate_UU VARCHAR(36) DEFAULT NULL , AD_Org_ID NUMERIC(10) NOT NULL, AD_Tab_ID NUMERIC(10) DEFAULT NULL , AD_Window_ID NUMERIC(10) DEFAULT NULL , CharacterSet VARCHAR(20) DEFAULT NULL , Created TIMESTAMP DEFAULT statement_timestamp() NOT NULL, CreatedBy NUMERIC(10) NOT NULL, CSVAliasHeader VARCHAR(2000) DEFAULT NULL , CSVHeader VARCHAR(2000) DEFAULT NULL , Description VARCHAR(255) DEFAULT NULL , IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, Name VARCHAR(60) NOT NULL, Updated TIMESTAMP DEFAULT statement_timestamp() NOT NULL, UpdatedBy NUMERIC(10) NOT NULL, CONSTRAINT AD_ImportTemplate_Key PRIMARY KEY (AD_ImportTemplate_ID), CONSTRAINT AD_ImportTemplate_UU_idx UNIQUE (AD_ImportTemplate_UU))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:43 PM COT
|
||||
ALTER TABLE AD_ImportTemplate ADD CONSTRAINT ADClient_ADImportTemplate FOREIGN KEY (AD_Client_ID) REFERENCES ad_client(ad_client_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:43 PM COT
|
||||
ALTER TABLE AD_ImportTemplate ADD CONSTRAINT ADOrg_ADImportTemplate FOREIGN KEY (AD_Org_ID) REFERENCES ad_org(ad_org_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:43 PM COT
|
||||
ALTER TABLE AD_ImportTemplate ADD CONSTRAINT ADTab_ADImportTemplate FOREIGN KEY (AD_Tab_ID) REFERENCES ad_tab(ad_tab_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:43 PM COT
|
||||
ALTER TABLE AD_ImportTemplate ADD CONSTRAINT ADWindow_ADImportTemplate FOREIGN KEY (AD_Window_ID) REFERENCES ad_window(ad_window_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:43 PM COT
|
||||
ALTER TABLE AD_ImportTemplate ADD CONSTRAINT CreatedBy_ADImportTemplate FOREIGN KEY (CreatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:43:43 PM COT
|
||||
ALTER TABLE AD_ImportTemplate ADD CONSTRAINT UpdatedBy_ADImportTemplate FOREIGN KEY (UpdatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:44:16 PM COT
|
||||
INSERT INTO AD_TableIndex (AD_Client_ID,AD_Org_ID,AD_TableIndex_ID,AD_TableIndex_UU,CreatedBy,IsActive,Name,UpdatedBy,IsCreateConstraint,IsUnique,AD_Table_ID,EntityType,Created,Updated,Processing) VALUES (0,0,201029,'8366ba0f-e1f5-444a-8218-ff53dff18e25',100,'Y','ad_importtemplate_uu_idx',100,'N','Y',200153,'D',TO_TIMESTAMP('2014-10-29 19:44:15','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2014-10-29 19:44:15','YYYY-MM-DD HH24:MI:SS'),'N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:44:16 PM COT
|
||||
INSERT INTO AD_IndexColumn (CreatedBy,AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,IsActive,UpdatedBy,SeqNo,Created,Updated,AD_Column_ID,AD_TableIndex_ID) VALUES (100,0,0,201254,'fa33c80a-8ce6-4354-b707-7fd0766eac0d','Y',100,1,TO_TIMESTAMP('2014-10-29 19:44:16','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2014-10-29 19:44:16','YYYY-MM-DD HH24:MI:SS'),211770,201029)
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:37 PM COT
|
||||
INSERT INTO AD_Tab (ImportFields,Processing,AD_Window_ID,IsSingleRow,SeqNo,IsTranslationTab,IsSortTab,HasTree,IsInfoTab,IsReadOnly,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,EntityType,Name,AD_Tab_ID,AD_Org_ID,CreatedBy,Updated,UpdatedBy,IsActive,AD_Client_ID,AD_Table_ID,Created,TreeDisplayedOn) VALUES ('N','N',200063,'Y',10,'N','N','N','N','N','Y','N',0,'3159d841-8fa1-4337-a546-a4d3bfafc4b4','D','Import Template',200167,0,100,TO_TIMESTAMP('2014-10-29 19:46:36','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,200153,TO_TIMESTAMP('2014-10-29 19:46:36','YYYY-MM-DD HH24:MI:SS'),'B')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:40 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,22,'N','N',10,'Y',203447,'N','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client/Tenant for this installation.','Client','8ae12e54-80e8-47d3-ac46-a100b5d930f3','Y','N',100,100,TO_TIMESTAMP('2014-10-29 19:46:39','YYYY-MM-DD HH24:MI:SS'),'Y','Y',10,0,2,211767,'D',0,TO_TIMESTAMP('2014-10-29 19:46:39','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:40 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,IsAllowCopy,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,22,'N','N',20,'Y',203448,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organizational entity within client','Organization','cca7110d-50f9-4cd1-b5ac-28390dc95c15','Y','N','Y',100,100,TO_TIMESTAMP('2014-10-29 19:46:40','YYYY-MM-DD HH24:MI:SS'),'Y','Y',20,4,0,2,211768,'D',0,TO_TIMESTAMP('2014-10-29 19:46:40','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:40 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,60,'N','N',30,'Y',203449,'N','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.','Alphanumeric identifier of the entity','Name','65ee8529-ab50-4611-a9bc-6226e184c35c','Y','N',100,100,TO_TIMESTAMP('2014-10-29 19:46:40','YYYY-MM-DD HH24:MI:SS'),'Y','Y',30,0,5,211775,'D',0,TO_TIMESTAMP('2014-10-29 19:46:40','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:40 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,255,'N','N',40,'Y',203450,'N','A description is limited to 255 characters.','Optional short description of the record','Description','48ec102e-f6fe-434b-8ccd-1d5dba370c10','Y','N',100,100,TO_TIMESTAMP('2014-10-29 19:46:40','YYYY-MM-DD HH24:MI:SS'),'Y','Y',40,0,5,211773,'D',0,TO_TIMESTAMP('2014-10-29 19:46:40','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:41 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,22,'N','N','Y',203451,'N','Import Template','2f89e030-1286-4777-8c06-9d36311d47c7','N','N',100,100,TO_TIMESTAMP('2014-10-29 19:46:40','YYYY-MM-DD HH24:MI:SS'),'Y','N',0,2,211769,'D',0,TO_TIMESTAMP('2014-10-29 19:46:40','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:41 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,36,'N','N','Y',203452,'N','AD_ImportTemplate_UU','745d1182-5425-4467-b687-b05b68c3930c','N','N',100,100,TO_TIMESTAMP('2014-10-29 19:46:41','YYYY-MM-DD HH24:MI:SS'),'Y','N',0,2,211770,'D',0,TO_TIMESTAMP('2014-10-29 19:46:41','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:41 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,22,'N','N',50,'Y',203453,'N','The Window field identifies a unique Window in the system.','Data entry or display window','Window','bd029bf2-6147-48ab-b099-c4d78537b749','Y','N',100,100,TO_TIMESTAMP('2014-10-29 19:46:41','YYYY-MM-DD HH24:MI:SS'),'Y','Y',50,0,2,211778,'D',0,TO_TIMESTAMP('2014-10-29 19:46:41','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:41 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,10,'N','N',60,'Y',203454,'N','The Tab indicates a tab that displays within a window.','Tab within a Window','Tab','3c0d9d71-3fbe-405e-8a86-077a179cb009','Y','N',100,100,TO_TIMESTAMP('2014-10-29 19:46:41','YYYY-MM-DD HH24:MI:SS'),'Y','Y',60,0,2,211779,'D',0,TO_TIMESTAMP('2014-10-29 19:46:41','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:42 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,20,'N','N',70,'Y',203455,'N','Character Set','d68bae68-bb0d-40e4-91d4-b494ca3bc28f','Y','N',100,100,TO_TIMESTAMP('2014-10-29 19:46:41','YYYY-MM-DD HH24:MI:SS'),'Y','Y',70,0,2,211780,'D',0,TO_TIMESTAMP('2014-10-29 19:46:41','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:42 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,2000,'N','N',80,'Y',203456,'N','CSV Header','defceac6-b945-46f6-a31f-667b8fe3af46','Y','N',100,100,TO_TIMESTAMP('2014-10-29 19:46:42','YYYY-MM-DD HH24:MI:SS'),'Y','Y',80,0,5,211781,'D',0,TO_TIMESTAMP('2014-10-29 19:46:42','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:42 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,2000,'N','N',90,'Y',203457,'N','CSV Alias Header','62a021ba-0312-46e8-b440-c429e2de11f6','Y','N',100,100,TO_TIMESTAMP('2014-10-29 19:46:42','YYYY-MM-DD HH24:MI:SS'),'Y','Y',90,0,5,211782,'D',0,TO_TIMESTAMP('2014-10-29 19:46:42','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:46:42 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200167,1,'N','N',100,'Y',203458,'N','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.','The record is active in the system','Active','ff24da67-465c-4344-9c6d-107e9cc81a2d','Y','N',100,100,TO_TIMESTAMP('2014-10-29 19:46:42','YYYY-MM-DD HH24:MI:SS'),'Y','Y',100,2,0,2,211774,'D',0,TO_TIMESTAMP('2014-10-29 19:46:42','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:47:02 PM COT
|
||||
UPDATE AD_Field SET SeqNo=60, IsDisplayed='Y', XPosition=4,Updated=TO_TIMESTAMP('2014-10-29 19:47:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203454
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:47:02 PM COT
|
||||
UPDATE AD_Field SET SeqNo=0,Updated=TO_TIMESTAMP('2014-10-29 19:47:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203452
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:47:02 PM COT
|
||||
UPDATE AD_Field SET SeqNo=0,Updated=TO_TIMESTAMP('2014-10-29 19:47:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203451
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:47:57 PM COT
|
||||
INSERT INTO AD_Table (ImportTable,CopyColumnsFromTable,IsSecurityEnabled,AccessLevel,LoadSeq,AD_Window_ID,AD_Table_ID,IsHighVolume,IsView,IsChangeLog,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,IsActive,CreatedBy,UpdatedBy,AD_Client_ID,Processing,DatabaseViewDrop,EntityType,AD_Org_ID,Created,Updated) VALUES ('N','N','N','7',0,200063,200154,'N','N','N','L','31cc0aec-6aed-48d2-94a2-131999823079','Y','Y','AD_ImportTemplateAccess','Import Template Access','Y',100,100,0,'N','N','D',0,TO_TIMESTAMP('2014-10-29 19:47:56','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2014-10-29 19:47:56','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:47:57 PM COT
|
||||
INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,Description,Name,IncrementNo,AD_Sequence_UU,AD_Org_ID,CreatedBy,UpdatedBy,Updated,IsActive,StartNo,AD_Client_ID,Created) VALUES ('N',200000,'Y',1000000,'N','Y',200210,'Table AD_ImportTemplateAccess','AD_ImportTemplateAccess',1,'95a39113-33bd-4f9b-b7a2-ddde6f50961a',0,100,100,TO_TIMESTAMP('2014-10-29 19:47:57','YYYY-MM-DD HH24:MI:SS'),'Y',1000000,0,TO_TIMESTAMP('2014-10-29 19:47:57','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:02 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211783,'N','N','N',0,'N',22,'N','N','N','Y','4af37f40-a64c-4595-9e03-046e0a38683e','N','AD_Client_ID','Client/Tenant for this installation.','@#AD_Client_ID@','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client','N',TO_TIMESTAMP('2014-10-29 19:49:01','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:49:01','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',102,19,200154,129,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:02 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211784,'N','N','N',0,'N',22,'N','N','N','Y','24547bb5-0c8f-4baa-a21a-2412f80e35d5','N','AD_Org_ID','Organizational entity within client','@#AD_Org_ID@','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organization','N',TO_TIMESTAMP('2014-10-29 19:49:02','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:49:02','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',113,19,200154,104,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:02 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211785,'N','N','N',0,'N',22,'N','N','N','Y','bd07f0dd-5882-495f-9ae6-fc98f2d29919','N','AD_Role_ID','Responsibility Role','The Role determines security and access a user who has this Role will have in the System.','Role','Y',TO_TIMESTAMP('2014-10-29 19:49:02','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:49:02','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',123,19,200154,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:03 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211786,'N','N','N',0,'N',22,'N','N','N','Y','26373bfa-05bd-44a1-b98f-249736a4d1e2','N','AD_User_ID','User within the system - Internal or Business Partner Contact','-1','The User identifies a unique user in the system. This could be an internal user or a business partner contact','User/Contact','Y',TO_TIMESTAMP('2014-10-29 19:49:02','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:49:02','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',138,30,110,200154,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:03 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'N',0,211787,'Y','N','N',0,'N',7,'N','N','N','Y','22098c1b-4d2e-45a4-a61a-20e0e63d4e54','N','Created','Date this record was created','SYSDATE','The Created field indicates the date that this record was created.','Created','N',TO_TIMESTAMP('2014-10-29 19:49:03','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:49:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',245,16,200154,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:03 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211788,'N','N','N',0,'N',22,'N','N','N','Y','2b02e943-27a9-4fee-aef3-56abcc178085','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',TO_TIMESTAMP('2014-10-29 19:49:03','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:49:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',246,18,110,200154,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:04 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'N',0,211789,'N','N','N',0,'N',1,'N','N','N','Y','76fe1243-cd5f-418f-a160-8e2f449171e1','Y','IsActive','The record is active in the system','Y','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.','Active','N',TO_TIMESTAMP('2014-10-29 19:49:03','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:49:03','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',348,20,200154,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:04 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('AD_ImportTemplateAccess_ID',202798,'Import Template Access','Import Template Access','b89d66eb-0d30-41cf-9c1b-50fa6bf32655',TO_TIMESTAMP('2014-10-29 19:49:04','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_TIMESTAMP('2014-10-29 19:49:04','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:04 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'N',0,211790,'Y','N','N',0,'N',22,'N','Y','N','Y','6807f501-7e84-4a11-baf1-02aa6c9e6c6e','N','AD_ImportTemplateAccess_ID','Import Template Access','N',TO_TIMESTAMP('2014-10-29 19:49:04','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:49:04','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',202798,13,200154,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:04 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('AD_ImportTemplateAccess_UU',202799,'AD_ImportTemplateAccess_UU','AD_ImportTemplateAccess_UU','7955a0e6-7f4b-4aef-aed7-be62893b2f8c',TO_TIMESTAMP('2014-10-29 19:49:04','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_TIMESTAMP('2014-10-29 19:49:04','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:05 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'N',0,211791,'N','N','N',0,'N',36,'N','N','N','Y','fdfc8ac5-3e31-4cb2-a059-1dfa44d3cf76','N','AD_ImportTemplateAccess_UU','AD_ImportTemplateAccess_UU','N',TO_TIMESTAMP('2014-10-29 19:49:04','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:49:04','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',202799,10,200154,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:05 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211792,'N','N','N',0,'Y',22,'N','N','N','Y','3258811a-6add-4d45-b916-fee3861dabcc','N','PA_DashboardContent_ID','Dashboard Content','Y',TO_TIMESTAMP('2014-10-29 19:49:05','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:49:05','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',51006,19,200154,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:05 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'N',0,211793,'Y','N','N',0,'N',7,'N','N','N','Y','e9e14e96-da06-484d-b097-cf773351d24c','N','Updated','Date this record was updated','SYSDATE','The Updated field indicates the date that this record was updated.','Updated','N',TO_TIMESTAMP('2014-10-29 19:49:05','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:49:05','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',607,16,200154,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:05 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211794,'N','N','N',0,'N',22,'N','N','N','Y','8a486d42-3bb0-4ffc-ac8a-8c5668f081d8','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',TO_TIMESTAMP('2014-10-29 19:49:05','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:49:05','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',608,18,110,200154,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:49:59 PM COT
|
||||
UPDATE AD_Column SET IsUpdateable='N', ColumnName='AD_ImportTemplate_ID', Description=NULL, Help=NULL, Name='Import Template', AD_Element_ID=202793,Updated=TO_TIMESTAMP('2014-10-29 19:49:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211792
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:50:43 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,Description,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('IsAllowInsert',202800,'Allow Insert',NULL,'Allow Insert','2cc10cf3-6dd0-48bc-9bf1-3a4901ea2085',TO_TIMESTAMP('2014-10-29 19:50:42','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_TIMESTAMP('2014-10-29 19:50:42','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:50:54 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('IsAllowMerge',202801,'Allow Merge','Allow Merge','9e642c38-9a48-45fd-a652-68a1e62884f7',TO_TIMESTAMP('2014-10-29 19:50:54','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_TIMESTAMP('2014-10-29 19:50:54','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:08 PM COT
|
||||
INSERT INTO AD_Element (ColumnName,AD_Element_ID,Name,PrintName,AD_Element_UU,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive,AD_Client_ID,EntityType,Created) VALUES ('IsAllowUpdate',202802,'Allow Update','Allow Update','2aa5523b-35f0-4f53-a0ed-271a1d200adf',TO_TIMESTAMP('2014-10-29 19:51:07','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y',0,'D',TO_TIMESTAMP('2014-10-29 19:51:07','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:19 PM COT
|
||||
UPDATE AD_Column SET FieldLength=1, IsUpdateable='Y', ColumnName='IsAllowInsert', Description=NULL, DefaultValue='Y', Help=NULL, Name='Allow Insert', AD_Element_ID=202800, AD_Reference_ID=20, AD_Reference_Value_ID=NULL, FKConstraintType=NULL,Updated=TO_TIMESTAMP('2014-10-29 19:51:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211786
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:30 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType) VALUES (0,'N',0,211795,'N','N','N',0,'N',1,'N','N','N','Y','c73d9978-6703-401e-ae04-e67cee28ec35','Y','IsAllowMerge','Y','Allow Merge','Y',TO_TIMESTAMP('2014-10-29 19:51:29','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:51:29','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',202801,20,200154,0,0,'D')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:35 PM COT
|
||||
INSERT INTO AD_Column (SeqNoSelection,IsSyncDatabase,Version,AD_Column_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,IsKey,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsUpdateable,ColumnName,DefaultValue,Name,IsAllowCopy,Updated,CreatedBy,IsActive,Created,UpdatedBy,IsToolbarButton,IsAlwaysUpdateable,IsEncrypted,IsSecure,AD_Element_ID,AD_Reference_ID,AD_Table_ID,AD_Client_ID,AD_Org_ID,EntityType,FKConstraintType) VALUES (0,'N',0,211796,'N','N','N',0,'N',1,'N','N','N','Y','c3ce0b40-1ec7-4bda-9be7-045c3d641e6b','Y','IsAllowUpdate','Y','Allow Update','Y',TO_TIMESTAMP('2014-10-29 19:51:35','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2014-10-29 19:51:35','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',202802,20,200154,0,0,'D','N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:51 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADClient_ADImportTemplateAcces', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-10-29 19:51:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211783
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:51 PM COT
|
||||
UPDATE AD_Column SET IsUpdateable='N', FKConstraintName='ADImportTemplate_ADImportTempl', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-10-29 19:51:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211792
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:51 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADOrg_ADImportTemplateAccess', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-10-29 19:51:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211784
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='ADRole_ADImportTemplateAccess', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-10-29 19:51:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211785
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='CreatedBy_ADImportTemplateAcce', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-10-29 19:51:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211788
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
UPDATE AD_Column SET FKConstraintName='UpdatedBy_ADImportTemplateAcce', FKConstraintType='N',Updated=TO_TIMESTAMP('2014-10-29 19:51:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211794
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
CREATE TABLE AD_ImportTemplateAccess (AD_Client_ID NUMERIC(10) DEFAULT NULL , AD_ImportTemplateAccess_ID NUMERIC(10) NOT NULL, AD_ImportTemplateAccess_UU VARCHAR(36) DEFAULT NULL , AD_ImportTemplate_ID NUMERIC(10) DEFAULT NULL , AD_Org_ID NUMERIC(10) DEFAULT NULL , AD_Role_ID NUMERIC(10) DEFAULT NULL , Created TIMESTAMP DEFAULT statement_timestamp() NOT NULL, CreatedBy NUMERIC(10) DEFAULT NULL , IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')), IsAllowInsert CHAR(1) DEFAULT 'Y' CHECK (IsAllowInsert IN ('Y','N')), IsAllowMerge CHAR(1) DEFAULT 'Y' CHECK (IsAllowMerge IN ('Y','N')), IsAllowUpdate CHAR(1) DEFAULT 'Y' CHECK (IsAllowUpdate IN ('Y','N')), Updated TIMESTAMP DEFAULT statement_timestamp() NOT NULL, UpdatedBy NUMERIC(10) DEFAULT NULL , CONSTRAINT AD_ImportTemplateAccess_Key PRIMARY KEY (AD_ImportTemplateAccess_ID), CONSTRAINT AD_ImportTemplateAccess_UU_idx UNIQUE (AD_ImportTemplateAccess_UU))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
ALTER TABLE AD_ImportTemplateAccess ADD CONSTRAINT ADClient_ADImportTemplateAcces FOREIGN KEY (AD_Client_ID) REFERENCES ad_client(ad_client_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
ALTER TABLE AD_ImportTemplateAccess ADD CONSTRAINT ADImportTemplate_ADImportTempl FOREIGN KEY (AD_ImportTemplate_ID) REFERENCES ad_importtemplate(ad_importtemplate_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
ALTER TABLE AD_ImportTemplateAccess ADD CONSTRAINT ADOrg_ADImportTemplateAccess FOREIGN KEY (AD_Org_ID) REFERENCES ad_org(ad_org_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
ALTER TABLE AD_ImportTemplateAccess ADD CONSTRAINT ADRole_ADImportTemplateAccess FOREIGN KEY (AD_Role_ID) REFERENCES ad_role(ad_role_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
ALTER TABLE AD_ImportTemplateAccess ADD CONSTRAINT CreatedBy_ADImportTemplateAcce FOREIGN KEY (CreatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:51:52 PM COT
|
||||
ALTER TABLE AD_ImportTemplateAccess ADD CONSTRAINT UpdatedBy_ADImportTemplateAcce FOREIGN KEY (UpdatedBy) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:52:08 PM COT
|
||||
INSERT INTO AD_TableIndex (AD_Client_ID,AD_Org_ID,AD_TableIndex_ID,AD_TableIndex_UU,CreatedBy,IsActive,Name,UpdatedBy,IsCreateConstraint,IsUnique,AD_Table_ID,EntityType,Created,Updated,Processing) VALUES (0,0,201030,'a144e4f0-adf4-4589-9b53-ea1c6bfa34bc',100,'Y','ad_importtemplateaccess_uu_idx',100,'N','Y',200154,'D',TO_TIMESTAMP('2014-10-29 19:52:07','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2014-10-29 19:52:07','YYYY-MM-DD HH24:MI:SS'),'N')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:52:08 PM COT
|
||||
INSERT INTO AD_IndexColumn (CreatedBy,AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,IsActive,UpdatedBy,SeqNo,Created,Updated,AD_Column_ID,AD_TableIndex_ID) VALUES (100,0,0,201255,'30d3191c-d73c-4a3e-9e9f-74487045ced0','Y',100,1,TO_TIMESTAMP('2014-10-29 19:52:08','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2014-10-29 19:52:08','YYYY-MM-DD HH24:MI:SS'),211791,201030)
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:49 PM COT
|
||||
INSERT INTO AD_Tab (ImportFields,Processing,AD_Window_ID,IsSingleRow,SeqNo,IsTranslationTab,IsSortTab,HasTree,IsInfoTab,IsReadOnly,IsInsertRecord,IsAdvancedTab,TabLevel,AD_Tab_UU,EntityType,Name,AD_Tab_ID,AD_Org_ID,CreatedBy,Updated,UpdatedBy,IsActive,AD_Client_ID,AD_Column_ID,AD_Table_ID,Created,TreeDisplayedOn) VALUES ('N','N',200063,'Y',20,'N','N','N','N','N','Y','N',1,'fa6ec748-a733-4ab9-94a6-eb7c388fbb69','D','Import Template Access',200168,0,100,TO_TIMESTAMP('2014-10-29 19:53:48','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,211792,200154,TO_TIMESTAMP('2014-10-29 19:53:48','YYYY-MM-DD HH24:MI:SS'),'B')
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:53 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,22,'N','N',10,'Y',203459,'N','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Client/Tenant for this installation.','Client','6cff991b-3f72-45b7-8d39-50b9d7756b63','Y','N',100,100,TO_TIMESTAMP('2014-10-29 19:53:53','YYYY-MM-DD HH24:MI:SS'),'Y','Y',10,0,2,211783,'D',0,TO_TIMESTAMP('2014-10-29 19:53:53','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:53 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,IsAllowCopy,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,22,'N','N',20,'Y',203460,'N','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Organizational entity within client','Organization','9453cf50-3dd4-4152-95f8-cc26bf87590a','Y','N','Y',100,100,TO_TIMESTAMP('2014-10-29 19:53:53','YYYY-MM-DD HH24:MI:SS'),'Y','Y',20,4,0,2,211784,'D',0,TO_TIMESTAMP('2014-10-29 19:53:53','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:53 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,22,'N','N',30,'Y',203461,'N','The Role determines security and access a user who has this Role will have in the System.','Responsibility Role','Role','0bf19755-a237-41a7-8483-418587d6ff75','Y','N',100,100,TO_TIMESTAMP('2014-10-29 19:53:53','YYYY-MM-DD HH24:MI:SS'),'Y','Y',30,0,2,211785,'D',0,TO_TIMESTAMP('2014-10-29 19:53:53','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:54 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,1,'N','N',40,'Y',203462,'N','Allow Insert','8b29f253-9f7b-4d97-bbb2-1246ec51b707','Y','N',100,100,TO_TIMESTAMP('2014-10-29 19:53:53','YYYY-MM-DD HH24:MI:SS'),'Y','Y',40,2,0,2,211786,'D',0,TO_TIMESTAMP('2014-10-29 19:53:53','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:54 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,22,'N','N','Y',203463,'N','Import Template Access','2cd5390b-dec3-45b8-88b0-a6a9bf9c7f38','N','N',100,100,TO_TIMESTAMP('2014-10-29 19:53:54','YYYY-MM-DD HH24:MI:SS'),'Y','N',0,2,211790,'D',0,TO_TIMESTAMP('2014-10-29 19:53:54','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:54 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,36,'N','N','Y',203464,'N','AD_ImportTemplateAccess_UU','41fad25d-e32e-4cce-831c-c4c5aa709b55','N','N',100,100,TO_TIMESTAMP('2014-10-29 19:53:54','YYYY-MM-DD HH24:MI:SS'),'Y','N',0,2,211791,'D',0,TO_TIMESTAMP('2014-10-29 19:53:54','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:54 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,22,'N','N',50,'Y',203465,'N','Import Template','cbe5d6c4-3c1d-4e6d-a705-0eb613f3124c','Y','N',100,100,TO_TIMESTAMP('2014-10-29 19:53:54','YYYY-MM-DD HH24:MI:SS'),'Y','Y',50,0,2,211792,'D',0,TO_TIMESTAMP('2014-10-29 19:53:54','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:55 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,1,'N','N',60,'Y',203466,'N','Allow Merge','8f422234-5cc3-4cc6-8c20-8d04f3069a22','Y','N',100,100,TO_TIMESTAMP('2014-10-29 19:53:54','YYYY-MM-DD HH24:MI:SS'),'Y','Y',60,2,0,2,211795,'D',0,TO_TIMESTAMP('2014-10-29 19:53:54','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:55 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,1,'N','N',70,'Y',203467,'N','Allow Update','63ec11ce-c1b9-4ed6-bbda-0bd0e545b31d','Y','N',100,100,TO_TIMESTAMP('2014-10-29 19:53:55','YYYY-MM-DD HH24:MI:SS'),'Y','Y',70,2,0,2,211796,'D',0,TO_TIMESTAMP('2014-10-29 19:53:55','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:53:55 PM COT
|
||||
INSERT INTO AD_Field (IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,Help,Description,Name,AD_Field_UU,IsDisplayed,IsFieldOnly,UpdatedBy,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,AD_Client_ID,ColumnSpan,AD_Column_ID,EntityType,AD_Org_ID,Created) VALUES ('N',200168,1,'N','N',80,'Y',203468,'N','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.','The record is active in the system','Active','6b477202-85a6-41fa-90b6-a64ed915fb27','Y','N',100,100,TO_TIMESTAMP('2014-10-29 19:53:55','YYYY-MM-DD HH24:MI:SS'),'Y','Y',80,2,0,2,211789,'D',0,TO_TIMESTAMP('2014-10-29 19:53:55','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:54:54 PM COT
|
||||
UPDATE AD_Field SET SeqNo=30, IsDisplayed='Y', XPosition=1,Updated=TO_TIMESTAMP('2014-10-29 19:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203465
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:54:54 PM COT
|
||||
UPDATE AD_Field SET SeqNo=40, IsDisplayed='Y', XPosition=4,Updated=TO_TIMESTAMP('2014-10-29 19:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203461
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:54:54 PM COT
|
||||
UPDATE AD_Field SET SeqNo=50, ColumnSpan=1,Updated=TO_TIMESTAMP('2014-10-29 19:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203462
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:54:54 PM COT
|
||||
UPDATE AD_Field SET SeqNo=60, IsDisplayed='Y', XPosition=3, ColumnSpan=1,Updated=TO_TIMESTAMP('2014-10-29 19:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203466
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:54:54 PM COT
|
||||
UPDATE AD_Field SET SeqNo=70, IsDisplayed='Y', XPosition=4, ColumnSpan=1,Updated=TO_TIMESTAMP('2014-10-29 19:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203467
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:54:54 PM COT
|
||||
UPDATE AD_Field SET SeqNo=80, IsDisplayed='Y', XPosition=5,Updated=TO_TIMESTAMP('2014-10-29 19:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203468
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:54:54 PM COT
|
||||
UPDATE AD_Field SET SeqNo=0,Updated=TO_TIMESTAMP('2014-10-29 19:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203464
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 7:54:54 PM COT
|
||||
UPDATE AD_Field SET SeqNo=0,Updated=TO_TIMESTAMP('2014-10-29 19:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=203463
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:05:37 PM COT
|
||||
INSERT INTO AD_Menu (AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,EntityType,IsCentrallyMaintained,Name,AD_Menu_UU,IsActive,CreatedBy,Updated,UpdatedBy,AD_Client_ID,AD_Org_ID,Created) VALUES (200095,'Y','N','N','D','N','CSV Import','3f0151f1-c384-49bf-bd3f-2263a0e0ae72','Y',100,TO_TIMESTAMP('2014-10-29 20:05:36','YYYY-MM-DD HH24:MI:SS'),100,0,0,TO_TIMESTAMP('2014-10-29 20:05:36','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:05:37 PM COT
|
||||
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', statement_timestamp(), 100, statement_timestamp(), 100,t.AD_Tree_ID, 200095, 0, 999, Generate_UUID() FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=200095)
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:06:15 PM COT
|
||||
UPDATE AD_Menu SET AD_Window_ID=200063, IsSummary='N', IsSOTrx='Y', Name='Import Template', "action"='W',Updated=TO_TIMESTAMP('2014-10-29 20:06:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=200095
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=218
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=153
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=263
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=166
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=203
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53242
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=236
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=183
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=160
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=278
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=345
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53296
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53014
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53108
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=0, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=222
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=1, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=223
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=2, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=185
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=3, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=340
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=4, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53264
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=5, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53206
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=6, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=339
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=7, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=338
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=8, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53282
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=9, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=363
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=10, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=376
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=11, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=382
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=12, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=486
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=13, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=425
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=14, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=378
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=15, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=374
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=16, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53284
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=17, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=423
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=18, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53263
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=19, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=373
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=20, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=424
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 8:07:06 PM COT
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=163, SeqNo=21, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200095
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 9:42:40 PM COT
|
||||
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,CreatedBy,UpdatedBy,Created,AD_Client_ID,AD_Org_ID,Updated) VALUES ('M','CSV Import File Loader',200326,'D','9e568b5d-ccf6-4bc8-940b-ee539805712e','CSVImport','Y',100,100,TO_TIMESTAMP('2014-10-29 21:42:39','YYYY-MM-DD HH24:MI:SS'),0,0,TO_TIMESTAMP('2014-10-29 21:42:39','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 29, 2014 9:46:46 PM COT
|
||||
INSERT INTO AD_ToolBarButton ("action",SeqNo,CreatedBy,KeyStroke_Modifiers,AD_ToolBarButton_ID,Name,ComponentName,AD_Org_ID,IsCustomization,KeyStroke_KeyCode,UpdatedBy,Created,Updated,IsActive,AD_Client_ID,AD_ToolBarButton_UU,IsAdvancedButton,IsAddSeparator) VALUES ('W',270,100,0,200081,'zk Window - CSV File Import','CSVImport',0,'N',0,100,TO_TIMESTAMP('2014-10-29 21:46:45','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2014-10-29 21:46:45','YYYY-MM-DD HH24:MI:SS'),'Y',0,'42b3879c-3e27-44c2-9c2c-b64b6d43d2fa','N','N')
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:40 PM COT
|
||||
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2014-11-04 20:19:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211779
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:43 PM COT
|
||||
INSERT INTO t_alter_column values('ad_importtemplate','AD_Tab_ID','NUMERIC(10)',null,null)
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:43 PM COT
|
||||
INSERT INTO t_alter_column values('ad_importtemplate','AD_Tab_ID',null,'NOT NULL',null)
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:43 PM COT
|
||||
ALTER TABLE AD_ImportTemplate DROP CONSTRAINT adtab_adimporttemplate
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:43 PM COT
|
||||
ALTER TABLE AD_ImportTemplate ADD CONSTRAINT ADTab_ADImportTemplate FOREIGN KEY (AD_Tab_ID) REFERENCES ad_tab(ad_tab_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:51 PM COT
|
||||
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2014-11-04 20:19:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211778
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:52 PM COT
|
||||
INSERT INTO t_alter_column values('ad_importtemplate','AD_Window_ID','NUMERIC(10)',null,null)
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:52 PM COT
|
||||
INSERT INTO t_alter_column values('ad_importtemplate','AD_Window_ID',null,'NOT NULL',null)
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:52 PM COT
|
||||
ALTER TABLE AD_ImportTemplate DROP CONSTRAINT adwindow_adimporttemplate
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:52 PM COT
|
||||
ALTER TABLE AD_ImportTemplate ADD CONSTRAINT ADWindow_ADImportTemplate FOREIGN KEY (AD_Window_ID) REFERENCES ad_window(ad_window_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:57 PM COT
|
||||
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2014-11-04 20:19:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211780
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:59 PM COT
|
||||
INSERT INTO t_alter_column values('ad_importtemplate','CharacterSet','VARCHAR(20)',null,null)
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:19:59 PM COT
|
||||
INSERT INTO t_alter_column values('ad_importtemplate','CharacterSet',null,'NOT NULL',null)
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:20:13 PM COT
|
||||
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2014-11-04 20:20:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211781
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:20:15 PM COT
|
||||
INSERT INTO t_alter_column values('ad_importtemplate','CSVHeader','VARCHAR(2000)',null,null)
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:20:15 PM COT
|
||||
INSERT INTO t_alter_column values('ad_importtemplate','CSVHeader',null,'NOT NULL',null)
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:43:10 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=203465
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:43:10 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=203460
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:43:10 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N' WHERE AD_Field_ID=203459
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:43:10 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y' WHERE AD_Field_ID=203461
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:43:10 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y' WHERE AD_Field_ID=203462
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:43:10 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=203466
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:43:10 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=203467
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 8:43:10 PM COT
|
||||
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=203468
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 9:07:37 PM COT
|
||||
UPDATE AD_Column SET Callout='org.compiere.model.CalloutImportTemplate.characterSet',Updated=TO_TIMESTAMP('2014-11-04 21:07:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=211780
|
||||
;
|
||||
|
||||
-- Nov 4, 2014 11:20:18 PM COT
|
||||
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,AD_Message_UU,Value,IsActive,CreatedBy,UpdatedBy,Created,AD_Client_ID,EntityType,AD_Org_ID,Updated) VALUES ('E','CSV Header doesn''t match template',200327,'49bcc54d-8b87-4227-9382-547517265005','WrongCSVHeader','Y',100,100,TO_TIMESTAMP('2014-11-04 23:20:18','YYYY-MM-DD HH24:MI:SS'),0,'D',0,TO_TIMESTAMP('2014-11-04 23:20:18','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201411042322_IDEMPIERE-2113.sql') FROM dual
|
||||
;
|
||||
|
|
@ -16,6 +16,7 @@
|
|||
<stringAttribute key="location" value="${workspace_loc}/../runtime-model.generator"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-DPropertyFile=/home/carlos/.idempiere/idempiere2.properties"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc}"/>
|
||||
<stringAttribute key="pde.version" value="3.3"/>
|
||||
<stringAttribute key="product" value="org.adempiere.server.server_product"/>
|
||||
|
|
|
@ -0,0 +1,62 @@
|
|||
/**********************************************************************
|
||||
* This file is part of iDempiere ERP Open Source *
|
||||
* http://www.idempiere.org *
|
||||
* *
|
||||
* 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: *
|
||||
* - Carlos Ruiz - globalqss *
|
||||
**********************************************************************/
|
||||
package org.compiere.model;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.compiere.util.Msg;
|
||||
|
||||
/**
|
||||
* Import Template callout
|
||||
* @author Carlos Ruiz
|
||||
*
|
||||
*/
|
||||
public class CalloutImportTemplate extends CalloutEngine
|
||||
{
|
||||
public String characterSet(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
|
||||
{
|
||||
if (value == null) {
|
||||
mTab.setValue(MImportTemplate.COLUMNNAME_CharacterSet, Charset.defaultCharset().displayName());
|
||||
return "";
|
||||
}
|
||||
|
||||
String characterSet = value.toString();
|
||||
if (!Charset.isSupported(characterSet)) {
|
||||
/*
|
||||
StringBuilder valid = new StringBuilder();
|
||||
for (Charset validch : Charset.availableCharsets().values()) {
|
||||
if (valid.length() > 0)
|
||||
valid.append(", ");
|
||||
valid.append(validch.displayName());
|
||||
}
|
||||
return Msg.parseTranslation(ctx, "@Invalid@ @CharacterSet@ -> " + valid);
|
||||
*/
|
||||
return Msg.parseTranslation(ctx, "@Invalid@ @CharacterSet@");
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -2187,6 +2187,15 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
|
|||
} // getCM_ChatID
|
||||
|
||||
|
||||
/**
|
||||
* Returns true, if this tab have templates allowed with current role
|
||||
* @return true if record has templates
|
||||
*/
|
||||
public boolean hasTemplate()
|
||||
{
|
||||
return MImportTemplate.getTemplates(Env.getAD_Role_ID(Env.getCtx()), getAD_Tab_ID()).size() > 0;
|
||||
} // hasChat
|
||||
|
||||
/**************************************************************************
|
||||
* Load Locks for Table and User
|
||||
*/
|
||||
|
|
|
@ -0,0 +1,210 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
package org.compiere.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Interface for AD_ImportTemplate
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 2.1
|
||||
*/
|
||||
public interface I_AD_ImportTemplate
|
||||
{
|
||||
|
||||
/** TableName=AD_ImportTemplate */
|
||||
public static final String Table_Name = "AD_ImportTemplate";
|
||||
|
||||
/** AD_Table_ID=200153 */
|
||||
public static final int Table_ID = 200153;
|
||||
|
||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||
|
||||
/** AccessLevel = 7 - System - Client - Org
|
||||
*/
|
||||
BigDecimal accessLevel = BigDecimal.valueOf(7);
|
||||
|
||||
/** Load Meta Data */
|
||||
|
||||
/** Column name AD_Client_ID */
|
||||
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||
|
||||
/** Get Client.
|
||||
* Client/Tenant for this installation.
|
||||
*/
|
||||
public int getAD_Client_ID();
|
||||
|
||||
/** Column name AD_ImportTemplate_ID */
|
||||
public static final String COLUMNNAME_AD_ImportTemplate_ID = "AD_ImportTemplate_ID";
|
||||
|
||||
/** Set Import Template */
|
||||
public void setAD_ImportTemplate_ID (int AD_ImportTemplate_ID);
|
||||
|
||||
/** Get Import Template */
|
||||
public int getAD_ImportTemplate_ID();
|
||||
|
||||
/** Column name AD_ImportTemplate_UU */
|
||||
public static final String COLUMNNAME_AD_ImportTemplate_UU = "AD_ImportTemplate_UU";
|
||||
|
||||
/** Set AD_ImportTemplate_UU */
|
||||
public void setAD_ImportTemplate_UU (String AD_ImportTemplate_UU);
|
||||
|
||||
/** Get AD_ImportTemplate_UU */
|
||||
public String getAD_ImportTemplate_UU();
|
||||
|
||||
/** Column name AD_Org_ID */
|
||||
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||
|
||||
/** Set Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public void setAD_Org_ID (int AD_Org_ID);
|
||||
|
||||
/** Get Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public int getAD_Org_ID();
|
||||
|
||||
/** Column name AD_Tab_ID */
|
||||
public static final String COLUMNNAME_AD_Tab_ID = "AD_Tab_ID";
|
||||
|
||||
/** Set Tab.
|
||||
* Tab within a Window
|
||||
*/
|
||||
public void setAD_Tab_ID (int AD_Tab_ID);
|
||||
|
||||
/** Get Tab.
|
||||
* Tab within a Window
|
||||
*/
|
||||
public int getAD_Tab_ID();
|
||||
|
||||
public org.compiere.model.I_AD_Tab getAD_Tab() throws RuntimeException;
|
||||
|
||||
/** 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 org.compiere.model.I_AD_Window getAD_Window() throws RuntimeException;
|
||||
|
||||
/** Column name CharacterSet */
|
||||
public static final String COLUMNNAME_CharacterSet = "CharacterSet";
|
||||
|
||||
/** Set Character Set */
|
||||
public void setCharacterSet (String CharacterSet);
|
||||
|
||||
/** Get Character Set */
|
||||
public String getCharacterSet();
|
||||
|
||||
/** Column name Created */
|
||||
public static final String COLUMNNAME_Created = "Created";
|
||||
|
||||
/** Get Created.
|
||||
* Date this record was created
|
||||
*/
|
||||
public Timestamp getCreated();
|
||||
|
||||
/** Column name CreatedBy */
|
||||
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||
|
||||
/** Get Created By.
|
||||
* User who created this records
|
||||
*/
|
||||
public int getCreatedBy();
|
||||
|
||||
/** Column name CSVAliasHeader */
|
||||
public static final String COLUMNNAME_CSVAliasHeader = "CSVAliasHeader";
|
||||
|
||||
/** Set CSV Alias Header */
|
||||
public void setCSVAliasHeader (String CSVAliasHeader);
|
||||
|
||||
/** Get CSV Alias Header */
|
||||
public String getCSVAliasHeader();
|
||||
|
||||
/** Column name CSVHeader */
|
||||
public static final String COLUMNNAME_CSVHeader = "CSVHeader";
|
||||
|
||||
/** Set CSV Header */
|
||||
public void setCSVHeader (String CSVHeader);
|
||||
|
||||
/** Get CSV Header */
|
||||
public String getCSVHeader();
|
||||
|
||||
/** Column name Description */
|
||||
public static final String COLUMNNAME_Description = "Description";
|
||||
|
||||
/** Set Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description);
|
||||
|
||||
/** Get Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public String getDescription();
|
||||
|
||||
/** Column name IsActive */
|
||||
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||
|
||||
/** Set Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public void setIsActive (boolean IsActive);
|
||||
|
||||
/** Get Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public boolean isActive();
|
||||
|
||||
/** Column name 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 Updated */
|
||||
public static final String COLUMNNAME_Updated = "Updated";
|
||||
|
||||
/** Get Updated.
|
||||
* Date this record was updated
|
||||
*/
|
||||
public Timestamp getUpdated();
|
||||
|
||||
/** Column name UpdatedBy */
|
||||
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
|
||||
|
||||
/** Get Updated By.
|
||||
* User who updated this records
|
||||
*/
|
||||
public int getUpdatedBy();
|
||||
}
|
|
@ -0,0 +1,180 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
package org.compiere.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Interface for AD_ImportTemplateAccess
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 2.1
|
||||
*/
|
||||
public interface I_AD_ImportTemplateAccess
|
||||
{
|
||||
|
||||
/** TableName=AD_ImportTemplateAccess */
|
||||
public static final String Table_Name = "AD_ImportTemplateAccess";
|
||||
|
||||
/** AD_Table_ID=200154 */
|
||||
public static final int Table_ID = 200154;
|
||||
|
||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||
|
||||
/** AccessLevel = 7 - System - Client - Org
|
||||
*/
|
||||
BigDecimal accessLevel = BigDecimal.valueOf(7);
|
||||
|
||||
/** Load Meta Data */
|
||||
|
||||
/** Column name AD_Client_ID */
|
||||
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||
|
||||
/** Get Client.
|
||||
* Client/Tenant for this installation.
|
||||
*/
|
||||
public int getAD_Client_ID();
|
||||
|
||||
/** Column name AD_ImportTemplateAccess_ID */
|
||||
public static final String COLUMNNAME_AD_ImportTemplateAccess_ID = "AD_ImportTemplateAccess_ID";
|
||||
|
||||
/** Set Import Template Access */
|
||||
public void setAD_ImportTemplateAccess_ID (int AD_ImportTemplateAccess_ID);
|
||||
|
||||
/** Get Import Template Access */
|
||||
public int getAD_ImportTemplateAccess_ID();
|
||||
|
||||
/** Column name AD_ImportTemplateAccess_UU */
|
||||
public static final String COLUMNNAME_AD_ImportTemplateAccess_UU = "AD_ImportTemplateAccess_UU";
|
||||
|
||||
/** Set AD_ImportTemplateAccess_UU */
|
||||
public void setAD_ImportTemplateAccess_UU (String AD_ImportTemplateAccess_UU);
|
||||
|
||||
/** Get AD_ImportTemplateAccess_UU */
|
||||
public String getAD_ImportTemplateAccess_UU();
|
||||
|
||||
/** Column name AD_ImportTemplate_ID */
|
||||
public static final String COLUMNNAME_AD_ImportTemplate_ID = "AD_ImportTemplate_ID";
|
||||
|
||||
/** Set Import Template */
|
||||
public void setAD_ImportTemplate_ID (int AD_ImportTemplate_ID);
|
||||
|
||||
/** Get Import Template */
|
||||
public int getAD_ImportTemplate_ID();
|
||||
|
||||
public org.compiere.model.I_AD_ImportTemplate getAD_ImportTemplate() throws RuntimeException;
|
||||
|
||||
/** Column name AD_Org_ID */
|
||||
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||
|
||||
/** Set Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public void setAD_Org_ID (int AD_Org_ID);
|
||||
|
||||
/** Get Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public int getAD_Org_ID();
|
||||
|
||||
/** Column name AD_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();
|
||||
|
||||
public org.compiere.model.I_AD_Role getAD_Role() throws RuntimeException;
|
||||
|
||||
/** Column name Created */
|
||||
public static final String COLUMNNAME_Created = "Created";
|
||||
|
||||
/** Get Created.
|
||||
* Date this record was created
|
||||
*/
|
||||
public Timestamp getCreated();
|
||||
|
||||
/** Column name CreatedBy */
|
||||
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||
|
||||
/** Get Created By.
|
||||
* User who created this records
|
||||
*/
|
||||
public int getCreatedBy();
|
||||
|
||||
/** Column name IsActive */
|
||||
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||
|
||||
/** Set Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public void setIsActive (boolean IsActive);
|
||||
|
||||
/** Get Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public boolean isActive();
|
||||
|
||||
/** Column name IsAllowInsert */
|
||||
public static final String COLUMNNAME_IsAllowInsert = "IsAllowInsert";
|
||||
|
||||
/** Set Allow Insert */
|
||||
public void setIsAllowInsert (boolean IsAllowInsert);
|
||||
|
||||
/** Get Allow Insert */
|
||||
public boolean isAllowInsert();
|
||||
|
||||
/** Column name IsAllowMerge */
|
||||
public static final String COLUMNNAME_IsAllowMerge = "IsAllowMerge";
|
||||
|
||||
/** Set Allow Merge */
|
||||
public void setIsAllowMerge (boolean IsAllowMerge);
|
||||
|
||||
/** Get Allow Merge */
|
||||
public boolean isAllowMerge();
|
||||
|
||||
/** Column name IsAllowUpdate */
|
||||
public static final String COLUMNNAME_IsAllowUpdate = "IsAllowUpdate";
|
||||
|
||||
/** Set Allow Update */
|
||||
public void setIsAllowUpdate (boolean IsAllowUpdate);
|
||||
|
||||
/** Get Allow Update */
|
||||
public boolean isAllowUpdate();
|
||||
|
||||
/** Column name Updated */
|
||||
public static final String COLUMNNAME_Updated = "Updated";
|
||||
|
||||
/** Get Updated.
|
||||
* Date this record was updated
|
||||
*/
|
||||
public Timestamp getUpdated();
|
||||
|
||||
/** Column name UpdatedBy */
|
||||
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
|
||||
|
||||
/** Get Updated By.
|
||||
* User who updated this records
|
||||
*/
|
||||
public int getUpdatedBy();
|
||||
}
|
|
@ -0,0 +1,99 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 2012 Carlos Ruiz *
|
||||
* 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.nio.charset.Charset;
|
||||
import java.sql.ResultSet;
|
||||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.compiere.util.CCache;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
|
||||
/**
|
||||
* Import Template Model
|
||||
*
|
||||
* @author Carlos Ruiz - GlobalQSS
|
||||
*/
|
||||
public class MImportTemplate extends X_AD_ImportTemplate
|
||||
{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 3316290883489953101L;
|
||||
|
||||
/** Logger */
|
||||
@SuppressWarnings("unused")
|
||||
private static CLogger s_log = CLogger.getCLogger(MImportTemplate.class);
|
||||
|
||||
/**************************************************************************
|
||||
* Standard Constructor
|
||||
* @param ctx context
|
||||
* @param AD_ImportTemplate_ID id
|
||||
* @param trxName transaction
|
||||
*/
|
||||
public MImportTemplate (Properties ctx, int AD_ImportTemplate_ID, String trxName)
|
||||
{
|
||||
super (ctx, AD_ImportTemplate_ID, trxName);
|
||||
} // MImportTemplate
|
||||
|
||||
/**
|
||||
* Load Constructor
|
||||
* @param ctx ctx
|
||||
* @param rs result set
|
||||
* @param trxName transaction
|
||||
*/
|
||||
public MImportTemplate (Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super(ctx, rs, trxName);
|
||||
} // MImportTemplate
|
||||
|
||||
@Override
|
||||
protected boolean beforeSave(boolean newRecord) {
|
||||
// Validate character set vs supported
|
||||
if (getCharacterSet() == null) {
|
||||
setCharacterSet(Charset.defaultCharset().displayName());
|
||||
}
|
||||
if (getCharacterSet() == null || !Charset.isSupported(getCharacterSet())) {
|
||||
log.saveError("Error", Msg.parseTranslation(getCtx(), "@Invalid@ @CharacterSet@"));
|
||||
return false;
|
||||
}
|
||||
return super.beforeSave(newRecord);
|
||||
}
|
||||
|
||||
/** Cache of Role */
|
||||
private static CCache<String,List<MImportTemplate>> s_cacheRoleTab = new CCache<String,List<MImportTemplate>>(Table_Name, Table_Name+"_Of_Role", 5);
|
||||
|
||||
public static List<MImportTemplate> getTemplates(int roleid, int tabid) {
|
||||
String key = roleid + "_" + tabid;
|
||||
List<MImportTemplate> retValue = s_cacheRoleTab.get(key);
|
||||
if (retValue != null)
|
||||
return retValue;
|
||||
|
||||
final String where = ""
|
||||
+ "IsActive='Y' AND AD_Client_ID IN (0, ?) AND AD_Tab_ID=? "
|
||||
+ "AND EXISTS (SELECT 1 "
|
||||
+ " FROM AD_ImportTemplateAccess ita "
|
||||
+ " WHERE ita.AD_ImportTemplate_ID=AD_ImportTemplate.AD_ImportTemplate_ID AND ita.IsActive='Y' AND ita.AD_Role_ID=? AND (IsAllowInsert='Y' OR IsAllowMerge='Y' OR IsAllowUpdate='Y'))";
|
||||
retValue = new Query(Env.getCtx(), MImportTemplate.Table_Name, where, null)
|
||||
.setParameters(Env.getAD_Client_ID(Env.getCtx()), tabid, roleid)
|
||||
.setOrderBy("Name")
|
||||
.list();
|
||||
s_cacheRoleTab.put(key, retValue);
|
||||
return retValue;
|
||||
}
|
||||
|
||||
} // MImportTemplate
|
|
@ -0,0 +1,251 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
/** Generated Model - DO NOT CHANGE */
|
||||
package org.compiere.model;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Model for AD_ImportTemplate
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 2.1 - $Id$ */
|
||||
public class X_AD_ImportTemplate extends PO implements I_AD_ImportTemplate, I_Persistent
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20141104L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_AD_ImportTemplate (Properties ctx, int AD_ImportTemplate_ID, String trxName)
|
||||
{
|
||||
super (ctx, AD_ImportTemplate_ID, trxName);
|
||||
/** if (AD_ImportTemplate_ID == 0)
|
||||
{
|
||||
setAD_ImportTemplate_ID (0);
|
||||
setAD_Tab_ID (0);
|
||||
setAD_Window_ID (0);
|
||||
setCharacterSet (null);
|
||||
setCSVHeader (null);
|
||||
setName (null);
|
||||
} */
|
||||
}
|
||||
|
||||
/** Load Constructor */
|
||||
public X_AD_ImportTemplate (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_AD_ImportTemplate[")
|
||||
.append(get_ID()).append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/** Set Import Template.
|
||||
@param AD_ImportTemplate_ID Import Template */
|
||||
public void setAD_ImportTemplate_ID (int AD_ImportTemplate_ID)
|
||||
{
|
||||
if (AD_ImportTemplate_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_AD_ImportTemplate_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_AD_ImportTemplate_ID, Integer.valueOf(AD_ImportTemplate_ID));
|
||||
}
|
||||
|
||||
/** Get Import Template.
|
||||
@return Import Template */
|
||||
public int getAD_ImportTemplate_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_ImportTemplate_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set AD_ImportTemplate_UU.
|
||||
@param AD_ImportTemplate_UU AD_ImportTemplate_UU */
|
||||
public void setAD_ImportTemplate_UU (String AD_ImportTemplate_UU)
|
||||
{
|
||||
set_Value (COLUMNNAME_AD_ImportTemplate_UU, AD_ImportTemplate_UU);
|
||||
}
|
||||
|
||||
/** Get AD_ImportTemplate_UU.
|
||||
@return AD_ImportTemplate_UU */
|
||||
public String getAD_ImportTemplate_UU ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_AD_ImportTemplate_UU);
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_Tab getAD_Tab() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_Tab)MTable.get(getCtx(), org.compiere.model.I_AD_Tab.Table_Name)
|
||||
.getPO(getAD_Tab_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Tab.
|
||||
@param AD_Tab_ID
|
||||
Tab within a Window
|
||||
*/
|
||||
public void setAD_Tab_ID (int AD_Tab_ID)
|
||||
{
|
||||
if (AD_Tab_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_Tab_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_Tab_ID, Integer.valueOf(AD_Tab_ID));
|
||||
}
|
||||
|
||||
/** Get Tab.
|
||||
@return Tab within a Window
|
||||
*/
|
||||
public int getAD_Tab_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tab_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_Window getAD_Window() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_Window)MTable.get(getCtx(), org.compiere.model.I_AD_Window.Table_Name)
|
||||
.getPO(getAD_Window_ID(), get_TrxName()); }
|
||||
|
||||
/** 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();
|
||||
}
|
||||
|
||||
/** Set Character Set.
|
||||
@param CharacterSet Character Set */
|
||||
public void setCharacterSet (String CharacterSet)
|
||||
{
|
||||
set_Value (COLUMNNAME_CharacterSet, CharacterSet);
|
||||
}
|
||||
|
||||
/** Get Character Set.
|
||||
@return Character Set */
|
||||
public String getCharacterSet ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_CharacterSet);
|
||||
}
|
||||
|
||||
/** Set CSV Alias Header.
|
||||
@param CSVAliasHeader CSV Alias Header */
|
||||
public void setCSVAliasHeader (String CSVAliasHeader)
|
||||
{
|
||||
set_Value (COLUMNNAME_CSVAliasHeader, CSVAliasHeader);
|
||||
}
|
||||
|
||||
/** Get CSV Alias Header.
|
||||
@return CSV Alias Header */
|
||||
public String getCSVAliasHeader ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_CSVAliasHeader);
|
||||
}
|
||||
|
||||
/** Set CSV Header.
|
||||
@param CSVHeader CSV Header */
|
||||
public void setCSVHeader (String CSVHeader)
|
||||
{
|
||||
set_Value (COLUMNNAME_CSVHeader, CSVHeader);
|
||||
}
|
||||
|
||||
/** Get CSV Header.
|
||||
@return CSV Header */
|
||||
public String getCSVHeader ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_CSVHeader);
|
||||
}
|
||||
|
||||
/** Set Description.
|
||||
@param Description
|
||||
Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description)
|
||||
{
|
||||
set_Value (COLUMNNAME_Description, Description);
|
||||
}
|
||||
|
||||
/** Get Description.
|
||||
@return Optional short description of the record
|
||||
*/
|
||||
public String getDescription ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Description);
|
||||
}
|
||||
|
||||
/** Set Name.
|
||||
@param Name
|
||||
Alphanumeric identifier of the entity
|
||||
*/
|
||||
public void setName (String Name)
|
||||
{
|
||||
set_Value (COLUMNNAME_Name, Name);
|
||||
}
|
||||
|
||||
/** Get Name.
|
||||
@return Alphanumeric identifier of the entity
|
||||
*/
|
||||
public String getName ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Name);
|
||||
}
|
||||
|
||||
/** Get Record ID/ColumnName
|
||||
@return ID/ColumnName pair
|
||||
*/
|
||||
public KeyNamePair getKeyNamePair()
|
||||
{
|
||||
return new KeyNamePair(get_ID(), getName());
|
||||
}
|
||||
}
|
|
@ -0,0 +1,221 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
/** Generated Model - DO NOT CHANGE */
|
||||
package org.compiere.model;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
|
||||
/** Generated Model for AD_ImportTemplateAccess
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 2.1 - $Id$ */
|
||||
public class X_AD_ImportTemplateAccess extends PO implements I_AD_ImportTemplateAccess, I_Persistent
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20141104L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_AD_ImportTemplateAccess (Properties ctx, int AD_ImportTemplateAccess_ID, String trxName)
|
||||
{
|
||||
super (ctx, AD_ImportTemplateAccess_ID, trxName);
|
||||
/** if (AD_ImportTemplateAccess_ID == 0)
|
||||
{
|
||||
setAD_ImportTemplateAccess_ID (0);
|
||||
} */
|
||||
}
|
||||
|
||||
/** Load Constructor */
|
||||
public X_AD_ImportTemplateAccess (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_AD_ImportTemplateAccess[")
|
||||
.append(get_ID()).append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/** Set Import Template Access.
|
||||
@param AD_ImportTemplateAccess_ID Import Template Access */
|
||||
public void setAD_ImportTemplateAccess_ID (int AD_ImportTemplateAccess_ID)
|
||||
{
|
||||
if (AD_ImportTemplateAccess_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_AD_ImportTemplateAccess_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_AD_ImportTemplateAccess_ID, Integer.valueOf(AD_ImportTemplateAccess_ID));
|
||||
}
|
||||
|
||||
/** Get Import Template Access.
|
||||
@return Import Template Access */
|
||||
public int getAD_ImportTemplateAccess_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_ImportTemplateAccess_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set AD_ImportTemplateAccess_UU.
|
||||
@param AD_ImportTemplateAccess_UU AD_ImportTemplateAccess_UU */
|
||||
public void setAD_ImportTemplateAccess_UU (String AD_ImportTemplateAccess_UU)
|
||||
{
|
||||
set_ValueNoCheck (COLUMNNAME_AD_ImportTemplateAccess_UU, AD_ImportTemplateAccess_UU);
|
||||
}
|
||||
|
||||
/** Get AD_ImportTemplateAccess_UU.
|
||||
@return AD_ImportTemplateAccess_UU */
|
||||
public String getAD_ImportTemplateAccess_UU ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_AD_ImportTemplateAccess_UU);
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_ImportTemplate getAD_ImportTemplate() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_ImportTemplate)MTable.get(getCtx(), org.compiere.model.I_AD_ImportTemplate.Table_Name)
|
||||
.getPO(getAD_ImportTemplate_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Import Template.
|
||||
@param AD_ImportTemplate_ID Import Template */
|
||||
public void setAD_ImportTemplate_ID (int AD_ImportTemplate_ID)
|
||||
{
|
||||
if (AD_ImportTemplate_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_AD_ImportTemplate_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_AD_ImportTemplate_ID, Integer.valueOf(AD_ImportTemplate_ID));
|
||||
}
|
||||
|
||||
/** Get Import Template.
|
||||
@return Import Template */
|
||||
public int getAD_ImportTemplate_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_ImportTemplate_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_Role getAD_Role() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_Role)MTable.get(getCtx(), org.compiere.model.I_AD_Role.Table_Name)
|
||||
.getPO(getAD_Role_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Role.
|
||||
@param AD_Role_ID
|
||||
Responsibility Role
|
||||
*/
|
||||
public void setAD_Role_ID (int AD_Role_ID)
|
||||
{
|
||||
if (AD_Role_ID < 0)
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null);
|
||||
else
|
||||
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();
|
||||
}
|
||||
|
||||
/** Set Allow Insert.
|
||||
@param IsAllowInsert Allow Insert */
|
||||
public void setIsAllowInsert (boolean IsAllowInsert)
|
||||
{
|
||||
set_Value (COLUMNNAME_IsAllowInsert, Boolean.valueOf(IsAllowInsert));
|
||||
}
|
||||
|
||||
/** Get Allow Insert.
|
||||
@return Allow Insert */
|
||||
public boolean isAllowInsert ()
|
||||
{
|
||||
Object oo = get_Value(COLUMNNAME_IsAllowInsert);
|
||||
if (oo != null)
|
||||
{
|
||||
if (oo instanceof Boolean)
|
||||
return ((Boolean)oo).booleanValue();
|
||||
return "Y".equals(oo);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Set Allow Merge.
|
||||
@param IsAllowMerge Allow Merge */
|
||||
public void setIsAllowMerge (boolean IsAllowMerge)
|
||||
{
|
||||
set_Value (COLUMNNAME_IsAllowMerge, Boolean.valueOf(IsAllowMerge));
|
||||
}
|
||||
|
||||
/** Get Allow Merge.
|
||||
@return Allow Merge */
|
||||
public boolean isAllowMerge ()
|
||||
{
|
||||
Object oo = get_Value(COLUMNNAME_IsAllowMerge);
|
||||
if (oo != null)
|
||||
{
|
||||
if (oo instanceof Boolean)
|
||||
return ((Boolean)oo).booleanValue();
|
||||
return "Y".equals(oo);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Set Allow Update.
|
||||
@param IsAllowUpdate Allow Update */
|
||||
public void setIsAllowUpdate (boolean IsAllowUpdate)
|
||||
{
|
||||
set_Value (COLUMNNAME_IsAllowUpdate, Boolean.valueOf(IsAllowUpdate));
|
||||
}
|
||||
|
||||
/** Get Allow Update.
|
||||
@return Allow Update */
|
||||
public boolean isAllowUpdate ()
|
||||
{
|
||||
Object oo = get_Value(COLUMNNAME_IsAllowUpdate);
|
||||
if (oo != null)
|
||||
{
|
||||
if (oo instanceof Boolean)
|
||||
return ((Boolean)oo).booleanValue();
|
||||
return "Y".equals(oo);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
|
@ -100,6 +100,7 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
|
|||
|
||||
private ToolBarButton btnExport;
|
||||
private ToolBarButton btnFileImport;
|
||||
private ToolBarButton btnCSVImport;
|
||||
|
||||
private ToolBarButton btnProcess;
|
||||
|
||||
|
@ -212,6 +213,7 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
|
|||
btnExport = createButton("Export", "Export", "Export");
|
||||
}
|
||||
btnFileImport = createButton("FileImport", "FileImport", "FileImport");
|
||||
btnCSVImport = createButton("CSVImport", "CSVImport", "CSVImport");
|
||||
|
||||
MToolBarButton[] officialButtons = MToolBarButton.getToolbarButtons("W", null);
|
||||
for (MToolBarButton button : officialButtons) {
|
||||
|
@ -648,6 +650,15 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
|
|||
btnFileImport.setDisabled(!b);
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable/disable CSV import button
|
||||
* @param b
|
||||
*/
|
||||
public void enableCSVImport(boolean b) {
|
||||
if (btnCSVImport != null)
|
||||
btnCSVImport.setDisabled(!b);
|
||||
}
|
||||
|
||||
private boolean ToolBarMenuRestictionLoaded = false;
|
||||
public void updateToolbarAccess(int xAD_Window_ID) {
|
||||
if (ToolBarMenuRestictionLoaded)
|
||||
|
|
|
@ -62,6 +62,7 @@ import org.adempiere.webui.panel.ADForm;
|
|||
import org.adempiere.webui.panel.InfoPanel;
|
||||
import org.adempiere.webui.panel.WAttachment;
|
||||
import org.adempiere.webui.panel.WDocActionPanel;
|
||||
import org.adempiere.webui.panel.action.CSVImportAction;
|
||||
import org.adempiere.webui.panel.action.ExportAction;
|
||||
import org.adempiere.webui.panel.action.FileImportAction;
|
||||
import org.adempiere.webui.panel.action.ReportAction;
|
||||
|
@ -1278,6 +1279,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
}
|
||||
|
||||
toolbar.enablePrint(adTabbox.getSelectedGridTab().isPrinted() && !adTabbox.getSelectedGridTab().isNew());
|
||||
toolbar.enableCSVImport(adTabbox.getSelectedGridTab().hasTemplate());
|
||||
|
||||
//Deepak-Enabling customize button IDEMPIERE-364
|
||||
if(!(adTabbox.getSelectedTabpanel() instanceof ADSortTab))
|
||||
|
@ -2575,6 +2577,12 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
action.fileImport();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCSVImport() {
|
||||
CSVImportAction action = new CSVImportAction(this);
|
||||
action.fileImport();
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* Start Button Process
|
||||
* @param vButton button
|
||||
|
|
|
@ -165,6 +165,11 @@ public interface ToolbarListener
|
|||
*/
|
||||
public void onFileImport();
|
||||
|
||||
/**
|
||||
* CSV import data
|
||||
*/
|
||||
public void onCSVImport();
|
||||
|
||||
/**
|
||||
* Customize grid view.
|
||||
*/
|
||||
|
|
|
@ -0,0 +1,379 @@
|
|||
/**********************************************************************
|
||||
* This file is part of iDempiere ERP Open Source *
|
||||
* http://www.idempiere.org *
|
||||
* *
|
||||
* 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: *
|
||||
* - Carlos Ruiz - globalqss *
|
||||
**********************************************************************/
|
||||
package org.adempiere.webui.panel.action;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.nio.charset.Charset;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.adempiere.base.IGridTabImporter;
|
||||
import org.adempiere.base.equinox.EquinoxExtensionLocator;
|
||||
import org.adempiere.exceptions.AdempiereException;
|
||||
import org.adempiere.webui.AdempiereWebUI;
|
||||
import org.adempiere.webui.LayoutUtils;
|
||||
import org.adempiere.webui.adwindow.AbstractADWindowContent;
|
||||
import org.adempiere.webui.adwindow.IADTabbox;
|
||||
import org.adempiere.webui.adwindow.IADTabpanel;
|
||||
import org.adempiere.webui.component.Button;
|
||||
import org.adempiere.webui.component.Column;
|
||||
import org.adempiere.webui.component.Columns;
|
||||
import org.adempiere.webui.component.ConfirmPanel;
|
||||
import org.adempiere.webui.component.Grid;
|
||||
import org.adempiere.webui.component.GridFactory;
|
||||
import org.adempiere.webui.component.Label;
|
||||
import org.adempiere.webui.component.ListItem;
|
||||
import org.adempiere.webui.component.Listbox;
|
||||
import org.adempiere.webui.component.Row;
|
||||
import org.adempiere.webui.component.Rows;
|
||||
import org.adempiere.webui.component.Window;
|
||||
import org.adempiere.webui.event.DialogEvents;
|
||||
import org.adempiere.webui.util.ReaderInputStream;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MImportTemplate;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
import org.zkoss.util.media.AMedia;
|
||||
import org.zkoss.util.media.Media;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
import org.zkoss.zk.ui.event.UploadEvent;
|
||||
import org.zkoss.zul.Filedownload;
|
||||
import org.zkoss.zul.Space;
|
||||
import org.zkoss.zul.Vbox;
|
||||
import org.zkoss.zul.Vlayout;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Carlos Ruiz
|
||||
*
|
||||
*/
|
||||
public class CSVImportAction implements EventListener<Event>
|
||||
{
|
||||
|
||||
private AbstractADWindowContent panel;
|
||||
|
||||
IGridTabImporter theCSVImporter = null;
|
||||
MImportTemplate theTemplate = null;
|
||||
|
||||
private Window winImportFile = null;
|
||||
private ConfirmPanel confirmPanel = new ConfirmPanel(true);
|
||||
private Button bFile = new Button();
|
||||
private Listbox fTemplates = new Listbox();
|
||||
private Listbox fImportMode = new Listbox();
|
||||
private InputStream m_file_istream = null;
|
||||
|
||||
/**
|
||||
* @param panel
|
||||
*/
|
||||
public CSVImportAction(AbstractADWindowContent panel)
|
||||
{
|
||||
this.panel = panel;
|
||||
}
|
||||
|
||||
/**
|
||||
* execute import action
|
||||
*/
|
||||
public void fileImport()
|
||||
{
|
||||
List<IGridTabImporter> importerList = EquinoxExtensionLocator.instance().list(IGridTabImporter.class).getExtensions();
|
||||
for(IGridTabImporter importer : importerList) {
|
||||
String extension = importer.getFileExtension();
|
||||
if (extension.equals("csv")) {
|
||||
theCSVImporter = importer;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (theCSVImporter == null)
|
||||
throw new AdempiereException("No CSV importer");
|
||||
|
||||
// templates allowed to this role
|
||||
int tabid = -1;
|
||||
if (panel != null && panel.getActiveGridTab() != null)
|
||||
tabid = panel.getActiveGridTab().getAD_Tab_ID();
|
||||
for (MImportTemplate it : MImportTemplate.getTemplates(Env.getAD_Role_ID(Env.getCtx()), tabid)) {
|
||||
if (theTemplate == null)
|
||||
theTemplate = it;
|
||||
fTemplates.appendItem(it.getName(), it);
|
||||
}
|
||||
fTemplates.addEventListener(Events.ON_SELECT, this);
|
||||
if (fTemplates.getItemCount() > 0) {
|
||||
fTemplates.setSelectedIndex(0);
|
||||
setTemplateList();
|
||||
} else {
|
||||
throw new AdempiereException("No templates for this tab");
|
||||
}
|
||||
|
||||
if (winImportFile == null)
|
||||
{
|
||||
winImportFile = new Window();
|
||||
winImportFile.setTitle(Msg.getMsg(Env.getCtx(), "FileImport") + ": " + panel.getActiveGridTab().getName());
|
||||
winImportFile.setWidth("450px");
|
||||
winImportFile.setClosable(true);
|
||||
winImportFile.setBorder("normal");
|
||||
winImportFile.setStyle("position:absolute");
|
||||
winImportFile.setWidgetAttribute(AdempiereWebUI.WIDGET_INSTANCE_NAME, "importAction");
|
||||
winImportFile.setSclass("popup-dialog");
|
||||
|
||||
Vbox vb = new Vbox();
|
||||
vb.setWidth("100%");
|
||||
winImportFile.appendChild(vb);
|
||||
|
||||
Vlayout vlayout = new Vlayout();
|
||||
vlayout.setSclass("dialog-content");
|
||||
vb.appendChild(vlayout);
|
||||
|
||||
Grid grid = GridFactory.newGridLayout();
|
||||
vlayout.appendChild(grid);
|
||||
|
||||
Columns columns = new Columns();
|
||||
Column column = new Column();
|
||||
column.setHflex("min");
|
||||
columns.appendChild(column);
|
||||
column = new Column();
|
||||
column.setHflex("1");
|
||||
columns.appendChild(column);
|
||||
grid.appendChild(columns);
|
||||
|
||||
Rows rows = new Rows();
|
||||
grid.appendChild(rows);
|
||||
|
||||
Row row = new Row();
|
||||
rows.appendChild(row);
|
||||
row.appendChild(new Label(Msg.getElement(Env.getCtx(), "AD_ImportTemplate_ID") + ": "));
|
||||
fTemplates.setMold("select");
|
||||
fTemplates.setRows(0);
|
||||
fTemplates.setTooltiptext(Msg.getElement(Env.getCtx(), "AD_ImportTemplate_ID"));
|
||||
row.appendChild(fTemplates);
|
||||
fTemplates.setHflex("1");
|
||||
|
||||
row = new Row();
|
||||
rows.appendChild(row);
|
||||
row.appendChild(new Label(Msg.getMsg(Env.getCtx(), "import.mode", true)));
|
||||
fImportMode.setMold("select");
|
||||
fImportMode.setRows(0);
|
||||
fImportMode.setTooltiptext(Msg.getMsg(Env.getCtx(), "import.mode", false));
|
||||
row.appendChild(fImportMode);
|
||||
fImportMode.setHflex("1");
|
||||
|
||||
row = new Row();
|
||||
rows.appendChild(row);
|
||||
row.appendChild(new Space());
|
||||
bFile.setLabel(Msg.getMsg(Env.getCtx(), "FileImportFile"));
|
||||
bFile.setTooltiptext(Msg.getMsg(Env.getCtx(), "FileImportFileInfo"));
|
||||
bFile.setUpload(AdempiereWebUI.getUploadSetting());
|
||||
LayoutUtils.addSclass("txt-btn", bFile);
|
||||
bFile.addEventListener(Events.ON_UPLOAD, this);
|
||||
row.appendChild(bFile);
|
||||
|
||||
LayoutUtils.addSclass("dialog-footer", confirmPanel);
|
||||
vb.appendChild(confirmPanel);
|
||||
confirmPanel.addActionListener(this);
|
||||
}
|
||||
|
||||
panel.getComponent().getParent().appendChild(winImportFile);
|
||||
panel.showBusyMask(winImportFile);
|
||||
LayoutUtils.openOverlappedWindow(panel.getComponent(), winImportFile, "middle_center");
|
||||
winImportFile.addEventListener(DialogEvents.ON_WINDOW_CLOSE, this);
|
||||
}
|
||||
|
||||
private void setTemplateList() {
|
||||
Charset charset = Charset.forName(theTemplate.getCharacterSet());
|
||||
Executions.getCurrent().getDesktop().getWebApp().getConfiguration().setUploadCharset(charset.name());
|
||||
bFile.setLabel(Msg.getMsg(Env.getCtx(), "FileImportFile"));
|
||||
fillImportMode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
if (event instanceof UploadEvent)
|
||||
{
|
||||
UploadEvent ue = (UploadEvent) event;
|
||||
processUploadMedia(ue.getMedia());
|
||||
} else if (event.getTarget().getId().equals(ConfirmPanel.A_CANCEL)) {
|
||||
winImportFile.onClose();
|
||||
} else if (event.getTarget() == fTemplates) {
|
||||
if (m_file_istream != null) {
|
||||
m_file_istream.close();
|
||||
m_file_istream = null;
|
||||
}
|
||||
ListItem listitem = fTemplates.getSelectedItem();
|
||||
if (listitem == null)
|
||||
return;
|
||||
theTemplate = (MImportTemplate)listitem.getValue();
|
||||
setTemplateList();
|
||||
} else if (event.getTarget().getId().equals(ConfirmPanel.A_OK)) {
|
||||
if (m_file_istream == null || fTemplates.getSelectedItem() == null)
|
||||
return;
|
||||
importFile();
|
||||
} else if (event.getName().equals(DialogEvents.ON_WINDOW_CLOSE)) {
|
||||
panel.hideBusyMask();
|
||||
}
|
||||
}
|
||||
|
||||
private void fillImportMode() {
|
||||
final String sql= ""
|
||||
+ "SELECT IsAllowInsert, IsAllowUpdate, IsAllowMerge "
|
||||
+ "FROM AD_ImportTemplateAccess "
|
||||
+ "WHERE IsActive='Y' AND AD_ImportTemplate_ID=? AND AD_Role_ID=? AND (IsAllowInsert='Y' OR IsAllowMerge='Y' OR IsAllowUpdate='Y')";
|
||||
List<Object> flags = DB.getSQLValueObjectsEx(null, sql, theTemplate.getAD_ImportTemplate_ID(), Env.getAD_Role_ID(Env.getCtx()));
|
||||
fImportMode.removeAllItems();
|
||||
if (flags.get(0) != null && "Y".equals(flags.get(0).toString()))
|
||||
fImportMode.appendItem("Insert","I");
|
||||
if (flags.get(1) != null && "Y".equals(flags.get(0).toString()))
|
||||
fImportMode.appendItem("Update","U");
|
||||
if (flags.get(2) != null && "Y".equals(flags.get(0).toString()))
|
||||
fImportMode.appendItem("Merge","M");
|
||||
fImportMode.setSelectedIndex(0);
|
||||
}
|
||||
|
||||
private void processUploadMedia(Media media) {
|
||||
if (media == null)
|
||||
return;
|
||||
|
||||
if (media.isBinary()) {
|
||||
m_file_istream = media.getStreamData();
|
||||
}
|
||||
else {
|
||||
if (theTemplate == null) {
|
||||
m_file_istream = new ReaderInputStream(media.getReaderData());
|
||||
} else {
|
||||
Charset charset = Charset.forName(theTemplate.getCharacterSet());
|
||||
m_file_istream = new ReaderInputStream(media.getReaderData(), charset.name());
|
||||
}
|
||||
}
|
||||
|
||||
bFile.setLabel(media.getName());
|
||||
}
|
||||
|
||||
private void importFile() {
|
||||
try {
|
||||
IADTabbox adTab = panel.getADTab();
|
||||
int selected = adTab.getSelectedIndex();
|
||||
int tabLevel = panel.getActiveGridTab().getTabLevel();
|
||||
Set<String> tables = new HashSet<String>();
|
||||
List<GridTab> childs = new ArrayList<GridTab>();
|
||||
List<GridTab> includedList = panel.getActiveGridTab().getIncludedTabs();
|
||||
for(GridTab included : includedList)
|
||||
{
|
||||
String tableName = included.getTableName();
|
||||
if (tables.contains(tableName))
|
||||
continue;
|
||||
tables.add(tableName);
|
||||
childs.add(included);
|
||||
}
|
||||
for(int i = selected+1; i < adTab.getTabCount(); i++)
|
||||
{
|
||||
IADTabpanel adTabPanel = adTab.getADTabpanel(i);
|
||||
if (adTabPanel.getGridTab().isSortTab())
|
||||
continue;
|
||||
if (adTabPanel.getGridTab().getTabLevel() <= tabLevel)
|
||||
break;
|
||||
String tableName = adTabPanel.getGridTab().getTableName();
|
||||
if (tables.contains(tableName))
|
||||
continue;
|
||||
tables.add(tableName);
|
||||
childs.add(adTabPanel.getGridTab());
|
||||
}
|
||||
|
||||
Charset charset = Charset.forName(theTemplate.getCharacterSet());
|
||||
Executions.getCurrent().getDesktop().getWebApp().getConfiguration().setUploadCharset(charset.name());
|
||||
ListItem importItem = fImportMode.getSelectedItem();
|
||||
if (importItem == null)
|
||||
return;
|
||||
|
||||
String iMode = (String)importItem.getValue();
|
||||
m_file_istream = validateFile(m_file_istream, theTemplate);
|
||||
File outFile = theCSVImporter.fileImport(panel.getActiveGridTab(), childs, m_file_istream, charset,iMode);
|
||||
winImportFile.onClose();
|
||||
winImportFile = null;
|
||||
|
||||
AMedia media = null;
|
||||
media = new AMedia(theCSVImporter.getSuggestedFileName(panel.getActiveGridTab()), null, theCSVImporter.getContentType(), outFile, true);
|
||||
Filedownload.save(media);
|
||||
|
||||
} catch (Exception e) {
|
||||
throw new AdempiereException(e);
|
||||
} finally {
|
||||
if (winImportFile != null)
|
||||
winImportFile.onClose();
|
||||
}
|
||||
}
|
||||
|
||||
private InputStream validateFile(InputStream in, MImportTemplate template) {
|
||||
// because the input stream cannot be reset we need to copy here the file to a new one (replacing the header if it's the alias)
|
||||
Charset charset = Charset.forName(template.getCharacterSet());
|
||||
BufferedReader reader = new BufferedReader(new InputStreamReader(in, charset));
|
||||
File tmpfile = null;
|
||||
InputStream is = null;
|
||||
BufferedWriter bw = null;
|
||||
try {
|
||||
tmpfile = File.createTempFile("CSVImportAction", "csv");
|
||||
bw = new BufferedWriter(new FileWriter(tmpfile));
|
||||
String firstLine = null;
|
||||
String line = null;
|
||||
while ((line = reader.readLine()) != null) {
|
||||
if (firstLine == null) {
|
||||
firstLine = line;
|
||||
/* Validate that m_file_istream header is CSVHeader or AliasCSVHeader */
|
||||
if ( firstLine.equals(template.getCSVHeader())
|
||||
|| firstLine.equals(template.getCSVAliasHeader())) {
|
||||
bw.write(template.getCSVHeader());
|
||||
} else {
|
||||
reader.close();
|
||||
throw new AdempiereException(Msg.getMsg(Env.getCtx(), "WrongCSVHeader"));
|
||||
}
|
||||
} else {
|
||||
bw.write(line);
|
||||
}
|
||||
bw.write('\n');
|
||||
}
|
||||
is = new FileInputStream(tmpfile);
|
||||
} catch (IOException e) {
|
||||
throw new AdempiereException(e);
|
||||
} finally {
|
||||
try {
|
||||
reader.close();
|
||||
in.close();
|
||||
if (bw != null)
|
||||
bw.close();
|
||||
} catch (IOException e) {}
|
||||
}
|
||||
return is;
|
||||
}
|
||||
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 464 B |
Binary file not shown.
After Width: | Height: | Size: 678 B |
Loading…
Reference in New Issue