diff --git a/migration/iD10/oracle/202205251513_IDEMPIERE-5302.sql b/migration/iD10/oracle/202205251513_IDEMPIERE-5302.sql new file mode 100644 index 0000000000..c91c2bace9 --- /dev/null +++ b/migration/iD10/oracle/202205251513_IDEMPIERE-5302.sql @@ -0,0 +1,947 @@ +-- IDEMPIERE-5302 +SELECT register_migration_script('202205251513_IDEMPIERE-5302.sql') FROM dual; + +SET SQLBLANKLINES ON +SET DEFINE OFF + +INSERT INTO ad_element(ad_element_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, columnname, entitytype, name, printname, description, help, po_name, po_printname, po_description, po_help, ad_element_uu, placeholder) VALUES (203568, 0, 0, 'Y', TO_TIMESTAMP('2022-04-06 12:43:12','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2022-04-06 12:45:43','YYYY-MM-DD HH24:MI:SS'), 100, 'IsShowInDrillOptions', 'D', 'Show In Drill Options', 'Show In Drill Options', 'This parameter enables the table is displayed in Report Viewer Drill options list', NULL, NULL, NULL, NULL, NULL, '42e1bc41-4d1b-491b-b1a3-6a63fc8a76c2', NULL); + +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214721,0,'Show In Drill Options','This parameter enables the table is displayed in Report Viewer Drill options list',NULL,100,'IsShowInDrillOptions',1,'N','N','N','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2022-04-06 12:52:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 13:23:14','YYYY-MM-DD HH24:MI:SS'),100,203568,'Y','N','D','N','N','N','Y','9e728d8a-e625-480c-b609-c25bac5266f3','Y',0,'N','N','N','N'); + +-- Apr 6, 2022, 1:21:07 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206920,'Show In Drill Options','This parameter enables the table is displayed in Report Viewer Drill options list',100,214721,'Y',1,240,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 13:21:07','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 13:21:07','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','dc30834f-3921-4800-989b-d96e11cf1cc4','Y',200,2,2) +; + +-- Apr 6, 2022, 1:21:30 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=240, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=5, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-06 13:21:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206920 +; + +ALTER TABLE AD_Table ADD COLUMN IsShowInDrillOptions character(1) DEFAULT 'N'; + +-- Apr 6, 2022, 1:23:14 PM CEST +UPDATE AD_Column SET DefaultValue='Y',Updated=TO_TIMESTAMP('2022-04-06 13:23:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214721 +; + +-- Apr 6, 2022, 1:23:20 PM CEST +ALTER TABLE AD_Table MODIFY IsShowInDrillOptions CHAR(1) DEFAULT 'Y' +; + +-- Apr 6, 2022, 2:46:56 PM CEST +INSERT INTO AD_Table (AD_Table_ID,Name,TableName,LoadSeq,AccessLevel,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSecurityEnabled,IsDeleteable,IsHighVolume,IsView,EntityType,ImportTable,IsChangeLog,ReplicationType,CopyColumnsFromTable,IsCentrallyMaintained,AD_Table_UU,Processing,DatabaseViewDrop,CopyComponentsFromView,CreateWindowFromTable,IsShowInDrillOptions) VALUES (200335,'Drill Rule','AD_Process_DrillRule',0,'4',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:46:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:46:56','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','N','D','N','Y','L','N','Y','83361033-2aa3-41d6-9de5-1ce897245dde','N','N','N','N','Y') +; + +-- Apr 6, 2022, 2:46:56 PM CEST +INSERT INTO AD_Sequence (Name,CurrentNext,IsAudited,StartNewYear,Description,IsActive,IsTableID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Sequence_ID,IsAutoSequence,StartNo,IncrementNo,CurrentNextSys,AD_Sequence_UU) VALUES ('AD_Process_DrillRule',1000000,'N','N','Table AD_Process_DrillRule','Y','Y',0,0,TO_TIMESTAMP('2022-04-06 14:46:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:46:56','YYYY-MM-DD HH24:MI:SS'),100,200404,'Y',1000000,1,200000,'ca0fd3a7-124d-48f9-b00a-e554f0e79fe4') +; + +-- Apr 6, 2022, 2:47:08 PM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203569,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:08','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:08','YYYY-MM-DD HH24:MI:SS'),100,'AD_Process_DrillRule_ID','Drill Rule','Drill Rule','D','0c9e8965-941a-46f7-be4e-5794df9dfc9d') +; + +-- Apr 6, 2022, 2:47:08 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214722,0.0,'Drill Rule',200335,'AD_Process_DrillRule_ID',10,'Y','N','Y','N','N','N',13,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:08','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:08','YYYY-MM-DD HH24:MI:SS'),100,203569,'N','N','D','N','afd2c9af-9c8d-4fb9-b4ea-88626a1ef43d','N') +; + +-- Apr 6, 2022, 2:47:08 PM CEST +CREATE TABLE AD_Process_DrillRule (ad_process_drillrule_id numeric(10,0) NOT NULL) TABLESPACE pg_default +; + +-- Apr 6, 2022, 2:47:08 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214723,0.0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200335,129,'AD_Client_ID','@#AD_Client_ID@',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:08','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:08','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','N','dcbbbea4-8ccd-4c07-8964-0d8d9f6b10f1','N','D') +; + +-- Apr 6, 2022, 2:47:09 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN ad_client_id numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:47:09 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214724,0.0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200335,104,'AD_Org_ID','@#AD_Org_ID@',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:08','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:08','YYYY-MM-DD HH24:MI:SS'),100,113,'N','N','D','N','a0b49fe9-f6ce-4ea6-b317-ae979c02d027','N','D') +; + +-- Apr 6, 2022, 2:47:09 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN ad_org_id numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:47:09 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214725,0.0,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200335,'IsActive','Y',1,'N','N','Y','N','N','N',20,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:09','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:09','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','N','feaf7550-5361-45f1-9986-2deb5187727e','N') +; + +-- Apr 6, 2022, 2:47:09 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN isactive character(1) COLLATE pg_catalog."default" NOT NULL DEFAULT 'Y'::bpchar +; + +-- Apr 6, 2022, 2:47:09 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214726,0.0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200335,'Created','SYSDATE',29,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:09','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:09','YYYY-MM-DD HH24:MI:SS'),100,245,'N','N','D','N','d3772d17-fb70-4cbc-af0c-cc2a54b7813f','N') +; + +-- Apr 6, 2022, 2:47:09 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN created timestamp without time zone NOT NULL DEFAULT now() +; + +-- Apr 6, 2022, 2:47:10 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214727,0.0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200335,'CreatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:09','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:09','YYYY-MM-DD HH24:MI:SS'),100,246,'N','N','D','N','c629839b-dc5a-4238-9087-b9500fa241de','N','D') +; + +-- Apr 6, 2022, 2:47:10 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN createdby numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:47:10 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214728,0.0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200335,'Updated','SYSDATE',29,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:10','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:10','YYYY-MM-DD HH24:MI:SS'),100,607,'N','N','D','N','0a2b4e06-7142-455a-ac49-7637be07716b','N') +; + +-- Apr 6, 2022, 2:47:10 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN updated timestamp without time zone NOT NULL DEFAULT now() +; + +-- Apr 6, 2022, 2:47:10 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214729,0.0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200335,'UpdatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:10','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:10','YYYY-MM-DD HH24:MI:SS'),100,608,'N','N','D','N','82ea3b7f-7165-4d7b-98b7-35a20c1bd315','N','D') +; + +-- Apr 6, 2022, 2:47:10 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN updatedby numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:47:10 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,SeqNoSelection,IsToolbarButton) VALUES (214730,0.0,'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.',200335,'Name',60,'N','N','Y','N','Y','N',10,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:10','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:10','YYYY-MM-DD HH24:MI:SS'),100,469,'Y','Y','D','N','3a29e5d3-8271-4a43-b5c2-19547c78f295',10,'N') +; + +-- Apr 6, 2022, 2:47:10 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN name character varying(60) COLLATE pg_catalog."default" NOT NULL +; + +-- Apr 6, 2022, 2:47:11 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,SeqNoSelection,IsToolbarButton) VALUES (214731,0.0,'Description','Optional short description of the record','A description is limited to 255 characters.',200335,'Description',255,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:10','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:10','YYYY-MM-DD HH24:MI:SS'),100,275,'Y','Y','D','N','907cdb65-3239-4d65-bcc4-fbefb10ea218',20,'N') +; + +-- Apr 6, 2022, 2:47:11 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN description character varying(255) COLLATE pg_catalog."default" +; + +-- Apr 6, 2022, 2:47:11 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214732,0.0,'Show Help',200335,'ShowHelp','Y',1,'N','N','N','N','N','N',17,50007,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:11','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:11','YYYY-MM-DD HH24:MI:SS'),100,50038,'Y','N','D','N','74c04cf6-c00f-495a-80f1-66dc036be9e4','N') +; + +-- Apr 6, 2022, 2:47:11 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN showhelp character(1) COLLATE pg_catalog."default" DEFAULT 'Y'::bpchar +; + +-- Apr 6, 2022, 2:47:11 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214733,0.0,'Process','Process or Report','The Process field identifies a unique Process or Report in the system.',200335,'AD_Process_ID',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:11','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:11','YYYY-MM-DD HH24:MI:SS'),100,117,'Y','N','D','N','c7b4d348-fca5-4442-9575-c0046d000a89','N','N') +; + +-- Apr 6, 2022, 2:47:11 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN ad_process_id numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:47:12 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214734,0.0,'Table','Database Table information','The Database Table provides the information of the table definition',200335,'AD_Table_ID',10,'N','N','N','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:11','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:11','YYYY-MM-DD HH24:MI:SS'),100,126,'Y','N','D','N','ac425e9f-2a69-45f1-aa44-cd82ea080ea2','N','N') +; + +-- Apr 6, 2022, 2:47:12 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN ad_table_id numeric(10,0) DEFAULT NULL::numeric +; + +-- Apr 6, 2022, 2:47:12 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214735,0.0,'Report View','View used to generate this report','The Report View indicates the view used to generate this report.',200335,'AD_ReportView_ID',10,'N','N','N','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:12','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:12','YYYY-MM-DD HH24:MI:SS'),100,1252,'N','N','D','N','67f6721b-a7b9-4c0e-b704-0a82534ec640','N') +; + +-- Apr 6, 2022, 2:47:12 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN ad_reportview_id numeric(10,0) DEFAULT NULL::numeric +; + +-- Apr 6, 2022, 2:47:12 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214736,0.0,'Print Format','Data Print Format','The print format determines how data is rendered for print.',200335,'AD_PrintFormat_ID',10,'N','N','N','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:12','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:12','YYYY-MM-DD HH24:MI:SS'),100,1790,'Y','N','D','N','bf68bfcd-02cd-4507-a6f5-46ac33bbe525','N','N') +; + +-- Apr 6, 2022, 2:47:12 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN ad_printformat_id numeric(10,0) DEFAULT NULL::numeric +; + +-- Apr 6, 2022, 4:01:24 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214752,0.0,'System Element','System Element enables the central maintenance of column description and help.','The System Element allows for the central maintenance of help, descriptions and terminology for a database column.',200335,'AD_Element_ID',10,'N','N','Y','N','N','N',30,0,0,'Y',TO_TIMESTAMP('2022-04-06 16:01:24','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 16:01:24','YYYY-MM-DD HH24:MI:SS'),100,106,'Y','N','D','N','6647624f-44a9-4143-b453-b15a689d76fb','N','N') +; + +-- Apr 6, 2022, 2:47:13 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN ad_element_id numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:47:13 PM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203570,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:12','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:12','YYYY-MM-DD HH24:MI:SS'),100,'AD_Process_DrillRule_UU','AD_Process_DrillRule_UU','AD_Process_DrillRule_UU','D','deb41a28-7518-4e08-93d4-f574052eca6c') +; + +-- Apr 6, 2022, 2:47:13 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214738,0.0,'AD_Process_DrillRule_UU',200335,'AD_Process_DrillRule_UU',36,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:12','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:12','YYYY-MM-DD HH24:MI:SS'),100,203570,'N','N','D','N','cd5833a4-a634-49af-a711-3f207a5223f5','N') +; + +-- Apr 6, 2022, 2:47:13 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN ad_process_drillrule_uu character varying(36) COLLATE pg_catalog."default" DEFAULT NULL::character varying +; + +-- Apr 6, 2022, 2:49:42 PM CEST +ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT ad_process_drillrule_pkey PRIMARY KEY (ad_process_drillrule_id) +; + +-- Apr 6, 2022, 2:49:42 PM CEST +ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT adprintformat_addrillrule FOREIGN KEY (ad_printformat_id) REFERENCES adempiere.ad_printformat (ad_printformat_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED +; + +-- Apr 6, 2022, 2:49:42 PM CEST +ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT adprocess_addrillrule FOREIGN KEY (ad_process_id) REFERENCES adempiere.ad_process (ad_process_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED +; + +-- Apr 6, 2022, 2:49:42 PM CEST +ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT adtable_addrillrule FOREIGN KEY (ad_table_id) REFERENCES adempiere.ad_table (ad_table_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION DEFERRABLE INITIALLY DEFERRED +; + +-- Apr 6, 2022, 2:49:42 PM CEST +ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT celement_addrillrule FOREIGN KEY (ad_element_id) REFERENCES adempiere.ad_element (ad_element_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED +; + +-- Apr 6, 2022, 2:49:42 PM CEST +ALTER TABLE IF EXISTS adempiere.ad_process_drillrule OWNER to adempiere +; + +-- Apr 6, 2022, 2:49:42 PM CEST +CREATE UNIQUE INDEX IF NOT EXISTS ad_process_drillrule_uu_idx ON adempiere.ad_process_drillrule USING btree (ad_process_drillrule_uu COLLATE pg_catalog."default" ASC NULLS LAST) TABLESPACE pg_default +; + +-- Apr 6, 2022, 2:49:42 PM CEST +INSERT INTO AD_Table (AD_Table_ID,Name,TableName,LoadSeq,AccessLevel,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSecurityEnabled,IsDeleteable,IsHighVolume,IsView,EntityType,ImportTable,IsChangeLog,ReplicationType,CopyColumnsFromTable,IsCentrallyMaintained,AD_Table_UU,Processing,DatabaseViewDrop,CopyComponentsFromView,CreateWindowFromTable,IsShowInDrillOptions) VALUES (200336,'Drill Rule Parameter','AD_Process_DrillRule_Para',0,'4',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:42','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:42','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','N','D','N','Y','L','N','Y','1c5204bd-d8e8-4cc6-ab2d-e11735e1ff3c','N','N','N','N','Y') +; + +-- Apr 6, 2022, 2:49:43 PM CEST +INSERT INTO AD_Sequence (Name,CurrentNext,IsAudited,StartNewYear,Description,IsActive,IsTableID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Sequence_ID,IsAutoSequence,StartNo,IncrementNo,CurrentNextSys,AD_Sequence_UU) VALUES ('AD_Process_DrillRule_Para',1000000,'N','N','Table AD_Process_DrillRule_Para','Y','Y',0,0,TO_TIMESTAMP('2022-04-06 14:49:42','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:42','YYYY-MM-DD HH24:MI:SS'),100,200405,'Y',1000000,1,200000,'fc2f35bc-3607-4568-836d-776dcef87571') +; + +-- Apr 6, 2022, 2:49:54 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214739,0.0,'Drill Rule',200336,'AD_Process_DrillRule_ID',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:53','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:53','YYYY-MM-DD HH24:MI:SS'),100,203569,'N','N','D','N','cc9d25da-cd10-4a46-b598-49bfa88a5fef','N','N') +; + +-- Apr 6, 2022, 2:47:08 PM CEST +CREATE TABLE AD_Process_DrillRule_Para (ad_process_drillrule_id numeric(10,0) NOT NULL) TABLESPACE pg_default +; + +-- Apr 6, 2022, 4:23:02 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214753,0.0,'Process Parameter',200336,'AD_Process_Para_ID',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 16:23:01','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 16:23:01','YYYY-MM-DD HH24:MI:SS'),100,118,'N','N','D','N','baeb0d20-439e-46aa-b4e7-0eb81a391b63','N') +; + +-- Apr 6, 2022, 2:49:55 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN ad_process_para_id numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:49:55 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214741,0.0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200336,129,'AD_Client_ID','@#AD_Client_ID@',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:54','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:54','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','N','1a2c8dc6-66f5-438c-89bf-df56e12e708e','N','D') +; + +-- Apr 6, 2022, 2:49:55 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN ad_client_id numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:49:55 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214742,0.0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200336,104,'AD_Org_ID','@#AD_Org_ID@',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:55','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:55','YYYY-MM-DD HH24:MI:SS'),100,113,'N','N','D','N','4c8313ac-11d5-4fab-aba2-1ca5ecb34155','N','D') +; + +-- Apr 6, 2022, 2:49:55 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN ad_org_id numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:49:55 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214743,0.0,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200336,'IsActive','Y',1,'N','N','Y','N','N','N',20,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:55','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:55','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','N','dfcfb4b4-38f9-4b8e-8c5c-811c1bdcd58d','N') +; + +-- Apr 6, 2022, 2:49:55 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN isactive character(1) COLLATE pg_catalog."default" NOT NULL DEFAULT 'Y'::bpchar +; + +-- Apr 6, 2022, 2:49:55 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214744,0.0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200336,'Created','SYSDATE',29,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:55','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:55','YYYY-MM-DD HH24:MI:SS'),100,245,'N','N','D','N','30b678ab-40aa-468e-9a2d-9108d38bdcc1','N') +; + +-- Apr 6, 2022, 2:49:55 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN created timestamp without time zone NOT NULL DEFAULT now() +; + +-- Apr 6, 2022, 2:49:56 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214745,0.0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200336,'CreatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:55','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:55','YYYY-MM-DD HH24:MI:SS'),100,246,'N','N','D','N','c5875da8-08c5-4d3d-a99b-b80459d286dc','N','D') +; + +-- Apr 6, 2022, 2:49:56 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN createdby numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:49:56 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214746,0.0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200336,'Updated','SYSDATE',29,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:56','YYYY-MM-DD HH24:MI:SS'),100,607,'N','N','D','N','418403df-269d-4cd1-9aca-2d335a230ccb','N') +; + +-- Apr 6, 2022, 2:49:56 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN updated timestamp without time zone NOT NULL DEFAULT now() +; + +-- Apr 6, 2022, 2:49:56 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214747,0.0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200336,'UpdatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:56','YYYY-MM-DD HH24:MI:SS'),100,608,'N','N','D','N','f3f1a606-2119-4671-8c13-d96a12441570','N','D') +; + +-- Apr 6, 2022, 2:49:57 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN updatedby numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:49:57 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214748,0.0,'Default Parameter','Default value of the parameter','The default value can be a variable like @#Date@ ',200336,'ParameterDefault',255,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:56','YYYY-MM-DD HH24:MI:SS'),100,2419,'Y','N','D','N','c37de7ce-4091-4f0d-b38e-d23770c5db4d','N') +; + +-- Apr 6, 2022, 2:49:57 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN parameterdefault character varying(255) COLLATE pg_catalog."default" +; + +-- Apr 6, 2022, 2:49:57 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,SeqNoSelection,IsToolbarButton) VALUES (214749,0.0,'Description','Optional short description of the record','A description is limited to 255 characters.',200336,'Description',255,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:57','YYYY-MM-DD HH24:MI:SS'),100,275,'Y','Y','D','N','7503a18e-7cde-422f-a911-f06143d187c4',10,'N') +; + +-- Apr 6, 2022, 2:49:57 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN description character varying(255) COLLATE pg_catalog."default" +; + +-- Apr 6, 2022, 2:49:57 PM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203572,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:57','YYYY-MM-DD HH24:MI:SS'),100,'AD_Process_DrillRule_Para_UU','AD_Process_DrillRule_Para_UU','AD_Process_DrillRule_Para_UU','D','7db65d50-a7f5-4c47-b7a2-365568ae7551') +; + +-- Apr 6, 2022, 2:49:57 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214750,0.0,'AD_Process_DrillRule_Para_UU',200336,'AD_Process_DrillRule_Para_UU',36,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:57','YYYY-MM-DD HH24:MI:SS'),100,203572,'N','N','D','N','ac660503-7779-406e-81d1-5d1bab1241f9','N') +; + +-- Apr 6, 2022, 2:49:57 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN ad_process_drillrule_para_uu character varying(36) COLLATE pg_catalog."default" DEFAULT NULL::character varying +; + +-- Apr 6, 2022, 2:49:58 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214751,0.0,'Default To Parameter','Default value of the to parameter','The default value can be a variable like @#Date@ ',200336,'ParameterToDefault',255,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:57','YYYY-MM-DD HH24:MI:SS'),100,202621,'Y','N','D','N','82c6f4d8-e611-4b13-944f-2bf5f42bd768','N','N') +; + +-- Apr 6, 2022, 2:49:58 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN parametertodefault character varying(255) COLLATE pg_catalog."default" DEFAULT NULL::character varying +; + +-- Apr 6, 2022, 2:49:58 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD CONSTRAINT ad_process_drillrule_para_pkey PRIMARY KEY (ad_process_drillrule_id, ad_process_para_id) +; + +-- Apr 6, 2022, 2:49:58 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD CONSTRAINT adprocess_addrillrulepara FOREIGN KEY (ad_process_drillrule_id) REFERENCES adempiere.ad_process_drillrule (ad_process_drillrule_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED +; + +-- Apr 6, 2022, 2:49:58 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD CONSTRAINT adprocesspara_adschedulerpara FOREIGN KEY (ad_process_para_id) REFERENCES adempiere.ad_process_para (ad_process_para_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED +; + +-- Apr 6, 2022, 2:49:59 PM CEST +ALTER TABLE IF EXISTS adempiere.ad_process_drillrule_para OWNER to adempiere +; + +-- Apr 6, 2022, 2:49:59 PM CEST +CREATE UNIQUE INDEX IF NOT EXISTS ad_process_drillrule_para_uu_idx ON adempiere.ad_process_drillrule_para USING btree (ad_process_drillrule_para_uu COLLATE pg_catalog."default" ASC NULLS LAST) TABLESPACE pg_default +; + +-- Apr 6, 2022, 2:51:06 PM CEST +INSERT INTO AD_Window (AD_Window_ID,Name,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,WindowType,Processing,EntityType,IsSOTrx,IsDefault,WinHeight,WinWidth,IsBetaFunctionality,AD_Window_UU) VALUES (200123,'Drill Rule',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:51:06','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:51:06','YYYY-MM-DD HH24:MI:SS'),100,'M','N','D','Y','N',0,0,'N','91407fde-0a29-41fd-b44c-aff7070f94ec') +; + +-- Apr 6, 2022, 2:55:04 PM CEST +INSERT INTO AD_Tab (AD_Tab_ID,Name,AD_Window_ID,SeqNo,IsSingleRow,AD_Table_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,HasTree,IsInfoTab,IsTranslationTab,IsReadOnly,Processing,ImportFields,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU,TreeDisplayedOn,IsLookupOnlySelection,IsAllowAdvancedLookup,MaxQueryRecords) VALUES (200308,'Drill Rule',200123,10,'Y',200335,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:04','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:04','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N','N',0,'N','D','Y','N','1c99e0b5-4718-463a-a0e7-bf8432d1b70e','B','N','Y',0) +; + +-- Apr 6, 2022, 2:55:25 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (206921,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200308,214723,'Y',10,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:25','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:25','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','5dcf564e-4dfd-4861-94e0-96e072e9c4a9','N',2) +; + +-- Apr 6, 2022, 2:55:25 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsAllowCopy,IsDisplayedGrid,XPosition,ColumnSpan) VALUES (206922,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200308,214724,'Y',10,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:25','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:25','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','860d79ca-5019-4b3f-87f5-411f7715fdc2','Y','N',4,2) +; + +-- Apr 6, 2022, 2:55:26 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206923,'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.',200308,214730,'Y',60,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:25','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:25','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','1c1f603b-1d53-4ed4-8b33-0e2c8e285538','Y',10,5) +; + +-- Apr 6, 2022, 2:55:26 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206924,'Description','Optional short description of the record','A description is limited to 255 characters.',200308,214731,'Y',255,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:26','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:26','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','84693c4f-75a8-4df8-882b-73f357961ae2','Y',20,5) +; + +-- Apr 6, 2022, 2:55:26 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (206925,'Drill Rule',200308,214722,'N',10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:26','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:26','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','6487a092-0a7c-4d9c-9cc7-f6bea064af07','N',2) +; + +-- Apr 6, 2022, 2:55:27 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206926,'Show Help',200308,214732,'Y',1,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:26','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:26','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','e391bd8f-d510-4974-86d3-cb28df01455c','Y',30,2) +; + +-- Apr 6, 2022, 2:55:27 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206927,'Process','Process or Report','The Process field identifies a unique Process or Report in the system.',200308,214733,'Y',10,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:27','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','7c6ecc52-f2b7-42cc-a78e-80ca01928c01','Y',40,2) +; + +-- Apr 6, 2022, 2:55:27 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206928,'Table','Database Table information','The Database Table provides the information of the table definition',200308,214734,'Y',10,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:27','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f351d63e-611f-4a5b-80ed-7e78e73a00cd','Y',50,2) +; + +-- Apr 6, 2022, 2:55:27 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206929,'Report View','View used to generate this report','The Report View indicates the view used to generate this report.',200308,214735,'Y',10,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:27','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','117f2b2c-1719-4ff3-b7c5-c8da0b9f2cd0','Y',60,2) +; + +-- Apr 6, 2022, 2:55:28 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206930,'Print Format','Data Print Format','The print format determines how data is rendered for print.',200308,214736,'Y',10,90,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:27','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','84e95705-785f-44b4-b966-48d10fb766a6','Y',70,2) +; + +-- Apr 6, 2022, 2:55:28 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (206932,'AD_Process_DrillRule_UU',200308,214738,'N',36,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:28','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:28','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','7dcb0cd5-450c-4642-b213-2a0cf2dc2ddb','N',2) +; + +-- Apr 6, 2022, 2:55:29 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206933,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200308,214725,'Y',1,110,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:28','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:28','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','221d1536-dd3e-4279-afb9-b2592ab008f3','Y',90,2,2) +; + +-- Apr 6, 2022, 2:56:56 PM CEST +INSERT INTO AD_Tab (AD_Tab_ID,Name,AD_Window_ID,SeqNo,IsSingleRow,AD_Table_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,HasTree,IsInfoTab,IsTranslationTab,IsReadOnly,AD_Column_ID,Processing,ImportFields,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU,TreeDisplayedOn,IsLookupOnlySelection,IsAllowAdvancedLookup,MaxQueryRecords) VALUES (200309,'Drill Rule Parameter',200123,20,'Y',200336,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:56:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:56:56','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',214739,'N','N',0,'N','D','Y','N','cf646be0-5bd7-4d8e-9ede-185fec8f6b64','B','N','Y',0) +; + +-- Apr 6, 2022, 2:57:05 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (206934,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200309,214741,'Y',10,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:57:05','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:57:05','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','7a31d9d5-18f9-4901-827e-368ec8d94ee4','N',2) +; + +-- Apr 6, 2022, 2:57:06 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsAllowCopy,IsDisplayedGrid,XPosition,ColumnSpan) VALUES (206935,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200309,214742,'Y',10,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:57:05','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:57:05','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','19e03e36-0698-4ec2-bcf1-2a477e02c028','Y','N',4,2) +; + +-- Apr 6, 2022, 2:57:06 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206936,'Description','Optional short description of the record','A description is limited to 255 characters.',200309,214749,'Y',255,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:57:06','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:57:06','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','5328039c-28f7-41ec-8753-9bd40fef703b','Y',10,5) +; + +-- Apr 6, 2022, 2:57:06 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206937,'Drill Rule',200309,214739,'Y',10,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:57:06','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:57:06','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','c375dd96-6b77-4d57-8bd4-3783ad332aa3','Y',20,2) +; + +-- Apr 6, 2022, 2:57:07 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206939,'Default Parameter','Default value of the parameter','The default value can be a variable like @#Date@ ',200309,214748,'Y',255,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:57:07','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:57:07','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','cec431e5-61c2-46d3-b3d6-266b0c10c57b','Y',30,5) +; + +-- Apr 6, 2022, 2:57:07 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (206940,'AD_Process_DrillRule_Para_UU',200309,214750,'N',36,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:57:07','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:57:07','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','56105b60-807f-4790-bddb-4d44f1a45706','N',2) +; + +-- Apr 6, 2022, 2:57:07 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206941,'Default To Parameter','Default value of the to parameter','The default value can be a variable like @#Date@ ',200309,214751,'Y',255,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:57:07','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:57:07','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','86b3b8c8-7d82-4ef4-864d-c6cb69b1570f','Y',40,5) +; + +-- Apr 6, 2022, 2:57:08 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206942,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200309,214743,'Y',1,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:57:07','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:57:07','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','b4bb1db1-e2da-41e2-a573-cb3c1bb4f0a7','Y',50,2,2) +; + +-- Apr 6, 2022, 3:02:36 PM CEST +INSERT INTO AD_Menu (AD_Menu_ID,Name,"action",AD_Window_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSummary,IsSOTrx,IsReadOnly,EntityType,IsCentrallyMaintained,AD_Menu_UU) VALUES (200201,'Drill Rule','W',200123,0,0,'Y',TO_TIMESTAMP('2022-04-06 15:02:36','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 15:02:36','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','D','Y','732c12fb-276b-445d-a3ba-e984dfb22cbf') +; + +-- Apr 6, 2022, 3:02:36 PM CEST +INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', statement_timestamp(), 100, statement_timestamp(), 100,t.AD_Tree_ID, 200201, 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=200201) +; + +-- Apr 6, 2022, 3:15:18 PM CEST +UPDATE AD_Table SET AccessLevel='3',Updated=TO_TIMESTAMP('2022-04-06 15:15:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200336 +; + +-- Apr 6, 2022, 3:16:16 PM CEST +UPDATE AD_Table SET AccessLevel='3',Updated=TO_TIMESTAMP('2022-04-06 15:16:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200335 +; + +-- Apr 6, 2022, 3:18:32 PM CEST +UPDATE AD_Table SET AD_Window_ID=200123,Updated=TO_TIMESTAMP('2022-04-06 15:18:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200335 +; + +-- Apr 6, 2022, 3:20:07 PM CEST +UPDATE AD_Table SET AD_Window_ID=200123,Updated=TO_TIMESTAMP('2022-04-06 15:20:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200336 +; + +-- Apr 6, 2022, 3:22:03 PM CEST +UPDATE AD_Window SET WinWidth=NULL,Updated=TO_TIMESTAMP('2022-04-06 15:22:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=200123 +; + +-- Apr 6, 2022, 3:55:00 PM CEST +UPDATE AD_Tab SET TabLevel=1,Updated=TO_TIMESTAMP('2022-04-06 15:55:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200309 +; + +-- Apr 6, 2022, 4:03:52 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206943,'System Element','System Element enables the central maintenance of column description and help.','The System Element allows for the central maintenance of help, descriptions and terminology for a database column.',200308,214752,'Y',10,120,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 16:03:52','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 16:03:52','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','a7e4e6f0-34b4-41f4-a92b-5928d30b4f10','Y',100,2) +; + +-- Apr 6, 2022, 4:23:18 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206944,'Process Parameter',200309,214753,'Y',10,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 16:23:18','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 16:23:18','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','3aaa0900-2afb-4fb9-bda7-0e5310e8013e','Y',60,2) +; + +-- Apr 7, 2022, 2:24:36 PM CEST +UPDATE AD_Column SET AD_Val_Rule_ID=186,Updated=TO_TIMESTAMP('2022-04-07 14:24:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214753 +; + +-- Apr 7, 2022, 2:27:03 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:27:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206944 +; + +-- Apr 7, 2022, 2:27:03 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=2, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:27:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206942 +; + +-- Apr 7, 2022, 2:27:03 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=70, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:27:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206936 +; + +-- Apr 7, 2022, 2:27:03 PM CEST +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:27:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206940 +; + +-- Apr 7, 2022, 2:27:03 PM CEST +UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:27:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206937 +; + +-- Apr 7, 2022, 2:28:07 PM CEST +UPDATE AD_Column SET IsUpdateable='Y',Updated=TO_TIMESTAMP('2022-04-07 14:28:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214735 +; + +-- Apr 7, 2022, 2:30:26 PM CEST +UPDATE AD_Field SET SeqNo=50, AD_FieldGroup_ID=113, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:30:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206928 +; + +-- Apr 7, 2022, 2:30:26 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=5, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:30:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206933 +; + +-- Apr 7, 2022, 2:30:26 PM CEST +UPDATE AD_Field SET SeqNo=70, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:30:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206929 +; + +-- Apr 7, 2022, 2:30:26 PM CEST +UPDATE AD_Field SET SeqNo=80, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:30:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206930 +; + +-- Apr 7, 2022, 2:30:26 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=90, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:30:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206943 +; + +-- Apr 7, 2022, 2:30:26 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=100, AD_FieldGroup_ID=114, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:30:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206927 +; + +-- Apr 7, 2022, 2:30:26 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=110, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:30:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206926 +; + +-- Apr 7, 2022, 2:30:26 PM CEST +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:30:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206932 +; + +-- Apr 7, 2022, 2:30:26 PM CEST +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:30:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206925 +; + +-- Apr 7, 2022, 2:33:23 PM CEST +UPDATE AD_Field SET SeqNo=10, IsReadOnly='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:33:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206934 +; + +-- Apr 7, 2022, 2:33:35 PM CEST +UPDATE AD_Field SET SeqNo=10, IsReadOnly='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:33:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206921 +; + +-- Apr 11, 2022, 8:58:19 AM CEST +UPDATE AD_Column SET IsParent='Y', IsUpdateable='N',Updated=TO_TIMESTAMP('2022-04-11 08:58:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214753 +; + +-- Apr 11, 2022, 8:58:27 AM CEST +UPDATE AD_Column SET IsParent='Y', IsUpdateable='N',Updated=TO_TIMESTAMP('2022-04-11 08:58:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214739 +; + +-- Apr 22, 2022, 4:22:51 PM CEST +INSERT INTO AD_ToolBarButton (AD_Client_ID,AD_Org_ID,Created,CreatedBy,ComponentName,IsActive,AD_ToolBarButton_ID,Name,Updated,UpdatedBy,IsCustomization,AD_ToolBarButton_UU,Action,AD_Tab_ID,AD_Process_ID,SeqNo,EntityType) VALUES (0,0,TO_TIMESTAMP('2022-04-22 16:22:50','YYYY-MM-DD HH24:MI:SS'),100,'Captured Process Parameter','Y',200119,'Captured Process Parameter',TO_TIMESTAMP('2022-04-22 16:22:50','YYYY-MM-DD HH24:MI:SS'),100,'N','588e50d2-2ee5-4007-8fa1-7f60ac1767f1','W',200308,200064,10,'D') +; + +-- Apr 22, 2022, 4:38:34 PM CEST +INSERT INTO AD_Message (MsgType,MsgText,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Drill Assistant',0,0,'Y',TO_TIMESTAMP('2022-04-22 16:38:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-22 16:38:34','YYYY-MM-DD HH24:MI:SS'),100,200744,'DrillAssistant','D','9834ddc4-e261-4a92-84f5-da6ebca72822') +; + +-- Apr 22, 2022, 4:38:51 PM CEST +INSERT INTO AD_Message (MsgType,MsgText,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Drill Column',0,0,'Y',TO_TIMESTAMP('2022-04-22 16:38:51','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-22 16:38:51','YYYY-MM-DD HH24:MI:SS'),100,200745,'DrillColumn','D','b36997cf-a012-4e9f-9711-b051b44d05cc') +; + +-- Apr 25, 2022, 10:40:00 AM CEST +UPDATE AD_Table SET AccessLevel='6',Updated=TO_TIMESTAMP('2022-04-25 10:40:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200335 +; + +-- Apr 25, 2022, 10:40:07 AM CEST +UPDATE AD_Table SET AccessLevel='6',Updated=TO_TIMESTAMP('2022-04-25 10:40:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200336 +; + +-- Apr 25, 2022, 11:21:19 AM CEST +INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,Name,Type,Code,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Val_Rule_UU) VALUES (200158,'AD_ReportView of AD_Table','S','AD_ReportView.AD_Table_ID = @AD_Table_ID@',0,0,'Y',TO_TIMESTAMP('2022-04-25 11:21:19','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-25 11:21:19','YYYY-MM-DD HH24:MI:SS'),100,'D','cd974660-b27f-499c-a6e9-e9f959510395') +; + +-- Apr 25, 2022, 11:22:01 AM CEST +INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,Name,Type,Code,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Val_Rule_UU) VALUES (200159,'AD_PrintFormat of AD_ReportView','S','AD_PrintFormat.AD_ReportView_ID = @AD_ReportView_ID@',0,0,'Y',TO_TIMESTAMP('2022-04-25 11:22:01','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-25 11:22:01','YYYY-MM-DD HH24:MI:SS'),100,'D','83bb8e51-dc05-47b8-b3e0-f0d54d410e63') +; + +-- Apr 25, 2022, 11:22:28 AM CEST +UPDATE AD_Column SET AD_Val_Rule_ID=200158,Updated=TO_TIMESTAMP('2022-04-25 11:22:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214735 +; + +-- Apr 25, 2022, 11:22:48 AM CEST +UPDATE AD_Column SET AD_Val_Rule_ID=200159,Updated=TO_TIMESTAMP('2022-04-25 11:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214736 +; + +-- May 25, 2022, 3:13:27 PM CEST +INSERT INTO AD_Table (AD_Table_ID,Name,AD_Window_ID,TableName,LoadSeq,AccessLevel,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSecurityEnabled,IsDeleteable,IsHighVolume,IsView,EntityType,ImportTable,IsChangeLog,ReplicationType,CopyColumnsFromTable,IsCentrallyMaintained,AD_Table_UU,Processing,DatabaseViewDrop,CopyComponentsFromView,CreateWindowFromTable) VALUES (200349,'Drill Rule Trl',200123,'AD_Process_DrillRule_Trl',0,'3',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:13:26','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:13:26','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','N','D','N','N','L','N','Y','238cf5eb-d915-48d0-a1e6-df5cb52415e7','N','N','N','N') +; + +-- May 25, 2022, 3:13:27 PM CEST +INSERT INTO AD_Sequence (Name,CurrentNext,IsAudited,StartNewYear,Description,IsActive,IsTableID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Sequence_ID,IsAutoSequence,StartNo,IncrementNo,CurrentNextSys,AD_Sequence_UU) VALUES ('AD_Process_DrillRule_Trl',1000000,'N','N','Table AD_Process_DrillRule_Trl','Y','Y',0,0,TO_TIMESTAMP('2022-05-25 15:13:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:13:27','YYYY-MM-DD HH24:MI:SS'),100,200417,'Y',1000000,1,200000,'47e13bfc-592c-451a-9de8-0116ebd61a14') +; + +-- May 25, 2022, 3:14:52 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214917,0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200349,129,'AD_Client_ID','@#AD_Client_ID@',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:14:52','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:14:52','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','N','N','N','Y','0aa5cf91-1216-472a-8cc4-cbdea568233e','N',0,'N','N','D','N') +; + +-- May 25, 2022, 3:14:56 PM CEST +CREATE TABLE AD_Process_DrillRule_Trl (AD_Client_ID NUMBER(10) NOT NULL) +; + +-- May 25, 2022, 3:16:32 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214918,0,'Language','Language for this entity','The Language identifies the language to use for display and formatting',200349,'AD_Language',6,'N','N','Y','N','N',0,'N',18,106,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:16:32','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:16:32','YYYY-MM-DD HH24:MI:SS'),100,109,'N','N','D','N','N','N','Y','623d0880-7b03-4357-96cf-4102d2c1d037','Y',0,'N','N','N','N') +; + +-- May 25, 2022, 3:16:46 PM CEST +UPDATE AD_Column SET FKConstraintName='ADLanguage_ADProcessDrillRuleT', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-05-25 15:16:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214918 +; + +-- May 25, 2022, 3:16:46 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD AD_Language VARCHAR2(6 CHAR) NOT NULL +; + +-- May 25, 2022, 3:16:46 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD CONSTRAINT ADLanguage_ADProcessDrillRuleT FOREIGN KEY (AD_Language) REFERENCES ad_language(ad_language) DEFERRABLE INITIALLY DEFERRED +; + +-- May 25, 2022, 3:17:15 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214919,0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200349,104,'AD_Org_ID','@#AD_Org_ID@',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:17:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:17:14','YYYY-MM-DD HH24:MI:SS'),100,113,'N','N','D','N','N','N','Y','bd5074ec-a162-4337-854f-b3ab811f4b54','N',0,'N','N','D','N') +; + +-- May 25, 2022, 3:17:18 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD AD_Org_ID NUMBER(10) NOT NULL +; + +-- May 25, 2022, 3:17:51 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214920,0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200349,'Created','SYSDATE',7,'N','N','Y','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:17:50','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:17:50','YYYY-MM-DD HH24:MI:SS'),100,245,'N','N','D','N','N','N','Y','76b1ed53-f6d3-4554-9922-412c14df029e','N',0,'N','N','N') +; + +-- May 25, 2022, 3:18:10 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD Created DATE DEFAULT SYSDATE NOT NULL +; + +-- May 25, 2022, 3:19:09 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214921,0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200349,'CreatedBy',22,'N','N','Y','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:19:09','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:19:09','YYYY-MM-DD HH24:MI:SS'),100,246,'N','N','D','N','N','N','Y','80299531-63d4-4d73-a474-d66207e25a70','N',0,'N','N','D','N') +; + +-- May 25, 2022, 3:19:12 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD CreatedBy NUMBER(10) NOT NULL +; + +-- May 25, 2022, 3:20:07 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214922,0,'Description','Optional short description of the record','A description is limited to 255 characters.',200349,'Description',255,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:20:07','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:20:07','YYYY-MM-DD HH24:MI:SS'),100,275,'Y','Y','D','N','N','N','Y','1daf3f54-2df8-48bf-a87e-892cb8f4df02','Y',10,'N','N','N') +; + +-- May 25, 2022, 3:20:20 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD Description VARCHAR2(255 CHAR) DEFAULT NULL +; + +-- May 25, 2022, 3:21:26 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214923,0,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200349,'IsActive','Y',1,'N','N','Y','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:21:26','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:21:26','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','N','N','N','Y','a7ec7506-a7ba-42ae-b1dc-bec723ce7e3b','N',0,'N','N','N') +; + +-- May 25, 2022, 3:21:31 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL +; + +-- May 25, 2022, 3:22:13 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214924,0,'Translated','This column is translated','The Translated checkbox indicates if this column is translated.',200349,'IsTranslated',1,'N','N','Y','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:22:13','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:22:13','YYYY-MM-DD HH24:MI:SS'),100,420,'Y','N','D','N','N','N','Y','27f2296d-a28a-4849-b879-ec434e650c34','Y',0,'N','N','N') +; + +-- May 25, 2022, 3:24:38 PM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203600,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:24:37','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:24:37','YYYY-MM-DD HH24:MI:SS'),100,'AD_Process_DrillRule_Trl_UU','AD_Process_DrillRule_Trl_UU','AD_Process_DrillRule_Trl_UU','D','4af8145b-0ba4-499f-b4af-222bc88e2891') +; + +-- May 25, 2022, 3:25:14 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214925,0,'AD_Process_DrillRule_Trl_UU',200349,'AD_Process_DrillRule_Trl_UU',36,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:25:13','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:25:13','YYYY-MM-DD HH24:MI:SS'),100,203600,'Y','N','D','N','N','N','Y','f1a207cd-ca7e-41c9-ae44-97c928127861','N',0,'N','N','N','N') +; + +-- May 25, 2022, 3:25:38 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD IsTranslated CHAR(1) CHECK (IsTranslated IN ('Y','N')) NOT NULL +; + +-- May 25, 2022, 3:25:38 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD AD_Process_DrillRule_Trl_UU VARCHAR2(36 CHAR) DEFAULT NULL +; + +-- May 25, 2022, 3:25:38 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD CONSTRAINT AD_Process_DrillRule_Trl_uuidx UNIQUE (AD_Process_DrillRule_Trl_UU) +; + +-- May 25, 2022, 3:25:47 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl MODIFY AD_Process_DrillRule_Trl_UU VARCHAR2(36 CHAR) DEFAULT NULL +; + +-- May 25, 2022, 3:27:51 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214926,0,'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.',200349,'Name',255,'N','N','Y','N','Y',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:27:51','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:27:51','YYYY-MM-DD HH24:MI:SS'),100,469,'Y','Y','D','N','N','N','Y','3e17c966-5575-47bc-8b4a-fa6ea20e47fb','Y',20,'N','N','N') +; + +-- May 25, 2022, 3:27:56 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD Name VARCHAR2(255 CHAR) NOT NULL +; + +-- May 25, 2022, 3:29:20 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214927,0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200349,'Updated','SYSDATE',7,'N','N','Y','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:29:20','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:29:20','YYYY-MM-DD HH24:MI:SS'),100,607,'N','N','D','N','N','N','Y','65b7c93a-997a-42a4-818a-5c5a1825e012','N',0,'N','N','N') +; + +-- May 25, 2022, 3:29:27 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD Updated DATE DEFAULT SYSDATE NOT NULL +; + +-- May 25, 2022, 3:29:50 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214928,0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200349,'UpdatedBy',22,'N','N','Y','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:29:50','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:29:50','YYYY-MM-DD HH24:MI:SS'),100,608,'N','N','D','N','N','N','Y','56503a67-4f6d-4086-83e2-daef40e53de1','N',0,'N','N','D','N') +; + +-- May 25, 2022, 3:29:57 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD UpdatedBy NUMBER(10) NOT NULL +; + +-- May 25, 2022, 3:39:21 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintName,FKConstraintType,IsHtml) VALUES (214929,0,'Drill Rule',200349,'AD_Process_DrillRule_ID',22,'N','Y','Y','N','N',0,'N',30,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:39:20','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:39:20','YYYY-MM-DD HH24:MI:SS'),100,203569,'N','N','D','N','N','N','Y','6cba0265-b5f8-4134-850d-d6aa6b042a67','Y',0,'N','N','adprocessdrillrule_trl','C','N') +; + +-- May 25, 2022, 3:39:24 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD AD_Process_DrillRule_ID NUMBER(10) NOT NULL +; + +-- May 25, 2022, 3:39:24 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD CONSTRAINT adprocessdrillrule_trl FOREIGN KEY (AD_Process_DrillRule_ID) REFERENCES ad_process_drillrule(ad_process_drillrule_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED +; + +-- May 25, 2022, 3:47:28 PM CEST +INSERT INTO AD_Tab (AD_Tab_ID,Name,AD_Window_ID,SeqNo,IsSingleRow,AD_Table_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,HasTree,IsInfoTab,IsTranslationTab,IsReadOnly,AD_Column_ID,Processing,ImportFields,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU,TreeDisplayedOn,IsLookupOnlySelection,IsAllowAdvancedLookup,MaxQueryRecords) VALUES (200322,'Drill Rule Translation',200123,30,'Y',200349,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:47:28','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:47:28','YYYY-MM-DD HH24:MI:SS'),100,'N','N','Y','N',214929,'N','N',1,'N','D','Y','N','08a5d1fc-e264-48c6-84d3-dad1cbac8811','B','N','Y',0) +; + +-- May 25, 2022, 3:48:45 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (207063,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200322,214917,'Y',22,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:48:45','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:48:45','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','415b39ab-f8a0-4ebd-9205-ff17e323ea62','N',2) +; + +-- May 25, 2022, 3:48:46 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsAllowCopy,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (207064,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200322,214919,'Y',22,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:48:45','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:48:45','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','ebcd812e-7741-448a-a812-035785229365','Y','Y',10,4,2) +; + +-- May 25, 2022, 3:48:46 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207065,'Drill Rule',200322,214929,'Y',22,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:48:46','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:48:46','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','fbcbc793-12a4-40ea-b738-e0dee2869129','Y',20,2) +; + +-- May 25, 2022, 3:48:46 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207066,'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.',200322,214926,'Y',255,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:48:46','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:48:46','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','79a96976-9ed0-4691-b213-29a827aab39e','Y',30,5) +; + +-- May 25, 2022, 3:48:47 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207067,'Description','Optional short description of the record','A description is limited to 255 characters.',200322,214922,'Y',255,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:48:46','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:48:46','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','ce2cff54-a5c8-4d8c-98f6-1e9de59f3210','Y',40,5) +; + +-- May 25, 2022, 3:48:47 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207068,'Language','Language for this entity','The Language identifies the language to use for display and formatting',200322,214918,'Y',6,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:48:47','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:48:47','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','83c4f092-7083-436b-8858-3d08663b6efa','Y',50,2) +; + +-- May 25, 2022, 3:48:47 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (207069,'Translated','This column is translated','The Translated checkbox indicates if this column is translated.',200322,214924,'Y',1,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:48:47','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:48:47','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','ee3b1016-b121-4f42-a490-9723ec99b431','Y',60,2,2) +; + +-- May 25, 2022, 3:48:47 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (207070,'AD_Process_DrillRule_Trl_UU',200322,214925,'N',36,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:48:47','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:48:47','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','cd371b09-815e-4df7-bda1-cc5b35867ab9','N',2) +; + +-- May 25, 2022, 3:48:48 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (207071,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200322,214923,'Y',1,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:48:47','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:48:47','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f63a8890-9ddb-440b-988e-069a95d8a541','Y',70,2,2) +; + +-- May 25, 2022, 3:50:39 PM CEST +UPDATE AD_Column SET IsTranslated='Y',Updated=TO_TIMESTAMP('2022-05-25 15:50:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214730 +; + +-- May 25, 2022, 3:50:47 PM CEST +UPDATE AD_Column SET IsTranslated='Y',Updated=TO_TIMESTAMP('2022-05-25 15:50:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214731 +; + +-- May 26, 2022, 12:13:49 PM CEST +UPDATE AD_Tab SET IsInsertRecord='N',Updated=TO_TIMESTAMP('2022-05-26 12:13:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200322 +; + +-- Jun 3, 2022, 4:13:05 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214930,0,'Column','Column in the table','Link to the database column of the table',200335,'AD_Column_ID',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-06-03 16:13:05','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-03 16:13:05','YYYY-MM-DD HH24:MI:SS'),100,104,'Y','N','D','N','N','N','Y','73a5f907-95a5-4043-a35a-898dfd6089af','Y',0,'N','N','N','N') +; + +-- Jun 3, 2022, 4:13:10 PM CEST +UPDATE AD_Column SET FKConstraintName='ADColumn_ADProcessDrillRule', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-06-03 16:13:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214930 +; + +-- Jun 3, 2022, 4:13:10 PM CEST +ALTER TABLE AD_Process_DrillRule ADD AD_Column_ID NUMBER(10) NOT NULL +; + +-- Jun 3, 2022, 4:20:24 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (207072,'Column','Column in the table','Link to the database column of the table',200308,214930,'Y',0,120,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-03 16:20:24','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-03 16:20:24','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','796de252-df4b-46f5-839d-e905b909f3aa','Y',110,1,1,1,'N','N','N','N') +; + +-- Jun 3, 2022, 4:31:34 PM CEST +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=206943 +; + +-- Jun 3, 2022, 4:31:35 PM CEST +DELETE FROM AD_Field WHERE AD_Field_ID=206943 +; + +-- Jun 3, 2022, 4:32:29 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=90, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, ColumnSpan=2, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-03 16:32:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207072 +; + +-- Jun 3, 2022, 4:32:29 PM CEST +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-03 16:32:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206926 +; + +-- Jun 3, 2022, 4:32:53 PM CEST +ALTER TABLE AD_Process_DrillRule DROP COLUMN AD_Element_ID +; + +-- Jun 3, 2022, 4:32:56 PM CEST +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=214752 +; + +-- Jun 3, 2022, 4:32:56 PM CEST +DELETE FROM AD_Column WHERE AD_Column_ID=214752 +; + +-- Jun 3, 2022, 4:56:13 PM CEST +UPDATE AD_Column SET AD_Val_Rule_ID=100,Updated=TO_TIMESTAMP('2022-06-03 16:56:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214930 +; + +-- Jun 13, 2022, 3:56:41 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=110, AD_FieldGroup_ID=114, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-13 15:56:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206926 +; + +-- Jun 13, 2022, 4:12:27 PM CEST +UPDATE AD_Column SET DefaultValue='S',Updated=TO_TIMESTAMP('2022-06-13 16:12:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214732 +; + +-- Jun 16, 2022, 10:00:03 AM CEST +INSERT INTO AD_Message (MsgType,MsgText,MsgTip,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Cannot find Drill Across for Column in Tables.','You can enable Drill Across in Application Dictionary as System User in the Table window.',0,0,'Y',TO_TIMESTAMP('2022-06-16 10:00:02','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-16 10:00:02','YYYY-MM-DD HH24:MI:SS'),100,200761,'NoTableWithDrillOptions','D','22c1a70e-5ba7-4d22-a84c-db19c552b693') +; + +-- Jun 16, 2022, 10:01:24 AM CEST +INSERT INTO AD_Message (MsgType,MsgText,MsgTip,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Cannot find Drill Rule for the selected Column.','You can define new definitions in Drill Rule window.',0,0,'Y',TO_TIMESTAMP('2022-06-16 10:01:24','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-16 10:01:24','YYYY-MM-DD HH24:MI:SS'),100,200762,'NoDrillRuleFound','D','6953574e-88f7-4d13-9914-ee36e2dd3bf9') +; + +-- Jun 16, 2022, 2:03:49 PM CEST +UPDATE AD_Column SET Callout='org.cloudempiere.model.CalloutProcessDrillRule.process',Updated=TO_TIMESTAMP('2022-06-16 14:03:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214733 +; + +-- Jun 16, 2022, 2:04:36 PM CEST +UPDATE AD_Column SET AD_Val_Rule_ID=128,Updated=TO_TIMESTAMP('2022-06-16 14:04:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214733 +; + +-- Jun 16, 2022, 2:08:50 PM CEST +UPDATE AD_Field SET IsReadOnly='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-16 14:08:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206928 +; + +-- Jun 16, 2022, 3:29:53 PM CEST +INSERT INTO AD_Tab_Customization (AD_Client_ID,AD_Org_ID,AD_Tab_Customization_ID,AD_Tab_ID,AD_User_ID,Created,CreatedBy,Custom,IsActive,Updated,UpdatedBy,AD_Tab_Customization_UU,IsQuickForm) VALUES (11,0,200000,200309,100,TO_TIMESTAMP('2022-06-16 15:29:52','YYYY-MM-DD HH24:MI:SS'),100,'206937,206944,206939,206942,206936,206941','Y',TO_TIMESTAMP('2022-06-16 15:29:52','YYYY-MM-DD HH24:MI:SS'),100,'373b146c-85ce-4a24-8648-a2785472528a','N') +; + +-- Jun 24, 2022, 4:18:53 PM CEST +UPDATE AD_Table SET IsShowInDrillOptions = 'Y', UPDATED=TO_TIMESTAMP('2022-06-16 15:29:52','YYYY-MM-DD HH24:MI:SS') +WHERE TableName IN('C_AllocationHdr','C_AllocationLine','C_BankStatement','C_BankStatementLine','C_BankTransfer','C_Invoice','C_InvoiceLine','C_Order','C_OrderLine','C_Payment','C_PaymentAllocate', +'C_Project','C_ProjectLine','C_ProjectIssue','C_RfQ','C_RfQLine','GL_Journal','GL_JournalLine','M_InOut','M_InOutLine','M_Inventory','M_InventoryLine','M_Movement','M_MovementLine', +'M_Production','M_ProductionLine','M_Requisition','M_RequisitionLine','M_RMA','M_RMALine','R_Request') +; + +-- Jun 27, 2022, 9:16:01 AM CEST +INSERT INTO AD_Message (MsgType,MsgText,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Drill Key Parameter is Not Set',0,0,'Y',TO_TIMESTAMP('2022-06-27 09:16:01','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-27 09:16:01','YYYY-MM-DD HH24:MI:SS'),100,200766,'NoDrillKeyParameterSet','D','afe60283-10a3-446b-a557-b0003c457ee4') +; + +-- Jun 27, 2022, 9:47:33 AM CEST +INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,Name,Description,Type,Code,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Val_Rule_UU) VALUES (200160,'AD_Column of AD_Process_Para in AD_Table','Table must be previously defined','S','AD_Column.AD_Table_ID=@AD_Table_ID@ AND AD_Column.ColumnName IN ( +SELECT ColumnName FROM AD_Process_Para WHERE AD_Process_ID = @AD_Process_ID@ +)',0,0,'Y',TO_TIMESTAMP('2022-06-27 09:47:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-27 09:47:33','YYYY-MM-DD HH24:MI:SS'),100,'D','93841ae5-8071-444c-b626-efdf06798b13') +; + +-- Jun 27, 2022, 9:48:56 AM CEST +UPDATE AD_Column SET AD_Val_Rule_ID=200160,Updated=TO_TIMESTAMP('2022-06-27 09:48:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214930 +; + +-- Jun 28, 2022, 12:07:13 PM CEST +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=207072 +; + +-- Jun 28, 2022, 12:07:13 PM CEST +DELETE FROM AD_Field WHERE AD_Field_ID=207072 +; + +-- Jun 28, 2022, 12:07:35 PM CEST +ALTER TABLE AD_Process_DrillRule DROP COLUMN AD_Column_ID +; + +-- Jun 28, 2022, 12:08:06 PM CEST +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=214930 +; + +-- Jun 28, 2022, 12:08:06 PM CEST +DELETE FROM AD_Column WHERE AD_Column_ID=214930 +; + +-- Jun 28, 2022, 12:29:34 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,AD_Val_Rule_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214967,0,'Process Parameter',200335,186,'AD_Process_Para_ID',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-06-28 12:29:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-28 12:29:33','YYYY-MM-DD HH24:MI:SS'),100,118,'Y','N','D','N','N','N','Y','a793c423-1a45-4fd7-95a0-d03bfb6c6f94','Y',0,'N','N','N') +; + +-- Jun 28, 2022, 12:30:40 PM CEST +UPDATE AD_Column SET FKConstraintName='ADProcessPara_ADProcessDrillRu', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-06-28 12:30:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214967 +; + +-- Jun 28, 2022, 12:30:40 PM CEST +ALTER TABLE AD_Process_DrillRule ADD AD_Process_Para_ID NUMBER(10) NOT NULL +; + +-- Jun 28, 2022, 12:32:12 PM CEST +ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT ADProcessPara_ADProcessDrillRu FOREIGN KEY (AD_Process_Para_ID) REFERENCES ad_process_para(ad_process_para_id) DEFERRABLE INITIALLY DEFERRED +; + +-- Jun 28, 2022, 12:38:29 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (207109,'Process Parameter',200308,214967,'Y',0,110,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-28 12:38:29','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-28 12:38:29','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','6dbd8833-4d79-4312-a7b4-5ccc05af8f12','Y',100,1,1,1,'N','N','N','N') +; + +-- Jun 28, 2022, 12:39:27 PM CEST +UPDATE AD_Field SET SeqNo=110, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, ColumnSpan=2, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-28 12:39:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207109 +; + +-- Jun 28, 2022, 2:31:48 PM CEST +INSERT INTO AD_Message (MsgType,MsgText,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Fill Mandatory Drill Rule Parameters',0,0,'Y',TO_TIMESTAMP('2022-06-28 14:31:48','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-28 14:31:48','YYYY-MM-DD HH24:MI:SS'),100,200767,'FillMandatoryDrillRulePara','D','115f5fac-3645-4f9f-af30-050dda684d24') +; + diff --git a/migration/iD10/oracle/202205270955_IDEMPIERE-5302.sql b/migration/iD10/oracle/202205270955_IDEMPIERE-5302.sql new file mode 100644 index 0000000000..89b1a42a68 --- /dev/null +++ b/migration/iD10/oracle/202205270955_IDEMPIERE-5302.sql @@ -0,0 +1,22 @@ +-- IDEMPIERE-5302 +SELECT register_migration_script('202205270955_IDEMPIERE-5302.sql') FROM dual; + +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- May 27, 2022, 9:55:11 AM CEST +INSERT INTO AD_TableIndex (AD_Client_ID,AD_Org_ID,AD_TableIndex_ID,AD_TableIndex_UU,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,AD_Table_ID,IsCreateConstraint,IsUnique,Processing,TableIndexDrop,IsKey) VALUES (0,0,201122,'d60d3d3f-33ce-4186-b160-b567ae53e478',TO_TIMESTAMP('2022-05-27 09:55:10','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','AD_Process_DrillRule_Trl_pkey',TO_TIMESTAMP('2022-05-27 09:55:10','YYYY-MM-DD HH24:MI:SS'),100,200349,'Y','Y','N','N','Y') +; + +-- May 27, 2022, 9:55:29 AM CEST +INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201499,'85a6b307-66bb-4905-a9c6-7eff6e438b6d',TO_TIMESTAMP('2022-05-27 09:55:29','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2022-05-27 09:55:29','YYYY-MM-DD HH24:MI:SS'),100,214929,201122,10) +; + +-- May 27, 2022, 9:55:38 AM CEST +INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201500,'489493fb-35a5-4083-b3df-baa69901cc65',TO_TIMESTAMP('2022-05-27 09:55:38','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2022-05-27 09:55:38','YYYY-MM-DD HH24:MI:SS'),100,214918,201122,20) +; + +-- May 27, 2022, 9:55:40 AM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD CONSTRAINT AD_Process_DrillRule_Trl_pkey PRIMARY KEY (AD_Process_DrillRule_ID,AD_Language) +; + diff --git a/migration/iD10/oracle/202206220912_IDEMPIERE-5302.sql b/migration/iD10/oracle/202206220912_IDEMPIERE-5302.sql new file mode 100644 index 0000000000..0870b8c835 --- /dev/null +++ b/migration/iD10/oracle/202206220912_IDEMPIERE-5302.sql @@ -0,0 +1,38 @@ +-- IDEMPIERE-5302 +SELECT register_migration_script('202206220912_IDEMPIERE-5302.sql') FROM dual; + +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- Jun 22, 2022, 9:12:45 AM CEST +INSERT INTO AD_FieldGroup (AD_FieldGroup_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,EntityType,FieldGroupType,IsCollapsedByDefault,AD_FieldGroup_UU) VALUES (200029,0,0,'Y',TO_TIMESTAMP('2022-06-22 09:12:44','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-22 09:12:44','YYYY-MM-DD HH24:MI:SS'),100,'Source','D','C','N','7227d406-b09d-4b60-9169-8330e99b724d') +; + +-- Jun 22, 2022, 9:15:07 AM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-22 09:15:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206927 +; + +-- Jun 22, 2022, 9:15:07 AM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-22 09:15:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206926 +; + +-- Jun 22, 2022, 9:15:07 AM CEST +UPDATE AD_Field SET SeqNo=70, AD_FieldGroup_ID=200029, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-22 09:15:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206928 +; + +-- Jun 22, 2022, 9:15:07 AM CEST +UPDATE AD_Field SET SeqNo=80, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-22 09:15:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206933 +; + +-- Jun 22, 2022, 9:15:07 AM CEST +UPDATE AD_Field SET SeqNo=90, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-22 09:15:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206929 +; + +-- Jun 22, 2022, 9:15:07 AM CEST +UPDATE AD_Field SET SeqNo=100, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-22 09:15:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206930 +; + +-- Jun 22, 2022, 9:15:07 AM CEST +UPDATE AD_Field SET SeqNo=110, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-22 09:15:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207072 +; + diff --git a/migration/iD10/postgresql/202205251513_IDEMPIERE-5302.sql b/migration/iD10/postgresql/202205251513_IDEMPIERE-5302.sql new file mode 100644 index 0000000000..b88011b3e4 --- /dev/null +++ b/migration/iD10/postgresql/202205251513_IDEMPIERE-5302.sql @@ -0,0 +1,944 @@ +-- IDEMPIERE-5302 +SELECT register_migration_script('202205251513_IDEMPIERE-5302.sql') FROM dual; + +INSERT INTO ad_element(ad_element_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, columnname, entitytype, name, printname, description, help, po_name, po_printname, po_description, po_help, ad_element_uu, placeholder) VALUES (203568, 0, 0, 'Y', TO_TIMESTAMP('2022-04-06 12:43:12','YYYY-MM-DD HH24:MI:SS'), 100, TO_TIMESTAMP('2022-04-06 12:45:43','YYYY-MM-DD HH24:MI:SS'), 100, 'IsShowInDrillOptions', 'D', 'Show In Drill Options', 'Show In Drill Options', 'This parameter enables the table is displayed in Report Viewer Drill options list', NULL, NULL, NULL, NULL, NULL, '42e1bc41-4d1b-491b-b1a3-6a63fc8a76c2', NULL); + +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214721,0,'Show In Drill Options','This parameter enables the table is displayed in Report Viewer Drill options list',NULL,100,'IsShowInDrillOptions',1,'N','N','N','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2022-04-06 12:52:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 13:23:14','YYYY-MM-DD HH24:MI:SS'),100,203568,'Y','N','D','N','N','N','Y','9e728d8a-e625-480c-b609-c25bac5266f3','Y',0,'N','N','N','N'); + +-- Apr 6, 2022, 1:21:07 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206920,'Show In Drill Options','This parameter enables the table is displayed in Report Viewer Drill options list',100,214721,'Y',1,240,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 13:21:07','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 13:21:07','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','dc30834f-3921-4800-989b-d96e11cf1cc4','Y',200,2,2) +; + +-- Apr 6, 2022, 1:21:30 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=240, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=5, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-06 13:21:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206920 +; + +ALTER TABLE AD_Table ADD COLUMN IsShowInDrillOptions character(1) DEFAULT 'N'; + +-- Apr 6, 2022, 1:23:14 PM CEST +UPDATE AD_Column SET DefaultValue='Y',Updated=TO_TIMESTAMP('2022-04-06 13:23:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214721 +; + +-- Apr 6, 2022, 1:23:20 PM CEST +INSERT INTO t_alter_column values('ad_table','IsShowInDrillOptions','CHAR(1)',null,'Y') +; + +-- Apr 6, 2022, 2:46:56 PM CEST +INSERT INTO AD_Table (AD_Table_ID,Name,TableName,LoadSeq,AccessLevel,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSecurityEnabled,IsDeleteable,IsHighVolume,IsView,EntityType,ImportTable,IsChangeLog,ReplicationType,CopyColumnsFromTable,IsCentrallyMaintained,AD_Table_UU,Processing,DatabaseViewDrop,CopyComponentsFromView,CreateWindowFromTable,IsShowInDrillOptions) VALUES (200335,'Drill Rule','AD_Process_DrillRule',0,'4',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:46:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:46:56','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','N','D','N','Y','L','N','Y','83361033-2aa3-41d6-9de5-1ce897245dde','N','N','N','N','Y') +; + +-- Apr 6, 2022, 2:46:56 PM CEST +INSERT INTO AD_Sequence (Name,CurrentNext,IsAudited,StartNewYear,Description,IsActive,IsTableID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Sequence_ID,IsAutoSequence,StartNo,IncrementNo,CurrentNextSys,AD_Sequence_UU) VALUES ('AD_Process_DrillRule',1000000,'N','N','Table AD_Process_DrillRule','Y','Y',0,0,TO_TIMESTAMP('2022-04-06 14:46:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:46:56','YYYY-MM-DD HH24:MI:SS'),100,200404,'Y',1000000,1,200000,'ca0fd3a7-124d-48f9-b00a-e554f0e79fe4') +; + +-- Apr 6, 2022, 2:47:08 PM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203569,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:08','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:08','YYYY-MM-DD HH24:MI:SS'),100,'AD_Process_DrillRule_ID','Drill Rule','Drill Rule','D','0c9e8965-941a-46f7-be4e-5794df9dfc9d') +; + +-- Apr 6, 2022, 2:47:08 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214722,0.0,'Drill Rule',200335,'AD_Process_DrillRule_ID',10,'Y','N','Y','N','N','N',13,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:08','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:08','YYYY-MM-DD HH24:MI:SS'),100,203569,'N','N','D','N','afd2c9af-9c8d-4fb9-b4ea-88626a1ef43d','N') +; + +-- Apr 6, 2022, 2:47:08 PM CEST +CREATE TABLE AD_Process_DrillRule (ad_process_drillrule_id numeric(10,0) NOT NULL) TABLESPACE pg_default +; + +-- Apr 6, 2022, 2:47:08 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214723,0.0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200335,129,'AD_Client_ID','@#AD_Client_ID@',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:08','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:08','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','N','dcbbbea4-8ccd-4c07-8964-0d8d9f6b10f1','N','D') +; + +-- Apr 6, 2022, 2:47:09 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN ad_client_id numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:47:09 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214724,0.0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200335,104,'AD_Org_ID','@#AD_Org_ID@',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:08','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:08','YYYY-MM-DD HH24:MI:SS'),100,113,'N','N','D','N','a0b49fe9-f6ce-4ea6-b317-ae979c02d027','N','D') +; + +-- Apr 6, 2022, 2:47:09 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN ad_org_id numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:47:09 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214725,0.0,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200335,'IsActive','Y',1,'N','N','Y','N','N','N',20,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:09','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:09','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','N','feaf7550-5361-45f1-9986-2deb5187727e','N') +; + +-- Apr 6, 2022, 2:47:09 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN isactive character(1) COLLATE pg_catalog."default" NOT NULL DEFAULT 'Y'::bpchar +; + +-- Apr 6, 2022, 2:47:09 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214726,0.0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200335,'Created','SYSDATE',29,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:09','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:09','YYYY-MM-DD HH24:MI:SS'),100,245,'N','N','D','N','d3772d17-fb70-4cbc-af0c-cc2a54b7813f','N') +; + +-- Apr 6, 2022, 2:47:09 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN created timestamp without time zone NOT NULL DEFAULT now() +; + +-- Apr 6, 2022, 2:47:10 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214727,0.0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200335,'CreatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:09','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:09','YYYY-MM-DD HH24:MI:SS'),100,246,'N','N','D','N','c629839b-dc5a-4238-9087-b9500fa241de','N','D') +; + +-- Apr 6, 2022, 2:47:10 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN createdby numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:47:10 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214728,0.0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200335,'Updated','SYSDATE',29,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:10','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:10','YYYY-MM-DD HH24:MI:SS'),100,607,'N','N','D','N','0a2b4e06-7142-455a-ac49-7637be07716b','N') +; + +-- Apr 6, 2022, 2:47:10 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN updated timestamp without time zone NOT NULL DEFAULT now() +; + +-- Apr 6, 2022, 2:47:10 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214729,0.0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200335,'UpdatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:10','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:10','YYYY-MM-DD HH24:MI:SS'),100,608,'N','N','D','N','82ea3b7f-7165-4d7b-98b7-35a20c1bd315','N','D') +; + +-- Apr 6, 2022, 2:47:10 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN updatedby numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:47:10 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,SeqNoSelection,IsToolbarButton) VALUES (214730,0.0,'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.',200335,'Name',60,'N','N','Y','N','Y','N',10,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:10','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:10','YYYY-MM-DD HH24:MI:SS'),100,469,'Y','Y','D','N','3a29e5d3-8271-4a43-b5c2-19547c78f295',10,'N') +; + +-- Apr 6, 2022, 2:47:10 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN name character varying(60) COLLATE pg_catalog."default" NOT NULL +; + +-- Apr 6, 2022, 2:47:11 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,SeqNoSelection,IsToolbarButton) VALUES (214731,0.0,'Description','Optional short description of the record','A description is limited to 255 characters.',200335,'Description',255,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:10','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:10','YYYY-MM-DD HH24:MI:SS'),100,275,'Y','Y','D','N','907cdb65-3239-4d65-bcc4-fbefb10ea218',20,'N') +; + +-- Apr 6, 2022, 2:47:11 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN description character varying(255) COLLATE pg_catalog."default" +; + +-- Apr 6, 2022, 2:47:11 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214732,0.0,'Show Help',200335,'ShowHelp','Y',1,'N','N','N','N','N','N',17,50007,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:11','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:11','YYYY-MM-DD HH24:MI:SS'),100,50038,'Y','N','D','N','74c04cf6-c00f-495a-80f1-66dc036be9e4','N') +; + +-- Apr 6, 2022, 2:47:11 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN showhelp character(1) COLLATE pg_catalog."default" DEFAULT 'Y'::bpchar +; + +-- Apr 6, 2022, 2:47:11 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214733,0.0,'Process','Process or Report','The Process field identifies a unique Process or Report in the system.',200335,'AD_Process_ID',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:11','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:11','YYYY-MM-DD HH24:MI:SS'),100,117,'Y','N','D','N','c7b4d348-fca5-4442-9575-c0046d000a89','N','N') +; + +-- Apr 6, 2022, 2:47:11 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN ad_process_id numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:47:12 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214734,0.0,'Table','Database Table information','The Database Table provides the information of the table definition',200335,'AD_Table_ID',10,'N','N','N','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:11','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:11','YYYY-MM-DD HH24:MI:SS'),100,126,'Y','N','D','N','ac425e9f-2a69-45f1-aa44-cd82ea080ea2','N','N') +; + +-- Apr 6, 2022, 2:47:12 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN ad_table_id numeric(10,0) DEFAULT NULL::numeric +; + +-- Apr 6, 2022, 2:47:12 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214735,0.0,'Report View','View used to generate this report','The Report View indicates the view used to generate this report.',200335,'AD_ReportView_ID',10,'N','N','N','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:12','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:12','YYYY-MM-DD HH24:MI:SS'),100,1252,'N','N','D','N','67f6721b-a7b9-4c0e-b704-0a82534ec640','N') +; + +-- Apr 6, 2022, 2:47:12 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN ad_reportview_id numeric(10,0) DEFAULT NULL::numeric +; + +-- Apr 6, 2022, 2:47:12 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214736,0.0,'Print Format','Data Print Format','The print format determines how data is rendered for print.',200335,'AD_PrintFormat_ID',10,'N','N','N','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:12','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:12','YYYY-MM-DD HH24:MI:SS'),100,1790,'Y','N','D','N','bf68bfcd-02cd-4507-a6f5-46ac33bbe525','N','N') +; + +-- Apr 6, 2022, 2:47:12 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN ad_printformat_id numeric(10,0) DEFAULT NULL::numeric +; + +-- Apr 6, 2022, 4:01:24 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214752,0.0,'System Element','System Element enables the central maintenance of column description and help.','The System Element allows for the central maintenance of help, descriptions and terminology for a database column.',200335,'AD_Element_ID',10,'N','N','Y','N','N','N',30,0,0,'Y',TO_TIMESTAMP('2022-04-06 16:01:24','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 16:01:24','YYYY-MM-DD HH24:MI:SS'),100,106,'Y','N','D','N','6647624f-44a9-4143-b453-b15a689d76fb','N','N') +; + +-- Apr 6, 2022, 2:47:13 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN ad_element_id numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:47:13 PM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203570,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:12','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:12','YYYY-MM-DD HH24:MI:SS'),100,'AD_Process_DrillRule_UU','AD_Process_DrillRule_UU','AD_Process_DrillRule_UU','D','deb41a28-7518-4e08-93d4-f574052eca6c') +; + +-- Apr 6, 2022, 2:47:13 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214738,0.0,'AD_Process_DrillRule_UU',200335,'AD_Process_DrillRule_UU',36,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:47:12','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:47:12','YYYY-MM-DD HH24:MI:SS'),100,203570,'N','N','D','N','cd5833a4-a634-49af-a711-3f207a5223f5','N') +; + +-- Apr 6, 2022, 2:47:13 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN ad_process_drillrule_uu character varying(36) COLLATE pg_catalog."default" DEFAULT NULL::character varying +; + +-- Apr 6, 2022, 2:49:42 PM CEST +ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT ad_process_drillrule_pkey PRIMARY KEY (ad_process_drillrule_id) +; + +-- Apr 6, 2022, 2:49:42 PM CEST +ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT adprintformat_addrillrule FOREIGN KEY (ad_printformat_id) REFERENCES adempiere.ad_printformat (ad_printformat_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED +; + +-- Apr 6, 2022, 2:49:42 PM CEST +ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT adprocess_addrillrule FOREIGN KEY (ad_process_id) REFERENCES adempiere.ad_process (ad_process_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED +; + +-- Apr 6, 2022, 2:49:42 PM CEST +ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT adtable_addrillrule FOREIGN KEY (ad_table_id) REFERENCES adempiere.ad_table (ad_table_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION DEFERRABLE INITIALLY DEFERRED +; + +-- Apr 6, 2022, 2:49:42 PM CEST +ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT celement_addrillrule FOREIGN KEY (ad_element_id) REFERENCES adempiere.ad_element (ad_element_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED +; + +-- Apr 6, 2022, 2:49:42 PM CEST +ALTER TABLE IF EXISTS adempiere.ad_process_drillrule OWNER to adempiere +; + +-- Apr 6, 2022, 2:49:42 PM CEST +CREATE UNIQUE INDEX IF NOT EXISTS ad_process_drillrule_uu_idx ON adempiere.ad_process_drillrule USING btree (ad_process_drillrule_uu COLLATE pg_catalog."default" ASC NULLS LAST) TABLESPACE pg_default +; + +-- Apr 6, 2022, 2:49:42 PM CEST +INSERT INTO AD_Table (AD_Table_ID,Name,TableName,LoadSeq,AccessLevel,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSecurityEnabled,IsDeleteable,IsHighVolume,IsView,EntityType,ImportTable,IsChangeLog,ReplicationType,CopyColumnsFromTable,IsCentrallyMaintained,AD_Table_UU,Processing,DatabaseViewDrop,CopyComponentsFromView,CreateWindowFromTable,IsShowInDrillOptions) VALUES (200336,'Drill Rule Parameter','AD_Process_DrillRule_Para',0,'4',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:42','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:42','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','N','D','N','Y','L','N','Y','1c5204bd-d8e8-4cc6-ab2d-e11735e1ff3c','N','N','N','N','Y') +; + +-- Apr 6, 2022, 2:49:43 PM CEST +INSERT INTO AD_Sequence (Name,CurrentNext,IsAudited,StartNewYear,Description,IsActive,IsTableID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Sequence_ID,IsAutoSequence,StartNo,IncrementNo,CurrentNextSys,AD_Sequence_UU) VALUES ('AD_Process_DrillRule_Para',1000000,'N','N','Table AD_Process_DrillRule_Para','Y','Y',0,0,TO_TIMESTAMP('2022-04-06 14:49:42','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:42','YYYY-MM-DD HH24:MI:SS'),100,200405,'Y',1000000,1,200000,'fc2f35bc-3607-4568-836d-776dcef87571') +; + +-- Apr 6, 2022, 2:49:54 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214739,0.0,'Drill Rule',200336,'AD_Process_DrillRule_ID',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:53','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:53','YYYY-MM-DD HH24:MI:SS'),100,203569,'N','N','D','N','cc9d25da-cd10-4a46-b598-49bfa88a5fef','N','N') +; + +-- Apr 6, 2022, 2:47:08 PM CEST +CREATE TABLE AD_Process_DrillRule_Para (ad_process_drillrule_id numeric(10,0) NOT NULL) TABLESPACE pg_default +; + +-- Apr 6, 2022, 4:23:02 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214753,0.0,'Process Parameter',200336,'AD_Process_Para_ID',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 16:23:01','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 16:23:01','YYYY-MM-DD HH24:MI:SS'),100,118,'N','N','D','N','baeb0d20-439e-46aa-b4e7-0eb81a391b63','N') +; + +-- Apr 6, 2022, 2:49:55 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN ad_process_para_id numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:49:55 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214741,0.0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200336,129,'AD_Client_ID','@#AD_Client_ID@',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:54','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:54','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','N','1a2c8dc6-66f5-438c-89bf-df56e12e708e','N','D') +; + +-- Apr 6, 2022, 2:49:55 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN ad_client_id numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:49:55 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214742,0.0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200336,104,'AD_Org_ID','@#AD_Org_ID@',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:55','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:55','YYYY-MM-DD HH24:MI:SS'),100,113,'N','N','D','N','4c8313ac-11d5-4fab-aba2-1ca5ecb34155','N','D') +; + +-- Apr 6, 2022, 2:49:55 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN ad_org_id numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:49:55 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214743,0.0,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200336,'IsActive','Y',1,'N','N','Y','N','N','N',20,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:55','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:55','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','N','dfcfb4b4-38f9-4b8e-8c5c-811c1bdcd58d','N') +; + +-- Apr 6, 2022, 2:49:55 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN isactive character(1) COLLATE pg_catalog."default" NOT NULL DEFAULT 'Y'::bpchar +; + +-- Apr 6, 2022, 2:49:55 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214744,0.0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200336,'Created','SYSDATE',29,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:55','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:55','YYYY-MM-DD HH24:MI:SS'),100,245,'N','N','D','N','30b678ab-40aa-468e-9a2d-9108d38bdcc1','N') +; + +-- Apr 6, 2022, 2:49:55 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN created timestamp without time zone NOT NULL DEFAULT now() +; + +-- Apr 6, 2022, 2:49:56 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214745,0.0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200336,'CreatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:55','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:55','YYYY-MM-DD HH24:MI:SS'),100,246,'N','N','D','N','c5875da8-08c5-4d3d-a99b-b80459d286dc','N','D') +; + +-- Apr 6, 2022, 2:49:56 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN createdby numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:49:56 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214746,0.0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200336,'Updated','SYSDATE',29,'N','N','Y','N','N','N',16,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:56','YYYY-MM-DD HH24:MI:SS'),100,607,'N','N','D','N','418403df-269d-4cd1-9aca-2d335a230ccb','N') +; + +-- Apr 6, 2022, 2:49:56 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN updated timestamp without time zone NOT NULL DEFAULT now() +; + +-- Apr 6, 2022, 2:49:56 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214747,0.0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200336,'UpdatedBy',10,'N','N','Y','N','N','N',30,110,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:56','YYYY-MM-DD HH24:MI:SS'),100,608,'N','N','D','N','f3f1a606-2119-4671-8c13-d96a12441570','N','D') +; + +-- Apr 6, 2022, 2:49:57 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN updatedby numeric(10,0) NOT NULL +; + +-- Apr 6, 2022, 2:49:57 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214748,0.0,'Default Parameter','Default value of the parameter','The default value can be a variable like @#Date@ ',200336,'ParameterDefault',255,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:56','YYYY-MM-DD HH24:MI:SS'),100,2419,'Y','N','D','N','c37de7ce-4091-4f0d-b38e-d23770c5db4d','N') +; + +-- Apr 6, 2022, 2:49:57 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN parameterdefault character varying(255) COLLATE pg_catalog."default" +; + +-- Apr 6, 2022, 2:49:57 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,SeqNoSelection,IsToolbarButton) VALUES (214749,0.0,'Description','Optional short description of the record','A description is limited to 255 characters.',200336,'Description',255,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:57','YYYY-MM-DD HH24:MI:SS'),100,275,'Y','Y','D','N','7503a18e-7cde-422f-a911-f06143d187c4',10,'N') +; + +-- Apr 6, 2022, 2:49:57 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN description character varying(255) COLLATE pg_catalog."default" +; + +-- Apr 6, 2022, 2:49:57 PM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203572,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:57','YYYY-MM-DD HH24:MI:SS'),100,'AD_Process_DrillRule_Para_UU','AD_Process_DrillRule_Para_UU','AD_Process_DrillRule_Para_UU','D','7db65d50-a7f5-4c47-b7a2-365568ae7551') +; + +-- Apr 6, 2022, 2:49:57 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton) VALUES (214750,0.0,'AD_Process_DrillRule_Para_UU',200336,'AD_Process_DrillRule_Para_UU',36,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:57','YYYY-MM-DD HH24:MI:SS'),100,203572,'N','N','D','N','ac660503-7779-406e-81d1-5d1bab1241f9','N') +; + +-- Apr 6, 2022, 2:49:57 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN ad_process_drillrule_para_uu character varying(36) COLLATE pg_catalog."default" DEFAULT NULL::character varying +; + +-- Apr 6, 2022, 2:49:58 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsAlwaysUpdateable,AD_Column_UU,IsToolbarButton,FKConstraintType) VALUES (214751,0.0,'Default To Parameter','Default value of the to parameter','The default value can be a variable like @#Date@ ',200336,'ParameterToDefault',255,'N','N','N','N','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:49:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:49:57','YYYY-MM-DD HH24:MI:SS'),100,202621,'Y','N','D','N','82c6f4d8-e611-4b13-944f-2bf5f42bd768','N','N') +; + +-- Apr 6, 2022, 2:49:58 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN parametertodefault character varying(255) COLLATE pg_catalog."default" DEFAULT NULL::character varying +; + +-- Apr 6, 2022, 2:49:58 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD CONSTRAINT ad_process_drillrule_para_pkey PRIMARY KEY (ad_process_drillrule_id, ad_process_para_id) +; + +-- Apr 6, 2022, 2:49:58 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD CONSTRAINT adprocess_addrillrulepara FOREIGN KEY (ad_process_drillrule_id) REFERENCES adempiere.ad_process_drillrule (ad_process_drillrule_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED +; + +-- Apr 6, 2022, 2:49:58 PM CEST +ALTER TABLE AD_Process_DrillRule_Para ADD CONSTRAINT adprocesspara_adschedulerpara FOREIGN KEY (ad_process_para_id) REFERENCES adempiere.ad_process_para (ad_process_para_id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED +; + +-- Apr 6, 2022, 2:49:59 PM CEST +ALTER TABLE IF EXISTS adempiere.ad_process_drillrule_para OWNER to adempiere +; + +-- Apr 6, 2022, 2:49:59 PM CEST +CREATE UNIQUE INDEX IF NOT EXISTS ad_process_drillrule_para_uu_idx ON adempiere.ad_process_drillrule_para USING btree (ad_process_drillrule_para_uu COLLATE pg_catalog."default" ASC NULLS LAST) TABLESPACE pg_default +; + +-- Apr 6, 2022, 2:51:06 PM CEST +INSERT INTO AD_Window (AD_Window_ID,Name,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,WindowType,Processing,EntityType,IsSOTrx,IsDefault,WinHeight,WinWidth,IsBetaFunctionality,AD_Window_UU) VALUES (200123,'Drill Rule',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:51:06','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:51:06','YYYY-MM-DD HH24:MI:SS'),100,'M','N','D','Y','N',0,0,'N','91407fde-0a29-41fd-b44c-aff7070f94ec') +; + +-- Apr 6, 2022, 2:55:04 PM CEST +INSERT INTO AD_Tab (AD_Tab_ID,Name,AD_Window_ID,SeqNo,IsSingleRow,AD_Table_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,HasTree,IsInfoTab,IsTranslationTab,IsReadOnly,Processing,ImportFields,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU,TreeDisplayedOn,IsLookupOnlySelection,IsAllowAdvancedLookup,MaxQueryRecords) VALUES (200308,'Drill Rule',200123,10,'Y',200335,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:04','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:04','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N','N',0,'N','D','Y','N','1c99e0b5-4718-463a-a0e7-bf8432d1b70e','B','N','Y',0) +; + +-- Apr 6, 2022, 2:55:25 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (206921,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200308,214723,'Y',10,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:25','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:25','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','5dcf564e-4dfd-4861-94e0-96e072e9c4a9','N',2) +; + +-- Apr 6, 2022, 2:55:25 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsAllowCopy,IsDisplayedGrid,XPosition,ColumnSpan) VALUES (206922,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200308,214724,'Y',10,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:25','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:25','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','860d79ca-5019-4b3f-87f5-411f7715fdc2','Y','N',4,2) +; + +-- Apr 6, 2022, 2:55:26 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206923,'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.',200308,214730,'Y',60,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:25','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:25','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','1c1f603b-1d53-4ed4-8b33-0e2c8e285538','Y',10,5) +; + +-- Apr 6, 2022, 2:55:26 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206924,'Description','Optional short description of the record','A description is limited to 255 characters.',200308,214731,'Y',255,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:26','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:26','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','84693c4f-75a8-4df8-882b-73f357961ae2','Y',20,5) +; + +-- Apr 6, 2022, 2:55:26 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (206925,'Drill Rule',200308,214722,'N',10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:26','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:26','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','6487a092-0a7c-4d9c-9cc7-f6bea064af07','N',2) +; + +-- Apr 6, 2022, 2:55:27 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206926,'Show Help',200308,214732,'Y',1,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:26','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:26','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','e391bd8f-d510-4974-86d3-cb28df01455c','Y',30,2) +; + +-- Apr 6, 2022, 2:55:27 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206927,'Process','Process or Report','The Process field identifies a unique Process or Report in the system.',200308,214733,'Y',10,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:27','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','7c6ecc52-f2b7-42cc-a78e-80ca01928c01','Y',40,2) +; + +-- Apr 6, 2022, 2:55:27 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206928,'Table','Database Table information','The Database Table provides the information of the table definition',200308,214734,'Y',10,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:27','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f351d63e-611f-4a5b-80ed-7e78e73a00cd','Y',50,2) +; + +-- Apr 6, 2022, 2:55:27 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206929,'Report View','View used to generate this report','The Report View indicates the view used to generate this report.',200308,214735,'Y',10,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:27','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','117f2b2c-1719-4ff3-b7c5-c8da0b9f2cd0','Y',60,2) +; + +-- Apr 6, 2022, 2:55:28 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206930,'Print Format','Data Print Format','The print format determines how data is rendered for print.',200308,214736,'Y',10,90,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:27','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','84e95705-785f-44b4-b966-48d10fb766a6','Y',70,2) +; + +-- Apr 6, 2022, 2:55:28 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (206932,'AD_Process_DrillRule_UU',200308,214738,'N',36,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:28','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:28','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','7dcb0cd5-450c-4642-b213-2a0cf2dc2ddb','N',2) +; + +-- Apr 6, 2022, 2:55:29 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206933,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200308,214725,'Y',1,110,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:55:28','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:55:28','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','221d1536-dd3e-4279-afb9-b2592ab008f3','Y',90,2,2) +; + +-- Apr 6, 2022, 2:56:56 PM CEST +INSERT INTO AD_Tab (AD_Tab_ID,Name,AD_Window_ID,SeqNo,IsSingleRow,AD_Table_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,HasTree,IsInfoTab,IsTranslationTab,IsReadOnly,AD_Column_ID,Processing,ImportFields,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU,TreeDisplayedOn,IsLookupOnlySelection,IsAllowAdvancedLookup,MaxQueryRecords) VALUES (200309,'Drill Rule Parameter',200123,20,'Y',200336,0,0,'Y',TO_TIMESTAMP('2022-04-06 14:56:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:56:56','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',214739,'N','N',0,'N','D','Y','N','cf646be0-5bd7-4d8e-9ede-185fec8f6b64','B','N','Y',0) +; + +-- Apr 6, 2022, 2:57:05 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (206934,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200309,214741,'Y',10,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:57:05','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:57:05','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','7a31d9d5-18f9-4901-827e-368ec8d94ee4','N',2) +; + +-- Apr 6, 2022, 2:57:06 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsAllowCopy,IsDisplayedGrid,XPosition,ColumnSpan) VALUES (206935,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200309,214742,'Y',10,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:57:05','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:57:05','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','19e03e36-0698-4ec2-bcf1-2a477e02c028','Y','N',4,2) +; + +-- Apr 6, 2022, 2:57:06 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206936,'Description','Optional short description of the record','A description is limited to 255 characters.',200309,214749,'Y',255,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:57:06','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:57:06','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','5328039c-28f7-41ec-8753-9bd40fef703b','Y',10,5) +; + +-- Apr 6, 2022, 2:57:06 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206937,'Drill Rule',200309,214739,'Y',10,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:57:06','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:57:06','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','c375dd96-6b77-4d57-8bd4-3783ad332aa3','Y',20,2) +; + +-- Apr 6, 2022, 2:57:07 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206939,'Default Parameter','Default value of the parameter','The default value can be a variable like @#Date@ ',200309,214748,'Y',255,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:57:07','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:57:07','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','cec431e5-61c2-46d3-b3d6-266b0c10c57b','Y',30,5) +; + +-- Apr 6, 2022, 2:57:07 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (206940,'AD_Process_DrillRule_Para_UU',200309,214750,'N',36,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:57:07','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:57:07','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','56105b60-807f-4790-bddb-4d44f1a45706','N',2) +; + +-- Apr 6, 2022, 2:57:07 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206941,'Default To Parameter','Default value of the to parameter','The default value can be a variable like @#Date@ ',200309,214751,'Y',255,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:57:07','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:57:07','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','86b3b8c8-7d82-4ef4-864d-c6cb69b1570f','Y',40,5) +; + +-- Apr 6, 2022, 2:57:08 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206942,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200309,214743,'Y',1,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 14:57:07','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 14:57:07','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','b4bb1db1-e2da-41e2-a573-cb3c1bb4f0a7','Y',50,2,2) +; + +-- Apr 6, 2022, 3:02:36 PM CEST +INSERT INTO AD_Menu (AD_Menu_ID,Name,"action",AD_Window_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSummary,IsSOTrx,IsReadOnly,EntityType,IsCentrallyMaintained,AD_Menu_UU) VALUES (200201,'Drill Rule','W',200123,0,0,'Y',TO_TIMESTAMP('2022-04-06 15:02:36','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 15:02:36','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','D','Y','732c12fb-276b-445d-a3ba-e984dfb22cbf') +; + +-- Apr 6, 2022, 3:02:36 PM CEST +INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo, AD_TreeNodeMM_UU) SELECT t.AD_Client_ID, 0, 'Y', statement_timestamp(), 100, statement_timestamp(), 100,t.AD_Tree_ID, 200201, 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=200201) +; + +-- Apr 6, 2022, 3:15:18 PM CEST +UPDATE AD_Table SET AccessLevel='3',Updated=TO_TIMESTAMP('2022-04-06 15:15:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200336 +; + +-- Apr 6, 2022, 3:16:16 PM CEST +UPDATE AD_Table SET AccessLevel='3',Updated=TO_TIMESTAMP('2022-04-06 15:16:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200335 +; + +-- Apr 6, 2022, 3:18:32 PM CEST +UPDATE AD_Table SET AD_Window_ID=200123,Updated=TO_TIMESTAMP('2022-04-06 15:18:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200335 +; + +-- Apr 6, 2022, 3:20:07 PM CEST +UPDATE AD_Table SET AD_Window_ID=200123,Updated=TO_TIMESTAMP('2022-04-06 15:20:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200336 +; + +-- Apr 6, 2022, 3:22:03 PM CEST +UPDATE AD_Window SET WinWidth=NULL,Updated=TO_TIMESTAMP('2022-04-06 15:22:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=200123 +; + +-- Apr 6, 2022, 3:55:00 PM CEST +UPDATE AD_Tab SET TabLevel=1,Updated=TO_TIMESTAMP('2022-04-06 15:55:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200309 +; + +-- Apr 6, 2022, 4:03:52 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206943,'System Element','System Element enables the central maintenance of column description and help.','The System Element allows for the central maintenance of help, descriptions and terminology for a database column.',200308,214752,'Y',10,120,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 16:03:52','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 16:03:52','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','a7e4e6f0-34b4-41f4-a92b-5928d30b4f10','Y',100,2) +; + +-- Apr 6, 2022, 4:23:18 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206944,'Process Parameter',200309,214753,'Y',10,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-04-06 16:23:18','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-06 16:23:18','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','3aaa0900-2afb-4fb9-bda7-0e5310e8013e','Y',60,2) +; + +-- Apr 7, 2022, 2:24:36 PM CEST +UPDATE AD_Column SET AD_Val_Rule_ID=186,Updated=TO_TIMESTAMP('2022-04-07 14:24:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214753 +; + +-- Apr 7, 2022, 2:27:03 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=30, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:27:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206944 +; + +-- Apr 7, 2022, 2:27:03 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=2, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:27:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206942 +; + +-- Apr 7, 2022, 2:27:03 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=70, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:27:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206936 +; + +-- Apr 7, 2022, 2:27:03 PM CEST +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:27:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206940 +; + +-- Apr 7, 2022, 2:27:03 PM CEST +UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:27:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206937 +; + +-- Apr 7, 2022, 2:28:07 PM CEST +UPDATE AD_Column SET IsUpdateable='Y',Updated=TO_TIMESTAMP('2022-04-07 14:28:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214735 +; + +-- Apr 7, 2022, 2:30:26 PM CEST +UPDATE AD_Field SET SeqNo=50, AD_FieldGroup_ID=113, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:30:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206928 +; + +-- Apr 7, 2022, 2:30:26 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=5, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:30:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206933 +; + +-- Apr 7, 2022, 2:30:26 PM CEST +UPDATE AD_Field SET SeqNo=70, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:30:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206929 +; + +-- Apr 7, 2022, 2:30:26 PM CEST +UPDATE AD_Field SET SeqNo=80, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:30:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206930 +; + +-- Apr 7, 2022, 2:30:26 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=90, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:30:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206943 +; + +-- Apr 7, 2022, 2:30:26 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=100, AD_FieldGroup_ID=114, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:30:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206927 +; + +-- Apr 7, 2022, 2:30:26 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=110, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:30:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206926 +; + +-- Apr 7, 2022, 2:30:26 PM CEST +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:30:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206932 +; + +-- Apr 7, 2022, 2:30:26 PM CEST +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:30:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206925 +; + +-- Apr 7, 2022, 2:33:23 PM CEST +UPDATE AD_Field SET SeqNo=10, IsReadOnly='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:33:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206934 +; + +-- Apr 7, 2022, 2:33:35 PM CEST +UPDATE AD_Field SET SeqNo=10, IsReadOnly='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-04-07 14:33:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206921 +; + +-- Apr 11, 2022, 8:58:19 AM CEST +UPDATE AD_Column SET IsParent='Y', IsUpdateable='N',Updated=TO_TIMESTAMP('2022-04-11 08:58:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214753 +; + +-- Apr 11, 2022, 8:58:27 AM CEST +UPDATE AD_Column SET IsParent='Y', IsUpdateable='N',Updated=TO_TIMESTAMP('2022-04-11 08:58:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214739 +; + +-- Apr 22, 2022, 4:22:51 PM CEST +INSERT INTO AD_ToolBarButton (AD_Client_ID,AD_Org_ID,Created,CreatedBy,ComponentName,IsActive,AD_ToolBarButton_ID,Name,Updated,UpdatedBy,IsCustomization,AD_ToolBarButton_UU,"action",AD_Tab_ID,AD_Process_ID,SeqNo,EntityType) VALUES (0,0,TO_TIMESTAMP('2022-04-22 16:22:50','YYYY-MM-DD HH24:MI:SS'),100,'Captured Process Parameter','Y',200119,'Captured Process Parameter',TO_TIMESTAMP('2022-04-22 16:22:50','YYYY-MM-DD HH24:MI:SS'),100,'N','588e50d2-2ee5-4007-8fa1-7f60ac1767f1','W',200308,200064,10,'D') +; + +-- Apr 22, 2022, 4:38:34 PM CEST +INSERT INTO AD_Message (MsgType,MsgText,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Drill Assistant',0,0,'Y',TO_TIMESTAMP('2022-04-22 16:38:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-22 16:38:34','YYYY-MM-DD HH24:MI:SS'),100,200744,'DrillAssistant','D','9834ddc4-e261-4a92-84f5-da6ebca72822') +; + +-- Apr 22, 2022, 4:38:51 PM CEST +INSERT INTO AD_Message (MsgType,MsgText,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Drill Column',0,0,'Y',TO_TIMESTAMP('2022-04-22 16:38:51','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-22 16:38:51','YYYY-MM-DD HH24:MI:SS'),100,200745,'DrillColumn','D','b36997cf-a012-4e9f-9711-b051b44d05cc') +; + +-- Apr 25, 2022, 10:40:00 AM CEST +UPDATE AD_Table SET AccessLevel='6',Updated=TO_TIMESTAMP('2022-04-25 10:40:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200335 +; + +-- Apr 25, 2022, 10:40:07 AM CEST +UPDATE AD_Table SET AccessLevel='6',Updated=TO_TIMESTAMP('2022-04-25 10:40:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200336 +; + +-- Apr 25, 2022, 11:21:19 AM CEST +INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,Name,Type,Code,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Val_Rule_UU) VALUES (200158,'AD_ReportView of AD_Table','S','AD_ReportView.AD_Table_ID = @AD_Table_ID@',0,0,'Y',TO_TIMESTAMP('2022-04-25 11:21:19','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-25 11:21:19','YYYY-MM-DD HH24:MI:SS'),100,'D','cd974660-b27f-499c-a6e9-e9f959510395') +; + +-- Apr 25, 2022, 11:22:01 AM CEST +INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,Name,Type,Code,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Val_Rule_UU) VALUES (200159,'AD_PrintFormat of AD_ReportView','S','AD_PrintFormat.AD_ReportView_ID = @AD_ReportView_ID@',0,0,'Y',TO_TIMESTAMP('2022-04-25 11:22:01','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-04-25 11:22:01','YYYY-MM-DD HH24:MI:SS'),100,'D','83bb8e51-dc05-47b8-b3e0-f0d54d410e63') +; + +-- Apr 25, 2022, 11:22:28 AM CEST +UPDATE AD_Column SET AD_Val_Rule_ID=200158,Updated=TO_TIMESTAMP('2022-04-25 11:22:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214735 +; + +-- Apr 25, 2022, 11:22:48 AM CEST +UPDATE AD_Column SET AD_Val_Rule_ID=200159,Updated=TO_TIMESTAMP('2022-04-25 11:22:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214736 +; + +-- May 25, 2022, 3:13:27 PM CEST +INSERT INTO AD_Table (AD_Table_ID,Name,AD_Window_ID,TableName,LoadSeq,AccessLevel,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSecurityEnabled,IsDeleteable,IsHighVolume,IsView,EntityType,ImportTable,IsChangeLog,ReplicationType,CopyColumnsFromTable,IsCentrallyMaintained,AD_Table_UU,Processing,DatabaseViewDrop,CopyComponentsFromView,CreateWindowFromTable) VALUES (200349,'Drill Rule Trl',200123,'AD_Process_DrillRule_Trl',0,'3',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:13:26','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:13:26','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','N','D','N','N','L','N','Y','238cf5eb-d915-48d0-a1e6-df5cb52415e7','N','N','N','N') +; + +-- May 25, 2022, 3:13:27 PM CEST +INSERT INTO AD_Sequence (Name,CurrentNext,IsAudited,StartNewYear,Description,IsActive,IsTableID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,AD_Sequence_ID,IsAutoSequence,StartNo,IncrementNo,CurrentNextSys,AD_Sequence_UU) VALUES ('AD_Process_DrillRule_Trl',1000000,'N','N','Table AD_Process_DrillRule_Trl','Y','Y',0,0,TO_TIMESTAMP('2022-05-25 15:13:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:13:27','YYYY-MM-DD HH24:MI:SS'),100,200417,'Y',1000000,1,200000,'47e13bfc-592c-451a-9de8-0116ebd61a14') +; + +-- May 25, 2022, 3:14:52 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214917,0,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200349,129,'AD_Client_ID','@#AD_Client_ID@',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:14:52','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:14:52','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','N','N','N','Y','0aa5cf91-1216-472a-8cc4-cbdea568233e','N',0,'N','N','D','N') +; + +-- May 25, 2022, 3:14:56 PM CEST +CREATE TABLE AD_Process_DrillRule_Trl (AD_Client_ID NUMERIC(10) NOT NULL) +; + +-- May 25, 2022, 3:16:32 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214918,0,'Language','Language for this entity','The Language identifies the language to use for display and formatting',200349,'AD_Language',6,'N','N','Y','N','N',0,'N',18,106,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:16:32','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:16:32','YYYY-MM-DD HH24:MI:SS'),100,109,'N','N','D','N','N','N','Y','623d0880-7b03-4357-96cf-4102d2c1d037','Y',0,'N','N','N','N') +; + +-- May 25, 2022, 3:16:46 PM CEST +UPDATE AD_Column SET FKConstraintName='ADLanguage_ADProcessDrillRuleT', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-05-25 15:16:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214918 +; + +-- May 25, 2022, 3:16:46 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN AD_Language VARCHAR(6) NOT NULL +; + +-- May 25, 2022, 3:16:46 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD CONSTRAINT ADLanguage_ADProcessDrillRuleT FOREIGN KEY (AD_Language) REFERENCES ad_language(ad_language) DEFERRABLE INITIALLY DEFERRED +; + +-- May 25, 2022, 3:17:15 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214919,0,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200349,104,'AD_Org_ID','@#AD_Org_ID@',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:17:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:17:14','YYYY-MM-DD HH24:MI:SS'),100,113,'N','N','D','N','N','N','Y','bd5074ec-a162-4337-854f-b3ab811f4b54','N',0,'N','N','D','N') +; + +-- May 25, 2022, 3:17:18 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN AD_Org_ID NUMERIC(10) NOT NULL +; + +-- May 25, 2022, 3:17:51 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214920,0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200349,'Created','SYSDATE',7,'N','N','Y','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:17:50','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:17:50','YYYY-MM-DD HH24:MI:SS'),100,245,'N','N','D','N','N','N','Y','76b1ed53-f6d3-4554-9922-412c14df029e','N',0,'N','N','N') +; + +-- May 25, 2022, 3:18:10 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN Created TIMESTAMP DEFAULT statement_timestamp() NOT NULL +; + +-- May 25, 2022, 3:19:09 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214921,0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200349,'CreatedBy',22,'N','N','Y','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:19:09','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:19:09','YYYY-MM-DD HH24:MI:SS'),100,246,'N','N','D','N','N','N','Y','80299531-63d4-4d73-a474-d66207e25a70','N',0,'N','N','D','N') +; + +-- May 25, 2022, 3:19:12 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN CreatedBy NUMERIC(10) NOT NULL +; + +-- May 25, 2022, 3:20:07 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214922,0,'Description','Optional short description of the record','A description is limited to 255 characters.',200349,'Description',255,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:20:07','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:20:07','YYYY-MM-DD HH24:MI:SS'),100,275,'Y','Y','D','N','N','N','Y','1daf3f54-2df8-48bf-a87e-892cb8f4df02','Y',10,'N','N','N') +; + +-- May 25, 2022, 3:20:20 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN Description VARCHAR(255) DEFAULT NULL +; + +-- May 25, 2022, 3:21:26 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214923,0,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200349,'IsActive','Y',1,'N','N','Y','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:21:26','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:21:26','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','N','N','N','Y','a7ec7506-a7ba-42ae-b1dc-bec723ce7e3b','N',0,'N','N','N') +; + +-- May 25, 2022, 3:21:31 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL +; + +-- May 25, 2022, 3:22:13 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214924,0,'Translated','This column is translated','The Translated checkbox indicates if this column is translated.',200349,'IsTranslated',1,'N','N','Y','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:22:13','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:22:13','YYYY-MM-DD HH24:MI:SS'),100,420,'Y','N','D','N','N','N','Y','27f2296d-a28a-4849-b879-ec434e650c34','Y',0,'N','N','N') +; + +-- May 25, 2022, 3:24:38 PM CEST +INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,PrintName,EntityType,AD_Element_UU) VALUES (203600,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:24:37','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:24:37','YYYY-MM-DD HH24:MI:SS'),100,'AD_Process_DrillRule_Trl_UU','AD_Process_DrillRule_Trl_UU','AD_Process_DrillRule_Trl_UU','D','4af8145b-0ba4-499f-b4af-222bc88e2891') +; + +-- May 25, 2022, 3:25:14 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214925,0,'AD_Process_DrillRule_Trl_UU',200349,'AD_Process_DrillRule_Trl_UU',36,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:25:13','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:25:13','YYYY-MM-DD HH24:MI:SS'),100,203600,'Y','N','D','N','N','N','Y','f1a207cd-ca7e-41c9-ae44-97c928127861','N',0,'N','N','N','N') +; + +-- May 25, 2022, 3:25:38 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN IsTranslated CHAR(1) CHECK (IsTranslated IN ('Y','N')) NOT NULL +; + +-- May 25, 2022, 3:25:38 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN AD_Process_DrillRule_Trl_UU VARCHAR(36) DEFAULT NULL +; + +-- May 25, 2022, 3:25:38 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD CONSTRAINT AD_Process_DrillRule_Trl_uuidx UNIQUE (AD_Process_DrillRule_Trl_UU) +; + +-- May 25, 2022, 3:25:47 PM CEST +INSERT INTO t_alter_column values('ad_process_drillrule_trl','AD_Process_DrillRule_Trl_UU','VARCHAR(36)',null,'NULL') +; + +-- May 25, 2022, 3:27:51 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214926,0,'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.',200349,'Name',255,'N','N','Y','N','Y',0,'N',10,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:27:51','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:27:51','YYYY-MM-DD HH24:MI:SS'),100,469,'Y','Y','D','N','N','N','Y','3e17c966-5575-47bc-8b4a-fa6ea20e47fb','Y',20,'N','N','N') +; + +-- May 25, 2022, 3:27:56 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN Name VARCHAR(255) NOT NULL +; + +-- May 25, 2022, 3:29:20 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214927,0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200349,'Updated','SYSDATE',7,'N','N','Y','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:29:20','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:29:20','YYYY-MM-DD HH24:MI:SS'),100,607,'N','N','D','N','N','N','Y','65b7c93a-997a-42a4-818a-5c5a1825e012','N',0,'N','N','N') +; + +-- May 25, 2022, 3:29:27 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN Updated TIMESTAMP DEFAULT statement_timestamp() NOT NULL +; + +-- May 25, 2022, 3:29:50 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Reference_Value_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214928,0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200349,'UpdatedBy',22,'N','N','Y','N','N',0,'N',30,110,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:29:50','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:29:50','YYYY-MM-DD HH24:MI:SS'),100,608,'N','N','D','N','N','N','Y','56503a67-4f6d-4086-83e2-daef40e53de1','N',0,'N','N','D','N') +; + +-- May 25, 2022, 3:29:57 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN UpdatedBy NUMERIC(10) NOT NULL +; + +-- May 25, 2022, 3:39:21 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintName,FKConstraintType,IsHtml) VALUES (214929,0,'Drill Rule',200349,'AD_Process_DrillRule_ID',22,'N','Y','Y','N','N',0,'N',30,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:39:20','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:39:20','YYYY-MM-DD HH24:MI:SS'),100,203569,'N','N','D','N','N','N','Y','6cba0265-b5f8-4134-850d-d6aa6b042a67','Y',0,'N','N','adprocessdrillrule_trl','C','N') +; + +-- May 25, 2022, 3:39:24 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN AD_Process_DrillRule_ID NUMERIC(10) NOT NULL +; + +-- May 25, 2022, 3:39:24 PM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD CONSTRAINT adprocessdrillrule_trl FOREIGN KEY (AD_Process_DrillRule_ID) REFERENCES ad_process_drillrule(ad_process_drillrule_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED +; + +-- May 25, 2022, 3:47:28 PM CEST +INSERT INTO AD_Tab (AD_Tab_ID,Name,AD_Window_ID,SeqNo,IsSingleRow,AD_Table_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,HasTree,IsInfoTab,IsTranslationTab,IsReadOnly,AD_Column_ID,Processing,ImportFields,TabLevel,IsSortTab,EntityType,IsInsertRecord,IsAdvancedTab,AD_Tab_UU,TreeDisplayedOn,IsLookupOnlySelection,IsAllowAdvancedLookup,MaxQueryRecords) VALUES (200322,'Drill Rule Translation',200123,30,'Y',200349,0,0,'Y',TO_TIMESTAMP('2022-05-25 15:47:28','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:47:28','YYYY-MM-DD HH24:MI:SS'),100,'N','N','Y','N',214929,'N','N',1,'N','D','Y','N','08a5d1fc-e264-48c6-84d3-dad1cbac8811','B','N','Y',0) +; + +-- May 25, 2022, 3:48:45 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (207063,'Tenant','Tenant for this installation.','A Tenant is a company or a legal entity. You cannot share data between Tenants.',200322,214917,'Y',22,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:48:45','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:48:45','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','415b39ab-f8a0-4ebd-9205-ff17e323ea62','N',2) +; + +-- May 25, 2022, 3:48:46 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsAllowCopy,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (207064,'Organization','Organizational entity within tenant','An organization is a unit of your tenant or legal entity - examples are store, department. You can share data between organizations.',200322,214919,'Y',22,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:48:45','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:48:45','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','ebcd812e-7741-448a-a812-035785229365','Y','Y',10,4,2) +; + +-- May 25, 2022, 3:48:46 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207065,'Drill Rule',200322,214929,'Y',22,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:48:46','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:48:46','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','fbcbc793-12a4-40ea-b738-e0dee2869129','Y',20,2) +; + +-- May 25, 2022, 3:48:46 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207066,'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.',200322,214926,'Y',255,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:48:46','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:48:46','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','79a96976-9ed0-4691-b213-29a827aab39e','Y',30,5) +; + +-- May 25, 2022, 3:48:47 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207067,'Description','Optional short description of the record','A description is limited to 255 characters.',200322,214922,'Y',255,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:48:46','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:48:46','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','ce2cff54-a5c8-4d8c-98f6-1e9de59f3210','Y',40,5) +; + +-- May 25, 2022, 3:48:47 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (207068,'Language','Language for this entity','The Language identifies the language to use for display and formatting',200322,214918,'Y',6,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:48:47','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:48:47','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','83c4f092-7083-436b-8858-3d08663b6efa','Y',50,2) +; + +-- May 25, 2022, 3:48:47 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (207069,'Translated','This column is translated','The Translated checkbox indicates if this column is translated.',200322,214924,'Y',1,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:48:47','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:48:47','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','ee3b1016-b121-4f42-a490-9723ec99b431','Y',60,2,2) +; + +-- May 25, 2022, 3:48:47 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (207070,'AD_Process_DrillRule_Trl_UU',200322,214925,'N',36,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:48:47','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:48:47','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','cd371b09-815e-4df7-bda1-cc5b35867ab9','N',2) +; + +-- May 25, 2022, 3:48:48 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (207071,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports. +There are two reasons for de-activating and not deleting records: +(1) The system requires the record for audit purposes. +(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200322,214923,'Y',1,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-05-25 15:48:47','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-05-25 15:48:47','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f63a8890-9ddb-440b-988e-069a95d8a541','Y',70,2,2) +; + +-- May 25, 2022, 3:50:39 PM CEST +UPDATE AD_Column SET IsTranslated='Y',Updated=TO_TIMESTAMP('2022-05-25 15:50:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214730 +; + +-- May 25, 2022, 3:50:47 PM CEST +UPDATE AD_Column SET IsTranslated='Y',Updated=TO_TIMESTAMP('2022-05-25 15:50:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214731 +; + +-- May 26, 2022, 12:13:49 PM CEST +UPDATE AD_Tab SET IsInsertRecord='N',Updated=TO_TIMESTAMP('2022-05-26 12:13:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200322 +; + +-- Jun 3, 2022, 4:13:05 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214930,0,'Column','Column in the table','Link to the database column of the table',200335,'AD_Column_ID',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-06-03 16:13:05','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-03 16:13:05','YYYY-MM-DD HH24:MI:SS'),100,104,'Y','N','D','N','N','N','Y','73a5f907-95a5-4043-a35a-898dfd6089af','Y',0,'N','N','N','N') +; + +-- Jun 3, 2022, 4:13:10 PM CEST +UPDATE AD_Column SET FKConstraintName='ADColumn_ADProcessDrillRule', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-06-03 16:13:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214930 +; + +-- Jun 3, 2022, 4:13:10 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN AD_Column_ID NUMERIC(10) NOT NULL +; + +-- Jun 3, 2022, 4:20:24 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (207072,'Column','Column in the table','Link to the database column of the table',200308,214930,'Y',0,120,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-03 16:20:24','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-03 16:20:24','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','796de252-df4b-46f5-839d-e905b909f3aa','Y',110,1,1,1,'N','N','N','N') +; + +-- Jun 3, 2022, 4:31:34 PM CEST +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=206943 +; + +-- Jun 3, 2022, 4:31:35 PM CEST +DELETE FROM AD_Field WHERE AD_Field_ID=206943 +; + +-- Jun 3, 2022, 4:32:29 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=90, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, ColumnSpan=2, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-03 16:32:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207072 +; + +-- Jun 3, 2022, 4:32:29 PM CEST +UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-03 16:32:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206926 +; + +-- Jun 3, 2022, 4:32:53 PM CEST +ALTER TABLE AD_Process_DrillRule DROP COLUMN AD_Element_ID +; + +-- Jun 3, 2022, 4:32:56 PM CEST +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=214752 +; + +-- Jun 3, 2022, 4:32:56 PM CEST +DELETE FROM AD_Column WHERE AD_Column_ID=214752 +; + +-- Jun 3, 2022, 4:56:13 PM CEST +UPDATE AD_Column SET AD_Val_Rule_ID=100,Updated=TO_TIMESTAMP('2022-06-03 16:56:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214930 +; + +-- Jun 13, 2022, 3:56:41 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=110, AD_FieldGroup_ID=114, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-13 15:56:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206926 +; + +-- Jun 13, 2022, 4:12:27 PM CEST +UPDATE AD_Column SET DefaultValue='S',Updated=TO_TIMESTAMP('2022-06-13 16:12:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214732 +; + +-- Jun 16, 2022, 10:00:03 AM CEST +INSERT INTO AD_Message (MsgType,MsgText,MsgTip,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Cannot find Drill Across for Column in Tables.','You can enable Drill Across in Application Dictionary as System User in the Table window.',0,0,'Y',TO_TIMESTAMP('2022-06-16 10:00:02','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-16 10:00:02','YYYY-MM-DD HH24:MI:SS'),100,200761,'NoTableWithDrillOptions','D','22c1a70e-5ba7-4d22-a84c-db19c552b693') +; + +-- Jun 16, 2022, 10:01:24 AM CEST +INSERT INTO AD_Message (MsgType,MsgText,MsgTip,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Cannot find Drill Rule for the selected Column.','You can define new definitions in Drill Rule window.',0,0,'Y',TO_TIMESTAMP('2022-06-16 10:01:24','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-16 10:01:24','YYYY-MM-DD HH24:MI:SS'),100,200762,'NoDrillRuleFound','D','6953574e-88f7-4d13-9914-ee36e2dd3bf9') +; + +-- Jun 16, 2022, 2:03:49 PM CEST +UPDATE AD_Column SET Callout='org.cloudempiere.model.CalloutProcessDrillRule.process',Updated=TO_TIMESTAMP('2022-06-16 14:03:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214733 +; + +-- Jun 16, 2022, 2:04:36 PM CEST +UPDATE AD_Column SET AD_Val_Rule_ID=128,Updated=TO_TIMESTAMP('2022-06-16 14:04:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214733 +; + +-- Jun 16, 2022, 2:08:50 PM CEST +UPDATE AD_Field SET IsReadOnly='Y', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-16 14:08:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206928 +; + +-- Jun 16, 2022, 3:29:53 PM CEST +INSERT INTO AD_Tab_Customization (AD_Client_ID,AD_Org_ID,AD_Tab_Customization_ID,AD_Tab_ID,AD_User_ID,Created,CreatedBy,Custom,IsActive,Updated,UpdatedBy,AD_Tab_Customization_UU,IsQuickForm) VALUES (11,0,200000,200309,100,TO_TIMESTAMP('2022-06-16 15:29:52','YYYY-MM-DD HH24:MI:SS'),100,'206937,206944,206939,206942,206936,206941','Y',TO_TIMESTAMP('2022-06-16 15:29:52','YYYY-MM-DD HH24:MI:SS'),100,'373b146c-85ce-4a24-8648-a2785472528a','N') +; + +-- Jun 24, 2022, 4:18:53 PM CEST +UPDATE AD_Table SET IsShowInDrillOptions = 'Y', UPDATED=TO_TIMESTAMP('2022-06-16 15:29:52','YYYY-MM-DD HH24:MI:SS') +WHERE TableName IN('C_AllocationHdr','C_AllocationLine','C_BankStatement','C_BankStatementLine','C_BankTransfer','C_Invoice','C_InvoiceLine','C_Order','C_OrderLine','C_Payment','C_PaymentAllocate', +'C_Project','C_ProjectLine','C_ProjectIssue','C_RfQ','C_RfQLine','GL_Journal','GL_JournalLine','M_InOut','M_InOutLine','M_Inventory','M_InventoryLine','M_Movement','M_MovementLine', +'M_Production','M_ProductionLine','M_Requisition','M_RequisitionLine','M_RMA','M_RMALine','R_Request') +; + +-- Jun 27, 2022, 9:16:01 AM CEST +INSERT INTO AD_Message (MsgType,MsgText,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Drill Key Parameter is Not Set',0,0,'Y',TO_TIMESTAMP('2022-06-27 09:16:01','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-27 09:16:01','YYYY-MM-DD HH24:MI:SS'),100,200766,'NoDrillKeyParameterSet','D','afe60283-10a3-446b-a557-b0003c457ee4') +; + +-- Jun 27, 2022, 9:47:33 AM CEST +INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,Name,Description,Type,Code,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Val_Rule_UU) VALUES (200160,'AD_Column of AD_Process_Para in AD_Table','Table must be previously defined','S','AD_Column.AD_Table_ID=@AD_Table_ID@ AND AD_Column.ColumnName IN ( +SELECT ColumnName FROM AD_Process_Para WHERE AD_Process_ID = @AD_Process_ID@ +)',0,0,'Y',TO_TIMESTAMP('2022-06-27 09:47:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-27 09:47:33','YYYY-MM-DD HH24:MI:SS'),100,'D','93841ae5-8071-444c-b626-efdf06798b13') +; + +-- Jun 27, 2022, 9:48:56 AM CEST +UPDATE AD_Column SET AD_Val_Rule_ID=200160,Updated=TO_TIMESTAMP('2022-06-27 09:48:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214930 +; + +-- Jun 28, 2022, 12:07:13 PM CEST +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=207072 +; + +-- Jun 28, 2022, 12:07:13 PM CEST +DELETE FROM AD_Field WHERE AD_Field_ID=207072 +; + +-- Jun 28, 2022, 12:07:35 PM CEST +ALTER TABLE AD_Process_DrillRule DROP COLUMN AD_Column_ID +; + +-- Jun 28, 2022, 12:08:06 PM CEST +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=214930 +; + +-- Jun 28, 2022, 12:08:06 PM CEST +DELETE FROM AD_Column WHERE AD_Column_ID=214930 +; + +-- Jun 28, 2022, 12:29:34 PM CEST +INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,AD_Val_Rule_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214967,0,'Process Parameter',200335,186,'AD_Process_Para_ID',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2022-06-28 12:29:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-28 12:29:33','YYYY-MM-DD HH24:MI:SS'),100,118,'Y','N','D','N','N','N','Y','a793c423-1a45-4fd7-95a0-d03bfb6c6f94','Y',0,'N','N','N') +; + +-- Jun 28, 2022, 12:30:40 PM CEST +UPDATE AD_Column SET FKConstraintName='ADProcessPara_ADProcessDrillRu', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-06-28 12:30:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214967 +; + +-- Jun 28, 2022, 12:30:40 PM CEST +ALTER TABLE AD_Process_DrillRule ADD COLUMN AD_Process_Para_ID NUMERIC(10) NOT NULL +; + +-- Jun 28, 2022, 12:32:12 PM CEST +ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT ADProcessPara_ADProcessDrillRu FOREIGN KEY (AD_Process_Para_ID) REFERENCES ad_process_para(ad_process_para_id) DEFERRABLE INITIALLY DEFERRED +; + +-- Jun 28, 2022, 12:38:29 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (207109,'Process Parameter',200308,214967,'Y',0,110,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-06-28 12:38:29','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-28 12:38:29','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','6dbd8833-4d79-4312-a7b4-5ccc05af8f12','Y',100,1,1,1,'N','N','N','N') +; + +-- Jun 28, 2022, 12:39:27 PM CEST +UPDATE AD_Field SET SeqNo=110, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, ColumnSpan=2, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-28 12:39:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207109 +; + +-- Jun 28, 2022, 2:31:48 PM CEST +INSERT INTO AD_Message (MsgType,MsgText,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Message_ID,Value,EntityType,AD_Message_UU) VALUES ('I','Fill Mandatory Drill Rule Parameters',0,0,'Y',TO_TIMESTAMP('2022-06-28 14:31:48','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-28 14:31:48','YYYY-MM-DD HH24:MI:SS'),100,200767,'FillMandatoryDrillRulePara','D','115f5fac-3645-4f9f-af30-050dda684d24') +; + diff --git a/migration/iD10/postgresql/202205270955_IDEMPIERE-5302.sql b/migration/iD10/postgresql/202205270955_IDEMPIERE-5302.sql new file mode 100644 index 0000000000..74c5b27cbc --- /dev/null +++ b/migration/iD10/postgresql/202205270955_IDEMPIERE-5302.sql @@ -0,0 +1,19 @@ +-- IDEMPIERE-5302 +SELECT register_migration_script('202205270955_IDEMPIERE-5302.sql') FROM dual; + +-- May 27, 2022, 9:55:11 AM CEST +INSERT INTO AD_TableIndex (AD_Client_ID,AD_Org_ID,AD_TableIndex_ID,AD_TableIndex_UU,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,AD_Table_ID,IsCreateConstraint,IsUnique,Processing,TableIndexDrop,IsKey) VALUES (0,0,201122,'d60d3d3f-33ce-4186-b160-b567ae53e478',TO_TIMESTAMP('2022-05-27 09:55:10','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','AD_Process_DrillRule_Trl_pkey',TO_TIMESTAMP('2022-05-27 09:55:10','YYYY-MM-DD HH24:MI:SS'),100,200349,'Y','Y','N','N','Y') +; + +-- May 27, 2022, 9:55:29 AM CEST +INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201499,'85a6b307-66bb-4905-a9c6-7eff6e438b6d',TO_TIMESTAMP('2022-05-27 09:55:29','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2022-05-27 09:55:29','YYYY-MM-DD HH24:MI:SS'),100,214929,201122,10) +; + +-- May 27, 2022, 9:55:38 AM CEST +INSERT INTO AD_IndexColumn (AD_Client_ID,AD_Org_ID,AD_IndexColumn_ID,AD_IndexColumn_UU,Created,CreatedBy,EntityType,IsActive,Updated,UpdatedBy,AD_Column_ID,AD_TableIndex_ID,SeqNo) VALUES (0,0,201500,'489493fb-35a5-4083-b3df-baa69901cc65',TO_TIMESTAMP('2022-05-27 09:55:38','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2022-05-27 09:55:38','YYYY-MM-DD HH24:MI:SS'),100,214918,201122,20) +; + +-- May 27, 2022, 9:55:40 AM CEST +ALTER TABLE AD_Process_DrillRule_Trl ADD CONSTRAINT AD_Process_DrillRule_Trl_pkey PRIMARY KEY (AD_Process_DrillRule_ID,AD_Language) +; + diff --git a/migration/iD10/postgresql/202206220912_IDEMPIERE-5302.sql b/migration/iD10/postgresql/202206220912_IDEMPIERE-5302.sql new file mode 100644 index 0000000000..7e6b5bbeb1 --- /dev/null +++ b/migration/iD10/postgresql/202206220912_IDEMPIERE-5302.sql @@ -0,0 +1,35 @@ +-- IDEMPIERE-5302 +SELECT register_migration_script('202206220912_IDEMPIERE-5302.sql') FROM dual; + +-- Jun 22, 2022, 9:12:45 AM CEST +INSERT INTO AD_FieldGroup (AD_FieldGroup_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,EntityType,FieldGroupType,IsCollapsedByDefault,AD_FieldGroup_UU) VALUES (200029,0,0,'Y',TO_TIMESTAMP('2022-06-22 09:12:44','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-06-22 09:12:44','YYYY-MM-DD HH24:MI:SS'),100,'Source','D','C','N','7227d406-b09d-4b60-9169-8330e99b724d') +; + +-- Jun 22, 2022, 9:15:07 AM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-22 09:15:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206927 +; + +-- Jun 22, 2022, 9:15:07 AM CEST +UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-22 09:15:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206926 +; + +-- Jun 22, 2022, 9:15:07 AM CEST +UPDATE AD_Field SET SeqNo=70, AD_FieldGroup_ID=200029, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-22 09:15:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206928 +; + +-- Jun 22, 2022, 9:15:07 AM CEST +UPDATE AD_Field SET SeqNo=80, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-22 09:15:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206933 +; + +-- Jun 22, 2022, 9:15:07 AM CEST +UPDATE AD_Field SET SeqNo=90, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-22 09:15:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206929 +; + +-- Jun 22, 2022, 9:15:07 AM CEST +UPDATE AD_Field SET SeqNo=100, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-22 09:15:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206930 +; + +-- Jun 22, 2022, 9:15:07 AM CEST +UPDATE AD_Field SET SeqNo=110, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-06-22 09:15:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=207072 +; + diff --git a/org.adempiere.base.callout/src/org/cloudempiere/model/CalloutProcessDrillRule.java b/org.adempiere.base.callout/src/org/cloudempiere/model/CalloutProcessDrillRule.java new file mode 100644 index 0000000000..fa3ee89414 --- /dev/null +++ b/org.adempiere.base.callout/src/org/cloudempiere/model/CalloutProcessDrillRule.java @@ -0,0 +1,78 @@ +/********************************************************************** +* This file is part of iDempiere ERP Open Source * +* http://www.idempiere.org * +* * +* Copyright (C) Contributors * +* * +* This program is free software; you can redistribute it and/or * +* modify it under the terms of the GNU General Public License * +* as published by the Free Software Foundation; either version 2 * +* of the License, or (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public License * +* along with this program; if not, write to the Free Software * +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * +* MA 02110-1301, USA. * +* * +* Contributors: * +* - Igor Pojzl, Cloudempiere * +* - Peter Takacs, Cloudempiere * +**********************************************************************/ +package org.cloudempiere.model; + +import java.util.Properties; + +import org.compiere.model.CalloutEngine; +import org.compiere.model.GridField; +import org.compiere.model.GridTab; +import org.compiere.model.MProcess; +import org.compiere.model.MProcessDrillRule; +import org.compiere.model.MReportView; + +/** + * + * @author Igor Pojzl, Cloudempiere + * + */ +public class CalloutProcessDrillRule extends CalloutEngine { + + /** + * Process Callout Setup + * @param ctx context + * @param WindowNo current Window No + * @param mTab Grid Tab + * @param mField Grid Field + * @param value New Value + * @return null or error message + */ + public String process (Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) + { + // set AD_Table_ID + Integer AD_Process_ID = (Integer)value; + if (AD_Process_ID == null || AD_Process_ID.intValue() == 0) + return ""; + + MProcess process = MProcess.get(AD_Process_ID); + + if(process == null || process.getAD_ReportView_ID() <= 0) { + mTab.setValue(MProcessDrillRule.COLUMNNAME_AD_Table_ID, null); + mTab.setValue(MProcessDrillRule.COLUMNNAME_AD_ReportView_ID, null); + mTab.setValue(MProcessDrillRule.COLUMNNAME_AD_Process_Para_ID, null); + return ""; + } + + MReportView reportView = MReportView.get(process.getAD_ReportView_ID()); + + if(reportView == null || reportView.getAD_Table_ID() <= 0) + return ""; + + mTab.setValue(MProcessDrillRule.COLUMNNAME_AD_Table_ID, reportView.getAD_Table_ID()); + return ""; + } + +} diff --git a/org.adempiere.base/src/org/compiere/model/I_AD_Process_DrillRule.java b/org.adempiere.base/src/org/compiere/model/I_AD_Process_DrillRule.java new file mode 100644 index 0000000000..c86cc2b5e4 --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/I_AD_Process_DrillRule.java @@ -0,0 +1,233 @@ +/****************************************************************************** + * Product: iDempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. * + * This program is free software, you can redistribute it and/or modify it * + * under the terms version 2 of the GNU General Public License as published * + * by the Free Software Foundation. This program is distributed in the hope * + * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied * + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * + * See the GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along * + * with this program, if not, write to the Free Software Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * + * For the text or an alternative of this public license, you may reach us * + * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * + * or via info@compiere.org or http://www.compiere.org/license.html * + *****************************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for AD_Process_DrillRule + * @author iDempiere (generated) + * @version Release 10 + */ +public interface I_AD_Process_DrillRule +{ + + /** TableName=AD_Process_DrillRule */ + public static final String Table_Name = "AD_Process_DrillRule"; + + /** AD_Table_ID=200335 */ + public static final int Table_ID = 200335; + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 6 - System - Client + */ + BigDecimal accessLevel = BigDecimal.valueOf(6); + + /** Load Meta Data */ + + /** Column name AD_Client_ID */ + public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; + + /** Get Tenant. + * 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 tenant + */ + public void setAD_Org_ID (int AD_Org_ID); + + /** Get Organization. + * Organizational entity within tenant + */ + public int getAD_Org_ID(); + + /** Column name AD_PrintFormat_ID */ + public static final String COLUMNNAME_AD_PrintFormat_ID = "AD_PrintFormat_ID"; + + /** Set Print Format. + * Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID); + + /** Get Print Format. + * Data Print Format + */ + public int getAD_PrintFormat_ID(); + + public org.compiere.model.I_AD_PrintFormat getAD_PrintFormat() throws RuntimeException; + + /** Column name AD_Process_DrillRule_ID */ + public static final String COLUMNNAME_AD_Process_DrillRule_ID = "AD_Process_DrillRule_ID"; + + /** Set Drill Rule */ + public void setAD_Process_DrillRule_ID (int AD_Process_DrillRule_ID); + + /** Get Drill Rule */ + public int getAD_Process_DrillRule_ID(); + + /** Column name AD_Process_DrillRule_UU */ + public static final String COLUMNNAME_AD_Process_DrillRule_UU = "AD_Process_DrillRule_UU"; + + /** Set AD_Process_DrillRule_UU */ + public void setAD_Process_DrillRule_UU (String AD_Process_DrillRule_UU); + + /** Get AD_Process_DrillRule_UU */ + public String getAD_Process_DrillRule_UU(); + + /** Column name AD_Process_ID */ + public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID"; + + /** Set Process. + * Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID); + + /** Get Process. + * Process or Report + */ + public int getAD_Process_ID(); + + public org.compiere.model.I_AD_Process getAD_Process() throws RuntimeException; + + /** Column name AD_Process_Para_ID */ + public static final String COLUMNNAME_AD_Process_Para_ID = "AD_Process_Para_ID"; + + /** Set Process Parameter */ + public void setAD_Process_Para_ID (int AD_Process_Para_ID); + + /** Get Process Parameter */ + public int getAD_Process_Para_ID(); + + public org.compiere.model.I_AD_Process_Para getAD_Process_Para() throws RuntimeException; + + /** Column name AD_ReportView_ID */ + public static final String COLUMNNAME_AD_ReportView_ID = "AD_ReportView_ID"; + + /** Set Report View. + * View used to generate this report + */ + public void setAD_ReportView_ID (int AD_ReportView_ID); + + /** Get Report View. + * View used to generate this report + */ + public int getAD_ReportView_ID(); + + public org.compiere.model.I_AD_ReportView getAD_ReportView() throws RuntimeException; + + /** Column name AD_Table_ID */ + public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID"; + + /** Set Table. + * Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID); + + /** Get Table. + * Database Table information + */ + public int getAD_Table_ID(); + + public org.compiere.model.I_AD_Table getAD_Table() throws RuntimeException; + + /** Column name Created */ + public static final String COLUMNNAME_Created = "Created"; + + /** Get Created. + * Date this record was created + */ + public Timestamp getCreated(); + + /** Column name CreatedBy */ + public static final String COLUMNNAME_CreatedBy = "CreatedBy"; + + /** Get Created By. + * User who created this records + */ + public int getCreatedBy(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsActive */ + public static final String COLUMNNAME_IsActive = "IsActive"; + + /** Set Active. + * The record is active in the system + */ + public void setIsActive (boolean IsActive); + + /** Get Active. + * The record is active in the system + */ + public boolean isActive(); + + /** Column name Name */ + public static final String COLUMNNAME_Name = "Name"; + + /** Set Name. + * Alphanumeric identifier of the entity + */ + public void setName (String Name); + + /** Get Name. + * Alphanumeric identifier of the entity + */ + public String getName(); + + /** Column name ShowHelp */ + public static final String COLUMNNAME_ShowHelp = "ShowHelp"; + + /** Set Show Help */ + public void setShowHelp (String ShowHelp); + + /** Get Show Help */ + public String getShowHelp(); + + /** 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(); +} diff --git a/org.adempiere.base/src/org/compiere/model/I_AD_Process_DrillRule_Para.java b/org.adempiere.base/src/org/compiere/model/I_AD_Process_DrillRule_Para.java new file mode 100644 index 0000000000..6634cd4998 --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/I_AD_Process_DrillRule_Para.java @@ -0,0 +1,179 @@ +/****************************************************************************** + * Product: iDempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. * + * This program is free software, you can redistribute it and/or modify it * + * under the terms version 2 of the GNU General Public License as published * + * by the Free Software Foundation. This program is distributed in the hope * + * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied * + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * + * See the GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along * + * with this program, if not, write to the Free Software Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * + * For the text or an alternative of this public license, you may reach us * + * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * + * or via info@compiere.org or http://www.compiere.org/license.html * + *****************************************************************************/ +package org.compiere.model; + +import java.math.BigDecimal; +import java.sql.Timestamp; +import org.compiere.util.KeyNamePair; + +/** Generated Interface for AD_Process_DrillRule_Para + * @author iDempiere (generated) + * @version Release 10 + */ +public interface I_AD_Process_DrillRule_Para +{ + + /** TableName=AD_Process_DrillRule_Para */ + public static final String Table_Name = "AD_Process_DrillRule_Para"; + + /** AD_Table_ID=200336 */ + public static final int Table_ID = 200336; + + KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); + + /** AccessLevel = 3 - Client - Org + */ + BigDecimal accessLevel = BigDecimal.valueOf(3); + + /** Load Meta Data */ + + /** Column name AD_Client_ID */ + public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; + + /** Get Tenant. + * 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 tenant + */ + public void setAD_Org_ID (int AD_Org_ID); + + /** Get Organization. + * Organizational entity within tenant + */ + public int getAD_Org_ID(); + + /** Column name AD_Process_DrillRule_ID */ + public static final String COLUMNNAME_AD_Process_DrillRule_ID = "AD_Process_DrillRule_ID"; + + /** Set Process Drill Rule */ + public void setAD_Process_DrillRule_ID (int AD_Process_DrillRule_ID); + + /** Get Process Drill Rule */ + public int getAD_Process_DrillRule_ID(); + + public org.compiere.model.I_AD_Process_DrillRule getAD_Process_DrillRule() throws RuntimeException; + + /** Column name AD_Process_DrillRule_Para_UU */ + public static final String COLUMNNAME_AD_Process_DrillRule_Para_UU = "AD_Process_DrillRule_Para_UU"; + + /** Set AD_Process_DrillRule_Para_UU */ + public void setAD_Process_DrillRule_Para_UU (String AD_Process_DrillRule_Para_UU); + + /** Get AD_Process_DrillRule_Para_UU */ + public String getAD_Process_DrillRule_Para_UU(); + + /** Column name AD_Process_Para_ID */ + public static final String COLUMNNAME_AD_Process_Para_ID = "AD_Process_Para_ID"; + + /** Set Process Parameter */ + public void setAD_Process_Para_ID (int AD_Process_Para_ID); + + /** Get Process Parameter */ + public int getAD_Process_Para_ID(); + + public org.compiere.model.I_AD_Process_Para getAD_Process_Para() throws RuntimeException; + + /** Column name Created */ + public static final String COLUMNNAME_Created = "Created"; + + /** Get Created. + * Date this record was created + */ + public Timestamp getCreated(); + + /** Column name CreatedBy */ + public static final String COLUMNNAME_CreatedBy = "CreatedBy"; + + /** Get Created By. + * User who created this records + */ + public int getCreatedBy(); + + /** Column name Description */ + public static final String COLUMNNAME_Description = "Description"; + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** Column name IsActive */ + public static final String COLUMNNAME_IsActive = "IsActive"; + + /** Set Active. + * The record is active in the system + */ + public void setIsActive (boolean IsActive); + + /** Get Active. + * The record is active in the system + */ + public boolean isActive(); + + /** Column name ParameterDefault */ + public static final String COLUMNNAME_ParameterDefault = "ParameterDefault"; + + /** Set Default Parameter. + * Default value of the parameter + */ + public void setParameterDefault (String ParameterDefault); + + /** Get Default Parameter. + * Default value of the parameter + */ + public String getParameterDefault(); + + /** Column name ParameterToDefault */ + public static final String COLUMNNAME_ParameterToDefault = "ParameterToDefault"; + + /** Set Default To Parameter. + * Default value of the to parameter + */ + public void setParameterToDefault (String ParameterToDefault); + + /** Get Default To Parameter. + * Default value of the to parameter + */ + public String getParameterToDefault(); + + /** 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(); +} diff --git a/org.adempiere.base/src/org/compiere/model/I_AD_Table.java b/org.adempiere.base/src/org/compiere/model/I_AD_Table.java index a029cc42d2..7058b79edd 100644 --- a/org.adempiere.base/src/org/compiere/model/I_AD_Table.java +++ b/org.adempiere.base/src/org/compiere/model/I_AD_Table.java @@ -22,7 +22,7 @@ import org.compiere.util.KeyNamePair; /** Generated Interface for AD_Table * @author iDempiere (generated) - * @version Release 9 + * @version Release 10 */ public interface I_AD_Table { @@ -41,24 +41,11 @@ public interface I_AD_Table /** Load Meta Data */ - /** Column name AccessLevel */ - public static final String COLUMNNAME_AccessLevel = "AccessLevel"; - - /** Set Data Access Level. - * Access Level required - */ - public void setAccessLevel (String AccessLevel); - - /** Get Data Access Level. - * Access Level required - */ - public String getAccessLevel(); - /** Column name AD_Client_ID */ public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; - /** Get Client. - * Client/Tenant for this installation. + /** Get Tenant. + * Tenant for this installation. */ public int getAD_Client_ID(); @@ -66,12 +53,12 @@ public interface I_AD_Table public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; /** Set Organization. - * Organizational entity within client + * Organizational entity within tenant */ public void setAD_Org_ID (int AD_Org_ID); /** Get Organization. - * Organizational entity within client + * Organizational entity within tenant */ public int getAD_Org_ID(); @@ -127,6 +114,19 @@ public interface I_AD_Table public org.compiere.model.I_AD_Window getAD_Window() throws RuntimeException; + /** Column name AccessLevel */ + public static final String COLUMNNAME_AccessLevel = "AccessLevel"; + + /** Set Data Access Level. + * Access Level required + */ + public void setAccessLevel (String AccessLevel); + + /** Get Data Access Level. + * Access Level required + */ + public String getAccessLevel(); + /** Column name CopyColumnsFromTable */ public static final String COLUMNNAME_CopyColumnsFromTable = "CopyColumnsFromTable"; @@ -145,6 +145,15 @@ public interface I_AD_Table /** Get Copy Components From View */ public String getCopyComponentsFromView(); + /** Column name CreateWindowFromTable */ + public static final String COLUMNNAME_CreateWindowFromTable = "CreateWindowFromTable"; + + /** Set Create Window From Table */ + public void setCreateWindowFromTable (String CreateWindowFromTable); + + /** Get Create Window From Table */ + public String getCreateWindowFromTable(); + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; @@ -161,15 +170,6 @@ public interface I_AD_Table */ public int getCreatedBy(); - /** Column name CreateWindowFromTable */ - public static final String COLUMNNAME_CreateWindowFromTable = "CreateWindowFromTable"; - - /** Set Create Window From Table */ - public void setCreateWindowFromTable (String CreateWindowFromTable); - - /** Get Create Window From Table */ - public String getCreateWindowFromTable(); - /** Column name DatabaseViewDrop */ public static final String COLUMNNAME_DatabaseViewDrop = "DatabaseViewDrop"; @@ -311,6 +311,19 @@ public interface I_AD_Table */ public boolean isSecurityEnabled(); + /** Column name IsShowInDrillOptions */ + public static final String COLUMNNAME_IsShowInDrillOptions = "IsShowInDrillOptions"; + + /** Set Show In Drill Options. + * This parameter enables the table is displayed in Report Viewer Drill options list + */ + public void setIsShowInDrillOptions (boolean IsShowInDrillOptions); + + /** Get Show In Drill Options. + * This parameter enables the table is displayed in Report Viewer Drill options list + */ + public boolean isShowInDrillOptions(); + /** Column name IsView */ public static final String COLUMNNAME_IsView = "IsView"; diff --git a/org.adempiere.base/src/org/compiere/model/MProcessDrillRule.java b/org.adempiere.base/src/org/compiere/model/MProcessDrillRule.java new file mode 100644 index 0000000000..613fe3193e --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/MProcessDrillRule.java @@ -0,0 +1,214 @@ +/********************************************************************** +* This file is part of iDempiere ERP Open Source * +* http://www.idempiere.org * +* * +* Copyright (C) Contributors * +* * +* This program is free software; you can redistribute it and/or * +* modify it under the terms of the GNU General Public License * +* as published by the Free Software Foundation; either version 2 * +* of the License, or (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public License * +* along with this program; if not, write to the Free Software * +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * +* MA 02110-1301, USA. * +* * +* Contributors: * +* - Igor Pojzl, Cloudempiere * +* - Peter Takacs, Cloudempiere * +**********************************************************************/ +package org.compiere.model; + +import java.sql.ResultSet; +import java.util.List; +import java.util.Properties; + +import org.compiere.util.Env; +import org.idempiere.cache.ImmutableIntPOCache; +import org.idempiere.cache.ImmutablePOSupport; + +/** + * + * @author Igor Pojzl, Cloudempiere + * @author Peter Takacs, Cloudempiere + */ +public class MProcessDrillRule extends X_AD_Process_DrillRule implements ImmutablePOSupport { + + /** Process Parameter */ + private MProcessDrillRulePara[] m_parameter = null; + + /** + * + */ + private static final long serialVersionUID = -6543978637922025586L; + + /** Process Drill Rule Cache */ + private static ImmutableIntPOCache s_cache = new ImmutableIntPOCache(Table_Name, 20); + + /** + * Get MProcessDrillRule Cached(Immutable) + * @param ctx + * @param AD_Process_DrillRule_ID + * @return + */ + public static MProcessDrillRule get(Properties ctx, int AD_Process_DrillRule_ID) { + return get(ctx, AD_Process_DrillRule_ID, null); + } + + /** + * + * @param ctx + * @param AD_Process_DrillRule_ID + * @param trxName + * @return + */ + public static MProcessDrillRule get(Properties ctx, int AD_Process_DrillRule_ID, String trxName) { + Integer ii = Integer.valueOf(AD_Process_DrillRule_ID); + MProcessDrillRule retValue = s_cache.get(ctx, ii, e -> new MProcessDrillRule(ctx, e)); + if (retValue != null) + return retValue; + retValue = new MProcessDrillRule (ctx, AD_Process_DrillRule_ID, (String)null); + if (retValue.get_ID () == AD_Process_DrillRule_ID) + { + s_cache.put (AD_Process_DrillRule_ID, retValue, e -> new MProcessDrillRule(Env.getCtx(), e)); + return retValue; + } + return null; + } + + + public MProcessDrillRule(Properties ctx, int AD_Process_DrillRule_ID, String trxName) { + super(ctx, AD_Process_DrillRule_ID, trxName); + } + + public MProcessDrillRule(Properties ctx, int AD_Process_DrillRule_ID, String trxName, String[] virtualColumns) { + super(ctx, AD_Process_DrillRule_ID, trxName, virtualColumns); + } + + public MProcessDrillRule(Properties ctx, ResultSet rs, String trxName) { + super(ctx, rs, trxName); + } + + /** + * + * @param copy + */ + public MProcessDrillRule(MProcessDrillRule copy) + { + this(Env.getCtx(), copy); + } + + /** + * + * @param ctx + * @param copy + */ + public MProcessDrillRule(Properties ctx, MProcessDrillRule copy) + { + this(ctx, copy, (String) null); + } + + /** + * + * @param ctx + * @param copy + * @param trxName + */ + public MProcessDrillRule(Properties ctx, MProcessDrillRule copy, String trxName) + { + this(ctx, 0, trxName); + copyPO(copy); + } + + /** + * Get array of MProcessDrillRule by Table + * @param ctx + * @param AD_Table_ID + * @param trxName + * @return + */ + public static MProcessDrillRule[] getByTable(Properties ctx, int AD_Table_ID, String trxName) { + + String whereClause = " AD_Table_ID = ? "; + List processDrillRules = new Query(ctx, MProcessDrillRule.Table_Name, whereClause, trxName) + .setParameters(AD_Table_ID) + .setClient_ID() + .setOnlyActiveRecords(true) + .list(); + + return processDrillRules.toArray(new MProcessDrillRule[processDrillRules.size()]); + } + + /** + * Get array of MProcessDrillRule by Column Name + * @param ctx + * @param columnName + * @param trxName + * @return + */ + public static MProcessDrillRule[] getByColumnName(Properties ctx, String columnName, String trxName) { + + String whereClause = ""; + List processDrillRules = new Query(ctx, MProcessDrillRule.Table_Name, whereClause, trxName) + .addJoinClause(" INNER JOIN AD_Process_Para pp ON " + + MProcessDrillRule.Table_Name + "." + MProcessDrillRule.COLUMNNAME_AD_Process_Para_ID + " = pp." + MProcessPara.COLUMNNAME_AD_Process_Para_ID + + " AND " + MProcessPara.COLUMNNAME_ColumnName + " = ?") + .setParameters(columnName) + .setClient_ID() + .setOnlyActiveRecords(true) + .list(); + + return processDrillRules.toArray(new MProcessDrillRule[processDrillRules.size()]); + } + + @Override + protected boolean beforeSave(boolean newRecord) { + + if(newRecord || is_ValueChanged(MProcessDrillRule.COLUMNNAME_AD_Process_ID)) { + MProcess process = MProcess.get(getAD_Process_ID()); + if(process != null && process.getAD_ReportView_ID() > 0) { + MReportView reportView = MReportView.get(process.getAD_ReportView_ID()); + if(reportView != null && reportView.getAD_Table_ID() > 0) + setAD_Table_ID(reportView.getAD_Table_ID()); + } + } + return super.beforeSave(newRecord); + } + + /** + * Get Parameters + * @param reload reload + * @return parameter + */ + public MProcessDrillRulePara[] getParameters (boolean reload) + { + if (!reload && m_parameter != null) + return m_parameter; + // + final String whereClause = MProcessDrillRulePara.COLUMNNAME_AD_Process_DrillRule_ID+"=?"; + List list = new Query(getCtx(), MProcessDrillRulePara.Table_Name, whereClause, get_TrxName()) + .setParameters(getAD_Process_DrillRule_ID()) + .setOnlyActiveRecords(true) + .list(); + if (list.size() > 0 && is_Immutable()) + list.stream().forEach(e -> e.markImmutable()); + m_parameter = new MProcessDrillRulePara[list.size()]; + list.toArray(m_parameter); + return m_parameter; + } // getParameter + + @Override + public PO markImmutable() { + if (is_Immutable()) + return this; + + makeImmutable(); + return this; + } +} \ No newline at end of file diff --git a/org.adempiere.base/src/org/compiere/model/MProcessDrillRulePara.java b/org.adempiere.base/src/org/compiere/model/MProcessDrillRulePara.java new file mode 100644 index 0000000000..f454b9a122 --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/MProcessDrillRulePara.java @@ -0,0 +1,98 @@ +/********************************************************************** +* This file is part of iDempiere ERP Open Source * +* http://www.idempiere.org * +* * +* Copyright (C) Contributors * +* * +* This program is free software; you can redistribute it and/or * +* modify it under the terms of the GNU General Public License * +* as published by the Free Software Foundation; either version 2 * +* of the License, or (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public License * +* along with this program; if not, write to the Free Software * +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * +* MA 02110-1301, USA. * +* * +* Contributors: * +* - Igor Pojzl, Cloudempiere * +* - Peter Takacs, Cloudempiere * +**********************************************************************/ +package org.compiere.model; + +import java.sql.ResultSet; +import java.util.Properties; + +import org.idempiere.cache.ImmutablePOSupport; +import org.idempiere.model.IProcessParameter; + +/** + * + * @author Igor Pojzl, Cloudempiere + * @author Peter Takacs, Cloudempiere + */ +public class MProcessDrillRulePara extends X_AD_Process_DrillRule_Para implements ImmutablePOSupport, IProcessParameter { + + /** + * + */ + private static final long serialVersionUID = 1460684182951511710L; + + public MProcessDrillRulePara(Properties ctx, int AD_Process_DrillRule_Para_ID, String trxName) { + super(ctx, AD_Process_DrillRule_Para_ID, trxName); + } + + public MProcessDrillRulePara(Properties ctx, int AD_Process_DrillRule_Para_ID, String trxName, + String[] virtualColumns) { + super(ctx, AD_Process_DrillRule_Para_ID, trxName, virtualColumns); + } + + public MProcessDrillRulePara(Properties ctx, ResultSet rs, String trxName) { + super(ctx, rs, trxName); + } + + /** Parameter Column Name */ + private MProcessPara m_parameter = null; + + + /** + * Get Parameter Column Name + * @return column name + */ + public String getColumnName() + { + if (m_parameter == null) + m_parameter = MProcessPara.get(getCtx(), getAD_Process_Para_ID()); + return m_parameter.getColumnName(); + } // getColumnName + + /** + * Get Display Type + * @return display type + */ + public int getDisplayType() + { + if (m_parameter == null) + m_parameter = MProcessPara.get(getCtx(), getAD_Process_Para_ID()); + return m_parameter.getAD_Reference_ID(); + } // getDisplayType + + @Override + public PO markImmutable() { + if (is_Immutable()) + return this; + + makeImmutable(); + return this; + } + + @Override + public void setParentID(int id) { + setAD_Process_DrillRule_ID(id); + } +} \ No newline at end of file diff --git a/org.adempiere.base/src/org/compiere/model/MSchedulerPara.java b/org.adempiere.base/src/org/compiere/model/MSchedulerPara.java index 2501f283a7..fd4a6d878d 100644 --- a/org.adempiere.base/src/org/compiere/model/MSchedulerPara.java +++ b/org.adempiere.base/src/org/compiere/model/MSchedulerPara.java @@ -21,6 +21,7 @@ import java.util.Properties; import org.compiere.util.Env; import org.idempiere.cache.ImmutablePOSupport; +import org.idempiere.model.IProcessParameter; /** * Scheduler Parameter Model @@ -28,7 +29,7 @@ import org.idempiere.cache.ImmutablePOSupport; * @author Jorg Janke * @version $Id: MSchedulerPara.java,v 1.2 2006/07/30 00:51:05 jjanke Exp $ */ -public class MSchedulerPara extends X_AD_Scheduler_Para implements ImmutablePOSupport +public class MSchedulerPara extends X_AD_Scheduler_Para implements ImmutablePOSupport, IProcessParameter { /** * @@ -137,4 +138,9 @@ public class MSchedulerPara extends X_AD_Scheduler_Para implements ImmutablePOSu return this; } + @Override + public void setParentID(int id) { + setAD_Scheduler_ID(id); + } + } // MSchedulerPara diff --git a/org.adempiere.base/src/org/compiere/model/X_AD_Process_DrillRule.java b/org.adempiere.base/src/org/compiere/model/X_AD_Process_DrillRule.java new file mode 100644 index 0000000000..b721621838 --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/X_AD_Process_DrillRule.java @@ -0,0 +1,321 @@ +/****************************************************************************** + * Product: iDempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. * + * This program is free software, you can redistribute it and/or modify it * + * under the terms version 2 of the GNU General Public License as published * + * by the Free Software Foundation. This program is distributed in the hope * + * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied * + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * + * See the GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along * + * with this program, if not, write to the Free Software Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * + * For the text or an alternative of this public license, you may reach us * + * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * + * or via info@compiere.org or http://www.compiere.org/license.html * + *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ +package org.compiere.model; + +import java.sql.ResultSet; +import java.util.Properties; + +/** Generated Model for AD_Process_DrillRule + * @author iDempiere (generated) + * @version Release 10 - $Id$ */ +@org.adempiere.base.Model(table="AD_Process_DrillRule") +public class X_AD_Process_DrillRule extends PO implements I_AD_Process_DrillRule, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 20220628L; + + /** Standard Constructor */ + public X_AD_Process_DrillRule (Properties ctx, int AD_Process_DrillRule_ID, String trxName) + { + super (ctx, AD_Process_DrillRule_ID, trxName); + /** if (AD_Process_DrillRule_ID == 0) + { + setAD_Process_DrillRule_ID (0); + setAD_Process_ID (0); + setAD_Process_Para_ID (0); + setName (null); + } */ + } + + /** Standard Constructor */ + public X_AD_Process_DrillRule (Properties ctx, int AD_Process_DrillRule_ID, String trxName, String ... virtualColumns) + { + super (ctx, AD_Process_DrillRule_ID, trxName, virtualColumns); + /** if (AD_Process_DrillRule_ID == 0) + { + setAD_Process_DrillRule_ID (0); + setAD_Process_ID (0); + setAD_Process_Para_ID (0); + setName (null); + } */ + } + + /** Load Constructor */ + public X_AD_Process_DrillRule (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 6 - System - Client + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName()); + return poi; + } + + public String toString() + { + StringBuilder sb = new StringBuilder ("X_AD_Process_DrillRule[") + .append(get_ID()).append(",Name=").append(getName()).append("]"); + return sb.toString(); + } + + public org.compiere.model.I_AD_PrintFormat getAD_PrintFormat() throws RuntimeException + { + return (org.compiere.model.I_AD_PrintFormat)MTable.get(getCtx(), org.compiere.model.I_AD_PrintFormat.Table_ID) + .getPO(getAD_PrintFormat_ID(), get_TrxName()); + } + + /** Set Print Format. + @param AD_PrintFormat_ID Data Print Format + */ + public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) + { + if (AD_PrintFormat_ID < 1) + set_Value (COLUMNNAME_AD_PrintFormat_ID, null); + else + set_Value (COLUMNNAME_AD_PrintFormat_ID, Integer.valueOf(AD_PrintFormat_ID)); + } + + /** Get Print Format. + @return Data Print Format + */ + public int getAD_PrintFormat_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_PrintFormat_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Drill Rule. + @param AD_Process_DrillRule_ID Drill Rule + */ + public void setAD_Process_DrillRule_ID (int AD_Process_DrillRule_ID) + { + if (AD_Process_DrillRule_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Process_DrillRule_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Process_DrillRule_ID, Integer.valueOf(AD_Process_DrillRule_ID)); + } + + /** Get Drill Rule. + @return Drill Rule */ + public int getAD_Process_DrillRule_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_DrillRule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set AD_Process_DrillRule_UU. + @param AD_Process_DrillRule_UU AD_Process_DrillRule_UU + */ + public void setAD_Process_DrillRule_UU (String AD_Process_DrillRule_UU) + { + set_ValueNoCheck (COLUMNNAME_AD_Process_DrillRule_UU, AD_Process_DrillRule_UU); + } + + /** Get AD_Process_DrillRule_UU. + @return AD_Process_DrillRule_UU */ + public String getAD_Process_DrillRule_UU() + { + return (String)get_Value(COLUMNNAME_AD_Process_DrillRule_UU); + } + + public org.compiere.model.I_AD_Process getAD_Process() throws RuntimeException + { + return (org.compiere.model.I_AD_Process)MTable.get(getCtx(), org.compiere.model.I_AD_Process.Table_ID) + .getPO(getAD_Process_ID(), get_TrxName()); + } + + /** Set Process. + @param AD_Process_ID Process or Report + */ + public void setAD_Process_ID (int AD_Process_ID) + { + if (AD_Process_ID < 1) + set_Value (COLUMNNAME_AD_Process_ID, null); + else + set_Value (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID)); + } + + /** Get Process. + @return Process or Report + */ + public int getAD_Process_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public org.compiere.model.I_AD_Process_Para getAD_Process_Para() throws RuntimeException + { + return (org.compiere.model.I_AD_Process_Para)MTable.get(getCtx(), org.compiere.model.I_AD_Process_Para.Table_ID) + .getPO(getAD_Process_Para_ID(), get_TrxName()); + } + + /** Set Process Parameter. + @param AD_Process_Para_ID Process Parameter + */ + public void setAD_Process_Para_ID (int AD_Process_Para_ID) + { + if (AD_Process_Para_ID < 1) + set_Value (COLUMNNAME_AD_Process_Para_ID, null); + else + set_Value (COLUMNNAME_AD_Process_Para_ID, Integer.valueOf(AD_Process_Para_ID)); + } + + /** Get Process Parameter. + @return Process Parameter */ + public int getAD_Process_Para_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_Para_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public org.compiere.model.I_AD_ReportView getAD_ReportView() throws RuntimeException + { + return (org.compiere.model.I_AD_ReportView)MTable.get(getCtx(), org.compiere.model.I_AD_ReportView.Table_ID) + .getPO(getAD_ReportView_ID(), get_TrxName()); + } + + /** Set Report View. + @param AD_ReportView_ID View used to generate this report + */ + public void setAD_ReportView_ID (int AD_ReportView_ID) + { + if (AD_ReportView_ID < 1) + set_Value (COLUMNNAME_AD_ReportView_ID, null); + else + set_Value (COLUMNNAME_AD_ReportView_ID, Integer.valueOf(AD_ReportView_ID)); + } + + /** Get Report View. + @return View used to generate this report + */ + public int getAD_ReportView_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_ReportView_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + public org.compiere.model.I_AD_Table getAD_Table() throws RuntimeException + { + return (org.compiere.model.I_AD_Table)MTable.get(getCtx(), org.compiere.model.I_AD_Table.Table_ID) + .getPO(getAD_Table_ID(), get_TrxName()); + } + + /** Set Table. + @param AD_Table_ID Database Table information + */ + public void setAD_Table_ID (int AD_Table_ID) + { + if (AD_Table_ID < 1) + set_Value (COLUMNNAME_AD_Table_ID, null); + else + set_Value (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); + } + + /** Get Table. + @return Database Table information + */ + public int getAD_Table_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description Optional short description of the record + */ + public void setDescription (String Description) + { + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription() + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Name. + @param Name Alphanumeric identifier of the entity + */ + public void setName (String Name) + { + set_Value (COLUMNNAME_Name, Name); + } + + /** Get Name. + @return Alphanumeric identifier of the entity + */ + public String getName() + { + return (String)get_Value(COLUMNNAME_Name); + } + + /** ShowHelp AD_Reference_ID=50007 */ + public static final int SHOWHELP_AD_Reference_ID=50007; + /** Ask user (for future use) = A */ + public static final String SHOWHELP_AskUserForFutureUse = "A"; + /** Don't show help = N */ + public static final String SHOWHELP_DonTShowHelp = "N"; + /** Run silently - Take Defaults = S */ + public static final String SHOWHELP_RunSilently_TakeDefaults = "S"; + /** Show Help = Y */ + public static final String SHOWHELP_ShowHelp = "Y"; + /** Set Show Help. + @param ShowHelp Show Help + */ + public void setShowHelp (String ShowHelp) + { + + set_Value (COLUMNNAME_ShowHelp, ShowHelp); + } + + /** Get Show Help. + @return Show Help */ + public String getShowHelp() + { + return (String)get_Value(COLUMNNAME_ShowHelp); + } +} \ No newline at end of file diff --git a/org.adempiere.base/src/org/compiere/model/X_AD_Process_DrillRule_Para.java b/org.adempiere.base/src/org/compiere/model/X_AD_Process_DrillRule_Para.java new file mode 100644 index 0000000000..7f129bf2d2 --- /dev/null +++ b/org.adempiere.base/src/org/compiere/model/X_AD_Process_DrillRule_Para.java @@ -0,0 +1,201 @@ +/****************************************************************************** + * Product: iDempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. * + * This program is free software, you can redistribute it and/or modify it * + * under the terms version 2 of the GNU General Public License as published * + * by the Free Software Foundation. This program is distributed in the hope * + * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied * + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * + * See the GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along * + * with this program, if not, write to the Free Software Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * + * For the text or an alternative of this public license, you may reach us * + * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * + * or via info@compiere.org or http://www.compiere.org/license.html * + *****************************************************************************/ +/** Generated Model - DO NOT CHANGE */ +package org.compiere.model; + +import java.sql.ResultSet; +import java.util.Properties; + +/** Generated Model for AD_Process_DrillRule_Para + * @author iDempiere (generated) + * @version Release 10 - $Id$ */ +@org.adempiere.base.Model(table="AD_Process_DrillRule_Para") +public class X_AD_Process_DrillRule_Para extends PO implements I_AD_Process_DrillRule_Para, I_Persistent +{ + + /** + * + */ + private static final long serialVersionUID = 20220526L; + + /** Standard Constructor */ + public X_AD_Process_DrillRule_Para (Properties ctx, int AD_Process_DrillRule_Para_ID, String trxName) + { + super (ctx, AD_Process_DrillRule_Para_ID, trxName); + /** if (AD_Process_DrillRule_Para_ID == 0) + { + setAD_Process_DrillRule_ID (0); + setAD_Process_Para_ID (0); + } */ + } + + /** Standard Constructor */ + public X_AD_Process_DrillRule_Para (Properties ctx, int AD_Process_DrillRule_Para_ID, String trxName, String ... virtualColumns) + { + super (ctx, AD_Process_DrillRule_Para_ID, trxName, virtualColumns); + /** if (AD_Process_DrillRule_Para_ID == 0) + { + setAD_Process_DrillRule_ID (0); + setAD_Process_Para_ID (0); + } */ + } + + /** Load Constructor */ + public X_AD_Process_DrillRule_Para (Properties ctx, ResultSet rs, String trxName) + { + super (ctx, rs, trxName); + } + + /** AccessLevel + * @return 3 - Client - Org + */ + protected int get_AccessLevel() + { + return accessLevel.intValue(); + } + + /** Load Meta Data */ + protected POInfo initPO (Properties ctx) + { + POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName()); + return poi; + } + + public String toString() + { + StringBuilder sb = new StringBuilder ("X_AD_Process_DrillRule_Para[") + .append(get_ID()).append("]"); + return sb.toString(); + } + + public org.compiere.model.I_AD_Process_DrillRule getAD_Process_DrillRule() throws RuntimeException + { + return (org.compiere.model.I_AD_Process_DrillRule)MTable.get(getCtx(), org.compiere.model.I_AD_Process_DrillRule.Table_ID) + .getPO(getAD_Process_DrillRule_ID(), get_TrxName()); + } + + /** Set Process Drill Rule. + @param AD_Process_DrillRule_ID Process Drill Rule + */ + public void setAD_Process_DrillRule_ID (int AD_Process_DrillRule_ID) + { + if (AD_Process_DrillRule_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Process_DrillRule_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Process_DrillRule_ID, Integer.valueOf(AD_Process_DrillRule_ID)); + } + + /** Get Process Drill Rule. + @return Process Drill Rule */ + public int getAD_Process_DrillRule_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_DrillRule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set AD_Process_DrillRule_Para_UU. + @param AD_Process_DrillRule_Para_UU AD_Process_DrillRule_Para_UU + */ + public void setAD_Process_DrillRule_Para_UU (String AD_Process_DrillRule_Para_UU) + { + set_ValueNoCheck (COLUMNNAME_AD_Process_DrillRule_Para_UU, AD_Process_DrillRule_Para_UU); + } + + /** Get AD_Process_DrillRule_Para_UU. + @return AD_Process_DrillRule_Para_UU */ + public String getAD_Process_DrillRule_Para_UU() + { + return (String)get_Value(COLUMNNAME_AD_Process_DrillRule_Para_UU); + } + + public org.compiere.model.I_AD_Process_Para getAD_Process_Para() throws RuntimeException + { + return (org.compiere.model.I_AD_Process_Para)MTable.get(getCtx(), org.compiere.model.I_AD_Process_Para.Table_ID) + .getPO(getAD_Process_Para_ID(), get_TrxName()); + } + + /** Set Process Parameter. + @param AD_Process_Para_ID Process Parameter + */ + public void setAD_Process_Para_ID (int AD_Process_Para_ID) + { + if (AD_Process_Para_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Process_Para_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Process_Para_ID, Integer.valueOf(AD_Process_Para_ID)); + } + + /** Get Process Parameter. + @return Process Parameter */ + public int getAD_Process_Para_ID() + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_Para_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + + /** Set Description. + @param Description Optional short description of the record + */ + public void setDescription (String Description) + { + set_Value (COLUMNNAME_Description, Description); + } + + /** Get Description. + @return Optional short description of the record + */ + public String getDescription() + { + return (String)get_Value(COLUMNNAME_Description); + } + + /** Set Default Parameter. + @param ParameterDefault Default value of the parameter + */ + public void setParameterDefault (String ParameterDefault) + { + set_Value (COLUMNNAME_ParameterDefault, ParameterDefault); + } + + /** Get Default Parameter. + @return Default value of the parameter + */ + public String getParameterDefault() + { + return (String)get_Value(COLUMNNAME_ParameterDefault); + } + + /** Set Default To Parameter. + @param ParameterToDefault Default value of the to parameter + */ + public void setParameterToDefault (String ParameterToDefault) + { + set_Value (COLUMNNAME_ParameterToDefault, ParameterToDefault); + } + + /** Get Default To Parameter. + @return Default value of the to parameter + */ + public String getParameterToDefault() + { + return (String)get_Value(COLUMNNAME_ParameterToDefault); + } +} \ No newline at end of file diff --git a/org.adempiere.base/src/org/compiere/model/X_AD_Table.java b/org.adempiere.base/src/org/compiere/model/X_AD_Table.java index ec14a8b8b1..1dd0d7b6fb 100644 --- a/org.adempiere.base/src/org/compiere/model/X_AD_Table.java +++ b/org.adempiere.base/src/org/compiere/model/X_AD_Table.java @@ -23,7 +23,7 @@ import org.compiere.util.KeyNamePair; /** Generated Model for AD_Table * @author iDempiere (generated) - * @version Release 9 - $Id$ */ + * @version Release 10 - $Id$ */ @org.adempiere.base.Model(table="AD_Table") public class X_AD_Table extends PO implements I_AD_Table, I_Persistent { @@ -31,7 +31,7 @@ public class X_AD_Table extends PO implements I_AD_Table, I_Persistent /** * */ - private static final long serialVersionUID = 20220116L; + private static final long serialVersionUID = 20220406L; /** Standard Constructor */ public X_AD_Table (Properties ctx, int AD_Table_ID, String trxName) @@ -39,9 +39,9 @@ public class X_AD_Table extends PO implements I_AD_Table, I_Persistent super (ctx, AD_Table_ID, trxName); /** if (AD_Table_ID == 0) { + setAD_Table_ID (0); setAccessLevel (null); // 4 - setAD_Table_ID (0); setEntityType (null); // @SQL=SELECT CASE WHEN '@P|AdempiereSys:N@'='Y' THEN 'D' ELSE get_sysconfig('DEFAULT_ENTITYTYPE','U',0,0) END FROM Dual setIsChangeLog (true); @@ -65,9 +65,9 @@ public class X_AD_Table extends PO implements I_AD_Table, I_Persistent super (ctx, AD_Table_ID, trxName, virtualColumns); /** if (AD_Table_ID == 0) { + setAD_Table_ID (0); setAccessLevel (null); // 4 - setAD_Table_ID (0); setEntityType (null); // @SQL=SELECT CASE WHEN '@P|AdempiereSys:N@'='Y' THEN 'D' ELSE get_sysconfig('DEFAULT_ENTITYTYPE','U',0,0) END FROM Dual setIsChangeLog (true); @@ -113,37 +113,6 @@ public class X_AD_Table extends PO implements I_AD_Table, I_Persistent return sb.toString(); } - /** AccessLevel AD_Reference_ID=5 */ - public static final int ACCESSLEVEL_AD_Reference_ID=5; - /** Organization = 1 */ - public static final String ACCESSLEVEL_Organization = "1"; - /** Client only = 2 */ - public static final String ACCESSLEVEL_ClientOnly = "2"; - /** Client+Organization = 3 */ - public static final String ACCESSLEVEL_ClientPlusOrganization = "3"; - /** System only = 4 */ - public static final String ACCESSLEVEL_SystemOnly = "4"; - /** System+Client = 6 */ - public static final String ACCESSLEVEL_SystemPlusClient = "6"; - /** All = 7 */ - public static final String ACCESSLEVEL_All = "7"; - /** Set Data Access Level. - @param AccessLevel Access Level required - */ - public void setAccessLevel (String AccessLevel) - { - - set_Value (COLUMNNAME_AccessLevel, AccessLevel); - } - - /** Get Data Access Level. - @return Access Level required - */ - public String getAccessLevel() - { - return (String)get_Value(COLUMNNAME_AccessLevel); - } - /** Set Table. @param AD_Table_ID Database Table information */ @@ -237,6 +206,37 @@ public class X_AD_Table extends PO implements I_AD_Table, I_Persistent return ii.intValue(); } + /** AccessLevel AD_Reference_ID=5 */ + public static final int ACCESSLEVEL_AD_Reference_ID=5; + /** Organization = 1 */ + public static final String ACCESSLEVEL_Organization = "1"; + /** Client only = 2 */ + public static final String ACCESSLEVEL_ClientOnly = "2"; + /** Client+Organization = 3 */ + public static final String ACCESSLEVEL_ClientPlusOrganization = "3"; + /** System only = 4 */ + public static final String ACCESSLEVEL_SystemOnly = "4"; + /** System+Client = 6 */ + public static final String ACCESSLEVEL_SystemPlusClient = "6"; + /** All = 7 */ + public static final String ACCESSLEVEL_All = "7"; + /** Set Data Access Level. + @param AccessLevel Access Level required + */ + public void setAccessLevel (String AccessLevel) + { + + set_Value (COLUMNNAME_AccessLevel, AccessLevel); + } + + /** Get Data Access Level. + @return Access Level required + */ + public String getAccessLevel() + { + return (String)get_Value(COLUMNNAME_AccessLevel); + } + /** Set Copy Columns From Table. @param CopyColumnsFromTable Copy Columns From Table */ @@ -479,6 +479,29 @@ public class X_AD_Table extends PO implements I_AD_Table, I_Persistent return false; } + /** Set Show In Drill Options. + @param IsShowInDrillOptions This parameter enables the table is displayed in Report Viewer Drill options list + */ + public void setIsShowInDrillOptions (boolean IsShowInDrillOptions) + { + set_Value (COLUMNNAME_IsShowInDrillOptions, Boolean.valueOf(IsShowInDrillOptions)); + } + + /** Get Show In Drill Options. + @return This parameter enables the table is displayed in Report Viewer Drill options list + */ + public boolean isShowInDrillOptions() + { + Object oo = get_Value(COLUMNNAME_IsShowInDrillOptions); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + /** Set View. @param IsView This is a view */ diff --git a/org.adempiere.base/src/org/compiere/process/ProcessInfo.java b/org.adempiere.base/src/org/compiere/process/ProcessInfo.java index 4b6cfc6e37..bbe7926163 100644 --- a/org.adempiere.base/src/org/compiere/process/ProcessInfo.java +++ b/org.adempiere.base/src/org/compiere/process/ProcessInfo.java @@ -167,6 +167,8 @@ public class ProcessInfo implements Serializable private int languageID = 0; + private String showHelp = null; + public int getLanguageID() { return languageID; } @@ -191,6 +193,22 @@ public class ProcessInfo implements Serializable public boolean isSummary() { return this.isSummary; } + + /** + * Set Show Help + * @param showHelp + */ + public void setShowHelp(String showHelp) { + this.showHelp = showHelp; + } + + /** + * Get Show Help + * @return String + */ + public String getShowHelp() { + return this.showHelp; + } /** * String representation diff --git a/org.adempiere.base/src/org/compiere/process/ProcessInfoParameter.java b/org.adempiere.base/src/org/compiere/process/ProcessInfoParameter.java index 9e5836466f..91184adbf7 100644 --- a/org.adempiere.base/src/org/compiere/process/ProcessInfoParameter.java +++ b/org.adempiere.base/src/org/compiere/process/ProcessInfoParameter.java @@ -227,6 +227,19 @@ public class ProcessInfoParameter implements Serializable return m_Parameter.toString(); } // getParameterAsString + /** + * Method getParameter To as BigDecimal + * @return Object + */ + public BigDecimal getParameter_ToAsBigDecimal () + { + if (m_Parameter_To == null) + return null; + if (m_Parameter_To instanceof BigDecimal) + return (BigDecimal) m_Parameter_To; + return new BigDecimal(m_Parameter_To.toString()); + } // getParameter_ToAsBigDecimal + /** * Method getParameter as BigDecimal * @return Object diff --git a/org.adempiere.base/src/org/idempiere/model/IProcessParameter.java b/org.adempiere.base/src/org/idempiere/model/IProcessParameter.java new file mode 100644 index 0000000000..8bc6a86d62 --- /dev/null +++ b/org.adempiere.base/src/org/idempiere/model/IProcessParameter.java @@ -0,0 +1,128 @@ +/********************************************************************** +* This file is part of iDempiere ERP Open Source * +* http://www.idempiere.org * +* * +* Copyright (C) Contributors * +* * +* This program is free software; you can redistribute it and/or * +* modify it under the terms of the GNU General Public License * +* as published by the Free Software Foundation; either version 2 * +* of the License, or (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public License * +* along with this program; if not, write to the Free Software * +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * +* MA 02110-1301, USA. * +* * +* Contributors: * +* - Peter Takacs, Cloudempiere * +**********************************************************************/ +package org.idempiere.model; + +import java.sql.Timestamp; + +/** + * + * @author Peter Takacs, Cloudempiere + * + */ +public interface IProcessParameter { + + /** Load Meta Data */ + + /** Get Tenant. + * Tenant for this installation. + */ + public int getAD_Client_ID(); + + /** Set Organization. + * Organizational entity within tenant + */ + public void setAD_Org_ID (int AD_Org_ID); + + /** Get Organization. + * Organizational entity within tenant + */ + public int getAD_Org_ID(); + + /** Set Process Parameter */ + public void setAD_Process_Para_ID (int AD_Process_Para_ID); + + /** Get Process Parameter */ + public int getAD_Process_Para_ID(); + + public org.compiere.model.I_AD_Process_Para getAD_Process_Para() throws RuntimeException; + + /** Get Created. + * Date this record was created + */ + public Timestamp getCreated(); + + /** Get Created By. + * User who created this records + */ + public int getCreatedBy(); + + /** Set Description. + * Optional short description of the record + */ + public void setDescription (String Description); + + /** Get Description. + * Optional short description of the record + */ + public String getDescription(); + + /** 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(); + + /** Set Default Parameter. + * Default value of the parameter + */ + public void setParameterDefault (String ParameterDefault); + + /** Get Default Parameter. + * Default value of the parameter + */ + public String getParameterDefault(); + + /** Set Default To Parameter. + * Default value of the to parameter + */ + public void setParameterToDefault (String ParameterToDefault); + + /** Get Default To Parameter. + * Default value of the to parameter + */ + public String getParameterToDefault(); + + /** Get Updated. + * Date this record was updated + */ + public Timestamp getUpdated(); + + /** Get Updated By. + * User who updated this records + */ + public int getUpdatedBy(); + /** + * Set ID of the parent table + * @param id + */ + public void setParentID(int id); + + /** Update Value or create new record. */ + public void saveEx(); +} diff --git a/org.adempiere.ui.zk/WEB-INF/src/metainfo/zk/lang-addon.xml b/org.adempiere.ui.zk/WEB-INF/src/metainfo/zk/lang-addon.xml index 3ac23523f0..12c7480c1d 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/metainfo/zk/lang-addon.xml +++ b/org.adempiere.ui.zk/WEB-INF/src/metainfo/zk/lang-addon.xml @@ -48,7 +48,7 @@ Copyright (C) 2007 Ashley G Ramdass (ADempiere WebUI). - + @@ -56,6 +56,6 @@ Copyright (C) 2007 Ashley G Ramdass (ADempiere WebUI). - + diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/AbstractProcessDialog.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/AbstractProcessDialog.java index e55933ad54..a66ed2ed84 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/AbstractProcessDialog.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/AbstractProcessDialog.java @@ -172,7 +172,10 @@ public abstract class AbstractProcessDialog extends Window implements IProcessUI m_Name = trl ? process.get_Translation(MProcess.COLUMNNAME_Name) : process.getName(); m_Description = trl ? process.get_Translation(MProcess.COLUMNNAME_Description) : process.getDescription(); m_Help = trl ? process.get_Translation(MProcess.COLUMNNAME_Help) : process.getHelp(); - m_ShowHelp = process.getShowHelp(); + if((pi != null) && !Util.isEmpty(pi.getShowHelp())) + m_ShowHelp = pi.getShowHelp(); + else + m_ShowHelp = process.getShowHelp(); // User Customization MUserDefProc userDef = MUserDefProc.getBestMatch(ctx, AD_Process_ID); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessModalDialog.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessModalDialog.java index 3eb5ba63c8..c174a6c31d 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessModalDialog.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessModalDialog.java @@ -74,14 +74,34 @@ public class ProcessModalDialog extends AbstractProcessDialog implements EventLi * @param WindowNo * @param pi */ - public ProcessModalDialog(EventListener listener, int WindowNo, ProcessInfo pi) + public ProcessModalDialog(EventListener listener, int WindowNo, ProcessInfo pi) + { + this(listener, WindowNo, true, pi); + } + + /** + * @param listener + * @param WindowNo + * @param isReRun + * @param pi + */ + public ProcessModalDialog(EventListener listener, int WindowNo, boolean isReRun, ProcessInfo pi) { this(WindowNo, pi, false); - MPInstance instance = getLastRun(); - if(instance != null) { - loadSavedParams(instance); - chooseSaveParameter(fSavedName.getRawText(), true); + + if(isReRun) { + MPInstance instance = getLastRun(); + if(instance != null) { + loadSavedParams(instance); + chooseSaveParameter(fSavedName.getRawText(), true); + } } + else { + if(pi != null) { + getParameterPanel().loadParametersFromProcessInfo(pi); + } + } + if (listener != null) { addEventListener(ON_WINDOW_CLOSE, listener); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessParameterPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessParameterPanel.java index ce2696dff6..554db401b2 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessParameterPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/ProcessParameterPanel.java @@ -60,6 +60,7 @@ import org.compiere.model.MPInstancePara; import org.compiere.model.MProcess; import org.compiere.model.X_AD_FieldGroup; import org.compiere.process.ProcessInfo; +import org.compiere.process.ProcessInfoParameter; import org.compiere.util.CLogger; import org.compiere.util.DB; import org.compiere.util.DisplayType; @@ -630,6 +631,59 @@ public class ProcessParameterPanel extends Panel implements return true; } // loadParameters + /* + * Load parameters from Process Info + */ + public boolean loadParametersFromProcessInfo(ProcessInfo pi) + { + log.config(""); + + ProcessInfoParameter[] params = pi.getParameter(); + for (int j = 0; j < m_mFields.size(); j++) + { + GridField mField = (GridField)m_mFields.get(j); + + if (!mField.isEditablePara(true)) + continue; + + // Get Values + WEditor editor = (WEditor)m_wEditors.get(j); + WEditor editor2 = (WEditor)m_wEditors2.get(j); + + editor.setValue(null); + if (editor2 != null) + editor2.setValue(null); + + for ( int i = 0; i { + + /** + * + */ + private static final long serialVersionUID = 5143424676962140799L; + + private static final String DRILL_REPORT_PRINTFORMAT_ID_NAME = "AD_PrintFormat_ID"; + + private static final String DRILL_PROCESS_RULE_ID_NAME = "AD_Process_DrillRule_ID"; + + private DrillReportCtl drillReportCtl; + private String winpref; + + private Tabpanel tabPanel; + private Tab tableTab; + private boolean tablesLoaded = false; + + private int windowNo = 0; + + /** + * + * @param data + * @param parent + * @param WindowNo + */ + public WDrillReport(DrillData data, Component parent, int WindowNo) { + super(); + this.windowNo = WindowNo; + drillReportCtl = new DrillReportCtl(data.getQuery().getTableName(), data.getQuery(), data.getColumnName(), data.getValue(), data.getDisplayValue(), WindowNo); + + this.setTitle(Msg.getMsg(Env.getCtx(), "DrillAssistant")); + this.setClosable(true); + ZKUpdateUtil.setWidth(this, "60%"); + ZKUpdateUtil.setHeight(this, "70%"); + this.setAttribute(Window.MODE_KEY, Window.MODE_EMBEDDED); + this.setSclass("help-window"); + this.setSizable(true); + this.setMaximizable(true); + + Borderlayout borderlayout = new Borderlayout(); + this.appendChild(borderlayout); + ZKUpdateUtil.setHflex(borderlayout, "1"); + ZKUpdateUtil.setVflex(borderlayout, "1"); + + Center centerPane = new Center(); + centerPane.setAutoscroll(true); + borderlayout.appendChild(centerPane); + + Div div = new Div(); + centerPane.appendChild(div); + div.setStyle("width: 100%; height: 100%; overflow: auto;"); + Table table = new Table(); + table.setStyle("width: 100%;"); + div.appendChild(table); + + table.setWidgetAttribute("cellspacing", "0"); + table.setWidgetAttribute("cellpadding", "0"); + table.setWidgetAttribute("border", "0"); + + Tr tr = new Tr(); + table.appendChild(tr); + + Td td = new Td(); + tr.appendChild(td); + td.appendChild(getHeader()); + + tr = new Tr(); + table.appendChild(tr); + + td = new Td(); + tr.appendChild(td); + td.appendChild(getContent()); + } + + private Table getHeader() + { + Table table = new Table(); + table.setWidgetAttribute("cellspacing", "0"); + table.setWidgetAttribute("cellpadding", "0"); + table.setWidgetAttribute("border", "0"); + table.setStyle("width: 100%;"); + table.setWidgetAttribute("class","help-window-header"); + + Tr tr = new Tr(); + table.appendChild(tr); + + Td td = new Td(); + td.setWidgetAttribute("class","help-window-title"); + tr.appendChild(td); + // generate a unique win prefix id for this help window + Calendar cal = Calendar.getInstance(); + SimpleDateFormat sdf = new SimpleDateFormat("ddHHmmss"); + String dt = sdf.format(cal.getTime()); + winpref = "Win"+dt; + A a = new A(); + a.setWidgetAttribute("name", winpref); + td.appendChild(a); + StringBuilder title = new StringBuilder(Msg.getMsg(Env.getCtx(), "DrillColumn")).append(": ").append(drillReportCtl.getTableName()) + .append(" - ").append(!Util.isEmpty(drillReportCtl.getDisplayValue()) ? drillReportCtl.getDisplayValue() : drillReportCtl.getValue()); + H3 h3 = new H3(); + h3.appendChild(new Text(title.toString())); + td.appendChild(h3); + + + tr = new Tr(); + table.appendChild(tr); + + td = new Td(); + tr.appendChild(td); + + tr = new Tr(); + table.appendChild(tr); + + td = new Td(); + tr.setWidgetAttribute("class","help-window-tabs"); + tr.appendChild(td); + + tr = new Tr(); + table.appendChild(tr); + + td = new Td(); + tr.appendChild(td); + + return table; + } + + private Tabbox getContent() + { + + Tabbox tabbox = new Tabbox(); + Tabs tabs = new Tabs(); + tabbox.appendChild(tabs); + Tabpanels tabpanels = new Tabpanels(); + tabbox.appendChild(tabpanels); + + Tab tab = new Tab(Msg.getElement(Env.getCtx(), "AD_Process_DrillRule_ID")); + tabs.appendChild(tab); + tab = new Tab(Msg.getElement(Env.getCtx(), "AD_Table_ID")); + tab.addEventListener(Events.ON_SELECT, this); + tabs.appendChild(tab); + tableTab = tab; + + Tabpanel tabPanel = new Tabpanel(); + tabPanel.appendChild(getTabContent(1, drillReportCtl.getDrillProcessList(), drillReportCtl.getDrillProcesRules(), true)); + tabpanels.appendChild(tabPanel); + + tabPanel = new Tabpanel(); + tabpanels.appendChild(tabPanel); + this.tabPanel = tabPanel; + + return tabbox; + } + + private Table getTabContent(int tabIndex, KeyNamePair[] drillTables, HashMap drillPrintFormatMap, boolean isDrillProcessRule) + { + Table table = new Table(); + table.setWidgetAttribute("cellspacing", "0"); + table.setWidgetAttribute("cellpadding", "0"); + table.setWidgetAttribute("border", "0"); + table.setStyle("width: 100%;"); + table.setWidgetAttribute("class","help-window-content-r"); + + + Tr tr = null; + Td td = null; + int size = drillTables.length; + + if(size <= 0) { + tr = new Tr(); + table.appendChild(tr); + td = new Td(); + tr.appendChild(td); + + String message = isDrillProcessRule ? "NoDrillRuleFound" : "NoTableWithDrillOptions"; + + Span span = new Span(); + span.appendChild(new Text(Msg.getMsg(Env.getCtx(), message))); + td.setStyle("text-align: center;"); + td.appendChild(span); + } + else { + // tab + tr = new Tr(); + table.appendChild(tr); + + td = new Td(); + tr.appendChild(td); + A a = new A(); + a.setWidgetAttribute("name",winpref+"Tables"); + td.appendChild(a); + td.appendChild(getTablesBox(tabIndex, drillTables)); + for (int i = 0; i < size; i++) + { + + KeyNamePair drillTable = drillTables[i]; + + // tab + tr = new Tr(); + table.appendChild(tr); + + td = new Td(); + tr.appendChild(td); + td.appendChild(getDrillTableBox(drillTable, i, tabIndex, drillPrintFormatMap, isDrillProcessRule)); + } + } + + return table; + } + + private Table getDrillTableBox(KeyNamePair drillTable, int tabIndex, int groupIndex, HashMap drillPrintFormatMap, boolean isDrillProcessRule) + { + Table table = new Table(); + table.setWidgetAttribute("cellspacing", "0"); + table.setWidgetAttribute("cellpadding", "0"); + table.setWidgetAttribute("border", "0"); + table.setStyle("width: 100%; margin-top: 25px;"); + table.setWidgetAttribute("class","drill-window-tab"); + + Tr tr = new Tr(); + tr.setWidgetAttribute("class", "help-window-tab-header"); + table.appendChild(tr); + + Td td = new Td(); + td.setWidgetAttribute("class","help-window-tab-name"); + + td.setColspan(4); + tr.appendChild(td); + A a = new A(); + a.setWidgetAttribute("name",winpref+"Rep" + tabIndex+"-"+groupIndex); + td.appendChild(a); + Div header = new Div(); + header.setStyle("padding: 10px 0px 10px 0px"); + HtmlNativeComponent h3 = new HtmlNativeComponent("h3", drillTable.getName(), ""); + header.appendChild(h3); + td.appendChild(header); + + a = new A(); + a.setWidgetAttribute("title", "Up one level"); + a.setHref("#"+winpref); + a.appendChild(new Text("..")); + header.appendChild(a); + + KeyNamePair[] drillPrintFormats = drillPrintFormatMap.get(drillTable.getKey()); + for (int j = 0; j < drillPrintFormats.length; j++) + { + KeyNamePair drillPrintFormat = drillPrintFormats[j]; + + KeyNamePair[] printFormats = isDrillProcessRule ? drillReportCtl.getDrillProcessRulesPrintFormatMap(drillPrintFormat.getKey()) : new KeyNamePair[] {drillPrintFormat} ; + + // create new Print Format + if (printFormats.length <= 0) + { + KeyNamePair[] pfArray = {null}; + MPrintFormat pf = null; + MProcessDrillRule dr = MProcessDrillRule.get(Env.getCtx(), drillPrintFormat.getKey()); + if(dr != null) { + int AD_ReportView_ID = dr.getAD_ReportView_ID(); + if (AD_ReportView_ID == 0) + AD_ReportView_ID = MProcess.get(dr.getAD_Process_ID()).getAD_ReportView_ID(); + if (AD_ReportView_ID != 0) + { + String name = MReportView.get(AD_ReportView_ID).getName(); + pf = MPrintFormat.createFromReportView(Env.getCtx(), AD_ReportView_ID, name); + } + else + { + int AD_Table_ID = dr.getAD_Table_ID(); + pf = MPrintFormat.createFromTable(Env.getCtx(), AD_Table_ID); + } + if (pf != null) + pfArray[0] = new KeyNamePair(pf.getAD_PrintFormat_ID(), pf.getName()); + + printFormats = pfArray; + } + if (printFormats.length <= 0) { + int AD_Table_ID = new Query(Env.getCtx(), MTable.Table_Name, " Name = ? ", null).setParameters(drillPrintFormat.getName()).firstId(); + pf = MPrintFormat.createFromTable(Env.getCtx(), AD_Table_ID); + pfArray[0] = new KeyNamePair(pf.getAD_PrintFormat_ID(), pf.getName()); + printFormats = pfArray; + } + } + for(KeyNamePair printFormat: printFormats) { + String hdr = printFormat.getName(); + if (hdr != null && hdr.length() > 0) + { + // field + if (printFormat.getKey() <= 0) { + table.appendChild(getPrintFormatHeader(printFormat, isDrillProcessRule? drillPrintFormat : null)); + + } else { + table.appendChild(getPrintFormatBox(printFormat, tabIndex, j, tabIndex, isDrillProcessRule? drillPrintFormat : null, printFormats.length == 1)); + } + } + } + } + + return table; + } + + + + private Table getTablesBox(int tabIndex, KeyNamePair[] drillTables) + { + Table table = new Table(); + table.setWidgetAttribute("cellspacing", "0"); + table.setWidgetAttribute("cellpadding", "0"); + table.setWidgetAttribute("border", "0"); + table.setStyle("width: 100%;"); + table.setWidgetAttribute("class","help-window-fields"); + + Tr tr = new Tr(); + table.appendChild(tr); + + Td td = new Td(); + tr.appendChild(td); + + tr = new Tr(); + tr.setWidgetAttribute("class","help-window-Formats-link"); + table.appendChild(tr); + + td = new Td(); + tr.appendChild(td); + P p = new P(); + td.appendChild(p); + + for (int j = 0; j < drillTables.length; j++) + { + KeyNamePair printFormat = drillTables[j]; + String hdr = printFormat.getName(); + if (hdr != null && hdr.length() > 0) + { + if (j > 0) + p.appendChild(new Text(" ")); + A a = new A(); + a.setHref("#"+winpref+"Rep" + j+"-" + tabIndex); + a.appendChild(new Text(hdr)); + p.appendChild(a); + if((j+1) < drillTables.length) + p.appendChild(new Text(" , ")); + } + } + + tr = new Tr(); + table.appendChild(tr); + + td = new Td(); + tr.appendChild(td); + + return table; + } + + private Tr getPrintFormatHeader(KeyNamePair drillPrintFormat, KeyNamePair drillProcessRule) { + Tr tr = new Tr(); + tr.setWidgetAttribute("class", "drill-window-field-header"); + + Td td = new Td(); + td.setStyle("width: 100%; border-bottom: 1px solid gray;"); + td.setColspan(3); + tr.appendChild(td); + H4 h4 = new H4(); + h4.appendChild(new Text(drillProcessRule != null ? drillProcessRule.getName(): drillPrintFormat.getName())); + + td.appendChild(h4); + return tr; + } + + private Tr getPrintFormatBox(KeyNamePair drillPrintFormat, int reportIndex, int formatIndex, int groupIndex, KeyNamePair drillTable, boolean isSinglePrintFormat) + { + + Tr tr = new Tr(); + tr.setWidgetAttribute("class", "drill-window-field-name"); + + Td td = new Td(); + td.setStyle("width: 30%"); + tr.appendChild(td); + A a = new A(); + a.setWidgetAttribute("name",winpref+"Format" + reportIndex + "-" + formatIndex + "-" + groupIndex); + td.appendChild(a); + H4 h4 = new H4(); + h4.appendChild(new Text(drillPrintFormat.getName())); + + + td.appendChild(h4); + a = new A(); + a.setHref("#"+winpref+"Rep"+reportIndex+"-"+groupIndex); + a.setWidgetAttribute("title", "Up one level"); + a.appendChild(new Text("..")); + td.appendChild(a); + + + + td = new Td(); + td.setStyle("width: 10%"); + tr.appendChild(td); + + a = new A(); + a.setWidgetAttribute("title", "Run Report"); + a.setHref("#"); + a.appendChild(new Text("[" + Msg.getMsg(Env.getCtx(), "Run") + "]")); + a.addEventListener(Events.ON_CLICK, this); + a.setAttribute(DRILL_REPORT_PRINTFORMAT_ID_NAME, drillPrintFormat.getKey()); + + if(drillTable != null) + a.setAttribute(DRILL_PROCESS_RULE_ID_NAME, drillTable.getKey()); + + td.appendChild(a); + + String description = ""; + + if(drillTable != null && isSinglePrintFormat) { + MProcessDrillRule dr = MProcessDrillRule.get(Env.getCtx(), drillTable.getKey()); + if(dr != null) { + if (!Util.isEmpty(dr.getDescription())) + description = dr.getDescription(); + } + } + + if(Util.isEmpty(description)) { + MPrintFormat pf = MPrintFormat.get(drillPrintFormat.getKey()); + if(pf != null) { + if (!Util.isEmpty(pf.getDescription())) + description = pf.getDescription(); + } + } + + + td = new Td(); + td.setStyle("width: 60"); + tr.appendChild(td); + td.appendChild(new Text(description)); + + return tr; + } + + @Override + public void onEvent(Event event) throws Exception { + if(event.getTarget().equals(tableTab) && !tablesLoaded) { + drillReportCtl.initDrillTableMaps(); + tabPanel.appendChild(getTabContent(2, drillReportCtl.getDrillTables(), drillReportCtl.getDrillTablePrintFormatMap(), false)); + tablesLoaded = true; + } + if(event.getTarget().getAttribute(DRILL_REPORT_PRINTFORMAT_ID_NAME) != null) { + if(event.getTarget().getAttribute(DRILL_PROCESS_RULE_ID_NAME) != null) { + ProcessInfo pi = drillReportCtl.getDrillProcessProcessInfo((int) event.getTarget().getAttribute(DRILL_PROCESS_RULE_ID_NAME), (int) event.getTarget().getAttribute(DRILL_REPORT_PRINTFORMAT_ID_NAME)); + Integer processDrillRuleID = (Integer) event.getTarget().getAttribute(DRILL_PROCESS_RULE_ID_NAME); + MProcessDrillRule drillRule = new MProcessDrillRule(Env.getCtx(), processDrillRuleID, null); + String showHelp = !Util.isEmpty(showHelp = drillRule.getShowHelp()) ? showHelp : MProcess.SHOWHELP_RunSilently_TakeDefaults; + pi.setShowHelp(showHelp); + ProcessModalDialog processModalDialog = new ProcessModalDialog(this, windowNo, false, pi); + ZKUpdateUtil.setWindowWidthX(processModalDialog, 850); + this.appendChild(processModalDialog); + if (ClientInfo.isMobile()) + { + processModalDialog.doHighlighted(); + } + else + { + LayoutUtils.openOverlappedWindow(this, processModalDialog, "middle_center"); + } + processModalDialog.focus(); + } else { + drillReportCtl.launchTableDrillReport((int) event.getTarget().getAttribute(DRILL_REPORT_PRINTFORMAT_ID_NAME)); + this.onClose(); + } + + return; + } + if (DialogEvents.ON_WINDOW_CLOSE.equals(event.getName())) + this.onClose(); + } + +} diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WProcessParameter.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WProcessParameter.java index 744f27675d..16260536ef 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WProcessParameter.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/apps/form/WProcessParameter.java @@ -19,12 +19,17 @@ import org.adempiere.webui.panel.IFormController; import org.adempiere.webui.panel.WProcessParameterForm; import org.compiere.model.MPInstancePara; import org.compiere.model.MProcess; +import org.compiere.model.MProcessDrillRule; +import org.compiere.model.MProcessDrillRulePara; import org.compiere.model.MProcessPara; import org.compiere.model.MScheduler; import org.compiere.model.MSchedulerPara; +import org.compiere.model.MTable; +import org.compiere.model.PO; import org.compiere.util.DisplayType; import org.compiere.util.Env; import org.compiere.util.Util; +import org.idempiere.model.IProcessParameter; /** * @author hengsin @@ -51,62 +56,86 @@ public class WProcessParameter implements IFormController { } /** - * Save parameters to AD_Scheduler_Para + * Save parameters * @param paras + * @param tableName */ - public void saveParameters(MPInstancePara[] paras) { - MScheduler scheduler = new MScheduler(Env.getCtx(), parameterForm.getProcessInfo().getRecord_ID(), null); - int AD_Process_ID = scheduler.getAD_Process_ID(); + public void saveParameters(MPInstancePara[] paras, String tableName) { + + MTable table = MTable.get(Env.getCtx(), tableName); + PO po = table.getPO(parameterForm.getProcessInfo().getRecord_ID(), null); + String idColumn = ""; + + int AD_Process_ID = po.get_ValueAsInt("AD_Process_ID"); //scheduler.getAD_Process_ID(); if (AD_Process_ID > 0 && paras.length > 0) { MProcess process = MProcess.get(Env.getCtx(), AD_Process_ID); MProcessPara[] processParameters = process.getParameters(); - MSchedulerPara[] schedulerParas = scheduler.getParameters(true); - for(MSchedulerPara para : schedulerParas) { - para.deleteEx(true); - } + //delete parameters + if(tableName.equalsIgnoreCase(MScheduler.Table_Name)) { + idColumn = "AD_Scheduler_ID"; + MScheduler scheduler = new MScheduler(Env.getCtx(), po.get_ID(), null); + MSchedulerPara[] schedulerParas = scheduler.getParameters(true); + for(MSchedulerPara para : schedulerParas) { + para.deleteEx(true); + } + } + else if(tableName.equalsIgnoreCase(MProcessDrillRule.Table_Name)) { + idColumn = "AD_Process_DrillRule_ID"; + MProcessDrillRule drillRule = new MProcessDrillRule(Env.getCtx(), po.get_ID(), null); + MProcessDrillRulePara[] drillRuleParas = drillRule.getParameters(true); + for(MProcessDrillRulePara para : drillRuleParas) { + para.deleteEx(true); + } + } + // + //child table always must have "_Para" suffix for(MPInstancePara para : paras) { - MSchedulerPara schedulerPara = new MSchedulerPara(Env.getCtx(), 0, null); - schedulerPara.setAD_Scheduler_ID(scheduler.getAD_Scheduler_ID()); + table = MTable.get(Env.getCtx(), tableName+"_Para"); + IProcessParameter poPara = null; + if(tableName.equalsIgnoreCase(MScheduler.Table_Name)) + poPara = new MSchedulerPara(Env.getCtx(), 0, null); + else if(tableName.equalsIgnoreCase(MProcessDrillRule.Table_Name)) + poPara = new MProcessDrillRulePara(Env.getCtx(), 0, null); + poPara.setParentID(po.get_ValueAsInt(idColumn)); for(MProcessPara processPara : processParameters) { if (processPara.getColumnName().equals(para.getParameterName())) { - schedulerPara.setAD_Process_Para_ID(processPara.getAD_Process_Para_ID()); + poPara.setAD_Process_Para_ID(processPara.getAD_Process_Para_ID()); if (DisplayType.isNumeric(processPara.getAD_Reference_ID())) { if (para.get_Value(MPInstancePara.COLUMNNAME_P_Number) != null) - schedulerPara.setParameterDefault(para.getP_Number().toString()); + poPara.setParameterDefault(para.getP_Number().toString()); if (processPara.isRange() && para.get_Value(MPInstancePara.COLUMNNAME_P_Number_To) != null) - schedulerPara.setParameterToDefault(para.getP_Number_To().toString()); + poPara.setParameterToDefault(para.getP_Number_To().toString()); } else if (DisplayType.isID(processPara.getAD_Reference_ID())) { if (para.get_Value(MPInstancePara.COLUMNNAME_P_Number) != null) - schedulerPara.setParameterDefault(Integer.toString(para.getP_Number().intValue())); + poPara.setParameterDefault(Integer.toString(para.getP_Number().intValue())); if (processPara.isRange() && para.get_Value(MPInstancePara.COLUMNNAME_P_Number_To) != null) - schedulerPara.setParameterToDefault(Integer.toString(para.getP_Number_To().intValue())); + poPara.setParameterToDefault(Integer.toString(para.getP_Number_To().intValue())); } else if (DisplayType.isDate(processPara.getAD_Reference_ID())) { if (para.getP_Date() != null) - schedulerPara.setParameterDefault(para.getP_Date().toString()); + poPara.setParameterDefault(para.getP_Date().toString()); if (processPara.isRange() && para.getP_Date_To() != null) - schedulerPara.setParameterToDefault(para.getP_Date_To().toString()); + poPara.setParameterToDefault(para.getP_Date_To().toString()); } else { - schedulerPara.setParameterDefault(para.getP_String()); + poPara.setParameterDefault(para.getP_String()); if (processPara.isRange() && para.getP_String_To() != null) - schedulerPara.setParameterToDefault(para.getP_String_To()); + poPara.setParameterToDefault(para.getP_String_To()); } if (!Util.isEmpty(para.getInfo())) { - schedulerPara.setDescription(para.getInfo()); + poPara.setDescription(para.getInfo()); } if (!Util.isEmpty(para.getInfo_To())) { - String s = schedulerPara.getDescription(); + String s = poPara.getDescription(); if (Util.isEmpty(s)) s = para.getInfo_To(); else s = s + ", " + para.getInfo_To(); - schedulerPara.setDescription(s); + poPara.setDescription(s); } break; } } - - schedulerPara.saveEx(); + poPara.saveEx(); } } } diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/DrillCommand.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/DrillCommand.java index 004efcfbc8..8fbae5cfbb 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/DrillCommand.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/DrillCommand.java @@ -54,12 +54,17 @@ public class DrillCommand implements AuService { String columnName = (String) data.get(0); String tableName = MQuery.getZoomTableName(columnName); - String code = (String) data.get(1); + Object code = null; + if(tableName.endsWith("_ID")) + code = (Integer) data.get(1); + else + code = (String) data.get(1); + String displayValue = data.size() >= 3 ? (String) data.get(2) : null; // MQuery query = new MQuery(tableName); query.addRestriction(columnName, MQuery.EQUAL, code); - Events.postEvent(new DrillEvent(request.getCommand(), comp, query)); + Events.postEvent(new DrillEvent(request.getCommand(), comp, new DrillEvent.DrillData(query, columnName, code, displayValue, null ))); return true; } diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WChosenboxListEditor.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WChosenboxListEditor.java index 9b3ab7897e..2f8c66463c 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WChosenboxListEditor.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WChosenboxListEditor.java @@ -329,7 +329,7 @@ public class WChosenboxListEditor extends WEditor implements ContextMenuListener return; } - if (value != null) + if (value != null && value instanceof String && !Util.isEmpty((String) value, true)) { String[] values = ((String)value).split("[,]"); Set selected = new LinkedHashSet<>(); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/event/DrillEvent.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/event/DrillEvent.java index e172297719..75c2117552 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/event/DrillEvent.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/event/DrillEvent.java @@ -13,6 +13,7 @@ *****************************************************************************/ package org.adempiere.webui.event; +import org.compiere.model.MQuery; import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.event.Event; @@ -34,4 +35,47 @@ public class DrillEvent extends Event { super(name, target, data); } + public static class DrillData { + + private MQuery query; + + private String columnName; + + private String displayValue; + + private Object value; + + private Object data; + + public DrillData(MQuery query, String columnName, Object value, String displayValue, Object data) { + this.query = query; + this.columnName = columnName; + this.value = value; + this.data = data; + this.displayValue = displayValue; + } + + public MQuery getQuery() { + return query; + } + + public String getColumnName() { + return columnName; + } + + public Object getValue() { + return value; + } + + public Object getData() { + return data; + } + + public String getDisplayValue() { + return displayValue; + } + + + } + } diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WProcessParameterForm.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WProcessParameterForm.java index e02314b13e..3237c9f1d0 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WProcessParameterForm.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/WProcessParameterForm.java @@ -28,7 +28,9 @@ import org.adempiere.webui.component.VerticalBox; import org.adempiere.webui.factory.ButtonFactory; import org.adempiere.webui.theme.ThemeManager; import org.adempiere.webui.util.ZKUpdateUtil; +import org.compiere.model.GridTab; import org.compiere.model.MPInstancePara; +import org.compiere.model.MProcessDrillRule; import org.compiere.model.MScheduler; import org.compiere.process.ProcessInfo; import org.compiere.util.CLogger; @@ -63,6 +65,8 @@ public class WProcessParameterForm extends ADForm private String m_Name; private StringBuffer m_messageText = new StringBuffer(); + + private String tableName = ""; private ProcessParameterPanel parameterPanel; @@ -72,7 +76,7 @@ public class WProcessParameterForm extends ADForm pp = wpp; initComponents(); } - + @Override public Mode getWindowMode() { return Mode.HIGHLIGHTED; @@ -107,15 +111,28 @@ public class WProcessParameterForm extends ADForm private void onOK() { MPInstancePara[] paras = parameterPanel.getParameters(); - pp.saveParameters(paras); + GridTab gridTab = super.getGridTab(); + if(gridTab != null) + tableName = gridTab.getTableName(); + pp.saveParameters(paras, tableName); this.dispose(); } @Override protected void initForm() { if (getProcessInfo() != null) { - MScheduler scheduler = new MScheduler(Env.getCtx(), getProcessInfo().getRecord_ID(), null); - int AD_Process_ID = scheduler.getAD_Process_ID(); + int AD_Process_ID = 0; + GridTab gridTab = super.getGridTab(); + if(gridTab != null) + tableName = gridTab.getTableName(); + if(tableName.equalsIgnoreCase(MScheduler.Table_Name)) { + MScheduler scheduler = new MScheduler(Env.getCtx(), getProcessInfo().getRecord_ID(), null); + AD_Process_ID = scheduler.getAD_Process_ID(); + } + else if(tableName.equalsIgnoreCase(MProcessDrillRule.Table_Name)) { + MProcessDrillRule drillRule = new MProcessDrillRule(Env.getCtx(), getProcessInfo().getRecord_ID(), null); + AD_Process_ID = drillRule.getAD_Process_ID(); + } if (AD_Process_ID > 0) { processInfo = new ProcessInfo("", AD_Process_ID); init(); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/report/HTMLExtension.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/report/HTMLExtension.java index 9dc068242c..4ff528fe67 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/report/HTMLExtension.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/report/HTMLExtension.java @@ -73,6 +73,7 @@ public class HTMLExtension implements IHTMLExtension { href.addAttribute ("componentId", componentId); href.addAttribute ("foreignColumnName", dataElement.getForeignColumnName()); href.addAttribute ("value", dataElement.getValueAsString()); + href.addAttribute ("displayValue", dataElement.getValueDisplay(Env.getLanguage(Env.getCtx()))); } public void extendRowElement(ConcreteElement row, PrintData printData) { @@ -123,12 +124,29 @@ public class HTMLExtension implements IHTMLExtension { if (!reportIco.startsWith("/") && !contextPath.endsWith("/")) reportImageURL.append("/"); reportImageURL.append(reportIco); - } + } + + StringBuilder drillAssistantImageURL = new StringBuilder(); + String drillAssistantIco = ThemeManager.getThemeResource("images/Zoom16.png"); + if (drillAssistantIco.startsWith("~./")) { + if (Executions.getCurrent() != null) { + drillAssistantImageURL.append(Executions.encodeURL(drillAssistantIco)); + } + } else { + drillAssistantImageURL.append(contextPath); + if (!drillAssistantIco.startsWith("/") && !contextPath.endsWith("/")) + drillAssistantImageURL.append("/"); + drillAssistantImageURL.append(drillAssistantIco); + } + reportBody.addAttribute("windowIco",windowImageURL.toString()); reportBody.addAttribute("reportIco", reportImageURL.toString()); reportBody.addAttribute ("reportLabel", Msg.getMsg(AEnv.getLanguage(Env.getCtx()), "Report").replace("&", "")); reportBody.addAttribute ("windowLabel", Msg.getMsg(AEnv.getLanguage(Env.getCtx()), "Window")); + reportBody.addAttribute("drillAssistantIco", drillAssistantImageURL.toString()); + reportBody.addAttribute ("drillAssistantLabel", Msg.getMsg(AEnv.getLanguage(Env.getCtx()), "DrillAssistant").replace("&", "")); + } public String getFullPathStyle() { diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java index fb0a670a28..79db70f617 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/ZkReportViewer.java @@ -41,14 +41,15 @@ import org.adempiere.util.Callback; import org.adempiere.util.ContextRunnable; import org.adempiere.webui.ClientInfo; import org.adempiere.webui.Extensions; +import org.adempiere.webui.ISupportMask; import org.adempiere.webui.LayoutUtils; import org.adempiere.webui.apps.AEnv; import org.adempiere.webui.apps.BusyDialog; import org.adempiere.webui.apps.ProcessModalDialog; +import org.adempiere.webui.apps.WDrillReport; import org.adempiere.webui.apps.WReport; import org.adempiere.webui.apps.form.WReportCustomization; import org.adempiere.webui.component.Checkbox; -import org.adempiere.webui.component.Label; import org.adempiere.webui.component.ListItem; import org.adempiere.webui.component.Listbox; import org.adempiere.webui.component.Mask; @@ -61,6 +62,7 @@ import org.adempiere.webui.editor.WStringEditor; import org.adempiere.webui.editor.WTableDirEditor; import org.adempiere.webui.event.DialogEvents; import org.adempiere.webui.event.DrillEvent; +import org.adempiere.webui.event.DrillEvent.DrillData; import org.adempiere.webui.event.ZoomEvent; import org.adempiere.webui.panel.ADForm; import org.adempiere.webui.panel.ITabOnCloseHandler; @@ -118,7 +120,6 @@ import org.zkoss.zul.A; import org.zkoss.zul.Borderlayout; import org.zkoss.zul.Center; import org.zkoss.zul.Div; -import org.zkoss.zul.Hlayout; import org.zkoss.zul.Iframe; import org.zkoss.zul.Listitem; import org.zkoss.zul.Menuitem; @@ -198,8 +199,6 @@ public class ZkReportViewer extends Window implements EventListener, ITab private Listbox comboReport = new Listbox(); private Listitem previousSelected = new Listitem(); private WTableDirEditor wLanguage; - private Label labelDrill = new Label(); - private Listbox comboDrill = new Listbox(); protected Listbox previewType = new Listbox(); private ToolBarButton bRefresh = new ToolBarButton(); @@ -501,23 +500,6 @@ public class ZkReportViewer extends Window implements EventListener, ITab toolbarPopup.appendChild(toolbarPopupLayout); } - labelDrill.setValue(Msg.getMsg(Env.getCtx(), "Drill") + ": "); - comboDrill.setMold("select"); - comboDrill.setTooltiptext(Msg.getMsg(Env.getCtx(), "Drill")); - if (toolbarPopup != null) - { - Hlayout hl = new Hlayout(); - hl.setValign("middle"); - hl.appendChild(labelDrill); - hl.appendChild(comboDrill); - toolbarPopupLayout.appendChild(hl); - } - else - { - toolBar.appendChild(labelDrill); - toolBar.appendChild(comboDrill); - } - if (toolbarPopup == null) toolBar.appendChild(new Separator("vertical")); @@ -832,14 +814,9 @@ public class ZkReportViewer extends Window implements EventListener, ITab if (event instanceof DrillEvent) { Clients.clearBusy(); DrillEvent de = (DrillEvent) event; - if (de.getData() != null && de.getData() instanceof MQuery) { - MQuery query = (MQuery) de.getData(); - Listitem item = comboDrill.getSelectedItem(); - if (item != null && item.getValue() != null && item.toString().trim().length() > 0) - { - query.setTableName(item.getValue().toString()); - executeDrill(query, event.getTarget()); - } + if (de.getData() != null && de.getData() instanceof DrillData) { + DrillData data = (DrillData) de.getData(); + executeDrill(data, event.getTarget()); } } @@ -852,9 +829,9 @@ public class ZkReportViewer extends Window implements EventListener, ITab if (event instanceof DrillEvent) { Clients.clearBusy(); DrillEvent de = (DrillEvent) event; - if (de.getData() != null && de.getData() instanceof MQuery) { - MQuery query = (MQuery) de.getData(); - executeDrill(query, event.getTarget()); + if (de.getData() != null && de.getData() instanceof DrillData) { + DrillData data = (DrillData) de.getData(); + executeDrillDown(data, event.getTarget()); } } @@ -1020,66 +997,6 @@ public class ZkReportViewer extends Window implements EventListener, ITab fillComboReport(m_reportEngine.getPrintFormat().get_ID()); - // fill Drill Options (Name, TableName) - comboDrill.appendItem("", null); - String sql = "SELECT t.AD_Table_ID, t.TableName, e.PrintName, NULLIF(e.PO_PrintName,e.PrintName) " - + "FROM AD_Column c " - + " INNER JOIN AD_Column used ON (c.ColumnName=used.ColumnName)" - + " INNER JOIN AD_Table t ON (used.AD_Table_ID=t.AD_Table_ID AND t.IsView='N' AND t.AD_Table_ID <> c.AD_Table_ID)" - + " INNER JOIN AD_Column cKey ON (t.AD_Table_ID=cKey.AD_Table_ID AND cKey.IsKey='Y')" - + " INNER JOIN AD_Element e ON (cKey.ColumnName=e.ColumnName) " - + "WHERE c.AD_Table_ID=? AND c.IsKey='Y' " - + "ORDER BY 3"; - boolean trl = !Env.isBaseLanguage(Env.getCtx(), "AD_Element"); - if (trl) - sql = "SELECT t.AD_Table_ID, t.TableName, et.PrintName, NULLIF(et.PO_PrintName,et.PrintName) " - + "FROM AD_Column c" - + " INNER JOIN AD_Column used ON (c.ColumnName=used.ColumnName)" - + " INNER JOIN AD_Table t ON (used.AD_Table_ID=t.AD_Table_ID AND t.IsView='N' AND t.AD_Table_ID <> c.AD_Table_ID)" - + " INNER JOIN AD_Column cKey ON (t.AD_Table_ID=cKey.AD_Table_ID AND cKey.IsKey='Y')" - + " INNER JOIN AD_Element e ON (cKey.ColumnName=e.ColumnName)" - + " INNER JOIN AD_Element_Trl et ON (e.AD_Element_ID=et.AD_Element_ID) " - + "WHERE c.AD_Table_ID=? AND c.IsKey='Y'" - + " AND et.AD_Language=? " - + "ORDER BY 3"; - PreparedStatement pstmt = null; - ResultSet rs = null; - try - { - pstmt = DB.prepareStatement(sql, null); - pstmt.setInt(1, m_reportEngine.getPrintFormat().getAD_Table_ID()); - if (trl) - pstmt.setString(2, Env.getAD_Language(Env.getCtx())); - rs = pstmt.executeQuery(); - while (rs.next()) - { - String tableName = rs.getString(2); - String name = rs.getString(3); - String poName = rs.getString(4); - if (poName != null) - name += "/" + poName; - comboDrill.appendItem(name, tableName); - } - } - catch (SQLException e) - { - log.log(Level.SEVERE, sql, e); - } - finally - { - DB.close(rs, pstmt); - rs = null; - pstmt = null; - } - - if (comboDrill.getItemCount() == 1) - { - labelDrill.setVisible(false); - comboDrill.setVisible(false); - } - else - comboDrill.addEventListener(Events.ON_SELECT, this); - revalidate(); } // dynInit @@ -1333,23 +1250,70 @@ public class ZkReportViewer extends Window implements EventListener, ITab /** * Execute Drill to Query - * @param query query + * @param data query * @param component */ - private void executeDrill (MQuery query, Component component) + private void executeDrill (DrillData data, Component component) { - int AD_Table_ID = MTable.getTable_ID(query.getTableName()); + int AD_Table_ID = MTable.getTable_ID(data.getQuery().getTableName()); if (!MRole.getDefault().isCanReport(AD_Table_ID)) { - FDialog.error(m_WindowNo, this, "AccessCannotReport", query.getTableName()); + FDialog.error(m_WindowNo, this, "AccessCannotReport", data.getQuery().getTableName()); return; } - if (AD_Table_ID != 0) - new WReport (AD_Table_ID, query, component, m_WindowNo); + if (AD_Table_ID != 0) { + WDrillReport drillReport = new WDrillReport(data, component, m_WindowNo); + + Object window = SessionManager.getAppDesktop().findWindow(m_WindowNo); + if (window != null && window instanceof Component && window instanceof ISupportMask){ + final ISupportMask parent = LayoutUtils.showWindowWithMask(drillReport, (Component)window, LayoutUtils.OVERLAP_PARENT); + drillReport.addEventListener(DialogEvents.ON_WINDOW_CLOSE, new EventListener() { + @Override + public void onEvent(Event event) throws Exception { + parent.hideMask(); + } + }); + }else if (window != null && window instanceof Component){ + final Mask mask = LayoutUtils.showWindowWithMask(drillReport, (Component)window, null); + drillReport.addEventListener(DialogEvents.ON_WINDOW_CLOSE, new EventListener() { + @Override + public void onEvent(Event event) throws Exception { + mask.hideMask(); + } + }); + }else{ + // Add proper width width + int width = SessionManager.getAppDesktop().getClientInfo().screenWidth * 42 / 100; + drillReport.setWidth(width + "px"); + drillReport.setPosition("center"); + drillReport.setAttribute(Window.MODE_KEY, Window.MODE_MODAL); + AEnv.showWindow(drillReport); + } + } else - log.warning("No Table found for " + query.getWhereClause(true)); + log.warning("No Table found for " + data.getQuery().getWhereClause(true)); } // executeDrill + /** + * Execute Drill to Query + * @param data query + * @param component + */ + private void executeDrillDown (DrillData data, Component component) + { + int AD_Table_ID = MTable.getTable_ID(data.getQuery().getTableName()); + if (!MRole.getDefault().isCanReport(AD_Table_ID)) + { + FDialog.error(m_WindowNo, this, "AccessCannotReport", data.getQuery().getTableName()); + return; + } + if (AD_Table_ID != 0) { + new WReport (AD_Table_ID, data.getQuery(), component, m_WindowNo); + } + else + log.warning("No Table found for " + data.getQuery().getWhereClause(true)); + } // executeDrill + /** * Open Window * @param query query @@ -1912,8 +1876,6 @@ public class ZkReportViewer extends Window implements EventListener, ITab @Override public void updateUI() { - viewer.labelDrill.setVisible(false); - viewer.comboDrill.setVisible(false); viewer.onPreviewReport(); } @@ -1949,11 +1911,7 @@ public class ZkReportViewer extends Window implements EventListener, ITab } @Override - public void updateUI() { - if (viewer.comboDrill.getItemCount() > 1) { - viewer.labelDrill.setVisible(true); - viewer.comboDrill.setVisible(true); - } + public void updateUI() { viewer.onPreviewReport(); } } @@ -1989,8 +1947,6 @@ public class ZkReportViewer extends Window implements EventListener, ITab @Override public void updateUI() { - viewer.labelDrill.setVisible(false); - viewer.comboDrill.setVisible(false); viewer.onPreviewReport(); } @@ -2025,8 +1981,6 @@ public class ZkReportViewer extends Window implements EventListener, ITab @Override public void updateUI() { - viewer.labelDrill.setVisible(false); - viewer.comboDrill.setVisible(false); viewer.onPreviewReport(); } @@ -2073,8 +2027,6 @@ public class ZkReportViewer extends Window implements EventListener, ITab @Override public void updateUI() { - viewer.labelDrill.setVisible(false); - viewer.comboDrill.setVisible(false); viewer.onPreviewReport(); } diff --git a/org.adempiere.ui.zk/WEB-INF/src/web/js/org/idempiere/commons/report.js b/org.adempiere.ui.zk/WEB-INF/src/web/js/org/idempiere/commons/report.js index eabc361a54..7fd2199841 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/web/js/org/idempiere/commons/report.js +++ b/org.adempiere.ui.zk/WEB-INF/src/web/js/org/idempiere/commons/report.js @@ -15,10 +15,10 @@ window.idempiere.zoomWindow = function(cmpid, column, value, windowuu){ zAu.send(event); }; -window.idempiere.drillAcross = function(cmpid, column, value){ +window.idempiere.drillAcross = function(cmpid, column, value, displayValue){ zAu.cmd0.showBusy(null); let widget = zk.Widget.$(cmpid); - let event = new zk.Event(widget, 'onDrillAcross', {data: [column, value]}, {toServer: true}); + let event = new zk.Event(widget, 'onDrillAcross', {data: [column, value, displayValue]}, {toServer: true}); zAu.send(event); }; @@ -30,7 +30,7 @@ window.idempiere.drillDown = function(cmpid, column, value){ }; window.idempiere.showColumnMenu = function(doc, e, columnName, row) { - let d = idempiere.getMenu (doc, e.target.getAttribute ("componentId"), e.target.getAttribute ("foreignColumnName"), e.target.getAttribute ("value")); + let d = idempiere.getMenu (doc, e.target.getAttribute ("componentId"), e.target.getAttribute ("foreignColumnName"), e.target.getAttribute ("value"), e.target.getAttribute ("displayValue")); let posx = 0; let posy = 0; @@ -56,7 +56,7 @@ window.idempiere.showColumnMenu = function(doc, e, columnName, row) { setTimeout(f, 3000); }; -window.idempiere.getMenu = function(doc, componentId, foreignColumnName, value){ +window.idempiere.getMenu = function(doc, componentId, foreignColumnName, value, displayValue){ doc.contextMenu = null; if (componentId != null){ //menu div @@ -120,7 +120,34 @@ window.idempiere.getMenu = function(doc, componentId, foreignColumnName, value){ reportHref.appendChild(reportimage); } reportHref.appendChild(doc.createTextNode(doc.body.getAttribute ("reportLabel"))); - + + //drill menu item + let reportDrill = doc.createElement("div"); + reportDrill.style.padding = "3px"; + reportDrill.style.verticalAlign = "middle"; + + reportDrill.setAttribute("onmouseover", "this.style.backgroundColor = 'lightgray'"); + reportDrill.setAttribute("onmouseout", "this.style.backgroundColor = 'white'"); + + let reportDrillHref = doc.createElement("a"); + reportDrillHref.href = "javascript:void(0)"; + reportDrillHref.style.textDecoration = "none"; + reportDrillHref.style.fontSize = "11px"; + reportDrillHref.style.verticalAlign = "middle"; + reportDrillHref.setAttribute("onclick", "parent.idempiere.drillAcross('" + componentId + "','" + foreignColumnName + "','" + value + "','" + displayValue + "')"); + + reportDrill.appendChild(reportDrillHref); + menu.appendChild(reportDrill); + let drillIco = doc.body.getAttribute ("drillAssistantIco"); + if (typeof drillIco === 'string' && drillIco.length > 0) { + let drillimage = doc.createElement("img"); + drillimage.src = drillIco; + drillimage.setAttribute("align", "middle"); + reportDrillHref.appendChild(drillimage); + } + reportDrillHref.appendChild(doc.createTextNode(doc.body.getAttribute ("drillAssistantLabel"))); + + doc.contextMenu = menu; doc.body.appendChild (doc.contextMenu); } diff --git a/org.adempiere.ui.zk/WEB-INF/src/web/theme/default/css/fragment/drill-window.css.dsp b/org.adempiere.ui.zk/WEB-INF/src/web/theme/default/css/fragment/drill-window.css.dsp new file mode 100644 index 0000000000..20262abadd --- /dev/null +++ b/org.adempiere.ui.zk/WEB-INF/src/web/theme/default/css/fragment/drill-window.css.dsp @@ -0,0 +1,15 @@ +.drill-window-tab td { + padding: 5px 15px 0 15px; +} + +.drill-window-field-name { + color: gray; +} + +.drill-window-field-header { + color: gray; +} + +.drill-window-field-header td { + padding: 10px 15px 0 15px; +} \ No newline at end of file diff --git a/org.adempiere.ui.zk/WEB-INF/src/web/theme/default/css/theme.css.dsp b/org.adempiere.ui.zk/WEB-INF/src/web/theme/default/css/theme.css.dsp index ffd22d5004..3324644c0f 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/web/theme/default/css/theme.css.dsp +++ b/org.adempiere.ui.zk/WEB-INF/src/web/theme/default/css/theme.css.dsp @@ -116,6 +116,8 @@ table.z-vbox > tbody > tr > td > table { + + diff --git a/org.adempiere.ui/src/org/compiere/print/DrillReportCtl.java b/org.adempiere.ui/src/org/compiere/print/DrillReportCtl.java new file mode 100644 index 0000000000..fca13536a4 --- /dev/null +++ b/org.adempiere.ui/src/org/compiere/print/DrillReportCtl.java @@ -0,0 +1,802 @@ +/********************************************************************** +* This file is part of iDempiere ERP Open Source * +* http://www.idempiere.org * +* * +* Copyright (C) Contributors * +* * +* This program is free software; you can redistribute it and/or * +* modify it under the terms of the GNU General Public License * +* as published by the Free Software Foundation; either version 2 * +* of the License, or (at your option) any later version. * +* * +* This program is distributed in the hope that it will be useful, * +* but WITHOUT ANY WARRANTY; without even the implied warranty of * +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * +* GNU General Public License for more details. * +* * +* You should have received a copy of the GNU General Public License * +* along with this program; if not, write to the Free Software * +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * +* MA 02110-1301, USA. * +* * +* Contributors: * +* - Igor Pojzl, Cloudempiere * +* - Peter Takacs, Cloudempiere * +**********************************************************************/ +package org.compiere.print; + +import java.math.BigDecimal; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Timestamp; +import java.text.DecimalFormat; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.HashMap; +import java.util.List; +import java.util.Map.Entry; +import java.util.logging.Level; + +import org.adempiere.exceptions.AdempiereException; +import org.compiere.model.MProcess; +import org.compiere.model.MProcessDrillRule; +import org.compiere.model.MProcessDrillRulePara; +import org.compiere.model.MProcessPara; +import org.compiere.model.MQuery; +import org.compiere.model.MReportView; +import org.compiere.model.MRole; +import org.compiere.model.MTable; +import org.compiere.model.PrintInfo; +import org.compiere.process.ProcessInfo; +import org.compiere.process.ProcessInfoParameter; +import org.compiere.util.CLogger; +import org.compiere.util.DB; +import org.compiere.util.DisplayType; +import org.compiere.util.Env; +import org.compiere.util.KeyNamePair; +import org.compiere.util.Msg; +import org.compiere.util.Util; + +/** + * Drill Report Controller + * @author Igor Pojzl, Cloudempiere + * + */ +public class DrillReportCtl { + + /** Logger */ + private static final CLogger log = CLogger.getCLogger(DrillReportCtl.class); + + private int m_WindowNo = 0; + private String m_TableName; + private String m_ColumnName; + private Object m_Value; + + private MQuery m_Query; + + private Integer m_AD_Table_ID; + + private String m_DisplayValue; + + /** Drill Tables Map */ + private KeyNamePair[] drillTables; + + /** Drill Table PrintFormats */ + private HashMap drillTablePrintFormatMap = new HashMap<>(); + + /** Drill Process Map */ + private KeyNamePair[] drillProcessList; + + /** Drill Process Rule Map */ + private HashMap drillProcesRules; + + /** Drill Process Rule PrintFormats */ + private HashMap drillProcessRulesPrintFormatMap = new HashMap<>(); + + /** + * + * @param ctx + * @param TableName + * @param query + * @param ColumnName + * @param Value + * @param displayValue + * @param WindowNo + */ + public DrillReportCtl(String TableName, MQuery query, String ColumnName, Object Value, String displayValue, int WindowNo) { + this.m_TableName = TableName; + this.m_ColumnName = ColumnName; + this.m_Value = Value; + this.m_WindowNo = WindowNo; + this.m_DisplayValue = displayValue; + + m_Query = query; + + this.initProcessDrillRuleMaps(); + } + + /** + * Get Drill Table KeyNamePairs + */ + public KeyNamePair[] getDrillTables() { + return this.drillTables; + } + + /** + * Return Array of PrintFormat KeynamePairs + * @param AD_Table_ID + * @return KeyNamePair Array or Null if not found + */ + public KeyNamePair[] getDrillTablePrintFormat(int AD_Table_ID) { + return this.drillTablePrintFormatMap.get(AD_Table_ID); + } + + /** + * Return Array of Drill Process Rules + * @return + */ + public HashMap getDrillProcesRules() { + return drillProcesRules; + } + + /** + * + * @param AD_Process_DrillRule_ID + * @return + */ + public KeyNamePair[] getDrillProcessRulesPrintFormatMap(int AD_Process_DrillRule_ID) { + return drillProcessRulesPrintFormatMap.get(AD_Process_DrillRule_ID); + } + + /** + * Get Display Value + * @return + */ + public String getDisplayValue() { + return m_DisplayValue; + } + + /** + * Get Value + * @return + */ + public Object getValue() { + return m_Value; + } + + + /** + * Init Process Drill Rule Maps for Window + */ + private void initProcessDrillRuleMaps() { + // Init Table Name + this.m_AD_Table_ID = MTable.getTable_ID(m_TableName); + + // Init Drill Process Rule Maps + initProcessDrillRuleMap(); + + // Init Drill Process Rule Print Formats + initDrillProcessRulePrintFormatMap(); + } + + /** + * Init Drill Table Maps for Window + */ + public void initDrillTableMaps() { + + // Get Drill Table Map + initDrillTableMap(); + + // Init Drill Print Format Map + initDrillTablePrintFormatMap(); + } + + /** + * Initialize Drill Process Rules Map + */ + private void initProcessDrillRuleMap() { + HashMap drillProcessMap = new HashMap<>(); + HashMap> drillProcessRuleMap = new HashMap<>(); + if(!Util.isEmpty(m_ColumnName)) { + MProcessDrillRule[] processDrillRules = MProcessDrillRule.getByColumnName(Env.getCtx(), m_ColumnName, null); + for( MProcessDrillRule drillProcesRule: processDrillRules) { + MProcess process = MProcess.get(drillProcesRule.getAD_Process_ID()); + if(process == null) + continue; + + drillProcessMap.put(drillProcesRule.getAD_Process_ID(), process.get_Translation(MProcess.COLUMNNAME_Name)); + + ArrayList drillProcessRuleList = drillProcessRuleMap.get(drillProcesRule.getAD_Process_ID()); + if(drillProcessRuleList == null) { + drillProcessRuleList = new ArrayList<>(); + drillProcessRuleMap.put(drillProcesRule.getAD_Process_ID(), drillProcessRuleList); + } + drillProcessRuleList.add(new KeyNamePair(drillProcesRule.getAD_Process_DrillRule_ID(), drillProcesRule.getName())); + } + } + + ArrayList drillProcessList = new ArrayList<>(); + for(Entry drillProcessEntry :drillProcessMap.entrySet()) { + drillProcessList.add(new KeyNamePair(drillProcessEntry.getKey(), drillProcessEntry.getValue())); + } + this.drillProcessList = drillProcessList.toArray(new KeyNamePair[drillProcessList.size()]); + + HashMap drillProcessRuleMapOut = new HashMap<>(); + for(Entry> drillProcessRuleEntry :drillProcessRuleMap.entrySet()) { + drillProcessRuleMapOut.put(drillProcessRuleEntry.getKey(), drillProcessRuleEntry.getValue().toArray(new KeyNamePair[drillProcessRuleEntry.getValue().size()])); + } + + this.drillProcesRules = drillProcessRuleMapOut; + } + + /** + * Initialize Drill Table Map + */ + private void initDrillTableMap() { + + ArrayList drillTableList = new ArrayList<>(); + String sql = "SELECT t.AD_Table_ID, t.TableName, t.Name, NULLIF(e.PO_PrintName,e.PrintName) " + + "FROM AD_Column c " + + " INNER JOIN AD_Column used ON (c.ColumnName=used.ColumnName)" + + " INNER JOIN AD_Table t ON (used.AD_Table_ID=t.AD_Table_ID AND t.AD_Table_ID <> c.AD_Table_ID AND t.IsShowInDrillOptions='Y')" + + " INNER JOIN AD_Column cKey ON (t.AD_Table_ID=cKey.AD_Table_ID AND cKey.IsKey='Y')" + + " INNER JOIN AD_Element e ON (cKey.ColumnName=e.ColumnName) " + + "WHERE c.AD_Table_ID=? AND c.IsKey='Y' " + + "ORDER BY 3 "; + boolean trl = !Env.isBaseLanguage(Env.getCtx(), "AD_Element"); + if (trl) + sql = "SELECT t.AD_Table_ID, t.TableName, t.Name, NULLIF(et.PO_PrintName,et.PrintName) " + + "FROM AD_Column c" + + " INNER JOIN AD_Column used ON (c.ColumnName=used.ColumnName)" + + " INNER JOIN AD_Table t ON (used.AD_Table_ID=t.AD_Table_ID AND t.AD_Table_ID <> c.AD_Table_ID AND t.IsShowInDrillOptions='Y')" + + " INNER JOIN AD_Column cKey ON (t.AD_Table_ID=cKey.AD_Table_ID AND cKey.IsKey='Y')" + + " INNER JOIN AD_Element e ON (cKey.ColumnName=e.ColumnName)" + + " INNER JOIN AD_Element_Trl et ON (e.AD_Element_ID=et.AD_Element_ID) " + + "WHERE c.AD_Table_ID=? AND c.IsKey='Y'" + + " AND et.AD_Language=? " + + "ORDER BY 3 "; + PreparedStatement pstmt = null; + ResultSet rs = null; + try + { + pstmt = DB.prepareStatement(sql, null); + pstmt.setInt(1, m_AD_Table_ID); + if (trl) + pstmt.setString(2, Env.getAD_Language(Env.getCtx())); + rs = pstmt.executeQuery(); + while (rs.next()) + { + + int ad_Table_ID = rs.getInt(1); + String name = rs.getString(3); + String poName = rs.getString(4); + if (poName != null) + name += "/" + poName; + drillTableList.add(new KeyNamePair(ad_Table_ID, name)); + } + } + catch (SQLException e) + { + log.log(Level.SEVERE, sql, e); + } + finally + { + DB.close(rs, pstmt); + rs = null; + pstmt = null; + } + + this.drillTables = drillTableList.toArray(new KeyNamePair[drillTableList.size()]); + } + + /** + * Initialize Print Formats for Table Name + */ + private void initDrillTablePrintFormatMap() { + + int AD_Window_ID = Env.getContextAsInt(Env.getCtx(), this.m_WindowNo, "_WinInfo_AD_Window_ID", true); + if (AD_Window_ID == 0) + AD_Window_ID = Env.getZoomWindowID(m_Query); + + + for( KeyNamePair drillTable : drillTables ) { + // + List m_list = MPrintFormat.getAccessiblePrintFormats(drillTable.getKey(), AD_Window_ID, null, true); + + this.drillTablePrintFormatMap.put(drillTable.getKey(), m_list.toArray(new KeyNamePair[m_list.size()])); + } + } + + /** + * Initialize Print Formats for Table Name + */ + private void initDrillProcessRulePrintFormatMap() { + + int AD_Window_ID = Env.getContextAsInt(Env.getCtx(), this.m_WindowNo, "_WinInfo_AD_Window_ID", true); + if (AD_Window_ID == 0) + AD_Window_ID = Env.getZoomWindowID(m_Query); + + for( KeyNamePair[] drilProcessRuleList : drillProcesRules.values() ) { + for( KeyNamePair drillProcessRule : drilProcessRuleList ) { + // + MProcessDrillRule processDrillRule = MProcessDrillRule.get(Env.getCtx(), drillProcessRule.getKey()); + + KeyNamePair[] m_list = null; + + if(processDrillRule.getAD_PrintFormat_ID() > 0) { + // Print Format + MPrintFormat pf = MPrintFormat.get(processDrillRule.getAD_PrintFormat_ID()); + if(pf != null) { + m_list = new KeyNamePair[] { + new KeyNamePair(pf.getAD_PrintFormat_ID(), drillProcessRule.getName())}; + } + } else if(processDrillRule.getAD_ReportView_ID() > 0) { + // Report View + MReportView reportView = MReportView.get(processDrillRule.getAD_ReportView_ID()); + m_list = getPrintFormats(reportView.getAD_Table_ID(), reportView.getAD_ReportView_ID()); + } else { + MProcess process = MProcess.get(processDrillRule.getAD_Process_ID()); + if(process == null || process.getAD_ReportView_ID() <= 0) + continue; + MReportView reportView = MReportView.get(process.getAD_ReportView_ID()); + m_list = getPrintFormats(reportView.getAD_Table_ID(), reportView.getAD_ReportView_ID()); + } + + this.drillProcessRulesPrintFormatMap.put(drillProcessRule.getKey(), m_list); + } + } + } + + + private KeyNamePair[] getPrintFormats(int table_ID, int reportView_ID) { + ArrayList printFormatList = new ArrayList<>(); + + // fill Report Options + String sql = MRole.getDefault().addAccessSQL( + "SELECT * " + + "FROM AD_PrintFormat " + + "WHERE AD_Table_ID=? " + + "AND IsActive='Y' " + + (reportView_ID > 0 ? "AND AD_ReportView_ID=? " : "") + + "ORDER BY AD_Client_ID, Name", + "AD_PrintFormat", MRole.SQL_NOTQUALIFIED, MRole.SQL_RO); + PreparedStatement pstmt = null; + ResultSet rs = null; + try + { + pstmt = DB.prepareStatement(sql, null); + int idx = 1; + pstmt.setInt(idx++, table_ID); + if (reportView_ID > 0) + pstmt.setInt(idx++, reportView_ID); + rs = pstmt.executeQuery(); + while (rs.next()) + { + MPrintFormat printFormat = new MPrintFormat (Env.getCtx(), rs, null); + + KeyNamePair pp = new KeyNamePair(printFormat.get_ID(), printFormat.get_Translation(MPrintFormat.COLUMNNAME_Name, Env.getAD_Language(Env.getCtx()), true)); + printFormatList.add(pp); + } + } + catch (SQLException e) + { + log.log(Level.SEVERE, sql, e); + } + finally + { + DB.close(rs, pstmt); + rs = null; + pstmt = null; + } + + return printFormatList.toArray(new KeyNamePair[printFormatList.size()]); + } + + /** + * Launch Report + * @param pf print format + */ + public void launchTableDrillReport (int ad_PrintFormat_ID) + { + MPrintFormat pf = MPrintFormat.get(ad_PrintFormat_ID); + int Record_ID = 0; + if (m_Query.getRestrictionCount() == 1) { + if (m_Query.getColumnName(0).equals(m_Query.getTableName()+"_ID")) { + Object vrec = m_Query.getCode(0); + if (vrec instanceof Integer) { + Record_ID = ((Integer)m_Query.getCode(0)).intValue(); + } else { + try { + Record_ID = Integer.parseInt(m_Query.getCode(0).toString()); + } catch (NumberFormatException e) { + log.info(e.getMessage()); + } + } + } + } + PrintInfo info = new PrintInfo( + pf.getName(), + pf.getAD_Table_ID(), + Record_ID); + info.setDescription(m_Query.getInfo()); + + // It's a default report using the standard printing engine + ReportEngine re = new ReportEngine (Env.getCtx(), pf, m_Query, info); + re.setWindowNo(m_WindowNo); + ReportCtl.preview(re); + } // launchReport + + + /** + * Launch Report Process + * @param pf print format + * @throws Exception + */ + public ProcessInfo getDrillProcessProcessInfo (int AD_Process_DrillRule_ID, int AD_PrintFormat_ID) throws Exception + { + MProcessDrillRule drillRule = MProcessDrillRule.get(Env.getCtx(), AD_Process_DrillRule_ID); + MProcess process = new MProcess(Env.getCtx(), drillRule.getAD_Process_ID(), null); + + return prepareProcessInfo(process, drillRule, AD_PrintFormat_ID); + + // It's a default report using the standard printing engine + } // launchReport + + /** + * Run Process or Report + * @param process process + * @return summary + * @throws Exception + */ + protected ProcessInfo prepareProcessInfo(MProcess process,MProcessDrillRule processDrillRule, int ad_PrintFormat_ID) throws Exception + { + if (log.isLoggable(Level.INFO)) log.info(process.toString()); + + ProcessInfo pi = new ProcessInfo (process.getName(), process.getAD_Process_ID()); + pi.setAD_User_ID(Env.getAD_User_ID(Env.getCtx())); + pi.setAD_Client_ID(processDrillRule.getAD_Client_ID()); + pi.setAD_Process_UU(process.getAD_Process_UU()); + pi.setIsBatch(true); + pi.setPrintPreview(true); + + fillParameter(pi, processDrillRule); + + int AD_PrintFormat_ID = ad_PrintFormat_ID > 0 ? ad_PrintFormat_ID : processDrillRule.getAD_PrintFormat_ID(); + if (AD_PrintFormat_ID > 0) + { + MPrintFormat format = new MPrintFormat(Env.getCtx(), AD_PrintFormat_ID, null); + pi.setSerializableObject(format); + } + + if (!Util.isEmpty(process.getJasperReport())) + { + pi.setExport(true); + if ("HTML".equals(pi.getReportType())) + pi.setExportFileExtension("html"); + else if ("CSV".equals(pi.getReportType())) + pi.setExportFileExtension("csv"); + else if ("XLS".equals(pi.getReportType())) + pi.setExportFileExtension("xls"); + else if ("XLSX".equals(pi.getReportType())) + pi.setExportFileExtension("xlsx"); + else + pi.setExportFileExtension("pdf"); + } + + + return pi; + } // runProcess + + + /** + * Fill Parameter + * @param pInstance process instance + */ + protected void fillParameter(ProcessInfo pi, MProcessDrillRule processDrillRule) + { + boolean isKeyParameterSet= false; + MProcessDrillRulePara[] sParams = processDrillRule.getParameters (true); + ArrayList iParams = new ArrayList(); + + if(sParams.length <= 0) { + if(hasMandatoryProcessPara(processDrillRule.getAD_Process_ID())) + throw new AdempiereException(Msg.parseTranslation(Env.getCtx(), "@FillMandatoryDrillRulePara@")); + + MProcessDrillRulePara keyPara = new MProcessDrillRulePara(Env.getCtx(), 0, null); + keyPara.setAD_Process_DrillRule_ID(processDrillRule.getAD_Process_DrillRule_ID()); + keyPara.setAD_Process_Para_ID(processDrillRule.getAD_Process_Para_ID()); + sParams = new MProcessDrillRulePara[] {keyPara}; + } + for (int p = 0; p < sParams.length; p++) + { + MProcessPara processPara = (MProcessPara) sParams[p].getAD_Process_Para(); + ProcessInfoParameter iPara = new ProcessInfoParameter(processPara.getColumnName(), null, null, null, null); + MProcessDrillRulePara sPara = sParams[p]; + if(processPara. getColumnName().equals(m_ColumnName)) + { + iPara.setParameter(DisplayType.isID(sPara.getDisplayType()) ? Integer.valueOf((String) m_Value) : (String) m_Value); + iPara.setInfo(!Util.isEmpty(m_DisplayValue) ? m_DisplayValue : (String) m_Value); + isKeyParameterSet = true; + iParams.add(iPara); + continue; + } + + String paraDesc = sPara.getDescription(); + if (paraDesc != null && paraDesc.trim().length() > 0) + iPara.setInfo(sPara.getDescription()); + String variable = sPara.getParameterDefault(); + String toVariable = sPara.getParameterToDefault(); + if (log.isLoggable(Level.FINE)) log.fine(sPara.getColumnName() + " = " + variable); + // Value - Constant/Variable + Object value = parseVariable(sPara, variable); + Object toValue = toVariable != null ? parseVariable(sPara, toVariable) : null; + + // No Value + if (value == null && toValue == null) + { + if (log.isLoggable(Level.FINE)) log.fine(sPara.getColumnName() + " - empty"); + continue; + } + + // Convert to Type + try + { + if (DisplayType.isNumeric(sPara.getDisplayType()) + || DisplayType.isID(sPara.getDisplayType())) + { + DecimalFormat decimalFormat = DisplayType.getNumberFormat(sPara.getDisplayType()); + BigDecimal bd = toBigDecimal(value); + iPara.setParameter(bd); + if (toValue != null) + { + bd = toBigDecimal(toValue); + iPara.setParameter_To(bd); + } + if (Util.isEmpty(paraDesc)) + { + String info = decimalFormat.format(iPara.getParameterAsBigDecimal()); + if (iPara.getParameter_ToAsBigDecimal() != null) + info = info + " - " + decimalFormat.format(iPara.getParameter_ToAsBigDecimal()); + iPara.setInfo(info); + } + if (log.isLoggable(Level.FINE)) log.fine(sPara.getColumnName() + + " = " + variable + " (=" + bd + "=)"); + } + else if (DisplayType.isDate(sPara.getDisplayType())) + { + SimpleDateFormat dateFormat = DisplayType.getDateFormat(sPara.getDisplayType()); + Timestamp ts = toTimestamp(value); + iPara.setParameter(ts); + if (toValue != null) { + ts = toTimestamp(toValue); + iPara.setParameter_To(ts); + } + if (Util.isEmpty(paraDesc)) + { + String info = dateFormat.format(iPara.getParameterAsTimestamp()); + if (iPara.getParameter_ToAsTimestamp() != null) + { + info = info + " - " + dateFormat.format(iPara.getParameter_ToAsTimestamp()); + } + iPara.setInfo(info); + } + if (log.isLoggable(Level.FINE)) log.fine(sPara.getColumnName() + + " = " + variable + " (=" + ts + "=)"); + } + else + { + iPara.setParameter(value.toString()); + if (toValue != null) + { + iPara.setParameter_To(toValue.toString()); + } + if (Util.isEmpty(paraDesc)) + { + String info = iPara.getParameterAsString(); + if (iPara.getParameter_ToAsString() != null) + { + info = info + " - " + iPara.getParameter_ToAsString(); + } + iPara.setInfo(info); + } + if (log.isLoggable(Level.FINE)) log.fine(sPara.getColumnName() + + " = " + variable + + " (=" + value + "=) " + value.getClass().getName()); + } + iParams.add(iPara); + } + catch (Exception e) + { + log.warning(sPara.getColumnName() + + " = " + variable + " (" + value + + ") " + value.getClass().getName() + + " - " + e.getLocalizedMessage()); + } + } // Drill Rule Parameter loop + pi.setParameter(iParams.toArray(new ProcessInfoParameter[0])); + + if(!isKeyParameterSet) { + throw new AdempiereException(Msg.parseTranslation(Env.getCtx(), "@NoDrillKeyParameterSet@")); + } + } // fillParameter + + private boolean hasMandatoryProcessPara(int processID) { + MProcess process = new MProcess(Env.getCtx(), processID, null); + for(MProcessPara processPara : process.getParameters()) { + if(processPara.isMandatory()) + return true; + } + return false; + } + + private Timestamp toTimestamp(Object value) { + Timestamp ts = null; + if (value instanceof Timestamp) + ts = (Timestamp)value; + else + ts = Timestamp.valueOf(value.toString()); + return ts; + } + + private BigDecimal toBigDecimal(Object value) { + BigDecimal bd = null; + if (value instanceof BigDecimal) + bd = (BigDecimal)value; + else if (value instanceof Integer) + bd = new BigDecimal (((Integer)value).intValue()); + else + bd = new BigDecimal (value.toString()); + return bd; + } + + private Object parseVariable(MProcessDrillRulePara sPara, String variable) { + Object value = variable; + if (variable == null + || (variable != null && variable.length() == 0)) + value = null; + else if (variable.startsWith("@SQL=")) { + String defStr = ""; + String sql = variable.substring(5); // w/o tag + //hengsin, capture unparseable error to avoid subsequent sql exception + sql = Env.parseContext(Env.getCtx(), 0, sql, false, false); // replace variables + if (sql.equals("")) + log.log(Level.WARNING, "(" + sPara.getColumnName() + ") - Default SQL variable parse failed: " + variable); + else { + PreparedStatement stmt = null; + ResultSet rs = null; + try { + stmt = DB.prepareStatement(sql, null); + rs = stmt.executeQuery(); + if (rs.next()) + defStr = rs.getString(1); + else { + if (log.isLoggable(Level.INFO)) + log.log(Level.INFO, "(" + sPara.getColumnName() + ") - no Result: " + sql); + } + } + catch (SQLException e) { + log.log(Level.WARNING, "(" + sPara.getColumnName() + ") " + sql, e); + } + finally{ + DB.close(rs, stmt); + rs = null; + stmt = null; + } + } + if (!Util.isEmpty(defStr)) + value = defStr; + } // SQL Statement + else if ( variable.indexOf('@') != -1 + && variable.indexOf('@') != variable.lastIndexOf('@')) // we have a variable / BF [1926032] + { + // Strip + int index = variable.indexOf('@'); + String columnName = variable.substring(index+1); + index = columnName.indexOf('@'); + if (index == -1) + { + log.warning(sPara.getColumnName() + + " - cannot evaluate=" + variable); + return null; + } + String tail=index < (columnName.length()-1) ? columnName.substring(index+1) : null; + columnName = columnName.substring(0, index); + // try Env + String env = Env.getContext(Env.getCtx(), columnName); + if (env == null || env.length() == 0) + env = Env.getContext(Env.getCtx(), columnName); + if (env.length() == 0) + { + log.warning(sPara.getColumnName() + + " - not in environment =" + columnName + + "(" + variable + ")"); + + if(DisplayType.isDate(sPara.getDisplayType())) { + return Env.getContext(Env.getCtx(), "#Date"); + } + return null; + } + else + value = env; + + + + if (tail != null && columnName.equals("#Date")) + { + tail = tail.trim(); + if (tail.startsWith("-") || tail.startsWith("+")) + { + boolean negate = tail.startsWith("-"); + int type = Calendar.DATE; + tail = tail.substring(1); + if (tail.endsWith("d")) + { + tail = tail.substring(0, tail.length()-1); + } + else if (tail.endsWith("m")) + { + type = Calendar.MONTH; + tail = tail.substring(0, tail.length()-1); + } + else if (tail.endsWith("y")) + { + type = Calendar.YEAR; + tail = tail.substring(0, tail.length()-1); + } + + int toApply = 0; + try + { + toApply = Integer.parseInt(tail); + } catch(Exception e){} + if (toApply > 0) + { + if (negate) toApply = toApply * -1; + Timestamp ts = toTimestamp(value); + Calendar cal = Calendar.getInstance(); + cal.setTimeInMillis(ts.getTime()); + cal.add(type, toApply); + value = new Timestamp(cal.getTimeInMillis()); + } + } + + } + } // @variable@ + return value; + } + + /** + * Get Table Name + * @return + */ + public String getTableName() { + return m_TableName; + } + + /** + * Get Drill Process List + * @return + */ + public KeyNamePair[] getDrillProcessList() { + return drillProcessList; + } + + /** + * Get Drill Table Print Format Map + * @return + */ + public HashMap getDrillTablePrintFormatMap() { + return drillTablePrintFormatMap; + } + + /** + * Get Drill Process Rules Print Format Map + * @return + */ + public HashMap getDrillProcessRulesPrintFormatMap() { + return drillProcessRulesPrintFormatMap; + } + +}