Idempiere 3340 (#505)
* IDEMPIERE-3340 : User favorite with tree structure * IDEMPIERE-3340: Marking write operation to safe for cross tenant safe * IDEMPIERE-3340: Fixing Cross tenant access issue * IDEMPIERE-3340: refactoring as review comment, Fixing renaming folder issue, Auto launch window shows all items irrespective of access * Sync with IDEMPIERE-4251 * Sync with IDEMPIERE-4251 * IDEMPIERE-3340: Refactoring as review comment for caching, toolbar button restriction method with ID, tooltip messages, font base theme, remove double click event, etc. Co-authored-by: Carlos Ruiz <carg67@gmail.com>
This commit is contained in:
parent
e099498a69
commit
373225a62c
|
@ -0,0 +1,232 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- User Favorite Panel
|
||||
-- Jun 7, 2017 5:16:46 PM IST
|
||||
INSERT INTO AD_Table (AD_Table_ID,Name,Description,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) VALUES (200220,'Favorite Tree','Show user favorite menu on dashboard','AD_Tree_Favorite',0,'7',0,0,'Y',TO_DATE('2017-06-07 17:16:44','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:16:44','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','N','D','N','N','L','N','Y','22aae804-ae4d-4983-8e9a-44821df6d2bf','N','N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:16:47 PM IST
|
||||
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_Tree_Favorite',1000000,'N','N','Table AD_Tree_Favorite','Y','Y',0,0,TO_DATE('2017-06-07 17:16:46','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:16:46','YYYY-MM-DD HH24:MI:SS'),100,200284,'Y',1000000,1,200000,'1ee2f67c-68b6-4178-b285-8b4058a77a6f')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:17:53 PM IST
|
||||
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) VALUES (213049,0,'Client','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',200220,129,'AD_Client_ID','@#AD_Client_ID@',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_DATE('2017-06-07 17:17:52','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:17:52','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','N','N','N','Y','4cf19db8-0024-485e-9b3b-24297ed4541c','N',0,'N','N','D')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:18:33 PM IST
|
||||
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) VALUES (213050,0,'Organization','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200220,104,'AD_Org_ID','@#AD_Org_ID@',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_DATE('2017-06-07 17:18:32','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:18:32','YYYY-MM-DD HH24:MI:SS'),100,113,'N','Y','D','N','N','N','Y','0a285262-b6db-4300-80e5-44dcaad2bbc4','N',0,'N','N','D')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:19:32 PM IST
|
||||
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) VALUES (213051,0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200220,'Created','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_DATE('2017-06-07 17:19:31','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:19:31','YYYY-MM-DD HH24:MI:SS'),100,245,'N','N','D','N','N','N','Y','f61225c6-d01f-4bb6-9a97-12bbfa2470bb','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:20:04 PM IST
|
||||
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_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) VALUES (213052,0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200220,'CreatedBy','@#AD_User_ID@',22,'N','N','N','N','N',0,'N',18,110,0,0,'Y',TO_DATE('2017-06-07 17:20:03','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:20:03','YYYY-MM-DD HH24:MI:SS'),100,246,'N','N','D','N','N','N','Y','ce404a00-9e20-415b-8f53-66798d6d787e','N',0,'N','N','D')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:20:40 PM IST
|
||||
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) VALUES (213053,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.',200220,'IsActive','Y',1,'N','N','Y','N','N',0,'N',20,0,0,'Y',TO_DATE('2017-06-07 17:20:39','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:20:39','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','N','N','N','Y','b94d5376-03c8-4800-9943-2dd1a2642359','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:21:36 PM IST
|
||||
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) VALUES (213054,0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200220,'Updated','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_DATE('2017-06-07 17:21:35','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:21:35','YYYY-MM-DD HH24:MI:SS'),100,607,'Y','N','D','N','N','N','Y','cf57f541-b98a-4386-bd0b-48ce1b4a3c20','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:22:11 PM IST
|
||||
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_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) VALUES (213055,0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200220,'UpdatedBy','@#AD_User_ID@',22,'N','N','Y','N','N',0,'N',18,110,0,0,'Y',TO_DATE('2017-06-07 17:22:09','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:22:09','YYYY-MM-DD HH24:MI:SS'),100,608,'N','N','D','N','N','N','Y','b227be8e-ef36-44af-929d-313afabcb2ce','N',0,'N','N','D')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:23:19 PM IST
|
||||
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 (203084,0,0,'Y',TO_DATE('2017-06-07 17:23:18','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:23:18','YYYY-MM-DD HH24:MI:SS'),100,'AD_Tree_Favorite_ID','Favorite Tree','Favorite Tree','D','ce59c6fc-02d2-4292-90dc-64ce1f51d00a')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:23:41 PM IST
|
||||
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 (203085,0,0,'Y',TO_DATE('2017-06-07 17:23:40','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:23:40','YYYY-MM-DD HH24:MI:SS'),100,'AD_Tree_Favorite_UU','Favorite Tree','Favorite Tree','D','d8f6b15a-6a43-43b7-a3c5-b674443c978d')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:24:20 PM IST
|
||||
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) VALUES (213056,0,'Favorite Tree',200220,'AD_Tree_Favorite_ID',22,'Y','N','Y','N','N',0,'N',13,0,0,'Y',TO_DATE('2017-06-07 17:24:19','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:24:19','YYYY-MM-DD HH24:MI:SS'),100,203084,'N','N','D','N','N','N','Y','eca5978b-cad6-4301-b2e2-d852c9fa7ef6','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:25:09 PM IST
|
||||
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) VALUES (213057,0,'Favorite Tree',200220,'AD_Tree_Favorite_UU',36,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_DATE('2017-06-07 17:25:08','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:25:08','YYYY-MM-DD HH24:MI:SS'),100,203085,'N','N','D','N','N','N','Y','4d3f6761-8d45-478d-ba94-27f92b9cc058','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:26:09 PM IST
|
||||
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) VALUES (213058,0,'User/Contact','User within the system - Internal or Business Partner Contact','The User identifies a unique user in the system. This could be an internal user or a business partner contact',200220,'AD_User_ID',22,'N','Y','Y','N','N',0,'N',19,0,0,'Y',TO_DATE('2017-06-07 17:26:08','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:26:08','YYYY-MM-DD HH24:MI:SS'),100,138,'N','N','D','N','N','N','Y','e74f8bbc-7549-4e33-a0e0-e6eb9da7f9a7','Y',0,'N','N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:27:57 PM IST
|
||||
UPDATE AD_Column SET IsUpdateable='N', FKConstraintName='ADUser_ADTreeFavorite', FKConstraintType='N',Updated=TO_DATE('2017-06-07 17:27:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213058
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:27:57 PM IST
|
||||
CREATE TABLE AD_Tree_Favorite (AD_Client_ID NUMBER(10) NOT NULL, AD_Org_ID NUMBER(10) NOT NULL, AD_Tree_Favorite_ID NUMBER(10) NOT NULL, AD_Tree_Favorite_UU VARCHAR2(36 CHAR) DEFAULT NULL , AD_User_ID NUMBER(10) NOT NULL, Created DATE DEFAULT SYSDATE, CreatedBy NUMBER(10) DEFAULT NULL , IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, Updated DATE DEFAULT SYSDATE, UpdatedBy NUMBER(10) NOT NULL, CONSTRAINT AD_Tree_Favorite_Key PRIMARY KEY (AD_Tree_Favorite_ID), CONSTRAINT AD_Tree_Favorite_UU_idx UNIQUE (AD_Tree_Favorite_UU))
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:27:57 PM IST
|
||||
ALTER TABLE AD_Tree_Favorite ADD CONSTRAINT ADUser_ADTreeFavorite FOREIGN KEY (AD_User_ID) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:30:39 PM IST
|
||||
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) VALUES (200221,'Favorite Node Tree','AD_Tree_Favorite_Node',0,'7',0,0,'Y',TO_DATE('2017-06-07 17:30:38','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:30:38','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','N','D','N','N','L','N','Y','8235cfa4-0ef7-4a74-9f98-c1bf56c3ac68','N','N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:30:40 PM IST
|
||||
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_Tree_Favorite_Node',1000000,'N','N','Table AD_Tree_Favorite_Node','Y','Y',0,0,TO_DATE('2017-06-07 17:30:39','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:30:39','YYYY-MM-DD HH24:MI:SS'),100,200285,'Y',1000000,1,200000,'e7bd8544-7e2c-4cb4-9e33-37de2ced1ac3')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:31:37 PM IST
|
||||
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) VALUES (213060,0,'Client','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',200221,129,'AD_Client_ID','@#AD_Client_ID@',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_DATE('2017-06-07 17:31:36','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:31:36','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','N','N','N','Y','af5536e6-c0bd-4576-9873-124a3efe5bf4','N',0,'N','N','D')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:31:59 PM IST
|
||||
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) VALUES (213061,0,'Organization','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200221,104,'AD_Org_ID','@#AD_Org_ID@',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_DATE('2017-06-07 17:31:58','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:31:58','YYYY-MM-DD HH24:MI:SS'),100,113,'N','N','D','N','N','N','Y','709a9598-5719-4c9d-92bb-a6049bfeec03','N',0,'N','N','D')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:32:35 PM IST
|
||||
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) VALUES (213062,0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200221,'Created','SYSDATE',7,'N','N','Y','N','N',0,'N',16,0,0,'Y',TO_DATE('2017-06-07 17:32:34','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:32:34','YYYY-MM-DD HH24:MI:SS'),100,245,'Y','N','D','N','N','N','Y','53ddb0b9-4fe2-44d7-bbfc-bac7c9425f20','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:33:40 PM IST
|
||||
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_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) VALUES (213063,0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200221,'CreatedBy','@#AD_User_ID@',22,'N','N','Y','N','N',0,'N',18,110,0,0,'Y',TO_DATE('2017-06-07 17:33:39','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:33:39','YYYY-MM-DD HH24:MI:SS'),100,246,'Y','N','D','N','N','N','Y','cff8d4ca-f835-4cc3-a8ca-0a7d5b9fd53c','N',0,'N','N','D')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:34:06 PM IST
|
||||
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) VALUES (213064,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.',200221,'IsActive','Y',1,'N','N','Y','N','N',0,'N',20,0,0,'Y',TO_DATE('2017-06-07 17:34:05','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:34:05','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','N','N','N','Y','56fb740d-48fc-4d39-a43a-540694efadab','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:34:34 PM IST
|
||||
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) VALUES (213065,0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200221,'Updated','SYSDATE',7,'N','N','Y','N','N',0,'N',16,0,0,'Y',TO_DATE('2017-06-07 17:34:33','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:34:33','YYYY-MM-DD HH24:MI:SS'),100,607,'Y','N','D','N','N','N','Y','3b597bf5-0cbe-4cf9-8233-0c28e67cc321','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:35:12 PM IST
|
||||
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_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) VALUES (213066,0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200221,'UpdatedBy','@#AD_User_ID@',22,'N','N','Y','N','N',0,'N',18,110,0,0,'Y',TO_DATE('2017-06-07 17:35:11','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:35:11','YYYY-MM-DD HH24:MI:SS'),100,608,'Y','N','D','N','N','N','Y','5452ee32-2bba-42a1-b60b-68de07d348c7','N',0,'N','N','D')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:36:09 PM IST
|
||||
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 (203086,0,0,'Y',TO_DATE('2017-06-07 17:36:08','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:36:08','YYYY-MM-DD HH24:MI:SS'),100,'AD_Tree_Favorite_Node_ID','Favorite Node Tree','Favorite Node Tree','D','471c6cba-b917-4bfc-b0ed-007a7f7d2c62')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:36:32 PM IST
|
||||
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 (203087,0,0,'Y',TO_DATE('2017-06-07 17:36:31','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:36:31','YYYY-MM-DD HH24:MI:SS'),100,'AD_Tree_Favorite_Node_UU','Favorite Node Tree','Favorite Node Tree','D','a6af8334-c55d-46c7-9002-d8225fa87c77')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:37:24 PM IST
|
||||
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) VALUES (213067,0,'Favorite Node Tree',200221,'AD_Tree_Favorite_Node_ID',22,'Y','N','Y','N','N',0,'N',13,0,0,'Y',TO_DATE('2017-06-07 17:37:23','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:37:23','YYYY-MM-DD HH24:MI:SS'),100,203086,'N','N','D','N','N','N','Y','0302266a-defe-4a79-8112-5cc262086965','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:37:44 PM IST
|
||||
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) VALUES (213068,0,'Favorite Node Tree',200221,'AD_Tree_Favorite_Node_UU',36,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_DATE('2017-06-07 17:37:43','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:37:43','YYYY-MM-DD HH24:MI:SS'),100,203087,'N','N','D','N','N','N','Y','b349c3e3-c713-4339-a5bf-0f3b3fa97b3a','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:38:40 PM IST
|
||||
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) VALUES (213069,0,'Favorite Tree',200221,'AD_Tree_Favorite_ID',22,'N','Y','Y','N','N',0,'N',19,0,0,'Y',TO_DATE('2017-06-07 17:38:39','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:38:39','YYYY-MM-DD HH24:MI:SS'),100,203084,'N','N','D','N','N','N','Y','6ba5cc25-925e-4490-89ad-dd560334174e','Y',0,'N','N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:39:42 PM IST
|
||||
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) VALUES (213070,0,'Parent','Parent of Entity','The Parent indicates the value used to represent the next level in a hierarchy or report to level for a record',200221,'Parent_ID',10,'N','N','N','N','N',0,'N',13,0,0,'Y',TO_DATE('2017-06-07 17:39:41','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:39:41','YYYY-MM-DD HH24:MI:SS'),100,496,'Y','N','D','N','N','N','Y','a510e39a-78e0-4888-b7c3-85b164f437c2','Y',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:40:39 PM IST
|
||||
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) VALUES (213071,0,'Summary Level','This is a summary entity','A summary entity represents a branch in a tree rather than an end-node. Summary entities are used for reporting and do not have own values.',200221,'IsSummary','N',1,'N','N','Y','N','N',0,'N',20,0,0,'Y',TO_DATE('2017-06-07 17:40:38','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:40:38','YYYY-MM-DD HH24:MI:SS'),100,416,'Y','Y','D','N','N','N','Y','30f402c7-8b4e-43ce-87d1-9251782be4d3','Y',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:41:19 PM IST
|
||||
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) VALUES (213072,0,'Menu','Identifies a Menu','The Menu identifies a unique Menu. Menus are used to control the display of those screens a user has access to.',200221,'AD_Menu_ID',10,'N','Y','N','N','N',0,'N',19,0,0,'Y',TO_DATE('2017-06-07 17:41:18','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:41:18','YYYY-MM-DD HH24:MI:SS'),100,110,'N','Y','D','N','N','N','Y','e5112a1f-260d-4d3d-931e-add3cb91bd08','Y',0,'N','N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:41:52 PM IST
|
||||
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) VALUES (213073,0,'Sequence','Method of ordering records; lowest number comes first','The Sequence indicates the order of records',200221,'SeqNo',22,'N','N','Y','N','N',0,'N',11,0,0,'Y',TO_DATE('2017-06-07 17:41:51','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:41:51','YYYY-MM-DD HH24:MI:SS'),100,566,'Y','N','D','N','N','N','Y','44bb0318-34c7-40fd-99cc-f393e4f27819','Y',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:42:29 PM IST
|
||||
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) VALUES (213074,0,'Collapsible','Flag to indicate the state of the dashboard panel','Flag to indicate the state of the dashboard panel (i.e. collapsible or static)',200221,'IsCollapsible','Y',1,'N','N','Y','N','N',0,'N',20,0,0,'Y',TO_DATE('2017-06-07 17:42:28','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:42:28','YYYY-MM-DD HH24:MI:SS'),100,53715,'Y','N','D','N','N','N','Y','5c53a75f-8ffb-41c7-a463-c7103eee18f3','Y',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:44:53 PM IST
|
||||
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) VALUES (213075,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.',200221,'Name',120,'N','N','N','N','Y',0,'N',10,0,0,'Y',TO_DATE('2017-06-07 17:44:52','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:44:52','YYYY-MM-DD HH24:MI:SS'),100,469,'Y','Y','D','N','N','N','Y','7ca11262-ac52-44f9-aa10-839ddea6e92a','Y',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:54:31 PM IST
|
||||
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','Start With Expanded',0,0,'Y',TO_DATE('2017-06-07 17:54:30','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:54:30','YYYY-MM-DD HH24:MI:SS'),100,200417,'StartWithExpanded','D','0f0c4535-582e-47ca-850d-3526a5cac5b5')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:56:09 PM IST
|
||||
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','Start With Collapsed',0,0,'Y',TO_DATE('2017-06-07 17:56:08','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:56:08','YYYY-MM-DD HH24:MI:SS'),100,200418,'StartWithCollapsed','D','a9572f15-a0a3-431b-869d-5251893457d3')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:56:55 PM IST
|
||||
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','Add Root',0,0,'Y',TO_DATE('2017-06-07 17:56:54','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:56:54','YYYY-MM-DD HH24:MI:SS'),100,200419,'AddAsRoot','D','afff706d-1680-4abd-b051-99557ad2b56e')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:57:37 PM IST
|
||||
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','Add a folder to Favorite Tree',0,0,'Y',TO_DATE('2017-06-07 17:57:35','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 17:57:35','YYYY-MM-DD HH24:MI:SS'),100,200420,'AddFolderFavTree','D','e19815e6-2830-469d-ab52-2c682cb3fdf1')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 6:03:16 PM IST
|
||||
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 ('E','Could not create Node.',0,0,'Y',TO_DATE('2017-06-07 18:03:15','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-07 18:03:15','YYYY-MM-DD HH24:MI:SS'),100,200421,'NodeNotCreate','D','4a212f59-33f2-4317-a1e7-9ca3d3cdaf6f')
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 12:55:53 PM IST
|
||||
UPDATE AD_Column SET IsUpdateable='N', FKConstraintName='ADMenu_ADTreeFavoriteNode', FKConstraintType='N',Updated=TO_DATE('2017-06-12 12:55:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213072
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 12:55:53 PM IST
|
||||
UPDATE AD_Column SET IsUpdateable='N', FKConstraintName='ADTreeFavorite_ADTreeFavoriteN', FKConstraintType='N',Updated=TO_DATE('2017-06-12 12:55:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213069
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 12:55:53 PM IST
|
||||
CREATE TABLE AD_Tree_Favorite_Node (AD_Client_ID NUMBER(10) NOT NULL, AD_Menu_ID NUMBER(10) DEFAULT NULL , AD_Org_ID NUMBER(10) NOT NULL, AD_Tree_Favorite_ID NUMBER(10) NOT NULL, AD_Tree_Favorite_Node_ID NUMBER(10) NOT NULL, AD_Tree_Favorite_Node_UU VARCHAR2(36 CHAR) DEFAULT NULL , Created DATE DEFAULT SYSDATE NOT NULL, CreatedBy NUMBER(10) NOT NULL, IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, IsCollapsible CHAR(1) DEFAULT 'Y' CHECK (IsCollapsible IN ('Y','N')) NOT NULL, IsSummary CHAR(1) DEFAULT 'N' CHECK (IsSummary IN ('Y','N')) NOT NULL, Name VARCHAR2(120 CHAR) DEFAULT NULL , Parent_ID NUMBER(10) DEFAULT NULL , SeqNo NUMBER(10) NOT NULL, Updated DATE DEFAULT SYSDATE NOT NULL, UpdatedBy NUMBER(10) NOT NULL, CONSTRAINT AD_Tree_Favorite_Node_Key PRIMARY KEY (AD_Tree_Favorite_Node_ID), CONSTRAINT AD_Tree_Favorite_Node_UU_idx UNIQUE (AD_Tree_Favorite_Node_UU))
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 12:55:54 PM IST
|
||||
ALTER TABLE AD_Tree_Favorite_Node ADD CONSTRAINT ADMenu_ADTreeFavoriteNode FOREIGN KEY (AD_Menu_ID) REFERENCES ad_menu(ad_menu_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 12:55:54 PM IST
|
||||
ALTER TABLE AD_Tree_Favorite_Node ADD CONSTRAINT ADTreeFavorite_ADTreeFavoriteN FOREIGN KEY (AD_Tree_Favorite_ID) REFERENCES ad_tree_favorite(ad_tree_favorite_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 1:13:43 PM IST
|
||||
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 ('E','Could not create Favorite Tree.',0,0,'Y',TO_DATE('2017-06-12 13:13:41','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-12 13:13:41','YYYY-MM-DD HH24:MI:SS'),100,200423,'FavTreeNotCreate','D','6270a5e3-fb23-4cb2-9616-1cdf34833551')
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 1:22:04 PM IST
|
||||
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 ('E','Please drag an item from a menu.',0,0,'Y',TO_DATE('2017-06-12 13:22:03','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-12 13:22:03','YYYY-MM-DD HH24:MI:SS'),100,200424,'DragItemMenu','D','8b3ed4ca-6cee-4b8c-a0b3-1664ce31dedc')
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 6:31:02 PM IST
|
||||
INSERT INTO AD_Reference (AD_Reference_ID,Name,ValidationType,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,IsOrderByValue,AD_Reference_UU) VALUES (200137,'AD_Tree_Favorite_Node list','T',0,0,'Y',TO_DATE('2017-06-12 18:31:00','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-12 18:31:00','YYYY-MM-DD HH24:MI:SS'),100,'D','N','47f185a4-37d5-426e-b386-8fabc0f0f49d')
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 6:31:54 PM IST
|
||||
INSERT INTO AD_Ref_Table (AD_Reference_ID,AD_Table_ID,AD_Key,AD_Display,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsValueDisplayed,EntityType,AD_Ref_Table_UU) VALUES (200137,200221,213067,213067,0,0,'Y',TO_DATE('2017-06-12 18:31:54','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-12 18:31:54','YYYY-MM-DD HH24:MI:SS'),100,'N','D','aa2ae14c-2b0f-43e3-84bb-eac6d3aa2c5d')
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 6:35:17 PM IST
|
||||
UPDATE AD_Column SET AD_Reference_ID=18, AD_Reference_Value_ID=200137, FKConstraintType='C',Updated=TO_DATE('2017-06-12 18:35:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213070
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 6:38:26 PM IST
|
||||
UPDATE AD_Column SET FKConstraintName='Parent_ADTreeFavoriteNode', FKConstraintType='C',Updated=TO_DATE('2017-06-12 18:38:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213070
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 6:38:26 PM IST
|
||||
ALTER TABLE AD_Tree_Favorite_Node ADD CONSTRAINT Parent_ADTreeFavoriteNode FOREIGN KEY (Parent_ID) REFERENCES ad_tree_favorite_node(ad_tree_favorite_node_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jun 13, 2017 12:22:06 PM IST
|
||||
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','Edit Folder',0,0,'Y',TO_DATE('2017-06-13 12:22:05','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2017-06-13 12:22:05','YYYY-MM-DD HH24:MI:SS'),100,200425,'EditFolder','D','651947f5-cce5-4ce9-8b59-7d1859f734e1')
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201706131200_IDEMPIERE-3340.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,579 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
--
|
||||
-- Oct 27, 2020, 1:09:51 PM IST
|
||||
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 (214329,0,'Favourite','This record is a favourite',200221,'IsFavourite','N',1,'N','N','Y','N','N',0,'N',20,0,0,'Y',TO_DATE('2020-10-27 13:09:50','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:09:50','YYYY-MM-DD HH24:MI:SS'),100,202958,'Y','N','D','N','N','N','Y','708ea949-31bc-4f53-8dba-12877cc92d14','Y',0,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:09:53 PM IST
|
||||
ALTER TABLE AD_Tree_Favorite_Node ADD IsFavourite CHAR(1) DEFAULT 'N' CHECK (IsFavourite IN ('Y','N')) NOT NULL
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:10:41 PM IST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,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 (214330,0,'Login automatic open sequence','Determine the order items will be automatically opened when user logs in',200221,'LoginOpenSeqNo',10,'N','N','N','N','N',0,'N',11,0,0,'Y',TO_DATE('2020-10-27 13:10:40','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:10:40','YYYY-MM-DD HH24:MI:SS'),100,202959,'Y','N','D','N','N','N','Y','011087cb-d674-410d-80dc-aed66be6c9e7','Y',0,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:10:42 PM IST
|
||||
ALTER TABLE AD_Tree_Favorite_Node ADD LoginOpenSeqNo NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:12:22 PM IST
|
||||
INSERT INTO AD_Window (AD_Window_ID,Name,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,WindowType,Processing,EntityType,IsSOTrx,IsDefault,WinHeight,WinWidth,IsBetaFunctionality,AD_Window_UU) VALUES (200111,'Menu user favourites',0,0,'Y',TO_DATE('2020-10-27 13:12:21','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:12:21','YYYY-MM-DD HH24:MI:SS'),100,'M','N','D','Y','N',0,0,'N','349d39cf-af9c-4fbe-81d8-3b295dc9f27b')
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:14:26 PM IST
|
||||
INSERT INTO AD_Tab (AD_Tab_ID,Name,Description,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 (200282,'Menu user tree entries','In this tab, you will be able to manage user and role wise favorite tree reference. ',200111,10,'N',200220,0,0,'Y',TO_DATE('2020-10-27 13:14:25','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:14:25','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N','N',0,'N','D','Y','N','768d15d3-e60d-4074-ad47-8d632111ae4e','B','N','Y',0)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:14:55 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (206522,'Client','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',200282,213049,'Y',22,10,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:14:54','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:14:54','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','20f2b60f-ed58-49ed-9c8d-f256bb772e9a','N',2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:14:55 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsAllowCopy,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206523,'Organization','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200282,213050,'Y',22,20,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:14:55','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:14:55','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','a0bc8024-f2aa-47d2-ab16-e01d09d46639','Y','Y',10,4,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:14:56 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206524,'User/Contact','User within the system - Internal or Business Partner Contact','The User identifies a unique user in the system. This could be an internal user or a business partner contact',200282,213058,'Y',22,30,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:14:56','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:14:56','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','422b6a7d-fc62-437f-8be6-11e78eb1fb21','Y',20,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:14:57 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (206525,'Favorite Tree',200282,213056,'N',22,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:14:56','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:14:56','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','46f335ae-8aca-4167-b011-3f3f64ededc0','N',2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:14:57 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206526,'Favorite Tree',200282,213057,'Y',36,40,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:14:57','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:14:57','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f65e13bc-742b-4e90-820b-c5c750dae66b','Y',30,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:15:00 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206528,'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.',200282,213053,'Y',1,60,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:14:59','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:14:59','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','521637bc-19e5-4236-9093-d223f19d28a9','Y',50,2,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:15:37 PM IST
|
||||
UPDATE AD_Field SET SeqNo=50, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2020-10-27 13:15:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206526
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:15:37 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=5, IsToolbarButton=NULL,Updated=TO_DATE('2020-10-27 13:15:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206528
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:15:37 PM IST
|
||||
UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2020-10-27 13:15:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206525
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:35 PM IST
|
||||
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,Parent_Column_ID,AD_Tab_UU,IsLookupOnlySelection,IsAllowAdvancedLookup,MaxQueryRecords) VALUES (200283,'Menu user tree node',200111,20,'N',200221,0,0,'Y',TO_DATE('2020-10-27 13:18:34','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:18:34','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','Y','N','N',1,'N','D','N','N',213056,'cbd7fc14-c206-4cb0-a827-168fb792f470','N','Y',0)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:47 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (206529,'Client','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',200283,213060,'Y',22,10,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:18:46','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:18:46','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f0b86ed8-7b7e-4278-8aa0-4f4bb16fc0fc','N',2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:48 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsAllowCopy,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206530,'Organization','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200283,213061,'Y',22,20,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:18:47','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:18:47','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f12031fe-075c-4848-a880-d7a582857e54','Y','Y',10,4,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:48 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206531,'Favorite Tree',200283,213069,'Y',22,30,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:18:48','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:18:48','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','db41ef17-3eb3-43d2-a149-1bb61a810619','Y',20,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:49 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206532,'Menu','Identifies a Menu','The Menu identifies a unique Menu. Menus are used to control the display of those screens a user has access to.',200283,213072,'Y',10,40,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:18:48','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:18:48','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','c7ef010b-f045-4ee3-a2bc-4ec6bddd4d76','Y',30,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:51 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206533,'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.',200283,213075,'Y',120,50,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:18:49','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:18:49','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','822ea6ba-2e63-4f41-a8ff-38dd61586e03','Y',40,5)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:52 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (206534,'Favorite Node Tree',200283,213067,'N',22,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:18:51','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:18:51','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','7fc05af5-1916-4d07-a5ef-36e9494b2ca6','N',2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:52 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206535,'Favorite Node Tree',200283,213068,'Y',36,60,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:18:52','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:18:52','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f2348f88-0c43-484f-8ab7-a4309b6d5b41','Y',50,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:53 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206536,'Parent','Parent of Entity','The Parent indicates the value used to represent the next level in a hierarchy or report to level for a record',200283,213070,'Y',10,70,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:18:52','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:18:52','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','38cbaac4-c899-43aa-bdc7-1b6a440f7cfb','Y',60,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:54 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206537,'Summary Level','This is a summary entity','A summary entity represents a branch in a tree rather than an end-node. Summary entities are used for reporting and do not have own values.',200283,213071,'Y',1,80,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:18:53','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:18:53','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','9f36b258-b1c9-4240-b2f8-43374a9bfdf7','Y',70,2,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:55 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206538,'Sequence','Method of ordering records; lowest number comes first','The Sequence indicates the order of records',200283,213073,'Y',22,90,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:18:54','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:18:54','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','69126a11-32e9-4c12-9333-de17e44a870e','Y',80,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:55 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206539,'Collapsible','Flag to indicate the state of the dashboard panel','Flag to indicate the state of the dashboard panel (i.e. collapsible or static)',200283,213074,'Y',1,100,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:18:55','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:18:55','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','ebf3e753-4775-4f37-b3fb-7697c0463963','Y',90,2,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:56 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206540,'Favourite','This record is a favourite',200283,214329,'Y',1,110,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:18:55','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:18:55','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','25793ae9-b08a-44cf-b3f4-a00cd2fbf0b5','Y',100,2,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:57 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206541,'Login automatic open sequence','Determine the order items will be automatically opened when user logs in',200283,214330,'Y',10,120,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:18:56','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:18:56','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','e655d21c-470e-4e25-9ea4-c87482922324','Y',110,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:59 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206542,'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.',200283,213064,'Y',1,130,'N','N','N','N',0,0,'Y',TO_DATE('2020-10-27 13:18:57','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:18:57','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','05e112f8-121f-4364-9ec2-e43730bf8f13','Y',120,2,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=5, IsToolbarButton=NULL,Updated=TO_DATE('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206542
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET SeqNo=50, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206532
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=4, IsToolbarButton=NULL,Updated=TO_DATE('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206536
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET SeqNo=70, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206533
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET SeqNo=80, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206535
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=90, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=5, IsToolbarButton=NULL,Updated=TO_DATE('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206539
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET SeqNo=100, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206538
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=110, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=5, IsToolbarButton=NULL,Updated=TO_DATE('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206540
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=130, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=5, IsToolbarButton=NULL,Updated=TO_DATE('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206537
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206534
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:22:27 PM IST
|
||||
UPDATE AD_Tab SET IsReadOnly='Y', IsInsertRecord='N',Updated=TO_DATE('2020-10-27 13:22:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200282
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:25:50 PM IST
|
||||
INSERT INTO AD_Menu (AD_Menu_ID,Name,Description,Action,AD_Window_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSummary,IsSOTrx,IsReadOnly,EntityType,IsCentrallyMaintained,AD_Menu_UU) VALUES (200175,'Menu user favourites','User favourites menu','W',200111,0,0,'Y',TO_DATE('2020-10-27 13:25:49','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-10-27 13:25:49','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','D','Y','9b0c1e47-4fae-4cbd-80d5-66119ca4ed94')
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:25:50 PM IST
|
||||
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, 200175, 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=200175)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=218
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=153
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=263
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=166
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=203
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=53242
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=236
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=183
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=160
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=278
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=345
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=53296
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=53014
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=53108
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=0, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=334
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=1, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=498
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=2, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=224
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=3, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=145
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=4, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=336
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=5, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=341
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=6, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=144
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=7, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=170
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=8, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=465
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=9, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=200137
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=10, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=200175
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=11, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=101
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=12, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=294
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=13, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=395
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=14, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=296
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=15, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=221
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=16, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=233
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=17, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=290
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=18, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=109
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=19, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=200093
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=20, Updated=getDate() WHERE AD_Tree_ID=10 AND Node_ID=50008
|
||||
;
|
||||
|
||||
|
||||
|
||||
-- Oct 28, 2020, 5:08:25 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_DATE('2020-10-28 17:08:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206525
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:08:25 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_DATE('2020-10-28 17:08:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206526
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:09:44 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=4, IsToolbarButton=NULL,Updated=TO_DATE('2020-10-28 17:09:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206534
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:09:44 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=80, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=2, IsToolbarButton=NULL,Updated=TO_DATE('2020-10-28 17:09:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206542
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:09:44 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_DATE('2020-10-28 17:09:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206535
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:10:22 PM IST
|
||||
UPDATE AD_Tab SET Name='Favorite tree node',Updated=TO_DATE('2020-10-28 17:10:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200283
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:11:56 PM IST
|
||||
UPDATE AD_Tab SET Name='User favourite tree', Description='In this tab, you can see to manage user and role wise favourite tree references',Updated=TO_DATE('2020-10-28 17:11:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200282
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:17 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206526
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:17 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206522
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:17 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206523
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:17 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206525
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:17 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206524
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:17 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206528
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206535
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206529
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206530
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206531
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206534
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206532
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206533
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206536
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206537
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206538
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206539
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206540
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206541
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y', Updated=getDate(), UpdatedBy=100 WHERE AD_Field_ID=206542
|
||||
;
|
||||
|
||||
-- IDEMPIERE-3340 InActive existing AD_TreeBar table
|
||||
-- Oct 30, 2020, 11:37:24 AM IST
|
||||
UPDATE AD_Table SET IsActive='N',Updated=TO_DATE('2020-10-30 11:37:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=456
|
||||
;
|
||||
|
||||
-- Oct 30, 2020, 11:37:39 AM IST
|
||||
UPDATE AD_Window SET IsActive='N',Updated=TO_DATE('2020-10-30 11:37:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=200083
|
||||
;
|
||||
|
||||
-- Oct 30, 2020, 11:37:39 AM IST
|
||||
UPDATE AD_Menu SET Name='Menu favourites', Description=NULL, IsActive='N',Updated=TO_DATE('2020-10-30 11:37:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=200137
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 2:50:20 PM IST
|
||||
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','Add Folder',0,0,'Y',TO_DATE('2020-11-09 14:50:12','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-11-09 14:50:12','YYYY-MM-DD HH24:MI:SS'),100,200650,'AddFolder','D','e49ac96b-cf5d-46ce-b27e-8f4da369f2b8')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 6:30:52 PM IST
|
||||
UPDATE AD_Message SET MsgText='Default Collapsed', Value='DefaultCollapsed',Updated=TO_DATE('2020-11-09 18:30:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=200418
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 6:31:06 PM IST
|
||||
UPDATE AD_Message SET MsgText='Default Expanded', Value='DefaultExpanded',Updated=TO_DATE('2020-11-09 18:31:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=200417
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:16:01 PM IST
|
||||
INSERT INTO AD_Tree_Favorite (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_ID,AD_Tree_Favorite_UU,AD_User_ID) VALUES (0,0,TO_DATE('2020-11-09 22:16:00','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2020-11-09 22:16:00','YYYY-MM-DD HH24:MI:SS'),0,200000,'5b06f461-d7a0-4a66-917b-5951b263d8bc',0)
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:16:18 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_DATE('2020-11-09 22:16:17','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2020-11-09 22:16:17','YYYY-MM-DD HH24:MI:SS'),0,200000,'58f11238-97f7-423e-b0e8-0a95c34aad8d',200000,'N',139,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:18:42 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_DATE('2020-11-09 22:18:41','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2020-11-09 22:18:41','YYYY-MM-DD HH24:MI:SS'),0,200001,'f91f4930-e3cb-45f9-9f0f-ae3f0923aa5a',200000,'N',143,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:19:36 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_DATE('2020-11-09 22:19:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2020-11-09 22:19:34','YYYY-MM-DD HH24:MI:SS'),0,200002,'92edf19d-3cdf-47e4-89ef-8dac845ded41',200000,'N',141,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:19:46 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_DATE('2020-11-09 22:19:44','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2020-11-09 22:19:44','YYYY-MM-DD HH24:MI:SS'),0,200003,'530c486b-8911-4ec4-8880-31e2dddae41e',200000,'N',138,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:19:58 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_DATE('2020-11-09 22:19:57','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2020-11-09 22:19:57','YYYY-MM-DD HH24:MI:SS'),0,200004,'1b44d547-bc25-417c-8cf5-f2b3147dfe45',200000,'N',140,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:20:02 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_DATE('2020-11-09 22:20:01','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2020-11-09 22:20:01','YYYY-MM-DD HH24:MI:SS'),0,200005,'6bf41fe9-2830-4285-a8c4-08df7b6ac500',200000,'N',176,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:20:17 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_DATE('2020-11-09 22:20:15','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2020-11-09 22:20:15','YYYY-MM-DD HH24:MI:SS'),0,200006,'678a1e18-1132-414f-9d55-95c8dbb2b8c3',200000,'N',495,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:23:00 PM IST
|
||||
INSERT INTO AD_Tree_Favorite (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_ID,AD_Tree_Favorite_UU,AD_User_ID) VALUES (0,0,TO_DATE('2020-11-09 22:23:00','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2020-11-09 22:23:00','YYYY-MM-DD HH24:MI:SS'),100,200001,'c6908596-2445-4ddf-923c-d57d07172190',100)
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:23:10 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_DATE('2020-11-09 22:23:09','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2020-11-09 22:23:09','YYYY-MM-DD HH24:MI:SS'),100,200007,'fb8dd799-4957-4f19-8cda-41c73163ff5c',200001,'N',139,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:23:23 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_DATE('2020-11-09 22:23:22','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2020-11-09 22:23:22','YYYY-MM-DD HH24:MI:SS'),100,200008,'d66030a2-62a5-4c99-84a9-6cb7cbf4571a',200001,'N',141,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:23:35 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_DATE('2020-11-09 22:23:34','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2020-11-09 22:23:34','YYYY-MM-DD HH24:MI:SS'),100,200009,'f1a43868-ac62-48ab-a9ec-bbc6ec24c2d3',200001,'N',140,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:23:47 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_DATE('2020-11-09 22:23:46','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2020-11-09 22:23:46','YYYY-MM-DD HH24:MI:SS'),100,200010,'2779913f-5f12-48ef-bcb3-b4e533dc3c85',200001,'N',143,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:24:14 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_DATE('2020-11-09 22:24:13','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2020-11-09 22:24:13','YYYY-MM-DD HH24:MI:SS'),100,200011,'c88e5852-c44e-48f8-a1a1-723bcacdd7b0',200001,'N',176,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:24:23 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_DATE('2020-11-09 22:24:22','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2020-11-09 22:24:22','YYYY-MM-DD HH24:MI:SS'),100,200012,'dd727797-acb3-41a5-9150-13f5f84abb56',200001,'N',138,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:24:28 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_DATE('2020-11-09 22:24:27','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2020-11-09 22:24:27','YYYY-MM-DD HH24:MI:SS'),100,200013,'ccb030c2-3e69-4ff9-895e-6b6473f421fb',200001,'N',144,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:24:37 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_DATE('2020-11-09 22:24:36','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2020-11-09 22:24:36','YYYY-MM-DD HH24:MI:SS'),100,200014,'9673365f-7e29-415f-a7c0-93ce248a99c5',200001,'N',50008,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:24:47 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_DATE('2020-11-09 22:24:45','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2020-11-09 22:24:45','YYYY-MM-DD HH24:MI:SS'),100,200015,'371187f4-ba54-44e7-8dfb-ce367d513034',200001,'N',200022,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:24:57 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_DATE('2020-11-09 22:24:56','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2020-11-09 22:24:56','YYYY-MM-DD HH24:MI:SS'),100,200016,'12920433-60c4-43cf-810d-93ba5fe7f4cc',200001,'N',383,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:28:51 PM IST
|
||||
INSERT INTO AD_Tree_Favorite (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_ID,AD_Tree_Favorite_UU,AD_User_ID) VALUES (11,0,TO_DATE('2020-11-09 22:28:50','YYYY-MM-DD HH24:MI:SS'),101,'Y',TO_DATE('2020-11-09 22:28:50','YYYY-MM-DD HH24:MI:SS'),101,200002,'499eb45d-a86c-4928-9693-4459284362e9',101)
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:28:54 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (11,0,TO_DATE('2020-11-09 22:28:54','YYYY-MM-DD HH24:MI:SS'),101,'Y',TO_DATE('2020-11-09 22:28:54','YYYY-MM-DD HH24:MI:SS'),101,200017,'e1bee68a-f3c5-4295-ab84-466a2b41d8b5',200002,'N',129,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:29:01 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (11,0,TO_DATE('2020-11-09 22:29:00','YYYY-MM-DD HH24:MI:SS'),101,'Y',TO_DATE('2020-11-09 22:29:00','YYYY-MM-DD HH24:MI:SS'),101,200018,'a3402da1-78ff-4c7c-b3c4-cc1bf56b8bb2',200002,'N',110,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:29:11 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (11,0,TO_DATE('2020-11-09 22:29:10','YYYY-MM-DD HH24:MI:SS'),101,'Y',TO_DATE('2020-11-09 22:29:10','YYYY-MM-DD HH24:MI:SS'),101,200019,'34491aef-871a-43cb-971d-b014e64f4464',200002,'N',126,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:30:13 PM IST
|
||||
INSERT INTO AD_Tree_Favorite (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_ID,AD_Tree_Favorite_UU,AD_User_ID) VALUES (11,11,TO_DATE('2020-11-09 22:30:12','YYYY-MM-DD HH24:MI:SS'),102,'Y',TO_DATE('2020-11-09 22:30:12','YYYY-MM-DD HH24:MI:SS'),102,200003,'83ea3b9e-ba2e-4ec0-b08c-9f88733eb070',102)
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:30:17 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (11,11,TO_DATE('2020-11-09 22:30:16','YYYY-MM-DD HH24:MI:SS'),102,'Y',TO_DATE('2020-11-09 22:30:16','YYYY-MM-DD HH24:MI:SS'),102,200020,'8400f944-d7d3-4a6f-96d2-612b84d5d9c0',200003,'N',129,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:59:30 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (11,0,TO_DATE('2020-11-09 22:59:28','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2020-11-09 22:59:28','YYYY-MM-DD HH24:MI:SS'),100,200021,'2ec4e36c-9749-41d4-8b97-8e69a2bc39e1',200001,'N',129,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:59:37 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (11,0,TO_DATE('2020-11-09 22:59:36','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2020-11-09 22:59:36','YYYY-MM-DD HH24:MI:SS'),100,200022,'08dd130d-403b-464b-be39-60a22414d46f',200001,'N',110,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:59:49 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (11,0,TO_DATE('2020-11-09 22:59:48','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2020-11-09 22:59:48','YYYY-MM-DD HH24:MI:SS'),100,200023,'99f0d2ce-2e5e-43b4-be3a-41fe4554f5f7',200001,'N',126,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 10, 2020, 1:14:16 PM IST
|
||||
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','Current folder selected',0,0,'Y',TO_DATE('2020-11-10 13:14:15','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-11-10 13:14:15','YYYY-MM-DD HH24:MI:SS'),100,200652,'CurrentFolderSelected','D','7a7df360-8175-4fe2-a729-77a526582cd2')
|
||||
;
|
||||
|
||||
-- Nov 24, 2020, 2:31:59 PM IST
|
||||
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','Automatic Launch','Automatic launch menu item immediate after login.',0,0,'Y',TO_DATE('2020-11-24 14:31:58','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-11-24 14:31:58','YYYY-MM-DD HH24:MI:SS'),100,200653,'AutoLaunch','D','12498d10-b5c4-43ad-943b-009d50aeec6c')
|
||||
;
|
||||
|
||||
SELECT register_migration_script('202010281900_IDEMPIERE-3340.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,22 @@
|
|||
-- Postgresql Data Migration from AD_TreeBar to AD_Tree_Favorite and AD_Tree_Favorite_Node table
|
||||
-- Insert TreeBar data to Tree Favorite
|
||||
INSERT INTO AD_Tree_Favorite (AD_Tree_Favorite_ID, AD_Client_ID, AD_Org_ID, AD_User_ID, Created, CreatedBy, Updated, UpdatedBy, AD_Tree_Favorite_UU)
|
||||
SELECT (row_number() OVER (ORDER BY AD_Client_ID, AD_User_ID)) + 999999 AS AD_Tree_Favorite_ID, AD_Client_ID, 0, AD_User_ID, SYSDATE, 100, SYSDATE, 100, Generate_UUID()
|
||||
FROM AD_TreeBar
|
||||
WHERE AD_User_ID NOT IN (SELECT DISTINCT AD_User_ID FROM AD_Tree_Favorite)
|
||||
GROUP BY AD_Client_ID, AD_User_ID
|
||||
;
|
||||
|
||||
-- Insert TreeBar data to Tree Favorite Node
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID, AD_Menu_ID, AD_Org_ID, AD_Tree_Favorite_ID, AD_Tree_Favorite_Node_ID,
|
||||
AD_Tree_Favorite_Node_UU, Created, CreatedBy, IsSummary, SeqNo, Updated, UpdatedBy, IsFavourite, LoginOpenSeqNo)
|
||||
SELECT AD_Client_ID, Node_ID, AD_Org_ID, (SELECT AD_Tree_Favorite_ID FROM AD_Tree_Favorite WHERE AD_Client_ID = tb.AD_Client_ID AND AD_User_ID=tb.AD_User_ID) AS AD_Tree_Favorite_ID,
|
||||
(row_number() OVER (ORDER BY AD_Client_ID, AD_User_ID)) + 999999 AD_Tree_Favorite_Node_ID,
|
||||
Generate_UUID(), SYSDATE, 100, 'N', 0, SYSDATE, 100, 'Y', LoginOpenSeqNo
|
||||
FROM AD_TreeBar tb
|
||||
WHERE (AD_Client_ID, AD_User_ID, Node_ID) NOT IN (SELECT DISTINCT tf.AD_Client_ID, tf.AD_User_ID, tfn.AD_Menu_ID FROM AD_Tree_Favorite tf INNER JOIN AD_Tree_Favorite_Node tfn ON (tfn.AD_Tree_Favorite_ID = tf.AD_Tree_Favorite_ID) AND tfn.AD_Menu_ID>0)
|
||||
ORDER BY AD_Client_ID, AD_User_ID
|
||||
;
|
||||
|
||||
SELECT register_migration_script('202011101100_IDEMPIERE-3340_MigrateData.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,34 @@
|
|||
SET SQLBLANKLINES ON
|
||||
SET DEFINE OFF
|
||||
|
||||
-- IDEMPIERE-3340 Add tooltip messages
|
||||
-- Jan 18, 2021, 6:52:01 PM IST
|
||||
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','New folder added as in root level.',0,0,'Y',TO_DATE('2021-01-18 18:52:00','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2021-01-18 18:52:00','YYYY-MM-DD HH24:MI:SS'),100,200656,'Tooltip_AddAsRoot','D','7bd7ffa8-5596-4c2e-a0c1-7062f0c8c3a1')
|
||||
;
|
||||
|
||||
-- Jan 18, 2021, 6:53:13 PM IST
|
||||
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','This flag is marked then folder default open with expanded view.',0,0,'Y',TO_DATE('2021-01-18 18:53:12','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2021-01-18 18:53:12','YYYY-MM-DD HH24:MI:SS'),100,200657,'Tooltip_DefaultExpanded','D','57eb03cd-86ca-42a7-9a4a-0fd8c014e1f7')
|
||||
;
|
||||
|
||||
-- Jan 18, 2021, 6:56:38 PM IST
|
||||
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','Expand/Collapse Tree',0,0,'Y',TO_DATE('2021-01-18 18:56:38','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2021-01-18 18:56:38','YYYY-MM-DD HH24:MI:SS'),100,200658,'Tooltip_ExpandCollapseTree','D','26463bcc-7a17-444c-aab4-51fda0fde442')
|
||||
;
|
||||
|
||||
-- May 7, 2020 7:15:41 PM IST
|
||||
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','Move Down',0,0,'Y',TO_DATE('2020-05-07 19:15:40','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-05-07 19:15:40','YYYY-MM-DD HH24:MI:SS'),100,200608,'MoveDown','D','525bf4d4-5ce3-4a7d-9081-2e3b96708cf1')
|
||||
;
|
||||
|
||||
-- May 7, 2020 7:16:04 PM IST
|
||||
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','Move Up',0,0,'Y',TO_DATE('2020-05-07 19:16:03','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-05-07 19:16:03','YYYY-MM-DD HH24:MI:SS'),100,200609,'MoveUp','D','bdf56785-ce50-49ce-a2c5-d20a1a08ec96')
|
||||
;
|
||||
|
||||
-- May 7, 2020 7:16:17 PM IST
|
||||
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','Move Left',0,0,'Y',TO_DATE('2020-05-07 19:16:16','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-05-07 19:16:16','YYYY-MM-DD HH24:MI:SS'),100,200610,'MoveLeft','D','f0082f8f-7ecf-4682-9ee2-593b6b21fe41')
|
||||
;
|
||||
|
||||
-- May 7, 2020 7:16:31 PM IST
|
||||
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','Move Right',0,0,'Y',TO_DATE('2020-05-07 19:16:30','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-05-07 19:16:30','YYYY-MM-DD HH24:MI:SS'),100,200611,'MoveRight','D','0d2f8a50-350d-43c5-9629-64c3a6ea88d1')
|
||||
;
|
||||
|
||||
SELECT register_migration_script('202101181900_IDEMPIERE-3340.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,229 @@
|
|||
-- User Favorite Panel
|
||||
-- Jun 7, 2017 5:16:46 PM IST
|
||||
INSERT INTO AD_Table (AD_Table_ID,Name,Description,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) VALUES (200220,'Favorite Tree','Show user favorite menu on dashboard','AD_Tree_Favorite',0,'7',0,0,'Y',TO_TIMESTAMP('2017-06-07 17:16:44','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:16:44','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','N','D','N','N','L','N','Y','22aae804-ae4d-4983-8e9a-44821df6d2bf','N','N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:16:47 PM IST
|
||||
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_Tree_Favorite',1000000,'N','N','Table AD_Tree_Favorite','Y','Y',0,0,TO_TIMESTAMP('2017-06-07 17:16:46','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:16:46','YYYY-MM-DD HH24:MI:SS'),100,200284,'Y',1000000,1,200000,'1ee2f67c-68b6-4178-b285-8b4058a77a6f')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:17:53 PM IST
|
||||
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) VALUES (213049,0,'Client','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',200220,129,'AD_Client_ID','@#AD_Client_ID@',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:17:52','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:17:52','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','N','N','N','Y','4cf19db8-0024-485e-9b3b-24297ed4541c','N',0,'N','N','D')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:18:33 PM IST
|
||||
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) VALUES (213050,0,'Organization','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200220,104,'AD_Org_ID','@#AD_Org_ID@',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:18:32','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:18:32','YYYY-MM-DD HH24:MI:SS'),100,113,'N','Y','D','N','N','N','Y','0a285262-b6db-4300-80e5-44dcaad2bbc4','N',0,'N','N','D')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:19:32 PM IST
|
||||
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) VALUES (213051,0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200220,'Created','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:19:31','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:19:31','YYYY-MM-DD HH24:MI:SS'),100,245,'N','N','D','N','N','N','Y','f61225c6-d01f-4bb6-9a97-12bbfa2470bb','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:20:04 PM IST
|
||||
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_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) VALUES (213052,0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200220,'CreatedBy','@#AD_User_ID@',22,'N','N','N','N','N',0,'N',18,110,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:20:03','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:20:03','YYYY-MM-DD HH24:MI:SS'),100,246,'N','N','D','N','N','N','Y','ce404a00-9e20-415b-8f53-66798d6d787e','N',0,'N','N','D')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:20:40 PM IST
|
||||
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) VALUES (213053,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.',200220,'IsActive','Y',1,'N','N','Y','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:20:39','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:20:39','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','N','N','N','Y','b94d5376-03c8-4800-9943-2dd1a2642359','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:21:36 PM IST
|
||||
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) VALUES (213054,0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200220,'Updated','SYSDATE',7,'N','N','N','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:21:35','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:21:35','YYYY-MM-DD HH24:MI:SS'),100,607,'Y','N','D','N','N','N','Y','cf57f541-b98a-4386-bd0b-48ce1b4a3c20','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:22:11 PM IST
|
||||
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_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) VALUES (213055,0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200220,'UpdatedBy','@#AD_User_ID@',22,'N','N','Y','N','N',0,'N',18,110,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:22:09','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:22:09','YYYY-MM-DD HH24:MI:SS'),100,608,'N','N','D','N','N','N','Y','b227be8e-ef36-44af-929d-313afabcb2ce','N',0,'N','N','D')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:23:19 PM IST
|
||||
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 (203084,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:23:18','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:23:18','YYYY-MM-DD HH24:MI:SS'),100,'AD_Tree_Favorite_ID','Favorite Tree','Favorite Tree','D','ce59c6fc-02d2-4292-90dc-64ce1f51d00a')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:23:41 PM IST
|
||||
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 (203085,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:23:40','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:23:40','YYYY-MM-DD HH24:MI:SS'),100,'AD_Tree_Favorite_UU','Favorite Tree','Favorite Tree','D','d8f6b15a-6a43-43b7-a3c5-b674443c978d')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:24:20 PM IST
|
||||
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) VALUES (213056,0,'Favorite Tree',200220,'AD_Tree_Favorite_ID',22,'Y','N','Y','N','N',0,'N',13,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:24:19','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:24:19','YYYY-MM-DD HH24:MI:SS'),100,203084,'N','N','D','N','N','N','Y','eca5978b-cad6-4301-b2e2-d852c9fa7ef6','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:25:09 PM IST
|
||||
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) VALUES (213057,0,'Favorite Tree',200220,'AD_Tree_Favorite_UU',36,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:25:08','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:25:08','YYYY-MM-DD HH24:MI:SS'),100,203085,'N','N','D','N','N','N','Y','4d3f6761-8d45-478d-ba94-27f92b9cc058','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:26:09 PM IST
|
||||
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) VALUES (213058,0,'User/Contact','User within the system - Internal or Business Partner Contact','The User identifies a unique user in the system. This could be an internal user or a business partner contact',200220,'AD_User_ID',22,'N','Y','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:26:08','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:26:08','YYYY-MM-DD HH24:MI:SS'),100,138,'N','N','D','N','N','N','Y','e74f8bbc-7549-4e33-a0e0-e6eb9da7f9a7','Y',0,'N','N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:27:57 PM IST
|
||||
UPDATE AD_Column SET IsUpdateable='N', FKConstraintName='ADUser_ADTreeFavorite', FKConstraintType='N',Updated=TO_TIMESTAMP('2017-06-07 17:27:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213058
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:27:57 PM IST
|
||||
CREATE TABLE AD_Tree_Favorite (AD_Client_ID NUMERIC(10) NOT NULL, AD_Org_ID NUMERIC(10) NOT NULL, AD_Tree_Favorite_ID NUMERIC(10) NOT NULL, AD_Tree_Favorite_UU VARCHAR(36) DEFAULT NULL , AD_User_ID NUMERIC(10) NOT NULL, Created TIMESTAMP DEFAULT statement_timestamp(), CreatedBy NUMERIC(10) DEFAULT NULL , IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, Updated TIMESTAMP DEFAULT statement_timestamp(), UpdatedBy NUMERIC(10) NOT NULL, CONSTRAINT AD_Tree_Favorite_Key PRIMARY KEY (AD_Tree_Favorite_ID), CONSTRAINT AD_Tree_Favorite_UU_idx UNIQUE (AD_Tree_Favorite_UU))
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:27:57 PM IST
|
||||
ALTER TABLE AD_Tree_Favorite ADD CONSTRAINT ADUser_ADTreeFavorite FOREIGN KEY (AD_User_ID) REFERENCES ad_user(ad_user_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:30:39 PM IST
|
||||
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) VALUES (200221,'Favorite Node Tree','AD_Tree_Favorite_Node',0,'7',0,0,'Y',TO_TIMESTAMP('2017-06-07 17:30:38','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:30:38','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','N','D','N','N','L','N','Y','8235cfa4-0ef7-4a74-9f98-c1bf56c3ac68','N','N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:30:40 PM IST
|
||||
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_Tree_Favorite_Node',1000000,'N','N','Table AD_Tree_Favorite_Node','Y','Y',0,0,TO_TIMESTAMP('2017-06-07 17:30:39','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:30:39','YYYY-MM-DD HH24:MI:SS'),100,200285,'Y',1000000,1,200000,'e7bd8544-7e2c-4cb4-9e33-37de2ced1ac3')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:31:37 PM IST
|
||||
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) VALUES (213060,0,'Client','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',200221,129,'AD_Client_ID','@#AD_Client_ID@',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:31:36','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:31:36','YYYY-MM-DD HH24:MI:SS'),100,102,'N','N','D','N','N','N','Y','af5536e6-c0bd-4576-9873-124a3efe5bf4','N',0,'N','N','D')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:31:59 PM IST
|
||||
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) VALUES (213061,0,'Organization','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200221,104,'AD_Org_ID','@#AD_Org_ID@',22,'N','N','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:31:58','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:31:58','YYYY-MM-DD HH24:MI:SS'),100,113,'N','N','D','N','N','N','Y','709a9598-5719-4c9d-92bb-a6049bfeec03','N',0,'N','N','D')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:32:35 PM IST
|
||||
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) VALUES (213062,0,'Created','Date this record was created','The Created field indicates the date that this record was created.',200221,'Created','SYSDATE',7,'N','N','Y','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:32:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:32:34','YYYY-MM-DD HH24:MI:SS'),100,245,'Y','N','D','N','N','N','Y','53ddb0b9-4fe2-44d7-bbfc-bac7c9425f20','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:33:40 PM IST
|
||||
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_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) VALUES (213063,0,'Created By','User who created this records','The Created By field indicates the user who created this record.',200221,'CreatedBy','@#AD_User_ID@',22,'N','N','Y','N','N',0,'N',18,110,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:33:39','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:33:39','YYYY-MM-DD HH24:MI:SS'),100,246,'Y','N','D','N','N','N','Y','cff8d4ca-f835-4cc3-a8ca-0a7d5b9fd53c','N',0,'N','N','D')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:34:06 PM IST
|
||||
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) VALUES (213064,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.',200221,'IsActive','Y',1,'N','N','Y','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:34:05','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:34:05','YYYY-MM-DD HH24:MI:SS'),100,348,'Y','N','D','N','N','N','Y','56fb740d-48fc-4d39-a43a-540694efadab','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:34:34 PM IST
|
||||
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) VALUES (213065,0,'Updated','Date this record was updated','The Updated field indicates the date that this record was updated.',200221,'Updated','SYSDATE',7,'N','N','Y','N','N',0,'N',16,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:34:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:34:33','YYYY-MM-DD HH24:MI:SS'),100,607,'Y','N','D','N','N','N','Y','3b597bf5-0cbe-4cf9-8233-0c28e67cc321','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:35:12 PM IST
|
||||
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_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) VALUES (213066,0,'Updated By','User who updated this records','The Updated By field indicates the user who updated this record.',200221,'UpdatedBy','@#AD_User_ID@',22,'N','N','Y','N','N',0,'N',18,110,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:35:11','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:35:11','YYYY-MM-DD HH24:MI:SS'),100,608,'Y','N','D','N','N','N','Y','5452ee32-2bba-42a1-b60b-68de07d348c7','N',0,'N','N','D')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:36:09 PM IST
|
||||
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 (203086,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:36:08','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:36:08','YYYY-MM-DD HH24:MI:SS'),100,'AD_Tree_Favorite_Node_ID','Favorite Node Tree','Favorite Node Tree','D','471c6cba-b917-4bfc-b0ed-007a7f7d2c62')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:36:32 PM IST
|
||||
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 (203087,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:36:31','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:36:31','YYYY-MM-DD HH24:MI:SS'),100,'AD_Tree_Favorite_Node_UU','Favorite Node Tree','Favorite Node Tree','D','a6af8334-c55d-46c7-9002-d8225fa87c77')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:37:24 PM IST
|
||||
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) VALUES (213067,0,'Favorite Node Tree',200221,'AD_Tree_Favorite_Node_ID',22,'Y','N','Y','N','N',0,'N',13,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:37:23','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:37:23','YYYY-MM-DD HH24:MI:SS'),100,203086,'N','N','D','N','N','N','Y','0302266a-defe-4a79-8112-5cc262086965','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:37:44 PM IST
|
||||
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) VALUES (213068,0,'Favorite Node Tree',200221,'AD_Tree_Favorite_Node_UU',36,'N','N','N','N','N',0,'N',10,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:37:43','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:37:43','YYYY-MM-DD HH24:MI:SS'),100,203087,'N','N','D','N','N','N','Y','b349c3e3-c713-4339-a5bf-0f3b3fa97b3a','N',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:38:40 PM IST
|
||||
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) VALUES (213069,0,'Favorite Tree',200221,'AD_Tree_Favorite_ID',22,'N','Y','Y','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:38:39','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:38:39','YYYY-MM-DD HH24:MI:SS'),100,203084,'N','N','D','N','N','N','Y','6ba5cc25-925e-4490-89ad-dd560334174e','Y',0,'N','N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:39:42 PM IST
|
||||
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) VALUES (213070,0,'Parent','Parent of Entity','The Parent indicates the value used to represent the next level in a hierarchy or report to level for a record',200221,'Parent_ID',10,'N','N','N','N','N',0,'N',13,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:39:41','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:39:41','YYYY-MM-DD HH24:MI:SS'),100,496,'Y','N','D','N','N','N','Y','a510e39a-78e0-4888-b7c3-85b164f437c2','Y',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:40:39 PM IST
|
||||
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) VALUES (213071,0,'Summary Level','This is a summary entity','A summary entity represents a branch in a tree rather than an end-node. Summary entities are used for reporting and do not have own values.',200221,'IsSummary','N',1,'N','N','Y','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:40:38','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:40:38','YYYY-MM-DD HH24:MI:SS'),100,416,'Y','Y','D','N','N','N','Y','30f402c7-8b4e-43ce-87d1-9251782be4d3','Y',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:41:19 PM IST
|
||||
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) VALUES (213072,0,'Menu','Identifies a Menu','The Menu identifies a unique Menu. Menus are used to control the display of those screens a user has access to.',200221,'AD_Menu_ID',10,'N','Y','N','N','N',0,'N',19,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:41:18','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:41:18','YYYY-MM-DD HH24:MI:SS'),100,110,'N','Y','D','N','N','N','Y','e5112a1f-260d-4d3d-931e-add3cb91bd08','Y',0,'N','N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:41:52 PM IST
|
||||
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) VALUES (213073,0,'Sequence','Method of ordering records; lowest number comes first','The Sequence indicates the order of records',200221,'SeqNo',22,'N','N','Y','N','N',0,'N',11,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:41:51','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:41:51','YYYY-MM-DD HH24:MI:SS'),100,566,'Y','N','D','N','N','N','Y','44bb0318-34c7-40fd-99cc-f393e4f27819','Y',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:42:29 PM IST
|
||||
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) VALUES (213074,0,'Collapsible','Flag to indicate the state of the dashboard panel','Flag to indicate the state of the dashboard panel (i.e. collapsible or static)',200221,'IsCollapsible','Y',1,'N','N','Y','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:42:28','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:42:28','YYYY-MM-DD HH24:MI:SS'),100,53715,'Y','N','D','N','N','N','Y','5c53a75f-8ffb-41c7-a463-c7103eee18f3','Y',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:44:53 PM IST
|
||||
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) VALUES (213075,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.',200221,'Name',120,'N','N','N','N','Y',0,'N',10,0,0,'Y',TO_TIMESTAMP('2017-06-07 17:44:52','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:44:52','YYYY-MM-DD HH24:MI:SS'),100,469,'Y','Y','D','N','N','N','Y','7ca11262-ac52-44f9-aa10-839ddea6e92a','Y',0,'N','N')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:54:31 PM IST
|
||||
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','Start With Expanded',0,0,'Y',TO_TIMESTAMP('2017-06-07 17:54:30','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:54:30','YYYY-MM-DD HH24:MI:SS'),100,200417,'StartWithExpanded','D','0f0c4535-582e-47ca-850d-3526a5cac5b5')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:56:09 PM IST
|
||||
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','Start With Collapsed',0,0,'Y',TO_TIMESTAMP('2017-06-07 17:56:08','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:56:08','YYYY-MM-DD HH24:MI:SS'),100,200418,'StartWithCollapsed','D','a9572f15-a0a3-431b-869d-5251893457d3')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:56:55 PM IST
|
||||
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','Add Root',0,0,'Y',TO_TIMESTAMP('2017-06-07 17:56:54','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:56:54','YYYY-MM-DD HH24:MI:SS'),100,200419,'AddAsRoot','D','afff706d-1680-4abd-b051-99557ad2b56e')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 5:57:37 PM IST
|
||||
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','Add a folder to Favorite Tree',0,0,'Y',TO_TIMESTAMP('2017-06-07 17:57:35','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 17:57:35','YYYY-MM-DD HH24:MI:SS'),100,200420,'AddFolderFavTree','D','e19815e6-2830-469d-ab52-2c682cb3fdf1')
|
||||
;
|
||||
|
||||
-- Jun 7, 2017 6:03:16 PM IST
|
||||
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 ('E','Could not create Node.',0,0,'Y',TO_TIMESTAMP('2017-06-07 18:03:15','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-07 18:03:15','YYYY-MM-DD HH24:MI:SS'),100,200421,'NodeNotCreate','D','4a212f59-33f2-4317-a1e7-9ca3d3cdaf6f')
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 12:55:53 PM IST
|
||||
UPDATE AD_Column SET IsUpdateable='N', FKConstraintName='ADMenu_ADTreeFavoriteNode', FKConstraintType='N',Updated=TO_TIMESTAMP('2017-06-12 12:55:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213072
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 12:55:53 PM IST
|
||||
UPDATE AD_Column SET IsUpdateable='N', FKConstraintName='ADTreeFavorite_ADTreeFavoriteN', FKConstraintType='N',Updated=TO_TIMESTAMP('2017-06-12 12:55:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213069
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 12:55:53 PM IST
|
||||
CREATE TABLE AD_Tree_Favorite_Node (AD_Client_ID NUMERIC(10) NOT NULL, AD_Menu_ID NUMERIC(10) DEFAULT NULL , AD_Org_ID NUMERIC(10) NOT NULL, AD_Tree_Favorite_ID NUMERIC(10) NOT NULL, AD_Tree_Favorite_Node_ID NUMERIC(10) NOT NULL, AD_Tree_Favorite_Node_UU VARCHAR(36) DEFAULT NULL , Created TIMESTAMP DEFAULT statement_timestamp() NOT NULL, CreatedBy NUMERIC(10) NOT NULL, IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, IsCollapsible CHAR(1) DEFAULT 'Y' CHECK (IsCollapsible IN ('Y','N')) NOT NULL, IsSummary CHAR(1) DEFAULT 'N' CHECK (IsSummary IN ('Y','N')) NOT NULL, Name VARCHAR(120) DEFAULT NULL , Parent_ID NUMERIC(10) DEFAULT NULL , SeqNo NUMERIC(10) NOT NULL, Updated TIMESTAMP DEFAULT statement_timestamp() NOT NULL, UpdatedBy NUMERIC(10) NOT NULL, CONSTRAINT AD_Tree_Favorite_Node_Key PRIMARY KEY (AD_Tree_Favorite_Node_ID), CONSTRAINT AD_Tree_Favorite_Node_UU_idx UNIQUE (AD_Tree_Favorite_Node_UU))
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 12:55:54 PM IST
|
||||
ALTER TABLE AD_Tree_Favorite_Node ADD CONSTRAINT ADMenu_ADTreeFavoriteNode FOREIGN KEY (AD_Menu_ID) REFERENCES ad_menu(ad_menu_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 12:55:54 PM IST
|
||||
ALTER TABLE AD_Tree_Favorite_Node ADD CONSTRAINT ADTreeFavorite_ADTreeFavoriteN FOREIGN KEY (AD_Tree_Favorite_ID) REFERENCES ad_tree_favorite(ad_tree_favorite_id) DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 1:13:43 PM IST
|
||||
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 ('E','Could not create Favorite Tree.',0,0,'Y',TO_TIMESTAMP('2017-06-12 13:13:41','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-12 13:13:41','YYYY-MM-DD HH24:MI:SS'),100,200423,'FavTreeNotCreate','D','6270a5e3-fb23-4cb2-9616-1cdf34833551')
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 1:22:04 PM IST
|
||||
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 ('E','Please drag an item from a menu.',0,0,'Y',TO_TIMESTAMP('2017-06-12 13:22:03','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-12 13:22:03','YYYY-MM-DD HH24:MI:SS'),100,200424,'DragItemMenu','D','8b3ed4ca-6cee-4b8c-a0b3-1664ce31dedc')
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 6:31:02 PM IST
|
||||
INSERT INTO AD_Reference (AD_Reference_ID,Name,ValidationType,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,IsOrderByValue,AD_Reference_UU) VALUES (200137,'AD_Tree_Favorite_Node list','T',0,0,'Y',TO_TIMESTAMP('2017-06-12 18:31:00','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-12 18:31:00','YYYY-MM-DD HH24:MI:SS'),100,'D','N','47f185a4-37d5-426e-b386-8fabc0f0f49d')
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 6:31:54 PM IST
|
||||
INSERT INTO AD_Ref_Table (AD_Reference_ID,AD_Table_ID,AD_Key,AD_Display,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsValueDisplayed,EntityType,AD_Ref_Table_UU) VALUES (200137,200221,213067,213067,0,0,'Y',TO_TIMESTAMP('2017-06-12 18:31:54','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-12 18:31:54','YYYY-MM-DD HH24:MI:SS'),100,'N','D','aa2ae14c-2b0f-43e3-84bb-eac6d3aa2c5d')
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 6:35:17 PM IST
|
||||
UPDATE AD_Column SET AD_Reference_ID=18, AD_Reference_Value_ID=200137, FKConstraintType='C',Updated=TO_TIMESTAMP('2017-06-12 18:35:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213070
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 6:38:26 PM IST
|
||||
UPDATE AD_Column SET FKConstraintName='Parent_ADTreeFavoriteNode', FKConstraintType='C',Updated=TO_TIMESTAMP('2017-06-12 18:38:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=213070
|
||||
;
|
||||
|
||||
-- Jun 12, 2017 6:38:26 PM IST
|
||||
ALTER TABLE AD_Tree_Favorite_Node ADD CONSTRAINT Parent_ADTreeFavoriteNode FOREIGN KEY (Parent_ID) REFERENCES ad_tree_favorite_node(ad_tree_favorite_node_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED
|
||||
;
|
||||
|
||||
-- Jun 13, 2017 12:22:06 PM IST
|
||||
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','Edit Folder',0,0,'Y',TO_TIMESTAMP('2017-06-13 12:22:05','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2017-06-13 12:22:05','YYYY-MM-DD HH24:MI:SS'),100,200425,'EditFolder','D','651947f5-cce5-4ce9-8b59-7d1859f734e1')
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201706131200_IDEMPIERE-3340.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,575 @@
|
|||
-- Oct 27, 2020, 1:09:51 PM IST
|
||||
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 (214329,0,'Favourite','This record is a favourite',200221,'IsFavourite','N',1,'N','N','Y','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2020-10-27 13:09:50','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:09:50','YYYY-MM-DD HH24:MI:SS'),100,202958,'Y','N','D','N','N','N','Y','708ea949-31bc-4f53-8dba-12877cc92d14','Y',0,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:09:53 PM IST
|
||||
ALTER TABLE AD_Tree_Favorite_Node ADD COLUMN IsFavourite CHAR(1) DEFAULT 'N' CHECK (IsFavourite IN ('Y','N')) NOT NULL
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:10:41 PM IST
|
||||
INSERT INTO AD_Column (AD_Column_ID,Version,Name,Description,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 (214330,0,'Login automatic open sequence','Determine the order items will be automatically opened when user logs in',200221,'LoginOpenSeqNo',10,'N','N','N','N','N',0,'N',11,0,0,'Y',TO_TIMESTAMP('2020-10-27 13:10:40','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:10:40','YYYY-MM-DD HH24:MI:SS'),100,202959,'Y','N','D','N','N','N','Y','011087cb-d674-410d-80dc-aed66be6c9e7','Y',0,'N','N','N','N')
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:10:42 PM IST
|
||||
ALTER TABLE AD_Tree_Favorite_Node ADD COLUMN LoginOpenSeqNo NUMERIC(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:12:22 PM IST
|
||||
INSERT INTO AD_Window (AD_Window_ID,Name,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,WindowType,Processing,EntityType,IsSOTrx,IsDefault,WinHeight,WinWidth,IsBetaFunctionality,AD_Window_UU) VALUES (200111,'Menu user favourites',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:12:21','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:12:21','YYYY-MM-DD HH24:MI:SS'),100,'M','N','D','Y','N',0,0,'N','349d39cf-af9c-4fbe-81d8-3b295dc9f27b')
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:14:26 PM IST
|
||||
INSERT INTO AD_Tab (AD_Tab_ID,Name,Description,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 (200282,'Menu user tree entries','In this tab, you will be able to manage user and role wise favorite tree reference. ',200111,10,'N',200220,0,0,'Y',TO_TIMESTAMP('2020-10-27 13:14:25','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:14:25','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','N','N','N',0,'N','D','Y','N','768d15d3-e60d-4074-ad47-8d632111ae4e','B','N','Y',0)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:14:55 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (206522,'Client','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',200282,213049,'Y',22,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:14:54','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:14:54','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','20f2b60f-ed58-49ed-9c8d-f256bb772e9a','N',2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:14:55 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsAllowCopy,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206523,'Organization','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200282,213050,'Y',22,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:14:55','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:14:55','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','a0bc8024-f2aa-47d2-ab16-e01d09d46639','Y','Y',10,4,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:14:56 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206524,'User/Contact','User within the system - Internal or Business Partner Contact','The User identifies a unique user in the system. This could be an internal user or a business partner contact',200282,213058,'Y',22,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:14:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:14:56','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','422b6a7d-fc62-437f-8be6-11e78eb1fb21','Y',20,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:14:57 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (206525,'Favorite Tree',200282,213056,'N',22,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:14:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:14:56','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','46f335ae-8aca-4167-b011-3f3f64ededc0','N',2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:14:57 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206526,'Favorite Tree',200282,213057,'Y',36,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:14:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:14:57','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f65e13bc-742b-4e90-820b-c5c750dae66b','Y',30,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:15:00 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206528,'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.',200282,213053,'Y',1,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:14:59','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:14:59','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','521637bc-19e5-4236-9093-d223f19d28a9','Y',50,2,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:15:37 PM IST
|
||||
UPDATE AD_Field SET SeqNo=50, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2020-10-27 13:15:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206526
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:15:37 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=5, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2020-10-27 13:15:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206528
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:15:37 PM IST
|
||||
UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2020-10-27 13:15:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206525
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:35 PM IST
|
||||
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,Parent_Column_ID,AD_Tab_UU,IsLookupOnlySelection,IsAllowAdvancedLookup,MaxQueryRecords) VALUES (200283,'Menu user tree node',200111,20,'N',200221,0,0,'Y',TO_TIMESTAMP('2020-10-27 13:18:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:18:34','YYYY-MM-DD HH24:MI:SS'),100,'N','N','N','Y','N','N',1,'N','D','N','N',213056,'cbd7fc14-c206-4cb0-a827-168fb792f470','N','Y',0)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:47 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (206529,'Client','Client/Tenant for this installation.','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',200283,213060,'Y',22,10,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:18:46','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:18:46','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f0b86ed8-7b7e-4278-8aa0-4f4bb16fc0fc','N',2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:48 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsAllowCopy,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206530,'Organization','Organizational entity within client','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',200283,213061,'Y',22,20,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:18:47','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:18:47','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f12031fe-075c-4848-a880-d7a582857e54','Y','Y',10,4,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:48 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206531,'Favorite Tree',200283,213069,'Y',22,30,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:18:48','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:18:48','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','db41ef17-3eb3-43d2-a149-1bb61a810619','Y',20,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:49 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206532,'Menu','Identifies a Menu','The Menu identifies a unique Menu. Menus are used to control the display of those screens a user has access to.',200283,213072,'Y',10,40,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:18:48','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:18:48','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','c7ef010b-f045-4ee3-a2bc-4ec6bddd4d76','Y',30,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:51 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206533,'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.',200283,213075,'Y',120,50,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:18:49','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:18:49','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','822ea6ba-2e63-4f41-a8ff-38dd61586e03','Y',40,5)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:52 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,ColumnSpan) VALUES (206534,'Favorite Node Tree',200283,213067,'N',22,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:18:51','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:18:51','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','7fc05af5-1916-4d07-a5ef-36e9494b2ca6','N',2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:52 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206535,'Favorite Node Tree',200283,213068,'Y',36,60,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:18:52','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:18:52','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','f2348f88-0c43-484f-8ab7-a4309b6d5b41','Y',50,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:53 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206536,'Parent','Parent of Entity','The Parent indicates the value used to represent the next level in a hierarchy or report to level for a record',200283,213070,'Y',10,70,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:18:52','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:18:52','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','38cbaac4-c899-43aa-bdc7-1b6a440f7cfb','Y',60,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:54 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206537,'Summary Level','This is a summary entity','A summary entity represents a branch in a tree rather than an end-node. Summary entities are used for reporting and do not have own values.',200283,213071,'Y',1,80,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:18:53','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:18:53','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','9f36b258-b1c9-4240-b2f8-43374a9bfdf7','Y',70,2,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:55 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206538,'Sequence','Method of ordering records; lowest number comes first','The Sequence indicates the order of records',200283,213073,'Y',22,90,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:18:54','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:18:54','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','69126a11-32e9-4c12-9333-de17e44a870e','Y',80,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:55 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206539,'Collapsible','Flag to indicate the state of the dashboard panel','Flag to indicate the state of the dashboard panel (i.e. collapsible or static)',200283,213074,'Y',1,100,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:18:55','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:18:55','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','ebf3e753-4775-4f37-b3fb-7697c0463963','Y',90,2,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:56 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206540,'Favourite','This record is a favourite',200283,214329,'Y',1,110,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:18:55','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:18:55','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','25793ae9-b08a-44cf-b3f4-a00cd2fbf0b5','Y',100,2,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:57 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,ColumnSpan) VALUES (206541,'Login automatic open sequence','Determine the order items will be automatically opened when user logs in',200283,214330,'Y',10,120,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:18:56','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:18:56','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','e655d21c-470e-4e25-9ea4-c87482922324','Y',110,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:18:59 PM IST
|
||||
INSERT INTO AD_Field (AD_Field_ID,Name,Description,Help,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLength,SeqNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan) VALUES (206542,'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.',200283,213064,'Y',1,130,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2020-10-27 13:18:57','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:18:57','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','D','05e112f8-121f-4364-9ec2-e43730bf8f13','Y',120,2,2)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=5, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206542
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET SeqNo=50, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206532
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=60, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=4, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206536
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET SeqNo=70, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206533
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET SeqNo=80, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206535
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=90, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=5, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206539
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET SeqNo=100, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206538
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=110, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=5, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206540
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=130, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=5, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206537
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:21:09 PM IST
|
||||
UPDATE AD_Field SET SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2020-10-27 13:21:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206534
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:22:27 PM IST
|
||||
UPDATE AD_Tab SET IsReadOnly='Y', IsInsertRecord='N',Updated=TO_TIMESTAMP('2020-10-27 13:22:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200282
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:25:50 PM IST
|
||||
INSERT INTO AD_Menu (AD_Menu_ID,Name,Description,"action",AD_Window_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSummary,IsSOTrx,IsReadOnly,EntityType,IsCentrallyMaintained,AD_Menu_UU) VALUES (200175,'Menu user favourites','User favourites menu','W',200111,0,0,'Y',TO_TIMESTAMP('2020-10-27 13:25:49','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-10-27 13:25:49','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','D','Y','9b0c1e47-4fae-4cbd-80d5-66119ca4ed94')
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:25:50 PM IST
|
||||
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, 200175, 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=200175)
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=218
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=153
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=263
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=166
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=203
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53242
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=236
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=183
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=160
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=278
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=345
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53296
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53014
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=53108
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=0, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=334
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=1, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=498
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=2, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=224
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=3, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=145
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=4, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=336
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=5, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=341
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=6, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=144
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=7, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=170
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=8, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=465
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=9, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200137
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=10, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200175
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=11, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=101
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=12, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=294
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=13, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=395
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=14, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=296
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=15, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=221
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=16, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=233
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=17, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=290
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=18, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=109
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=19, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=200093
|
||||
;
|
||||
|
||||
-- Oct 27, 2020, 1:26:37 PM IST
|
||||
UPDATE AD_TreeNodeMM SET Parent_ID=161, SeqNo=20, Updated=statement_timestamp() WHERE AD_Tree_ID=10 AND Node_ID=50008
|
||||
;
|
||||
|
||||
|
||||
|
||||
-- Oct 28, 2020, 5:08:25 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=50, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2020-10-28 17:08:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206525
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:08:25 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2020-10-28 17:08:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206526
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:09:44 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=40, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=4, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2020-10-28 17:09:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206534
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:09:44 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='Y', SeqNo=80, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=2, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2020-10-28 17:09:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206542
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:09:44 PM IST
|
||||
UPDATE AD_Field SET IsDisplayed='N', SeqNo=0, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, XPosition=1, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2020-10-28 17:09:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=206535
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:10:22 PM IST
|
||||
UPDATE AD_Tab SET Name='Favorite tree node',Updated=TO_TIMESTAMP('2020-10-28 17:10:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200283
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:11:56 PM IST
|
||||
UPDATE AD_Tab SET Name='User favourite tree', Description='In this tab, you can see to manage user and role wise favourite tree references',Updated=TO_TIMESTAMP('2020-10-28 17:11:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=200282
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:17 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206526
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:17 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206522
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:17 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206523
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:17 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206525
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:17 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206524
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:17 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206528
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=0,IsDisplayedGrid='N', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206535
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=10,IsDisplayedGrid='Y', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206529
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=20,IsDisplayedGrid='Y', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206530
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206531
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206534
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206532
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206533
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206536
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206537
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206538
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206539
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206540
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206541
|
||||
;
|
||||
|
||||
-- Oct 28, 2020, 5:20:55 PM IST
|
||||
UPDATE AD_Field SET SeqNoGrid=130,IsDisplayedGrid='Y', Updated=statement_timestamp(), UpdatedBy=100 WHERE AD_Field_ID=206542
|
||||
;
|
||||
|
||||
-- IDEMPIERE-3340 InActive existing AD_TreeBar table
|
||||
-- Oct 30, 2020, 11:37:24 AM IST
|
||||
UPDATE AD_Table SET IsActive='N',Updated=TO_TIMESTAMP('2020-10-30 11:37:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=456
|
||||
;
|
||||
|
||||
-- Oct 30, 2020, 11:37:39 AM IST
|
||||
UPDATE AD_Window SET IsActive='N',Updated=TO_TIMESTAMP('2020-10-30 11:37:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=200083
|
||||
;
|
||||
|
||||
-- Oct 30, 2020, 11:37:39 AM IST
|
||||
UPDATE AD_Menu SET Name='Menu favourites', Description=NULL, IsActive='N',Updated=TO_TIMESTAMP('2020-10-30 11:37:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=200137
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 2:50:20 PM IST
|
||||
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','Add Folder',0,0,'Y',TO_TIMESTAMP('2020-11-09 14:50:12','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-11-09 14:50:12','YYYY-MM-DD HH24:MI:SS'),100,200650,'AddFolder','D','e49ac96b-cf5d-46ce-b27e-8f4da369f2b8')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 6:30:52 PM IST
|
||||
UPDATE AD_Message SET MsgText='Default Collapsed', Value='DefaultCollapsed',Updated=TO_TIMESTAMP('2020-11-09 18:30:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=200418
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 6:31:06 PM IST
|
||||
UPDATE AD_Message SET MsgText='Default Expanded', Value='DefaultExpanded',Updated=TO_TIMESTAMP('2020-11-09 18:31:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=200417
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:16:01 PM IST
|
||||
INSERT INTO AD_Tree_Favorite (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_ID,AD_Tree_Favorite_UU,AD_User_ID) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:16:00','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2020-11-09 22:16:00','YYYY-MM-DD HH24:MI:SS'),0,200000,'5b06f461-d7a0-4a66-917b-5951b263d8bc',0)
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:16:18 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:16:17','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2020-11-09 22:16:17','YYYY-MM-DD HH24:MI:SS'),0,200000,'58f11238-97f7-423e-b0e8-0a95c34aad8d',200000,'N',139,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:18:42 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:18:41','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2020-11-09 22:18:41','YYYY-MM-DD HH24:MI:SS'),0,200001,'f91f4930-e3cb-45f9-9f0f-ae3f0923aa5a',200000,'N',143,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:19:36 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:19:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2020-11-09 22:19:34','YYYY-MM-DD HH24:MI:SS'),0,200002,'92edf19d-3cdf-47e4-89ef-8dac845ded41',200000,'N',141,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:19:46 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:19:44','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2020-11-09 22:19:44','YYYY-MM-DD HH24:MI:SS'),0,200003,'530c486b-8911-4ec4-8880-31e2dddae41e',200000,'N',138,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:19:58 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:19:57','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2020-11-09 22:19:57','YYYY-MM-DD HH24:MI:SS'),0,200004,'1b44d547-bc25-417c-8cf5-f2b3147dfe45',200000,'N',140,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:20:02 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:20:01','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2020-11-09 22:20:01','YYYY-MM-DD HH24:MI:SS'),0,200005,'6bf41fe9-2830-4285-a8c4-08df7b6ac500',200000,'N',176,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:20:17 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:20:15','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2020-11-09 22:20:15','YYYY-MM-DD HH24:MI:SS'),0,200006,'678a1e18-1132-414f-9d55-95c8dbb2b8c3',200000,'N',495,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:23:00 PM IST
|
||||
INSERT INTO AD_Tree_Favorite (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_ID,AD_Tree_Favorite_UU,AD_User_ID) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:23:00','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2020-11-09 22:23:00','YYYY-MM-DD HH24:MI:SS'),100,200001,'c6908596-2445-4ddf-923c-d57d07172190',100)
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:23:10 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:23:09','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2020-11-09 22:23:09','YYYY-MM-DD HH24:MI:SS'),100,200007,'fb8dd799-4957-4f19-8cda-41c73163ff5c',200001,'N',139,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:23:23 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:23:22','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2020-11-09 22:23:22','YYYY-MM-DD HH24:MI:SS'),100,200008,'d66030a2-62a5-4c99-84a9-6cb7cbf4571a',200001,'N',141,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:23:35 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:23:34','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2020-11-09 22:23:34','YYYY-MM-DD HH24:MI:SS'),100,200009,'f1a43868-ac62-48ab-a9ec-bbc6ec24c2d3',200001,'N',140,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:23:47 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:23:46','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2020-11-09 22:23:46','YYYY-MM-DD HH24:MI:SS'),100,200010,'2779913f-5f12-48ef-bcb3-b4e533dc3c85',200001,'N',143,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:24:14 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:24:13','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2020-11-09 22:24:13','YYYY-MM-DD HH24:MI:SS'),100,200011,'c88e5852-c44e-48f8-a1a1-723bcacdd7b0',200001,'N',176,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:24:23 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:24:22','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2020-11-09 22:24:22','YYYY-MM-DD HH24:MI:SS'),100,200012,'dd727797-acb3-41a5-9150-13f5f84abb56',200001,'N',138,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:24:28 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:24:27','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2020-11-09 22:24:27','YYYY-MM-DD HH24:MI:SS'),100,200013,'ccb030c2-3e69-4ff9-895e-6b6473f421fb',200001,'N',144,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:24:37 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:24:36','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2020-11-09 22:24:36','YYYY-MM-DD HH24:MI:SS'),100,200014,'9673365f-7e29-415f-a7c0-93ce248a99c5',200001,'N',50008,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:24:47 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:24:45','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2020-11-09 22:24:45','YYYY-MM-DD HH24:MI:SS'),100,200015,'371187f4-ba54-44e7-8dfb-ce367d513034',200001,'N',200022,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:24:57 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (0,0,TO_TIMESTAMP('2020-11-09 22:24:56','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2020-11-09 22:24:56','YYYY-MM-DD HH24:MI:SS'),100,200016,'12920433-60c4-43cf-810d-93ba5fe7f4cc',200001,'N',383,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:28:51 PM IST
|
||||
INSERT INTO AD_Tree_Favorite (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_ID,AD_Tree_Favorite_UU,AD_User_ID) VALUES (11,0,TO_TIMESTAMP('2020-11-09 22:28:50','YYYY-MM-DD HH24:MI:SS'),101,'Y',TO_TIMESTAMP('2020-11-09 22:28:50','YYYY-MM-DD HH24:MI:SS'),101,200002,'499eb45d-a86c-4928-9693-4459284362e9',101)
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:28:54 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (11,0,TO_TIMESTAMP('2020-11-09 22:28:54','YYYY-MM-DD HH24:MI:SS'),101,'Y',TO_TIMESTAMP('2020-11-09 22:28:54','YYYY-MM-DD HH24:MI:SS'),101,200017,'e1bee68a-f3c5-4295-ab84-466a2b41d8b5',200002,'N',129,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:29:01 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (11,0,TO_TIMESTAMP('2020-11-09 22:29:00','YYYY-MM-DD HH24:MI:SS'),101,'Y',TO_TIMESTAMP('2020-11-09 22:29:00','YYYY-MM-DD HH24:MI:SS'),101,200018,'a3402da1-78ff-4c7c-b3c4-cc1bf56b8bb2',200002,'N',110,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:29:11 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (11,0,TO_TIMESTAMP('2020-11-09 22:29:10','YYYY-MM-DD HH24:MI:SS'),101,'Y',TO_TIMESTAMP('2020-11-09 22:29:10','YYYY-MM-DD HH24:MI:SS'),101,200019,'34491aef-871a-43cb-971d-b014e64f4464',200002,'N',126,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:30:13 PM IST
|
||||
INSERT INTO AD_Tree_Favorite (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_ID,AD_Tree_Favorite_UU,AD_User_ID) VALUES (11,11,TO_TIMESTAMP('2020-11-09 22:30:12','YYYY-MM-DD HH24:MI:SS'),102,'Y',TO_TIMESTAMP('2020-11-09 22:30:12','YYYY-MM-DD HH24:MI:SS'),102,200003,'83ea3b9e-ba2e-4ec0-b08c-9f88733eb070',102)
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:30:17 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (11,11,TO_TIMESTAMP('2020-11-09 22:30:16','YYYY-MM-DD HH24:MI:SS'),102,'Y',TO_TIMESTAMP('2020-11-09 22:30:16','YYYY-MM-DD HH24:MI:SS'),102,200020,'8400f944-d7d3-4a6f-96d2-612b84d5d9c0',200003,'N',129,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:59:30 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (11,0,TO_TIMESTAMP('2020-11-09 22:59:28','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2020-11-09 22:59:28','YYYY-MM-DD HH24:MI:SS'),100,200021,'2ec4e36c-9749-41d4-8b97-8e69a2bc39e1',200001,'N',129,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:59:37 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (11,0,TO_TIMESTAMP('2020-11-09 22:59:36','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2020-11-09 22:59:36','YYYY-MM-DD HH24:MI:SS'),100,200022,'08dd130d-403b-464b-be39-60a22414d46f',200001,'N',110,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 9, 2020, 10:59:49 PM IST
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy,AD_Tree_Favorite_Node_ID,AD_Tree_Favorite_Node_UU,AD_Tree_Favorite_ID,IsSummary,AD_Menu_ID,SeqNo,IsCollapsible,IsFavourite) VALUES (11,0,TO_TIMESTAMP('2020-11-09 22:59:48','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2020-11-09 22:59:48','YYYY-MM-DD HH24:MI:SS'),100,200023,'99f0d2ce-2e5e-43b4-be3a-41fe4554f5f7',200001,'N',126,0,'Y','Y')
|
||||
;
|
||||
|
||||
-- Nov 10, 2020, 1:14:16 PM IST
|
||||
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','Current folder selected',0,0,'Y',TO_TIMESTAMP('2020-11-10 13:14:15','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-11-10 13:14:15','YYYY-MM-DD HH24:MI:SS'),100,200652,'CurrentFolderSelected','D','7a7df360-8175-4fe2-a729-77a526582cd2')
|
||||
;
|
||||
|
||||
-- Nov 24, 2020, 2:31:59 PM IST
|
||||
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','Automatic Launch','Automatic launch menu item immediate after login.',0,0,'Y',TO_TIMESTAMP('2020-11-24 14:31:58','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-11-24 14:31:58','YYYY-MM-DD HH24:MI:SS'),100,200653,'AutoLaunch','D','12498d10-b5c4-43ad-943b-009d50aeec6c')
|
||||
;
|
||||
|
||||
SELECT register_migration_script('202010281900_IDEMPIERE-3340.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,22 @@
|
|||
-- Postgresql Data Migration from AD_TreeBar to AD_Tree_Favorite and AD_Tree_Favorite_Node table
|
||||
-- Insert TreeBar data to Tree Favorite
|
||||
INSERT INTO AD_Tree_Favorite (AD_Tree_Favorite_ID, AD_Client_ID, AD_Org_ID, AD_User_ID, Created, CreatedBy, Updated, UpdatedBy, AD_Tree_Favorite_UU)
|
||||
SELECT (row_number() OVER (ORDER BY AD_Client_ID, AD_User_ID)) + 999999 AS AD_Tree_Favorite_ID, AD_Client_ID, 0, AD_User_ID, NOW(), 100, NOW(), 100, Generate_UUID()
|
||||
FROM AD_TreeBar
|
||||
WHERE AD_User_ID NOT IN (SELECT DISTINCT AD_User_ID FROM AD_Tree_Favorite)
|
||||
GROUP BY AD_Client_ID, AD_User_ID
|
||||
;
|
||||
|
||||
-- Insert TreeBar data to Tree Favorite Node
|
||||
INSERT INTO AD_Tree_Favorite_Node (AD_Client_ID, AD_Menu_ID, AD_Org_ID, AD_Tree_Favorite_ID, AD_Tree_Favorite_Node_ID,
|
||||
AD_Tree_Favorite_Node_UU, Created, CreatedBy, IsSummary, SeqNo, Updated, UpdatedBy, IsFavourite, LoginOpenSeqNo)
|
||||
SELECT AD_Client_ID, Node_ID, AD_Org_ID, (SELECT AD_Tree_Favorite_ID FROM AD_Tree_Favorite WHERE AD_Client_ID = tb.AD_Client_ID AND AD_User_ID=tb.AD_User_ID) AS AD_Tree_Favorite_ID,
|
||||
(row_number() OVER (ORDER BY AD_Client_ID, AD_User_ID)) + 999999 AD_Tree_Favorite_Node_ID,
|
||||
Generate_UUID(), NOW(), 100, 'N', 0, NOW(), 100, 'Y', LoginOpenSeqNo
|
||||
FROM AD_TreeBar tb
|
||||
WHERE (AD_Client_ID, AD_User_ID, Node_ID) NOT IN (SELECT DISTINCT tf.AD_Client_ID, tf.AD_User_ID, tfn.AD_Menu_ID FROM AD_Tree_Favorite tf INNER JOIN AD_Tree_Favorite_Node tfn ON (tfn.AD_Tree_Favorite_ID = tf.AD_Tree_Favorite_ID) AND tfn.AD_Menu_ID>0)
|
||||
ORDER BY AD_Client_ID, AD_User_ID
|
||||
;
|
||||
|
||||
SELECT register_migration_script('202011101100_IDEMPIERE-3340_MigrateData.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,31 @@
|
|||
-- IDEMPIERE-3340 Add tooltip messages
|
||||
-- Jan 18, 2021, 6:52:01 PM IST
|
||||
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','New folder added as in root level.',0,0,'Y',TO_TIMESTAMP('2021-01-18 18:52:00','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2021-01-18 18:52:00','YYYY-MM-DD HH24:MI:SS'),100,200656,'Tooltip_AddAsRoot','D','7bd7ffa8-5596-4c2e-a0c1-7062f0c8c3a1')
|
||||
;
|
||||
|
||||
-- Jan 18, 2021, 6:53:13 PM IST
|
||||
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','This flag is marked then folder default open with expanded view.',0,0,'Y',TO_TIMESTAMP('2021-01-18 18:53:12','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2021-01-18 18:53:12','YYYY-MM-DD HH24:MI:SS'),100,200657,'Tooltip_DefaultExpanded','D','57eb03cd-86ca-42a7-9a4a-0fd8c014e1f7')
|
||||
;
|
||||
|
||||
-- Jan 18, 2021, 6:56:38 PM IST
|
||||
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','Expand/Collapse Tree',0,0,'Y',TO_TIMESTAMP('2021-01-18 18:56:38','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2021-01-18 18:56:38','YYYY-MM-DD HH24:MI:SS'),100,200658,'Tooltip_ExpandCollapseTree','D','26463bcc-7a17-444c-aab4-51fda0fde442')
|
||||
;
|
||||
|
||||
-- May 7, 2020 7:15:41 PM IST
|
||||
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','Move Down',0,0,'Y',TO_TIMESTAMP('2020-05-07 19:15:40','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-05-07 19:15:40','YYYY-MM-DD HH24:MI:SS'),100,200608,'MoveDown','D','525bf4d4-5ce3-4a7d-9081-2e3b96708cf1')
|
||||
;
|
||||
|
||||
-- May 7, 2020 7:16:04 PM IST
|
||||
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','Move Up',0,0,'Y',TO_TIMESTAMP('2020-05-07 19:16:03','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-05-07 19:16:03','YYYY-MM-DD HH24:MI:SS'),100,200609,'MoveUp','D','bdf56785-ce50-49ce-a2c5-d20a1a08ec96')
|
||||
;
|
||||
|
||||
-- May 7, 2020 7:16:17 PM IST
|
||||
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','Move Left',0,0,'Y',TO_TIMESTAMP('2020-05-07 19:16:16','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-05-07 19:16:16','YYYY-MM-DD HH24:MI:SS'),100,200610,'MoveLeft','D','f0082f8f-7ecf-4682-9ee2-593b6b21fe41')
|
||||
;
|
||||
|
||||
-- May 7, 2020 7:16:31 PM IST
|
||||
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','Move Right',0,0,'Y',TO_TIMESTAMP('2020-05-07 19:16:30','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-05-07 19:16:30','YYYY-MM-DD HH24:MI:SS'),100,200611,'MoveRight','D','0d2f8a50-350d-43c5-9629-64c3a6ea88d1')
|
||||
;
|
||||
|
||||
SELECT register_migration_script('202101181900_IDEMPIERE-3340.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,142 @@
|
|||
/******************************************************************************
|
||||
* 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_Tree_Favorite
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 8.1
|
||||
*/
|
||||
public interface I_AD_Tree_Favorite
|
||||
{
|
||||
|
||||
/** TableName=AD_Tree_Favorite */
|
||||
public static final String Table_Name = "AD_Tree_Favorite";
|
||||
|
||||
/** AD_Table_ID=200220 */
|
||||
public static final int Table_ID = 200220;
|
||||
|
||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||
|
||||
/** AccessLevel = 7 - System - Client - Org
|
||||
*/
|
||||
BigDecimal accessLevel = BigDecimal.valueOf(7);
|
||||
|
||||
/** Load Meta Data */
|
||||
|
||||
/** Column name AD_Client_ID */
|
||||
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||
|
||||
/** Get Client.
|
||||
* Client/Tenant for this installation.
|
||||
*/
|
||||
public int getAD_Client_ID();
|
||||
|
||||
/** Column name AD_Org_ID */
|
||||
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||
|
||||
/** Set Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public void setAD_Org_ID (int AD_Org_ID);
|
||||
|
||||
/** Get Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public int getAD_Org_ID();
|
||||
|
||||
/** Column name AD_Tree_Favorite_ID */
|
||||
public static final String COLUMNNAME_AD_Tree_Favorite_ID = "AD_Tree_Favorite_ID";
|
||||
|
||||
/** Set Favorite Tree */
|
||||
public void setAD_Tree_Favorite_ID (int AD_Tree_Favorite_ID);
|
||||
|
||||
/** Get Favorite Tree */
|
||||
public int getAD_Tree_Favorite_ID();
|
||||
|
||||
/** Column name AD_Tree_Favorite_UU */
|
||||
public static final String COLUMNNAME_AD_Tree_Favorite_UU = "AD_Tree_Favorite_UU";
|
||||
|
||||
/** Set Favorite Tree */
|
||||
public void setAD_Tree_Favorite_UU (String AD_Tree_Favorite_UU);
|
||||
|
||||
/** Get Favorite Tree */
|
||||
public String getAD_Tree_Favorite_UU();
|
||||
|
||||
/** Column name AD_User_ID */
|
||||
public static final String COLUMNNAME_AD_User_ID = "AD_User_ID";
|
||||
|
||||
/** Set User/Contact.
|
||||
* User within the system - Internal or Business Partner Contact
|
||||
*/
|
||||
public void setAD_User_ID (int AD_User_ID);
|
||||
|
||||
/** Get User/Contact.
|
||||
* User within the system - Internal or Business Partner Contact
|
||||
*/
|
||||
public int getAD_User_ID();
|
||||
|
||||
public org.compiere.model.I_AD_User getAD_User() throws RuntimeException;
|
||||
|
||||
/** Column name Created */
|
||||
public static final String COLUMNNAME_Created = "Created";
|
||||
|
||||
/** Get Created.
|
||||
* Date this record was created
|
||||
*/
|
||||
public Timestamp getCreated();
|
||||
|
||||
/** Column name CreatedBy */
|
||||
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||
|
||||
/** Get Created By.
|
||||
* User who created this records
|
||||
*/
|
||||
public int getCreatedBy();
|
||||
|
||||
/** Column name IsActive */
|
||||
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||
|
||||
/** Set Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public void setIsActive (boolean IsActive);
|
||||
|
||||
/** Get Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public boolean isActive();
|
||||
|
||||
/** Column name 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,248 @@
|
|||
/******************************************************************************
|
||||
* 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_Tree_Favorite_Node
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 8.1
|
||||
*/
|
||||
public interface I_AD_Tree_Favorite_Node
|
||||
{
|
||||
|
||||
/** TableName=AD_Tree_Favorite_Node */
|
||||
public static final String Table_Name = "AD_Tree_Favorite_Node";
|
||||
|
||||
/** AD_Table_ID=200221 */
|
||||
public static final int Table_ID = 200221;
|
||||
|
||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||
|
||||
/** AccessLevel = 7 - System - Client - Org
|
||||
*/
|
||||
BigDecimal accessLevel = BigDecimal.valueOf(7);
|
||||
|
||||
/** Load Meta Data */
|
||||
|
||||
/** Column name AD_Client_ID */
|
||||
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||
|
||||
/** Get Client.
|
||||
* Client/Tenant for this installation.
|
||||
*/
|
||||
public int getAD_Client_ID();
|
||||
|
||||
/** Column name AD_Menu_ID */
|
||||
public static final String COLUMNNAME_AD_Menu_ID = "AD_Menu_ID";
|
||||
|
||||
/** Set Menu.
|
||||
* Identifies a Menu
|
||||
*/
|
||||
public void setAD_Menu_ID (int AD_Menu_ID);
|
||||
|
||||
/** Get Menu.
|
||||
* Identifies a Menu
|
||||
*/
|
||||
public int getAD_Menu_ID();
|
||||
|
||||
public org.compiere.model.I_AD_Menu getAD_Menu() throws RuntimeException;
|
||||
|
||||
/** Column name AD_Org_ID */
|
||||
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||
|
||||
/** Set Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public void setAD_Org_ID (int AD_Org_ID);
|
||||
|
||||
/** Get Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public int getAD_Org_ID();
|
||||
|
||||
/** Column name AD_Tree_Favorite_ID */
|
||||
public static final String COLUMNNAME_AD_Tree_Favorite_ID = "AD_Tree_Favorite_ID";
|
||||
|
||||
/** Set Favorite Tree */
|
||||
public void setAD_Tree_Favorite_ID (int AD_Tree_Favorite_ID);
|
||||
|
||||
/** Get Favorite Tree */
|
||||
public int getAD_Tree_Favorite_ID();
|
||||
|
||||
public org.compiere.model.I_AD_Tree_Favorite getAD_Tree_Favorite() throws RuntimeException;
|
||||
|
||||
/** Column name AD_Tree_Favorite_Node_ID */
|
||||
public static final String COLUMNNAME_AD_Tree_Favorite_Node_ID = "AD_Tree_Favorite_Node_ID";
|
||||
|
||||
/** Set Favorite Node Tree */
|
||||
public void setAD_Tree_Favorite_Node_ID (int AD_Tree_Favorite_Node_ID);
|
||||
|
||||
/** Get Favorite Node Tree */
|
||||
public int getAD_Tree_Favorite_Node_ID();
|
||||
|
||||
/** Column name AD_Tree_Favorite_Node_UU */
|
||||
public static final String COLUMNNAME_AD_Tree_Favorite_Node_UU = "AD_Tree_Favorite_Node_UU";
|
||||
|
||||
/** Set Favorite Node Tree */
|
||||
public void setAD_Tree_Favorite_Node_UU (String AD_Tree_Favorite_Node_UU);
|
||||
|
||||
/** Get Favorite Node Tree */
|
||||
public String getAD_Tree_Favorite_Node_UU();
|
||||
|
||||
/** Column name Created */
|
||||
public static final String COLUMNNAME_Created = "Created";
|
||||
|
||||
/** Get Created.
|
||||
* Date this record was created
|
||||
*/
|
||||
public Timestamp getCreated();
|
||||
|
||||
/** Column name CreatedBy */
|
||||
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||
|
||||
/** Get Created By.
|
||||
* User who created this records
|
||||
*/
|
||||
public int getCreatedBy();
|
||||
|
||||
/** Column name IsActive */
|
||||
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||
|
||||
/** Set Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public void setIsActive (boolean IsActive);
|
||||
|
||||
/** Get Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public boolean isActive();
|
||||
|
||||
/** Column name IsCollapsible */
|
||||
public static final String COLUMNNAME_IsCollapsible = "IsCollapsible";
|
||||
|
||||
/** Set Collapsible.
|
||||
* Flag to indicate the state of the dashboard panel
|
||||
*/
|
||||
public void setIsCollapsible (boolean IsCollapsible);
|
||||
|
||||
/** Get Collapsible.
|
||||
* Flag to indicate the state of the dashboard panel
|
||||
*/
|
||||
public boolean isCollapsible();
|
||||
|
||||
/** Column name IsFavourite */
|
||||
public static final String COLUMNNAME_IsFavourite = "IsFavourite";
|
||||
|
||||
/** Set Favourite.
|
||||
* This record is a favourite
|
||||
*/
|
||||
public void setIsFavourite (boolean IsFavourite);
|
||||
|
||||
/** Get Favourite.
|
||||
* This record is a favourite
|
||||
*/
|
||||
public boolean isFavourite();
|
||||
|
||||
/** Column name IsSummary */
|
||||
public static final String COLUMNNAME_IsSummary = "IsSummary";
|
||||
|
||||
/** Set Summary Level.
|
||||
* This is a summary entity
|
||||
*/
|
||||
public void setIsSummary (boolean IsSummary);
|
||||
|
||||
/** Get Summary Level.
|
||||
* This is a summary entity
|
||||
*/
|
||||
public boolean isSummary();
|
||||
|
||||
/** Column name LoginOpenSeqNo */
|
||||
public static final String COLUMNNAME_LoginOpenSeqNo = "LoginOpenSeqNo";
|
||||
|
||||
/** Set Login automatic open sequence.
|
||||
* Determine the order items will be automatically opened when user logs in
|
||||
*/
|
||||
public void setLoginOpenSeqNo (int LoginOpenSeqNo);
|
||||
|
||||
/** Get Login automatic open sequence.
|
||||
* Determine the order items will be automatically opened when user logs in
|
||||
*/
|
||||
public int getLoginOpenSeqNo();
|
||||
|
||||
/** 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 Parent_ID */
|
||||
public static final String COLUMNNAME_Parent_ID = "Parent_ID";
|
||||
|
||||
/** Set Parent.
|
||||
* Parent of Entity
|
||||
*/
|
||||
public void setParent_ID (int Parent_ID);
|
||||
|
||||
/** Get Parent.
|
||||
* Parent of Entity
|
||||
*/
|
||||
public int getParent_ID();
|
||||
|
||||
public org.compiere.model.I_AD_Tree_Favorite_Node getParent() throws RuntimeException;
|
||||
|
||||
/** Column name SeqNo */
|
||||
public static final String COLUMNNAME_SeqNo = "SeqNo";
|
||||
|
||||
/** Set Sequence.
|
||||
* Method of ordering records;
|
||||
lowest number comes first
|
||||
*/
|
||||
public void setSeqNo (int SeqNo);
|
||||
|
||||
/** Get Sequence.
|
||||
* Method of ordering records;
|
||||
lowest number comes first
|
||||
*/
|
||||
public int getSeqNo();
|
||||
|
||||
/** 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,8 +22,12 @@ import java.sql.SQLException;
|
|||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
import org.idempiere.cache.ImmutableIntPOCache;
|
||||
import org.idempiere.cache.ImmutablePOSupport;
|
||||
|
||||
/**
|
||||
* Menu Model
|
||||
|
@ -34,13 +38,66 @@ import org.compiere.util.DB;
|
|||
* @author red1 - FR: [ 2214883 ] Remove SQL code and Replace for Query
|
||||
* @version $Id: MMenu.java,v 1.3 2006/07/30 00:58:18 jjanke Exp $
|
||||
*/
|
||||
public class MMenu extends X_AD_Menu
|
||||
public class MMenu extends X_AD_Menu implements ImmutablePOSupport
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -6671861281736697100L;
|
||||
private static final long serialVersionUID = 5999216946208895291L;
|
||||
|
||||
/** Cache */
|
||||
private static ImmutableIntPOCache<Integer, MMenu> s_cache = new ImmutableIntPOCache<Integer, MMenu>(Table_Name, 50);
|
||||
|
||||
/**
|
||||
* Get Menu method from cache
|
||||
*
|
||||
* @param AD_Menu_ID menu id
|
||||
*/
|
||||
public static MMenu get(int AD_Menu_ID)
|
||||
{
|
||||
return get(Env.getCtx(), AD_Menu_ID);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Menu method from cache
|
||||
*
|
||||
* @param ctx
|
||||
* @param AD_Menu_ID menu id
|
||||
*/
|
||||
public static MMenu get(Properties ctx, int AD_Menu_ID)
|
||||
{
|
||||
if (s_cache.containsKey(AD_Menu_ID))
|
||||
return s_cache.get(ctx, AD_Menu_ID, e -> new MMenu(Env.getCtx(), e));
|
||||
|
||||
MMenu menu = new MMenu(Env.getCtx(), AD_Menu_ID, (String)null);
|
||||
if (menu.get_ID() == AD_Menu_ID)
|
||||
{
|
||||
s_cache.put(AD_Menu_ID, menu, e -> new MMenu(Env.getCtx(), e));
|
||||
return menu;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ctx
|
||||
* @param copy
|
||||
*/
|
||||
public MMenu(Properties ctx, MMenu copy)
|
||||
{
|
||||
this(ctx, copy, (String) null);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ctx
|
||||
* @param copy
|
||||
* @param trxName
|
||||
*/
|
||||
public MMenu(Properties ctx, MMenu copy, String trxName)
|
||||
{
|
||||
this(ctx, 0, trxName);
|
||||
copyPO(copy);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get menues with where clause
|
||||
|
@ -194,5 +251,14 @@ public class MMenu extends X_AD_Menu
|
|||
}
|
||||
return retValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PO markImmutable() {
|
||||
if(is_Immutable())
|
||||
return this;
|
||||
|
||||
makeImmutable();
|
||||
return this;
|
||||
}
|
||||
|
||||
} // MMenu
|
||||
|
|
|
@ -20,6 +20,7 @@ import java.sql.ResultSet;
|
|||
import java.util.Properties;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.compiere.util.CCache;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
|
@ -31,6 +32,10 @@ import org.compiere.util.Env;
|
|||
*/
|
||||
public class MToolBarButtonRestrict extends X_AD_ToolBarButtonRestrict
|
||||
{
|
||||
|
||||
/** Cache for toolbar button restricted */
|
||||
private static CCache<String, Boolean> cache_toolbarBtnRestriction = new CCache<String, Boolean>("ToolbarButtonRestricted", 50);
|
||||
|
||||
private static final String GET_OF_WINDOW_SQL = "SELECT AD_ToolBarButton_ID FROM AD_ToolBarButtonRestrict WHERE IsActive = 'Y'"
|
||||
+ " AND AD_Client_ID IN (0, ?)"
|
||||
+ " AND (AD_Role_ID IS NULL OR AD_Role_ID = ?)"
|
||||
|
@ -61,6 +66,16 @@ public class MToolBarButtonRestrict extends X_AD_ToolBarButtonRestrict
|
|||
+ " AND AD_Tab_ID=?"
|
||||
+ " AND AD_ToolBarButton_ID IN"
|
||||
+ " (SELECT AD_ToolBarButton_ID FROM AD_ToolBarButton WHERE AD_Process_ID IS NULL AND IsActive='Y')";
|
||||
|
||||
// Toolbar button access restriction
|
||||
public static final String SQL_IS_TOOLBAR_BTN_EXCLUDED = "SELECT tbr.IsExclude FROM AD_ToolBarButton tb "
|
||||
+ " INNER JOIN AD_ToolBarButtonRestrict tbr ON "
|
||||
+ " ( tbr.AD_ToolBarButton_ID=tb.AD_ToolBarButton_ID AND tbr.AD_Client_ID IN (0,?) AND tbr.IsActive='Y' AND "
|
||||
+ " tbr.Action='W' AND (tbr.AD_Role_ID IS NULL OR tbr.AD_Role_ID=?) AND (tbr.AD_Window_ID IS NULL OR tbr.AD_Window_ID=?)) "
|
||||
+ " LEFT JOIN AD_Tab t ON ( t.AD_Tab_ID=tbr.AD_Tab_ID AND t.IsActive='Y' AND t.AD_Window_ID=? AND ((t.TabLevel=0 AND 0=?) OR t.AD_Tab_ID=?)) "
|
||||
+ " WHERE tb.IsActive='Y' AND tb.Action='W' AND tb.AD_ToolBarButton_ID=? AND tb.AD_Tab_ID IS NULL AND (tbr.AD_Tab_ID IS NULL OR t.AD_Tab_ID IS NOT NULL)"
|
||||
+ " ORDER BY tbr.AD_Client_ID DESC, tbr.AD_Window_ID, tbr.AD_Tab_ID ";
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
@ -168,4 +183,55 @@ public class MToolBarButtonRestrict extends X_AD_ToolBarButtonRestrict
|
|||
return sb.toString();
|
||||
} // toString
|
||||
|
||||
/**
|
||||
* Check Window access for ReadWrite & New Toolbar button
|
||||
*
|
||||
* @param windowID - AD_Window_ID
|
||||
* @return True if Toolbar button is restricted
|
||||
*/
|
||||
public static boolean isNewButtonRestricted(int windowID)
|
||||
{
|
||||
return isNewButtonRestricted(windowID, 0);
|
||||
} // isNewButtonRestricted
|
||||
|
||||
/**
|
||||
* Check Window access for ReadWrite & New Toolbar button
|
||||
*
|
||||
* @param windowID - AD_Window_ID
|
||||
* @param tabID - AD_Tab_ID
|
||||
* @return True if Toolbar button is restricted
|
||||
*/
|
||||
public static boolean isNewButtonRestricted(int windowID, int tabID)
|
||||
{
|
||||
boolean isReadWrite = MRole.getDefault().getWindowAccess(windowID);
|
||||
if (!isReadWrite)
|
||||
return true;
|
||||
|
||||
return isToolbarButtonRestricted(windowID, tabID, SystemIDs.TOOLBAR_BTN_ID_WINDOW_NEW);
|
||||
} // isNewButtonRestricted
|
||||
|
||||
/**
|
||||
* Check toolbar button restriction
|
||||
*
|
||||
* @param windowID - AD_Window_ID
|
||||
* @param tabID - AD_Tab_ID
|
||||
* @param toolbarBtnID - Toolbar button ID
|
||||
* @return True if Toolbar button is restricted
|
||||
*/
|
||||
public static boolean isToolbarButtonRestricted(int windowID, int tabID, int toolbarBtnID)
|
||||
{
|
||||
int clientID = Env.getAD_Client_ID(Env.getCtx());
|
||||
int roleID = MRole.getDefault().getAD_Role_ID();
|
||||
|
||||
String key = clientID + "_" + roleID + "_" + windowID + "_" + tabID + "_" + toolbarBtnID;
|
||||
if (cache_toolbarBtnRestriction.containsKey(key))
|
||||
return cache_toolbarBtnRestriction.get(key);
|
||||
|
||||
String isExclude = DB.getSQLValueString(null, SQL_IS_TOOLBAR_BTN_EXCLUDED, clientID, roleID, windowID, windowID, tabID, tabID, toolbarBtnID);
|
||||
boolean isRestricted = isExclude != null && isExclude.equals("Y");
|
||||
cache_toolbarBtnRestriction.put(key, isRestricted);
|
||||
|
||||
return isRestricted;
|
||||
} // isToolbarButtonRestricted
|
||||
|
||||
} // MToolBarButtonRestrict
|
||||
|
|
|
@ -240,14 +240,7 @@ public class MTree extends MTree_Base
|
|||
StringBuilder sql = new StringBuilder();
|
||||
if (getTreeType().equals(TREETYPE_Menu)) // specific sql, need to load TreeBar IDEMPIERE 329 - nmicoud
|
||||
{
|
||||
sql = new StringBuilder("SELECT "
|
||||
+ "tn.Node_ID,tn.Parent_ID,tn.SeqNo,tb.IsActive "
|
||||
+ "FROM ").append(getNodeTableName()).append(" tn"
|
||||
+ " LEFT OUTER JOIN AD_TreeBar tb ON (tn.AD_Tree_ID=tb.AD_Tree_ID"
|
||||
+ " AND tn.Node_ID=tb.Node_ID AND tb.IsFavourite = 'Y'"
|
||||
+ (AD_User_ID != -1 ? " AND tb.AD_User_ID=? ": "") // #1 (conditional)
|
||||
+ ") "
|
||||
+ "WHERE tn.AD_Tree_ID=?"); // #2
|
||||
sql = new StringBuilder("SELECT tn.Node_ID,tn.Parent_ID,tn.SeqNo,'N' FROM ").append(getNodeTableName()).append(" tn WHERE tn.AD_Tree_ID=?");
|
||||
if (!m_editable)
|
||||
sql.append(" AND tn.IsActive='Y'");
|
||||
sql.append(" ORDER BY COALESCE(tn.Parent_ID, -1), tn.SeqNo");
|
||||
|
@ -284,10 +277,7 @@ public class MTree extends MTree_Base
|
|||
getNodeDetails();
|
||||
//
|
||||
pstmt = DB.prepareStatement(sql.toString(), get_TrxName());
|
||||
int idx = 1;
|
||||
if (AD_User_ID != -1 && getTreeType().equals(TREETYPE_Menu)) // IDEMPIERE 329 - nmicoud
|
||||
pstmt.setInt(idx++, AD_User_ID);
|
||||
pstmt.setInt(idx++, getAD_Tree_ID());
|
||||
pstmt.setInt(1, getAD_Tree_ID());
|
||||
// Get Tree & Bar
|
||||
rs = pstmt.executeQuery();
|
||||
m_root = new MTreeNode (0, 0, getName(), getDescription(), 0, true, null, false, null);
|
||||
|
|
|
@ -0,0 +1,255 @@
|
|||
/******************************************************************************
|
||||
Copyright (C) 2017 Adaxa Pty Ltd. 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.
|
||||
*****************************************************************************/
|
||||
|
||||
package org.compiere.model;
|
||||
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Properties;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.adempiere.exceptions.AdempiereException;
|
||||
import org.compiere.util.CCache;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
|
||||
/**
|
||||
* Favorite Tree Model
|
||||
*
|
||||
* @author Logilite Technologies
|
||||
* @since June 20, 2017
|
||||
*/
|
||||
public class MTreeFavorite extends X_AD_Tree_Favorite
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -1781192037651191816L;
|
||||
|
||||
public static final String SQL_GET_TREE_FAVORITE_ID = "SELECT AD_Tree_Favorite_ID FROM AD_Tree_Favorite WHERE IsActive='Y' AND AD_User_ID=?";
|
||||
|
||||
public static final String SQL_GET_TREE_FAVORITE_NODE = "SELECT AD_Tree_Favorite_Node_ID, Parent_ID, SeqNo, Name, IsSummary, AD_Menu_ID, IsCollapsible, IsFavourite "
|
||||
+ " FROM AD_Tree_Favorite_Node WHERE IsActive='Y' AND AD_Tree_Favorite_ID=? "
|
||||
+ " ORDER BY COALESCE(Parent_ID, -1), SeqNo, Name ";
|
||||
|
||||
/** Cache for AD_Tree_Favorite_ID */
|
||||
private static CCache<Integer, Integer> cache_TreeFavID = new CCache<Integer, Integer>("AD_Tree_Favorite_ID", 30);
|
||||
|
||||
private ArrayList<MTreeNode> m_buffer = new ArrayList<MTreeNode>();
|
||||
private MTreeNode root = null;
|
||||
|
||||
/**
|
||||
* Construct Tree Favorite Model
|
||||
*
|
||||
* @param ctx
|
||||
* @param AD_Tree_Favorite_ID
|
||||
* @param trxName
|
||||
*/
|
||||
public MTreeFavorite(Properties ctx, int AD_Tree_Favorite_ID, String trxName)
|
||||
{
|
||||
super(ctx, AD_Tree_Favorite_ID, trxName);
|
||||
|
||||
if (AD_Tree_Favorite_ID > 0)
|
||||
{
|
||||
loadNode();
|
||||
}
|
||||
}
|
||||
|
||||
public MTreeFavorite(Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super(ctx, rs, trxName);
|
||||
}
|
||||
|
||||
public MTreeNode getRoot()
|
||||
{
|
||||
return root;
|
||||
} // getRoot
|
||||
|
||||
/**
|
||||
* Load Node Into Tree
|
||||
*
|
||||
* @param AD_Tree_Favorite_ID
|
||||
*/
|
||||
private void loadNode()
|
||||
{
|
||||
MRole role = MRole.get(getCtx(), Env.getAD_Role_ID(Env.getCtx()));
|
||||
|
||||
PreparedStatement pstmt = null;
|
||||
ResultSet rs = null;
|
||||
try
|
||||
{
|
||||
root = new MTreeNode(0, 0, "User Favourite Root", "User Favourite Root", 0, 0, null, true, false, false);
|
||||
|
||||
pstmt = DB.prepareStatement(SQL_GET_TREE_FAVORITE_NODE, get_TrxName());
|
||||
pstmt.setInt(1, getAD_Tree_Favorite_ID());
|
||||
rs = pstmt.executeQuery();
|
||||
while (rs.next())
|
||||
{
|
||||
int nodeID = rs.getInt(1);
|
||||
int parentID = rs.getInt(2);
|
||||
int seqNo = rs.getInt(3);
|
||||
String name = rs.getString(4);
|
||||
boolean isSummary = (rs.getString(5).equals("Y"));
|
||||
boolean isCollapsible = rs.getString(7).equals("Y");
|
||||
boolean isFavourite = rs.getString("IsFavourite").equals("Y");
|
||||
|
||||
int menuID = 0;
|
||||
String img = null;
|
||||
Boolean access = null;
|
||||
if (!isSummary)
|
||||
{
|
||||
menuID = rs.getInt(6);
|
||||
MMenu menu = (MMenu) MTable.get(Env.getCtx(), MMenu.Table_ID).getPO(menuID, null);
|
||||
access = getAccessForMenuItem(role, menu);
|
||||
|
||||
if (access != null)
|
||||
{
|
||||
name = menu.get_Translation(MMenu.COLUMNNAME_Name);
|
||||
img = menu.getAction();
|
||||
}
|
||||
}
|
||||
|
||||
if ((access != null && access.booleanValue()) || isSummary)
|
||||
addToTree(nodeID, parentID, seqNo, name, menuID, img, isSummary, isCollapsible, isFavourite);
|
||||
}
|
||||
}
|
||||
catch (SQLException e)
|
||||
{
|
||||
log.log(Level.SEVERE, SQL_GET_TREE_FAVORITE_NODE, e);
|
||||
throw new AdempiereException(e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
DB.close(rs, pstmt);
|
||||
rs = null;
|
||||
pstmt = null;
|
||||
}
|
||||
} // loadNode
|
||||
|
||||
/**
|
||||
* Adding Node Into Tree
|
||||
*
|
||||
* @param favNodeID
|
||||
* @param parentID
|
||||
* @param seqNo
|
||||
* @param name
|
||||
* @param menuID
|
||||
* @param imgSrc
|
||||
* @param isSummary
|
||||
* @param isCollapsible
|
||||
* @param isFavourite
|
||||
*/
|
||||
private void addToTree( int favNodeID, int parentID, int seqNo, String name, int menuID, String imgSrc, boolean isSummary, boolean isCollapsible,
|
||||
boolean isFavourite)
|
||||
{
|
||||
MTreeNode child = new MTreeNode(favNodeID, seqNo, name, name, parentID, menuID, imgSrc, isSummary, isCollapsible, isFavourite);
|
||||
|
||||
MTreeNode parent = null;
|
||||
if (root != null)
|
||||
parent = root.findNode(parentID);
|
||||
// Parent found
|
||||
if (parent != null && parent.getAllowsChildren())
|
||||
{
|
||||
parent.add(child);
|
||||
if (m_buffer.size() > 0)
|
||||
checkBuffer(child);
|
||||
}
|
||||
else
|
||||
m_buffer.add(child);
|
||||
} // addToTree
|
||||
|
||||
/**
|
||||
* Check the buffer for nodes which have newNode as Parents
|
||||
*
|
||||
* @param newNode new node
|
||||
*/
|
||||
private void checkBuffer(MTreeNode child)
|
||||
{
|
||||
// Ability to add nodes
|
||||
if (!child.isSummary() || !child.getAllowsChildren())
|
||||
return;
|
||||
for (int i = 0; i < m_buffer.size(); i++)
|
||||
{
|
||||
MTreeNode node = (MTreeNode) m_buffer.get(i);
|
||||
if (node.getParent_ID() == child.getParent_ID())
|
||||
{
|
||||
try
|
||||
{
|
||||
child.add(node);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
log.severe("Adding " + node.getName() + " to " + child.getName() + ": " + e.getMessage());
|
||||
}
|
||||
m_buffer.remove(i);
|
||||
i--;
|
||||
}
|
||||
else if (node.getParent_ID() == child.getNode_ID())
|
||||
{
|
||||
try
|
||||
{
|
||||
child.add(node);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
log.severe("Adding " + node.getName() + " to " + child.getName() + ": " + e.getMessage());
|
||||
}
|
||||
m_buffer.remove(i);
|
||||
i--;
|
||||
}
|
||||
}
|
||||
} // checkBuffer
|
||||
|
||||
/**
|
||||
* Get Favorite Tree ID for a specific User & Role Wise
|
||||
*
|
||||
* @param userID
|
||||
* @return Favorite Tree_ID
|
||||
*/
|
||||
public static int getFavoriteTreeID(int userID)
|
||||
{
|
||||
if (cache_TreeFavID.containsKey(userID))
|
||||
return cache_TreeFavID.get(userID);
|
||||
|
||||
int id = DB.getSQLValue(null, SQL_GET_TREE_FAVORITE_ID, userID);
|
||||
if (id > 0)
|
||||
cache_TreeFavID.put(userID, id);
|
||||
return id;
|
||||
} // getFavoriteTreeID
|
||||
|
||||
/**
|
||||
* get access for the menu from specified role
|
||||
*
|
||||
* @param role
|
||||
* @param menu
|
||||
* @return
|
||||
*/
|
||||
public static Boolean getAccessForMenuItem(MRole role, I_AD_Menu menu)
|
||||
{
|
||||
Boolean access = null;
|
||||
if (MMenu.ACTION_Window.equals(menu.getAction()))
|
||||
access = role.getWindowAccess(menu.getAD_Window_ID());
|
||||
else if (MMenu.ACTION_Process.equals(menu.getAction()) || MMenu.ACTION_Report.equals(menu.getAction()))
|
||||
access = role.getProcessAccess(menu.getAD_Process_ID());
|
||||
else if (MMenu.ACTION_Form.equals(menu.getAction()))
|
||||
access = role.getFormAccess(menu.getAD_Form_ID());
|
||||
else if (MMenu.ACTION_WorkFlow.equals(menu.getAction()))
|
||||
access = role.getWorkflowAccess(menu.getAD_Workflow_ID());
|
||||
else if (MMenu.ACTION_Task.equals(menu.getAction()))
|
||||
access = role.getTaskAccess(menu.getAD_Task_ID());
|
||||
else if (MMenu.ACTION_Info.equals(menu.getAction()))
|
||||
access = role.getInfoAccess(menu.getAD_InfoWindow_ID());
|
||||
|
||||
return access;
|
||||
} // getAccessForMenuItem
|
||||
|
||||
}
|
|
@ -0,0 +1,121 @@
|
|||
/******************************************************************************
|
||||
Copyright (C) 2017 Adaxa Pty Ltd. 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.
|
||||
*****************************************************************************/
|
||||
|
||||
package org.compiere.model;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.adempiere.exceptions.AdempiereException;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
|
||||
/**
|
||||
* Favorite Tree Node Model
|
||||
*
|
||||
* @author Logilite Technologies
|
||||
* @since June 20, 2017
|
||||
*/
|
||||
public class MTreeFavoriteNode extends X_AD_Tree_Favorite_Node
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -1085269880909860587L;
|
||||
|
||||
public static final String SQL_CHECK_MENU_EXISTS = "SELECT CASE WHEN COUNT(AD_Menu_ID) > 0 THEN 'Y' ELSE 'N' END FROM AD_Tree_Favorite_Node WHERE AD_Tree_Favorite_ID=? AND NVL(Parent_ID, 0)=? AND AD_Menu_ID=?";
|
||||
|
||||
/**
|
||||
* @param ctx
|
||||
* @param AD_Tree_Favorite_Node_ID
|
||||
* @param trxName
|
||||
*/
|
||||
public MTreeFavoriteNode(Properties ctx, int AD_Tree_Favorite_Node_ID, String trxName)
|
||||
{
|
||||
super(ctx, AD_Tree_Favorite_Node_ID, trxName);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ctx
|
||||
* @param rs
|
||||
* @param trxName
|
||||
*/
|
||||
public MTreeFavoriteNode(Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super(ctx, rs, trxName);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check the Menu ID is Present on specified Parent id or not
|
||||
*
|
||||
* @param menuID - AD_Menu_ID
|
||||
* @param nodeID - Parent Node_ID
|
||||
* @param treeFavID - AD_ Tree_Favorite_ID
|
||||
* @return True if same menu exits
|
||||
*/
|
||||
public static boolean isMenuExists(int menuID, int nodeID, int treeFavID)
|
||||
{
|
||||
return "Y".equalsIgnoreCase(DB.getSQLValueStringEx(null, SQL_CHECK_MENU_EXISTS, treeFavID, nodeID, menuID));
|
||||
} // isMenuExists
|
||||
|
||||
/**
|
||||
* Get Favourite node for the menu
|
||||
*
|
||||
* @param AD_Tree_Favorite_ID
|
||||
* @param Menu_ID
|
||||
* @return {@link MTreeFavoriteNode}
|
||||
*/
|
||||
public static MTreeFavoriteNode getFavouriteTreeNodeFromMenuID(int AD_Tree_Favorite_ID, int Menu_ID)
|
||||
{
|
||||
Query query = new Query(Env.getCtx(), MTreeFavoriteNode.Table_Name, "AD_Tree_Favorite_ID=? AND AD_Menu_ID=? AND IsFavourite='Y'", null);
|
||||
query.setOnlyActiveRecords(true);
|
||||
query.setParameters(new Object[] { AD_Tree_Favorite_ID, Menu_ID });
|
||||
return query.first();
|
||||
} // getFavouriteTreeNodeFromMenuID
|
||||
|
||||
/**
|
||||
* Create tree favorite node
|
||||
*
|
||||
* @param AD_Client_ID
|
||||
* @param AD_Org_ID
|
||||
* @param AD_Tree_Favorite_ID
|
||||
* @param AD_Menu_ID
|
||||
* @param Parent_ID
|
||||
* @param SeqNo
|
||||
* @param folderName
|
||||
* @param isSummary
|
||||
* @param isCollapsible
|
||||
* @param isFavourite
|
||||
* @return {@link MTreeFavoriteNode}
|
||||
*/
|
||||
public static MTreeFavoriteNode create( int AD_Client_ID, int AD_Org_ID, int AD_Tree_Favorite_ID, int AD_Menu_ID, int Parent_ID, int SeqNo,
|
||||
String folderName, boolean isSummary, boolean isCollapsible, boolean isFavourite)
|
||||
{
|
||||
MTreeFavoriteNode favNode = (MTreeFavoriteNode) MTable.get(Env.getCtx(), MTreeFavoriteNode.Table_ID).getPO(0, null);
|
||||
favNode.set_ValueOfColumn(I_AD_Tree_Favorite_Node.COLUMNNAME_AD_Client_ID, AD_Client_ID);
|
||||
favNode.setAD_Org_ID(AD_Org_ID);
|
||||
favNode.setAD_Tree_Favorite_ID(AD_Tree_Favorite_ID);
|
||||
favNode.setAD_Menu_ID(AD_Menu_ID);
|
||||
favNode.setParent_ID(Parent_ID);
|
||||
favNode.setSeqNo(SeqNo);
|
||||
if (isSummary)
|
||||
favNode.setName(folderName);
|
||||
favNode.setIsSummary(isSummary);
|
||||
favNode.setIsCollapsible(isCollapsible);
|
||||
favNode.setIsFavourite(isFavourite);
|
||||
if (!favNode.save())
|
||||
{
|
||||
throw new AdempiereException(Msg.getMsg(Env.getCtx(), "NodeNotCreate"));
|
||||
}
|
||||
|
||||
return favNode;
|
||||
} // create
|
||||
}
|
|
@ -70,6 +70,28 @@ public class MTreeNode extends DefaultMutableTreeNode
|
|||
m_color = color;
|
||||
} // MTreeNode
|
||||
|
||||
/**
|
||||
* Construct Model TreeNode [Used MTreeFavorite]
|
||||
*
|
||||
* @param node_ID
|
||||
* @param seqNo
|
||||
* @param name
|
||||
* @param description
|
||||
* @param parent_ID
|
||||
* @param menu_ID
|
||||
* @param img
|
||||
* @param isSummary
|
||||
* @param isCollapsible
|
||||
* @param isFavourite
|
||||
*/
|
||||
public MTreeNode(int node_ID, int seqNo, String name, String description, int parent_ID, int menu_ID,
|
||||
String img, boolean isSummary, boolean isCollapsible, boolean isFavourite)
|
||||
{
|
||||
this(node_ID, seqNo, name, description, parent_ID, isSummary, img, isFavourite, null);
|
||||
setMenu_ID(menu_ID);
|
||||
setCollapsible(isCollapsible);
|
||||
}
|
||||
|
||||
/** Node ID */
|
||||
private int m_node_ID;
|
||||
/** SeqNo */
|
||||
|
@ -80,7 +102,7 @@ public class MTreeNode extends DefaultMutableTreeNode
|
|||
private String m_description;
|
||||
/** Parent ID */
|
||||
private int m_parent_ID;
|
||||
/** Summaty */
|
||||
/** Summary */
|
||||
private boolean m_isSummary;
|
||||
/** Image Indicator */
|
||||
private String m_imageIndicator;
|
||||
|
@ -90,7 +112,11 @@ public class MTreeNode extends DefaultMutableTreeNode
|
|||
private boolean m_onBar;
|
||||
/** Color */
|
||||
private Color m_color;
|
||||
|
||||
/** Menu ID */
|
||||
private int m_menu_ID;
|
||||
/** Is Collapsible */
|
||||
private boolean m_iscollapsible;
|
||||
|
||||
/** Logger */
|
||||
private static CLogger log = CLogger.getCLogger(MTreeNode.class);
|
||||
|
||||
|
@ -196,6 +222,14 @@ public class MTreeNode extends DefaultMutableTreeNode
|
|||
return m_parent_ID;
|
||||
} // getParent
|
||||
|
||||
/**
|
||||
* @param parent_ID the m_parent_ID to set
|
||||
*/
|
||||
public void setParent_ID(int parent_ID)
|
||||
{
|
||||
this.m_parent_ID = parent_ID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Print Name
|
||||
* @return info
|
||||
|
@ -256,6 +290,25 @@ public class MTreeNode extends DefaultMutableTreeNode
|
|||
return m_isSummary;
|
||||
} // isSummary
|
||||
|
||||
public int getMenu_ID()
|
||||
{
|
||||
return m_menu_ID;
|
||||
}
|
||||
|
||||
public void setMenu_ID(int m_menu_ID)
|
||||
{
|
||||
this.m_menu_ID = m_menu_ID;
|
||||
}
|
||||
|
||||
public boolean isCollapsible()
|
||||
{
|
||||
return m_iscollapsible;
|
||||
}
|
||||
|
||||
public void setCollapsible(boolean m_iscollapsible)
|
||||
{
|
||||
this.m_iscollapsible = m_iscollapsible;
|
||||
}
|
||||
|
||||
/**************************************************************************
|
||||
* Get Image Indicator/Index
|
||||
|
|
|
@ -199,5 +199,7 @@ public class SystemIDs
|
|||
|
||||
public final static int SCHEDULE_10_MINUTES = 200002;
|
||||
public final static int SCHEDULE_15_MINUTES = 200003;
|
||||
|
||||
|
||||
public final static int TOOLBAR_BTN_ID_WINDOW_NEW = 200031;
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,134 @@
|
|||
/******************************************************************************
|
||||
* 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_Tree_Favorite
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 8.1 - $Id$ */
|
||||
public class X_AD_Tree_Favorite extends PO implements I_AD_Tree_Favorite, I_Persistent
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20201109L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_AD_Tree_Favorite (Properties ctx, int AD_Tree_Favorite_ID, String trxName)
|
||||
{
|
||||
super (ctx, AD_Tree_Favorite_ID, trxName);
|
||||
/** if (AD_Tree_Favorite_ID == 0)
|
||||
{
|
||||
setAD_Tree_Favorite_ID (0);
|
||||
setAD_User_ID (0);
|
||||
} */
|
||||
}
|
||||
|
||||
/** Load Constructor */
|
||||
public X_AD_Tree_Favorite (Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super (ctx, rs, trxName);
|
||||
}
|
||||
|
||||
/** AccessLevel
|
||||
* @return 7 - System - Client - Org
|
||||
*/
|
||||
protected int get_AccessLevel()
|
||||
{
|
||||
return accessLevel.intValue();
|
||||
}
|
||||
|
||||
/** Load Meta Data */
|
||||
protected POInfo initPO (Properties ctx)
|
||||
{
|
||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
|
||||
return poi;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
StringBuilder sb = new StringBuilder ("X_AD_Tree_Favorite[")
|
||||
.append(get_ID()).append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/** Set Favorite Tree.
|
||||
@param AD_Tree_Favorite_ID Favorite Tree */
|
||||
public void setAD_Tree_Favorite_ID (int AD_Tree_Favorite_ID)
|
||||
{
|
||||
if (AD_Tree_Favorite_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Tree_Favorite_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Tree_Favorite_ID, Integer.valueOf(AD_Tree_Favorite_ID));
|
||||
}
|
||||
|
||||
/** Get Favorite Tree.
|
||||
@return Favorite Tree */
|
||||
public int getAD_Tree_Favorite_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Favorite_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Favorite Tree.
|
||||
@param AD_Tree_Favorite_UU Favorite Tree */
|
||||
public void setAD_Tree_Favorite_UU (String AD_Tree_Favorite_UU)
|
||||
{
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Tree_Favorite_UU, AD_Tree_Favorite_UU);
|
||||
}
|
||||
|
||||
/** Get Favorite Tree.
|
||||
@return Favorite Tree */
|
||||
public String getAD_Tree_Favorite_UU ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_AD_Tree_Favorite_UU);
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_User getAD_User() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_User)MTable.get(getCtx(), org.compiere.model.I_AD_User.Table_Name)
|
||||
.getPO(getAD_User_ID(), get_TrxName()); }
|
||||
|
||||
/** Set User/Contact.
|
||||
@param AD_User_ID
|
||||
User within the system - Internal or Business Partner Contact
|
||||
*/
|
||||
public void setAD_User_ID (int AD_User_ID)
|
||||
{
|
||||
if (AD_User_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_AD_User_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
|
||||
}
|
||||
|
||||
/** Get User/Contact.
|
||||
@return User within the system - Internal or Business Partner Contact
|
||||
*/
|
||||
public int getAD_User_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,323 @@
|
|||
/******************************************************************************
|
||||
* 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_Tree_Favorite_Node
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 8.1 - $Id$ */
|
||||
public class X_AD_Tree_Favorite_Node extends PO implements I_AD_Tree_Favorite_Node, I_Persistent
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20201109L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_AD_Tree_Favorite_Node (Properties ctx, int AD_Tree_Favorite_Node_ID, String trxName)
|
||||
{
|
||||
super (ctx, AD_Tree_Favorite_Node_ID, trxName);
|
||||
/** if (AD_Tree_Favorite_Node_ID == 0)
|
||||
{
|
||||
setAD_Tree_Favorite_ID (0);
|
||||
setAD_Tree_Favorite_Node_ID (0);
|
||||
setIsCollapsible (true);
|
||||
// Y
|
||||
setIsFavourite (false);
|
||||
// N
|
||||
setIsSummary (false);
|
||||
// N
|
||||
setSeqNo (0);
|
||||
} */
|
||||
}
|
||||
|
||||
/** Load Constructor */
|
||||
public X_AD_Tree_Favorite_Node (Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super (ctx, rs, trxName);
|
||||
}
|
||||
|
||||
/** AccessLevel
|
||||
* @return 7 - System - Client - Org
|
||||
*/
|
||||
protected int get_AccessLevel()
|
||||
{
|
||||
return accessLevel.intValue();
|
||||
}
|
||||
|
||||
/** Load Meta Data */
|
||||
protected POInfo initPO (Properties ctx)
|
||||
{
|
||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
|
||||
return poi;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
StringBuilder sb = new StringBuilder ("X_AD_Tree_Favorite_Node[")
|
||||
.append(get_ID()).append(",Name=").append(getName()).append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_Menu getAD_Menu() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_Menu)MTable.get(getCtx(), org.compiere.model.I_AD_Menu.Table_Name)
|
||||
.getPO(getAD_Menu_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Menu.
|
||||
@param AD_Menu_ID
|
||||
Identifies a Menu
|
||||
*/
|
||||
public void setAD_Menu_ID (int AD_Menu_ID)
|
||||
{
|
||||
if (AD_Menu_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Menu_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Menu_ID, Integer.valueOf(AD_Menu_ID));
|
||||
}
|
||||
|
||||
/** Get Menu.
|
||||
@return Identifies a Menu
|
||||
*/
|
||||
public int getAD_Menu_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Menu_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_Tree_Favorite getAD_Tree_Favorite() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_Tree_Favorite)MTable.get(getCtx(), org.compiere.model.I_AD_Tree_Favorite.Table_Name)
|
||||
.getPO(getAD_Tree_Favorite_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Favorite Tree.
|
||||
@param AD_Tree_Favorite_ID Favorite Tree */
|
||||
public void setAD_Tree_Favorite_ID (int AD_Tree_Favorite_ID)
|
||||
{
|
||||
if (AD_Tree_Favorite_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Tree_Favorite_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Tree_Favorite_ID, Integer.valueOf(AD_Tree_Favorite_ID));
|
||||
}
|
||||
|
||||
/** Get Favorite Tree.
|
||||
@return Favorite Tree */
|
||||
public int getAD_Tree_Favorite_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Favorite_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Favorite Node Tree.
|
||||
@param AD_Tree_Favorite_Node_ID Favorite Node Tree */
|
||||
public void setAD_Tree_Favorite_Node_ID (int AD_Tree_Favorite_Node_ID)
|
||||
{
|
||||
if (AD_Tree_Favorite_Node_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Tree_Favorite_Node_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Tree_Favorite_Node_ID, Integer.valueOf(AD_Tree_Favorite_Node_ID));
|
||||
}
|
||||
|
||||
/** Get Favorite Node Tree.
|
||||
@return Favorite Node Tree */
|
||||
public int getAD_Tree_Favorite_Node_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Tree_Favorite_Node_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Favorite Node Tree.
|
||||
@param AD_Tree_Favorite_Node_UU Favorite Node Tree */
|
||||
public void setAD_Tree_Favorite_Node_UU (String AD_Tree_Favorite_Node_UU)
|
||||
{
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Tree_Favorite_Node_UU, AD_Tree_Favorite_Node_UU);
|
||||
}
|
||||
|
||||
/** Get Favorite Node Tree.
|
||||
@return Favorite Node Tree */
|
||||
public String getAD_Tree_Favorite_Node_UU ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_AD_Tree_Favorite_Node_UU);
|
||||
}
|
||||
|
||||
/** Set Collapsible.
|
||||
@param IsCollapsible
|
||||
Flag to indicate the state of the dashboard panel
|
||||
*/
|
||||
public void setIsCollapsible (boolean IsCollapsible)
|
||||
{
|
||||
set_Value (COLUMNNAME_IsCollapsible, Boolean.valueOf(IsCollapsible));
|
||||
}
|
||||
|
||||
/** Get Collapsible.
|
||||
@return Flag to indicate the state of the dashboard panel
|
||||
*/
|
||||
public boolean isCollapsible ()
|
||||
{
|
||||
Object oo = get_Value(COLUMNNAME_IsCollapsible);
|
||||
if (oo != null)
|
||||
{
|
||||
if (oo instanceof Boolean)
|
||||
return ((Boolean)oo).booleanValue();
|
||||
return "Y".equals(oo);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Set Favourite.
|
||||
@param IsFavourite
|
||||
This record is a favourite
|
||||
*/
|
||||
public void setIsFavourite (boolean IsFavourite)
|
||||
{
|
||||
set_Value (COLUMNNAME_IsFavourite, Boolean.valueOf(IsFavourite));
|
||||
}
|
||||
|
||||
/** Get Favourite.
|
||||
@return This record is a favourite
|
||||
*/
|
||||
public boolean isFavourite ()
|
||||
{
|
||||
Object oo = get_Value(COLUMNNAME_IsFavourite);
|
||||
if (oo != null)
|
||||
{
|
||||
if (oo instanceof Boolean)
|
||||
return ((Boolean)oo).booleanValue();
|
||||
return "Y".equals(oo);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Set Summary Level.
|
||||
@param IsSummary
|
||||
This is a summary entity
|
||||
*/
|
||||
public void setIsSummary (boolean IsSummary)
|
||||
{
|
||||
set_Value (COLUMNNAME_IsSummary, Boolean.valueOf(IsSummary));
|
||||
}
|
||||
|
||||
/** Get Summary Level.
|
||||
@return This is a summary entity
|
||||
*/
|
||||
public boolean isSummary ()
|
||||
{
|
||||
Object oo = get_Value(COLUMNNAME_IsSummary);
|
||||
if (oo != null)
|
||||
{
|
||||
if (oo instanceof Boolean)
|
||||
return ((Boolean)oo).booleanValue();
|
||||
return "Y".equals(oo);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Set Login automatic open sequence.
|
||||
@param LoginOpenSeqNo
|
||||
Determine the order items will be automatically opened when user logs in
|
||||
*/
|
||||
public void setLoginOpenSeqNo (int LoginOpenSeqNo)
|
||||
{
|
||||
set_Value (COLUMNNAME_LoginOpenSeqNo, Integer.valueOf(LoginOpenSeqNo));
|
||||
}
|
||||
|
||||
/** Get Login automatic open sequence.
|
||||
@return Determine the order items will be automatically opened when user logs in
|
||||
*/
|
||||
public int getLoginOpenSeqNo ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_LoginOpenSeqNo);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** 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);
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_Tree_Favorite_Node getParent() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_Tree_Favorite_Node)MTable.get(getCtx(), org.compiere.model.I_AD_Tree_Favorite_Node.Table_Name)
|
||||
.getPO(getParent_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Parent.
|
||||
@param Parent_ID
|
||||
Parent of Entity
|
||||
*/
|
||||
public void setParent_ID (int Parent_ID)
|
||||
{
|
||||
if (Parent_ID < 1)
|
||||
set_Value (COLUMNNAME_Parent_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_Parent_ID, Integer.valueOf(Parent_ID));
|
||||
}
|
||||
|
||||
/** Get Parent.
|
||||
@return Parent of Entity
|
||||
*/
|
||||
public int getParent_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_Parent_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Sequence.
|
||||
@param SeqNo
|
||||
Method of ordering records; lowest number comes first
|
||||
*/
|
||||
public void setSeqNo (int SeqNo)
|
||||
{
|
||||
set_Value (COLUMNNAME_SeqNo, Integer.valueOf(SeqNo));
|
||||
}
|
||||
|
||||
/** Get Sequence.
|
||||
@return Method of ordering records; lowest number comes first
|
||||
*/
|
||||
public int getSeqNo ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_SeqNo);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
}
|
|
@ -56,5 +56,5 @@ Copyright (C) 2007 Ashley G Ramdass (ADempiere WebUI).
|
|||
|
||||
<!-- this js module doesn't actually exists and it is here for default theme version -->
|
||||
<!-- since loading of js module is on demand, it doesn't cause any error as long as you don't try to load it -->
|
||||
<javascript-module name="idempiere.theme.default" version="202012310310" />
|
||||
<javascript-module name="idempiere.theme.default" version="202101121400" />
|
||||
</language>
|
||||
|
|
|
@ -0,0 +1,532 @@
|
|||
/******************************************************************************
|
||||
Copyright (C) 2017 Adaxa Pty Ltd. 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.
|
||||
*****************************************************************************/
|
||||
|
||||
package org.adempiere.webui.component;
|
||||
|
||||
import org.adempiere.exceptions.AdempiereException;
|
||||
import org.adempiere.webui.ClientInfo;
|
||||
import org.adempiere.webui.dashboard.DPFavourites;
|
||||
import org.adempiere.webui.desktop.FavouriteController;
|
||||
import org.adempiere.webui.theme.ThemeManager;
|
||||
import org.adempiere.webui.util.TreeUtils;
|
||||
import org.adempiere.webui.window.FDialog;
|
||||
import org.compiere.model.MTable;
|
||||
import org.compiere.model.MTreeFavoriteNode;
|
||||
import org.compiere.model.MTreeNode;
|
||||
import org.compiere.model.PO;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.event.DropEvent;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
import org.zkoss.zk.ui.event.MouseEvent;
|
||||
import org.zkoss.zul.DefaultTreeNode;
|
||||
import org.zkoss.zul.Menuitem;
|
||||
import org.zkoss.zul.Menupopup;
|
||||
import org.zkoss.zul.Toolbarbutton;
|
||||
import org.zkoss.zul.Tree;
|
||||
import org.zkoss.zul.Treeitem;
|
||||
import org.zkoss.zul.Treerow;
|
||||
|
||||
/**
|
||||
* Register listener for Drag&Drop item, Context Menu, Delete Item, Summary folder default
|
||||
* Collapsed/Expanded Operation
|
||||
*
|
||||
* @author Logilite Technologies
|
||||
* @since June 20, 2017
|
||||
*/
|
||||
public class ADTreeFavoriteOnDropListener implements EventListener<Event>
|
||||
{
|
||||
public static final String MENU_ITEM_DELETE = "DELETE";
|
||||
public static final String NODE_MOVEINTO = "MoveInto";
|
||||
public static final String NODE_INSERTAFTER = "InsertAfter";
|
||||
public static final String MENU_ITEM_DEFAULT_EXPANDED = "DefaultExpanded";
|
||||
public static final String MENU_ITEM_DEFAULT_COLLAPSED = "DefaultCollapsed";
|
||||
|
||||
private FavoriteSimpleTreeModel treeModel;
|
||||
private Tree tree;
|
||||
|
||||
private int mTreeFavID;
|
||||
|
||||
//
|
||||
public ADTreeFavoriteOnDropListener(Tree tree, FavoriteSimpleTreeModel treeModel)
|
||||
{
|
||||
this.tree = tree;
|
||||
this.treeModel = treeModel;
|
||||
|
||||
FavouriteController controller = FavouriteController.getInstance(Executions.getCurrent().getDesktop().getSession());
|
||||
mTreeFavID = controller.getAD_Tree_Favorite_ID();
|
||||
} // ADTreeFavoriteOnDropListener
|
||||
|
||||
/**
|
||||
* Events For Right Click And Menu Item Dragged Source to Target Folder
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception
|
||||
{
|
||||
if (Events.ON_RIGHT_CLICK.equals(event.getName())
|
||||
|| (Events.ON_CLICK.equals(event.getName()) && event.getTarget() instanceof Toolbarbutton
|
||||
&& (boolean) ((Toolbarbutton) event.getTarget()).getAttribute(FavoriteSimpleTreeModel.MOBILE_TOOLBAR_CTX_MENU)))
|
||||
{
|
||||
MouseEvent me = (MouseEvent) event;
|
||||
Treeitem target = (event.getTarget() instanceof Toolbarbutton) ? (Treeitem) ((Treerow) me.getTarget().getParent().getParent()).getParent()
|
||||
: (Treeitem) ((Treerow) me.getTarget()).getParent();
|
||||
menuItemList(target);
|
||||
}
|
||||
else if (event instanceof DropEvent)
|
||||
{
|
||||
DropEvent de = (DropEvent) event;
|
||||
if (de.getDragged() != de.getTarget())
|
||||
{
|
||||
Treeitem src;
|
||||
Treeitem target;
|
||||
|
||||
if (de.getDragged() instanceof Treerow && de.getTarget() instanceof Treerow)
|
||||
{
|
||||
src = (Treeitem) ((Treerow) de.getDragged()).getParent();
|
||||
target = (Treeitem) ((Treerow) de.getTarget()).getParent();
|
||||
}
|
||||
else
|
||||
{
|
||||
FDialog.error(0, "DragItemMenu");
|
||||
return;
|
||||
}
|
||||
|
||||
Treerow tr = (Treerow) de.getDragged();
|
||||
String strDraggable = tr.getDraggable();
|
||||
|
||||
if (!strDraggable.equals(DPFavourites.FAVOURITE_DROPPABLE))
|
||||
{
|
||||
DefaultTreeNode<?> stn_src = (DefaultTreeNode<?>) src.getValue();
|
||||
DefaultTreeNode<?> stn_target = (DefaultTreeNode<?>) target.getValue();
|
||||
MTreeNode nd_src = (MTreeNode) stn_src.getData();
|
||||
MTreeNode nd_target = (MTreeNode) stn_target.getData();
|
||||
|
||||
/*
|
||||
* True When Source is a Menu otherwise a folder.
|
||||
*/
|
||||
if (!nd_src.isSummary())
|
||||
{
|
||||
int menuID = nd_src.getMenu_ID();
|
||||
boolean menuAvailable;
|
||||
|
||||
if (!nd_target.isSummary())
|
||||
{
|
||||
menuAvailable = MTreeFavoriteNode.isMenuExists(menuID, nd_target.getParent_ID(), mTreeFavID);
|
||||
if (nd_src.getParent_ID() == nd_target.getParent_ID())
|
||||
{
|
||||
moveNode((DefaultTreeNode<Object>) src.getValue(), (DefaultTreeNode<Object>) target.getValue());
|
||||
}
|
||||
else if (menuAvailable)
|
||||
{
|
||||
showWarningDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
moveNode((DefaultTreeNode<Object>) src.getValue(), (DefaultTreeNode<Object>) target.getValue());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
menuAvailable = MTreeFavoriteNode.isMenuExists(menuID, nd_target.getNode_ID(), mTreeFavID);
|
||||
if (menuAvailable)
|
||||
{
|
||||
showWarningDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
moveNode((DefaultTreeNode<Object>) src.getValue(), (DefaultTreeNode<Object>) target.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
moveNode((DefaultTreeNode<Object>) src.getValue(), (DefaultTreeNode<Object>) target.getValue());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
int mID = Integer.valueOf((src.getValue().toString()));
|
||||
DefaultTreeNode<Object> stn_target = (DefaultTreeNode<Object>) target.getValue();
|
||||
MTreeNode nd = (MTreeNode) stn_target.getData();
|
||||
|
||||
/*
|
||||
* True when Target is Folder, Otherwise its Menu item.
|
||||
*/
|
||||
if (nd.isSummary())
|
||||
{
|
||||
if (MTreeFavoriteNode.isMenuExists(mID, nd.getNode_ID(), mTreeFavID))
|
||||
{
|
||||
showWarningDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
insertMenuInTree(mID, nd.getNode_ID(), stn_target);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
DefaultTreeNode<Object> dtn_target_parent = treeModel.getParent(stn_target);
|
||||
int pID = ((MTreeNode) dtn_target_parent.getData()).getNode_ID();
|
||||
|
||||
if (MTreeFavoriteNode.isMenuExists(mID, pID, mTreeFavID))
|
||||
{
|
||||
showWarningDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
insertMenuInTree(mID, pID, dtn_target_parent);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} // onEvent
|
||||
|
||||
/**
|
||||
* Show Dialog for Warning
|
||||
*/
|
||||
private void showWarningDialog()
|
||||
{
|
||||
FDialog.warn(0, Msg.getMsg(Env.getCtx(), "AlreadyExists"));
|
||||
} // showWarningDialog
|
||||
|
||||
/**
|
||||
* When Right click on Item show Delete Menu popup for Delete a node.
|
||||
*
|
||||
* @param toItem
|
||||
*/
|
||||
private void menuItemList(Treeitem toItem)
|
||||
{
|
||||
@SuppressWarnings("unchecked")
|
||||
DefaultTreeNode<Object> toNode = (DefaultTreeNode<Object>) toItem.getValue();
|
||||
|
||||
Menupopup popup = new Menupopup();
|
||||
Menuitem menuItem = new Menuitem(Msg.getMsg(Env.getCtx(), "delete"));
|
||||
menuItem.setParent(popup);
|
||||
menuItem.setValue(MENU_ITEM_DELETE);
|
||||
menuItem.addEventListener(Events.ON_CLICK, new DeleteListener(toNode));
|
||||
if (ThemeManager.isUseFontIconForImage())
|
||||
menuItem.setIconSclass("z-icon-Delete");
|
||||
else
|
||||
menuItem.setImage(ThemeManager.getThemeResource("images/Delete24.png"));
|
||||
|
||||
MTreeNode mtn = (MTreeNode) toNode.getData();
|
||||
if (mtn.isSummary())
|
||||
{
|
||||
MTreeFavoriteNode favNode = (MTreeFavoriteNode) MTable.get(Env.getCtx(), MTreeFavoriteNode.Table_ID).getPO(mtn.getNode_ID(), null);
|
||||
if (favNode.isCollapsible())
|
||||
{
|
||||
menuItem = new Menuitem(Msg.getMsg(Env.getCtx(), MENU_ITEM_DEFAULT_EXPANDED));
|
||||
menuItem.setValue(MENU_ITEM_DEFAULT_EXPANDED);
|
||||
if (ThemeManager.isUseFontIconForImage())
|
||||
menuItem.setIconSclass("z-icon-Expand");
|
||||
else
|
||||
menuItem.setImage(ThemeManager.getThemeResource("images/expand-header.png"));
|
||||
}
|
||||
else
|
||||
{
|
||||
menuItem = new Menuitem(Msg.getMsg(Env.getCtx(), MENU_ITEM_DEFAULT_COLLAPSED));
|
||||
menuItem.setValue(MENU_ITEM_DEFAULT_COLLAPSED);
|
||||
if (ThemeManager.isUseFontIconForImage())
|
||||
menuItem.setIconSclass("z-icon-Parent");
|
||||
else
|
||||
menuItem.setImage(ThemeManager.getThemeResource("images/collapse-header.png"));
|
||||
}
|
||||
menuItem.setParent(popup);
|
||||
menuItem.addEventListener(Events.ON_CLICK, new CollExpdListener(favNode));
|
||||
}
|
||||
|
||||
popup.setPage(tree.getPage());
|
||||
|
||||
if (ClientInfo.isMobile())
|
||||
popup.open(toItem, "after_start");
|
||||
else
|
||||
popup.open(toItem, "after_pointer");
|
||||
} // menuItemList
|
||||
|
||||
/**
|
||||
* Insert Node into Tree it's contains only Menu type node, Dragged from Menu Tab.
|
||||
*
|
||||
* @param menuID
|
||||
* @param parentNodeID
|
||||
* @param stn
|
||||
*/
|
||||
public void insertMenuInTree(int menuID, int parentNodeID, DefaultTreeNode<Object> stn)
|
||||
{
|
||||
MTreeFavoriteNode favNode = MTreeFavoriteNode.create( Env.getAD_Client_ID(Env.getCtx()), Env.getContextAsInt(Env.getCtx(), Env.AD_ORG_ID), mTreeFavID,
|
||||
menuID, parentNodeID, 0, null, false, true, false);
|
||||
|
||||
DPFavourites.addNodeInTree(treeModel, tree, stn, favNode);
|
||||
} // insertMenuInTree
|
||||
|
||||
/**
|
||||
* Internally movement of Tree node
|
||||
*
|
||||
* @param movingNode
|
||||
* @param toNode
|
||||
*/
|
||||
private void moveNode(DefaultTreeNode<Object> movingNode, DefaultTreeNode<Object> toNode)
|
||||
{
|
||||
if (movingNode == toNode)
|
||||
return;
|
||||
|
||||
MTreeNode toMNode = (MTreeNode) toNode.getData();
|
||||
if (!toMNode.isSummary())
|
||||
{
|
||||
// drop on a child node
|
||||
moveNode(movingNode, toNode, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
// drop on a summary node
|
||||
// prompt user to select insert after or drop into the summary node
|
||||
int path[] = treeModel.getPath(toNode);
|
||||
Treeitem toItem = tree.renderItemByPath(path);
|
||||
|
||||
tree.setSelectedItem(toItem);
|
||||
Events.sendEvent(tree, new Event(Events.ON_SELECT, tree));
|
||||
|
||||
MenuListener listener = new MenuListener(movingNode, toNode);
|
||||
|
||||
Menupopup popup = new Menupopup();
|
||||
Menuitem menuItem = new Menuitem(Msg.getMsg(Env.getCtx(), NODE_INSERTAFTER));
|
||||
menuItem.setValue(NODE_INSERTAFTER);
|
||||
menuItem.setParent(popup);
|
||||
menuItem.addEventListener(Events.ON_CLICK, listener);
|
||||
|
||||
menuItem = new Menuitem(Msg.getMsg(Env.getCtx(), NODE_MOVEINTO));
|
||||
menuItem.setValue(NODE_MOVEINTO);
|
||||
menuItem.setParent(popup);
|
||||
menuItem.addEventListener(Events.ON_CLICK, listener);
|
||||
popup.setPage(tree.getPage());
|
||||
popup.open(toItem.getTreerow(), "overlap");
|
||||
}
|
||||
} // moveNode
|
||||
|
||||
/**
|
||||
* It's specify the Moving node where to inserted... Like Insert After or Move Into.
|
||||
*
|
||||
* @param movingNode
|
||||
* @param toNode
|
||||
* @param isMoveInto
|
||||
*/
|
||||
private void moveNode(DefaultTreeNode<Object> movingNode, DefaultTreeNode<Object> toNode, boolean isMoveInto)
|
||||
{
|
||||
int index;
|
||||
DefaultTreeNode<Object> newParent;
|
||||
|
||||
// Remove moving node from its old parent
|
||||
DefaultTreeNode<Object> oldParent = treeModel.getParent(movingNode);
|
||||
treeModel.removeNode(movingNode);
|
||||
|
||||
// get new index
|
||||
if (!isMoveInto)
|
||||
{
|
||||
newParent = treeModel.getParent(toNode);
|
||||
// the next node
|
||||
index = newParent.getChildren().indexOf(toNode) + 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
// drop on a summary node
|
||||
newParent = toNode;
|
||||
index = 0; // the first node
|
||||
}
|
||||
|
||||
// insert in to tree
|
||||
treeModel.addNode(newParent, movingNode, index);
|
||||
|
||||
int path[] = treeModel.getPath(movingNode);
|
||||
if (TreeUtils.isOnInitRenderPosted(tree) || tree.getTreechildren() == null)
|
||||
{
|
||||
tree.onInitRender();
|
||||
}
|
||||
Treeitem movingItem = tree.renderItemByPath(path);
|
||||
|
||||
if (((MTreeNode) movingNode.getData()).isSummary())
|
||||
tree.setSelectedItem(movingItem);
|
||||
else
|
||||
tree.setSelectedItem(movingItem.getParentItem());
|
||||
Events.sendEvent(tree, new Event(Events.ON_SELECT, tree));
|
||||
|
||||
// Save move node info
|
||||
MTreeNode newParentTNode = (MTreeNode) newParent.getData();
|
||||
MTreeNode moveTNode = (MTreeNode) movingNode.getData();
|
||||
updateTFNParentAndSeqNo(newParentTNode, moveTNode, index);
|
||||
moveTNode.setParent_ID(newParentTNode.getNode_ID());
|
||||
|
||||
// Old parent child node sequence altering
|
||||
MTreeNode oldMParent = (MTreeNode) oldParent.getData();
|
||||
for (int i = 0; i < oldParent.getChildCount(); i++)
|
||||
{
|
||||
DefaultTreeNode<Object> oldChildNode = (DefaultTreeNode<Object>) oldParent.getChildAt(i);
|
||||
MTreeNode oldTNode = (MTreeNode) oldChildNode.getData();
|
||||
|
||||
updateTFNParentAndSeqNo(oldMParent, oldTNode, i);
|
||||
}
|
||||
|
||||
// New parent child node sequence altering
|
||||
if (oldParent != newParent)
|
||||
{
|
||||
MTreeNode newMParent = (MTreeNode) newParent.getData();
|
||||
for (int i = 0; i < newParent.getChildCount(); i++)
|
||||
{
|
||||
DefaultTreeNode<Object> newChildNode = (DefaultTreeNode<Object>) newParent.getChildAt(i);
|
||||
MTreeNode newTNode = (MTreeNode) newChildNode.getData();
|
||||
|
||||
updateTFNParentAndSeqNo(newMParent, newTNode, i);
|
||||
}
|
||||
}
|
||||
} // moveNode
|
||||
|
||||
/**
|
||||
* Update reference of Parent and Seqno
|
||||
*
|
||||
* @param parentTNode
|
||||
* @param moveTNode
|
||||
* @param seqNo
|
||||
*/
|
||||
private void updateTFNParentAndSeqNo(MTreeNode parentTNode, MTreeNode moveTNode, int seqNo)
|
||||
{
|
||||
MTreeFavoriteNode favNode = (MTreeFavoriteNode) MTable.get(Env.getCtx(), MTreeFavoriteNode.Table_ID).getPO(moveTNode.getNode_ID(), null);
|
||||
if (favNode.getParent_ID() != parentTNode.getNode_ID() || favNode.getSeqNo() != seqNo)
|
||||
{
|
||||
favNode.setParent_ID(parentTNode.getNode_ID());
|
||||
favNode.setSeqNo(seqNo);
|
||||
try {
|
||||
//For service users, needs to persist data in system tenant
|
||||
PO.setCrossTenantSafe();
|
||||
favNode.save();
|
||||
}finally {
|
||||
PO.clearCrossTenantSafe();
|
||||
}
|
||||
}
|
||||
} // updateTFNParentAndSeqNo
|
||||
|
||||
/**
|
||||
* Listener for Delete Node on Right click on MouseEvent
|
||||
*/
|
||||
class DeleteListener implements EventListener<Event>
|
||||
{
|
||||
private DefaultTreeNode<Object> toNode;
|
||||
|
||||
DeleteListener(DefaultTreeNode<Object> toNode)
|
||||
{
|
||||
this.toNode = toNode;
|
||||
}
|
||||
|
||||
public void onEvent(Event event) throws Exception
|
||||
{
|
||||
if (Events.ON_CLICK.equals(event.getName()) && event.getTarget() instanceof Menuitem)
|
||||
{
|
||||
Menuitem menuItem = (Menuitem) event.getTarget();
|
||||
if (MENU_ITEM_DELETE.equals(menuItem.getValue()))
|
||||
{
|
||||
deleteNodeItem(toNode);
|
||||
}
|
||||
}
|
||||
} // onEvent
|
||||
|
||||
/**
|
||||
* Deleting a Node and its hierarchy
|
||||
*
|
||||
* @param toNode
|
||||
*/
|
||||
private void deleteNodeItem(DefaultTreeNode<Object> toNode)
|
||||
{
|
||||
int nodeID = ((MTreeNode) toNode.getData()).getNode_ID();
|
||||
MTreeFavoriteNode favNode = (MTreeFavoriteNode) MTable.get(Env.getCtx(), MTreeFavoriteNode.Table_ID).getPO(nodeID, null);
|
||||
if (favNode.getAD_Menu_ID() > 0 && favNode.isFavourite())
|
||||
{
|
||||
FavouriteController controller = FavouriteController.getInstance(Executions.getCurrent().getDesktop().getSession());
|
||||
if (!controller.removeNode(favNode.getAD_Menu_ID()))
|
||||
{
|
||||
throw new AdempiereException(Msg.getMsg(favNode.getCtx(), CLogger.retrieveError().getValue()));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (favNode.delete(true))
|
||||
treeModel.removeNode(toNode);
|
||||
else
|
||||
throw new AdempiereException(Msg.getMsg(favNode.getCtx(), CLogger.retrieveError().getValue()));
|
||||
}
|
||||
} // deleteNodeItem
|
||||
|
||||
} // DeleteListener
|
||||
|
||||
/**
|
||||
* Listener for set default start Collapse/Expand Node by Right click on MouseEvent.
|
||||
*/
|
||||
class CollExpdListener implements EventListener<Event>
|
||||
{
|
||||
private MTreeFavoriteNode favNode;
|
||||
|
||||
CollExpdListener(MTreeFavoriteNode favNode)
|
||||
{
|
||||
this.favNode = favNode;
|
||||
}
|
||||
|
||||
public void onEvent(Event event) throws Exception
|
||||
{
|
||||
if (Events.ON_CLICK.equals(event.getName()) && event.getTarget() instanceof Menuitem)
|
||||
{
|
||||
Menuitem menuItem = (Menuitem) event.getTarget();
|
||||
if (MENU_ITEM_DEFAULT_EXPANDED.equals(menuItem.getValue()))
|
||||
{
|
||||
favNode.setIsCollapsible(false);
|
||||
}
|
||||
else if (MENU_ITEM_DEFAULT_COLLAPSED.equals(menuItem.getValue()))
|
||||
{
|
||||
favNode.setIsCollapsible(true);
|
||||
}
|
||||
favNode.saveEx();
|
||||
}
|
||||
} // onEvent
|
||||
|
||||
} // CollExpdListener
|
||||
|
||||
/**
|
||||
* Listener for Movement of Node
|
||||
*/
|
||||
class MenuListener implements EventListener<Event>
|
||||
{
|
||||
private DefaultTreeNode<Object> movingNode;
|
||||
private DefaultTreeNode<Object> toNode;
|
||||
|
||||
MenuListener(DefaultTreeNode<Object> movingNode, DefaultTreeNode<Object> toNode)
|
||||
{
|
||||
this.movingNode = movingNode;
|
||||
this.toNode = toNode;
|
||||
}
|
||||
|
||||
public void onEvent(Event event) throws Exception
|
||||
{
|
||||
if (Events.ON_CLICK.equals(event.getName()) && event.getTarget() instanceof Menuitem)
|
||||
{
|
||||
Menuitem menuItem = (Menuitem) event.getTarget();
|
||||
if (NODE_INSERTAFTER.equals(menuItem.getValue()))
|
||||
{
|
||||
moveNode(movingNode, toNode, false);
|
||||
}
|
||||
else if (NODE_MOVEINTO.equals(menuItem.getValue()))
|
||||
{
|
||||
moveNode(movingNode, toNode, true);
|
||||
}
|
||||
}
|
||||
} // onEvent
|
||||
|
||||
} // MenuListener
|
||||
|
||||
}
|
|
@ -0,0 +1,396 @@
|
|||
/******************************************************************************
|
||||
Copyright (C) 2017 Adaxa Pty Ltd. 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.
|
||||
*****************************************************************************/
|
||||
|
||||
package org.adempiere.webui.component;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Enumeration;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.adempiere.util.Callback;
|
||||
import org.adempiere.webui.ClientInfo;
|
||||
import org.adempiere.webui.adwindow.ADTabpanel;
|
||||
import org.adempiere.webui.adwindow.ADWindow;
|
||||
import org.adempiere.webui.desktop.FavouriteController;
|
||||
import org.adempiere.webui.exception.ApplicationException;
|
||||
import org.adempiere.webui.session.SessionManager;
|
||||
import org.adempiere.webui.theme.ThemeManager;
|
||||
import org.compiere.model.MMenu;
|
||||
import org.compiere.model.MQuery;
|
||||
import org.compiere.model.MTable;
|
||||
import org.compiere.model.MToolBarButtonRestrict;
|
||||
import org.compiere.model.MTreeNode;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
import org.compiere.util.Util;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
import org.zkoss.zul.DefaultTreeNode;
|
||||
import org.zkoss.zul.Toolbarbutton;
|
||||
import org.zkoss.zul.Tree;
|
||||
import org.zkoss.zul.TreeNode;
|
||||
import org.zkoss.zul.Treecell;
|
||||
import org.zkoss.zul.Treecol;
|
||||
import org.zkoss.zul.Treecols;
|
||||
import org.zkoss.zul.Treeitem;
|
||||
import org.zkoss.zul.TreeitemRenderer;
|
||||
import org.zkoss.zul.Treerow;
|
||||
import org.zkoss.zul.event.TreeDataEvent;
|
||||
|
||||
/**
|
||||
* User Favorite Tree Model
|
||||
*
|
||||
* @author Logilite Technologies
|
||||
* @since June 20, 2017
|
||||
*/
|
||||
public class FavoriteSimpleTreeModel extends SimpleTreeModel implements EventListener<Event>, TreeitemRenderer<Object>
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 6950349031548896628L;
|
||||
private static final CLogger LOG = CLogger.getCLogger(FavoriteSimpleTreeModel.class);
|
||||
|
||||
public static final String MOBILE_TOOLBAR_CTX_MENU = "MobileFavCtxMenu";
|
||||
|
||||
private List<EventListener<Event>> onDropListners = new ArrayList<EventListener<Event>>();
|
||||
|
||||
private boolean itemDraggable;
|
||||
|
||||
//
|
||||
public FavoriteSimpleTreeModel(DefaultTreeNode<Object> root)
|
||||
{
|
||||
super(root);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tree Initialization
|
||||
*
|
||||
* @param tree
|
||||
* @param trxName
|
||||
* @return {@link FavoriteSimpleTreeModel}
|
||||
*/
|
||||
public static FavoriteSimpleTreeModel initADTree(Tree tree, String trxName)
|
||||
{
|
||||
FavouriteController controller = FavouriteController.getInstance(Executions.getCurrent().getDesktop().getSession());
|
||||
MTreeNode root = controller.getRootNode();
|
||||
//
|
||||
FavoriteSimpleTreeModel treeModel = FavoriteSimpleTreeModel.createFrom(root);
|
||||
treeModel.addOnDropEventListener(new ADTreeFavoriteOnDropListener(tree, treeModel));
|
||||
treeModel.setItemDraggable(true);
|
||||
|
||||
if (tree.getTreecols() == null)
|
||||
{
|
||||
Treecols treeCols = new Treecols();
|
||||
tree.appendChild(treeCols);
|
||||
Treecol treeCol = new Treecol();
|
||||
treeCols.appendChild(treeCol);
|
||||
}
|
||||
|
||||
tree.setPageSize(-1);
|
||||
|
||||
try
|
||||
{
|
||||
tree.setItemRenderer(treeModel);
|
||||
tree.setModel(treeModel);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LOG.log(Level.SEVERE, "Failed to setup favourite tree");
|
||||
}
|
||||
|
||||
controller.setTreeAndModel(treeModel, tree);
|
||||
|
||||
return treeModel;
|
||||
} // initADTree
|
||||
|
||||
/**
|
||||
* Creating Tree hierarchy
|
||||
*
|
||||
* @param root
|
||||
* @return {@link FavoriteSimpleTreeModel}
|
||||
*/
|
||||
public static FavoriteSimpleTreeModel createFrom(MTreeNode root)
|
||||
{
|
||||
Enumeration<?> nodeEnum = root.children();
|
||||
DefaultTreeNode<Object> stRoot = new DefaultTreeNode<Object>(root, nodeEnum.hasMoreElements() ? new ArrayList<TreeNode<Object>>() : null);
|
||||
populate(stRoot, root);
|
||||
return new FavoriteSimpleTreeModel(stRoot);
|
||||
}// createFrom
|
||||
|
||||
/**
|
||||
* Populate Node
|
||||
*
|
||||
* @param stNode
|
||||
* @param root
|
||||
*/
|
||||
private static void populate(DefaultTreeNode<Object> stNode, MTreeNode root)
|
||||
{
|
||||
Enumeration<?> nodeEnum = root.children();
|
||||
while (nodeEnum.hasMoreElements())
|
||||
{
|
||||
MTreeNode childNode = (MTreeNode) nodeEnum.nextElement();
|
||||
DefaultTreeNode<Object> stChildNode = childNode.getChildCount() > 0 ? new DefaultTreeNode<Object>(childNode, new ArrayList<TreeNode<Object>>())
|
||||
: new DefaultTreeNode<Object>(childNode);
|
||||
|
||||
stNode.getChildren().add(stChildNode);
|
||||
if (childNode.getChildCount() > 0)
|
||||
{
|
||||
populate(stChildNode, childNode);
|
||||
}
|
||||
}
|
||||
} // populate
|
||||
|
||||
@Override
|
||||
public void render(Treeitem ti, Object node, int index)
|
||||
{
|
||||
DefaultTreeNode<?> stn = (DefaultTreeNode<?>) node;
|
||||
MTreeNode mNode = (MTreeNode) stn.getData();
|
||||
Treecell tc = new Treecell(Objects.toString(node));
|
||||
|
||||
Treerow tr = null;
|
||||
if (ti.getTreerow() == null)
|
||||
{
|
||||
tr = new Treerow();
|
||||
tr.setParent(ti);
|
||||
if (isItemDraggable())
|
||||
{
|
||||
tr.setDraggable("true");
|
||||
}
|
||||
if (!onDropListners.isEmpty())
|
||||
{
|
||||
ti.getTreerow().addEventListener(Events.ON_CLICK, this);
|
||||
|
||||
tr.setDroppable("true");
|
||||
tr.addEventListener(Events.ON_SELECT, this);
|
||||
tr.addEventListener(Events.ON_DROP, this);
|
||||
if (!ClientInfo.isMobile())
|
||||
{
|
||||
tr.addEventListener(Events.ON_RIGHT_CLICK, this);
|
||||
}
|
||||
}
|
||||
|
||||
// default user action for Collapsed/Expanded folder tree
|
||||
ti.setOpen(!mNode.isCollapsible());
|
||||
ti.setTooltiptext(mNode.getDescription());
|
||||
|
||||
//
|
||||
if (mNode.getColor() != null)
|
||||
{
|
||||
String hex = ZkCssHelper.createHexColorString(mNode.getColor());
|
||||
ZkCssHelper.appendStyle(tc, "color: #" + hex);
|
||||
}
|
||||
|
||||
// Set Icon
|
||||
if (ThemeManager.isUseFontIconForImage())
|
||||
tc.setIconSclass(getIconSclass(mNode));
|
||||
else
|
||||
tc.setImage(ThemeManager.getThemeResource(getIconFile(mNode)));
|
||||
|
||||
//
|
||||
if (mNode.isSummary())
|
||||
{
|
||||
tc.addSclass("fav-summary-folder");
|
||||
}
|
||||
|
||||
//
|
||||
if (mNode.isWindow())
|
||||
{
|
||||
// Check Window access for ReadWrite & New Toolbar button
|
||||
if (!MToolBarButtonRestrict.isNewButtonRestricted(MMenu.get(mNode.getMenu_ID()).getAD_Window_ID()))
|
||||
{
|
||||
Toolbarbutton newBtn = new Toolbarbutton();
|
||||
newBtn.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "New")));
|
||||
newBtn.addEventListener(Events.ON_CLICK, this);
|
||||
tc.appendChild(newBtn);
|
||||
|
||||
if (ThemeManager.isUseFontIconForImage())
|
||||
{
|
||||
newBtn.setIconSclass("z-icon-New");
|
||||
newBtn.setSclass("new-toolbarbutton");
|
||||
}
|
||||
else
|
||||
{
|
||||
newBtn.setSclass("menu-href-newbtn");
|
||||
newBtn.setImage(ThemeManager.getThemeResource("images/New10.png"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ClientInfo.isMobile())
|
||||
{
|
||||
Toolbarbutton btnContextMenu = new Toolbarbutton();
|
||||
btnContextMenu.setClass("fav-mobile-ctx-menu");
|
||||
btnContextMenu.setIconSclass("z-icon-More");
|
||||
btnContextMenu.setAttribute(MOBILE_TOOLBAR_CTX_MENU, true);
|
||||
btnContextMenu.addEventListener(Events.ON_CLICK, this);
|
||||
tc.appendChild(btnContextMenu);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
tr = ti.getTreerow();
|
||||
tr.getChildren().clear();
|
||||
}
|
||||
tc.setParent(tr);
|
||||
ti.setValue(node);
|
||||
} // render
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception
|
||||
{
|
||||
Component comp = event.getTarget();
|
||||
String eventName = event.getName();
|
||||
|
||||
if (Events.ON_DROP.equals(eventName) || Events.ON_RIGHT_CLICK.equals(eventName)
|
||||
|| (Events.ON_CLICK.equals(eventName) && comp instanceof Toolbarbutton
|
||||
&& (boolean) ((Toolbarbutton) event.getTarget()).getAttribute(FavoriteSimpleTreeModel.MOBILE_TOOLBAR_CTX_MENU)))
|
||||
{
|
||||
for (EventListener<Event> listener : onDropListners)
|
||||
{
|
||||
listener.onEvent(event);
|
||||
}
|
||||
}
|
||||
// On click of menu to open that window
|
||||
else if (Events.ON_CLICK.equals(eventName) || Events.ON_SELECT.equals(eventName))
|
||||
{
|
||||
boolean newRecord = false;
|
||||
if (comp instanceof Toolbarbutton)
|
||||
{
|
||||
comp = comp.getParent().getParent();
|
||||
newRecord = true;
|
||||
}
|
||||
|
||||
if (comp instanceof Treerow)
|
||||
{
|
||||
Treerow treerow = (Treerow) comp;
|
||||
Treeitem treeitem = (Treeitem) treerow.getParent();
|
||||
Object value = treeitem.getValue();
|
||||
|
||||
DefaultTreeNode<?> dtNode = (DefaultTreeNode<?>) value;
|
||||
MTreeNode mtn = (MTreeNode) dtNode.getData();
|
||||
|
||||
if (newRecord)
|
||||
{
|
||||
onNewRecord(mtn.getMenu_ID());
|
||||
}
|
||||
else if (!mtn.isSummary())
|
||||
{
|
||||
int menuID = mtn.getMenu_ID();
|
||||
SessionManager.getAppDesktop().onMenuSelected(menuID);
|
||||
}
|
||||
}
|
||||
}
|
||||
} // onEvent
|
||||
|
||||
public void addNode(DefaultTreeNode<Object> newNode)
|
||||
{
|
||||
DefaultTreeNode<Object> root = (DefaultTreeNode<Object>) getRoot();
|
||||
root.getChildren().add(newNode);
|
||||
|
||||
fireEvent(TreeDataEvent.INTERVAL_ADDED, getPath(root), root.getChildCount() - 1, root.getChildCount() - 1);
|
||||
} // addNode
|
||||
|
||||
public DefaultTreeNode<Object> getChild(DefaultTreeNode<Object> parent, int index)
|
||||
{
|
||||
return (DefaultTreeNode<Object>) (parent).getChildAt(index);
|
||||
} // getChild
|
||||
|
||||
private void onNewRecord(int menuID)
|
||||
{
|
||||
try
|
||||
{
|
||||
MMenu menu = (MMenu) MTable.get(Env.getCtx(), MMenu.Table_ID).getPO(menuID, null);
|
||||
|
||||
MQuery query = new MQuery("");
|
||||
query.addRestriction("1=2");
|
||||
query.setRecordCount(0);
|
||||
|
||||
SessionManager.getAppDesktop().openWindow(menu.getAD_Window_ID(), query, new Callback<ADWindow>() {
|
||||
@Override
|
||||
public void onCallback(ADWindow result)
|
||||
{
|
||||
if (result == null)
|
||||
return;
|
||||
|
||||
result.getADWindowContent().onNew();
|
||||
ADTabpanel adtabpanel = (ADTabpanel) result.getADWindowContent().getADTab().getSelectedTabpanel();
|
||||
adtabpanel.focusToFirstEditor(false);
|
||||
}
|
||||
});
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new ApplicationException(e.getMessage(), e);
|
||||
}
|
||||
} // onNewRecord
|
||||
|
||||
public void addOnDropEventListener(EventListener<Event> listener)
|
||||
{
|
||||
onDropListners.add(listener);
|
||||
}
|
||||
|
||||
public void setItemDraggable(boolean isDraggable)
|
||||
{
|
||||
itemDraggable = isDraggable;
|
||||
}
|
||||
|
||||
public boolean isItemDraggable()
|
||||
{
|
||||
return itemDraggable;
|
||||
}
|
||||
|
||||
private static String getIconFile(MTreeNode mt)
|
||||
{
|
||||
if (mt.isSummary())
|
||||
return "images/Folder16.png";
|
||||
if (mt.isWindow())
|
||||
return "images/mWindow.png";
|
||||
if (mt.isReport())
|
||||
return "images/mReport.png";
|
||||
if (mt.isTask() || mt.isProcess())
|
||||
return "images/mProcess.png";
|
||||
if (mt.isWorkFlow())
|
||||
return "images/mWorkFlow.png";
|
||||
if (mt.isForm())
|
||||
return "images/mForm.png";
|
||||
if (mt.isInfo())
|
||||
return "images/mInfo.png";
|
||||
return "images/mWindow.png";
|
||||
}
|
||||
|
||||
private static String getIconSclass(MTreeNode mt)
|
||||
{
|
||||
if (mt.isSummary())
|
||||
return "z-icon-Folder";
|
||||
if (mt.isWindow())
|
||||
return "z-icon-Window";
|
||||
if (mt.isReport())
|
||||
return "z-icon-Report";
|
||||
if (mt.isProcess())
|
||||
return "z-icon-Process";
|
||||
if (mt.isTask())
|
||||
return "z-icon-Task";
|
||||
if (mt.isWorkFlow())
|
||||
return "z-icon-WorkFlow";
|
||||
if (mt.isForm())
|
||||
return "z-icon-Form";
|
||||
if (mt.isInfo())
|
||||
return "z-icon-Info";
|
||||
return "z-icon-Window";
|
||||
} // getIconSclass
|
||||
|
||||
}
|
|
@ -13,389 +13,316 @@
|
|||
*****************************************************************************/
|
||||
package org.adempiere.webui.dashboard;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.adempiere.util.Callback;
|
||||
import org.adempiere.webui.adwindow.ADTabpanel;
|
||||
import org.adempiere.webui.adwindow.ADWindow;
|
||||
import org.adempiere.webui.desktop.FavouriteController;
|
||||
import org.adempiere.webui.exception.ApplicationException;
|
||||
import org.adempiere.webui.session.SessionManager;
|
||||
import org.adempiere.webui.apps.AEnv;
|
||||
import org.adempiere.webui.component.FavoriteSimpleTreeModel;
|
||||
import org.adempiere.webui.component.ToolBarButton;
|
||||
import org.adempiere.webui.component.ZkCssHelper;
|
||||
import org.adempiere.webui.theme.ThemeManager;
|
||||
import org.adempiere.webui.window.FDialog;
|
||||
import org.adempiere.webui.util.TreeUtils;
|
||||
import org.adempiere.webui.util.ZKUpdateUtil;
|
||||
import org.compiere.model.MMenu;
|
||||
import org.compiere.model.MQuery;
|
||||
import org.compiere.model.MTable;
|
||||
import org.compiere.model.MTreeFavorite;
|
||||
import org.compiere.model.MTreeFavoriteNode;
|
||||
import org.compiere.model.MTreeNode;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
import org.compiere.util.Util;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.event.DropEvent;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
import org.zkoss.zul.A;
|
||||
import org.zkoss.zul.Hlayout;
|
||||
import org.zkoss.zul.Image;
|
||||
import org.zkoss.zul.Label;
|
||||
import org.zkoss.zul.Layout;
|
||||
import org.zkoss.zul.Box;
|
||||
import org.zkoss.zul.DefaultTreeNode;
|
||||
import org.zkoss.zul.Panel;
|
||||
import org.zkoss.zul.Panelchildren;
|
||||
import org.zkoss.zul.Toolbar;
|
||||
import org.zkoss.zul.Toolbarbutton;
|
||||
import org.zkoss.zul.Tree;
|
||||
import org.zkoss.zul.Treeitem;
|
||||
import org.zkoss.zul.Treerow;
|
||||
import org.zkoss.zul.Vlayout;
|
||||
import org.zkoss.zul.Vbox;
|
||||
|
||||
/**
|
||||
* Dashboard item: User favourites
|
||||
* Dashboard item: User favourites - Tree based view organize
|
||||
*
|
||||
* @author Elaine
|
||||
* @date November 20, 2008
|
||||
* @author Logilite Technologies - IDEMPIERE-3340
|
||||
* @date November 20, 2008
|
||||
*/
|
||||
public class DPFavourites extends DashboardPanel implements EventListener<Event> {
|
||||
public class DPFavourites extends DashboardPanel implements EventListener<Event>
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 8398216266900311289L;
|
||||
private static final long serialVersionUID = 7915726855926813700L;
|
||||
|
||||
private static final String NODE_ID_ATTR = "Node_ID";
|
||||
public static final String FAVOURITE_DROPPABLE = "favourite";
|
||||
|
||||
private FavoriteSimpleTreeModel treeModel;
|
||||
|
||||
public static final String FAVOURITE_DROPPABLE = "favourite";
|
||||
private ToolBarButton btnAdd;
|
||||
private ToolBarButton btnEdit;
|
||||
private ToolBarButton btnExpand;
|
||||
private ToolBarButton btnAutoLaunch;
|
||||
|
||||
public static final String DELETE_FAV_DROPPABLE = "deleteFav";
|
||||
private Tree tree;
|
||||
|
||||
private Layout bxFav;
|
||||
|
||||
private Label lblMsg;
|
||||
|
||||
private List<A> links = new ArrayList<>();
|
||||
|
||||
private boolean inCallingController;
|
||||
|
||||
//
|
||||
public DPFavourites()
|
||||
{
|
||||
super();
|
||||
|
||||
|
||||
Panel panel = new Panel();
|
||||
panel.setClass("fav-tree-panel");
|
||||
this.appendChild(panel);
|
||||
|
||||
|
||||
Panelchildren favContent = new Panelchildren();
|
||||
favContent.appendChild(createFavoritePanel());
|
||||
favContent.setDroppable(FAVOURITE_DROPPABLE);
|
||||
favContent.addEventListener(Events.ON_DROP, this);
|
||||
panel.appendChild(favContent);
|
||||
bxFav = new Vlayout();
|
||||
this.setSclass("favourites-box");
|
||||
favContent.appendChild(bxFav);
|
||||
createFavouritesPanel();
|
||||
|
||||
Toolbar favToolbar = new Toolbar();
|
||||
this.appendChild(favToolbar);
|
||||
|
||||
// Elaine 2008/07/24
|
||||
|
||||
//
|
||||
btnExpand = new ToolBarButton("Expand");
|
||||
btnExpand.setChecked(false);
|
||||
btnExpand.setClass("fav-button-Expand");
|
||||
btnExpand.addEventListener(Events.ON_CLICK, this);
|
||||
btnExpand.setTooltiptext(Msg.getMsg(Env.getCtx(), "Tooltip_ExpandCollapseTree"));
|
||||
if (ThemeManager.isUseFontIconForImage())
|
||||
btnExpand.setIconSclass("z-icon-Expanding");
|
||||
else
|
||||
btnExpand.setImage(ThemeManager.getThemeResource("images/expand-header.png"));
|
||||
|
||||
//
|
||||
btnAdd = new ToolBarButton("AddFolder");
|
||||
btnAdd.setClass("fav-button-add");
|
||||
btnAdd.setTooltiptext(Msg.getMsg(Env.getCtx(), "AddFolder"));
|
||||
btnAdd.addEventListener(Events.ON_CLICK, this);
|
||||
if (ThemeManager.isUseFontIconForImage())
|
||||
btnAdd.setIconSclass("z-icon-TreeFavNodeAdd");
|
||||
else
|
||||
btnAdd.setImage(ThemeManager.getThemeResource("images/FolderAdd24.png"));
|
||||
|
||||
//
|
||||
btnEdit = new ToolBarButton("Edit");
|
||||
btnEdit.setClass("fav-button-edit");
|
||||
btnEdit.setTooltiptext(Msg.getMsg(Env.getCtx(), "EditFolder"));
|
||||
btnEdit.addEventListener(Events.ON_CLICK, this);
|
||||
btnEdit.setDisabled(true);
|
||||
if (ThemeManager.isUseFontIconForImage())
|
||||
btnEdit.setIconSclass("z-icon-Edit");
|
||||
else
|
||||
btnEdit.setImage(ThemeManager.getThemeResource("images/Editor24.png"));
|
||||
|
||||
//
|
||||
btnAutoLaunch = new ToolBarButton("AutoLaunch");
|
||||
btnAutoLaunch.setClass("fav-button-autolaunch");
|
||||
btnAutoLaunch.setTooltiptext(Msg.getMsg(Env.getCtx(), "AutoLaunch"));
|
||||
btnAutoLaunch.addEventListener(Events.ON_CLICK, this);
|
||||
if (ThemeManager.isUseFontIconForImage())
|
||||
btnAutoLaunch.setIconSclass("z-icon-SequenceChange");
|
||||
else
|
||||
btnAutoLaunch.setImage(ThemeManager.getThemeResource("images/Customize24.png"));
|
||||
|
||||
//
|
||||
Toolbar toolbar = new Toolbar();
|
||||
toolbar.setClass("fav-toolbar");
|
||||
toolbar.appendChild(btnExpand);
|
||||
toolbar.appendChild(btnAdd);
|
||||
toolbar.appendChild(btnEdit);
|
||||
toolbar.appendChild(btnAutoLaunch);
|
||||
this.appendChild(toolbar);
|
||||
} // DPFavourites
|
||||
|
||||
private Box createFavoritePanel()
|
||||
{
|
||||
tree = new Tree();
|
||||
tree.setMultiple(false);
|
||||
tree.setSizedByContent(false);
|
||||
tree.setClass("menu-tree");
|
||||
tree.addEventListener(Events.ON_SELECT, this);
|
||||
ZKUpdateUtil.setWidth(tree, "100%");
|
||||
ZkCssHelper.appendStyle(tree, "border: none; min-height: 20px;");
|
||||
|
||||
Box box = new Vbox();
|
||||
ZKUpdateUtil.setVflex(box, "1");
|
||||
ZKUpdateUtil.setHflex(box, "1");
|
||||
box.appendChild(tree);
|
||||
|
||||
initTreeModel();
|
||||
|
||||
return box;
|
||||
} // createFavoritePanel
|
||||
|
||||
/**
|
||||
* Creating Tree structure
|
||||
*/
|
||||
public void initTreeModel()
|
||||
{
|
||||
treeModel = FavoriteSimpleTreeModel.initADTree(tree, null);
|
||||
} // initTreeModel
|
||||
|
||||
/**
|
||||
* Event Like open Menu Window, Expand/Collapse Node, Add node into Tree
|
||||
*/
|
||||
public void onEvent(Event event)
|
||||
{
|
||||
String eventName = event.getName();
|
||||
if (eventName.equals(Events.ON_CLICK))
|
||||
{
|
||||
Label deleteLabel = new Label();
|
||||
favToolbar.appendChild(deleteLabel);
|
||||
deleteLabel.setSclass("z-icon-Trash trash-font-icon");
|
||||
deleteLabel.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Delete")));
|
||||
deleteLabel.setDroppable(DELETE_FAV_DROPPABLE);
|
||||
deleteLabel.addEventListener(Events.ON_DROP, this);
|
||||
if (event.getTarget() == btnAdd)
|
||||
doFolderOpr(true);
|
||||
else if (event.getTarget() == btnEdit)
|
||||
doFolderOpr(false);
|
||||
else if (event.getTarget() == btnExpand)
|
||||
doExpandCollapseAll();
|
||||
else if (event.getTarget() == btnAutoLaunch)
|
||||
doLoginOpenSeq();
|
||||
}
|
||||
else if (eventName.equals(Events.ON_SELECT) && event.getTarget() == tree)
|
||||
{
|
||||
MTreeNode mtNode = getCurrentSelectedTreeNode(tree);
|
||||
btnEdit.setDisabled(mtNode.getNode_ID() == 0 || !mtNode.isSummary());
|
||||
}
|
||||
else if (eventName.equals(Events.ON_DROP) && event instanceof DropEvent && event.getTarget() instanceof Panelchildren)
|
||||
{
|
||||
DropEvent de = (DropEvent) event;
|
||||
if (de.getDragged() != de.getTarget())
|
||||
{
|
||||
if (de.getDragged() instanceof Treerow)
|
||||
{
|
||||
Treeitem src = (Treeitem) ((Treerow) de.getDragged()).getParent();
|
||||
int menuID = Integer.parseInt(src.getValue());
|
||||
int treeFavoriteID = MTreeFavorite.getFavoriteTreeID(Env.getAD_User_ID(Env.getCtx()));
|
||||
//
|
||||
insertMenuInTree(menuID, 0, treeFavoriteID, tree, treeModel, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
} // onEvent
|
||||
|
||||
private void doLoginOpenSeq()
|
||||
{
|
||||
LoginOpenSequenceDialog dialog = new LoginOpenSequenceDialog(Env.getAD_User_ID(Env.getCtx()));
|
||||
dialog.loadData();
|
||||
dialog.doHighlighted();
|
||||
AEnv.showCenterScreen(dialog);
|
||||
} // doLoginOpenSeq
|
||||
|
||||
/**
|
||||
* Add or Edit folder
|
||||
*/
|
||||
private void doFolderOpr(boolean isAddFolder)
|
||||
{
|
||||
FavouriteFolderDialog addFolderPanel = new FavouriteFolderDialog(isAddFolder, treeModel, tree);
|
||||
|
||||
AEnv.showCenterScreen(addFolderPanel);
|
||||
} // doFolderOpr
|
||||
|
||||
/**
|
||||
* On check to Expand/Collapse Tree
|
||||
*/
|
||||
private void doExpandCollapseAll()
|
||||
{
|
||||
btnExpand.setChecked(!btnExpand.isChecked());
|
||||
if (!tree.getChildren().isEmpty())
|
||||
{
|
||||
if (btnExpand.isChecked())
|
||||
{
|
||||
btnExpand.addSclass("fav-expand-mode");
|
||||
TreeUtils.expandAll(tree);
|
||||
}
|
||||
else
|
||||
{
|
||||
btnExpand.removeSclass("fav-expand-mode");
|
||||
TreeUtils.collapseAll(tree);
|
||||
}
|
||||
}
|
||||
} // doExpandCollapseAll
|
||||
|
||||
public static MTreeNode getCurrentSelectedTreeNode(Tree tree)
|
||||
{
|
||||
Treeitem selItem = tree.getSelectedItem();
|
||||
DefaultTreeNode<?> dtn;
|
||||
if (selItem == null)
|
||||
dtn = (DefaultTreeNode<?>) tree.getModel().getRoot();
|
||||
else
|
||||
dtn = selItem.getValue();
|
||||
|
||||
return (MTreeNode) dtn.getData();
|
||||
} // getCurrentSelectedTreeNode
|
||||
|
||||
public static int getCurrentSelectedNodeID(Tree tree)
|
||||
{
|
||||
return getCurrentSelectedTreeNode(tree).getNode_ID();
|
||||
} // getCurrentSelectedNodeID
|
||||
|
||||
/**
|
||||
* Insert Node into Tree it's contains only Menu type node, Dragged from Menu Tab.
|
||||
*
|
||||
* @param menuID - AD_Menu_ID
|
||||
* @param parentNodeID - Parent AD_Favorite_Node_ID
|
||||
* @param treeFavoriteID - AD_Tree_Favorite_ID
|
||||
* @param tree - Tree
|
||||
* @param treeModel - FavoriteSimpleTreeModel
|
||||
* @param parentDTN - parent DefaultTreeNode
|
||||
*/
|
||||
public static void insertMenuInTree(int menuID, int parentNodeID, int treeFavoriteID, Tree tree, FavoriteSimpleTreeModel treeModel,
|
||||
DefaultTreeNode<Object> parentDTN)
|
||||
{
|
||||
MTreeFavoriteNode favNode = MTreeFavoriteNode.create( Env.getAD_Client_ID(Env.getCtx()), Env.getContextAsInt(Env.getCtx(), Env.AD_ORG_ID), treeFavoriteID,
|
||||
menuID, parentNodeID, 0, null, false, true, false);
|
||||
addNodeInTree(treeModel, tree, parentDTN, favNode);
|
||||
} // insertMenuInTree
|
||||
|
||||
/**
|
||||
* Add Node in Tree view
|
||||
*
|
||||
* @param treeModel - FavoriteSimpleTreeModel
|
||||
* @param tree - Tree
|
||||
* @param parentDTN - Parent DefaultTreeNode
|
||||
* @param favNode - MTreeFavoriteNode
|
||||
*/
|
||||
public static void addNodeInTree(FavoriteSimpleTreeModel treeModel, Tree tree, DefaultTreeNode<Object> parentDTN, MTreeFavoriteNode favNode)
|
||||
{
|
||||
String name = null;
|
||||
String action = null;
|
||||
|
||||
if (favNode.getAD_Menu_ID() > 0)
|
||||
{
|
||||
MMenu menu = (MMenu) MTable.get(Env.getCtx(), MMenu.Table_ID).getPO(favNode.getAD_Menu_ID(), null);
|
||||
name = menu.get_Translation(MMenu.COLUMNNAME_Name);
|
||||
action = menu.getAction();
|
||||
}
|
||||
else
|
||||
{
|
||||
Image img = new Image(ThemeManager.getThemeResource("images/Delete24.png"));
|
||||
favToolbar.appendChild(img);
|
||||
img.setStyle("text-align: right; width:24px; height:24px;");
|
||||
img.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Delete")));
|
||||
img.setDroppable(DELETE_FAV_DROPPABLE);
|
||||
img.addEventListener(Events.ON_DROP, this);
|
||||
name = favNode.getName();
|
||||
}
|
||||
//
|
||||
|
||||
favContent.setDroppable(FAVOURITE_DROPPABLE);
|
||||
favContent.addEventListener(Events.ON_DROP, this);
|
||||
}
|
||||
|
||||
private void createFavouritesPanel()
|
||||
{
|
||||
FavouriteController controller = FavouriteController.getInstance(Executions.getCurrent().getSession());
|
||||
List<MTreeNode> favorites = controller.getFavourites();
|
||||
for (MTreeNode nd : favorites)
|
||||
|
||||
MTreeNode mtnNew = new MTreeNode( favNode.getAD_Tree_Favorite_Node_ID(), favNode.getSeqNo(), name, name, favNode.getParent_ID(), favNode.getAD_Menu_ID(),
|
||||
action, favNode.isSummary(), favNode.isCollapsible(), favNode.isFavourite());
|
||||
|
||||
DefaultTreeNode<Object> newNode = new DefaultTreeNode<Object>(mtnNew);
|
||||
|
||||
if (parentDTN == null)
|
||||
parentDTN = treeModel.getRoot();
|
||||
|
||||
treeModel.addNode(parentDTN, newNode, 0);
|
||||
int[] path = treeModel.getPath(newNode);
|
||||
Treeitem ti = tree.renderItemByPath(path);
|
||||
tree.renderItem(ti);
|
||||
|
||||
if (mtnNew.isSummary())
|
||||
{
|
||||
addNode(nd);
|
||||
tree.setSelectedItem(ti);
|
||||
}
|
||||
|
||||
lblMsg = new Label(Msg.getMsg(Env.getCtx(), "DropMenuItemHere"));
|
||||
if(bxFav.getChildren().isEmpty()) bxFav.appendChild(lblMsg);
|
||||
|
||||
controller.addInsertedCallback(t -> onInsertedCallback(t));
|
||||
controller.addDeletedCallback(t -> onDeletedCallback(t));
|
||||
}
|
||||
|
||||
private void addNode(MTreeNode nd) {
|
||||
addNode(nd.getNode_ID(), nd.toString().trim(), nd.getDescription(), getIconFile(nd), (nd.isWindow() && !nd.isForm()));
|
||||
}
|
||||
|
||||
private void onDeletedCallback(Integer nodeId) {
|
||||
if (inCallingController) return;
|
||||
for (A link : links) {
|
||||
String id = (String) link.getAttribute(NODE_ID_ATTR);
|
||||
if (id.equals(nodeId.toString())) {
|
||||
removeLinkFromUI(link);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void onInsertedCallback(MTreeNode node) {
|
||||
if (inCallingController) return;
|
||||
for (A link : links) {
|
||||
String id = (String) link.getAttribute(NODE_ID_ATTR);
|
||||
if (id.equals(String.valueOf(node.getNode_ID()))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
addNode(node);
|
||||
}
|
||||
|
||||
protected void addNode(int nodeId, String label, String description, String imageSrc, boolean addNewBtn) {
|
||||
Hlayout hbox = new Hlayout();
|
||||
hbox.setSclass("favourites-item");
|
||||
hbox.setSpacing("0px");
|
||||
hbox.setValign("middle");
|
||||
bxFav.appendChild(hbox);
|
||||
|
||||
A btnFavItem = new A();
|
||||
btnFavItem.setAttribute(NODE_ID_ATTR, String.valueOf(nodeId));
|
||||
hbox.appendChild(btnFavItem);
|
||||
btnFavItem.setLabel(label);
|
||||
btnFavItem.setTooltiptext(description);
|
||||
if (ThemeManager.isUseFontIconForImage())
|
||||
btnFavItem.setIconSclass(imageSrc);
|
||||
else if (imageSrc.startsWith(ThemeManager.THEME_PATH_PREFIX))
|
||||
btnFavItem.setImage(imageSrc);
|
||||
else
|
||||
btnFavItem.setImage(ThemeManager.getThemeResource(imageSrc));
|
||||
btnFavItem.setDraggable(DELETE_FAV_DROPPABLE);
|
||||
btnFavItem.addEventListener(Events.ON_CLICK, this);
|
||||
btnFavItem.addEventListener(Events.ON_DROP, this);
|
||||
btnFavItem.setSclass("menu-href");
|
||||
|
||||
if (addNewBtn)
|
||||
else
|
||||
{
|
||||
Toolbarbutton newBtn = new Toolbarbutton(null, ThemeManager.getThemeResource("images/New16.png"));
|
||||
if (ThemeManager.isUseFontIconForImage())
|
||||
{
|
||||
newBtn.setImage(null);
|
||||
newBtn.setIconSclass("z-icon-New");
|
||||
}
|
||||
newBtn.setAttribute(NODE_ID_ATTR, String.valueOf(nodeId));
|
||||
hbox.appendChild(newBtn);
|
||||
newBtn.addEventListener(Events.ON_CLICK, this);
|
||||
newBtn.setSclass("fav-new-btn");
|
||||
newBtn.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "New")));
|
||||
tree.setSelectedItem(ti.getParentItem());
|
||||
path = treeModel.getPath(treeModel.getParent(newNode));
|
||||
}
|
||||
links.add(btnFavItem);
|
||||
}
|
||||
|
||||
public void onEvent(Event event)
|
||||
{
|
||||
Component comp = event.getTarget();
|
||||
String eventName = event.getName();
|
||||
|
||||
if(eventName.equals(Events.ON_CLICK))
|
||||
{
|
||||
doOnClick(comp);
|
||||
}
|
||||
// Elaine 2008/07/24
|
||||
else if(eventName.equals(Events.ON_DROP))
|
||||
{
|
||||
DropEvent de = (DropEvent) event;
|
||||
Component dragged = de.getDragged();
|
||||
|
||||
if(comp instanceof Panelchildren)
|
||||
{
|
||||
if(dragged instanceof Treerow)
|
||||
{
|
||||
Treerow treerow = (Treerow) dragged;
|
||||
Treeitem treeitem = (Treeitem) treerow.getParent();
|
||||
|
||||
addItem(treeitem);
|
||||
}
|
||||
}
|
||||
else if(comp instanceof Image || comp instanceof Label)
|
||||
{
|
||||
if(dragged instanceof A)
|
||||
{
|
||||
A btn = (A) dragged;
|
||||
removeLink(btn);
|
||||
}
|
||||
}
|
||||
}
|
||||
//
|
||||
}
|
||||
|
||||
private void doOnClick(Component comp) {
|
||||
if(comp instanceof A)
|
||||
{
|
||||
A btn = (A) comp;
|
||||
|
||||
int menuId = 0;
|
||||
try
|
||||
{
|
||||
menuId = Integer.valueOf((String)btn.getAttribute(NODE_ID_ATTR));
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
||||
}
|
||||
|
||||
if(menuId > 0) SessionManager.getAppDesktop().onMenuSelected(menuId);
|
||||
}
|
||||
else if (comp instanceof Toolbarbutton) {
|
||||
Toolbarbutton btn = (Toolbarbutton) comp;
|
||||
|
||||
int menuId = 0;
|
||||
try
|
||||
{
|
||||
menuId = Integer.valueOf((String)btn.getAttribute(NODE_ID_ATTR));
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
||||
}
|
||||
|
||||
if(menuId > 0)
|
||||
{
|
||||
try
|
||||
{
|
||||
MMenu menu = new MMenu(Env.getCtx(), menuId, null);
|
||||
|
||||
MQuery query = new MQuery("");
|
||||
query.addRestriction("1=2");
|
||||
query.setRecordCount(0);
|
||||
|
||||
SessionManager.getAppDesktop().openWindow(menu.getAD_Window_ID(), query, new Callback<ADWindow>() {
|
||||
|
||||
@Override
|
||||
public void onCallback(ADWindow result) {
|
||||
if(result == null)
|
||||
return;
|
||||
|
||||
result.getADWindowContent().onNew();
|
||||
ADTabpanel adtabpanel = (ADTabpanel) result.getADWindowContent().getADTab().getSelectedTabpanel();
|
||||
adtabpanel.focusToFirstEditor(false);
|
||||
}
|
||||
});
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new ApplicationException(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void removeLink(A btn) {
|
||||
String value = (String) btn.getAttribute(NODE_ID_ATTR);
|
||||
|
||||
if(value != null)
|
||||
{
|
||||
int Node_ID = Integer.valueOf(value.toString());
|
||||
FavouriteController controller = FavouriteController.getInstance(Executions.getCurrent().getSession());
|
||||
inCallingController = true;
|
||||
if(controller.removeNode(Node_ID))
|
||||
{
|
||||
removeLinkFromUI(btn);
|
||||
}
|
||||
inCallingController = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void removeLinkFromUI(A btn) {
|
||||
if (btn.getParent() instanceof Hlayout)
|
||||
bxFav.removeChild(btn.getParent());
|
||||
|
||||
if(bxFav.getChildren().isEmpty())
|
||||
bxFav.appendChild(lblMsg);
|
||||
|
||||
bxFav.invalidate();
|
||||
links.remove(btn);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add menu treeitem into the user favorite panel
|
||||
* @param treeitem
|
||||
*/
|
||||
public void addItem(Treeitem treeitem) {
|
||||
Object value = treeitem.getValue();
|
||||
if(value != null)
|
||||
{
|
||||
int Node_ID = Integer.valueOf(value.toString());
|
||||
FavouriteController controller = FavouriteController.getInstance(Executions.getCurrent().getSession());
|
||||
inCallingController = true;
|
||||
if(controller.addNode(Node_ID))
|
||||
{
|
||||
String menuType = (String) treeitem.getAttribute("menu.type");
|
||||
boolean isWindow = menuType != null && menuType.equals("window");
|
||||
|
||||
String label = null;
|
||||
String image = null;
|
||||
if (treeitem.getLabel() != null && treeitem.getLabel().trim().length() > 0)
|
||||
{
|
||||
label = treeitem.getLabel().trim();
|
||||
image = treeitem.getImage();
|
||||
}
|
||||
else
|
||||
{
|
||||
A link = (A) treeitem.getTreerow().getFirstChild().getFirstChild();
|
||||
label = link.getLabel();
|
||||
if (ThemeManager.isUseFontIconForImage() && link.getIconSclass() != null)
|
||||
image = link.getIconSclass();
|
||||
else
|
||||
image = link.getImage();
|
||||
}
|
||||
|
||||
addNode(Node_ID, label, treeitem.getTooltiptext(), image, isWindow);
|
||||
} else {
|
||||
FDialog.error(0, this, "BookmarkExist", null);
|
||||
}
|
||||
inCallingController = false;
|
||||
}
|
||||
}
|
||||
|
||||
private String getIconFile(MTreeNode mt) {
|
||||
if (ThemeManager.isUseFontIconForImage()) {
|
||||
return getIconSclass(mt);
|
||||
}
|
||||
if (mt.isWindow())
|
||||
return "images/mWindow.png";
|
||||
if (mt.isReport())
|
||||
return "images/mReport.png";
|
||||
if (mt.isProcess() || mt.isTask())
|
||||
return "images/mProcess.png";
|
||||
if (mt.isWorkFlow())
|
||||
return "images/mWorkFlow.png";
|
||||
if (mt.isForm())
|
||||
return "images/mForm.png";
|
||||
if (mt.isInfo())
|
||||
return "images/mInfo.png";
|
||||
return "images/mWindow.png";
|
||||
}
|
||||
|
||||
private String getIconSclass(MTreeNode mt) {
|
||||
if (mt.isWindow())
|
||||
return "z-icon-Window";
|
||||
if (mt.isReport())
|
||||
return "z-icon-Report";
|
||||
if (mt.isProcess() || mt.isTask())
|
||||
return "z-icon-Task";
|
||||
if (mt.isWorkFlow())
|
||||
return "z-icon-WorkFlow";
|
||||
if (mt.isForm())
|
||||
return "z-icon-Form";
|
||||
if (mt.isInfo())
|
||||
return "z-icon-Info";
|
||||
return "z-icon-Window";
|
||||
}
|
||||
treeModel.addSelectionPath(path);
|
||||
Events.sendEvent(tree, new Event(Events.ON_SELECT, tree));
|
||||
} // addNodeInTree
|
||||
}
|
||||
|
|
|
@ -0,0 +1,275 @@
|
|||
/******************************************************************************
|
||||
* Copyright (C) 2016 Logilite Technologies LLP *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
*****************************************************************************/
|
||||
|
||||
package org.adempiere.webui.dashboard;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import org.adempiere.webui.component.Checkbox;
|
||||
import org.adempiere.webui.component.ConfirmPanel;
|
||||
import org.adempiere.webui.component.FavoriteSimpleTreeModel;
|
||||
import org.adempiere.webui.component.Panel;
|
||||
import org.adempiere.webui.component.Row;
|
||||
import org.adempiere.webui.component.Window;
|
||||
import org.adempiere.webui.util.ZKUpdateUtil;
|
||||
import org.compiere.model.MTable;
|
||||
import org.compiere.model.MTreeFavorite;
|
||||
import org.compiere.model.MTreeFavoriteNode;
|
||||
import org.compiere.model.MTreeNode;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
import org.compiere.util.Util;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
import org.zkoss.zul.Borderlayout;
|
||||
import org.zkoss.zul.Center;
|
||||
import org.zkoss.zul.DefaultTreeNode;
|
||||
import org.zkoss.zul.Grid;
|
||||
import org.zkoss.zul.Label;
|
||||
import org.zkoss.zul.Rows;
|
||||
import org.zkoss.zul.South;
|
||||
import org.zkoss.zul.Textbox;
|
||||
import org.zkoss.zul.Tree;
|
||||
import org.zkoss.zul.TreeNode;
|
||||
import org.zkoss.zul.event.TreeDataEvent;
|
||||
|
||||
/**
|
||||
* Favourite folder add or edit dialog
|
||||
*
|
||||
* @author Logilite Technologies
|
||||
*/
|
||||
public class FavouriteFolderDialog extends Window implements EventListener<Event>
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -2838644830113603288L;
|
||||
|
||||
private Textbox txtFolder;
|
||||
private Checkbox chkAddAsRoot;
|
||||
private Checkbox chkDefaultExpanded;
|
||||
private Label lblSelectedNodeInfo = new Label();
|
||||
|
||||
private Borderlayout mainLayout = new Borderlayout();
|
||||
private Panel centerPanel = new Panel();
|
||||
private Grid grid = new Grid();
|
||||
private ConfirmPanel confirmPanel = new ConfirmPanel(true);
|
||||
|
||||
private MTreeFavoriteNode favNodeSummary;
|
||||
private FavoriteSimpleTreeModel treeModel;
|
||||
private Tree tree;
|
||||
|
||||
private boolean isAdd;
|
||||
|
||||
public FavouriteFolderDialog(boolean isAdd, FavoriteSimpleTreeModel treeModel, Tree tree)
|
||||
{
|
||||
super();
|
||||
|
||||
this.isAdd = isAdd;
|
||||
this.treeModel = treeModel;
|
||||
this.tree = tree;
|
||||
|
||||
//
|
||||
init();
|
||||
initAttributes();
|
||||
}
|
||||
|
||||
private void init()
|
||||
{
|
||||
if (isAdd)
|
||||
this.setTitle(Msg.translate(Env.getCtx(), "AddFolder"));
|
||||
else
|
||||
this.setTitle(Msg.translate(Env.getCtx(), "EditFolder"));
|
||||
|
||||
this.setBorder("normal");
|
||||
this.setShadow(true);
|
||||
this.setSizable(true);
|
||||
this.setMaximizable(true);
|
||||
this.setMode(Window.MODE_HIGHLIGHTED);
|
||||
this.setSclass("popup-dialog fav-add-edit-dialog");
|
||||
ZKUpdateUtil.setWindowWidthX(this, 325);
|
||||
ZKUpdateUtil.setWindowHeightX(this, 225);
|
||||
|
||||
mainLayout.setParent(this);
|
||||
|
||||
grid.setOddRowSclass("even");
|
||||
centerPanel.appendChild(grid);
|
||||
|
||||
Center center = new Center();
|
||||
center.setSclass("dialog-content");
|
||||
center.appendChild(centerPanel);
|
||||
center.setParent(mainLayout);
|
||||
|
||||
South south = new South();
|
||||
south.setSclass("dialog-footer");
|
||||
south.appendChild(confirmPanel);
|
||||
south.setParent(mainLayout);
|
||||
|
||||
confirmPanel.addActionListener(Events.ON_CLICK, this);
|
||||
|
||||
//
|
||||
Rows rows = new Rows();
|
||||
rows.setParent(grid);
|
||||
|
||||
Row row = new Row();
|
||||
row.setParent(rows);
|
||||
row.appendChild(lblSelectedNodeInfo);
|
||||
|
||||
if (isAdd)
|
||||
{
|
||||
chkAddAsRoot = new Checkbox();
|
||||
chkAddAsRoot.setClass("fav-chkbox");
|
||||
chkAddAsRoot.setText(Msg.getMsg(Env.getCtx(), "AddAsRoot"));
|
||||
chkAddAsRoot.setTooltiptext(Msg.getMsg(Env.getCtx(),"Tooltip_AddAsRoot"));
|
||||
row = new Row();
|
||||
row.setParent(rows);
|
||||
row.appendChild(chkAddAsRoot);
|
||||
}
|
||||
|
||||
chkDefaultExpanded = new Checkbox();
|
||||
chkDefaultExpanded.setClass("fav-chkbox");
|
||||
chkDefaultExpanded.setText(Msg.getMsg(Env.getCtx(), "DefaultExpanded"));
|
||||
chkDefaultExpanded.setTooltiptext(Msg.getMsg(Env.getCtx(), "Tooltip_DefaultExpanded"));
|
||||
row = new Row();
|
||||
row.setParent(rows);
|
||||
row.appendChild(chkDefaultExpanded);
|
||||
|
||||
txtFolder = new Textbox();
|
||||
txtFolder.setClass("fav-folder-textbox");
|
||||
txtFolder.setPlaceholder(Msg.getMsg(Env.getCtx(), "AddFolderFavTree"));
|
||||
txtFolder.setTooltiptext(Msg.getMsg(Env.getCtx(), "AddFolderFavTree"));
|
||||
txtFolder.addEventListener(Events.ON_OK, this);
|
||||
row = new Row();
|
||||
row.setParent(rows);
|
||||
row.appendChild(txtFolder);
|
||||
} // init
|
||||
|
||||
private void initAttributes()
|
||||
{
|
||||
String MSG_CURRENT_FOLDER_SELECTED = Msg.getMsg(Env.getCtx(), "CurrentFolderSelected");
|
||||
|
||||
int selectedNodeID = DPFavourites.getCurrentSelectedNodeID(tree);
|
||||
if (selectedNodeID > 0)
|
||||
{
|
||||
favNodeSummary = (MTreeFavoriteNode) MTable.get(Env.getCtx(), MTreeFavoriteNode.Table_ID).getPO(selectedNodeID, null);
|
||||
if (!favNodeSummary.isSummary())
|
||||
{
|
||||
if (favNodeSummary.getParent_ID() > 0)
|
||||
{
|
||||
favNodeSummary = (MTreeFavoriteNode) favNodeSummary.getParent();
|
||||
}
|
||||
else
|
||||
{
|
||||
lblSelectedNodeInfo.setValue(MSG_CURRENT_FOLDER_SELECTED + " : [ Root ]");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
chkDefaultExpanded.setSelected(!favNodeSummary.isCollapsible());
|
||||
lblSelectedNodeInfo.setValue(MSG_CURRENT_FOLDER_SELECTED + " : " + favNodeSummary.getName());
|
||||
|
||||
if (!isAdd)
|
||||
txtFolder.setText(favNodeSummary.getName());
|
||||
}
|
||||
else
|
||||
{
|
||||
lblSelectedNodeInfo.setValue(MSG_CURRENT_FOLDER_SELECTED + " : [ Root ]");
|
||||
}
|
||||
} // initAttributes
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception
|
||||
{
|
||||
if (event.getTarget().getId().equals(ConfirmPanel.A_OK) || (event.getTarget() == txtFolder && Events.ON_OK.equals(event.getName())))
|
||||
{
|
||||
if (Util.isEmpty(txtFolder.getText(), true))
|
||||
{
|
||||
txtFolder.setFocus(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (isAdd)
|
||||
{
|
||||
insertFolder(txtFolder.getText());
|
||||
}
|
||||
else
|
||||
{
|
||||
favNodeSummary.setIsCollapsible(!chkDefaultExpanded.isChecked());
|
||||
favNodeSummary.setName(txtFolder.getText());
|
||||
favNodeSummary.saveEx();
|
||||
|
||||
//
|
||||
Set<TreeNode<Object>> nodeSelection = treeModel.getSelection();
|
||||
for (TreeNode<Object> tNode : nodeSelection)
|
||||
{
|
||||
MTreeNode mtNode = (MTreeNode) tNode.getData();
|
||||
mtNode.setName(favNodeSummary.getName());
|
||||
mtNode.setCollapsible(favNodeSummary.isCollapsible());
|
||||
}
|
||||
|
||||
int path[] = treeModel.getSelectionPath();
|
||||
if (path != null && path.length > 0)
|
||||
{
|
||||
DefaultTreeNode<Object> parentNode = treeModel.getRoot();
|
||||
int index = path.length - 1;
|
||||
for (int i = 0; i < index; i++)
|
||||
{
|
||||
parentNode = (DefaultTreeNode<Object>) treeModel.getChild(parentNode, path[i]);
|
||||
}
|
||||
treeModel.fireEvent(TreeDataEvent.CONTENTS_CHANGED, treeModel.getPath(parentNode), path[index], path[index]);
|
||||
}
|
||||
}
|
||||
|
||||
txtFolder.setText("");
|
||||
//
|
||||
dispose();
|
||||
}
|
||||
}
|
||||
else if (event.getTarget().getId().equals(ConfirmPanel.A_CANCEL))
|
||||
{
|
||||
dispose();
|
||||
}
|
||||
} // onEvent
|
||||
|
||||
/**
|
||||
* Insert Folder as Node to Tree.
|
||||
*/
|
||||
private void insertFolder(String folderName)
|
||||
{
|
||||
int parentID = 0;
|
||||
if (!chkAddAsRoot.isChecked())
|
||||
{
|
||||
parentID = DPFavourites.getCurrentSelectedNodeID(tree);
|
||||
if (parentID > 0)
|
||||
{
|
||||
favNodeSummary = (MTreeFavoriteNode) MTable.get(Env.getCtx(), MTreeFavoriteNode.Table_ID).getPO(parentID, null);
|
||||
if (!favNodeSummary.isSummary())
|
||||
{
|
||||
if (favNodeSummary.getParent_ID() > 0)
|
||||
parentID = favNodeSummary.getParent_ID();
|
||||
else
|
||||
parentID = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MTreeFavoriteNode favNode = MTreeFavoriteNode.create( Env.getAD_Client_ID(Env.getCtx()), Env.getAD_Org_ID(Env.getCtx()),
|
||||
MTreeFavorite.getFavoriteTreeID(Env.getAD_User_ID(Env.getCtx())),
|
||||
0, parentID, 0, folderName, true, !chkDefaultExpanded.isChecked(), false);
|
||||
//
|
||||
DPFavourites.addNodeInTree(treeModel, tree, treeModel.find(null, favNode.getParent_ID()), favNode);
|
||||
} // insertFolder
|
||||
|
||||
}
|
|
@ -0,0 +1,674 @@
|
|||
/******************************************************************************
|
||||
* Copyright (C) 2016 Logilite Technologies LLP *
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
*****************************************************************************/
|
||||
|
||||
package org.adempiere.webui.dashboard;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.adempiere.exceptions.DBException;
|
||||
import org.adempiere.webui.ClientInfo;
|
||||
import org.adempiere.webui.LayoutUtils;
|
||||
import org.adempiere.webui.component.Button;
|
||||
import org.adempiere.webui.component.ConfirmPanel;
|
||||
import org.adempiere.webui.component.Label;
|
||||
import org.adempiere.webui.component.ListHead;
|
||||
import org.adempiere.webui.component.ListHeader;
|
||||
import org.adempiere.webui.component.ListItem;
|
||||
import org.adempiere.webui.component.Listbox;
|
||||
import org.adempiere.webui.component.Panel;
|
||||
import org.adempiere.webui.component.SimpleListModel;
|
||||
import org.adempiere.webui.component.Window;
|
||||
import org.adempiere.webui.factory.ButtonFactory;
|
||||
import org.adempiere.webui.util.ZKUpdateUtil;
|
||||
import org.compiere.model.MMenu;
|
||||
import org.compiere.model.MRole;
|
||||
import org.compiere.model.MTable;
|
||||
import org.compiere.model.MTreeFavorite;
|
||||
import org.compiere.model.MTreeFavoriteNode;
|
||||
import org.compiere.model.PO;
|
||||
import org.compiere.model.Query;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
import org.compiere.util.NamePair;
|
||||
import org.zkoss.zk.au.out.AuFocus;
|
||||
import org.zkoss.zk.ui.event.DropEvent;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
import org.zkoss.zk.ui.util.Clients;
|
||||
import org.zkoss.zul.Borderlayout;
|
||||
import org.zkoss.zul.Center;
|
||||
import org.zkoss.zul.Hlayout;
|
||||
import org.zkoss.zul.South;
|
||||
|
||||
/**
|
||||
* Favorite node login to open menu and its sequence configuration dialog
|
||||
*
|
||||
* @author Logilite Technologies
|
||||
*/
|
||||
public class LoginOpenSequenceDialog extends Window
|
||||
{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -6200912526954948898L;
|
||||
|
||||
/** Logger */
|
||||
protected static final CLogger log = CLogger.getCLogger(LoginOpenSequenceDialog.class);
|
||||
|
||||
private Button bAdd = ButtonFactory.createNamedButton("MoveRight", true, true);
|
||||
private Button bRemove = ButtonFactory.createNamedButton("MoveLeft", true, true);
|
||||
private Button bUp = ButtonFactory.createNamedButton("MoveUp", true, true);
|
||||
private Button bDown = ButtonFactory.createNamedButton("MoveDown", true, true);
|
||||
|
||||
private ConfirmPanel confirmPanel = new ConfirmPanel(true, false, true, false, false, false);
|
||||
|
||||
private SimpleListModel noModel = new SimpleListModel();
|
||||
private SimpleListModel yesModel = new SimpleListModel();
|
||||
|
||||
private Listbox noList = new Listbox();
|
||||
private Listbox yesList = new Listbox();
|
||||
|
||||
private Label noLabel = new Label();
|
||||
private Label yesLabel = new Label();
|
||||
|
||||
private ArrayList<Integer> autoOpenSeqs = new ArrayList<Integer>();
|
||||
private int m_AD_User_ID;
|
||||
|
||||
/**
|
||||
* Favorite node arrange login open sequence constructor
|
||||
*
|
||||
* @param AD_User_ID
|
||||
*/
|
||||
public LoginOpenSequenceDialog(int AD_User_ID)
|
||||
{
|
||||
m_AD_User_ID = AD_User_ID;
|
||||
|
||||
this.setTitle(Msg.translate(Env.getCtx(), "LoginOpenSeqNo"));
|
||||
this.setBorder("normal");
|
||||
this.setPosition("center");
|
||||
this.setShadow(true);
|
||||
this.setSizable(true);
|
||||
this.setClosable(true);
|
||||
this.setMaximizable(true);
|
||||
this.setSclass("popup-dialog fav-login-open-seq-dialog");
|
||||
this.setStyle("position: relative; margin: none; border: none; padding: none;");
|
||||
ZKUpdateUtil.setWindowWidthX(this, 650);
|
||||
ZKUpdateUtil.setWindowHeightX(this, 450);
|
||||
|
||||
//
|
||||
init();
|
||||
} //
|
||||
|
||||
/**
|
||||
* Layout design
|
||||
*/
|
||||
private void init()
|
||||
{
|
||||
// Center Part
|
||||
Hlayout hlayout = new Hlayout();
|
||||
hlayout.appendChild(noList);
|
||||
hlayout.appendChild(yesList);
|
||||
ZKUpdateUtil.setVflex(hlayout, "1");
|
||||
ZKUpdateUtil.setHflex(hlayout, "1");
|
||||
|
||||
Center center = new Center();
|
||||
center.setSclass("dialog-content");
|
||||
center.appendChild(hlayout);
|
||||
|
||||
// South part
|
||||
Panel southPanel = new Panel();
|
||||
southPanel.appendChild(confirmPanel);
|
||||
|
||||
South south = new South();
|
||||
south.setSclass("dialog-footer");
|
||||
south.appendChild(southPanel);
|
||||
|
||||
// Main Layout
|
||||
Borderlayout layout = new Borderlayout();
|
||||
ZKUpdateUtil.setHflex(layout, "1");
|
||||
ZKUpdateUtil.setVflex(layout, "1");
|
||||
layout.appendChild(center);
|
||||
layout.appendChild(south);
|
||||
this.appendChild(layout);
|
||||
|
||||
// Yes or No list items
|
||||
yesModel.setMultiple(true);
|
||||
noModel.setMultiple(true);
|
||||
|
||||
noLabel.setValue(Msg.getMsg(Env.getCtx(), "Available"));
|
||||
yesLabel.setValue(Msg.getMsg(Env.getCtx(), "Selected"));
|
||||
|
||||
ZKUpdateUtil.setHflex(noList, "1");
|
||||
ZKUpdateUtil.setVflex(noList, true);
|
||||
|
||||
ZKUpdateUtil.setHflex(yesList, "1");
|
||||
ZKUpdateUtil.setVflex(yesList, true);
|
||||
|
||||
EventListener<Event> mouseListener = new EventListener<Event>() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception
|
||||
{
|
||||
if (Events.ON_DOUBLE_CLICK.equals(event.getName()))
|
||||
{
|
||||
migrateValueAcrossLists(event);
|
||||
}
|
||||
}
|
||||
};
|
||||
yesList.addDoubleClickListener(mouseListener);
|
||||
noList.addDoubleClickListener(mouseListener);
|
||||
|
||||
//
|
||||
EventListener<Event> actionListener = new EventListener<Event>() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception
|
||||
{
|
||||
migrateValueAcrossLists(event);
|
||||
}
|
||||
};
|
||||
|
||||
LayoutUtils.addSclass("btn-small", bAdd);
|
||||
LayoutUtils.addSclass("btn-sorttab small-img-btn", bAdd);
|
||||
bAdd.addEventListener(Events.ON_CLICK, actionListener);
|
||||
|
||||
LayoutUtils.addSclass("btn-small", bRemove);
|
||||
LayoutUtils.addSclass("btn-sorttab small-img-btn", bRemove);
|
||||
bRemove.addEventListener(Events.ON_CLICK, actionListener);
|
||||
|
||||
EventListener<Event> crossListMouseListener = new DragListener();
|
||||
yesList.addOnDropListener(crossListMouseListener);
|
||||
noList.addOnDropListener(crossListMouseListener);
|
||||
|
||||
if (!ClientInfo.isMobile())
|
||||
{
|
||||
yesList.setItemDraggable(true);
|
||||
noList.setItemDraggable(true);
|
||||
}
|
||||
|
||||
actionListener = new EventListener<Event>() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception
|
||||
{
|
||||
migrateValueWithinYesList(event);
|
||||
}
|
||||
};
|
||||
|
||||
LayoutUtils.addSclass("btn-small", bUp);
|
||||
LayoutUtils.addSclass("btn-sorttab small-img-btn", bUp);
|
||||
bUp.addEventListener(Events.ON_CLICK, actionListener);
|
||||
|
||||
LayoutUtils.addSclass("btn-small", bDown);
|
||||
LayoutUtils.addSclass("btn-sorttab small-img-btn", bDown);
|
||||
bDown.addEventListener(Events.ON_CLICK, actionListener);
|
||||
|
||||
//
|
||||
ListHead listHead = new ListHead();
|
||||
listHead.setParent(yesList);
|
||||
|
||||
ListHeader listHeader = new ListHeader();
|
||||
listHeader.appendChild(yesLabel);
|
||||
|
||||
Hlayout yesButtonLayout = new Hlayout();
|
||||
yesButtonLayout.appendChild(bUp);
|
||||
yesButtonLayout.appendChild(bDown);
|
||||
yesButtonLayout.setStyle("display: inline-block; float: right;");
|
||||
listHeader.appendChild(yesButtonLayout);
|
||||
listHeader.setParent(listHead);
|
||||
|
||||
//
|
||||
listHead = new ListHead();
|
||||
listHead.setParent(noList);
|
||||
|
||||
listHeader = new ListHeader();
|
||||
listHeader.appendChild(noLabel);
|
||||
listHeader.setSort("auto");
|
||||
listHeader.setSortDirection("ascending");
|
||||
// http://books.zkoss.org/wiki/ZK%20Configuration%20Reference/zk.xml/The%20Library%20Properties/org.zkoss.zul.listbox.autoSort
|
||||
noList.setAttribute("org.zkoss.zul.listbox.autoSort", "true");
|
||||
Hlayout noButtonLayout = new Hlayout();
|
||||
noButtonLayout.appendChild(bRemove);
|
||||
noButtonLayout.appendChild(bAdd);
|
||||
noButtonLayout.setStyle("display: inline-block; float: right;");
|
||||
listHeader.appendChild(noButtonLayout);
|
||||
listHeader.setParent(listHead);
|
||||
|
||||
// Confirm Panel listener
|
||||
EventListener<Event> onClickListener = new EventListener<Event>() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception
|
||||
{
|
||||
if (event.getTarget().equals(confirmPanel.getButton(ConfirmPanel.A_OK)))
|
||||
{
|
||||
saveData();
|
||||
}
|
||||
else if (event.getTarget().equals(confirmPanel.getButton(ConfirmPanel.A_CANCEL)))
|
||||
{
|
||||
detach();
|
||||
}
|
||||
else if (event.getTarget().equals(confirmPanel.getButton(ConfirmPanel.A_RESET)))
|
||||
{
|
||||
loadData();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
confirmPanel.addActionListener(onClickListener);
|
||||
} // init
|
||||
|
||||
/**
|
||||
* Load data into model
|
||||
*/
|
||||
public void loadData()
|
||||
{
|
||||
autoOpenSeqs.clear();
|
||||
yesModel.removeAllElements();
|
||||
noModel.removeAllElements();
|
||||
|
||||
int favTreeID = MTreeFavorite.getFavoriteTreeID(m_AD_User_ID);
|
||||
MRole role = MRole.get(Env.getCtx(), Env.getAD_Role_ID(Env.getCtx()));
|
||||
|
||||
// get login open seq no nodes
|
||||
Query query = new Query(Env.getCtx(), MTreeFavoriteNode.Table_Name, "AD_Tree_Favorite_ID=? AND AD_Menu_ID>0 AND LoginOpenSeqNo>=0", null);
|
||||
query.setOrderBy(MTreeFavoriteNode.COLUMNNAME_LoginOpenSeqNo);
|
||||
query.setOnlyActiveRecords(true);
|
||||
query.setParameters(new Object[] { favTreeID });
|
||||
|
||||
for (int favNodeID : query.getIDs())
|
||||
{
|
||||
autoOpenSeqs.add(favNodeID);
|
||||
}
|
||||
|
||||
// get all menu nodes
|
||||
query = new Query(Env.getCtx(), MTreeFavoriteNode.Table_Name, "AD_Tree_Favorite_ID=? AND AD_Menu_ID>0 ", null);
|
||||
query.setOrderBy(MTreeFavoriteNode.COLUMNNAME_LoginOpenSeqNo);
|
||||
query.setOnlyActiveRecords(true);
|
||||
query.setParameters(new Object[] { favTreeID });
|
||||
List<MTreeFavoriteNode> lsFavNode = null;
|
||||
try {
|
||||
PO.setCrossTenantSafe();
|
||||
lsFavNode = query.list();
|
||||
}finally {
|
||||
PO.clearCrossTenantSafe();
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
HashMap<Integer, ListElement> currSel = new HashMap<Integer, LoginOpenSequenceDialog.ListElement>();
|
||||
|
||||
for (MTreeFavoriteNode favNode : lsFavNode)
|
||||
{
|
||||
int key = favNode.getAD_Tree_Favorite_Node_ID();
|
||||
MMenu menu = (MMenu) MTable.get(Env.getCtx(), MMenu.Table_ID).getPO(favNode.getAD_Menu_ID(), null);
|
||||
|
||||
Boolean access = MTreeFavorite.getAccessForMenuItem(role, menu);
|
||||
if (access != null && access.booleanValue())
|
||||
{
|
||||
ListElement pp = new ListElement(key, menu.get_Translation(MMenu.COLUMNNAME_Name));
|
||||
if (autoOpenSeqs != null && autoOpenSeqs.size() > 0)
|
||||
{
|
||||
if (autoOpenSeqs.contains(key))
|
||||
{
|
||||
currSel.put(key, pp);
|
||||
}
|
||||
else
|
||||
{
|
||||
noModel.addElement(pp);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
noModel.addElement(pp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (autoOpenSeqs != null)
|
||||
{
|
||||
for (int key : autoOpenSeqs)
|
||||
{
|
||||
if (currSel.get(key) != null)
|
||||
{
|
||||
yesModel.addElement(currSel.get(key));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (DBException e)
|
||||
{
|
||||
log.log(Level.SEVERE, e.getMessage(), e);
|
||||
}
|
||||
|
||||
bAdd.setEnabled(true);
|
||||
bRemove.setEnabled(true);
|
||||
bUp.setEnabled(true);
|
||||
bDown.setEnabled(true);
|
||||
yesList.setEnabled(true);
|
||||
noList.setEnabled(true);
|
||||
|
||||
yesList.setItemRenderer(yesModel);
|
||||
yesList.setModel(yesModel);
|
||||
noList.setItemRenderer(noModel);
|
||||
noList.setModel(noModel);
|
||||
} // loadData
|
||||
|
||||
/**
|
||||
* @param event - Event
|
||||
*/
|
||||
void migrateValueAcrossLists(Event event)
|
||||
{
|
||||
Object source = event.getTarget();
|
||||
if (source instanceof ListItem)
|
||||
{
|
||||
source = ((ListItem) source).getListbox();
|
||||
}
|
||||
Listbox listFrom = (source == bAdd || source == noList) ? noList : yesList;
|
||||
Listbox listTo = (source == bAdd || source == noList) ? yesList : noList;
|
||||
int endIndex = yesList.getIndexOfItem(listTo.getSelectedItem());
|
||||
// List to is empty.
|
||||
if (endIndex < 0)
|
||||
endIndex = 0;
|
||||
|
||||
migrateLists(listFrom, listTo, endIndex);
|
||||
} // migrateValueAcrossLists
|
||||
|
||||
/**
|
||||
* @param listFrom
|
||||
* @param listTo
|
||||
* @param endIndex
|
||||
*/
|
||||
void migrateLists(Listbox listFrom, Listbox listTo, int endIndex)
|
||||
{
|
||||
int index = 0;
|
||||
SimpleListModel lmFrom = (SimpleListModel) listFrom.getModel();
|
||||
SimpleListModel lmTo = (SimpleListModel) listTo.getModel();
|
||||
Set<?> selectedItems = listFrom.getSelectedItems();
|
||||
List<ListElement> selObjects = new ArrayList<ListElement>();
|
||||
for (Object obj : selectedItems)
|
||||
{
|
||||
ListItem listItem = (ListItem) obj;
|
||||
index = listFrom.getIndexOfItem(listItem);
|
||||
ListElement selObject = (ListElement) lmFrom.getElementAt(index);
|
||||
selObjects.add(selObject);
|
||||
}
|
||||
for (ListElement selObject : selObjects)
|
||||
{
|
||||
if (selObject == null || !selObject.isUpdateable())
|
||||
continue;
|
||||
|
||||
lmFrom.removeElement(selObject);
|
||||
lmTo.add(endIndex, selObject);
|
||||
endIndex++;
|
||||
index = lmTo.indexOf(selObject);
|
||||
listTo.setSelectedIndex(index);
|
||||
}
|
||||
} // migrateLists
|
||||
|
||||
/**
|
||||
* Move within Yes List with Drag Event and Multiple Choice
|
||||
*
|
||||
* @param event - Event
|
||||
*/
|
||||
void migrateValueWithinYesList(int endIndex, List<ListElement> selObjects)
|
||||
{
|
||||
int iniIndex = 0;
|
||||
Arrays.sort(selObjects.toArray());
|
||||
ListElement endObject = (ListElement) yesModel.getElementAt(endIndex);
|
||||
for (ListElement selected : selObjects)
|
||||
{
|
||||
iniIndex = yesModel.indexOf(selected);
|
||||
ListElement selObject = (ListElement) yesModel.getElementAt(iniIndex);
|
||||
yesModel.removeElement(selObject);
|
||||
endIndex = yesModel.indexOf(endObject);
|
||||
yesModel.add(endIndex, selObject);
|
||||
}
|
||||
} // migrateValueWithinYesList
|
||||
|
||||
/**
|
||||
* Move within Yes List
|
||||
*
|
||||
* @param event - Event
|
||||
*/
|
||||
void migrateValueWithinYesList(Event event)
|
||||
{
|
||||
Object[] selObjects = yesList.getSelectedItems().toArray();
|
||||
|
||||
if (selObjects == null)
|
||||
return;
|
||||
int length = selObjects.length;
|
||||
if (length == 0)
|
||||
return;
|
||||
//
|
||||
int[] indices = yesList.getSelectedIndices();
|
||||
Arrays.sort(indices);
|
||||
//
|
||||
boolean change = false;
|
||||
//
|
||||
Object source = event.getTarget();
|
||||
if (source == bUp)
|
||||
{
|
||||
for (int i = 0; i < length; i++)
|
||||
{
|
||||
int index = indices[i];
|
||||
if (index == 0)
|
||||
break;
|
||||
ListElement selObject = (ListElement) yesModel.getElementAt(index);
|
||||
ListElement newObject = (ListElement) yesModel.getElementAt(index - 1);
|
||||
if (!selObject.isUpdateable() || !newObject.isUpdateable())
|
||||
break;
|
||||
yesModel.setElementAt(newObject, index);
|
||||
yesModel.setElementAt(selObject, index - 1);
|
||||
indices[i] = index - 1;
|
||||
change = true;
|
||||
}
|
||||
} // up
|
||||
else if (source == bDown)
|
||||
{
|
||||
for (int i = length - 1; i >= 0; i--)
|
||||
{
|
||||
int index = indices[i];
|
||||
if (index >= yesModel.getSize() - 1)
|
||||
break;
|
||||
ListElement selObject = (ListElement) yesModel.getElementAt(index);
|
||||
ListElement newObject = (ListElement) yesModel.getElementAt(index + 1);
|
||||
if (!selObject.isUpdateable() || !newObject.isUpdateable())
|
||||
break;
|
||||
yesModel.setElementAt(newObject, index);
|
||||
yesModel.setElementAt(selObject, index + 1);
|
||||
yesList.setSelectedIndex(index + 1);
|
||||
indices[i] = index + 1;
|
||||
change = true;
|
||||
}
|
||||
} // down
|
||||
|
||||
//
|
||||
if (change)
|
||||
{
|
||||
yesList.setSelectedIndices(indices);
|
||||
if (yesList.getSelectedItem() != null)
|
||||
{
|
||||
AuFocus focus = new AuFocus(yesList.getSelectedItem());
|
||||
Clients.response(focus);
|
||||
}
|
||||
}
|
||||
} // migrateValueWithinYesList
|
||||
|
||||
/**
|
||||
* Save Login open sequence no
|
||||
*/
|
||||
public void saveData()
|
||||
{
|
||||
try
|
||||
{
|
||||
// For service users, needs to persist data in system tenant
|
||||
PO.setCrossTenantSafe();
|
||||
// yesList
|
||||
for (int i = 0; i < yesModel.getSize(); i++)
|
||||
{
|
||||
ListElement pp = (ListElement) yesModel.getElementAt(i);
|
||||
if (!pp.isUpdateable())
|
||||
continue;
|
||||
|
||||
// Set seq no
|
||||
MTreeFavoriteNode favNode = (MTreeFavoriteNode) MTable.get(MTreeFavoriteNode.Table_ID).getPO(pp.getKey(), null);
|
||||
favNode.setLoginOpenSeqNo(i);
|
||||
favNode.saveEx();
|
||||
|
||||
}
|
||||
|
||||
// noList
|
||||
for (int i = 0; i < noModel.getSize(); i++)
|
||||
{
|
||||
ListElement pp = (ListElement) noModel.getElementAt(i);
|
||||
if (!pp.isUpdateable())
|
||||
continue;
|
||||
|
||||
// remove seq no if exists
|
||||
MTreeFavoriteNode favNode = (MTreeFavoriteNode) MTable.get(MTreeFavoriteNode.Table_ID).getPO(pp.getKey(), null);
|
||||
favNode.set_ValueNoCheck(MTreeFavoriteNode.COLUMNNAME_LoginOpenSeqNo, null);
|
||||
favNode.saveEx();
|
||||
}
|
||||
|
||||
}
|
||||
finally
|
||||
{
|
||||
PO.clearCrossTenantSafe();
|
||||
}
|
||||
//
|
||||
detach();
|
||||
} // saveData
|
||||
|
||||
/**
|
||||
* List Item
|
||||
*/
|
||||
private static class ListElement extends NamePair
|
||||
{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -1717531470895073281L;
|
||||
|
||||
private int m_key;
|
||||
|
||||
private boolean m_updateable;
|
||||
|
||||
public ListElement(int key, String name)
|
||||
{
|
||||
super(name);
|
||||
this.m_key = key;
|
||||
this.m_updateable = true;
|
||||
}
|
||||
|
||||
public int getKey()
|
||||
{
|
||||
return m_key;
|
||||
}
|
||||
|
||||
public boolean isUpdateable()
|
||||
{
|
||||
return m_updateable;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getID()
|
||||
{
|
||||
return m_key != -1 ? String.valueOf(m_key) : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
return m_key;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (obj instanceof ListElement)
|
||||
{
|
||||
ListElement li = (ListElement) obj;
|
||||
return li.getKey() == m_key
|
||||
&& li.getName() != null
|
||||
&& li.getName().equals(getName());
|
||||
}
|
||||
return false;
|
||||
} // equals
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
String s = super.toString();
|
||||
if (s == null || s.trim().length() == 0)
|
||||
s = "<" + getKey() + ">";
|
||||
return s;
|
||||
}
|
||||
} // ListElement
|
||||
|
||||
/**
|
||||
* Drag Listener
|
||||
*/
|
||||
private class DragListener implements EventListener<Event>
|
||||
{
|
||||
|
||||
/**
|
||||
* Creates a ADSortTab.DragListener.
|
||||
*/
|
||||
public DragListener()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception
|
||||
{
|
||||
if (event instanceof DropEvent)
|
||||
{
|
||||
int endIndex = 0;
|
||||
DropEvent me = (DropEvent) event;
|
||||
ListItem endItem = (ListItem) me.getTarget();
|
||||
ListItem startItem = (ListItem) me.getDragged();
|
||||
|
||||
if (!startItem.isSelected())
|
||||
startItem.setSelected(true);
|
||||
|
||||
if (!(startItem.getListbox() == endItem.getListbox()))
|
||||
{
|
||||
Listbox listFrom = (Listbox) startItem.getListbox();
|
||||
Listbox listTo = (Listbox) endItem.getListbox();
|
||||
endIndex = yesList.getIndexOfItem(endItem);
|
||||
migrateLists(listFrom, listTo, endIndex);
|
||||
}
|
||||
else if (startItem.getListbox() == endItem.getListbox() && startItem.getListbox() == yesList)
|
||||
{
|
||||
List<ListElement> selObjects = new ArrayList<ListElement>();
|
||||
endIndex = yesList.getIndexOfItem(endItem);
|
||||
for (Object obj : yesList.getSelectedItems())
|
||||
{
|
||||
ListItem listItem = (ListItem) obj;
|
||||
int index = yesList.getIndexOfItem(listItem);
|
||||
ListElement selObject = (ListElement) yesModel.getElementAt(index);
|
||||
selObjects.add(selObject);
|
||||
}
|
||||
migrateValueWithinYesList(endIndex, selObjects);
|
||||
yesList.clearSelection();
|
||||
}
|
||||
}
|
||||
}
|
||||
} // DragListener
|
||||
|
||||
}
|
|
@ -65,6 +65,7 @@ import org.compiere.model.MPreference;
|
|||
import org.compiere.model.MQuery;
|
||||
import org.compiere.model.MRole;
|
||||
import org.compiere.model.MTable;
|
||||
import org.compiere.model.MTreeFavorite;
|
||||
import org.compiere.model.Query;
|
||||
import org.compiere.model.SystemIDs;
|
||||
import org.compiere.model.X_AD_CtxHelp;
|
||||
|
@ -1048,13 +1049,13 @@ public class DefaultDesktop extends TabbedDesktop implements MenuListener, Seria
|
|||
if (isActionURL()) // IDEMPIERE-2334 vs IDEMPIERE-3000 - do not open windows when coming from an action URL
|
||||
return;
|
||||
|
||||
StringBuilder sql = new StringBuilder("SELECT m.Action, COALESCE(m.AD_Window_ID, m.AD_Process_ID, m.AD_Form_ID, m.AD_Workflow_ID, m.AD_Task_ID, AD_InfoWindow_ID) ")
|
||||
.append(" FROM AD_TreeBar tb")
|
||||
.append(" INNER JOIN AD_Menu m ON (tb.Node_ID = m.AD_Menu_ID)")
|
||||
.append(" WHERE tb.AD_Tree_ID = ").append(getMenuID())
|
||||
.append(" AND tb.AD_User_ID = ").append(Env.getAD_User_ID(ctx))
|
||||
.append(" AND tb.IsActive = 'Y' AND tb.LoginOpenSeqNo > 0")
|
||||
.append(" ORDER BY tb.LoginOpenSeqNo");
|
||||
StringBuilder sql = new StringBuilder("SELECT m.Action, COALESCE(m.AD_Window_ID, m.AD_Process_ID, m.AD_Form_ID, m.AD_Workflow_ID, m.AD_Task_ID, m.AD_InfoWindow_ID) ")
|
||||
.append(" FROM AD_Tree_Favorite_Node tfn ")
|
||||
.append(" INNER JOIN AD_Menu m ON (tfn.AD_Menu_ID = m.AD_Menu_ID) ")
|
||||
.append(" WHERE tfn.AD_Tree_Favorite_ID = ")
|
||||
.append(MTreeFavorite.getFavoriteTreeID(Env.getAD_User_ID(Env.getCtx())))
|
||||
.append(" AND tfn.IsActive = 'Y' AND tfn.LoginOpenSeqNo >= 0 ")
|
||||
.append(" ORDER BY tfn.LoginOpenSeqNo ");
|
||||
|
||||
List<List<Object>> rows = DB.getSQLArrayObjectsEx(null, sql.toString());
|
||||
if (rows != null && rows.size() > 0) {
|
||||
|
|
|
@ -3,186 +3,264 @@
|
|||
*/
|
||||
package org.adempiere.webui.desktop;
|
||||
|
||||
import static org.compiere.model.SystemIDs.TREE_MENUPRIMARY;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Enumeration;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.adempiere.exceptions.AdempiereException;
|
||||
import org.adempiere.util.Callback;
|
||||
import org.compiere.model.MTree;
|
||||
import org.adempiere.webui.component.FavoriteSimpleTreeModel;
|
||||
import org.adempiere.webui.dashboard.DPFavourites;
|
||||
import org.compiere.model.I_AD_Tree_Favorite;
|
||||
import org.compiere.model.MMenu;
|
||||
import org.compiere.model.MTable;
|
||||
import org.compiere.model.MTreeFavorite;
|
||||
import org.compiere.model.MTreeFavoriteNode;
|
||||
import org.compiere.model.MTreeNode;
|
||||
import org.compiere.model.MUser;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.model.PO;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
import org.zkoss.zk.ui.Session;
|
||||
import org.zkoss.zul.DefaultTreeNode;
|
||||
import org.zkoss.zul.Tree;
|
||||
|
||||
/**
|
||||
* @author hengsin
|
||||
*
|
||||
* @author Logilite Technologies - IDEMPIERE-3340
|
||||
*/
|
||||
public class FavouriteController {
|
||||
|
||||
private static final String DESKTOP_FAVOURITE_CONTROLLER = "desktop.FavouriteController";
|
||||
private Map<Integer, MTreeNode> nodeMap;
|
||||
private int m_AD_Tree_ID;
|
||||
private MTreeNode rootNode;
|
||||
private List<Callback<Integer>> deletedCallbacks;
|
||||
private List<Callback<MTreeNode>> insertedCallbacks;
|
||||
|
||||
private FavouriteController() {
|
||||
public class FavouriteController
|
||||
{
|
||||
|
||||
private static final String DESKTOP_FAVOURITE_CONTROLLER = "desktop.FavouriteController";
|
||||
private Map<Integer, MTreeNode> nodeMap;
|
||||
private int m_AD_Tree_Favorite_ID;
|
||||
|
||||
private MTreeNode rootNode;
|
||||
private List<Callback<Integer>> deletedCallbacks;
|
||||
private List<Callback<MTreeNode>> insertedCallbacks;
|
||||
|
||||
private Tree tree;
|
||||
private FavoriteSimpleTreeModel treeModel;
|
||||
|
||||
private FavouriteController()
|
||||
{
|
||||
init();
|
||||
}
|
||||
|
||||
private void init() {
|
||||
private void init()
|
||||
{
|
||||
nodeMap = new LinkedHashMap<>();
|
||||
deletedCallbacks = new ArrayList<>();
|
||||
insertedCallbacks = new ArrayList<>();
|
||||
int AD_Role_ID = Env.getAD_Role_ID(Env.getCtx());
|
||||
int AD_Tree_ID = DB.getSQLValue(null,
|
||||
"SELECT COALESCE(r.AD_Tree_Menu_ID, ci.AD_Tree_Menu_ID)"
|
||||
+ "FROM AD_ClientInfo ci"
|
||||
+ " INNER JOIN AD_Role r ON (ci.AD_Client_ID=r.AD_Client_ID) "
|
||||
+ "WHERE AD_Role_ID=?", AD_Role_ID);
|
||||
if (AD_Tree_ID <= 0)
|
||||
AD_Tree_ID = TREE_MENUPRIMARY; // Menu
|
||||
|
||||
m_AD_Tree_ID = AD_Tree_ID;
|
||||
|
||||
MTree vTree = new MTree(Env.getCtx(), AD_Tree_ID, false, true, false, null);
|
||||
|
||||
int AD_User_ID = Env.getAD_User_ID(Env.getCtx());
|
||||
|
||||
MTreeFavorite vTree = null;
|
||||
m_AD_Tree_Favorite_ID = MTreeFavorite.getFavoriteTreeID(AD_User_ID);
|
||||
if (m_AD_Tree_Favorite_ID <= 0)
|
||||
{
|
||||
vTree = (MTreeFavorite) MTable.get(Env.getCtx(), MTreeFavorite.Table_ID).getPO(0, null);
|
||||
MUser user = MUser.get(AD_User_ID);
|
||||
vTree.set_ValueOfColumn(I_AD_Tree_Favorite.COLUMNNAME_AD_Client_ID, user.getAD_Client_ID());
|
||||
vTree.setAD_Org_ID(user.getAD_Org_ID());
|
||||
// Support for System user
|
||||
vTree.set_ValueNoCheck(MTreeFavorite.COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
|
||||
if (!vTree.save())
|
||||
throw new AdempiereException(Msg.getMsg(Env.getCtx(), "FavTreeNotCreate"));
|
||||
|
||||
m_AD_Tree_Favorite_ID = vTree.getAD_Tree_Favorite_ID();
|
||||
}
|
||||
|
||||
vTree = (MTreeFavorite) MTable.get(Env.getCtx(), MTreeFavorite.Table_ID).getPO(m_AD_Tree_Favorite_ID, null);
|
||||
|
||||
rootNode = vTree.getRoot();
|
||||
Enumeration<?> enTop = rootNode.children();
|
||||
while(enTop.hasMoreElements())
|
||||
while (enTop.hasMoreElements())
|
||||
{
|
||||
MTreeNode ndTop = (MTreeNode)enTop.nextElement();
|
||||
MTreeNode ndTop = (MTreeNode) enTop.nextElement();
|
||||
Enumeration<?> en = ndTop.preorderEnumeration();
|
||||
while (en.hasMoreElements())
|
||||
{
|
||||
MTreeNode nd = (MTreeNode)en.nextElement();
|
||||
if (nd.isOnBar()) {
|
||||
nodeMap.put(nd.getNode_ID(), nd);
|
||||
MTreeNode nd = (MTreeNode) en.nextElement();
|
||||
if (nd.isOnBar() && nd.getMenu_ID() > 0)
|
||||
{
|
||||
nodeMap.put(nd.getMenu_ID(), nd);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} // init
|
||||
|
||||
/**
|
||||
* Get favourites controller instance for current session
|
||||
* @param currSess
|
||||
* @return FavouriteController session instance
|
||||
*
|
||||
* @param currSess
|
||||
* @return FavouriteController session instance
|
||||
*/
|
||||
public static synchronized FavouriteController getInstance(Session currSess) {
|
||||
public static synchronized FavouriteController getInstance(Session currSess)
|
||||
{
|
||||
FavouriteController controller = (FavouriteController) currSess.getAttribute(DESKTOP_FAVOURITE_CONTROLLER);
|
||||
if (controller == null) {
|
||||
|
||||
if (controller == null)
|
||||
{
|
||||
controller = new FavouriteController();
|
||||
currSess.setAttribute(DESKTOP_FAVOURITE_CONTROLLER, controller);
|
||||
}
|
||||
return controller;
|
||||
}
|
||||
|
||||
private boolean barDBupdate(boolean add, int Node_ID)
|
||||
} // getInstance
|
||||
|
||||
private boolean barUpdate(boolean add, int Menu_ID)
|
||||
{
|
||||
int AD_Client_ID = MUser.get(Env.getCtx()).getAD_Client_ID();
|
||||
int AD_Org_ID = 0;
|
||||
int AD_User_ID = Env.getContextAsInt(Env.getCtx(), Env.AD_USER_ID);
|
||||
StringBuilder sql = new StringBuilder();
|
||||
if (add)
|
||||
sql.append("INSERT INTO AD_TreeBar "
|
||||
+ "(AD_Tree_ID,AD_User_ID,Node_ID, "
|
||||
+ "AD_Client_ID,AD_Org_ID, "
|
||||
+ "IsActive,Created,CreatedBy,Updated,UpdatedBy)VALUES (")
|
||||
.append(m_AD_Tree_ID).append(",").append(AD_User_ID).append(",").append(Node_ID).append(",")
|
||||
.append(AD_Client_ID).append(",").append(AD_Org_ID).append(",")
|
||||
.append("'Y',getDate(),").append(AD_User_ID).append(",getDate(),").append(AD_User_ID).append(")");
|
||||
// if already exist, will result in ORA-00001: unique constraint (ADEMPIERE.AD_TREEBAR_KEY)
|
||||
{
|
||||
MTreeFavoriteNode.create( Env.getAD_Client_ID(Env.getCtx()), Env.getContextAsInt(Env.getCtx(), Env.AD_ORG_ID), m_AD_Tree_Favorite_ID, Menu_ID, 0, 0,
|
||||
null, false, true, true);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
sql.append("DELETE FROM AD_TreeBar WHERE AD_Tree_ID=").append(m_AD_Tree_ID)
|
||||
.append(" AND AD_User_ID=").append(AD_User_ID)
|
||||
.append(" AND Node_ID=").append(Node_ID);
|
||||
int no = DB.executeUpdate(sql.toString(), false, null);
|
||||
return no == 1;
|
||||
}
|
||||
|
||||
{
|
||||
MTreeFavoriteNode favNode = MTreeFavoriteNode.getFavouriteTreeNodeFromMenuID(m_AD_Tree_Favorite_ID, Menu_ID);
|
||||
if (favNode != null) {
|
||||
try {
|
||||
//For service users, needs to persist data in system tenant
|
||||
PO.setCrossTenantSafe();
|
||||
return favNode.delete(true);
|
||||
}finally {
|
||||
PO.clearCrossTenantSafe();
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
} // barUpdate
|
||||
|
||||
/**
|
||||
* Add node (by node id) to favourties
|
||||
* @param nodeId
|
||||
* @return true if successfully added
|
||||
*
|
||||
* @param nodeId
|
||||
* @return true if successfully added
|
||||
*/
|
||||
public boolean addNode(int nodeId) {
|
||||
public boolean addNode(int nodeId)
|
||||
{
|
||||
MTreeNode node = rootNode.findNode(nodeId);
|
||||
if (node != null) {
|
||||
if (node != null)
|
||||
{
|
||||
return addNode(node);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
} // addNode
|
||||
|
||||
/**
|
||||
* add tree node to favourites
|
||||
* @param node
|
||||
* @return true if successfully added
|
||||
*
|
||||
* @param node
|
||||
* @return true if successfully added
|
||||
*/
|
||||
public boolean addNode(MTreeNode node) {
|
||||
if(barDBupdate(true, node.getNode_ID())) {
|
||||
public boolean addNode(MTreeNode node)
|
||||
{
|
||||
if (barUpdate(true, node.getNode_ID()))
|
||||
{
|
||||
nodeMap.put(node.getNode_ID(), node);
|
||||
for (Callback<MTreeNode> callback : insertedCallbacks) {
|
||||
if (tree != null && treeModel != null)
|
||||
{
|
||||
MMenu menu = (MMenu) MTable.get(Env.getCtx(), MMenu.Table_ID).getPO(node.getNode_ID(), null);
|
||||
MTreeFavoriteNode favNode = MTreeFavoriteNode.getFavouriteTreeNodeFromMenuID(m_AD_Tree_Favorite_ID, menu.getAD_Menu_ID());
|
||||
|
||||
DPFavourites.addNodeInTree(treeModel, tree, treeModel.getRoot(), favNode);
|
||||
}
|
||||
|
||||
for (Callback<MTreeNode> callback : insertedCallbacks)
|
||||
{
|
||||
callback.onCallback(node);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
} // addNode
|
||||
|
||||
/**
|
||||
* remove node (by node id) from favourites
|
||||
* @param nodeId
|
||||
* @return true if found and remove
|
||||
*
|
||||
* @param nodeId
|
||||
* @return true if found and remove
|
||||
*/
|
||||
public boolean removeNode(int nodeId) {
|
||||
if(barDBupdate(false, nodeId))
|
||||
public boolean removeNode(int nodeId)
|
||||
{
|
||||
MTreeFavoriteNode favNode = MTreeFavoriteNode.getFavouriteTreeNodeFromMenuID(m_AD_Tree_Favorite_ID, nodeId);
|
||||
if (favNode != null && barUpdate(false, nodeId))
|
||||
{
|
||||
if (treeModel != null)
|
||||
{
|
||||
DefaultTreeNode<Object> treeNode = treeModel.find(treeModel.getRoot(), favNode.getAD_Tree_Favorite_Node_ID());
|
||||
treeModel.removeNode(treeNode);
|
||||
}
|
||||
|
||||
nodeMap.remove(nodeId);
|
||||
for (Callback<Integer> callback : deletedCallbacks) {
|
||||
for (Callback<Integer> callback : deletedCallbacks)
|
||||
{
|
||||
callback.onCallback(nodeId);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
} // removeNode
|
||||
|
||||
/**
|
||||
* @param nodeId
|
||||
* @return true if node id is in the current favourites list
|
||||
* @param nodeId
|
||||
* @return true if node id is in the current favourites list
|
||||
*/
|
||||
public boolean hasNode(int nodeId) {
|
||||
public boolean hasNode(int nodeId)
|
||||
{
|
||||
return nodeMap.keySet().contains(nodeId);
|
||||
}
|
||||
|
||||
} // hasNode
|
||||
|
||||
/**
|
||||
* @return List of favourites node
|
||||
*/
|
||||
public List<MTreeNode> getFavourites() {
|
||||
public List<MTreeNode> getFavourites()
|
||||
{
|
||||
List<MTreeNode> list = new ArrayList<>();
|
||||
for(int key : nodeMap.keySet()) {
|
||||
for (int key : nodeMap.keySet())
|
||||
{
|
||||
list.add(nodeMap.get(key));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
} // getFavourites
|
||||
|
||||
/**
|
||||
* add callback for after add node to favourites
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
public void addInsertedCallback(Callback<MTreeNode> callback) {
|
||||
public void addInsertedCallback(Callback<MTreeNode> callback)
|
||||
{
|
||||
insertedCallbacks.add(callback);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* add callback for after remove node from favourites
|
||||
*
|
||||
* @param callback
|
||||
*/
|
||||
public void addDeletedCallback(Callback<Integer> callback) {
|
||||
public void addDeletedCallback(Callback<Integer> callback)
|
||||
{
|
||||
deletedCallbacks.add(callback);
|
||||
}
|
||||
|
||||
public int getAD_Tree_Favorite_ID()
|
||||
{
|
||||
return m_AD_Tree_Favorite_ID;
|
||||
}
|
||||
|
||||
public MTreeNode getRootNode()
|
||||
{
|
||||
return rootNode;
|
||||
}
|
||||
|
||||
public void setTreeAndModel(FavoriteSimpleTreeModel treeModel, Tree tree)
|
||||
{
|
||||
this.tree = tree;
|
||||
this.treeModel = treeModel;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -61,6 +61,7 @@ public class WTextEditorDialog extends Window implements EventListener<Event>{
|
|||
private CKeditor editor;
|
||||
private Label status;
|
||||
private Tab htmlTab;
|
||||
private boolean isShowHTMLTab = true;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -71,14 +72,27 @@ public class WTextEditorDialog extends Window implements EventListener<Event>{
|
|||
* @param isHtml - select the html tab at start
|
||||
*/
|
||||
public WTextEditorDialog(String title, String text, boolean editable, int maxSize, boolean IsHtml) {
|
||||
this(title, text, editable, maxSize, IsHtml, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param title
|
||||
* @param text
|
||||
* @param editable
|
||||
* @param maxSize
|
||||
* @param IsHtml - select the html tab at start
|
||||
* @param IsShowHTMLTab - Is to shown HTML tab
|
||||
*/
|
||||
public WTextEditorDialog(String title, String text, boolean editable, int maxSize,boolean IsHtml, boolean IsShowHTMLTab) {
|
||||
super();
|
||||
setTitle(title);
|
||||
this.editable = editable;
|
||||
this.maxSize = maxSize;
|
||||
this.text = text;
|
||||
this.isShowHTMLTab = IsShowHTMLTab;
|
||||
|
||||
init();
|
||||
if (IsHtml)
|
||||
if (IsHtml && IsShowHTMLTab)
|
||||
tabbox.setSelectedTab(htmlTab);
|
||||
}
|
||||
|
||||
|
@ -125,22 +139,24 @@ public class WTextEditorDialog extends Window implements EventListener<Event>{
|
|||
ZKUpdateUtil.setVflex(textBox, "1");
|
||||
tabPanel.appendChild(textBox);
|
||||
|
||||
htmlTab = new Tab("HTML");
|
||||
tabs.appendChild(htmlTab);
|
||||
|
||||
tabPanel = new Tabpanel();
|
||||
tabPanels.appendChild(tabPanel);
|
||||
if (editable) {
|
||||
createEditor(tabPanel);
|
||||
} else {
|
||||
Div div = new Div();
|
||||
if (isShowHTMLTab) {
|
||||
htmlTab = new Tab("HTML");
|
||||
tabs.appendChild(htmlTab);
|
||||
|
||||
tabPanel = new Tabpanel();
|
||||
tabPanels.appendChild(tabPanel);
|
||||
if (editable) {
|
||||
createEditor(tabPanel);
|
||||
} else {
|
||||
Div div = new Div();
|
||||
ZKUpdateUtil.setHeight(div, "100%");
|
||||
ZKUpdateUtil.setWidth(div, "100%");
|
||||
div.setStyle("overflow: auto; border: 1px solid");
|
||||
tabPanel.appendChild(div);
|
||||
Html html = new Html();
|
||||
div.appendChild(html);
|
||||
html.setContent(text);
|
||||
div.setStyle("overflow: auto; border: 1px solid");
|
||||
tabPanel.appendChild(div);
|
||||
Html html = new Html();
|
||||
div.appendChild(html);
|
||||
html.setContent(text);
|
||||
}
|
||||
}
|
||||
|
||||
vbox.appendChild(new Separator());
|
||||
|
@ -160,7 +176,7 @@ public class WTextEditorDialog extends Window implements EventListener<Event>{
|
|||
|
||||
status.setStyle("margin-top:10px;");
|
||||
textBox.addEventListener(Events.ON_CHANGE, this);
|
||||
if (editor != null)
|
||||
if (isShowHTMLTab && editor != null)
|
||||
editor.addEventListener(Events.ON_CHANGE, this);
|
||||
}
|
||||
|
||||
|
|
|
@ -297,4 +297,14 @@
|
|||
}
|
||||
.z-icon-Calendar:before {
|
||||
content: "\f073";
|
||||
}
|
||||
}
|
||||
.z-icon-TreeFavNodeAdd:before {
|
||||
content: "\f07b";
|
||||
}
|
||||
.z-icon-Expanding:before {
|
||||
content: "\f103";
|
||||
}
|
||||
.z-icon-SequenceChange:before {
|
||||
content: "\f14d";
|
||||
}
|
||||
|
||||
|
|
|
@ -229,3 +229,41 @@
|
|||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
<%-- User Favorite Dashboard Panel Start --%>
|
||||
.fav-tree-panel {
|
||||
border-radius: 0px;
|
||||
border: 1px solid #d8d8d8 !important;
|
||||
}
|
||||
|
||||
.fav-toolbar {
|
||||
}
|
||||
|
||||
.fav-toolbar-div {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.fav-tree-btn {
|
||||
margin-left: 5px !important;
|
||||
padding: 3px 15px;
|
||||
border: 1px solid #6d6d6d;
|
||||
}
|
||||
|
||||
.fav-folder-textbox {
|
||||
width: 100%;
|
||||
}
|
||||
.fav-summary-folder .z-treecell-content {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.fav-expand-mode {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.fav-mobile-ctx-menu {
|
||||
margin: 0px 5px;
|
||||
padding: 0px 5px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
<%-- User Favorite Dashboard Panel End --%>
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in New Issue