IDEMPIERE-446 Implement Restrictions on Toolbar to the report viewer
This commit is contained in:
parent
c14f1a0209
commit
02c508d425
|
@ -0,0 +1,281 @@
|
|||
-- IDEMPIERE-446 Implement Restrictions on Toolbar to the report viewer
|
||||
-- Oct 11, 2012 15:52:27 AM COT
|
||||
INSERT INTO AD_Column(Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection) VALUES (
|
||||
0,200004,200603,'D','N','N','N',0,'N',10,'N',19,'N','N',117,'N','Y','06a8ccfc-aa6f-443b-a2f3-665f5584944c','N','Y','N','AD_Process_ID','Process or Report','Process','Y',0,TO_DATE('2012-10-11 15:52:27','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2012-10-11 15:52:27','YYYY-MM-DD HH24:MI:SS'),0,0,0)
|
||||
;
|
||||
|
||||
-- Oct 11, 2012 15:52:27 AM COT
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200603 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Oct 11, 2012 16:01:18 AM COT
|
||||
INSERT INTO AD_Field (SortNo,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,AD_FieldGroup_ID,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines) VALUES (
|
||||
0,'N',200003,10,'N','N',200603,60,'Y',200615,'N',NULL,'U','Process or Report','Process','Y','N','67334cfb-5b6b-42f4-97ce-faf7e524c97c',0,0,TO_DATE('2012-10-11 16:01:18','YYYY-MM-DD HH24:MI:SS'),0,0,TO_DATE('2012-10-11 16:37:52','YYYY-MM-DD HH24:MI:SS'),'Y','Y',60,4,2,1)
|
||||
;
|
||||
|
||||
-- Oct 11, 2012 16:01:18 AM COT
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200615 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Oct 16, 2012 12:03:47 PM COT
|
||||
INSERT INTO AD_ToolBarButton (Name,ComponentName,Classname,IsCustomization,KeyStroke_KeyCode,KeyStroke_Modifiers,AD_Client_ID,AD_Org_ID,CreatedBy,AD_ToolBarButton_ID,Updated,UpdatedBy,AD_ToolBarButton_UU,IsActive,Created) VALUES ('Report - Customize','Customize','org.idempiere.ui.report','N',0,0,0,0,0,200059,TO_DATE('2012-10-16 12:03:45','YYYY-MM-DD HH24:MI:SS'),0,'384b207a-387e-4b56-91b5-be73c3f35421','Y',TO_DATE('2012-10-16 12:03:45','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 16, 2012 12:04:51 PM COT
|
||||
INSERT INTO AD_ToolBarButton (Name,ComponentName,Classname,IsCustomization,KeyStroke_KeyCode,KeyStroke_Modifiers,AD_Client_ID,AD_Org_ID,CreatedBy,AD_ToolBarButton_ID,Updated,UpdatedBy,AD_ToolBarButton_UU,IsActive,Created) VALUES ('Report - Find','Find','org.idempiere.ui.report','N',0,0,0,0,0,200060,TO_DATE('2012-10-16 12:04:50','YYYY-MM-DD HH24:MI:SS'),0,'3d4d2b55-2960-40d6-b2cd-58a0013887b4','Y',TO_DATE('2012-10-16 12:04:50','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 16, 2012 12:07:20 PM COT
|
||||
INSERT INTO AD_ToolBarButton (Name,ComponentName,Classname,IsCustomization,KeyStroke_KeyCode,KeyStroke_Modifiers,AD_Client_ID,AD_Org_ID,CreatedBy,AD_ToolBarButton_ID,Updated,UpdatedBy,AD_ToolBarButton_UU,IsActive,Created) VALUES ('Report - SendMail','SendMail','org.idempiere.ui.report','N',0,0,0,0,0,200061,TO_DATE('2012-10-16 12:07:19','YYYY-MM-DD HH24:MI:SS'),0,'6db3b34f-b4af-4935-a9a7-2ec274d3c707','Y',TO_DATE('2012-10-16 12:07:19','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 16, 2012 12:08:21 PM COT
|
||||
INSERT INTO AD_ToolBarButton (Name,ComponentName,Classname,IsCustomization,KeyStroke_KeyCode,KeyStroke_Modifiers,AD_Client_ID,AD_Org_ID,CreatedBy,AD_ToolBarButton_ID,Updated,UpdatedBy,AD_ToolBarButton_UU,IsActive,Created) VALUES ('Report - Archive','Archive','org.idempiere.ui.report','N',0,0,0,0,0,200062,TO_DATE('2012-10-16 12:08:20','YYYY-MM-DD HH24:MI:SS'),0,'d950ba4c-c5eb-4c1f-87cb-4407d5ab9df6','Y',TO_DATE('2012-10-16 12:08:20','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 16, 2012 12:10:01 PM COT
|
||||
INSERT INTO AD_ToolBarButton (Name,ComponentName,Classname,IsCustomization,KeyStroke_KeyCode,KeyStroke_Modifiers,AD_Client_ID,AD_Org_ID,CreatedBy,AD_ToolBarButton_ID,Updated,UpdatedBy,AD_ToolBarButton_UU,IsActive,Created) VALUES ('Report - Export','Export','org.idempiere.ui.report','N',0,0,0,0,0,200063,TO_DATE('2012-10-16 12:10:00','YYYY-MM-DD HH24:MI:SS'),0,'f616622e-88b4-4b93-83a7-252cd2e03b3d','Y',TO_DATE('2012-10-16 12:10:00','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 16, 2012 12:11:05 PM COT
|
||||
INSERT INTO AD_ToolBarButton (Name,ComponentName,Classname,IsCustomization,KeyStroke_KeyCode,KeyStroke_Modifiers,AD_Client_ID,AD_Org_ID,CreatedBy,AD_ToolBarButton_ID,Updated,UpdatedBy,AD_ToolBarButton_UU,IsActive,Created) VALUES ('Report - Refresh','Refresh','org.idempiere.ui.report','N',0,0,0,0,0,200064,TO_DATE('2012-10-16 12:11:04','YYYY-MM-DD HH24:MI:SS'),0,'11ef368d-f1b6-43d2-9cc7-046520c3645d','Y',TO_DATE('2012-10-16 12:11:04','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:49:00 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200000
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:49:07 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200001
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:49:13 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200002
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:49:17 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200003
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:49:21 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200004
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:49:51 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200005
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:49:55 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200006
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:00 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200007
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:04 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200008
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:08 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200009
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:12 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200010
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:16 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200011
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:20 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200012
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:24 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200013
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:28 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200014
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:33 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200015
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:36 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200016
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:40 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200017
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:44 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200018
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:47 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200019
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:51 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200020
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:55 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200021
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:51:00 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200022
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:51:04 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200023
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:51:07 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200024
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:51:11 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200025
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:51:15 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200026
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:51:19 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200027
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:51:23 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200028
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:52:04 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Ignore', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:52:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200029
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:52:15 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Help', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:52:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200030
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:52:34 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - New', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:52:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200031
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:52:46 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Copy', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:52:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200032
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:52:57 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Delete', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:52:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200033
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:53:06 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - DeleteSelection', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:53:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200034
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:53:15 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Save', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:53:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200035
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:53:35 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - SaveCreate', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:53:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200036
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:53:45 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Refresh', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:53:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200037
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:53:53 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Find', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:53:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200038
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:54:03 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Attachment', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:54:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200039
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:54:12 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Chat', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:54:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200040
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:54:30 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Multi', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:54:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200041
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:54:54 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Parent', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200043
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:55:03 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Detail', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:55:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200044
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:55:10 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - First', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:55:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200045
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:55:21 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Previous', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:55:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200046
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:55:28 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Next', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:55:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200047
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:55:36 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Last', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:55:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200048
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:55:46 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Report', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:55:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200049
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:55:55 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Archive', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:55:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200050
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:56:05 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Print', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:56:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200051
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:56:15 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Lock', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:56:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200052
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:56:22 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - ZoomAcross', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:56:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200053
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:56:30 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - WorkFlow', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:56:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200054
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:56:55 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Request', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:56:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200055
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:57:04 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - InfoProduct', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:57:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200056
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:57:10 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Export', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:57:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200057
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:57:18 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Customize', Classname='org.idempiere.ui.window',Updated=TO_DATE('2012-10-17 15:57:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200058
|
||||
;
|
||||
|
||||
-- Oct 23, 2012 6:34:54 PM COT
|
||||
ALTER TABLE AD_ToolBarButtonRestrict ADD AD_Process_ID NUMBER(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
SELECT register_migration_script('932_IDEMPIERE-446.sql') FROM dual
|
||||
;
|
|
@ -0,0 +1,282 @@
|
|||
-- IDEMPIERE-446 Implement Restrictions on Toolbar to the report viewer
|
||||
-- Oct 11, 2012 15:52:27 AM COT
|
||||
INSERT INTO AD_Column(Version,AD_Table_ID,AD_Column_ID,EntityType,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsParent,FieldLength,IsSelectionColumn,AD_Reference_ID,IsSyncDatabase,IsKey,AD_Element_ID,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsEncrypted,IsUpdateable,IsAlwaysUpdateable,ColumnName,Description,Name,IsAllowCopy,CreatedBy,Updated,AD_Org_ID,IsActive,Created,UpdatedBy,AD_Client_ID,SeqNoSelection) VALUES (
|
||||
0,200004,200603,'D','N','N','N',0,'N',10,'N',19,'N','N',117,'N','Y','06a8ccfc-aa6f-443b-a2f3-665f5584944c','N','Y','N','AD_Process_ID','Process or Report','Process','Y',0,TO_TIMESTAMP('2012-10-11 15:52:27','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2012-10-11 15:52:27','YYYY-MM-DD HH24:MI:SS'),0,0,0)
|
||||
;
|
||||
|
||||
-- Oct 11, 2012 15:52:27 AM COT
|
||||
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Column_Trl_UU ) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=200603 AND NOT EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
|
||||
;
|
||||
|
||||
-- Oct 11, 2012 16:01:18 AM COT
|
||||
INSERT INTO AD_Field (SortNo,IsEncrypted,AD_Tab_ID,DisplayLength,IsSameLine,IsHeading,AD_Column_ID,SeqNo,IsCentrallyMaintained,AD_Field_ID,IsReadOnly,AD_FieldGroup_ID,EntityType,Description,Name,IsDisplayed,IsFieldOnly,AD_Field_UU,UpdatedBy,AD_Org_ID,Created,AD_Client_ID,CreatedBy,Updated,IsActive,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines) VALUES (
|
||||
0,'N',200003,10,'N','N',200603,60,'Y',200615,'N',NULL,'U','Process or Report','Process','Y','N','67334cfb-5b6b-42f4-97ce-faf7e524c97c',0,0,TO_TIMESTAMP('2012-10-11 16:01:18','YYYY-MM-DD HH24:MI:SS'),0,0,TO_TIMESTAMP('2012-10-11 16:37:52','YYYY-MM-DD HH24:MI:SS'),'Y','Y',60,4,2,1)
|
||||
;
|
||||
|
||||
-- Oct 11, 2012 16:01:18 AM COT
|
||||
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,AD_Field_Trl_UU ) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,Generate_UUID() FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=200615 AND NOT EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
|
||||
;
|
||||
|
||||
-- Oct 16, 2012 12:03:47 PM COT
|
||||
INSERT INTO AD_ToolBarButton (Name,ComponentName,Classname,IsCustomization,KeyStroke_KeyCode,KeyStroke_Modifiers,AD_Client_ID,AD_Org_ID,CreatedBy,AD_ToolBarButton_ID,Updated,UpdatedBy,AD_ToolBarButton_UU,IsActive,Created) VALUES ('Report - Customize','Customize','org.idempiere.ui.report','N',0,0,0,0,0,200059,TO_TIMESTAMP('2012-10-16 12:03:45','YYYY-MM-DD HH24:MI:SS'),0,'384b207a-387e-4b56-91b5-be73c3f35421','Y',TO_TIMESTAMP('2012-10-16 12:03:45','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 16, 2012 12:04:51 PM COT
|
||||
INSERT INTO AD_ToolBarButton (Name,ComponentName,Classname,IsCustomization,KeyStroke_KeyCode,KeyStroke_Modifiers,AD_Client_ID,AD_Org_ID,CreatedBy,AD_ToolBarButton_ID,Updated,UpdatedBy,AD_ToolBarButton_UU,IsActive,Created) VALUES ('Report - Find','Find','org.idempiere.ui.report','N',0,0,0,0,0,200060,TO_TIMESTAMP('2012-10-16 12:04:50','YYYY-MM-DD HH24:MI:SS'),0,'3d4d2b55-2960-40d6-b2cd-58a0013887b4','Y',TO_TIMESTAMP('2012-10-16 12:04:50','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 16, 2012 12:07:20 PM COT
|
||||
INSERT INTO AD_ToolBarButton (Name,ComponentName,Classname,IsCustomization,KeyStroke_KeyCode,KeyStroke_Modifiers,AD_Client_ID,AD_Org_ID,CreatedBy,AD_ToolBarButton_ID,Updated,UpdatedBy,AD_ToolBarButton_UU,IsActive,Created) VALUES ('Report - SendMail','SendMail','org.idempiere.ui.report','N',0,0,0,0,0,200061,TO_TIMESTAMP('2012-10-16 12:07:19','YYYY-MM-DD HH24:MI:SS'),0,'6db3b34f-b4af-4935-a9a7-2ec274d3c707','Y',TO_TIMESTAMP('2012-10-16 12:07:19','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 16, 2012 12:08:21 PM COT
|
||||
INSERT INTO AD_ToolBarButton (Name,ComponentName,Classname,IsCustomization,KeyStroke_KeyCode,KeyStroke_Modifiers,AD_Client_ID,AD_Org_ID,CreatedBy,AD_ToolBarButton_ID,Updated,UpdatedBy,AD_ToolBarButton_UU,IsActive,Created) VALUES ('Report - Archive','Archive','org.idempiere.ui.report','N',0,0,0,0,0,200062,TO_TIMESTAMP('2012-10-16 12:08:20','YYYY-MM-DD HH24:MI:SS'),0,'d950ba4c-c5eb-4c1f-87cb-4407d5ab9df6','Y',TO_TIMESTAMP('2012-10-16 12:08:20','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
|
||||
-- Oct 16, 2012 12:10:01 PM COT
|
||||
INSERT INTO AD_ToolBarButton (Name,ComponentName,Classname,IsCustomization,KeyStroke_KeyCode,KeyStroke_Modifiers,AD_Client_ID,AD_Org_ID,CreatedBy,AD_ToolBarButton_ID,Updated,UpdatedBy,AD_ToolBarButton_UU,IsActive,Created) VALUES ('Report - Export','Export','org.idempiere.ui.report','N',0,0,0,0,0,200063,TO_TIMESTAMP('2012-10-16 12:10:00','YYYY-MM-DD HH24:MI:SS'),0,'f616622e-88b4-4b93-83a7-252cd2e03b3d','Y',TO_TIMESTAMP('2012-10-16 12:10:00','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 16, 2012 12:11:05 PM COT
|
||||
INSERT INTO AD_ToolBarButton (Name,ComponentName,Classname,IsCustomization,KeyStroke_KeyCode,KeyStroke_Modifiers,AD_Client_ID,AD_Org_ID,CreatedBy,AD_ToolBarButton_ID,Updated,UpdatedBy,AD_ToolBarButton_UU,IsActive,Created) VALUES ('Report - Refresh','Refresh','org.idempiere.ui.report','N',0,0,0,0,0,200064,TO_TIMESTAMP('2012-10-16 12:11:04','YYYY-MM-DD HH24:MI:SS'),0,'11ef368d-f1b6-43d2-9cc7-046520c3645d','Y',TO_TIMESTAMP('2012-10-16 12:11:04','YYYY-MM-DD HH24:MI:SS'))
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:49:00 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200000
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:49:07 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200001
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:49:13 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200002
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:49:17 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200003
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:49:21 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200004
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:49:51 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200005
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:49:55 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200006
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:00 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200007
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:04 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200008
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:08 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200009
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:12 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200010
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:16 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200011
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:20 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200012
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:24 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200013
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:28 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200014
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:33 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200015
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:36 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200016
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:40 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200017
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:44 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200018
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:47 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200019
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:51 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200020
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:50:55 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200021
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:51:00 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200022
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:51:04 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200023
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:51:07 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200024
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:51:11 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200025
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:51:15 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200026
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:51:19 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200027
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:51:23 PM COT
|
||||
DELETE FROM AD_ToolBarButton WHERE AD_ToolBarButton_ID=200028
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:52:04 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Ignore', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:52:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200029
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:52:15 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Help', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:52:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200030
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:52:34 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - New', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:52:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200031
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:52:46 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Copy', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:52:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200032
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:52:57 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Delete', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:52:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200033
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:53:06 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - DeleteSelection', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:53:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200034
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:53:15 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Save', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:53:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200035
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:53:35 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - SaveCreate', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:53:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200036
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:53:45 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Refresh', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:53:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200037
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:53:53 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Find', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:53:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200038
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:54:03 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Attachment', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:54:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200039
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:54:12 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Chat', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:54:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200040
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:54:30 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Multi', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:54:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200041
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:54:54 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Parent', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:54:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200043
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:55:03 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Detail', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:55:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200044
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:55:10 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - First', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:55:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200045
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:55:21 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Previous', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:55:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200046
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:55:28 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Next', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:55:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200047
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:55:36 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Last', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:55:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200048
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:55:46 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Report', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:55:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200049
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:55:55 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Archive', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:55:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200050
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:56:05 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Print', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:56:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200051
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:56:15 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Lock', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:56:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200052
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:56:22 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - ZoomAcross', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:56:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200053
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:56:30 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - WorkFlow', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:56:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200054
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:56:55 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Request', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:56:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200055
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:57:04 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - InfoProduct', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:57:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200056
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:57:10 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Export', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:57:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200057
|
||||
;
|
||||
|
||||
-- Oct 17, 2012 3:57:18 PM COT
|
||||
UPDATE AD_ToolBarButton SET Name='Window - Customize', Classname='org.idempiere.ui.window',Updated=TO_TIMESTAMP('2012-10-17 15:57:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ToolBarButton_ID=200058
|
||||
;
|
||||
|
||||
-- Oct 23, 2012 6:34:54 PM COT
|
||||
ALTER TABLE AD_ToolBarButtonRestrict ADD COLUMN AD_Process_ID NUMERIC(10) DEFAULT NULL
|
||||
;
|
||||
|
||||
SELECT register_migration_script('932_IDEMPIERE-446.sql') FROM dual
|
||||
;
|
|
@ -18,12 +18,11 @@ package org.compiere.model;
|
|||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import org.compiere.model.*;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Interface for AD_ToolBarButtonRestrict
|
||||
* @author Adempiere (generated)
|
||||
* @version 360LTS.015
|
||||
* @version Release 3.6.0LTS
|
||||
*/
|
||||
public interface I_AD_ToolBarButtonRestrict
|
||||
{
|
||||
|
@ -32,7 +31,7 @@ public interface I_AD_ToolBarButtonRestrict
|
|||
public static final String Table_Name = "AD_ToolBarButtonRestrict";
|
||||
|
||||
/** AD_Table_ID=200004 */
|
||||
public static final int Table_ID = MTable.getTable_ID(Table_Name);
|
||||
public static final int Table_ID = 200004;
|
||||
|
||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||
|
||||
|
@ -76,6 +75,21 @@ public interface I_AD_ToolBarButtonRestrict
|
|||
*/
|
||||
public int getAD_Org_ID();
|
||||
|
||||
/** Column name AD_Process_ID */
|
||||
public static final String COLUMNNAME_AD_Process_ID = "AD_Process_ID";
|
||||
|
||||
/** Set Process.
|
||||
* Process or Report
|
||||
*/
|
||||
public void setAD_Process_ID (int AD_Process_ID);
|
||||
|
||||
/** Get Process.
|
||||
* Process or Report
|
||||
*/
|
||||
public int getAD_Process_ID();
|
||||
|
||||
public org.compiere.model.I_AD_Process getAD_Process() throws RuntimeException;
|
||||
|
||||
/** Column name AD_Role_ID */
|
||||
public static final String COLUMNNAME_AD_Role_ID = "AD_Role_ID";
|
||||
|
||||
|
@ -89,7 +103,7 @@ public interface I_AD_ToolBarButtonRestrict
|
|||
*/
|
||||
public int getAD_Role_ID();
|
||||
|
||||
public I_AD_Role getAD_Role() throws RuntimeException;
|
||||
public org.compiere.model.I_AD_Role getAD_Role() throws RuntimeException;
|
||||
|
||||
/** Column name AD_ToolBarButton_ID */
|
||||
public static final String COLUMNNAME_AD_ToolBarButton_ID = "AD_ToolBarButton_ID";
|
||||
|
@ -100,7 +114,7 @@ public interface I_AD_ToolBarButtonRestrict
|
|||
/** Get ToolBar Button */
|
||||
public int getAD_ToolBarButton_ID();
|
||||
|
||||
public I_AD_ToolBarButton getAD_ToolBarButton() throws RuntimeException;
|
||||
public org.compiere.model.I_AD_ToolBarButton getAD_ToolBarButton() throws RuntimeException;
|
||||
|
||||
/** Column name AD_ToolBarButtonRestrict_ID */
|
||||
public static final String COLUMNNAME_AD_ToolBarButtonRestrict_ID = "AD_ToolBarButtonRestrict_ID";
|
||||
|
@ -111,6 +125,15 @@ public interface I_AD_ToolBarButtonRestrict
|
|||
/** Get ToolBar Button Restrict */
|
||||
public int getAD_ToolBarButtonRestrict_ID();
|
||||
|
||||
/** Column name AD_ToolBarButtonRestrict_UU */
|
||||
public static final String COLUMNNAME_AD_ToolBarButtonRestrict_UU = "AD_ToolBarButtonRestrict_UU";
|
||||
|
||||
/** Set AD_ToolBarButtonRestrict_UU */
|
||||
public void setAD_ToolBarButtonRestrict_UU (String AD_ToolBarButtonRestrict_UU);
|
||||
|
||||
/** Get AD_ToolBarButtonRestrict_UU */
|
||||
public String getAD_ToolBarButtonRestrict_UU();
|
||||
|
||||
/** Column name AD_Window_ID */
|
||||
public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID";
|
||||
|
||||
|
@ -124,7 +147,7 @@ public interface I_AD_ToolBarButtonRestrict
|
|||
*/
|
||||
public int getAD_Window_ID();
|
||||
|
||||
public I_AD_Window getAD_Window() throws RuntimeException;
|
||||
public org.compiere.model.I_AD_Window getAD_Window() throws RuntimeException;
|
||||
|
||||
/** Column name Created */
|
||||
public static final String COLUMNNAME_Created = "Created";
|
||||
|
|
|
@ -19,18 +19,17 @@ package org.compiere.model;
|
|||
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
import org.compiere.model.*;
|
||||
|
||||
/** Generated Model for AD_ToolBarButtonRestrict
|
||||
* @author Adempiere (generated)
|
||||
* @version 360LTS.015 - $Id$ */
|
||||
* @version Release 3.6.0LTS - $Id$ */
|
||||
public class X_AD_ToolBarButtonRestrict extends PO implements I_AD_ToolBarButtonRestrict, I_Persistent
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20120329L;
|
||||
private static final long serialVersionUID = 20121012L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_AD_ToolBarButtonRestrict (Properties ctx, int AD_ToolBarButtonRestrict_ID, String trxName)
|
||||
|
@ -38,8 +37,6 @@ public class X_AD_ToolBarButtonRestrict extends PO implements I_AD_ToolBarButton
|
|||
super (ctx, AD_ToolBarButtonRestrict_ID, trxName);
|
||||
/** if (AD_ToolBarButtonRestrict_ID == 0)
|
||||
{
|
||||
setAction (null);
|
||||
setAD_Role_ID (0);
|
||||
setAD_ToolBarButtonRestrict_ID (0);
|
||||
} */
|
||||
}
|
||||
|
@ -95,7 +92,7 @@ public class X_AD_ToolBarButtonRestrict extends PO implements I_AD_ToolBarButton
|
|||
public void setAction (String Action)
|
||||
{
|
||||
|
||||
set_Value (COLUMNNAME_Action, Action);
|
||||
set_ValueNoCheck (COLUMNNAME_Action, Action);
|
||||
}
|
||||
|
||||
/** Get Action.
|
||||
|
@ -106,9 +103,37 @@ public class X_AD_ToolBarButtonRestrict extends PO implements I_AD_ToolBarButton
|
|||
return (String)get_Value(COLUMNNAME_Action);
|
||||
}
|
||||
|
||||
public I_AD_Role getAD_Role() throws RuntimeException
|
||||
public org.compiere.model.I_AD_Process getAD_Process() throws RuntimeException
|
||||
{
|
||||
return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name)
|
||||
return (org.compiere.model.I_AD_Process)MTable.get(getCtx(), org.compiere.model.I_AD_Process.Table_Name)
|
||||
.getPO(getAD_Process_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Process.
|
||||
@param AD_Process_ID
|
||||
Process or Report
|
||||
*/
|
||||
public void setAD_Process_ID (int AD_Process_ID)
|
||||
{
|
||||
if (AD_Process_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_Process_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_Process_ID, Integer.valueOf(AD_Process_ID));
|
||||
}
|
||||
|
||||
/** Get Process.
|
||||
@return Process or Report
|
||||
*/
|
||||
public int getAD_Process_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_AD_Process_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_Role getAD_Role() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_Role)MTable.get(getCtx(), org.compiere.model.I_AD_Role.Table_Name)
|
||||
.getPO(getAD_Role_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Role.
|
||||
|
@ -118,9 +143,9 @@ public class X_AD_ToolBarButtonRestrict extends PO implements I_AD_ToolBarButton
|
|||
public void setAD_Role_ID (int AD_Role_ID)
|
||||
{
|
||||
if (AD_Role_ID < 0)
|
||||
set_Value (COLUMNNAME_AD_Role_ID, null);
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Role_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID));
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID));
|
||||
}
|
||||
|
||||
/** Get Role.
|
||||
|
@ -134,9 +159,9 @@ public class X_AD_ToolBarButtonRestrict extends PO implements I_AD_ToolBarButton
|
|||
return ii.intValue();
|
||||
}
|
||||
|
||||
public I_AD_ToolBarButton getAD_ToolBarButton() throws RuntimeException
|
||||
public org.compiere.model.I_AD_ToolBarButton getAD_ToolBarButton() throws RuntimeException
|
||||
{
|
||||
return (I_AD_ToolBarButton)MTable.get(getCtx(), I_AD_ToolBarButton.Table_Name)
|
||||
return (org.compiere.model.I_AD_ToolBarButton)MTable.get(getCtx(), org.compiere.model.I_AD_ToolBarButton.Table_Name)
|
||||
.getPO(getAD_ToolBarButton_ID(), get_TrxName()); }
|
||||
|
||||
/** Set ToolBar Button.
|
||||
|
@ -179,9 +204,23 @@ public class X_AD_ToolBarButtonRestrict extends PO implements I_AD_ToolBarButton
|
|||
return ii.intValue();
|
||||
}
|
||||
|
||||
public I_AD_Window getAD_Window() throws RuntimeException
|
||||
/** Set AD_ToolBarButtonRestrict_UU.
|
||||
@param AD_ToolBarButtonRestrict_UU AD_ToolBarButtonRestrict_UU */
|
||||
public void setAD_ToolBarButtonRestrict_UU (String AD_ToolBarButtonRestrict_UU)
|
||||
{
|
||||
return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name)
|
||||
set_Value (COLUMNNAME_AD_ToolBarButtonRestrict_UU, AD_ToolBarButtonRestrict_UU);
|
||||
}
|
||||
|
||||
/** Get AD_ToolBarButtonRestrict_UU.
|
||||
@return AD_ToolBarButtonRestrict_UU */
|
||||
public String getAD_ToolBarButtonRestrict_UU ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_AD_ToolBarButtonRestrict_UU);
|
||||
}
|
||||
|
||||
public org.compiere.model.I_AD_Window getAD_Window() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_AD_Window)MTable.get(getCtx(), org.compiere.model.I_AD_Window.Table_Name)
|
||||
.getPO(getAD_Window_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Window.
|
||||
|
@ -191,9 +230,9 @@ public class X_AD_ToolBarButtonRestrict extends PO implements I_AD_ToolBarButton
|
|||
public void setAD_Window_ID (int AD_Window_ID)
|
||||
{
|
||||
if (AD_Window_ID < 1)
|
||||
set_Value (COLUMNNAME_AD_Window_ID, null);
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Window_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID));
|
||||
set_ValueNoCheck (COLUMNNAME_AD_Window_ID, Integer.valueOf(AD_Window_ID));
|
||||
}
|
||||
|
||||
/** Get Window.
|
||||
|
|
|
@ -156,6 +156,8 @@ public final class APanel extends CPanel
|
|||
private boolean isNested = false;
|
||||
private boolean ToolBarMenuRestictionLoaded = false;
|
||||
|
||||
private static final String WINDOW = "org.idempiere.ui.window";
|
||||
|
||||
/**
|
||||
* Constructs a new instance.
|
||||
* Need to call initPanel for dynamic initialization
|
||||
|
@ -2924,7 +2926,7 @@ public final class APanel extends CPanel
|
|||
{
|
||||
int ToolBarButton_ID = 0;
|
||||
|
||||
int[] restrictionList = MToolBarButtonRestrict.getOf(m_ctx, MRole.getDefault().getAD_Role_ID(), "W", m_window.getAD_Window_ID(), this.getClass().getName(), null);
|
||||
int[] restrictionList = MToolBarButtonRestrict.getOf(m_ctx, MRole.getDefault().getAD_Role_ID(), "W", m_window.getAD_Window_ID(), WINDOW, null);
|
||||
log.info("restrictionList="+restrictionList.toString());
|
||||
|
||||
for (int i = 0; i < restrictionList.length; i++)
|
||||
|
|
|
@ -116,6 +116,8 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
|
|||
// public int lastModifiers;
|
||||
//
|
||||
|
||||
private static final String WINDOW = "org.idempiere.ui.window";
|
||||
|
||||
public ADWindowToolbar()
|
||||
{
|
||||
this(0);
|
||||
|
@ -554,7 +556,7 @@ public class ADWindowToolbar extends FToolbar implements EventListener<Event>
|
|||
|
||||
int ToolBarButton_ID = 0;
|
||||
|
||||
int[] restrictionList = MToolBarButtonRestrict.getOf(m_ctx, MRole.getDefault().getAD_Role_ID(), "W", AD_Window_ID, this.getClass().getName(), null);
|
||||
int[] restrictionList = MToolBarButtonRestrict.getOf(m_ctx, MRole.getDefault().getAD_Role_ID(), "W", AD_Window_ID, WINDOW, null);
|
||||
log.info("restrictionList="+restrictionList.toString());
|
||||
|
||||
for (int i = 0; i < restrictionList.length; i++)
|
||||
|
|
|
@ -43,6 +43,7 @@ import org.adempiere.webui.component.Listbox;
|
|||
import org.adempiere.webui.component.Tabbox;
|
||||
import org.adempiere.webui.component.Tabpanel;
|
||||
import org.adempiere.webui.component.Tabs;
|
||||
import org.adempiere.webui.component.ToolBarButton;
|
||||
import org.adempiere.webui.component.Window;
|
||||
import org.adempiere.webui.event.DialogEvents;
|
||||
import org.adempiere.webui.event.DrillEvent;
|
||||
|
@ -58,7 +59,9 @@ import org.compiere.model.MQuery;
|
|||
import org.compiere.model.MRole;
|
||||
import org.compiere.model.MSysConfig;
|
||||
import org.compiere.model.MTable;
|
||||
import org.compiere.model.MToolBarButtonRestrict;
|
||||
import org.compiere.model.MUser;
|
||||
import org.compiere.model.X_AD_ToolBarButton;
|
||||
import org.compiere.print.ArchiveEngine;
|
||||
import org.compiere.print.MPrintFormat;
|
||||
import org.compiere.print.ReportEngine;
|
||||
|
@ -143,17 +146,17 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
|
|||
//
|
||||
private StatusBarPanel statusBar = new StatusBarPanel();
|
||||
private Toolbar toolBar = new Toolbar();
|
||||
private Toolbarbutton bSendMail = new Toolbarbutton();
|
||||
private Toolbarbutton bArchive = new Toolbarbutton();
|
||||
private Toolbarbutton bCustomize = new Toolbarbutton();
|
||||
private Toolbarbutton bFind = new Toolbarbutton();
|
||||
private Toolbarbutton bExport = new Toolbarbutton();
|
||||
private ToolBarButton bSendMail = new ToolBarButton();
|
||||
private ToolBarButton bArchive = new ToolBarButton();
|
||||
private ToolBarButton bCustomize = new ToolBarButton();
|
||||
private ToolBarButton bFind = new ToolBarButton();
|
||||
private ToolBarButton bExport = new ToolBarButton();
|
||||
private Listbox comboReport = new Listbox();
|
||||
private Label labelDrill = new Label();
|
||||
private Listbox comboDrill = new Listbox();
|
||||
private Listbox previewType = new Listbox();
|
||||
|
||||
private Toolbarbutton bRefresh = new Toolbarbutton();
|
||||
private ToolBarButton bRefresh = new ToolBarButton();
|
||||
private Iframe iframe;
|
||||
|
||||
private Window winExportFile = null;
|
||||
|
@ -166,6 +169,8 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
|
|||
|
||||
private A reportLink;
|
||||
|
||||
private static final String REPORT = "org.idempiere.ui.report";
|
||||
|
||||
/**
|
||||
* Static Layout
|
||||
* @throws Exception
|
||||
|
@ -255,11 +260,15 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
|
|||
|
||||
toolBar.appendChild(new Separator("vertical"));
|
||||
|
||||
bCustomize.setName("Customize");
|
||||
bCustomize.setImage("/images/Preference24.png");
|
||||
bCustomize.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "PrintCustomize")));
|
||||
toolBar.appendChild(bCustomize);
|
||||
bCustomize.addEventListener(Events.ON_CLICK, this);
|
||||
|
||||
|
||||
|
||||
bFind.setName("Find");
|
||||
bFind.setImage("/images/Find24.png");
|
||||
bFind.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Find")));
|
||||
toolBar.appendChild(bFind);
|
||||
|
@ -267,11 +276,13 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
|
|||
|
||||
toolBar.appendChild(new Separator("vertical"));
|
||||
|
||||
bSendMail.setName("SendMail");
|
||||
bSendMail.setImage("/images/SendMail24.png");
|
||||
bSendMail.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "SendMail")));
|
||||
toolBar.appendChild(bSendMail);
|
||||
bSendMail.addEventListener(Events.ON_CLICK, this);
|
||||
|
||||
bSendMail.setName("Archive");
|
||||
bArchive.setImage("/images/Archive24.png");
|
||||
bArchive.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Archive")));
|
||||
toolBar.appendChild(bArchive);
|
||||
|
@ -279,6 +290,7 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
|
|||
|
||||
if (m_isCanExport)
|
||||
{
|
||||
bExport.setName("Export");
|
||||
bExport.setImage("/images/ExportX24.png");
|
||||
bExport.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Export")));
|
||||
toolBar.appendChild(bExport);
|
||||
|
@ -287,6 +299,7 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
|
|||
|
||||
toolBar.appendChild(new Separator("vertical"));
|
||||
|
||||
bRefresh.setName("Refresh");
|
||||
bRefresh.setImage("/images/Refresh24.png");
|
||||
bRefresh.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "Refresh")));
|
||||
toolBar.appendChild(bRefresh);
|
||||
|
@ -312,6 +325,8 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
|
|||
linkDiv.setStyle("width:100%; height: 20px");
|
||||
linkDiv.appendChild(reportLink);
|
||||
south.appendChild(linkDiv);
|
||||
//m_WindowNo
|
||||
updateToolBarAndMenuWithRestriction(m_reportEngine.getWindowNo());
|
||||
|
||||
try {
|
||||
renderReport();
|
||||
|
@ -1086,4 +1101,35 @@ public class ZkReportViewer extends Window implements EventListener<Event>, ITab
|
|||
return media;
|
||||
}
|
||||
}
|
||||
|
||||
private boolean ToolBarMenuRestictionLoaded = false;
|
||||
public void updateToolBarAndMenuWithRestriction(int AD_Window_ID) {
|
||||
if (ToolBarMenuRestictionLoaded)
|
||||
return;
|
||||
Properties m_ctx = Env.getCtx();
|
||||
int ToolBarButton_ID = 0;
|
||||
|
||||
int[] restrictionList = MToolBarButtonRestrict.getOf(m_ctx, MRole.getDefault().getAD_Role_ID(), "R", AD_Window_ID, REPORT, null);
|
||||
log.info("restrictionList="+restrictionList.toString());
|
||||
|
||||
for (int i = 0; i < restrictionList.length; i++)
|
||||
{
|
||||
ToolBarButton_ID= restrictionList[i];
|
||||
X_AD_ToolBarButton tbt = new X_AD_ToolBarButton(m_ctx, ToolBarButton_ID, null);
|
||||
String restrictName = tbt.getComponentName();
|
||||
log.config("tbt="+tbt.getAD_ToolBarButton_ID() + " / " + restrictName);
|
||||
|
||||
for (Component p = this.toolBar.getFirstChild(); p != null; p = p.getNextSibling()) {
|
||||
if (p instanceof Toolbarbutton) {
|
||||
if ( restrictName.equals(((ToolBarButton)p).getName()) ) {
|
||||
this.toolBar.removeChild(p);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} // All restrictions
|
||||
|
||||
ToolBarMenuRestictionLoaded = true;
|
||||
}//updateToolBarAndMenuWithRestriction
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue