IDEMPIERE-393 Setup wizards

This commit is contained in:
Carlos Ruiz 2012-08-20 20:27:26 -05:00
parent 98d4cd4a89
commit f58311e94e
16 changed files with 2210 additions and 100 deletions

View File

@ -0,0 +1,492 @@
-- Aug 16, 2012 4:41:38 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Table (IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,ImportTable,IsView,IsChangeLog,EntityType,CopyColumnsFromTable,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,CreatedBy,Updated,UpdatedBy,Created) VALUES ('N','2',0,200012,'N','N','N','Y','D','N','L','627cd49d-d311-4b47-8a01-f99992edbcd0','Y','Y','AD_WizardProcess','Wizard Process',0,'Y',0,100,TO_DATE('2012-08-16 16:41:37','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2012-08-16 16:41:37','YYYY-MM-DD HH24:MI:SS'))
;
-- Aug 16, 2012 4:41:38 PM COT
INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200012 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID)
;
-- Aug 16, 2012 4:41:38 PM COT
INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,StartNo,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,Description,Name,IncrementNo,AD_Sequence_UU,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive) VALUES ('N',50000,'Y',1000000,1000000,'N','Y',200011,'Table AD_WizardProcess','AD_WizardProcess',1,'3f66868f-2837-4ee1-9475-f36e101240da',0,0,TO_DATE('2012-08-16 16:41:38','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2012-08-16 16:41:38','YYYY-MM-DD HH24:MI:SS'),100,'Y')
;
-- Aug 16, 2012 4:46:00 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200306,'D','Y','N','N',0,'N',22,'N',19,'N',129,'N',102,'N','Y','2c70ff3d-e64a-49c5-abeb-86054ec9d28c','N','N','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',100,TO_DATE('2012-08-16 16:45:59','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-16 16:45:59','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:00 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200306 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:01 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200307,'D','Y','N','N',0,'N',22,'N',19,'N',104,'N',113,'N','Y','b8b33d75-938f-473d-8a28-c7bf2bab2b4c','N','N','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',100,TO_DATE('2012-08-16 16:46:01','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-16 16:46:01','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:01 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200307 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:01 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200308,'D','Y','N','N',0,'N',7,'N',16,'N','N',245,'N','Y','08e46e32-da39-46e6-8607-9aab1470d76e','N','N','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created','N',100,TO_DATE('2012-08-16 16:46:01','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-16 16:46:01','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:02 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200308 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:02 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200309,'D',110,'Y','N','N',0,'N',22,'N',18,'N','N',246,'N','Y','d4a465e3-103e-4aee-8f79-d273db5a37c7','N','N','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',100,TO_DATE('2012-08-16 16:46:02','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-16 16:46:02','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:02 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200309 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:02 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200310,'D','N','N','N',0,'N',255,'Y',10,'N','N',275,'N','Y','d3e69713-bb88-418f-bc56-4d4dfc601bae','N','Y','N','Description','Optional short description of the record','A description is limited to 255 characters.','Description','Y',100,TO_DATE('2012-08-16 16:46:02','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-16 16:46:02','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:02 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200310 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:03 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200311,'D','N','N','N',0,'N',2000,'N',14,'N','N',326,'N','Y','ea75b9e0-bfb4-48ae-917d-7d5037f2f038','N','Y','N','Help','Comment or Hint','The Help field contains a hint, comment or help about the use of this item.','Comment/Help','Y',100,TO_DATE('2012-08-16 16:46:02','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-16 16:46:02','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:03 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200311 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:03 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200312,'D','Y','N','N',0,'N',1,'N',20,'N','N',348,'N','Y','b0f20af0-70b5-43db-8b69-060842f710f1','N','Y','N','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',100,TO_DATE('2012-08-16 16:46:03','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-16 16:46:03','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:03 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200312 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:04 PM COT
INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AD_WizardProcess_ID',200092,'D','Wizard Process','Wizard Process','1eba27dc-0eab-4bd6-babc-6f02fd547439',0,TO_DATE('2012-08-16 16:46:03','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2012-08-16 16:46:03','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y')
;
-- Aug 16, 2012 4:46:04 PM COT
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=200092 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- Aug 16, 2012 4:46:04 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200313,'D','Y','N','N',0,'N',22,'N',13,'N','Y',200092,'N','Y','a9b20d20-3d44-4aa3-a8fb-85f335c090ac','N','N','N','AD_WizardProcess_ID','Wizard Process','N',100,TO_DATE('2012-08-16 16:46:03','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-16 16:46:03','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:05 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200313 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:05 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1.00,200012,200314,'D','N','N','N','N',36,'N',10,'N','N',55044,'N','Y','b0acec5a-e325-40ab-97f2-8d69f1c8a872','N','Y','N','M_RMAType_UU','M_RMAType_UU','N',100,TO_DATE('2012-08-16 16:46:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-16 16:46:05','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:05 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200314 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:05 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200315,'D','Y','N','Y',1,'N',60,'Y',10,'N','N',469,'N','Y','79f20c60-9c13-403a-bf9f-e31dca2c0bb3','N','Y','N','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',100,TO_DATE('2012-08-16 16:46:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-16 16:46:05','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:05 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200315 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:06 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200316,'D','Y','N','N',0,'N',7,'N',16,'N','N',607,'N','Y','53214a14-26e9-4f6d-a177-be4a09395f61','N','N','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated','N',100,TO_DATE('2012-08-16 16:46:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-16 16:46:05','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:06 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200316 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:06 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200317,'D',110,'Y','N','N',0,'N',22,'N',18,'N','N',608,'N','Y','c9e90e19-7f6d-42da-ba22-695863800dad','N','N','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',100,TO_DATE('2012-08-16 16:46:06','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-08-16 16:46:06','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:06 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200317 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:47:33 PM COT
INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AD_WizardProcess_UU',200093,'D','AD_WizardProcess_UU','AD_WizardProcess_UU','07515fbf-92fa-4d3d-8cf7-77efb872944d',0,TO_DATE('2012-08-16 16:47:32','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2012-08-16 16:47:32','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y')
;
-- Aug 16, 2012 4:47:33 PM COT
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=200093 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- Aug 16, 2012 4:47:44 PM COT
UPDATE AD_Column SET AD_Element_ID=200093, ColumnName='AD_WizardProcess_UU', Description=NULL, Help=NULL, Name='AD_WizardProcess_UU',Updated=TO_DATE('2012-08-16 16:47:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200314
;
-- Aug 16, 2012 4:47:44 PM COT
UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=200314
;
-- Aug 16, 2012 4:47:44 PM COT
UPDATE AD_Field SET Name='AD_WizardProcess_UU', Description=NULL, Help=NULL WHERE AD_Column_ID=200314 AND IsCentrallyMaintained='Y'
;
-- Aug 16, 2012 4:48:51 PM COT
UPDATE AD_Column SET IsIdentifier='N', SeqNo=0, IsParent='Y', FieldLength=10, AD_Reference_ID=30, AD_Element_ID=142, IsUpdateable='N', ColumnName='AD_WF_Node_ID', Description='Workflow Node (activity), step or process', Help='The Workflow Node indicates a unique step or process in a Workflow.', Name='Node',Updated=TO_DATE('2012-08-16 16:48:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200315
;
-- Aug 16, 2012 4:48:51 PM COT
UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=200315
;
-- Aug 16, 2012 4:48:51 PM COT
UPDATE AD_Field SET Name='Node', Description='Workflow Node (activity), step or process', Help='The Workflow Node indicates a unique step or process in a Workflow.' WHERE AD_Column_ID=200315 AND IsCentrallyMaintained='Y'
;
-- Aug 16, 2012 4:49:35 PM COT
UPDATE AD_Column SET AD_Element_ID=1115, ColumnName='Note', Description='Optional additional user defined information', Help='The Note field allows for optional entry of user defined information regarding this record', Name='Note',Updated=TO_DATE('2012-08-16 16:49:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200311
;
-- Aug 16, 2012 4:49:35 PM COT
UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=200311
;
-- Aug 16, 2012 4:49:35 PM COT
UPDATE AD_Field SET Name='Note', Description='Optional additional user defined information', Help='The Note field allows for optional entry of user defined information regarding this record' WHERE AD_Column_ID=200311 AND IsCentrallyMaintained='Y'
;
-- Aug 16, 2012 4:50:30 PM COT
INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('WizardStatus',200094,'D','Wizard Status','Wizard Status','06dab4e9-6080-40b5-a4a7-fa1d871ec058',0,TO_DATE('2012-08-16 16:50:29','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2012-08-16 16:50:29','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y')
;
-- Aug 16, 2012 4:50:30 PM COT
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=200094 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- Aug 16, 2012 4:53:33 PM COT
INSERT INTO AD_Reference (AD_Reference_ID,Name,EntityType,AD_Reference_UU,IsOrderByValue,ValidationType,AD_Client_ID,AD_Org_ID,CreatedBy,Updated,IsActive,Created,UpdatedBy) VALUES (200003,'AD_WizardProcess Status','D','2ecdcec7-e361-4926-a8f7-a2f72bfd12e5','N','L',0,0,100,TO_DATE('2012-08-16 16:53:27','YYYY-MM-DD HH24:MI:SS'),'Y',TO_DATE('2012-08-16 16:53:27','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Aug 16, 2012 4:53:33 PM COT
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Reference_Trl_UU ) SELECT l.AD_Language,t.AD_Reference_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=200003 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
;
-- Aug 16, 2012 4:55:01 PM COT
INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200008,200003,'D','New','dd3f4502-2914-44af-b66f-1620f64c50a3','N',TO_DATE('2012-08-16 16:55:00','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2012-08-16 16:55:00','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0)
;
-- Aug 16, 2012 4:55:01 PM COT
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200008 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID)
;
-- Aug 16, 2012 4:55:11 PM COT
INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200009,200003,'D','Pending','00609fa8-5d40-4d42-ba37-b5919acdc782','P',TO_DATE('2012-08-16 16:55:11','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2012-08-16 16:55:11','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0)
;
-- Aug 16, 2012 4:55:11 PM COT
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200009 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID)
;
-- Aug 16, 2012 4:55:23 PM COT
INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200010,200003,'D','Finished','9829c724-da26-4442-ba9d-2d93d6e7858f','F',TO_DATE('2012-08-16 16:55:22','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2012-08-16 16:55:22','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0)
;
-- Aug 16, 2012 4:55:23 PM COT
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200010 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID)
;
-- Aug 16, 2012 4:55:34 PM COT
INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200011,200003,'D','In-Progress','c79db7f7-2646-483b-bb19-36164ffbabb9','I',TO_DATE('2012-08-16 16:55:33','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2012-08-16 16:55:33','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0)
;
-- Aug 16, 2012 4:55:34 PM COT
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200011 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID)
;
-- Aug 16, 2012 4:55:45 PM COT
INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200012,200003,'D','Skipped','a3d49831-ba26-4f4b-91f4-24f44b09b812','S',TO_DATE('2012-08-16 16:55:44','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2012-08-16 16:55:44','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0)
;
-- Aug 16, 2012 4:55:45 PM COT
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200012 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID)
;
-- Aug 16, 2012 4:55:54 PM COT
INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200013,200003,'D','Delayed','4e09d396-3fa6-461d-9cca-b2aede0c6e2a','D',TO_DATE('2012-08-16 16:55:53','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2012-08-16 16:55:53','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0)
;
-- Aug 16, 2012 4:55:54 PM COT
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200013 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID)
;
-- Aug 16, 2012 4:56:29 PM COT
UPDATE AD_Column SET AD_Reference_Value_ID=200003, FieldLength=1, IsSelectionColumn='N', AD_Reference_ID=17, AD_Element_ID=200094, ColumnName='WizardStatus', Description=NULL, Help=NULL, Name='Wizard Status',Updated=TO_DATE('2012-08-16 16:56:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200310
;
-- Aug 16, 2012 4:56:29 PM COT
UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=200310
;
-- Aug 16, 2012 4:56:29 PM COT
UPDATE AD_Field SET Name='Wizard Status', Description=NULL, Help=NULL WHERE AD_Column_ID=200310 AND IsCentrallyMaintained='Y'
;
-- Aug 16, 2012 4:57:28 PM COT
CREATE TABLE AD_WizardProcess (AD_Client_ID NUMBER(10) NOT NULL, AD_Org_ID NUMBER(10) NOT NULL, AD_WF_Node_ID NUMBER(10) NOT NULL, AD_WizardProcess_ID NUMBER(10) NOT NULL, AD_WizardProcess_UU NVARCHAR2(36) DEFAULT NULL , Created DATE NOT NULL, CreatedBy NUMBER(10) NOT NULL, IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, Note NVARCHAR2(2000) DEFAULT NULL , Updated DATE NOT NULL, UpdatedBy NUMBER(10) NOT NULL, WizardStatus CHAR(1) DEFAULT NULL , CONSTRAINT AD_WizardProcess_Key PRIMARY KEY (AD_WizardProcess_ID))
;
create unique index AD_WizardProcess_uu_idx on AD_WizardProcess(AD_WizardProcess_UU);
-- Aug 16, 2012 5:41:16 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_Column SET FieldLength=0, AD_Reference_ID=36,Updated=TO_DATE('2012-08-16 17:41:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=1206
;
-- Aug 16, 2012 5:41:20 PM COT
alter table AD_WF_Node add ( temp_column clob );
update AD_WF_Node set temp_column=Help, Help=null;
alter table AD_WF_Node drop column Help;
alter table AD_WF_Node rename column temp_column to Help;
-- Aug 16, 2012 5:42:15 PM COT
UPDATE AD_Column SET FieldLength=0, AD_Reference_ID=36,Updated=TO_DATE('2012-08-16 17:42:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2290
;
-- Aug 16, 2012 5:42:18 PM COT
alter table AD_WF_Node_Trl add ( temp_column clob );
update AD_WF_Node_Trl set temp_column=Help, Help=null;
alter table AD_WF_Node_Trl drop column Help;
alter table AD_WF_Node_Trl rename column temp_column to Help;
-- Aug 16, 2012 6:47:08 PM COT
UPDATE AD_Column SET FieldLength=0, AD_Reference_ID=36,Updated=TO_DATE('2012-08-16 18:47:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=238
;
-- Aug 16, 2012 6:47:14 PM COT
alter table AD_Workflow add ( temp_column clob );
update AD_Workflow set temp_column=Help, Help=null;
alter table AD_Workflow drop column Help;
alter table AD_Workflow rename column temp_column to Help;
-- Aug 16, 2012 6:47:35 PM COT
UPDATE AD_Column SET FieldLength=0, AD_Reference_ID=36,Updated=TO_DATE('2012-08-16 18:47:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=316
;
-- Aug 16, 2012 6:47:38 PM COT
alter table AD_Workflow_Trl add ( temp_column clob );
update AD_Workflow_Trl set temp_column=Help, Help=null;
alter table AD_Workflow_Trl drop column Help;
alter table AD_Workflow_Trl rename column temp_column to Help;
-- Aug 17, 2012 4:05:21 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Form (AccessLevel,Classname,AD_Form_ID,IsBetaFunctionality,EntityType,AD_Form_UU,Name,AD_Org_ID,UpdatedBy,CreatedBy,Updated,Created,AD_Client_ID,IsActive) VALUES ('2','org.compiere.apps.form.VSetupWizard',200000,'N','D','7df89045-cd20-46e3-94fb-e0b80e4084f8','Setup Wizard',0,100,100,TO_DATE('2012-08-17 16:05:20','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2012-08-17 16:05:20','YYYY-MM-DD HH24:MI:SS'),0,'Y')
;
-- Aug 17, 2012 4:05:21 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Form_Trl (AD_Language,AD_Form_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Form_Trl_UU ) SELECT l.AD_Language,t.AD_Form_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Form t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Form_ID=200000 AND NOT EXISTS (SELECT * FROM AD_Form_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Form_ID=t.AD_Form_ID)
;
-- Aug 17, 2012 4:05:37 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Menu (AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,AD_Form_ID,EntityType,IsCentrallyMaintained,Name,Action,AD_Menu_UU,IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200009,'N','N','N',200000,'D','Y','Setup Wizard','X','b733d9bd-95b2-4192-9668-59702307f624','Y',0,100,TO_DATE('2012-08-17 16:05:37','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2012-08-17 16:05:37','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Aug 17, 2012 4:05:37 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200009 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID)
;
-- Aug 17, 2012 4:05:37 PM COT
-- IDEMPIERE-393 Setup wizards
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, 200009, 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=200009)
;
-- Aug 17, 2012 4:05:44 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_Preference SET Value='Y',Updated=TO_DATE('2012-08-17 16:05:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Preference_ID=1000009
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53242
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=261
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53202
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=225
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=200009
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=148
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=529
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=397
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=532
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53084
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53083
;
-- Aug 17, 2012 4:06:48 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_Preference SET Value='N',Updated=TO_DATE('2012-08-17 16:06:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Preference_ID=1000009
;
-- Aug 17, 2012 4:07:33 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200014,328,'D','Wizard','f1ffc07b-f822-4659-bdd7-e8dde31acac5','W',TO_DATE('2012-08-17 16:07:32','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2012-08-17 16:07:32','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0)
;
-- Aug 17, 2012 4:07:33 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200014 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID)
;
-- Aug 17, 2012 5:04:14 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Client_ID,AD_Org_ID,Created) VALUES ('I','Properties',200013,'D','d9f0db1a-5655-466c-8961-c1424b0ff275','Properties','Y',TO_DATE('2012-08-17 17:04:13','YYYY-MM-DD HH24:MI:SS'),100,100,0,0,TO_DATE('2012-08-17 17:04:13','YYYY-MM-DD HH24:MI:SS'))
;
-- Aug 17, 2012 5:04:14 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200013 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
;
-- Aug 20, 2012 3:51:46 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Client_ID,AD_Org_ID,Created) VALUES ('I','{0} tasks completed from {1} ({2}% advance)',200014,'D','60c03fae-3b77-4307-8454-64690aacc517','SetupWizardProgress','Y',TO_DATE('2012-08-20 15:51:45','YYYY-MM-DD HH24:MI:SS'),100,100,0,0,TO_DATE('2012-08-20 15:51:45','YYYY-MM-DD HH24:MI:SS'))
;
-- Aug 20, 2012 3:51:46 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200014 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
;
UPDATE AD_System
SET LastMigrationScriptApplied='878_IDEMPIERE-393.sql'
WHERE LastMigrationScriptApplied<'878_IDEMPIERE-393.sql'
OR LastMigrationScriptApplied IS NULL
;
-- NOTE: For testing purposes:
-- UPDATE AD_Workflow SET WorkflowType='W', Priority=1 WHERE AD_Workflow_ID=104; -- Initial Client Setup Review
-- UPDATE AD_Workflow SET WorkflowType='W', Priority=2 WHERE AD_Workflow_ID=106; -- Business Partner Setup
-- UPDATE AD_Workflow SET WorkflowType='W', Priority=3 WHERE AD_Workflow_ID=107; -- Product Setup
-- UPDATE AD_Workflow SET WorkflowType='W', Priority=4 WHERE AD_Workflow_ID=111; -- Sales Setup
-- UPDATE AD_Workflow SET WorkflowType='W', Priority=5 WHERE AD_Workflow_ID=108; -- Price List Setup
-- UPDATE AD_Workflow SET WorkflowType='W', Priority=6 WHERE AD_Workflow_ID=110; -- Tax Setup

View File

@ -0,0 +1,472 @@
-- Aug 16, 2012 4:41:38 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Table (IsSecurityEnabled,AccessLevel,LoadSeq,AD_Table_ID,IsHighVolume,ImportTable,IsView,IsChangeLog,EntityType,CopyColumnsFromTable,ReplicationType,AD_Table_UU,IsCentrallyMaintained,IsDeleteable,TableName,Name,AD_Client_ID,IsActive,AD_Org_ID,CreatedBy,Updated,UpdatedBy,Created) VALUES ('N','2',0,200012,'N','N','N','Y','D','N','L','627cd49d-d311-4b47-8a01-f99992edbcd0','Y','Y','AD_WizardProcess','Wizard Process',0,'Y',0,100,TO_TIMESTAMP('2012-08-16 16:41:37','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2012-08-16 16:41:37','YYYY-MM-DD HH24:MI:SS'))
;
-- Aug 16, 2012 4:41:38 PM COT
INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Table_Trl_UU ) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=200012 AND NOT EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Table_ID=t.AD_Table_ID)
;
-- Aug 16, 2012 4:41:38 PM COT
INSERT INTO AD_Sequence (StartNewYear,CurrentNextSys,IsTableID,StartNo,CurrentNext,IsAudited,IsAutoSequence,AD_Sequence_ID,Description,Name,IncrementNo,AD_Sequence_UU,AD_Org_ID,AD_Client_ID,Created,CreatedBy,Updated,UpdatedBy,IsActive) VALUES ('N',50000,'Y',1000000,1000000,'N','Y',200011,'Table AD_WizardProcess','AD_WizardProcess',1,'3f66868f-2837-4ee1-9475-f36e101240da',0,0,TO_TIMESTAMP('2012-08-16 16:41:38','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2012-08-16 16:41:38','YYYY-MM-DD HH24:MI:SS'),100,'Y')
;
-- Aug 16, 2012 4:46:00 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200306,'D','Y','N','N',0,'N',22,'N',19,'N',129,'N',102,'N','Y','2c70ff3d-e64a-49c5-abeb-86054ec9d28c','N','N','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',100,TO_TIMESTAMP('2012-08-16 16:45:59','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-16 16:45:59','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:00 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200306 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:01 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,AD_Val_Rule_ID,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200307,'D','Y','N','N',0,'N',22,'N',19,'N',104,'N',113,'N','Y','b8b33d75-938f-473d-8a28-c7bf2bab2b4c','N','N','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',100,TO_TIMESTAMP('2012-08-16 16:46:01','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-16 16:46:01','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:01 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200307 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:01 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200308,'D','Y','N','N',0,'N',7,'N',16,'N','N',245,'N','Y','08e46e32-da39-46e6-8607-9aab1470d76e','N','N','N','Created','Date this record was created','The Created field indicates the date that this record was created.','Created','N',100,TO_TIMESTAMP('2012-08-16 16:46:01','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-16 16:46:01','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:02 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200308 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:02 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200309,'D',110,'Y','N','N',0,'N',22,'N',18,'N','N',246,'N','Y','d4a465e3-103e-4aee-8f79-d273db5a37c7','N','N','N','CreatedBy','User who created this records','The Created By field indicates the user who created this record.','Created By','N',100,TO_TIMESTAMP('2012-08-16 16:46:02','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-16 16:46:02','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:02 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200309 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:02 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200310,'D','N','N','N',0,'N',255,'Y',10,'N','N',275,'N','Y','d3e69713-bb88-418f-bc56-4d4dfc601bae','N','Y','N','Description','Optional short description of the record','A description is limited to 255 characters.','Description','Y',100,TO_TIMESTAMP('2012-08-16 16:46:02','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-16 16:46:02','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:02 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200310 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:03 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200311,'D','N','N','N',0,'N',2000,'N',14,'N','N',326,'N','Y','ea75b9e0-bfb4-48ae-917d-7d5037f2f038','N','Y','N','Help','Comment or Hint','The Help field contains a hint, comment or help about the use of this item.','Comment/Help','Y',100,TO_TIMESTAMP('2012-08-16 16:46:02','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-16 16:46:02','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:03 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200311 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:03 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,DefaultValue,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200312,'D','Y','N','N',0,'N',1,'N',20,'N','N',348,'N','Y','b0f20af0-70b5-43db-8b69-060842f710f1','N','Y','N','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',100,TO_TIMESTAMP('2012-08-16 16:46:03','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-16 16:46:03','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:03 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200312 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:04 PM COT
INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AD_WizardProcess_ID',200092,'D','Wizard Process','Wizard Process','1eba27dc-0eab-4bd6-babc-6f02fd547439',0,TO_TIMESTAMP('2012-08-16 16:46:03','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2012-08-16 16:46:03','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y')
;
-- Aug 16, 2012 4:46:04 PM COT
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=200092 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- Aug 16, 2012 4:46:04 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200313,'D','Y','N','N',0,'N',22,'N',13,'N','Y',200092,'N','Y','a9b20d20-3d44-4aa3-a8fb-85f335c090ac','N','N','N','AD_WizardProcess_ID','Wizard Process','N',100,TO_TIMESTAMP('2012-08-16 16:46:03','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-16 16:46:03','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:05 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200313 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:05 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1.00,200012,200314,'D','N','N','N','N',36,'N',10,'N','N',55044,'N','Y','b0acec5a-e325-40ab-97f2-8d69f1c8a872','N','Y','N','M_RMAType_UU','M_RMAType_UU','N',100,TO_TIMESTAMP('2012-08-16 16:46:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-16 16:46:05','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:05 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200314 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:05 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200315,'D','Y','N','Y',1,'N',60,'Y',10,'N','N',469,'N','Y','79f20c60-9c13-403a-bf9f-e31dca2c0bb3','N','Y','N','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',100,TO_TIMESTAMP('2012-08-16 16:46:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-16 16:46:05','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:05 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200315 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:06 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200316,'D','Y','N','N',0,'N',7,'N',16,'N','N',607,'N','Y','53214a14-26e9-4f6d-a177-be4a09395f61','N','N','N','Updated','Date this record was updated','The Updated field indicates the date that this record was updated.','Updated','N',100,TO_TIMESTAMP('2012-08-16 16:46:05','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-16 16:46:05','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:06 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200316 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:46:06 PM COT
INSERT INTO AD_Column (Version,AD_Table_ID,AD_Column_ID,EntityType,AD_Reference_Value_ID,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Help,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID) VALUES (1,200012,200317,'D',110,'Y','N','N',0,'N',22,'N',18,'N','N',608,'N','Y','c9e90e19-7f6d-42da-ba22-695863800dad','N','N','N','UpdatedBy','User who updated this records','The Updated By field indicates the user who updated this record.','Updated By','N',100,TO_TIMESTAMP('2012-08-16 16:46:06','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-08-16 16:46:06','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- Aug 16, 2012 4:46:06 PM COT
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200317 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- Aug 16, 2012 4:47:33 PM COT
INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('AD_WizardProcess_UU',200093,'D','AD_WizardProcess_UU','AD_WizardProcess_UU','07515fbf-92fa-4d3d-8cf7-77efb872944d',0,TO_TIMESTAMP('2012-08-16 16:47:32','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2012-08-16 16:47:32','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y')
;
-- Aug 16, 2012 4:47:33 PM COT
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=200093 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- Aug 16, 2012 4:47:44 PM COT
UPDATE AD_Column SET AD_Element_ID=200093, ColumnName='AD_WizardProcess_UU', Description=NULL, Help=NULL, Name='AD_WizardProcess_UU',Updated=TO_TIMESTAMP('2012-08-16 16:47:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200314
;
-- Aug 16, 2012 4:47:44 PM COT
UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=200314
;
-- Aug 16, 2012 4:47:44 PM COT
UPDATE AD_Field SET Name='AD_WizardProcess_UU', Description=NULL, Help=NULL WHERE AD_Column_ID=200314 AND IsCentrallyMaintained='Y'
;
-- Aug 16, 2012 4:48:51 PM COT
UPDATE AD_Column SET IsIdentifier='N', SeqNo=0, IsParent='Y', FieldLength=10, AD_Reference_ID=30, AD_Element_ID=142, IsUpdateable='N', ColumnName='AD_WF_Node_ID', Description='Workflow Node (activity), step or process', Help='The Workflow Node indicates a unique step or process in a Workflow.', Name='Node',Updated=TO_TIMESTAMP('2012-08-16 16:48:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200315
;
-- Aug 16, 2012 4:48:51 PM COT
UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=200315
;
-- Aug 16, 2012 4:48:51 PM COT
UPDATE AD_Field SET Name='Node', Description='Workflow Node (activity), step or process', Help='The Workflow Node indicates a unique step or process in a Workflow.' WHERE AD_Column_ID=200315 AND IsCentrallyMaintained='Y'
;
-- Aug 16, 2012 4:49:35 PM COT
UPDATE AD_Column SET AD_Element_ID=1115, ColumnName='Note', Description='Optional additional user defined information', Help='The Note field allows for optional entry of user defined information regarding this record', Name='Note',Updated=TO_TIMESTAMP('2012-08-16 16:49:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200311
;
-- Aug 16, 2012 4:49:35 PM COT
UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=200311
;
-- Aug 16, 2012 4:49:35 PM COT
UPDATE AD_Field SET Name='Note', Description='Optional additional user defined information', Help='The Note field allows for optional entry of user defined information regarding this record' WHERE AD_Column_ID=200311 AND IsCentrallyMaintained='Y'
;
-- Aug 16, 2012 4:50:30 PM COT
INSERT INTO AD_Element (ColumnName,AD_Element_ID,EntityType,Name,PrintName,AD_Element_UU,AD_Client_ID,Created,Updated,AD_Org_ID,CreatedBy,UpdatedBy,IsActive) VALUES ('WizardStatus',200094,'D','Wizard Status','Wizard Status','06dab4e9-6080-40b5-a4a7-fa1d871ec058',0,TO_TIMESTAMP('2012-08-16 16:50:29','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2012-08-16 16:50:29','YYYY-MM-DD HH24:MI:SS'),0,100,100,'Y')
;
-- Aug 16, 2012 4:50:30 PM COT
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PO_Description,PO_Help,Name,Description,PrintName,PO_Name,PO_PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Element_Trl_UU ) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PO_Description,t.PO_Help,t.Name,t.Description,t.PrintName,t.PO_Name,t.PO_PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=200094 AND NOT EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- Aug 16, 2012 4:53:33 PM COT
INSERT INTO AD_Reference (AD_Reference_ID,Name,EntityType,AD_Reference_UU,IsOrderByValue,ValidationType,AD_Client_ID,AD_Org_ID,CreatedBy,Updated,IsActive,Created,UpdatedBy) VALUES (200003,'AD_WizardProcess Status','D','2ecdcec7-e361-4926-a8f7-a2f72bfd12e5','N','L',0,0,100,TO_TIMESTAMP('2012-08-16 16:53:27','YYYY-MM-DD HH24:MI:SS'),'Y',TO_TIMESTAMP('2012-08-16 16:53:27','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Aug 16, 2012 4:53:33 PM COT
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Reference_Trl_UU ) SELECT l.AD_Language,t.AD_Reference_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=200003 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
;
-- Aug 16, 2012 4:55:01 PM COT
INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200008,200003,'D','New','dd3f4502-2914-44af-b66f-1620f64c50a3','N',TO_TIMESTAMP('2012-08-16 16:55:00','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2012-08-16 16:55:00','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0)
;
-- Aug 16, 2012 4:55:01 PM COT
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200008 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID)
;
-- Aug 16, 2012 4:55:11 PM COT
INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200009,200003,'D','Pending','00609fa8-5d40-4d42-ba37-b5919acdc782','P',TO_TIMESTAMP('2012-08-16 16:55:11','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2012-08-16 16:55:11','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0)
;
-- Aug 16, 2012 4:55:11 PM COT
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200009 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID)
;
-- Aug 16, 2012 4:55:23 PM COT
INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200010,200003,'D','Finished','9829c724-da26-4442-ba9d-2d93d6e7858f','F',TO_TIMESTAMP('2012-08-16 16:55:22','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2012-08-16 16:55:22','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0)
;
-- Aug 16, 2012 4:55:23 PM COT
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200010 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID)
;
-- Aug 16, 2012 4:55:34 PM COT
INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200011,200003,'D','In-Progress','c79db7f7-2646-483b-bb19-36164ffbabb9','I',TO_TIMESTAMP('2012-08-16 16:55:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2012-08-16 16:55:33','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0)
;
-- Aug 16, 2012 4:55:34 PM COT
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200011 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID)
;
-- Aug 16, 2012 4:55:45 PM COT
INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200012,200003,'D','Skipped','a3d49831-ba26-4f4b-91f4-24f44b09b812','S',TO_TIMESTAMP('2012-08-16 16:55:44','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2012-08-16 16:55:44','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0)
;
-- Aug 16, 2012 4:55:45 PM COT
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200012 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID)
;
-- Aug 16, 2012 4:55:54 PM COT
INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200013,200003,'D','Delayed','4e09d396-3fa6-461d-9cca-b2aede0c6e2a','D',TO_TIMESTAMP('2012-08-16 16:55:53','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2012-08-16 16:55:53','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0)
;
-- Aug 16, 2012 4:55:54 PM COT
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200013 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID)
;
-- Aug 16, 2012 4:56:29 PM COT
UPDATE AD_Column SET AD_Reference_Value_ID=200003, FieldLength=1, IsSelectionColumn='N', AD_Reference_ID=17, AD_Element_ID=200094, ColumnName='WizardStatus', Description=NULL, Help=NULL, Name='Wizard Status',Updated=TO_TIMESTAMP('2012-08-16 16:56:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=200310
;
-- Aug 16, 2012 4:56:29 PM COT
UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=200310
;
-- Aug 16, 2012 4:56:29 PM COT
UPDATE AD_Field SET Name='Wizard Status', Description=NULL, Help=NULL WHERE AD_Column_ID=200310 AND IsCentrallyMaintained='Y'
;
-- Aug 16, 2012 4:57:28 PM COT
CREATE TABLE AD_WizardProcess (AD_Client_ID NUMERIC(10) NOT NULL, AD_Org_ID NUMERIC(10) NOT NULL, AD_WF_Node_ID NUMERIC(10) NOT NULL, AD_WizardProcess_ID NUMERIC(10) NOT NULL, AD_WizardProcess_UU VARCHAR(36) DEFAULT NULL , Created TIMESTAMP NOT NULL, CreatedBy NUMERIC(10) NOT NULL, IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, Note VARCHAR(2000) DEFAULT NULL , Updated TIMESTAMP NOT NULL, UpdatedBy NUMERIC(10) NOT NULL, WizardStatus CHAR(1) DEFAULT NULL , CONSTRAINT AD_WizardProcess_Key PRIMARY KEY (AD_WizardProcess_ID))
;
create unique index AD_WizardProcess_uu_idx on AD_WizardProcess(AD_WizardProcess_UU);
-- Aug 16, 2012 5:41:16 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_Column SET FieldLength=0, AD_Reference_ID=36,Updated=TO_TIMESTAMP('2012-08-16 17:41:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=1206
;
-- Aug 16, 2012 5:41:20 PM COT
INSERT INTO t_alter_column values('ad_wf_node','Help','TEXT',null,'NULL')
;
-- Aug 16, 2012 5:42:15 PM COT
UPDATE AD_Column SET FieldLength=0, AD_Reference_ID=36,Updated=TO_TIMESTAMP('2012-08-16 17:42:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2290
;
-- Aug 16, 2012 5:42:18 PM COT
INSERT INTO t_alter_column values('ad_wf_node_trl','Help','TEXT',null,'NULL')
;
-- Aug 16, 2012 6:47:08 PM COT
UPDATE AD_Column SET FieldLength=0, AD_Reference_ID=36,Updated=TO_TIMESTAMP('2012-08-16 18:47:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=238
;
-- Aug 16, 2012 6:47:14 PM COT
INSERT INTO t_alter_column values('ad_workflow','Help','TEXT',null,'NULL')
;
-- Aug 16, 2012 6:47:35 PM COT
UPDATE AD_Column SET FieldLength=0, AD_Reference_ID=36,Updated=TO_TIMESTAMP('2012-08-16 18:47:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=316
;
-- Aug 16, 2012 6:47:38 PM COT
INSERT INTO t_alter_column values('ad_workflow_trl','Help','TEXT',null,'NULL')
;
-- Aug 17, 2012 4:05:21 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Form (AccessLevel,Classname,AD_Form_ID,IsBetaFunctionality,EntityType,AD_Form_UU,Name,AD_Org_ID,UpdatedBy,CreatedBy,Updated,Created,AD_Client_ID,IsActive) VALUES ('2','org.compiere.apps.form.VSetupWizard',200000,'N','D','7df89045-cd20-46e3-94fb-e0b80e4084f8','Setup Wizard',0,100,100,TO_TIMESTAMP('2012-08-17 16:05:20','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2012-08-17 16:05:20','YYYY-MM-DD HH24:MI:SS'),0,'Y')
;
-- Aug 17, 2012 4:05:21 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Form_Trl (AD_Language,AD_Form_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Form_Trl_UU ) SELECT l.AD_Language,t.AD_Form_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Form t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Form_ID=200000 AND NOT EXISTS (SELECT * FROM AD_Form_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Form_ID=t.AD_Form_ID)
;
-- Aug 17, 2012 4:05:37 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Menu (AD_Menu_ID,IsSummary,IsSOTrx,IsReadOnly,AD_Form_ID,EntityType,IsCentrallyMaintained,Name,"action",AD_Menu_UU,IsActive,AD_Client_ID,CreatedBy,Updated,AD_Org_ID,Created,UpdatedBy) VALUES (200009,'N','N','N',200000,'D','Y','Setup Wizard','X','b733d9bd-95b2-4192-9668-59702307f624','Y',0,100,TO_TIMESTAMP('2012-08-17 16:05:37','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2012-08-17 16:05:37','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Aug 17, 2012 4:05:37 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Menu_Trl_UU ) SELECT l.AD_Language,t.AD_Menu_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=200009 AND NOT EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Menu_ID=t.AD_Menu_ID)
;
-- Aug 17, 2012 4:05:37 PM COT
-- IDEMPIERE-393 Setup wizards
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', CURRENT_TIMESTAMP, 100, CURRENT_TIMESTAMP, 100,t.AD_Tree_ID, 200009, 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=200009)
;
-- Aug 17, 2012 4:05:44 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_Preference SET Value='Y',Updated=TO_TIMESTAMP('2012-08-17 16:05:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Preference_ID=1000009
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53242
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=261
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53202
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=225
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=200009
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=148
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=529
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=397
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=532
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53084
;
-- Aug 17, 2012 4:06:01 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53083
;
-- Aug 17, 2012 4:06:48 PM COT
-- IDEMPIERE-393 Setup wizards
UPDATE AD_Preference SET Value='N',Updated=TO_TIMESTAMP('2012-08-17 16:06:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Preference_ID=1000009
;
-- Aug 17, 2012 4:07:33 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Ref_List (AD_Ref_List_ID,AD_Reference_ID,EntityType,Name,AD_Ref_List_UU,Value,Created,CreatedBy,Updated,UpdatedBy,IsActive,AD_Org_ID,AD_Client_ID) VALUES (200014,328,'D','Wizard','f1ffc07b-f822-4659-bdd7-e8dde31acac5','W',TO_TIMESTAMP('2012-08-17 16:07:32','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2012-08-17 16:07:32','YYYY-MM-DD HH24:MI:SS'),100,'Y',0,0)
;
-- Aug 17, 2012 4:07:33 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Ref_List_Trl_UU ) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=200014 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID)
;
-- Aug 17, 2012 5:04:14 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Client_ID,AD_Org_ID,Created) VALUES ('I','Properties',200013,'D','d9f0db1a-5655-466c-8961-c1424b0ff275','Properties','Y',TO_TIMESTAMP('2012-08-17 17:04:13','YYYY-MM-DD HH24:MI:SS'),100,100,0,0,TO_TIMESTAMP('2012-08-17 17:04:13','YYYY-MM-DD HH24:MI:SS'))
;
-- Aug 17, 2012 5:04:14 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200013 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
;
-- Aug 20, 2012 3:51:46 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Message (MsgType,MsgText,AD_Message_ID,EntityType,AD_Message_UU,Value,IsActive,Updated,CreatedBy,UpdatedBy,AD_Client_ID,AD_Org_ID,Created) VALUES ('I','{0} tasks completed from {1} ({2}% advance)',200014,'D','60c03fae-3b77-4307-8454-64690aacc517','SetupWizardProgress','Y',TO_TIMESTAMP('2012-08-20 15:51:45','YYYY-MM-DD HH24:MI:SS'),100,100,0,0,TO_TIMESTAMP('2012-08-20 15:51:45','YYYY-MM-DD HH24:MI:SS'))
;
-- Aug 20, 2012 3:51:46 PM COT
-- IDEMPIERE-393 Setup wizards
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Message_Trl_UU ) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=200014 AND NOT EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Message_ID=t.AD_Message_ID)
;
UPDATE AD_System
SET LastMigrationScriptApplied='878_IDEMPIERE-393.sql'
WHERE LastMigrationScriptApplied<'878_IDEMPIERE-393.sql'
OR LastMigrationScriptApplied IS NULL
;
-- NOTE: For testing purposes:
-- UPDATE AD_Workflow SET WorkflowType='W', Priority=1 WHERE AD_Workflow_ID=104; -- Initial Client Setup Review
-- UPDATE AD_Workflow SET WorkflowType='W', Priority=2 WHERE AD_Workflow_ID=106; -- Business Partner Setup
-- UPDATE AD_Workflow SET WorkflowType='W', Priority=3 WHERE AD_Workflow_ID=107; -- Product Setup
-- UPDATE AD_Workflow SET WorkflowType='W', Priority=4 WHERE AD_Workflow_ID=111; -- Sales Setup
-- UPDATE AD_Workflow SET WorkflowType='W', Priority=5 WHERE AD_Workflow_ID=108; -- Price List Setup
-- UPDATE AD_Workflow SET WorkflowType='W', Priority=6 WHERE AD_Workflow_ID=110; -- Tax Setup

View File

@ -0,0 +1,62 @@
/******************************************************************************
* Copyright (C) 2012 Carlos Ruiz *
* Copyright (C) 2012 Trek Global *
* Product: iDempiere ERP & CRM Smart Business Solution *
* 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.adempiere.model;
import java.sql.ResultSet;
import java.util.Properties;
import org.compiere.model.Query;
import org.compiere.model.X_AD_WizardProcess;
public class MWizardProcess extends X_AD_WizardProcess {
/**
*
*/
private static final long serialVersionUID = -7713151820360928310L;
public MWizardProcess(Properties ctx, int AD_WizardProcess_ID, String trxName) {
super(ctx, AD_WizardProcess_ID, trxName);
if (AD_WizardProcess_ID == 0)
{
setIsActive(true);
}
}
public MWizardProcess(Properties ctx, ResultSet rs, String trxName) {
super(ctx, rs, trxName);
}
/**
* Get the wizard notes for a node in the context client
*
* @param ctx
* @param AD_WF_Node_ID
* @param AD_Client_ID
* @param trxName
*/
public static MWizardProcess get(Properties ctx, int AD_WF_Node_ID, int AD_Client_ID) {
Query query = new Query(ctx, Table_Name, "AD_WF_Node_ID=? AND AD_Client_ID=?", null);
MWizardProcess wp = query.setParameters(new Object[]{AD_WF_Node_ID, AD_Client_ID}).first();
if (wp == null) {
wp = new MWizardProcess(ctx, 0, null);
wp.setAD_WF_Node_ID(AD_WF_Node_ID);
wp.setAD_Client_ID(AD_Client_ID);
}
return wp;
}
} // MWizardProcess

View File

@ -31,7 +31,7 @@ public interface I_AD_WF_Node
public static final String Table_Name = "AD_WF_Node";
/** AD_Table_ID=129 */
public static final int Table_ID = MTable.getTable_ID(Table_Name);
public static final int Table_ID = 129;
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
@ -75,7 +75,7 @@ public interface I_AD_WF_Node
*/
public int getAD_Column_ID();
public I_AD_Column getAD_Column() throws RuntimeException;
public org.compiere.model.I_AD_Column getAD_Column() throws RuntimeException;
/** Column name AD_Form_ID */
public static final String COLUMNNAME_AD_Form_ID = "AD_Form_ID";
@ -90,7 +90,7 @@ public interface I_AD_WF_Node
*/
public int getAD_Form_ID();
public I_AD_Form getAD_Form() throws RuntimeException;
public org.compiere.model.I_AD_Form getAD_Form() throws RuntimeException;
/** Column name AD_Image_ID */
public static final String COLUMNNAME_AD_Image_ID = "AD_Image_ID";
@ -105,7 +105,7 @@ public interface I_AD_WF_Node
*/
public int getAD_Image_ID();
public I_AD_Image getAD_Image() throws RuntimeException;
public org.compiere.model.I_AD_Image getAD_Image() throws RuntimeException;
/** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
@ -133,7 +133,7 @@ public interface I_AD_WF_Node
*/
public int getAD_Process_ID();
public I_AD_Process getAD_Process() throws RuntimeException;
public org.compiere.model.I_AD_Process getAD_Process() throws RuntimeException;
/** Column name AD_Task_ID */
public static final String COLUMNNAME_AD_Task_ID = "AD_Task_ID";
@ -148,7 +148,7 @@ public interface I_AD_WF_Node
*/
public int getAD_Task_ID();
public I_AD_Task getAD_Task() throws RuntimeException;
public org.compiere.model.I_AD_Task getAD_Task() throws RuntimeException;
/** Column name AD_WF_Block_ID */
public static final String COLUMNNAME_AD_WF_Block_ID = "AD_WF_Block_ID";
@ -163,7 +163,7 @@ public interface I_AD_WF_Node
*/
public int getAD_WF_Block_ID();
public I_AD_WF_Block getAD_WF_Block() throws RuntimeException;
public org.compiere.model.I_AD_WF_Block getAD_WF_Block() throws RuntimeException;
/** Column name AD_WF_Node_ID */
public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID";
@ -178,6 +178,15 @@ public interface I_AD_WF_Node
*/
public int getAD_WF_Node_ID();
/** Column name AD_WF_Node_UU */
public static final String COLUMNNAME_AD_WF_Node_UU = "AD_WF_Node_UU";
/** Set AD_WF_Node_UU */
public void setAD_WF_Node_UU (String AD_WF_Node_UU);
/** Get AD_WF_Node_UU */
public String getAD_WF_Node_UU();
/** Column name AD_WF_Responsible_ID */
public static final String COLUMNNAME_AD_WF_Responsible_ID = "AD_WF_Responsible_ID";
@ -191,7 +200,7 @@ public interface I_AD_WF_Node
*/
public int getAD_WF_Responsible_ID();
public I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException;
public org.compiere.model.I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException;
/** Column name AD_Window_ID */
public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID";
@ -206,7 +215,7 @@ public interface I_AD_WF_Node
*/
public int getAD_Window_ID();
public I_AD_Window getAD_Window() throws RuntimeException;
public org.compiere.model.I_AD_Window getAD_Window() throws RuntimeException;
/** Column name AD_Workflow_ID */
public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID";
@ -221,7 +230,7 @@ public interface I_AD_WF_Node
*/
public int getAD_Workflow_ID();
public I_AD_Workflow getAD_Workflow() throws RuntimeException;
public org.compiere.model.I_AD_Workflow getAD_Workflow() throws RuntimeException;
/** Column name AttributeName */
public static final String COLUMNNAME_AttributeName = "AttributeName";
@ -262,7 +271,7 @@ public interface I_AD_WF_Node
*/
public int getC_BPartner_ID();
public I_C_BPartner getC_BPartner() throws RuntimeException;
public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException;
/** Column name Cost */
public static final String COLUMNNAME_Cost = "Cost";
@ -569,7 +578,7 @@ public interface I_AD_WF_Node
*/
public int getR_MailText_ID();
public I_R_MailText getR_MailText() throws RuntimeException;
public org.compiere.model.I_R_MailText getR_MailText() throws RuntimeException;
/** Column name SetupTime */
public static final String COLUMNNAME_SetupTime = "SetupTime";
@ -610,7 +619,7 @@ public interface I_AD_WF_Node
*/
public int getS_Resource_ID();
public I_S_Resource getS_Resource() throws RuntimeException;
public org.compiere.model.I_S_Resource getS_Resource() throws RuntimeException;
/** Column name StartMode */
public static final String COLUMNNAME_StartMode = "StartMode";
@ -745,7 +754,7 @@ public interface I_AD_WF_Node
*/
public int getWorkflow_ID();
public I_AD_Workflow getWorkflow() throws RuntimeException;
public org.compiere.model.I_AD_Workflow getWorkflow() throws RuntimeException;
/** Column name WorkingTime */
public static final String COLUMNNAME_WorkingTime = "WorkingTime";

View File

@ -0,0 +1,164 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
package org.compiere.model;
import java.math.BigDecimal;
import java.sql.Timestamp;
import org.compiere.util.KeyNamePair;
/** Generated Interface for AD_WizardProcess
* @author Adempiere (generated)
* @version Release 3.6.0LTS
*/
public interface I_AD_WizardProcess
{
/** TableName=AD_WizardProcess */
public static final String Table_Name = "AD_WizardProcess";
/** AD_Table_ID=200012 */
public static final int Table_ID = 200012;
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
/** AccessLevel = 2 - Client
*/
BigDecimal accessLevel = BigDecimal.valueOf(2);
/** 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_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_WF_Node_ID */
public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID";
/** Set Node.
* Workflow Node (activity), step or process
*/
public void setAD_WF_Node_ID (int AD_WF_Node_ID);
/** Get Node.
* Workflow Node (activity), step or process
*/
public int getAD_WF_Node_ID();
public org.compiere.model.I_AD_WF_Node getAD_WF_Node() throws RuntimeException;
/** Column name AD_WizardProcess_ID */
public static final String COLUMNNAME_AD_WizardProcess_ID = "AD_WizardProcess_ID";
/** Set Wizard Process */
public void setAD_WizardProcess_ID (int AD_WizardProcess_ID);
/** Get Wizard Process */
public int getAD_WizardProcess_ID();
/** Column name AD_WizardProcess_UU */
public static final String COLUMNNAME_AD_WizardProcess_UU = "AD_WizardProcess_UU";
/** Set AD_WizardProcess_UU */
public void setAD_WizardProcess_UU (String AD_WizardProcess_UU);
/** Get AD_WizardProcess_UU */
public String getAD_WizardProcess_UU();
/** 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 Note */
public static final String COLUMNNAME_Note = "Note";
/** Set Note.
* Optional additional user defined information
*/
public void setNote (String Note);
/** Get Note.
* Optional additional user defined information
*/
public String getNote();
/** 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();
/** Column name WizardStatus */
public static final String COLUMNNAME_WizardStatus = "WizardStatus";
/** Set Wizard Status */
public void setWizardStatus (String WizardStatus);
/** Get Wizard Status */
public String getWizardStatus();
}

View File

@ -31,7 +31,7 @@ public interface I_AD_Workflow
public static final String Table_Name = "AD_Workflow";
/** AD_Table_ID=117 */
public static final int Table_ID = MTable.getTable_ID(Table_Name);
public static final int Table_ID = 117;
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
@ -88,7 +88,7 @@ public interface I_AD_Workflow
*/
public int getAD_Table_ID();
public I_AD_Table getAD_Table() throws RuntimeException;
public org.compiere.model.I_AD_Table getAD_Table() throws RuntimeException;
/** Column name AD_WF_Node_ID */
public static final String COLUMNNAME_AD_WF_Node_ID = "AD_WF_Node_ID";
@ -103,7 +103,7 @@ public interface I_AD_Workflow
*/
public int getAD_WF_Node_ID();
public I_AD_WF_Node getAD_WF_Node() throws RuntimeException;
public org.compiere.model.I_AD_WF_Node getAD_WF_Node() throws RuntimeException;
/** Column name AD_WF_Responsible_ID */
public static final String COLUMNNAME_AD_WF_Responsible_ID = "AD_WF_Responsible_ID";
@ -118,7 +118,7 @@ public interface I_AD_Workflow
*/
public int getAD_WF_Responsible_ID();
public I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException;
public org.compiere.model.I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException;
/** Column name AD_Workflow_ID */
public static final String COLUMNNAME_AD_Workflow_ID = "AD_Workflow_ID";
@ -146,7 +146,16 @@ public interface I_AD_Workflow
*/
public int getAD_WorkflowProcessor_ID();
public I_AD_WorkflowProcessor getAD_WorkflowProcessor() throws RuntimeException;
public org.compiere.model.I_AD_WorkflowProcessor getAD_WorkflowProcessor() throws RuntimeException;
/** Column name AD_Workflow_UU */
public static final String COLUMNNAME_AD_Workflow_UU = "AD_Workflow_UU";
/** Set AD_Workflow_UU */
public void setAD_Workflow_UU (String AD_Workflow_UU);
/** Get AD_Workflow_UU */
public String getAD_Workflow_UU();
/** Column name Author */
public static final String COLUMNNAME_Author = "Author";
@ -466,7 +475,7 @@ public interface I_AD_Workflow
*/
public int getS_Resource_ID();
public I_S_Resource getS_Resource() throws RuntimeException;
public org.compiere.model.I_S_Resource getS_Resource() throws RuntimeException;
/** Column name UnitsCycles */
public static final String COLUMNNAME_UnitsCycles = "UnitsCycles";

View File

@ -37,6 +37,7 @@ public class SystemIDs
public final static int COLUMN_M_PRODUCT_M_ATTRIBUTESETINSTANCE_ID = 8418;
public final static int COLUMN_S_RESOURCE_S_RESOURCETYPE_ID = 6851;
public final static int COLUMN_S_RESOURCEASSIGNMENT_S_RESOURCE_ID = 6826;
public final static int COLUMN_WIZARDSTATUS = 200310;
public final static int COUNTRY_US = 100;
public final static int COUNTRY_JAPAN = 216;
@ -113,6 +114,7 @@ public class SystemIDs
public final static int REFERENCE_PAYMENTRULE = 195;
public final static int REFERENCE_POSTING_TYPE = 125;
public final static int REFERENCE_YESNO = 319;
public final static int REFERENCE_WIZARDSTATUS = 200003;
public final static int TABLE_AD_TABLE = 100;
public final static int TABLE_AD_WF_PROCESS = 645;

View File

@ -33,7 +33,7 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
/**
*
*/
private static final long serialVersionUID = 20100614L;
private static final long serialVersionUID = 20120817L;
/** Standard Constructor */
public X_AD_WF_Node (Properties ctx, int AD_WF_Node_ID, String trxName)
@ -136,9 +136,9 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return (String)get_Value(COLUMNNAME_Action);
}
public I_AD_Column getAD_Column() throws RuntimeException
public org.compiere.model.I_AD_Column getAD_Column() throws RuntimeException
{
return (I_AD_Column)MTable.get(getCtx(), I_AD_Column.Table_Name)
return (org.compiere.model.I_AD_Column)MTable.get(getCtx(), org.compiere.model.I_AD_Column.Table_Name)
.getPO(getAD_Column_ID(), get_TrxName()); }
/** Set Column.
@ -164,9 +164,9 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return ii.intValue();
}
public I_AD_Form getAD_Form() throws RuntimeException
public org.compiere.model.I_AD_Form getAD_Form() throws RuntimeException
{
return (I_AD_Form)MTable.get(getCtx(), I_AD_Form.Table_Name)
return (org.compiere.model.I_AD_Form)MTable.get(getCtx(), org.compiere.model.I_AD_Form.Table_Name)
.getPO(getAD_Form_ID(), get_TrxName()); }
/** Set Special Form.
@ -192,9 +192,9 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return ii.intValue();
}
public I_AD_Image getAD_Image() throws RuntimeException
public org.compiere.model.I_AD_Image getAD_Image() throws RuntimeException
{
return (I_AD_Image)MTable.get(getCtx(), I_AD_Image.Table_Name)
return (org.compiere.model.I_AD_Image)MTable.get(getCtx(), org.compiere.model.I_AD_Image.Table_Name)
.getPO(getAD_Image_ID(), get_TrxName()); }
/** Set Image.
@ -220,9 +220,9 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return ii.intValue();
}
public I_AD_Process getAD_Process() throws RuntimeException
public org.compiere.model.I_AD_Process getAD_Process() throws RuntimeException
{
return (I_AD_Process)MTable.get(getCtx(), I_AD_Process.Table_Name)
return (org.compiere.model.I_AD_Process)MTable.get(getCtx(), org.compiere.model.I_AD_Process.Table_Name)
.getPO(getAD_Process_ID(), get_TrxName()); }
/** Set Process.
@ -248,9 +248,9 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return ii.intValue();
}
public I_AD_Task getAD_Task() throws RuntimeException
public org.compiere.model.I_AD_Task getAD_Task() throws RuntimeException
{
return (I_AD_Task)MTable.get(getCtx(), I_AD_Task.Table_Name)
return (org.compiere.model.I_AD_Task)MTable.get(getCtx(), org.compiere.model.I_AD_Task.Table_Name)
.getPO(getAD_Task_ID(), get_TrxName()); }
/** Set OS Task.
@ -276,9 +276,9 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return ii.intValue();
}
public I_AD_WF_Block getAD_WF_Block() throws RuntimeException
public org.compiere.model.I_AD_WF_Block getAD_WF_Block() throws RuntimeException
{
return (I_AD_WF_Block)MTable.get(getCtx(), I_AD_WF_Block.Table_Name)
return (org.compiere.model.I_AD_WF_Block)MTable.get(getCtx(), org.compiere.model.I_AD_WF_Block.Table_Name)
.getPO(getAD_WF_Block_ID(), get_TrxName()); }
/** Set Workflow Block.
@ -327,9 +327,23 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return ii.intValue();
}
public I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException
/** Set AD_WF_Node_UU.
@param AD_WF_Node_UU AD_WF_Node_UU */
public void setAD_WF_Node_UU (String AD_WF_Node_UU)
{
set_Value (COLUMNNAME_AD_WF_Node_UU, AD_WF_Node_UU);
}
/** Get AD_WF_Node_UU.
@return AD_WF_Node_UU */
public String getAD_WF_Node_UU ()
{
return (String)get_Value(COLUMNNAME_AD_WF_Node_UU);
}
public org.compiere.model.I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException
{
return (I_AD_WF_Responsible)MTable.get(getCtx(), I_AD_WF_Responsible.Table_Name)
return (org.compiere.model.I_AD_WF_Responsible)MTable.get(getCtx(), org.compiere.model.I_AD_WF_Responsible.Table_Name)
.getPO(getAD_WF_Responsible_ID(), get_TrxName()); }
/** Set Workflow Responsible.
@ -355,9 +369,9 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return ii.intValue();
}
public I_AD_Window getAD_Window() throws RuntimeException
public org.compiere.model.I_AD_Window getAD_Window() throws RuntimeException
{
return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name)
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.
@ -383,9 +397,9 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return ii.intValue();
}
public I_AD_Workflow getAD_Workflow() throws RuntimeException
public org.compiere.model.I_AD_Workflow getAD_Workflow() throws RuntimeException
{
return (I_AD_Workflow)MTable.get(getCtx(), I_AD_Workflow.Table_Name)
return (org.compiere.model.I_AD_Workflow)MTable.get(getCtx(), org.compiere.model.I_AD_Workflow.Table_Name)
.getPO(getAD_Workflow_ID(), get_TrxName()); }
/** Set Workflow.
@ -445,9 +459,9 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return (String)get_Value(COLUMNNAME_AttributeValue);
}
public I_C_BPartner getC_BPartner() throws RuntimeException
public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException
{
return (I_C_BPartner)MTable.get(getCtx(), I_C_BPartner.Table_Name)
return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_Name)
.getPO(getC_BPartner_ID(), get_TrxName()); }
/** Set Business Partner .
@ -940,9 +954,9 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return ii.intValue();
}
public I_R_MailText getR_MailText() throws RuntimeException
public org.compiere.model.I_R_MailText getR_MailText() throws RuntimeException
{
return (I_R_MailText)MTable.get(getCtx(), I_R_MailText.Table_Name)
return (org.compiere.model.I_R_MailText)MTable.get(getCtx(), org.compiere.model.I_R_MailText.Table_Name)
.getPO(getR_MailText_ID(), get_TrxName()); }
/** Set Mail Template.
@ -1012,9 +1026,9 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return (String)get_Value(COLUMNNAME_SplitElement);
}
public I_S_Resource getS_Resource() throws RuntimeException
public org.compiere.model.I_S_Resource getS_Resource() throws RuntimeException
{
return (I_S_Resource)MTable.get(getCtx(), I_S_Resource.Table_Name)
return (org.compiere.model.I_S_Resource)MTable.get(getCtx(), org.compiere.model.I_S_Resource.Table_Name)
.getPO(getS_Resource_ID(), get_TrxName()); }
/** Set Resource.
@ -1199,9 +1213,9 @@ public class X_AD_WF_Node extends PO implements I_AD_WF_Node, I_Persistent
return ii.intValue();
}
public I_AD_Workflow getWorkflow() throws RuntimeException
public org.compiere.model.I_AD_Workflow getWorkflow() throws RuntimeException
{
return (I_AD_Workflow)MTable.get(getCtx(), I_AD_Workflow.Table_Name)
return (org.compiere.model.I_AD_Workflow)MTable.get(getCtx(), org.compiere.model.I_AD_Workflow.Table_Name)
.getPO(getWorkflow_ID(), get_TrxName()); }
/** Set Workflow.

View File

@ -0,0 +1,180 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
* This program is free software, you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
* or via info@compiere.org or http://www.compiere.org/license.html *
*****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.sql.ResultSet;
import java.util.Properties;
/** Generated Model for AD_WizardProcess
* @author Adempiere (generated)
* @version Release 3.6.0LTS - $Id$ */
public class X_AD_WizardProcess extends PO implements I_AD_WizardProcess, I_Persistent
{
/**
*
*/
private static final long serialVersionUID = 20120816L;
/** Standard Constructor */
public X_AD_WizardProcess (Properties ctx, int AD_WizardProcess_ID, String trxName)
{
super (ctx, AD_WizardProcess_ID, trxName);
/** if (AD_WizardProcess_ID == 0)
{
setAD_WF_Node_ID (0);
setAD_WizardProcess_ID (0);
} */
}
/** Load Constructor */
public X_AD_WizardProcess (Properties ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** AccessLevel
* @return 2 - Client
*/
protected int get_AccessLevel()
{
return accessLevel.intValue();
}
/** Load Meta Data */
protected POInfo initPO (Properties ctx)
{
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
return poi;
}
public String toString()
{
StringBuffer sb = new StringBuffer ("X_AD_WizardProcess[")
.append(get_ID()).append("]");
return sb.toString();
}
public org.compiere.model.I_AD_WF_Node getAD_WF_Node() throws RuntimeException
{
return (org.compiere.model.I_AD_WF_Node)MTable.get(getCtx(), org.compiere.model.I_AD_WF_Node.Table_Name)
.getPO(getAD_WF_Node_ID(), get_TrxName()); }
/** Set Node.
@param AD_WF_Node_ID
Workflow Node (activity), step or process
*/
public void setAD_WF_Node_ID (int AD_WF_Node_ID)
{
if (AD_WF_Node_ID < 1)
set_ValueNoCheck (COLUMNNAME_AD_WF_Node_ID, null);
else
set_ValueNoCheck (COLUMNNAME_AD_WF_Node_ID, Integer.valueOf(AD_WF_Node_ID));
}
/** Get Node.
@return Workflow Node (activity), step or process
*/
public int getAD_WF_Node_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_WF_Node_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Wizard Process.
@param AD_WizardProcess_ID Wizard Process */
public void setAD_WizardProcess_ID (int AD_WizardProcess_ID)
{
if (AD_WizardProcess_ID < 1)
set_ValueNoCheck (COLUMNNAME_AD_WizardProcess_ID, null);
else
set_ValueNoCheck (COLUMNNAME_AD_WizardProcess_ID, Integer.valueOf(AD_WizardProcess_ID));
}
/** Get Wizard Process.
@return Wizard Process */
public int getAD_WizardProcess_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_WizardProcess_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set AD_WizardProcess_UU.
@param AD_WizardProcess_UU AD_WizardProcess_UU */
public void setAD_WizardProcess_UU (String AD_WizardProcess_UU)
{
set_Value (COLUMNNAME_AD_WizardProcess_UU, AD_WizardProcess_UU);
}
/** Get AD_WizardProcess_UU.
@return AD_WizardProcess_UU */
public String getAD_WizardProcess_UU ()
{
return (String)get_Value(COLUMNNAME_AD_WizardProcess_UU);
}
/** Set Note.
@param Note
Optional additional user defined information
*/
public void setNote (String Note)
{
set_Value (COLUMNNAME_Note, Note);
}
/** Get Note.
@return Optional additional user defined information
*/
public String getNote ()
{
return (String)get_Value(COLUMNNAME_Note);
}
/** WizardStatus AD_Reference_ID=200003 */
public static final int WIZARDSTATUS_AD_Reference_ID=200003;
/** New = N */
public static final String WIZARDSTATUS_New = "N";
/** Pending = P */
public static final String WIZARDSTATUS_Pending = "P";
/** Finished = F */
public static final String WIZARDSTATUS_Finished = "F";
/** In-Progress = I */
public static final String WIZARDSTATUS_In_Progress = "I";
/** Skipped = S */
public static final String WIZARDSTATUS_Skipped = "S";
/** Delayed = D */
public static final String WIZARDSTATUS_Delayed = "D";
/** Set Wizard Status.
@param WizardStatus Wizard Status */
public void setWizardStatus (String WizardStatus)
{
set_Value (COLUMNNAME_WizardStatus, WizardStatus);
}
/** Get Wizard Status.
@return Wizard Status */
public String getWizardStatus ()
{
return (String)get_Value(COLUMNNAME_WizardStatus);
}
}

View File

@ -33,7 +33,7 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
/**
*
*/
private static final long serialVersionUID = 20100614L;
private static final long serialVersionUID = 20120817L;
/** Standard Constructor */
public X_AD_Workflow (Properties ctx, int AD_Workflow_ID, String trxName)
@ -124,9 +124,9 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return (String)get_Value(COLUMNNAME_AccessLevel);
}
public I_AD_Table getAD_Table() throws RuntimeException
public org.compiere.model.I_AD_Table getAD_Table() throws RuntimeException
{
return (I_AD_Table)MTable.get(getCtx(), I_AD_Table.Table_Name)
return (org.compiere.model.I_AD_Table)MTable.get(getCtx(), org.compiere.model.I_AD_Table.Table_Name)
.getPO(getAD_Table_ID(), get_TrxName()); }
/** Set Table.
@ -152,9 +152,9 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return ii.intValue();
}
public I_AD_WF_Node getAD_WF_Node() throws RuntimeException
public org.compiere.model.I_AD_WF_Node getAD_WF_Node() throws RuntimeException
{
return (I_AD_WF_Node)MTable.get(getCtx(), I_AD_WF_Node.Table_Name)
return (org.compiere.model.I_AD_WF_Node)MTable.get(getCtx(), org.compiere.model.I_AD_WF_Node.Table_Name)
.getPO(getAD_WF_Node_ID(), get_TrxName()); }
/** Set Node.
@ -180,9 +180,9 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return ii.intValue();
}
public I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException
public org.compiere.model.I_AD_WF_Responsible getAD_WF_Responsible() throws RuntimeException
{
return (I_AD_WF_Responsible)MTable.get(getCtx(), I_AD_WF_Responsible.Table_Name)
return (org.compiere.model.I_AD_WF_Responsible)MTable.get(getCtx(), org.compiere.model.I_AD_WF_Responsible.Table_Name)
.getPO(getAD_WF_Responsible_ID(), get_TrxName()); }
/** Set Workflow Responsible.
@ -231,9 +231,9 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return ii.intValue();
}
public I_AD_WorkflowProcessor getAD_WorkflowProcessor() throws RuntimeException
public org.compiere.model.I_AD_WorkflowProcessor getAD_WorkflowProcessor() throws RuntimeException
{
return (I_AD_WorkflowProcessor)MTable.get(getCtx(), I_AD_WorkflowProcessor.Table_Name)
return (org.compiere.model.I_AD_WorkflowProcessor)MTable.get(getCtx(), org.compiere.model.I_AD_WorkflowProcessor.Table_Name)
.getPO(getAD_WorkflowProcessor_ID(), get_TrxName()); }
/** Set Workflow Processor.
@ -259,6 +259,20 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return ii.intValue();
}
/** Set AD_Workflow_UU.
@param AD_Workflow_UU AD_Workflow_UU */
public void setAD_Workflow_UU (String AD_Workflow_UU)
{
set_Value (COLUMNNAME_AD_Workflow_UU, AD_Workflow_UU);
}
/** Get AD_Workflow_UU.
@return AD_Workflow_UU */
public String getAD_Workflow_UU ()
{
return (String)get_Value(COLUMNNAME_AD_Workflow_UU);
}
/** Set Author.
@param Author
Author/Creator of the Entity
@ -724,9 +738,9 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
return ii.intValue();
}
public I_S_Resource getS_Resource() throws RuntimeException
public org.compiere.model.I_S_Resource getS_Resource() throws RuntimeException
{
return (I_S_Resource)MTable.get(getCtx(), I_S_Resource.Table_Name)
return (org.compiere.model.I_S_Resource)MTable.get(getCtx(), org.compiere.model.I_S_Resource.Table_Name)
.getPO(getS_Resource_ID(), get_TrxName()); }
/** Set Resource.
@ -889,6 +903,8 @@ public class X_AD_Workflow extends PO implements I_AD_Workflow, I_Persistent
public static final String WORKFLOWTYPE_Manufacturing = "M";
/** Quality = Q */
public static final String WORKFLOWTYPE_Quality = "Q";
/** Wizard = W */
public static final String WORKFLOWTYPE_Wizard = "W";
/** Set Workflow Type.
@param WorkflowType
Type of Workflow

View File

@ -497,7 +497,7 @@ public class MWFNode extends X_AD_WF_Node
/**
* Get Workflow
* @return workflow
* @deprecated please use {@link #getAD_Window()}
* @deprecated please use {@link #getAD_Workflow()}
*/
public MWorkflow getWorkflow()
{

View File

@ -287,6 +287,12 @@ public class MWorkflow extends X_AD_Workflow
return retValue;
} // getNodes
public void reloadNodes() {
m_nodes = null;
loadNodes();
}
/**
* Get the first node
* @return array of next nodes
@ -965,4 +971,5 @@ public class MWorkflow extends X_AD_Workflow
return false;
return true;
}
} // MWorkflow_ID

View File

@ -0,0 +1,454 @@
/******************************************************************************
* Copyright (C) 2012 Carlos Ruiz *
* Copyright (C) 2012 Trek Global *
* Product: iDempiere ERP & CRM Smart Business Solution *
* 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.adempiere.webui.apps.form;
import static org.compiere.model.SystemIDs.COLUMN_WIZARDSTATUS;
import static org.compiere.model.SystemIDs.REFERENCE_WIZARDSTATUS;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import org.adempiere.model.MWizardProcess;
import org.adempiere.webui.LayoutUtils;
import org.adempiere.webui.component.Button;
import org.adempiere.webui.component.Grid;
import org.adempiere.webui.component.Label;
import org.adempiere.webui.component.Panel;
import org.adempiere.webui.component.Row;
import org.adempiere.webui.component.Rows;
import org.adempiere.webui.component.Textbox;
import org.adempiere.webui.editor.WTableDirEditor;
import org.adempiere.webui.event.ValueChangeEvent;
import org.adempiere.webui.event.ValueChangeListener;
import org.adempiere.webui.panel.ADForm;
import org.adempiere.webui.panel.CustomForm;
import org.adempiere.webui.panel.IFormController;
import org.adempiere.webui.session.SessionManager;
import org.compiere.apps.form.SetupWizard;
import org.compiere.model.MLookup;
import org.compiere.model.MLookupFactory;
import org.compiere.util.DisplayType;
import org.compiere.util.Env;
import org.compiere.util.Msg;
import org.compiere.wf.MWFNode;
import org.compiere.wf.MWorkflow;
import org.zkoss.util.media.AMedia;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.Events;
import org.zkoss.zul.Borderlayout;
import org.zkoss.zul.Div;
import org.zkoss.zul.East;
import org.zkoss.zul.Iframe;
import org.zkoss.zul.North;
import org.zkoss.zul.Progressmeter;
import org.zkoss.zul.Space;
import org.zkoss.zul.Tree;
import org.zkoss.zul.Treecell;
import org.zkoss.zul.Treechildren;
import org.zkoss.zul.Treeitem;
import org.zkoss.zul.Treerow;
import org.zkoss.zul.West;
/**
* View for Setup Wizard
*
* @author Carlos Ruiz
*
*/
@SuppressWarnings({"unchecked", "rawtypes"})
public class WSetupWizard extends SetupWizard implements IFormController, EventListener, ValueChangeListener
{
private CustomForm form = new CustomForm();
private Borderlayout mainLayout = new Borderlayout();
private Panel northPanel = new Panel();
private Progressmeter progressbar = new Progressmeter();
private Label progressLabel = new Label();
//
private Tree wfnodeTree;
private Label titleLabel = new Label();
private Iframe helpFrame = new Iframe();
private Label notesLabel = new Label(Msg.getElement(Env.getCtx(), MWizardProcess.COLUMNNAME_Note));
private Textbox notesField = new Textbox();
private Label statusLabel = new Label();
private WTableDirEditor statusField;
private Button bRefresh = new Button();
private Button bOK = new Button();
private Button bNext = new Button();
private ArrayList<Treeitem> nextItems = new ArrayList<Treeitem>();
private static final String WIZARD_LABEL_STYLE = "font-weight: bold";
private static final String NODE_LABEL_STYLE = "margin-left:20px";
public WSetupWizard()
{
try
{
preInit();
jbInit ();
LayoutUtils.sendDeferLayoutEvent(mainLayout, 100);
}
catch (Exception ex)
{
log.log(Level.SEVERE, "VTreeMaintenance.init", ex);
}
} // init
/**
* Fill Tree Combo
*/
private void preInit()
{
wfnodeTree = new Tree();
wfnodeTree.addEventListener(Events.ON_SELECT, this);
loadWizardNodes();
} // preInit
/**
* Load Wizard Nodes
*/
private void loadWizardNodes() {
Treechildren treeChildren = wfnodeTree.getTreechildren();
if (treeChildren == null)
{
treeChildren = new Treechildren();
wfnodeTree.appendChild(treeChildren);
wfnodeTree.setMultiple(false);
}
List<MWorkflow> wfwizards = getWfWizards();
for(MWorkflow wfwizard : wfwizards)
{
addWfEntry(wfwizard);
}
}
protected void addWfEntry(MWorkflow wfwizard) {
/* TODO: Color of workflow according to wizard status */
Treechildren treeChildren = wfnodeTree.getTreechildren();
Treeitem treeitemwf = new Treeitem();
treeChildren.appendChild(treeitemwf);
Label wizardLabel = new Label(wfwizard.getName(true));
wizardLabel.setStyle(WIZARD_LABEL_STYLE);
Div div = new Div();
div.setStyle("display:inline;");
div.appendChild(wizardLabel);
Treerow treerow = new Treerow();
treerow.setStyle("vertical-align:top;");
treeitemwf.appendChild(treerow);
treeitemwf.setOpen(false);
Treecell treecell = new Treecell();
treerow.appendChild(treecell);
treecell.appendChild(div);
nextItems.add(treeitemwf);
addNodes(wfwizard, treeitemwf);
treeitemwf.setAttribute("AD_Workflow_ID", wfwizard.getAD_Workflow_ID());
}
private void addNodes(MWorkflow wfwizard, Treeitem treeitemwf) {
MWFNode[] nodes = wfwizard.getNodes(true, Env.getAD_Client_ID(Env.getCtx()));
for (MWFNode node : nodes) {
addWfNode(node, treeitemwf);
}
}
private void addWfNode(MWFNode node, Treeitem treeitemwf) {
/* TODO: Color of node according to wizard status */
Label nodeLabel = new Label(node.getName(true));
nodeLabel.setStyle(NODE_LABEL_STYLE);
Div div = new Div();
div.setStyle("display:inline;");
div.appendChild(nodeLabel);
Treechildren treeChildren = treeitemwf.getTreechildren();
if (treeChildren == null)
{
treeChildren = new Treechildren();
treeitemwf.appendChild(treeChildren);
}
Treeitem childItem = new Treeitem();
treeChildren.appendChild(childItem);
Treerow treerow = new Treerow();
treerow.setStyle("vertical-align:top;");
childItem.appendChild(treerow);
Treecell treecell = new Treecell();
treerow.appendChild(treecell);
treecell.appendChild(div);
childItem.setAttribute("AD_WF_Node_ID", node.getAD_WF_Node_ID());
nextItems.add(childItem);
}
/**
* Static init
* @throws Exception
*/
private void jbInit () throws Exception
{
form.setWidth("99%");
form.setHeight("100%");
form.setStyle("position: absolute; padding: 0; margin: 0");
form.appendChild (mainLayout);
mainLayout.setWidth("100%");
mainLayout.setHeight("100%");
mainLayout.setStyle("position: absolute");
bRefresh.setImage("/images/Refresh24.png");
bRefresh.setTooltiptext(Msg.getMsg(Env.getCtx(), "Refresh"));
bRefresh.addEventListener(Events.ON_CLICK, this);
bOK.setImage("/images/Ok24.png");
bOK.setTooltiptext(Msg.getMsg(Env.getCtx(), "Update"));
bOK.addEventListener(Events.ON_CLICK, this);
bNext.setImage("/images/Detail24.png");
bNext.setTooltiptext(Msg.getMsg(Env.getCtx(), "Next"));
bNext.addEventListener(Events.ON_CLICK, this);
North north = new North();
mainLayout.appendChild(north);
north.appendChild(northPanel);
north.setHeight("38px");
//
northPanel.appendChild(progressbar);
progressbar.setWidth("100%");
northPanel.appendChild(progressLabel);
progressLabel.setWidth("100%");
progressLabel.setStyle("margin:0; padding:0; position: absolute; align: center; valign: center; border:0; text-align: center; ");
refreshProgress();
statusLabel.setText(Msg.getElement(Env.getCtx(), "WizardStatus"));
MLookup wizardL = MLookupFactory.get(Env.getCtx(), form.getWindowNo(), COLUMN_WIZARDSTATUS,
DisplayType.List, Env.getLanguage(Env.getCtx()), "WizardStatus", REFERENCE_WIZARDSTATUS,
false, "AD_Ref_List.Value IN ('D','S','I','F','P')");
statusField = new WTableDirEditor("WizardStatus", true, false, true,wizardL);
statusField.setValue(MWizardProcess.WIZARDSTATUS_Pending);
statusField.addValueChangeListener(this);
//
West west = new West();
mainLayout.appendChild(west);
west.appendChild(wfnodeTree);
west.setFlex(true);
west.setAutoscroll(true);
west.setWidth("30%");
Grid gridView = new Grid();
gridView.setStyle("margin:0; padding:0;");
gridView.makeNoStrip();
gridView.setOddRowSclass("even");
Rows rows = new Rows();
gridView.appendChild(rows);
Row row = new Row();
rows.appendChild(row);
row.setAlign("center");
row.appendChild(titleLabel);
titleLabel.setStyle("font-weight: bold; font-size: 14px");
row = new Row();
rows.appendChild(row);
row.appendChild(helpFrame);
helpFrame.setWidth("99%");
helpFrame.setHeight("90%");
helpFrame.setStyle("min-height:300px; border: 1px solid lightgray; margin:auto");
row = new Row();
rows.appendChild(row);
row.appendChild(notesLabel);
notesLabel.setWidth("100%");
row = new Row();
rows.appendChild(row);
row.appendChild(notesField);
notesField.setRows(4);
notesField.setWidth("100%");
row = new Row();
rows.appendChild(row);
Div div = new Div();
div.appendChild(statusLabel);
div.appendChild(statusField.getComponent());
div.appendChild(new Space());
div.setAlign("right");
div.appendChild(bRefresh);
div.appendChild(bOK);
div.appendChild(bNext);
row.appendChild(div);
East east = new East();
mainLayout.appendChild(east);
east.appendChild(gridView);
east.setCollapsible(false);
east.setSplittable(true);
east.setWidth("70%");
setNotesPanelVisible(false);
} // jbInit
private void refreshProgress() {
int nodes = getNodesCnt();
int solved = getWizardCnt();
int percent = solved * 100;
if (nodes > 0)
percent = percent / nodes;
else
percent = 0;
Object[] args = new Object[] {solved, nodes, percent};
String msg = Msg.getMsg(Env.getCtx(), "SetupWizardProgress", args);
progressLabel.setText(msg);
progressbar.setValue(percent);
progressbar.setTooltiptext(msg);
}
/**
* Dispose
*/
public void dispose()
{
SessionManager.getAppDesktop().closeActiveWindow();
} // dispose
/**
* Action Listener
* @param e event
*/
public void onEvent (Event e)
{
if (e.getTarget() == wfnodeTree) {
onTreeSelection(e);
} else if (e.getTarget() == bRefresh) {
refresh();
showInRightPanel(0, m_node.getAD_WF_Node_ID());
} else if (e.getTarget() == bOK) {
save(notesField.getText(), (String) statusField.getValue());
showInRightPanel(0, m_node.getAD_WF_Node_ID());
refreshProgress();
} else if (e.getTarget() == bNext) {
navigateToNext();
}
} // actionPerformed
private void refresh() {
if (m_node != null) {
MWizardProcess wp = MWizardProcess.get(Env.getCtx(), m_node.getAD_WF_Node_ID(), Env.getAD_Client_ID(Env.getCtx()));
notesField.setText(wp.getNote());
statusField.setValue(wp.getWizardStatus());
}
}
private void navigateToNext() {
if (m_node != null) {
save(notesField.getText(), (String) statusField.getValue());
refreshProgress();
}
Treeitem ti = wfnodeTree.getSelectedItem();
if (ti == null || nextItems.indexOf(ti)+1 == nextItems.size()) {
ti = nextItems.get(0);
wfnodeTree.setSelectedItem(ti);
showItem(ti);
} else {
int idx = nextItems.indexOf(ti);
Treeitem nextti = nextItems.get(idx+1);
wfnodeTree.setSelectedItem(nextti);
showItem(nextti);
}
}
/**
* Tree selection
* @param e event
*/
private void onTreeSelection (Event e)
{
Treeitem ti = wfnodeTree.getSelectedItem();
showItem(ti);
} // propertyChange
private void showItem(Treeitem ti) {
if (ti.getAttribute("AD_Workflow_ID") != null) {
ti.setOpen(true);
// MWorkflow
int wfid = (Integer) ti.getAttribute("AD_Workflow_ID");
showInRightPanel(wfid, 0);
} else if (ti.getAttribute("AD_WF_Node_ID") != null) {
// MWFNode
int nodeid = (Integer) ti.getAttribute("AD_WF_Node_ID");
showInRightPanel(0, nodeid);
}
}
private void showInRightPanel(int ad_workflow_id, int ad_wf_node_id) {
String title = null;
String help = null;
if (ad_wf_node_id > 0) {
MWFNode node = MWFNode.get(Env.getCtx(), ad_wf_node_id);
title = node.getName(true);
help = node.getHelp(true);
m_node = node;
MWizardProcess wp = MWizardProcess.get(Env.getCtx(), ad_wf_node_id, Env.getAD_Client_ID(Env.getCtx()));
notesField.setText(wp.getNote());
statusField.setValue(wp.getWizardStatus());
setNotesPanelVisible(true);
} else {
MWorkflow wf = MWorkflow.get(Env.getCtx(), ad_workflow_id);
title = wf.getName(true);
help = wf.getHelp(true);
setNotesPanelVisible(false);
m_node = null;
}
titleLabel.setText(title);
if (help != null) {
AMedia media = new AMedia("Help", "html", "text/html", help.getBytes());
helpFrame.setContent(media);
helpFrame.invalidate();
} else {
helpFrame.setContent(null);
}
helpFrame.invalidate();
}
private void setNotesPanelVisible(boolean visible) {
notesLabel.setVisible(visible);
notesField.setVisible(visible);
bRefresh.setVisible(visible);
bOK.setVisible(visible);
statusLabel.setVisible(visible);
statusField.setVisible(visible);
}
public ADForm getForm()
{
return form;
}
@Override
public void valueChange(ValueChangeEvent e) {
log.info(e.getPropertyName() + "=" + e.getNewValue());
/* if (e.getPropertyName().equals("WizardStatus")) */
}
} // WSetupWizard

View File

@ -47,20 +47,19 @@ import org.zkoss.zhtml.Table;
import org.zkoss.zhtml.Td;
import org.zkoss.zhtml.Tr;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.SuspendNotAllowedException;
import org.zkoss.zk.ui.event.DropEvent;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.Events;
import org.zkoss.zul.Borderlayout;
import org.zkoss.zul.Center;
import org.zkoss.zul.North;
import org.zkoss.zul.South;
import org.zkoss.zul.Div;
import org.zkoss.zul.Hbox;
import org.zkoss.zul.Label;
import org.zkoss.zul.Menupopup;
import org.zkoss.zul.North;
import org.zkoss.zul.Separator;
import org.zkoss.zul.South;
import org.zkoss.zul.Space;
import org.zkoss.zul.Toolbarbutton;
import org.zkoss.zul.Vbox;
@ -72,12 +71,14 @@ import org.zkoss.zul.Vbox;
*/
public class WFEditor extends ADForm {
/**
*
*
*/
private static final long serialVersionUID = 6874950519612113345L;
private static final long serialVersionUID = 4293422396394778274L;
private Listbox workflowList;
private int m_workflowId = 0;
private Toolbarbutton zoomButton;
private Toolbarbutton refreshButton;
private Toolbarbutton newButton;
private Table table;
private Center center;
@ -108,14 +109,24 @@ public class WFEditor extends ADForm {
north.appendChild(toolbar);
toolbar.appendChild(workflowList);
workflowList.setStyle("margin-left: 10px; margin-top: 5px; margin-right:5px;");
// Zoom
zoomButton = new Toolbarbutton();
zoomButton.setImage("/images/Zoom16.png");
toolbar.appendChild(zoomButton);
zoomButton.addEventListener(Events.ON_CLICK, this);
zoomButton.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Zoom")));
// New Node
newButton = new Toolbarbutton();
newButton.setImage("/images/New16.png");
toolbar.appendChild(newButton);
newButton.addEventListener(Events.ON_CLICK, this);
newButton.setTooltiptext(Msg.getMsg(Env.getCtx(), "CreateNewNode"));
// Refresh
refreshButton = new Toolbarbutton();
refreshButton.setImage("/images/Refresh16.png");
toolbar.appendChild(refreshButton);
refreshButton.addEventListener(Events.ON_CLICK, this);
refreshButton.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Refresh")));
north.setHeight("30px");
createTable();
@ -153,14 +164,20 @@ public class WFEditor extends ADForm {
ListItem item = workflowList.getSelectedItem();
KeyNamePair knp = item != null ? item.toKeyNamePair() : null;
if (knp != null && knp.getKey() > 0) {
load(knp.getKey());
load(knp.getKey(), true);
}
}
else if (event.getTarget() == zoomButton) {
zoom();
if (workflowList.getSelectedIndex() > 0)
zoom();
}
else if (event.getTarget() == refreshButton) {
if (workflowList.getSelectedIndex() > 0)
reload(m_workflowId, true);
}
else if (event.getTarget() == newButton) {
createNewNode();
if (workflowList.getSelectedIndex() > 0)
createNewNode();
}
else if (event.getTarget() instanceof WFPopupItem) {
WFPopupItem item = (WFPopupItem) event.getTarget();
@ -177,14 +194,14 @@ public class WFEditor extends ADForm {
widget.getModel().setXPosition(xPosition);
widget.getModel().setYPosition(yPosition);
widget.getModel().saveEx();
reload(m_workflowId);
reload(m_workflowId, true);
}
}
}
}
private void createNewNode() {
String nameLabel = Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Name"));
String nameLabel = Msg.getElement(Env.getCtx(), MWFNode.COLUMNNAME_Name);
String title = Msg.getMsg(Env.getCtx(), "CreateNewNode");
final Window w = new Window();
w.setTitle(title);
@ -224,26 +241,30 @@ public class WFEditor extends ADForm {
MWFNode node = new MWFNode(m_wf, name, name);
node.setClientOrg(AD_Client_ID, 0);
node.saveEx();
reload(m_wf.getAD_Workflow_ID());
}
reload(m_wf.getAD_Workflow_ID(), true);
}
}
});
w.doHighlighted();
}
void reload(int workflowId) {
void reload(int workflowId, boolean reread) {
center.removeChild(table);
createTable();
center.appendChild(table);
load(workflowId);
load(workflowId, reread);
}
private void load(int workflowId) {
private void load(int workflowId, boolean reread) {
// Get Workflow
m_wf = new MWorkflow (Env.getCtx(), workflowId, null);
m_wf = MWorkflow.get(Env.getCtx(), workflowId);
m_workflowId = workflowId;
nodeContainer = new WFNodeContainer();
nodeContainer.setWorkflow(m_wf);
if (reread) {
m_wf.reloadNodes();
}
// Add Nodes for Paint
MWFNode[] nodes = m_wf.getNodes(true, Env.getAD_Client_ID(Env.getCtx()));
@ -301,16 +322,14 @@ public class WFEditor extends ADForm {
image.setTooltiptext(node.getHelp(true));
}
image.setAttribute("AD_WF_Node_ID", node.getAD_WF_Node_ID());
if (node.getAD_Client_ID() == Env.getAD_Client_ID(Env.getCtx())) {
image.addEventListener(Events.ON_CLICK, new EventListener() {
public void onEvent(Event event) throws Exception {
showNodeMenu(event.getTarget());
}
});
image.setDraggable("WFNode");
imgStyle = imgStyle + ";cursor:pointer";
}
image.addEventListener(Events.ON_CLICK, new EventListener() {
public void onEvent(Event event) throws Exception {
showNodeMenu(event.getTarget());
}
});
image.setDraggable("WFNode");
imgStyle = imgStyle + ";cursor:pointer";
}
else
{
@ -352,28 +371,43 @@ public class WFEditor extends ADForm {
Menupopup popupMenu = new Menupopup();
if (node.getAD_Client_ID() == Env.getAD_Client_ID(Env.getCtx()))
{
// Zoom
addMenuItem(popupMenu, Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Zoom")), node, WFPopupItem.WFPOPUPITEM_ZOOM);
// Properties
addMenuItem(popupMenu, Msg.getMsg(Env.getCtx(), "Properties"), node, WFPopupItem.WFPOPUPITEM_PROPERTIES);
// Delete node
String title = Msg.getMsg(Env.getCtx(), "DeleteNode") +
": " + node.getName();
addMenuItem(popupMenu, title, node, -1);
addMenuItem(popupMenu, title, node, WFPopupItem.WFPOPUPITEM_DELETENODE);
}
MWFNode[] nodes = m_wf.getNodes(true, Env.getAD_Client_ID(Env.getCtx()));
MWFNodeNext[] lines = node.getTransitions(Env.getAD_Client_ID(Env.getCtx()));
// Add New Line
for (int n = 0; n < nodes.length; n++)
for (MWFNode nn : nodes)
{
MWFNode nn = nodes[n];
if (nn.getAD_WF_Node_ID() == node.getAD_WF_Node_ID())
continue; // same
if (nn.getAD_WF_Node_ID() == node.getAD_Workflow().getAD_WF_Node_ID())
continue; // don't add line to starting node
boolean found = false;
for (int i = 0; i < lines.length; i++)
for (MWFNodeNext line : lines)
{
MWFNodeNext line = lines[i];
if (nn.getAD_WF_Node_ID() == line.getAD_WF_Next_ID())
{
found = true;
found = true; // line already exists
break;
}
}
if (!found) {
// Check that inverse line doesn't exist
for (MWFNodeNext revline : nn.getTransitions(Env.getAD_Client_ID(Env.getCtx()))) {
if (node.getAD_WF_Node_ID() == revline.getAD_WF_Next_ID())
{
found = true; // inverse line already exists
break;
}
}
}
if (!found)
{
String title = Msg.getMsg(Env.getCtx(), "AddLine")
@ -382,9 +416,8 @@ public class WFEditor extends ADForm {
}
}
// Delete Lines
for (int i = 0; i < lines.length; i++)
for (MWFNodeNext line : lines)
{
MWFNodeNext line = lines[i];
if (line.getAD_Client_ID() != Env.getAD_Client_ID(Env.getCtx()))
continue;
MWFNode next = MWFNode.get(Env.getCtx(), line.getAD_WF_Next_ID());

View File

@ -1,17 +1,37 @@
package org.adempiere.webui.apps.wf;
import org.adempiere.webui.apps.AEnv;
import org.adempiere.webui.component.ConfirmPanel;
import org.adempiere.webui.component.Textbox;
import org.adempiere.webui.component.Window;
import org.adempiere.webui.event.DialogEvents;
import org.compiere.model.MQuery;
import org.compiere.model.MTable;
import org.compiere.util.CLogger;
import org.compiere.util.Env;
import org.compiere.util.Msg;
import org.compiere.wf.MWFNode;
import org.compiere.wf.MWFNodeNext;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.Events;
import org.zkoss.zul.Hbox;
import org.zkoss.zul.Label;
import org.zkoss.zul.Menuitem;
import org.zkoss.zul.Separator;
import org.zkoss.zul.Space;
import org.zkoss.zul.Vbox;
public class WFPopupItem extends Menuitem {
/**
*
*
*/
private static final long serialVersionUID = 4634863991042969718L;
private static final long serialVersionUID = -8409752634782368108L;
public static final int WFPOPUPITEM_DELETENODE = -1;
public static final int WFPOPUPITEM_PROPERTIES = -2;
public static final int WFPOPUPITEM_ZOOM = -3;
private int m_AD_Workflow_ID;
private static final CLogger log = CLogger.getCLogger(WFPopupItem.class);
@ -39,6 +59,7 @@ public class WFPopupItem extends Menuitem {
{
super (title);
m_line = line;
m_AD_Workflow_ID = line.getAD_WF_Node().getAD_Workflow_ID();
} // WFPopupItem
/** The Node */
@ -61,23 +82,101 @@ public class WFPopupItem extends Menuitem {
newLine.setClientOrg(AD_Client_ID, 0);
newLine.saveEx();
log.info("Add Line to " + m_node + " -> " + newLine);
wfp.reload(m_AD_Workflow_ID);
wfp.reload(m_AD_Workflow_ID, true);
}
// Edit Properties
else if (m_node != null && m_AD_WF_NodeTo_ID == WFPOPUPITEM_PROPERTIES)
{
editNode(wfp);
}
// Zoom to Node
else if (m_node != null && m_AD_WF_NodeTo_ID == WFPOPUPITEM_ZOOM)
{
int AD_Window_ID = MTable.get(Env.getCtx(), MWFNode.Table_ID).getAD_Window_ID();
if (AD_Window_ID > 0) {
MQuery query = new MQuery();
query.setZoomColumnName("AD_WF_Node_ID");
//remove _ID to get table name
query.setZoomTableName("AD_WF_Node");
query.setZoomValue(m_node.getAD_WF_Node_ID());
query.addRestriction("AD_WF_Node_ID", MQuery.EQUAL, m_node.getAD_WF_Node_ID());
query.setRecordCount(1); // guess
AEnv.zoom(AD_Window_ID, query);
}
}
// Delete Node
else if (m_node != null && m_AD_WF_NodeTo_ID == -1)
else if (m_node != null && m_AD_WF_NodeTo_ID == WFPOPUPITEM_DELETENODE)
{
log.info("Delete Node: " + m_node);
m_node.delete(false);
wfp.reload(m_AD_Workflow_ID);
wfp.reload(m_AD_Workflow_ID, true);
}
// Delete Line
else if (m_line != null)
{
log.info("Delete Line: " + m_line);
m_line.delete(false);
wfp.reload(m_AD_Workflow_ID);
wfp.reload(m_AD_Workflow_ID, true);
}
else
log.warning("No Action??");
} // execute
private void editNode(final WFEditor wfp) {
String title = Msg.getMsg(Env.getCtx(), "Properties");
final Window w = new Window();
w.setTitle(title);
Vbox vbox = new Vbox();
w.appendChild(vbox);
vbox.appendChild(new Separator());
// Name
String labelName = Msg.getElement(Env.getCtx(), MWFNode.COLUMNNAME_Name);
Hbox hboxName = new Hbox();
hboxName.appendChild(new Label(labelName));
hboxName.appendChild(new Space());
final Textbox textName = new Textbox(m_node.getName());
hboxName.appendChild(textName);
vbox.appendChild(hboxName);
// Description
String labelDescription = Msg.getElement(Env.getCtx(), MWFNode.COLUMNNAME_Description);
Hbox hboxDescription = new Hbox();
hboxDescription.appendChild(new Label(labelDescription));
hboxDescription.appendChild(new Space());
final Textbox textDescription = new Textbox(m_node.getDescription());
hboxDescription.appendChild(textDescription);
vbox.appendChild(hboxDescription);
//
vbox.appendChild(new Separator());
final ConfirmPanel panel = new ConfirmPanel(true, false, false, false, false, false, false);
vbox.appendChild(panel);
panel.addActionListener(Events.ON_CLICK, new EventListener() {
public void onEvent(Event event) throws Exception {
if (event.getTarget() == panel.getButton(ConfirmPanel.A_CANCEL)) {
textName.setText("");
}
w.onClose();
}
});
w.setWidth("250px");
w.setBorder("normal");
w.setPage(this.getPage());
w.addEventListener(DialogEvents.ON_WINDOW_CLOSE, new EventListener<Event>() {
@Override
public void onEvent(Event event) throws Exception {
String name = textName.getText();
if (name != null && name.length() > 0)
{
m_node.setName(name);
m_node.setDescription(textDescription.getText());
m_node.saveEx();
wfp.reload(m_AD_Workflow_ID, false);
}
}
});
w.doHighlighted();
}
}

View File

@ -0,0 +1,97 @@
/******************************************************************************
* Copyright (C) 2012 Carlos Ruiz *
* Copyright (C) 2012 Trek Global *
* Product: iDempiere ERP & CRM Smart Business Solution *
* 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.apps.form;
import java.util.List;
import org.adempiere.model.MWizardProcess;
import org.compiere.model.Query;
import org.compiere.util.CLogger;
import org.compiere.util.DB;
import org.compiere.util.Env;
import org.compiere.wf.MWFNode;
import org.compiere.wf.MWorkflow;
/**
* Model for Setup Wizard
*
* @author Carlos Ruiz
*
*/
public class SetupWizard
{
/** Logger */
public static CLogger log = CLogger.getCLogger(SetupWizard.class);
public MWFNode m_node;
/**
* Get the number of workflow wizard nodes
*/
public int getNodesCnt() {
/* TODO: SaaS filter */
final String sql = "SELECT COUNT(1) " +
"FROM AD_Workflow w " +
"JOIN AD_WF_Node n ON (n.AD_Workflow_ID=w.AD_Workflow_ID) " +
"WHERE w.WorkflowType='W' " + // Wizard
"AND w.IsActive='Y' " +
"AND n.IsActive='Y'";
return DB.getSQLValue(null, sql);
}
/**
* Get the number of wizard nodes that has been finished or skipped by user
*/
public int getWizardCnt() {
/* TODO: SaaS filter */
final String sql = "SELECT COUNT(DISTINCT z.AD_WF_Node_ID) " +
"FROM AD_Workflow w " +
"JOIN AD_WF_Node n ON (n.AD_Workflow_ID=w.AD_Workflow_ID) " +
"JOIN AD_WizardProcess z ON (n.AD_WF_Node_ID=z.AD_WF_Node_ID) " +
"WHERE w.WorkflowType='W' " + // Wizard
"AND w.IsActive='Y' " +
"AND n.IsActive='Y' " +
"AND z.AD_Client_ID=" + Env.getAD_Client_ID(Env.getCtx()) +
" AND z.IsActive='Y' " +
"AND z.WizardStatus IN ('F','S')"; // Finished/Skipped
return DB.getSQLValue(null, sql);
}
public List<MWorkflow> getWfWizards() {
/* TODO: SaaS filter */
return new Query(Env.getCtx(), MWorkflow.Table_Name, "WorkflowType=? AND IsActive='Y' AND AD_Client_ID IN (0, ?)", null)
.setParameters(MWorkflow.WORKFLOWTYPE_Wizard, Env.getAD_Client_ID(Env.getCtx()))
.setOnlyActiveRecords(true)
.setOrderBy(MWorkflow.COLUMNNAME_Priority)
.list();
}
public void save(String note, String wizardStatus) {
MWizardProcess wp = MWizardProcess.get(Env.getCtx(), m_node.getAD_WF_Node_ID(), Env.getAD_Client_ID(Env.getCtx()));
if (note != null && note.length() == 0)
note = null;
if (wizardStatus != null && wizardStatus.length() == 0)
wizardStatus = null;
if ((wp.getNote() == null && note != null) || (note != null && note.equals(wp.getNote())))
wp.setNote(note);
if ((wp.getWizardStatus() == null && wizardStatus != null) || (wizardStatus != null && wizardStatus.equals(wp.getWizardStatus())))
wp.setWizardStatus(wizardStatus);
if (wp.is_Changed())
wp.saveEx();
}
} // SetupWizard