IDEMPIERE-5302 - Drill Assistant Feature with re-generated migration scripts (#1390)
* IDEMPIERE-5302 - Drill Assistant Feature with re-generated migration scripts * IDEMPIERE-5302 - added IsShowInDrillOptions, ID fixes * IDEMPIERE-5302 - added IsShowInDrillOptions default Y * IDEMPIERE-5302 - creating Table Print Formats on Run Report * IDEMPIERE-5302 - applied pr1390_fixes patch * IDEMPIERE-5302 - applied pr1390_badimports patch
This commit is contained in:
parent
bb8e1a45d4
commit
e670ebbd14
|
@ -0,0 +1,911 @@
|
|||
-- IDEMPIERE-5302
|
||||
SELECT register_migration_script('202207081747_IDEMPIERE-5302.sql') FROM dual;
|
||||
|
||||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- Jul 12, 2022, 9:14:27 AM CEST
|
||||
INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,PrintName,EntityType,AD_Element_UU) VALUES (203568,0,0,'Y',TO_TIMESTAMP('2022-07-12 09:14:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-12 09:14:27','YYYY-MM-DD HH24:MI:SS'),100,'IsShowInDrillOptions','Show In Drill Options','This parameter enables the table to be displayed in Drill Assistant - Table tab','Show In Drill Options','D','6a1f3c17-a045-4c39-9cb9-ecebb729fc85')
|
||||
;
|
||||
|
||||
-- Jul 12, 2022, 9:32:52 AM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,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,FKConstraintType,IsHtml) VALUES (214721,0,'Show In Drill Options','This parameter enables the table to be displayed in Drill Assistant - Table tab',100,'IsShowInDrillOptions','N',1,'N','N','N','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2022-07-12 09:32:52','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-12 09:32:52','YYYY-MM-DD HH24:MI:SS'),100,203568,'Y','N','D','N','N','N','Y','ab5fc669-6971-4f08-a7f3-160796cc2a36','Y',0,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 12, 2022, 9:32:57 AM CEST
|
||||
ALTER TABLE AD_Table ADD IsShowInDrillOptions CHAR(1) DEFAULT 'Y' CHECK (IsShowInDrillOptions IN ('Y','N'))
|
||||
;
|
||||
|
||||
-- Jul 12, 2022, 9:34:27 AM CEST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,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 (206920,'Show In Drill Options','This parameter enables the table to be displayed in Drill Assistant - Table tab',100,214721,'Y',0,240,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-12 09:34:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-12 09:34:27','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','42f5e58a-7493-4fe5-bd33-7260ab2d1d68','Y',200,1,1,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 12, 2022, 9:34:45 AM 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-07-12 09:34:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206920
|
||||
;
|
||||
|
||||
-- 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')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,'6',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47: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','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,200423,'Y',1000000,1,200000,'e50a70e3-a576-4660-8ac1-b73403a6b897')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,'AD_Process_DrillRule_ID','Drill Rule','Drill Rule','D','0c9e8965-941a-46f7-be4e-5794df9dfc9d')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,203569,'N','N','D','Y','N','N','Y','afd2c9af-9c8d-4fb9-b4ea-88626a1ef43d','N','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
CREATE TABLE AD_Process_DrillRule (AD_Process_DrillRule_ID NUMBER(10) NOT NULL, CONSTRAINT AD_Process_DrillRule_Key PRIMARY KEY (AD_Process_DrillRule_ID))
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','Y','N','N','Y','dcbbbea4-8ccd-4c07-8964-0d8d9f6b10f1','N','N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD AD_Client_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,113,'N','N','D','Y','N','N','Y','a0b49fe9-f6ce-4ea6-b317-ae979c02d027','N','N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD AD_Org_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','Y','N','N','Y','feaf7550-5361-45f1-9986-2deb5187727e','N','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,245,'N','N','D','Y','N','N','Y','d3772d17-fb70-4cbc-af0c-cc2a54b7813f','N','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD Created DATE DEFAULT SYSDATE NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,246,'N','N','D','Y','N','N','Y','c629839b-dc5a-4238-9087-b9500fa241de','N','N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD CreatedBy NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,607,'N','N','D','Y','N','N','Y','0a2b4e06-7142-455a-ac49-7637be07716b','N','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD Updated DATE DEFAULT SYSDATE NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,608,'N','N','D','Y','N','N','Y','82ea3b7f-7165-4d7b-98b7-35a20c1bd315','N','N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD UpdatedBy NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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_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 (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','Y','Y','N',10,0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,469,'Y','Y','D','Y','N','N','Y','3a29e5d3-8271-4a43-b5c2-19547c78f295','Y',10,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD Name VARCHAR2(60 CHAR) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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_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 (214731,0.0,'Description','Optional short description of the record','A description is limited to 255 characters.',200335,'Description',255,'N','N','N','Y','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,275,'Y','Y','D','Y','N','N','Y','907cdb65-3239-4d65-bcc4-fbefb10ea218','Y',20,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD Description VARCHAR2(255 CHAR) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214732,0.0,'Show Help',200335,'ShowHelp','S',1,'N','N','N','N','N','N',17,50007,0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,50038,'Y','N','D','Y','N','N','Y','74c04cf6-c00f-495a-80f1-66dc036be9e4','Y','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD ShowHelp CHAR(1) DEFAULT 'S'
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Callout,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintName,FKConstraintType,IsHtml) VALUES (214733,0.0,'Process','Process or Report','The Process field identifies a unique Process or Report in the system.',200335,128,'AD_Process_ID',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,'org.cloudempiere.model.CalloutProcessDrillRule.process',117,'Y','N','D','Y','N','N','Y','c7b4d348-fca5-4442-9575-c0046d000a89','Y','N','N','adprocess_addrillrule','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD AD_Process_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintName,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,126,'Y','N','D','Y','N','N','Y','ac425e9f-2a69-45f1-aa44-cd82ea080ea2','Y','N','N','adtable_addrillrule','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD AD_Table_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,'D','cd974660-b27f-499c-a6e9-e9f959510395')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214735,0.0,'Report View','View used to generate this report','The Report View indicates the view used to generate this report.',200335,200158,'AD_ReportView_ID',10,'N','N','N','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,1252,'Y','N','D','Y','N','N','Y','67f6721b-a7b9-4c0e-b704-0a82534ec640','Y','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD AD_ReportView_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,'D','83bb8e51-dc05-47b8-b3e0-f0d54d410e63')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintName,FKConstraintType,IsHtml) VALUES (214736,0.0,'Print Format','Data Print Format','The print format determines how data is rendered for print.',200335,200159,'AD_PrintFormat_ID',10,'N','N','N','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,1790,'Y','N','D','Y','N','N','Y','bf68bfcd-02cd-4507-a6f5-46ac33bbe525','Y','N','N','adprintformat_addrillrule','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD AD_PrintFormat_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','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')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,203570,'N','N','D','Y','N','N','Y','cd5833a4-a634-49af-a711-3f207a5223f5','N','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD AD_Process_DrillRule_UU VARCHAR2(36 CHAR) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT AD_Process_DrillRule_UU_idx UNIQUE (AD_Process_DrillRule_UU)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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,FKConstraintName,FKConstraintType,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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,118,'Y','N','D','Y','N','N','Y','a793c423-1a45-4fd7-95a0-d03bfb6c6f94','Y',0,'N','N','ADProcessPara_ADProcessDrillRu','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD AD_Process_Para_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM 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,201125,'16ae8995-7124-4e4d-8dda-ce553170406c',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','ad_process_drillrule_uu_idx',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,200335,'N','Y','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM 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,201506,'d2686c3e-6ebf-49c1-a304-8a63c5f1daa0',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,214738,201125,10)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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 (200336,'Drill Rule Parameter','AD_Process_DrillRule_Para',0,'6',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','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','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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_Para',1000000,'N','N','Table AD_Process_DrillRule_Para','Y','Y',0,0,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,200424,'Y',1000000,1,200000,'e72153a2-3cd2-462a-8b79-308730a66acf')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintName,FKConstraintType,IsHtml) VALUES (214739,0.0,'Drill Rule',200336,'AD_Process_DrillRule_ID',10,'N','Y','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,203569,'N','N','D','Y','N','N','Y','cc9d25da-cd10-4a46-b598-49bfa88a5fef','Y','N','N','adprocess_addrillrulepara','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
CREATE TABLE AD_Process_DrillRule_Para (AD_Process_DrillRule_ID NUMBER(10) NOT NULL)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','Y','N','N','Y','1a2c8dc6-66f5-438c-89bf-df56e12e708e','N','N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD AD_Client_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,113,'N','N','D','Y','N','N','Y','4c8313ac-11d5-4fab-aba2-1ca5ecb34155','N','N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD AD_Org_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','Y','N','N','Y','dfcfb4b4-38f9-4b8e-8c5c-811c1bdcd58d','N','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,245,'N','N','D','Y','N','N','Y','30b678ab-40aa-468e-9a2d-9108d38bdcc1','N','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD Created DATE DEFAULT SYSDATE NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,246,'N','N','D','Y','N','N','Y','c5875da8-08c5-4d3d-a99b-b80459d286dc','N','N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD CreatedBy NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,607,'N','N','D','Y','N','N','Y','418403df-269d-4cd1-9aca-2d335a230ccb','N','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD Updated DATE DEFAULT SYSDATE NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,608,'N','N','D','Y','N','N','Y','f3f1a606-2119-4671-8c13-d96a12441570','N','N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD UpdatedBy NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,2419,'Y','N','D','Y','N','N','Y','c37de7ce-4091-4f0d-b38e-d23770c5db4d','Y','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD ParameterDefault VARCHAR2(255 CHAR) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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_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 (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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,275,'Y','Y','D','Y','N','N','Y','7503a18e-7cde-422f-a911-f06143d187c4','Y',10,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD Description VARCHAR2(255 CHAR) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','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')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,203572,'N','N','D','Y','N','N','Y','ac660503-7779-406e-81d1-5d1bab1241f9','N','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD AD_Process_DrillRule_Para_UU VARCHAR2(36 CHAR) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD CONSTRAINT AD_Process_DrillRule_Parauuidx UNIQUE (AD_Process_DrillRule_Para_UU)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,202621,'Y','N','D','Y','N','N','Y','82c6f4d8-e611-4b13-944f-2bf5f42bd768','Y','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD ParameterToDefault VARCHAR2(255 CHAR) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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,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,IsToolbarButton,IsSecure,FKConstraintName,FKConstraintType,IsHtml) VALUES (214753,0.0,'Process Parameter',200336,186,'AD_Process_Para_ID',10,'N','Y','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,118,'N','N','D','Y','N','N','Y','baeb0d20-439e-46aa-b4e7-0eb81a391b63','Y','N','N','adprocesspara_addrillrulepara','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD AD_Process_Para_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM 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,201126,'bef2bd46-27dd-4443-bd5c-d3f383ebb846',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','ad_process_drillrule_para_uu_idx',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,200336,'N','Y','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM 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,201507,'2c3d88d2-f91b-4084-b015-b9b3db519088',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,214750,201126,10)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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 (200349,'Drill Rule Trl','AD_Process_DrillRule_Trl',0,'3',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','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','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,200425,'Y',1000000,1,200000,'8e76ab69-cb0f-4d81-911d-f0469520d5ac')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','Y','N','N','Y','0aa5cf91-1216-472a-8cc4-cbdea568233e','N',0,'N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
CREATE TABLE AD_Process_DrillRule_Trl (AD_Client_ID NUMBER(10) NOT NULL)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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,FKConstraintName,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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,109,'N','N','D','Y','N','N','Y','623d0880-7b03-4357-96cf-4102d2c1d037','Y',0,'N','N','adlanguage_adprocessdrillrulet','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD AD_Language VARCHAR2(6 CHAR) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,113,'N','N','D','Y','N','N','Y','bd5074ec-a162-4337-854f-b3ab811f4b54','N',0,'N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD AD_Org_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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,FKConstraintType,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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,245,'N','N','D','Y','N','N','Y','76b1ed53-f6d3-4554-9922-412c14df029e','N',0,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD Created DATE DEFAULT SYSDATE NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,246,'N','N','D','Y','N','N','Y','80299531-63d4-4d73-a474-d66207e25a70','N',0,'N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD CreatedBy NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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 (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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,275,'Y','Y','D','Y','N','N','Y','1daf3f54-2df8-48bf-a87e-892cb8f4df02','Y',10,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD Description VARCHAR2(255 CHAR) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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,FKConstraintType,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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','Y','N','N','Y','a7ec7506-a7ba-42ae-b1dc-bec723ce7e3b','N',0,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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 (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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,420,'Y','N','D','Y','N','N','Y','27f2296d-a28a-4849-b879-ec434e650c34','Y',0,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD IsTranslated CHAR(1) CHECK (IsTranslated IN ('Y','N')) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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 (203600,0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','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')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,203600,'Y','N','D','Y','N','N','Y','f1a207cd-ca7e-41c9-ae44-97c928127861','N',0,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD AD_Process_DrillRule_Trl_UU VARCHAR2(36 CHAR) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD CONSTRAINT AD_Process_DrillRule_Trl_uuidx UNIQUE (AD_Process_DrillRule_Trl_UU)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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 (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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,469,'Y','Y','D','Y','N','N','Y','3e17c966-5575-47bc-8b4a-fa6ea20e47fb','Y',20,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD Name VARCHAR2(255 CHAR) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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,FKConstraintType,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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,607,'N','N','D','Y','N','N','Y','65b7c93a-997a-42a4-818a-5c5a1825e012','N',0,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD Updated DATE DEFAULT SYSDATE NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,608,'N','N','D','Y','N','N','Y','56503a67-4f6d-4086-83e2-daef40e53de1','N',0,'N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD UpdatedBy NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,203569,'N','N','D','Y','N','N','Y','6cba0265-b5f8-4134-850d-d6aa6b042a67','Y',0,'N','N','adprocessdrillrule_trl','C','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD AD_Process_DrillRule_ID NUMBER(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','AD_Process_DrillRule_Trl_pkey',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,200349,'Y','Y','N','N','Y')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,214929,201122,10)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,214918,201122,20)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT adprocess_addrillrule FOREIGN KEY (AD_Process_ID) REFERENCES ad_process(ad_process_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT adtable_addrillrule FOREIGN KEY (AD_Table_ID) REFERENCES ad_table(ad_table_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='ADReportView_ADProcessDrillRul', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214735
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT ADReportView_ADProcessDrillRul FOREIGN KEY (AD_ReportView_ID) REFERENCES ad_reportview(ad_reportview_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT adprintformat_addrillrule FOREIGN KEY (AD_PrintFormat_ID) REFERENCES ad_printformat(ad_printformat_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD CONSTRAINT adprocess_addrillrulepara FOREIGN KEY (AD_Process_DrillRule_ID) REFERENCES ad_process_drillrule(ad_process_drillrule_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD CONSTRAINT adprocesspara_addrillrulepara FOREIGN KEY (AD_Process_Para_ID) REFERENCES ad_process_para(ad_process_para_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD CONSTRAINT adlanguage_adprocessdrillrulet FOREIGN KEY (AD_Language) REFERENCES ad_language(ad_language) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 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,IsBetaFunctionality,AD_Window_UU) VALUES (200123,'Drill Rule',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),100,'M','N','D','Y','N',0,'N','91407fde-0a29-41fd-b44c-aff7070f94ec')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='AD_Process_DrillRule_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, IsUpdateable='N', AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214722
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_Client_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214723
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_Org_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214724
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='IsActive', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214725
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='Created', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214726
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='CreatedBy', AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214727
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='Updated', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214728
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='UpdatedBy', AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214729
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_ReportView_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, FKConstraintName=NULL, PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214735
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule MODIFY AD_ReportView_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='AD_Process_DrillRule_UU', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214738
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','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)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (206925,'Drill Rule',200308,214722,'N',10,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','6487a092-0a7c-4d9c-9cc7-f6bea064af07','N',1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (206932,'AD_Process_DrillRule_UU',200308,214738,'N',36,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','7dcb0cd5-450c-4642-b213-2a0cf2dc2ddb','N',1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y','D','5dcf564e-4dfd-4861-94e0-96e072e9c4a9','N',1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','860d79ca-5019-4b3f-87f5-411f7715fdc2','Y','N',4,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','1c1f603b-1d53-4ed4-8b33-0e2c8e285538','Y',10,1,5,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','84693c4f-75a8-4df8-882b-73f357961ae2','Y',20,1,5,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,AD_FieldGroup_ID,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (206927,'Process','Process or Report','The Process field identifies a unique Process or Report in the system.',200308,214733,'Y',10,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y',114,'D','7c6ecc52-f2b7-42cc-a78e-80ca01928c01','Y',40,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,AD_FieldGroup_ID,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (206926,'Show Help',200308,214732,'Y',1,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y',114,'D','e391bd8f-d510-4974-86d3-cb28df01455c','Y',30,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'Source','D','C','N','7227d406-b09d-4b60-9169-8330e99b724d')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,AD_FieldGroup_ID,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y',200029,'D','f351d63e-611f-4a5b-80ed-7e78e73a00cd','Y',50,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','221d1536-dd3e-4279-afb9-b2592ab008f3','Y',90,5,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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,90,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','117f2b2c-1719-4ff3-b7c5-c8da0b9f2cd0','Y',60,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (206930,'Print Format','Data Print Format','The print format determines how data is rendered for print.',200308,214736,'Y',10,100,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','84e95705-785f-44b4-b966-48d10fb766a6','Y',70,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','6dbd8833-4d79-4312-a7b4-5ccc05af8f12','Y',100,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Table SET AD_Window_ID=200123, AD_Val_Rule_ID=NULL, AD_Org_ID=0, PO_Window_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200336
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_Client_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214741
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_Org_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214742
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='IsActive', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214743
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='Created', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214744
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='CreatedBy', AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214745
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='Updated', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214746
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='UpdatedBy', AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214747
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='AD_Process_DrillRule_Para_UU', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214750
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',214739,'N','N',1,'N','D','Y','N','cf646be0-5bd7-4d8e-9ede-185fec8f6b64','B','N','Y',0)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (206940,'AD_Process_DrillRule_Para_UU',200309,214750,'N',36,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','56105b60-807f-4790-bddb-4d44f1a45706','N',1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (206937,'Drill Rule',200309,214739,'N',10,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','c375dd96-6b77-4d57-8bd4-3783ad332aa3','Y',20,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y','D','7a31d9d5-18f9-4901-827e-368ec8d94ee4','N',1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','19e03e36-0698-4ec2-bcf1-2a477e02c028','Y','N',4,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (206944,'Process Parameter',200309,214753,'Y',10,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','3aaa0900-2afb-4fb9-bda7-0e5310e8013e','Y',60,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','b4bb1db1-e2da-41e2-a573-cb3c1bb4f0a7','Y',50,2,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','cec431e5-61c2-46d3-b3d6-266b0c10c57b','Y',30,1,5,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','86b3b8c8-7d82-4ef4-864d-c6cb69b1570f','Y',40,1,5,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (206936,'Description','Optional short description of the record','A description is limited to 255 characters.',200309,214749,'Y',255,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','5328039c-28f7-41ec-8753-9bd40fef703b','Y',10,1,5,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Table SET AD_Window_ID=200123, AD_Val_Rule_ID=NULL, AD_Org_ID=0, PO_Window_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200349
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','N','Y','N',214929,'N','N',1,'N','D','N','N','08a5d1fc-e264-48c6-84d3-dad1cbac8811','B','N','Y',0)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','415b39ab-f8a0-4ebd-9205-ff17e323ea62','N',1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','ebcd812e-7741-448a-a812-035785229365','Y','Y',10,4,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (207065,'Drill Rule',200322,214929,'Y',22,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','fbcbc793-12a4-40ea-b738-e0dee2869129','Y',20,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','79a96976-9ed0-4691-b213-29a827aab39e','Y',30,1,5,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','ce2cff54-a5c8-4d8c-98f6-1e9de59f3210','Y',40,1,5,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','83c4f092-7083-436b-8858-3d08663b6efa','Y',50,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','ee3b1016-b121-4f42-a490-9723ec99b431','Y',60,2,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f63a8890-9ddb-440b-988e-069a95d8a541','Y',70,2,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (207070,'AD_Process_DrillRule_Trl_UU',200322,214925,'N',36,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','cd371b09-815e-4df7-bda1-cc5b35867ab9','N',1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='adreportview_adprocessdrillrul', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214735
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='AD_Process_DrillRule_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, IsUpdateable='N', AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214722
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_Client_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214723
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_Org_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214724
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='IsActive', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214725
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='Created', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214726
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='CreatedBy', AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214727
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='Updated', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214728
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='UpdatedBy', AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214729
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_ReportView_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, FKConstraintName=NULL, PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214735
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule MODIFY AD_ReportView_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='AD_Process_DrillRule_UU', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214738
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_Client_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214741
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_Org_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214742
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='IsActive', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214743
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='Created', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214744
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='CreatedBy', AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214745
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='Updated', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214746
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='UpdatedBy', AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214747
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='AD_Process_DrillRule_Para_UU', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214750
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:31 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='adreportview_adprocessdrillrul', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-07-08 17:48:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214735
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:49 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-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,200744,'DrillAssistant','D','9834ddc4-e261-4a92-84f5-da6ebca72822')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:49 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-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,200745,'DrillColumn','D','b36997cf-a012-4e9f-9711-b051b44d05cc')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:49 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-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,200767,'FillMandatoryDrillRulePara','D','115f5fac-3645-4f9f-af30-050dda684d24')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:49 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 Key Parameter is Not Set',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,200766,'NoDrillKeyParameterSet','D','afe60283-10a3-446b-a557-b0003c457ee4')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:49 PM 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-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,200762,'NoDrillRuleFound','D','6953574e-88f7-4d13-9914-ee36e2dd3bf9')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:49 PM 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-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,200761,'NoTableWithDrillOptions','D','22c1a70e-5ba7-4d22-a84c-db19c552b693')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:56:21 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-07-08 17:56:21','YYYY-MM-DD HH24:MI:SS'),100,'Captured Process Parameter','Y',200123,'Captured Process Parameter',TO_TIMESTAMP('2022-07-08 17:56:21','YYYY-MM-DD HH24:MI:SS'),100,'N','fe77d924-c795-43ae-b7a3-ba0ad03e0b75','W',200308,200064,10,'D')
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:17:00 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 (200211,'Drill Rule','W',200123,0,0,'Y',TO_TIMESTAMP('2022-07-10 16:17:00','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-10 16:17:00','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','D','Y','776130ae-720c-4638-bfe7-a3d2d46672be')
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:17:00 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', getDate(), 100, getDate(), 100,t.AD_Tree_ID, 200211, 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=200211)
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:39 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=2,Updated=TO_TIMESTAMP('2022-07-10 16:34:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=446
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:39 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=3,Updated=TO_TIMESTAMP('2022-07-10 16:34:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=200
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:39 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=4,Updated=TO_TIMESTAMP('2022-07-10 16:34:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=439
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:39 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=5,Updated=TO_TIMESTAMP('2022-07-10 16:34:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=53191
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:40 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=6,Updated=TO_TIMESTAMP('2022-07-10 16:34:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=440
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:40 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=7,Updated=TO_TIMESTAMP('2022-07-10 16:34:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=594
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:40 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=8,Updated=TO_TIMESTAMP('2022-07-10 16:34:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=53192
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:40 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=9,Updated=TO_TIMESTAMP('2022-07-10 16:34:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=50009
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:40 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=10,Updated=TO_TIMESTAMP('2022-07-10 16:34:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=53200
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:40 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=11,Updated=TO_TIMESTAMP('2022-07-10 16:34:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=200211
|
||||
;
|
||||
|
|
@ -0,0 +1,908 @@
|
|||
-- IDEMPIERE-5302
|
||||
SELECT register_migration_script('202207081747_IDEMPIERE-5302.sql') FROM dual;
|
||||
|
||||
-- Jul 12, 2022, 9:14:27 AM CEST
|
||||
INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Description,PrintName,EntityType,AD_Element_UU) VALUES (203568,0,0,'Y',TO_TIMESTAMP('2022-07-12 09:14:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-12 09:14:27','YYYY-MM-DD HH24:MI:SS'),100,'IsShowInDrillOptions','Show In Drill Options','This parameter enables the table to be displayed in Drill Assistant - Table tab','Show In Drill Options','D','6a1f3c17-a045-4c39-9cb9-ecebb729fc85')
|
||||
;
|
||||
|
||||
-- Jul 12, 2022, 9:32:52 AM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,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,FKConstraintType,IsHtml) VALUES (214721,0,'Show In Drill Options','This parameter enables the table to be displayed in Drill Assistant - Table tab',100,'IsShowInDrillOptions','N',1,'N','N','N','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2022-07-12 09:32:52','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-12 09:32:52','YYYY-MM-DD HH24:MI:SS'),100,203568,'Y','N','D','N','N','N','Y','ab5fc669-6971-4f08-a7f3-160796cc2a36','Y',0,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 12, 2022, 9:32:57 AM CEST
|
||||
ALTER TABLE AD_Table ADD COLUMN IsShowInDrillOptions CHAR(1) DEFAULT 'Y' CHECK (IsShowInDrillOptions IN ('Y','N'))
|
||||
;
|
||||
|
||||
-- Jul 12, 2022, 9:34:27 AM CEST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,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 (206920,'Show In Drill Options','This parameter enables the table to be displayed in Drill Assistant - Table tab',100,214721,'Y',0,240,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-12 09:34:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-12 09:34:27','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','42f5e58a-7493-4fe5-bd33-7260ab2d1d68','Y',200,1,1,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 12, 2022, 9:34:45 AM 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-07-12 09:34:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206920
|
||||
;
|
||||
|
||||
-- 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')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,'6',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47: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','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,200423,'Y',1000000,1,200000,'e50a70e3-a576-4660-8ac1-b73403a6b897')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,'AD_Process_DrillRule_ID','Drill Rule','Drill Rule','D','0c9e8965-941a-46f7-be4e-5794df9dfc9d')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,203569,'N','N','D','Y','N','N','Y','afd2c9af-9c8d-4fb9-b4ea-88626a1ef43d','N','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
CREATE TABLE AD_Process_DrillRule (AD_Process_DrillRule_ID NUMERIC(10) NOT NULL, CONSTRAINT AD_Process_DrillRule_Key PRIMARY KEY (AD_Process_DrillRule_ID))
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','Y','N','N','Y','dcbbbea4-8ccd-4c07-8964-0d8d9f6b10f1','N','N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD COLUMN AD_Client_ID NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,113,'N','N','D','Y','N','N','Y','a0b49fe9-f6ce-4ea6-b317-ae979c02d027','N','N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD COLUMN AD_Org_ID NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','Y','N','N','Y','feaf7550-5361-45f1-9986-2deb5187727e','N','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD COLUMN IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,245,'N','N','D','Y','N','N','Y','d3772d17-fb70-4cbc-af0c-cc2a54b7813f','N','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD COLUMN Created TIMESTAMP DEFAULT statement_timestamp() NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,246,'N','N','D','Y','N','N','Y','c629839b-dc5a-4238-9087-b9500fa241de','N','N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD COLUMN CreatedBy NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,607,'N','N','D','Y','N','N','Y','0a2b4e06-7142-455a-ac49-7637be07716b','N','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD COLUMN Updated TIMESTAMP DEFAULT statement_timestamp() NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,608,'N','N','D','Y','N','N','Y','82ea3b7f-7165-4d7b-98b7-35a20c1bd315','N','N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD COLUMN UpdatedBy NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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_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 (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','Y','Y','N',10,0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,469,'Y','Y','D','Y','N','N','Y','3a29e5d3-8271-4a43-b5c2-19547c78f295','Y',10,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD COLUMN Name VARCHAR(60) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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_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 (214731,0.0,'Description','Optional short description of the record','A description is limited to 255 characters.',200335,'Description',255,'N','N','N','Y','N','N',10,0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,275,'Y','Y','D','Y','N','N','Y','907cdb65-3239-4d65-bcc4-fbefb10ea218','Y',20,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD COLUMN Description VARCHAR(255) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214732,0.0,'Show Help',200335,'ShowHelp','S',1,'N','N','N','N','N','N',17,50007,0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,50038,'Y','N','D','Y','N','N','Y','74c04cf6-c00f-495a-80f1-66dc036be9e4','Y','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD COLUMN ShowHelp CHAR(1) DEFAULT 'S'
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_ID,ColumnName,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Callout,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintName,FKConstraintType,IsHtml) VALUES (214733,0.0,'Process','Process or Report','The Process field identifies a unique Process or Report in the system.',200335,128,'AD_Process_ID',10,'N','N','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,'org.cloudempiere.model.CalloutProcessDrillRule.process',117,'Y','N','D','Y','N','N','Y','c7b4d348-fca5-4442-9575-c0046d000a89','Y','N','N','adprocess_addrillrule','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD COLUMN AD_Process_ID NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintName,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,126,'Y','N','D','Y','N','N','Y','ac425e9f-2a69-45f1-aa44-cd82ea080ea2','Y','N','N','adtable_addrillrule','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD COLUMN AD_Table_ID NUMERIC(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,'D','cd974660-b27f-499c-a6e9-e9f959510395')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) VALUES (214735,0.0,'Report View','View used to generate this report','The Report View indicates the view used to generate this report.',200335,200158,'AD_ReportView_ID',10,'N','N','N','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,1252,'Y','N','D','Y','N','N','Y','67f6721b-a7b9-4c0e-b704-0a82534ec640','Y','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD COLUMN AD_ReportView_ID NUMERIC(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,'D','83bb8e51-dc05-47b8-b3e0-f0d54d410e63')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,Help,AD_Table_ID,AD_Val_Rule_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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintName,FKConstraintType,IsHtml) VALUES (214736,0.0,'Print Format','Data Print Format','The print format determines how data is rendered for print.',200335,200159,'AD_PrintFormat_ID',10,'N','N','N','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,1790,'Y','N','D','Y','N','N','Y','bf68bfcd-02cd-4507-a6f5-46ac33bbe525','Y','N','N','adprintformat_addrillrule','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD COLUMN AD_PrintFormat_ID NUMERIC(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','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')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,203570,'N','N','D','Y','N','N','Y','cd5833a4-a634-49af-a711-3f207a5223f5','N','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD COLUMN AD_Process_DrillRule_UU VARCHAR(36) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT AD_Process_DrillRule_UU_idx UNIQUE (AD_Process_DrillRule_UU)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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,FKConstraintName,FKConstraintType,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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,118,'Y','N','D','Y','N','N','Y','a793c423-1a45-4fd7-95a0-d03bfb6c6f94','Y',0,'N','N','ADProcessPara_ADProcessDrillRu','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD COLUMN AD_Process_Para_ID NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM 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,201125,'16ae8995-7124-4e4d-8dda-ce553170406c',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','ad_process_drillrule_uu_idx',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,200335,'N','Y','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM 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,201506,'d2686c3e-6ebf-49c1-a304-8a63c5f1daa0',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,214738,201125,10)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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 (200336,'Drill Rule Parameter','AD_Process_DrillRule_Para',0,'6',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','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','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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_Para',1000000,'N','N','Table AD_Process_DrillRule_Para','Y','Y',0,0,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,200424,'Y',1000000,1,200000,'e72153a2-3cd2-462a-8b79-308730a66acf')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintName,FKConstraintType,IsHtml) VALUES (214739,0.0,'Drill Rule',200336,'AD_Process_DrillRule_ID',10,'N','Y','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,203569,'N','N','D','Y','N','N','Y','cc9d25da-cd10-4a46-b598-49bfa88a5fef','Y','N','N','adprocess_addrillrulepara','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
CREATE TABLE AD_Process_DrillRule_Para (AD_Process_DrillRule_ID NUMERIC(10) NOT NULL)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','Y','N','N','Y','1a2c8dc6-66f5-438c-89bf-df56e12e708e','N','N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN AD_Client_ID NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,113,'N','N','D','Y','N','N','Y','4c8313ac-11d5-4fab-aba2-1ca5ecb34155','N','N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN AD_Org_ID NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','Y','N','N','Y','dfcfb4b4-38f9-4b8e-8c5c-811c1bdcd58d','N','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,245,'N','N','D','Y','N','N','Y','30b678ab-40aa-468e-9a2d-9108d38bdcc1','N','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN Created TIMESTAMP DEFAULT statement_timestamp() NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,246,'N','N','D','Y','N','N','Y','c5875da8-08c5-4d3d-a99b-b80459d286dc','N','N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN CreatedBy NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,607,'N','N','D','Y','N','N','Y','418403df-269d-4cd1-9aca-2d335a230ccb','N','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN Updated TIMESTAMP DEFAULT statement_timestamp() NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,608,'N','N','D','Y','N','N','Y','f3f1a606-2119-4671-8c13-d96a12441570','N','N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN UpdatedBy NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,2419,'Y','N','D','Y','N','N','Y','c37de7ce-4091-4f0d-b38e-d23770c5db4d','Y','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN ParameterDefault VARCHAR(255) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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_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 (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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,275,'Y','Y','D','Y','N','N','Y','7503a18e-7cde-422f-a911-f06143d187c4','Y',10,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:56 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN Description VARCHAR(255) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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-07-08 17:47:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:56','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')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,203572,'N','N','D','Y','N','N','Y','ac660503-7779-406e-81d1-5d1bab1241f9','N','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN AD_Process_DrillRule_Para_UU VARCHAR(36) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD CONSTRAINT AD_Process_DrillRule_Parauuidx UNIQUE (AD_Process_DrillRule_Para_UU)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,IsToolbarButton,IsSecure,FKConstraintType,IsHtml) 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,202621,'Y','N','D','Y','N','N','Y','82c6f4d8-e611-4b13-944f-2bf5f42bd768','Y','N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN ParameterToDefault VARCHAR(255) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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,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,IsToolbarButton,IsSecure,FKConstraintName,FKConstraintType,IsHtml) VALUES (214753,0.0,'Process Parameter',200336,186,'AD_Process_Para_ID',10,'N','Y','Y','N','N','N',19,0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,118,'N','N','D','Y','N','N','Y','baeb0d20-439e-46aa-b4e7-0eb81a391b63','Y','N','N','adprocesspara_addrillrulepara','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD COLUMN AD_Process_Para_ID NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM 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,201126,'bef2bd46-27dd-4443-bd5c-d3f383ebb846',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','ad_process_drillrule_para_uu_idx',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,200336,'N','Y','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM 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,201507,'2c3d88d2-f91b-4084-b015-b9b3db519088',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,214750,201126,10)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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 (200349,'Drill Rule Trl','AD_Process_DrillRule_Trl',0,'3',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','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','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,200425,'Y',1000000,1,200000,'8e76ab69-cb0f-4d81-911d-f0469520d5ac')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','Y','N','N','Y','0aa5cf91-1216-472a-8cc4-cbdea568233e','N',0,'N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
CREATE TABLE AD_Process_DrillRule_Trl (AD_Client_ID NUMERIC(10) NOT NULL)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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,FKConstraintName,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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,109,'N','N','D','Y','N','N','Y','623d0880-7b03-4357-96cf-4102d2c1d037','Y',0,'N','N','adlanguage_adprocessdrillrulet','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN AD_Language VARCHAR(6) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,113,'N','N','D','Y','N','N','Y','bd5074ec-a162-4337-854f-b3ab811f4b54','N',0,'N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN AD_Org_ID NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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,FKConstraintType,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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,245,'N','N','D','Y','N','N','Y','76b1ed53-f6d3-4554-9922-412c14df029e','N',0,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN Created TIMESTAMP DEFAULT statement_timestamp() NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,246,'N','N','D','Y','N','N','Y','80299531-63d4-4d73-a474-d66207e25a70','N',0,'N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN CreatedBy NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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 (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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,275,'Y','Y','D','Y','N','N','Y','1daf3f54-2df8-48bf-a87e-892cb8f4df02','Y',10,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN Description VARCHAR(255) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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,FKConstraintType,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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','Y','N','N','Y','a7ec7506-a7ba-42ae-b1dc-bec723ce7e3b','N',0,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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 (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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,420,'Y','N','D','Y','N','N','Y','27f2296d-a28a-4849-b879-ec434e650c34','Y',0,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN IsTranslated CHAR(1) CHECK (IsTranslated IN ('Y','N')) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47: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 (203600,0,0,'Y',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','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')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,203600,'Y','N','D','Y','N','N','Y','f1a207cd-ca7e-41c9-ae44-97c928127861','N',0,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN AD_Process_DrillRule_Trl_UU VARCHAR(36) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD CONSTRAINT AD_Process_DrillRule_Trl_uuidx UNIQUE (AD_Process_DrillRule_Trl_UU)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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 (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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,469,'Y','Y','D','Y','N','N','Y','3e17c966-5575-47bc-8b4a-fa6ea20e47fb','Y',20,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN Name VARCHAR(255) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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,FKConstraintType,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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,607,'N','N','D','Y','N','N','Y','65b7c93a-997a-42a4-818a-5c5a1825e012','N',0,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN Updated TIMESTAMP DEFAULT statement_timestamp() NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,608,'N','N','D','Y','N','N','Y','56503a67-4f6d-4086-83e2-daef40e53de1','N',0,'N','N','D','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN UpdatedBy NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,203569,'N','N','D','Y','N','N','Y','6cba0265-b5f8-4134-850d-d6aa6b042a67','Y',0,'N','N','adprocessdrillrule_trl','C','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD COLUMN AD_Process_DrillRule_ID NUMERIC(10) NOT NULL
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','AD_Process_DrillRule_Trl_pkey',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,200349,'Y','Y','N','N','Y')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,214929,201122,10)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM 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-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,'D','Y',TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),100,214918,201122,20)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT adprocess_addrillrule FOREIGN KEY (AD_Process_ID) REFERENCES ad_process(ad_process_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT adtable_addrillrule FOREIGN KEY (AD_Table_ID) REFERENCES ad_table(ad_table_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='ADReportView_ADProcessDrillRul', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-07-08 17:47:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214735
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT ADReportView_ADProcessDrillRul FOREIGN KEY (AD_ReportView_ID) REFERENCES ad_reportview(ad_reportview_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule ADD CONSTRAINT adprintformat_addrillrule FOREIGN KEY (AD_PrintFormat_ID) REFERENCES ad_printformat(ad_printformat_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD CONSTRAINT adprocess_addrillrulepara FOREIGN KEY (AD_Process_DrillRule_ID) REFERENCES ad_process_drillrule(ad_process_drillrule_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Para ADD CONSTRAINT adprocesspara_addrillrulepara FOREIGN KEY (AD_Process_Para_ID) REFERENCES ad_process_para(ad_process_para_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 PM CEST
|
||||
ALTER TABLE AD_Process_DrillRule_Trl ADD CONSTRAINT adlanguage_adprocessdrillrulet FOREIGN KEY (AD_Language) REFERENCES ad_language(ad_language) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:47:57 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
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 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,IsBetaFunctionality,AD_Window_UU) VALUES (200123,'Drill Rule',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),100,'M','N','D','Y','N',0,'N','91407fde-0a29-41fd-b44c-aff7070f94ec')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='AD_Process_DrillRule_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, IsUpdateable='N', AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214722
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_Client_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214723
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_Org_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214724
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='IsActive', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214725
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='Created', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214726
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='CreatedBy', AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214727
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='Updated', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214728
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='UpdatedBy', AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214729
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_ReportView_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, FKConstraintName=NULL, PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214735
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
INSERT INTO t_alter_column values('ad_process_drillrule','AD_ReportView_ID','NUMERIC(10)',null,'NULL')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:13 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='AD_Process_DrillRule_UU', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214738
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','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)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (206925,'Drill Rule',200308,214722,'N',10,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','6487a092-0a7c-4d9c-9cc7-f6bea064af07','N',1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (206932,'AD_Process_DrillRule_UU',200308,214738,'N',36,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','7dcb0cd5-450c-4642-b213-2a0cf2dc2ddb','N',1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y','D','5dcf564e-4dfd-4861-94e0-96e072e9c4a9','N',1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','860d79ca-5019-4b3f-87f5-411f7715fdc2','Y','N',4,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','1c1f603b-1d53-4ed4-8b33-0e2c8e285538','Y',10,1,5,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','84693c4f-75a8-4df8-882b-73f357961ae2','Y',20,1,5,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,AD_FieldGroup_ID,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (206927,'Process','Process or Report','The Process field identifies a unique Process or Report in the system.',200308,214733,'Y',10,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y',114,'D','7c6ecc52-f2b7-42cc-a78e-80ca01928c01','Y',40,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,AD_FieldGroup_ID,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (206926,'Show Help',200308,214732,'Y',1,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y',114,'D','e391bd8f-d510-4974-86d3-cb28df01455c','Y',30,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'Source','D','C','N','7227d406-b09d-4b60-9169-8330e99b724d')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,AD_FieldGroup_ID,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y',200029,'D','f351d63e-611f-4a5b-80ed-7e78e73a00cd','Y',50,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','221d1536-dd3e-4279-afb9-b2592ab008f3','Y',90,5,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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,90,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','117f2b2c-1719-4ff3-b7c5-c8da0b9f2cd0','Y',60,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (206930,'Print Format','Data Print Format','The print format determines how data is rendered for print.',200308,214736,'Y',10,100,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','84e95705-785f-44b4-b966-48d10fb766a6','Y',70,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','6dbd8833-4d79-4312-a7b4-5ccc05af8f12','Y',100,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Table SET AD_Window_ID=200123, AD_Val_Rule_ID=NULL, AD_Org_ID=0, PO_Window_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200336
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_Client_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214741
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_Org_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214742
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='IsActive', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214743
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='Created', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214744
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='CreatedBy', AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214745
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='Updated', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214746
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='UpdatedBy', AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214747
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='AD_Process_DrillRule_Para_UU', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214750
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N',214739,'N','N',1,'N','D','Y','N','cf646be0-5bd7-4d8e-9ede-185fec8f6b64','B','N','Y',0)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (206940,'AD_Process_DrillRule_Para_UU',200309,214750,'N',36,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','56105b60-807f-4790-bddb-4d44f1a45706','N',1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (206937,'Drill Rule',200309,214739,'N',10,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','c375dd96-6b77-4d57-8bd4-3783ad332aa3','Y',20,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y','D','7a31d9d5-18f9-4901-827e-368ec8d94ee4','N',1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','19e03e36-0698-4ec2-bcf1-2a477e02c028','Y','N',4,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (206944,'Process Parameter',200309,214753,'Y',10,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','3aaa0900-2afb-4fb9-bda7-0e5310e8013e','Y',60,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','b4bb1db1-e2da-41e2-a573-cb3c1bb4f0a7','Y',50,2,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','cec431e5-61c2-46d3-b3d6-266b0c10c57b','Y',30,1,5,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','86b3b8c8-7d82-4ef4-864d-c6cb69b1570f','Y',40,1,5,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (206936,'Description','Optional short description of the record','A description is limited to 255 characters.',200309,214749,'Y',255,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','5328039c-28f7-41ec-8753-9bd40fef703b','Y',10,1,5,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Table SET AD_Window_ID=200123, AD_Val_Rule_ID=NULL, AD_Org_ID=0, PO_Window_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=200349
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','N','Y','N',214929,'N','N',1,'N','D','N','N','08a5d1fc-e264-48c6-84d3-dad1cbac8811','B','N','Y',0)
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','415b39ab-f8a0-4ebd-9205-ff17e323ea62','N',1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','ebcd812e-7741-448a-a812-035785229365','Y','Y',10,4,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (207065,'Drill Rule',200322,214929,'Y',22,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','fbcbc793-12a4-40ea-b738-e0dee2869129','Y',20,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','79a96976-9ed0-4691-b213-29a827aab39e','Y',30,1,5,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','ce2cff54-a5c8-4d8c-98f6-1e9de59f3210','Y',40,1,5,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','83c4f092-7083-436b-8858-3d08663b6efa','Y',50,1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','ee3b1016-b121-4f42-a490-9723ec99b431','Y',60,2,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) 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-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f63a8890-9ddb-440b-988e-069a95d8a541','Y',70,2,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 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,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (207070,'AD_Process_DrillRule_Trl_UU',200322,214925,'N',36,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','cd371b09-815e-4df7-bda1-cc5b35867ab9','N',1,2,1,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:14 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='adreportview_adprocessdrillrul', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-07-08 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214735
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='AD_Process_DrillRule_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, IsUpdateable='N', AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214722
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_Client_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214723
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_Org_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214724
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='IsActive', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214725
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='Created', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214726
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='CreatedBy', AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214727
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='Updated', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214728
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='UpdatedBy', AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214729
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_ReportView_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, FKConstraintName=NULL, PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214735
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
INSERT INTO t_alter_column values('ad_process_drillrule','AD_ReportView_ID','NUMERIC(10)',null,'NULL')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='AD_Process_DrillRule_UU', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214738
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_Client_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214741
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET ColumnName='AD_Org_ID', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214742
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='IsActive', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214743
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='Created', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214744
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='CreatedBy', AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214745
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='Updated', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214746
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='UpdatedBy', AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214747
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:30 PM CEST
|
||||
UPDATE AD_Column SET AD_Val_Rule_ID=NULL, ColumnName='AD_Process_DrillRule_Para_UU', AD_Reference_Value_ID=NULL, AD_Org_ID=0, AD_Process_ID=NULL, IsSyncDatabase='Y', AD_Chart_ID=NULL, IsAllowCopy='N', PA_DashboardContent_ID=NULL, AD_Val_Rule_Lookup_ID=NULL,Updated=TO_TIMESTAMP('2022-07-08 17:48:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214750
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:31 PM CEST
|
||||
UPDATE AD_Column SET FKConstraintName='adreportview_adprocessdrillrul', FKConstraintType='N',Updated=TO_TIMESTAMP('2022-07-08 17:48:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=214735
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:49 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-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,200744,'DrillAssistant','D','9834ddc4-e261-4a92-84f5-da6ebca72822')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:49 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-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,200745,'DrillColumn','D','b36997cf-a012-4e9f-9711-b051b44d05cc')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:49 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-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,200767,'FillMandatoryDrillRulePara','D','115f5fac-3645-4f9f-af30-050dda684d24')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:49 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 Key Parameter is Not Set',0,0,'Y',TO_TIMESTAMP('2022-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,200766,'NoDrillKeyParameterSet','D','afe60283-10a3-446b-a557-b0003c457ee4')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:49 PM 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-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,200762,'NoDrillRuleFound','D','6953574e-88f7-4d13-9914-ee36e2dd3bf9')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:48:49 PM 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-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-08 17:48:49','YYYY-MM-DD HH24:MI:SS'),100,200761,'NoTableWithDrillOptions','D','22c1a70e-5ba7-4d22-a84c-db19c552b693')
|
||||
;
|
||||
|
||||
-- Jul 8, 2022, 5:56:21 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-07-08 17:56:21','YYYY-MM-DD HH24:MI:SS'),100,'Captured Process Parameter','Y',200123,'Captured Process Parameter',TO_TIMESTAMP('2022-07-08 17:56:21','YYYY-MM-DD HH24:MI:SS'),100,'N','fe77d924-c795-43ae-b7a3-ba0ad03e0b75','W',200308,200064,10,'D')
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:17:00 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 (200211,'Drill Rule','W',200123,0,0,'Y',TO_TIMESTAMP('2022-07-10 16:17:00','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2022-07-10 16:17:00','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','D','Y','776130ae-720c-4638-bfe7-a3d2d46672be')
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:17:00 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, 200211, 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=200211)
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:39 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=2,Updated=TO_TIMESTAMP('2022-07-10 16:34:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=446
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:39 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=3,Updated=TO_TIMESTAMP('2022-07-10 16:34:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=200
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:39 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=4,Updated=TO_TIMESTAMP('2022-07-10 16:34:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=439
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:39 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=5,Updated=TO_TIMESTAMP('2022-07-10 16:34:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=53191
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:40 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=6,Updated=TO_TIMESTAMP('2022-07-10 16:34:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=440
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:40 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=7,Updated=TO_TIMESTAMP('2022-07-10 16:34:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=594
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:40 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=8,Updated=TO_TIMESTAMP('2022-07-10 16:34:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=53192
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:40 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=9,Updated=TO_TIMESTAMP('2022-07-10 16:34:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=50009
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:40 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=10,Updated=TO_TIMESTAMP('2022-07-10 16:34:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=53200
|
||||
;
|
||||
|
||||
-- Jul 10, 2022, 4:34:40 PM CEST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=456, SeqNo=11,Updated=TO_TIMESTAMP('2022-07-10 16:34:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tree_ID=10 AND Node_ID=200211
|
||||
;
|
||||
|
|
@ -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 "";
|
||||
}
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
|
@ -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();
|
||||
}
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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<Integer,MProcessDrillRule> s_cache = new ImmutableIntPOCache<Integer,MProcessDrillRule>(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<MProcessDrillRule> 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<MProcessDrillRule> 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<MProcessDrillRulePara> 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;
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -167,6 +167,8 @@ public class ProcessInfo implements Serializable
|
|||
|
||||
private int languageID = 0;
|
||||
|
||||
private String showHelp = null;
|
||||
|
||||
private int m_AD_Scheduler_ID = 0;
|
||||
|
||||
public int getLanguageID() {
|
||||
|
@ -194,6 +196,22 @@ public class ProcessInfo implements Serializable
|
|||
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
|
||||
* @return String representation
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
|
@ -48,7 +48,7 @@ Copyright (C) 2007 Ashley G Ramdass (ADempiere WebUI).
|
|||
<javascript-module name="jawwa.atmosphere" version="202205100600"/>
|
||||
<javascript-module name="adempiere.local.storage" version="202205100600"/>
|
||||
<javascript-moudle name="html2canvas" version="1.3.1"/>
|
||||
<javascript-module name="org.idempiere.commons" version="202206201200"/>
|
||||
<javascript-module name="org.idempiere.commons" version="202206300300"/>
|
||||
<javascript-module name="jquery.maskedinput" version="1.4.1" />
|
||||
<javascript-module name="photobooth" version="0.7-rsd3" />
|
||||
<javascript-module name="chosenbox" version="202205100600"/>
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -75,13 +75,33 @@ public class ProcessModalDialog extends AbstractProcessDialog implements EventLi
|
|||
* @param pi
|
||||
*/
|
||||
public ProcessModalDialog(EventListener<Event> listener, int WindowNo, ProcessInfo pi)
|
||||
{
|
||||
this(listener, WindowNo, true, pi);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param listener
|
||||
* @param WindowNo
|
||||
* @param isReRun
|
||||
* @param pi
|
||||
*/
|
||||
public ProcessModalDialog(EventListener<Event> 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);
|
||||
|
|
|
@ -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<params.length; i++)
|
||||
{
|
||||
ProcessInfoParameter para = params[i];
|
||||
if ( mField.getColumnName().equals(para.getParameterName()) )
|
||||
{
|
||||
editor.setValue(para.getParameter());
|
||||
if (editor2 != null)
|
||||
editor2.setValue(para.getParameter_To());
|
||||
|
||||
if (editor.getValue() != null) {
|
||||
ValueChangeEvent changeEvent = new ValueChangeEvent(editor, editor.getColumnName(), null, editor.getValue());
|
||||
valueChange(changeEvent);
|
||||
}
|
||||
if (editor2 != null && editor2.getValue() != null) {
|
||||
ValueChangeEvent changeEvent = new ValueChangeEvent(editor2, editor2.getColumnName(), null, editor2.getValue());
|
||||
valueChange(changeEvent);
|
||||
}
|
||||
|
||||
log.fine(para.toString());
|
||||
break;
|
||||
}
|
||||
} // for every parameter
|
||||
|
||||
} // for every field
|
||||
|
||||
dynamicDisplay();
|
||||
|
||||
return true;
|
||||
} // loadParameters
|
||||
|
||||
/**
|
||||
* Save Parameter values
|
||||
*
|
||||
|
|
|
@ -0,0 +1,565 @@
|
|||
/**********************************************************************
|
||||
* 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.adempiere.webui.apps;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.HashMap;
|
||||
|
||||
import org.adempiere.webui.ClientInfo;
|
||||
import org.adempiere.webui.LayoutUtils;
|
||||
import org.adempiere.webui.component.Borderlayout;
|
||||
import org.adempiere.webui.component.Tab;
|
||||
import org.adempiere.webui.component.Tabbox;
|
||||
import org.adempiere.webui.component.Tabpanel;
|
||||
import org.adempiere.webui.component.Tabpanels;
|
||||
import org.adempiere.webui.component.Tabs;
|
||||
import org.adempiere.webui.component.Window;
|
||||
import org.adempiere.webui.event.DialogEvents;
|
||||
import org.adempiere.webui.event.DrillEvent.DrillData;
|
||||
import org.adempiere.webui.util.ZKUpdateUtil;
|
||||
import org.compiere.model.MProcess;
|
||||
import org.compiere.model.MProcessDrillRule;
|
||||
import org.compiere.model.MReportView;
|
||||
import org.compiere.model.MTable;
|
||||
import org.compiere.model.Query;
|
||||
import org.compiere.print.DrillReportCtl;
|
||||
import org.compiere.print.MPrintFormat;
|
||||
import org.compiere.process.ProcessInfo;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
import org.compiere.util.Msg;
|
||||
import org.compiere.util.Util;
|
||||
import org.zkoss.zhtml.A;
|
||||
import org.zkoss.zhtml.H3;
|
||||
import org.zkoss.zhtml.H4;
|
||||
import org.zkoss.zhtml.P;
|
||||
import org.zkoss.zhtml.Span;
|
||||
import org.zkoss.zhtml.Table;
|
||||
import org.zkoss.zhtml.Td;
|
||||
import org.zkoss.zhtml.Text;
|
||||
import org.zkoss.zhtml.Tr;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.HtmlNativeComponent;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
import org.zkoss.zul.Center;
|
||||
import org.zkoss.zul.Div;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Igor Pojzl, Cloudempiere
|
||||
*
|
||||
*/
|
||||
public class WDrillReport extends Window implements EventListener<Event> {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
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 static final String DRILL_REPORT_TABLE_NAME = "TableName";
|
||||
|
||||
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;
|
||||
|
||||
if (drillReportCtl.getDrillProcessList().length <= 0) {
|
||||
tabbox.setSelectedIndex(1);
|
||||
drillReportCtl.initDrillTableMap();
|
||||
tabPanel.appendChild(getTabContent(2, drillReportCtl.getDrillTables(), null, false));
|
||||
tablesLoaded = true;
|
||||
}
|
||||
|
||||
return tabbox;
|
||||
}
|
||||
|
||||
private Table getTabContent(int tabIndex, KeyNamePair[] drillTables, HashMap<Integer, KeyNamePair[]> 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<Integer, KeyNamePair[]> 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 != null ? drillPrintFormatMap.get(drillTable.getKey()) : new KeyNamePair[]{findTablePrintFormat(drillTable)};
|
||||
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) && isDrillProcessRule)
|
||||
{
|
||||
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) && isDrillProcessRule) {
|
||||
table.appendChild(getPrintFormatHeader(printFormat, drillPrintFormat));
|
||||
|
||||
} else {
|
||||
table.appendChild(getPrintFormatBox(printFormat, tabIndex, j, tabIndex, null, printFormats.length == 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return table;
|
||||
}
|
||||
|
||||
|
||||
private KeyNamePair findTablePrintFormat(KeyNamePair drillTable) {
|
||||
|
||||
Integer printFormatID = new Query(Env.getCtx(), MPrintFormat.Table_Name, " AD_Table_ID = ? ", null).setParameters(drillTable.getKey()).firstId();
|
||||
return new KeyNamePair((printFormatID != null && printFormatID > 0) ? printFormatID : 0, drillTable.getName());
|
||||
}
|
||||
|
||||
|
||||
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());
|
||||
a.setAttribute(DRILL_REPORT_TABLE_NAME, drillPrintFormat.getName());
|
||||
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.initDrillTableMap();
|
||||
tabPanel.appendChild(getTabContent(2, drillReportCtl.getDrillTables(), null, 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), (String) event.getTarget().getAttribute(DRILL_REPORT_TABLE_NAME));
|
||||
this.onClose();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
if (DialogEvents.ON_WINDOW_CLOSE.equals(event.getName()))
|
||||
this.onClose();
|
||||
}
|
||||
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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<ValueNamePair> selected = new LinkedHashSet<>();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
@ -64,6 +66,8 @@ public class WProcessParameterForm extends ADForm
|
|||
|
||||
private StringBuffer m_messageText = new StringBuffer();
|
||||
|
||||
private String tableName = "";
|
||||
|
||||
private ProcessParameterPanel parameterPanel;
|
||||
|
||||
private final static CLogger log = CLogger.getCLogger(WProcessParameterForm.class);
|
||||
|
@ -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();
|
||||
|
|
|
@ -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) {
|
||||
|
@ -124,11 +125,28 @@ public class HTMLExtension implements IHTMLExtension {
|
|||
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() {
|
||||
|
|
|
@ -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<Event>, 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<Event>, 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<Event>, 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<Event>, 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<Event>, 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,21 +1250,68 @@ public class ZkReportViewer extends Window implements EventListener<Event>, 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))
|
||||
{
|
||||
Dialog.error(m_WindowNo, "AccessCannotReport", query.getTableName());
|
||||
Dialog.error(m_WindowNo, "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<Event>() {
|
||||
@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<Event>() {
|
||||
@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))
|
||||
{
|
||||
Dialog.error(m_WindowNo, "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
|
||||
|
||||
/**
|
||||
|
@ -1912,8 +1876,6 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
|
|||
|
||||
@Override
|
||||
public void updateUI() {
|
||||
viewer.labelDrill.setVisible(false);
|
||||
viewer.comboDrill.setVisible(false);
|
||||
viewer.onPreviewReport();
|
||||
}
|
||||
|
||||
|
@ -1950,10 +1912,6 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
|
|||
|
||||
@Override
|
||||
public void updateUI() {
|
||||
if (viewer.comboDrill.getItemCount() > 1) {
|
||||
viewer.labelDrill.setVisible(true);
|
||||
viewer.comboDrill.setVisible(true);
|
||||
}
|
||||
viewer.onPreviewReport();
|
||||
}
|
||||
}
|
||||
|
@ -1989,8 +1947,6 @@ public class ZkReportViewer extends Window implements EventListener<Event>, 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<Event>, 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<Event>, ITab
|
|||
@Override
|
||||
public void updateUI()
|
||||
{
|
||||
viewer.labelDrill.setVisible(false);
|
||||
viewer.comboDrill.setVisible(false);
|
||||
viewer.onPreviewReport();
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
@ -121,6 +121,33 @@ window.idempiere.getMenu = function(doc, componentId, foreignColumnName, value){
|
|||
}
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
|
@ -116,6 +116,8 @@ table.z-vbox > tbody > tr > td > table {
|
|||
|
||||
<c:include page="fragment/help-window.css.dsp" />
|
||||
|
||||
<c:include page="fragment/drill-window.css.dsp" />
|
||||
|
||||
<c:include page="fragment/borderlayout.css.dsp" />
|
||||
|
||||
<c:include page="fragment/parameter-process.css.dsp" />
|
||||
|
|
|
@ -0,0 +1,758 @@
|
|||
/**********************************************************************
|
||||
* 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.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.model.Query;
|
||||
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 Process Map */
|
||||
private KeyNamePair[] drillProcessList;
|
||||
|
||||
/** Drill Process Rule Map */
|
||||
private HashMap<Integer, KeyNamePair[]> drillProcesRules;
|
||||
|
||||
/** Drill Process Rule PrintFormats */
|
||||
private HashMap<Integer, KeyNamePair[]> 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 Drill Process Rules
|
||||
* @return
|
||||
*/
|
||||
public HashMap<Integer, KeyNamePair[]> 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();
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize Drill Process Rules Map
|
||||
*/
|
||||
private void initProcessDrillRuleMap() {
|
||||
HashMap<Integer, String> drillProcessMap = new HashMap<>();
|
||||
HashMap<Integer, ArrayList<KeyNamePair>> 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<KeyNamePair> 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<KeyNamePair> drillProcessList = new ArrayList<>();
|
||||
for(Entry<Integer, String> drillProcessEntry :drillProcessMap.entrySet()) {
|
||||
drillProcessList.add(new KeyNamePair(drillProcessEntry.getKey(), drillProcessEntry.getValue()));
|
||||
}
|
||||
this.drillProcessList = drillProcessList.toArray(new KeyNamePair[drillProcessList.size()]);
|
||||
|
||||
HashMap<Integer, KeyNamePair[]> drillProcessRuleMapOut = new HashMap<>();
|
||||
for(Entry<Integer, ArrayList<KeyNamePair>> drillProcessRuleEntry :drillProcessRuleMap.entrySet()) {
|
||||
drillProcessRuleMapOut.put(drillProcessRuleEntry.getKey(), drillProcessRuleEntry.getValue().toArray(new KeyNamePair[drillProcessRuleEntry.getValue().size()]));
|
||||
}
|
||||
|
||||
this.drillProcesRules = drillProcessRuleMapOut;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize Drill Table Map
|
||||
*/
|
||||
public void initDrillTableMap() {
|
||||
|
||||
ArrayList<KeyNamePair> drillTableList = new ArrayList<>();
|
||||
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 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, 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 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 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<KeyNamePair> 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, String tableName)
|
||||
{
|
||||
MPrintFormat pf = null;
|
||||
if(ad_PrintFormat_ID == 0) {
|
||||
int AD_Table_ID = new Query(Env.getCtx(), MTable.Table_Name, " Name = ? ", null).setParameters(tableName).firstId();
|
||||
pf = MPrintFormat.createFromTable(Env.getCtx(), AD_Table_ID > 0 ? AD_Table_ID : m_AD_Table_ID);
|
||||
}
|
||||
else
|
||||
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<ProcessInfoParameter> iParams = new ArrayList<ProcessInfoParameter>();
|
||||
|
||||
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 Process Rules Print Format Map
|
||||
* @return
|
||||
*/
|
||||
public HashMap<Integer, KeyNamePair[]> getDrillProcessRulesPrintFormatMap() {
|
||||
return drillProcessRulesPrintFormatMap;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue