diff --git a/migration/i2.0z/oracle/201401082019_IDEMPIERE-1085.sql b/migration/i2.0z/oracle/201401082019_IDEMPIERE-1085.sql new file mode 100644 index 0000000000..4c07b41730 --- /dev/null +++ b/migration/i2.0z/oracle/201401082019_IDEMPIERE-1085.sql @@ -0,0 +1,187 @@ +-- Jun 21, 2013 1:54:40 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,AD_SysConfig_UU,ConfigurationLevel,Created,CreatedBy,Description,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,200031,'3fca6e48-6809-4ede-8d73-16de172a9e1f','C',TO_DATE('2013-06-21 13:54:39','YYYY-MM-DD HH24:MI:SS'),100,'If role allow it, you can access to Info Account from DP Views dashboard','D','Y','DPViews_ShowInfoAccount',TO_DATE('2013-06-21 13:54:39','YYYY-MM-DD HH24:MI:SS'),100,'Y') +; + +-- Jun 21, 2013 1:54:54 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,AD_SysConfig_UU,ConfigurationLevel,Created,CreatedBy,Description,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,200032,'ee06e3d0-b424-4bbb-a34b-654563da6c72','C',TO_DATE('2013-06-21 13:54:54','YYYY-MM-DD HH24:MI:SS'),100,'If role allow it, you can access to Info Schedule from DP Views dashboard','D','Y','DPViews_ShowInfoSchedule',TO_DATE('2013-06-21 13:54:54','YYYY-MM-DD HH24:MI:SS'),100,'Y') +; + +-- Jun 21, 2013 1:55:58 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210509,'9b2b4a4c-364e-4487-805a-135cb94670da',1720,0,10,895,'ImageURL',TO_DATE('2013-06-21 13:55:58','YYYY-MM-DD HH24:MI:SS'),100,'URL of image','D',120,'URL of image; The image is not stored in the database, but retrieved at runtime. The image can be a gif, jpeg or png.','Y','Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Image URL',0,0,TO_DATE('2013-06-21 13:55:58','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 21, 2013 1:55:59 PM CEST +-- IDEMPIERE-1085 +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=210509 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) +; + +-- Jun 21, 2013 1:56:00 PM CEST +-- IDEMPIERE-1085 +ALTER TABLE AD_InfoWindow ADD ImageURL NVARCHAR2(120) DEFAULT NULL +; + +-- Jun 21, 2013 1:56:25 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210510,'f0c237ac-edcd-43b2-8d40-1d5c9858680c',566,0,11,895,'SeqNo',TO_DATE('2013-06-21 13:56:24','YYYY-MM-DD HH24:MI:SS'),100,'@SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_InfoWindow WHERE AD_InfoWindow_ID=@AD_InfoWindow_ID@','Method of ordering records; lowest number comes first','D',22,'The Sequence indicates the order of records','Y','Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Sequence',0,0,TO_DATE('2013-06-21 13:56:24','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 21, 2013 1:56:25 PM CEST +-- IDEMPIERE-1085 +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=210510 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) +; + +-- Jun 21, 2013 1:56:26 PM CEST +-- IDEMPIERE-1085 +ALTER TABLE AD_InfoWindow ADD SeqNo NUMBER(10) DEFAULT NULL +; + +-- Jun 21, 2013 1:56:44 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210511,'e21b0a7e-8691-40a5-ad5a-e3f090192db5',200074,0,20,895,'IsShowInDashboard',TO_DATE('2013-06-21 13:56:43','YYYY-MM-DD HH24:MI:SS'),100,'Y','Show the dashlet in the dashboard','D',1,'Y','Y','Y','N','N','N','N','N','Y','N','N','N','N','N','Y','Show in Dashboard',0,0,TO_DATE('2013-06-21 13:56:43','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 21, 2013 1:56:44 PM CEST +-- IDEMPIERE-1085 +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=210511 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) +; + +-- Jun 21, 2013 1:56:45 PM CEST +-- IDEMPIERE-1085 +ALTER TABLE AD_InfoWindow ADD IsShowInDashboard CHAR(1) DEFAULT 'Y' CHECK (IsShowInDashboard IN ('Y','N')) NOT NULL +; + +-- Jun 21, 2013 1:56:49 PM CEST +-- IDEMPIERE-1085 +ALTER TABLE AD_InfoWindow MODIFY IsShowInDashboard CHAR(1) DEFAULT 'Y' +; + +-- Jun 21, 2013 1:56:49 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_InfoWindow SET IsShowInDashboard='Y' WHERE IsShowInDashboard IS NULL +; + +-- Jun 21, 2013 1:57:08 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210509,202196,'ebd357bf-70de-46a0-8496-8e571b412233',0,842,5,TO_DATE('2013-06-21 13:57:08','YYYY-MM-DD HH24:MI:SS'),100,'URL of image',120,'D','URL of image; The image is not stored in the database, but retrieved at runtime. The image can be a gif, jpeg or png.','Y','Y','Y','N','N','N','N','N','Image URL',180,TO_DATE('2013-06-21 13:57:08','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jun 21, 2013 1:57:08 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,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.Description,t.Help,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=202196 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) +; + +-- Jun 21, 2013 1:57:09 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210510,202197,'0d40ae0e-8814-432a-915c-3dde1a558771',0,842,2,TO_DATE('2013-06-21 13:57:08','YYYY-MM-DD HH24:MI:SS'),100,'Method of ordering records; lowest number comes first',22,'D','The Sequence indicates the order of records','Y','Y','Y','N','N','N','N','N','Sequence',190,TO_DATE('2013-06-21 13:57:08','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jun 21, 2013 1:57:09 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,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.Description,t.Help,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=202197 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) +; + +-- Jun 21, 2013 1:57:09 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy,XPosition) VALUES (0,210511,202198,'43f7afaf-4ad2-45f5-a2da-1237c89ac29d',0,842,2,TO_DATE('2013-06-21 13:57:09','YYYY-MM-DD HH24:MI:SS'),100,'Show the dashlet in the dashboard',1,'D','Y','Y','Y','N','N','N','N','N','Show in Dashboard',200,TO_DATE('2013-06-21 13:57:09','YYYY-MM-DD HH24:MI:SS'),100,2) +; + +-- Jun 21, 2013 1:57:09 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,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.Description,t.Help,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=202198 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) +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=202197 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=13582 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=13575 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=13581 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=201621 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=201634 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=13579 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=13580 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=201627 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=201628 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=201639 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=202198 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=201807 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=202196 +; + +-- Jun 21, 2013 1:58:05 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2013-06-21 13:58:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202197 +; + +-- Jun 21, 2013 1:58:32 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2013-06-21 13:58:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202198 +; + +-- Jun 21, 2013 1:59:01 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_InfoWindow SET ImageURL='InfoBPartner16.png',Updated=TO_DATE('2013-06-21 13:59:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200001 +; + +-- Jun 21, 2013 1:59:10 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_InfoWindow SET ImageURL='InfoProduct16.png',Updated=TO_DATE('2013-06-21 13:59:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200000 +; + +SELECT register_migration_script('201401082019_IDEMPIERE-1085.sql') FROM dual +; diff --git a/migration/i2.0z/oracle/201401082159_IDEMPIERE-1085.sql b/migration/i2.0z/oracle/201401082159_IDEMPIERE-1085.sql new file mode 100644 index 0000000000..c3eedcfb92 --- /dev/null +++ b/migration/i2.0z/oracle/201401082159_IDEMPIERE-1085.sql @@ -0,0 +1,79 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- Jan 8, 2014 9:54:55 PM COT +-- IDEMPIERE-1085 Loading Info windows dynamically +UPDATE AD_InfoWindow SET SeqNo=10,Updated=TO_DATE('2014-01-08 21:54:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200000 +; + +-- Jan 8, 2014 9:55:06 PM COT +UPDATE AD_InfoWindow SET SeqNo=20,Updated=TO_DATE('2014-01-08 21:55:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200001 +; + +-- Jan 8, 2014 9:55:38 PM COT +UPDATE AD_InfoWindow SET SeqNo=30,Updated=TO_DATE('2014-01-08 21:55:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200002 +; + +-- Jan 8, 2014 9:55:47 PM COT +UPDATE AD_InfoWindow SET SeqNo=40,Updated=TO_DATE('2014-01-08 21:55:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200003 +; + +-- Jan 8, 2014 9:55:55 PM COT +UPDATE AD_InfoWindow SET SeqNo=50,Updated=TO_DATE('2014-01-08 21:55:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200004 +; + +-- Jan 8, 2014 9:56:05 PM COT +UPDATE AD_InfoWindow SET SeqNo=60,Updated=TO_DATE('2014-01-08 21:56:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200005 +; + +-- Jan 8, 2014 9:56:12 PM COT +UPDATE AD_InfoWindow SET SeqNo=70,Updated=TO_DATE('2014-01-08 21:56:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200006 +; + +-- Jan 8, 2014 9:56:16 PM COT +UPDATE AD_InfoWindow SET SeqNo=80,Updated=TO_DATE('2014-01-08 21:56:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200007 +; + +-- Jan 8, 2014 9:58:41 PM COT +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=202197 +; + +-- Jan 8, 2014 9:58:41 PM COT +UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=13573 +; + +-- Jan 8, 2014 9:58:41 PM COT +UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=13582 +; + +-- Jan 8, 2014 9:58:41 PM COT +UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=201628 +; + +-- Jan 8, 2014 9:58:42 PM COT +UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=13571 +; + +-- Jan 8, 2014 9:58:42 PM COT +UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=13580 +; + +-- Jan 8, 2014 9:58:42 PM COT +UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=201639 +; + +-- Jan 8, 2014 9:58:42 PM COT +UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=201807 +; + +-- Jan 8, 2014 9:58:42 PM COT +UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=202198 +; + +-- Jan 8, 2014 9:58:42 PM COT +UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=202196 +; + +SELECT register_migration_script('201401082159_IDEMPIERE-1085.sql') FROM dual +; + diff --git a/migration/i2.0z/postgresql/201401082019_IDEMPIERE-1085.sql b/migration/i2.0z/postgresql/201401082019_IDEMPIERE-1085.sql new file mode 100644 index 0000000000..2472edb6f8 --- /dev/null +++ b/migration/i2.0z/postgresql/201401082019_IDEMPIERE-1085.sql @@ -0,0 +1,187 @@ +-- Jun 21, 2013 1:54:40 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,AD_SysConfig_UU,ConfigurationLevel,Created,CreatedBy,Description,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,200031,'3fca6e48-6809-4ede-8d73-16de172a9e1f','C',TO_TIMESTAMP('2013-06-21 13:54:39','YYYY-MM-DD HH24:MI:SS'),100,'If role allow it, you can access to Info Account from DP Views dashboard','D','Y','DPViews_ShowInfoAccount',TO_TIMESTAMP('2013-06-21 13:54:39','YYYY-MM-DD HH24:MI:SS'),100,'Y') +; + +-- Jun 21, 2013 1:54:54 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_SysConfig (AD_Client_ID,AD_Org_ID,AD_SysConfig_ID,AD_SysConfig_UU,ConfigurationLevel,Created,CreatedBy,Description,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,200032,'ee06e3d0-b424-4bbb-a34b-654563da6c72','C',TO_TIMESTAMP('2013-06-21 13:54:54','YYYY-MM-DD HH24:MI:SS'),100,'If role allow it, you can access to Info Schedule from DP Views dashboard','D','Y','DPViews_ShowInfoSchedule',TO_TIMESTAMP('2013-06-21 13:54:54','YYYY-MM-DD HH24:MI:SS'),100,'Y') +; + +-- Jun 21, 2013 1:55:58 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210509,'9b2b4a4c-364e-4487-805a-135cb94670da',1720,0,10,895,'ImageURL',TO_TIMESTAMP('2013-06-21 13:55:58','YYYY-MM-DD HH24:MI:SS'),100,'URL of image','D',120,'URL of image; The image is not stored in the database, but retrieved at runtime. The image can be a gif, jpeg or png.','Y','Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Image URL',0,0,TO_TIMESTAMP('2013-06-21 13:55:58','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 21, 2013 1:55:59 PM CEST +-- IDEMPIERE-1085 +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=210509 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) +; + +-- Jun 21, 2013 1:56:00 PM CEST +-- IDEMPIERE-1085 +ALTER TABLE AD_InfoWindow ADD COLUMN ImageURL VARCHAR(120) DEFAULT NULL +; + +-- Jun 21, 2013 1:56:25 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210510,'f0c237ac-edcd-43b2-8d40-1d5c9858680c',566,0,11,895,'SeqNo',TO_TIMESTAMP('2013-06-21 13:56:24','YYYY-MM-DD HH24:MI:SS'),100,'@SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_InfoWindow WHERE AD_InfoWindow_ID=@AD_InfoWindow_ID@','Method of ordering records; lowest number comes first','D',22,'The Sequence indicates the order of records','Y','Y','Y','N','N','N','N','N','N','N','N','N','N','N','Y','Sequence',0,0,TO_TIMESTAMP('2013-06-21 13:56:24','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 21, 2013 1:56:25 PM CEST +-- IDEMPIERE-1085 +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=210510 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) +; + +-- Jun 21, 2013 1:56:26 PM CEST +-- IDEMPIERE-1085 +ALTER TABLE AD_InfoWindow ADD COLUMN SeqNo NUMERIC(10) DEFAULT NULL +; + +-- Jun 21, 2013 1:56:44 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Column_UU,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,IsActive,IsAllowCopy,IsAllowLogging,IsAlwaysUpdateable,IsAutocomplete,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsToolbarButton,IsTranslated,IsUpdateable,Name,SeqNo,SeqNoSelection,Updated,UpdatedBy,Version) VALUES (0,210511,'e21b0a7e-8691-40a5-ad5a-e3f090192db5',200074,0,20,895,'IsShowInDashboard',TO_TIMESTAMP('2013-06-21 13:56:43','YYYY-MM-DD HH24:MI:SS'),100,'Y','Show the dashlet in the dashboard','D',1,'Y','Y','Y','N','N','N','N','N','Y','N','N','N','N','N','Y','Show in Dashboard',0,0,TO_TIMESTAMP('2013-06-21 13:56:43','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 21, 2013 1:56:44 PM CEST +-- IDEMPIERE-1085 +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=210511 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) +; + +-- Jun 21, 2013 1:56:45 PM CEST +-- IDEMPIERE-1085 +ALTER TABLE AD_InfoWindow ADD COLUMN IsShowInDashboard CHAR(1) DEFAULT 'Y' CHECK (IsShowInDashboard IN ('Y','N')) NOT NULL +; + +-- Jun 21, 2013 1:56:49 PM CEST +-- IDEMPIERE-1085 +INSERT INTO t_alter_column values('ad_infowindow','IsShowInDashboard','CHAR(1)',null,'Y') +; + +-- Jun 21, 2013 1:56:49 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_InfoWindow SET IsShowInDashboard='Y' WHERE IsShowInDashboard IS NULL +; + +-- Jun 21, 2013 1:57:08 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210509,202196,'ebd357bf-70de-46a0-8496-8e571b412233',0,842,5,TO_TIMESTAMP('2013-06-21 13:57:08','YYYY-MM-DD HH24:MI:SS'),100,'URL of image',120,'D','URL of image; The image is not stored in the database, but retrieved at runtime. The image can be a gif, jpeg or png.','Y','Y','Y','N','N','N','N','N','Image URL',180,TO_TIMESTAMP('2013-06-21 13:57:08','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jun 21, 2013 1:57:08 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,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.Description,t.Help,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=202196 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) +; + +-- Jun 21, 2013 1:57:09 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy) VALUES (0,210510,202197,'0d40ae0e-8814-432a-915c-3dde1a558771',0,842,2,TO_TIMESTAMP('2013-06-21 13:57:08','YYYY-MM-DD HH24:MI:SS'),100,'Method of ordering records; lowest number comes first',22,'D','The Sequence indicates the order of records','Y','Y','Y','N','N','N','N','N','Sequence',190,TO_TIMESTAMP('2013-06-21 13:57:08','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jun 21, 2013 1:57:09 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,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.Description,t.Help,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=202197 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) +; + +-- Jun 21, 2013 1:57:09 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Field_UU,AD_Org_ID,AD_Tab_ID,ColumnSpan,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,Updated,UpdatedBy,XPosition) VALUES (0,210511,202198,'43f7afaf-4ad2-45f5-a2da-1237c89ac29d',0,842,2,TO_TIMESTAMP('2013-06-21 13:57:09','YYYY-MM-DD HH24:MI:SS'),100,'Show the dashlet in the dashboard',1,'D','Y','Y','Y','N','N','N','N','N','Show in Dashboard',200,TO_TIMESTAMP('2013-06-21 13:57:09','YYYY-MM-DD HH24:MI:SS'),100,2) +; + +-- Jun 21, 2013 1:57:09 PM CEST +-- IDEMPIERE-1085 +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,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.Description,t.Help,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=202198 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) +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=202197 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=13582 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=13575 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=13581 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=201621 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=201634 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=13579 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=13580 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=201627 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=201628 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=201639 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=202198 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=201807 +; + +-- Jun 21, 2013 1:57:55 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=202196 +; + +-- Jun 21, 2013 1:58:05 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2013-06-21 13:58:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202197 +; + +-- Jun 21, 2013 1:58:32 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2013-06-21 13:58:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=202198 +; + +-- Jun 21, 2013 1:59:01 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_InfoWindow SET ImageURL='InfoBPartner16.png',Updated=TO_TIMESTAMP('2013-06-21 13:59:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200001 +; + +-- Jun 21, 2013 1:59:10 PM CEST +-- IDEMPIERE-1085 +UPDATE AD_InfoWindow SET ImageURL='InfoProduct16.png',Updated=TO_TIMESTAMP('2013-06-21 13:59:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200000 +; + +SELECT register_migration_script('201401082019_IDEMPIERE-1085.sql') FROM dual +; diff --git a/migration/i2.0z/postgresql/201401082159_IDEMPIERE-1085.sql b/migration/i2.0z/postgresql/201401082159_IDEMPIERE-1085.sql new file mode 100644 index 0000000000..0a796d4997 --- /dev/null +++ b/migration/i2.0z/postgresql/201401082159_IDEMPIERE-1085.sql @@ -0,0 +1,76 @@ +-- Jan 8, 2014 9:54:55 PM COT +-- IDEMPIERE-1085 Loading Info windows dynamically +UPDATE AD_InfoWindow SET SeqNo=10,Updated=TO_TIMESTAMP('2014-01-08 21:54:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200000 +; + +-- Jan 8, 2014 9:55:06 PM COT +UPDATE AD_InfoWindow SET SeqNo=20,Updated=TO_TIMESTAMP('2014-01-08 21:55:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200001 +; + +-- Jan 8, 2014 9:55:38 PM COT +UPDATE AD_InfoWindow SET SeqNo=30,Updated=TO_TIMESTAMP('2014-01-08 21:55:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200002 +; + +-- Jan 8, 2014 9:55:47 PM COT +UPDATE AD_InfoWindow SET SeqNo=40,Updated=TO_TIMESTAMP('2014-01-08 21:55:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200003 +; + +-- Jan 8, 2014 9:55:55 PM COT +UPDATE AD_InfoWindow SET SeqNo=50,Updated=TO_TIMESTAMP('2014-01-08 21:55:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200004 +; + +-- Jan 8, 2014 9:56:05 PM COT +UPDATE AD_InfoWindow SET SeqNo=60,Updated=TO_TIMESTAMP('2014-01-08 21:56:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200005 +; + +-- Jan 8, 2014 9:56:12 PM COT +UPDATE AD_InfoWindow SET SeqNo=70,Updated=TO_TIMESTAMP('2014-01-08 21:56:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200006 +; + +-- Jan 8, 2014 9:56:16 PM COT +UPDATE AD_InfoWindow SET SeqNo=80,Updated=TO_TIMESTAMP('2014-01-08 21:56:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200007 +; + +-- Jan 8, 2014 9:58:41 PM COT +UPDATE AD_Field SET SeqNoGrid=30,IsDisplayedGrid='Y' WHERE AD_Field_ID=202197 +; + +-- Jan 8, 2014 9:58:41 PM COT +UPDATE AD_Field SET SeqNoGrid=40,IsDisplayedGrid='Y' WHERE AD_Field_ID=13573 +; + +-- Jan 8, 2014 9:58:41 PM COT +UPDATE AD_Field SET SeqNoGrid=50,IsDisplayedGrid='Y' WHERE AD_Field_ID=13582 +; + +-- Jan 8, 2014 9:58:41 PM COT +UPDATE AD_Field SET SeqNoGrid=60,IsDisplayedGrid='Y' WHERE AD_Field_ID=201628 +; + +-- Jan 8, 2014 9:58:42 PM COT +UPDATE AD_Field SET SeqNoGrid=70,IsDisplayedGrid='Y' WHERE AD_Field_ID=13571 +; + +-- Jan 8, 2014 9:58:42 PM COT +UPDATE AD_Field SET SeqNoGrid=80,IsDisplayedGrid='Y' WHERE AD_Field_ID=13580 +; + +-- Jan 8, 2014 9:58:42 PM COT +UPDATE AD_Field SET SeqNoGrid=90,IsDisplayedGrid='Y' WHERE AD_Field_ID=201639 +; + +-- Jan 8, 2014 9:58:42 PM COT +UPDATE AD_Field SET SeqNoGrid=100,IsDisplayedGrid='Y' WHERE AD_Field_ID=201807 +; + +-- Jan 8, 2014 9:58:42 PM COT +UPDATE AD_Field SET SeqNoGrid=110,IsDisplayedGrid='Y' WHERE AD_Field_ID=202198 +; + +-- Jan 8, 2014 9:58:42 PM COT +UPDATE AD_Field SET SeqNoGrid=120,IsDisplayedGrid='Y' WHERE AD_Field_ID=202196 +; + +SELECT register_migration_script('201401082159_IDEMPIERE-1085.sql') FROM dual +; + diff --git a/org.adempiere.base/src/org/compiere/model/I_AD_InfoWindow.java b/org.adempiere.base/src/org/compiere/model/I_AD_InfoWindow.java index c5523aa681..97f3636445 100644 --- a/org.adempiere.base/src/org/compiere/model/I_AD_InfoWindow.java +++ b/org.adempiere.base/src/org/compiere/model/I_AD_InfoWindow.java @@ -180,6 +180,19 @@ public interface I_AD_InfoWindow */ public String getHelp(); + /** Column name ImageURL */ + public static final String COLUMNNAME_ImageURL = "ImageURL"; + + /** Set Image URL. + * URL of image + */ + public void setImageURL (String ImageURL); + + /** Get Image URL. + * URL of image + */ + public String getImageURL(); + /** Column name IsActive */ public static final String COLUMNNAME_IsActive = "IsActive"; @@ -219,6 +232,19 @@ public interface I_AD_InfoWindow */ public boolean isDistinct(); + /** Column name IsShowInDashboard */ + public static final String COLUMNNAME_IsShowInDashboard = "IsShowInDashboard"; + + /** Set Show in Dashboard. + * Show the dashlet in the dashboard + */ + public void setIsShowInDashboard (boolean IsShowInDashboard); + + /** Get Show in Dashboard. + * Show the dashlet in the dashboard + */ + public boolean isShowInDashboard(); + /** Column name IsValid */ public static final String COLUMNNAME_IsValid = "IsValid"; @@ -280,6 +306,21 @@ public interface I_AD_InfoWindow /** Get Process Now */ public boolean isProcessing(); + /** 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"; diff --git a/org.adempiere.base/src/org/compiere/model/MSysConfig.java b/org.adempiere.base/src/org/compiere/model/MSysConfig.java index abd2e268b4..67479184e6 100644 --- a/org.adempiere.base/src/org/compiere/model/MSysConfig.java +++ b/org.adempiere.base/src/org/compiere/model/MSysConfig.java @@ -42,8 +42,8 @@ public class MSysConfig extends X_AD_SysConfig /** * */ - private static final long serialVersionUID = 4741060210080877182L; - + private static final long serialVersionUID = -2008818748067665365L; + public final static String PDF_FONT_DIR = "PDF_FONT_DIR"; public final static String TWOPACK_HANDLE_TRANSLATIONS = "2PACK_HANDLE_TRANSLATIONS"; public static final String ZK_DESKTOP_CLASS = "ZK_DESKTOP_CLASS"; @@ -122,6 +122,8 @@ public class MSysConfig extends X_AD_SysConfig public static final String TAX_SAVE_REQUEST_RESPONSE_LOG = "TAX_SAVE_REQUEST_RESPONSE_LOG"; public static final String ADDRESS_SAVE_REQUEST_RESPONSE_LOG = "ADDRESS_SAVE_REQUEST_RESPONSE_LOG"; public static final String VALIDATE_MATCHING_TO_ORDERED_QTY = "VALIDATE_MATCHING_TO_ORDERED_QTY"; + public static final String DPVIEWS_SHOWINFOACCOUNT = "DPViews_ShowInfoAccount"; + public static final String DPVIEWS_SHOWINFOSCHEDULE = "DPViews_ShowInfoSchedule"; /** * Standard Constructor diff --git a/org.adempiere.base/src/org/compiere/model/X_AD_InfoWindow.java b/org.adempiere.base/src/org/compiere/model/X_AD_InfoWindow.java index c3b0c29122..909b268835 100644 --- a/org.adempiere.base/src/org/compiere/model/X_AD_InfoWindow.java +++ b/org.adempiere.base/src/org/compiere/model/X_AD_InfoWindow.java @@ -30,7 +30,7 @@ public class X_AD_InfoWindow extends PO implements I_AD_InfoWindow, I_Persistent /** * */ - private static final long serialVersionUID = 20131031L; + private static final long serialVersionUID = 20140108L; /** Standard Constructor */ public X_AD_InfoWindow (Properties ctx, int AD_InfoWindow_ID, String trxName) @@ -47,6 +47,8 @@ public class X_AD_InfoWindow extends PO implements I_AD_InfoWindow, I_Persistent // N setIsDistinct (false); // N + setIsShowInDashboard (true); +// Y setIsValid (false); // N setName (null); @@ -242,6 +244,23 @@ public class X_AD_InfoWindow extends PO implements I_AD_InfoWindow, I_Persistent return (String)get_Value(COLUMNNAME_Help); } + /** Set Image URL. + @param ImageURL + URL of image + */ + public void setImageURL (String ImageURL) + { + set_Value (COLUMNNAME_ImageURL, ImageURL); + } + + /** Get Image URL. + @return URL of image + */ + public String getImageURL () + { + return (String)get_Value(COLUMNNAME_ImageURL); + } + /** Set Default. @param IsDefault Default value @@ -290,6 +309,30 @@ public class X_AD_InfoWindow extends PO implements I_AD_InfoWindow, I_Persistent return false; } + /** Set Show in Dashboard. + @param IsShowInDashboard + Show the dashlet in the dashboard + */ + public void setIsShowInDashboard (boolean IsShowInDashboard) + { + set_Value (COLUMNNAME_IsShowInDashboard, Boolean.valueOf(IsShowInDashboard)); + } + + /** Get Show in Dashboard. + @return Show the dashlet in the dashboard + */ + public boolean isShowInDashboard () + { + Object oo = get_Value(COLUMNNAME_IsShowInDashboard); + if (oo != null) + { + if (oo instanceof Boolean) + return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); + } + return false; + } + /** Set Valid. @param IsValid Element is valid @@ -394,6 +437,26 @@ public class X_AD_InfoWindow extends PO implements I_AD_InfoWindow, I_Persistent return false; } + /** 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(); + } + /** Set Sql WHERE. @param WhereClause Fully qualified SQL WHERE clause diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java index 63b3257cb4..ba24bda8a2 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/AbstractADWindowContent.java @@ -78,6 +78,7 @@ import org.compiere.model.GridTab; import org.compiere.model.GridTable; import org.compiere.model.GridWindow; import org.compiere.model.GridWindowVO; +import org.compiere.model.I_M_Product; import org.compiere.model.MImage; import org.compiere.model.MProcess; import org.compiere.model.MQuery; @@ -2319,7 +2320,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements */ public void onProductInfo() { - InfoPanel.showProduct(0); + InfoPanel.showPanel(I_M_Product.Table_Name); } // diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DPViews.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DPViews.java index cfe9abef94..be2727d850 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DPViews.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/dashboard/DPViews.java @@ -13,22 +13,19 @@ *****************************************************************************/ package org.adempiere.webui.dashboard; +import java.util.List; + import org.adempiere.webui.apps.AEnv; import org.adempiere.webui.component.ToolBarButton; import org.adempiere.webui.component.Window; import org.adempiere.webui.panel.InfoPanel; import org.adempiere.webui.theme.ThemeManager; import org.adempiere.webui.window.InfoSchedule; -import org.compiere.model.I_A_Asset; -import org.compiere.model.I_C_BPartner; -import org.compiere.model.I_C_Invoice; -import org.compiere.model.I_C_Order; -import org.compiere.model.I_C_Payment; -import org.compiere.model.I_M_InOut; -import org.compiere.model.I_M_Product; -import org.compiere.model.I_S_ResourceAssignment; import org.compiere.model.MInfoWindow; import org.compiere.model.MRole; +import org.compiere.model.MSysConfig; +import org.compiere.model.MTable; +import org.compiere.model.Query; import org.compiere.util.Env; import org.compiere.util.Msg; import org.compiere.util.Util; @@ -37,7 +34,6 @@ 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.Box; -import org.zkoss.zul.Separator; import org.zkoss.zul.Vbox; /** @@ -56,32 +52,15 @@ public class DPViews extends DashboardPanel implements EventListener { { super(); setSclass("views-box"); - this.appendChild(createViewPanel()); + this.appendChild(createViewPanel()); } - + private Box createViewPanel() { Vbox vbox = new Vbox(); - if (MInfoWindow.get(I_M_Product.Table_Name, null) != null) - { - ToolBarButton btnViewItem = new ToolBarButton("InfoProduct"); - btnViewItem.setSclass("link"); - btnViewItem.setLabel(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "InfoProduct"))); - btnViewItem.setImage(ThemeManager.getThemeResource("images/InfoProduct16.png")); - btnViewItem.addEventListener(Events.ON_CLICK, this); - vbox.appendChild(btnViewItem); - } - if (MInfoWindow.get(I_C_BPartner.Table_Name, null) != null) - { - ToolBarButton btnViewItem = new ToolBarButton("InfoBPartner"); - btnViewItem.setSclass("link"); - btnViewItem.setLabel(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "InfoBPartner"))); - btnViewItem.setImage(ThemeManager.getThemeResource("images/InfoBPartner16.png")); - btnViewItem.addEventListener(Events.ON_CLICK, this); - vbox.appendChild(btnViewItem); - } - if (MRole.getDefault().isShowAcct() && MRole.getDefault().isAllow_Info_Account()) + if (MSysConfig.getBooleanValue(MSysConfig.DPVIEWS_SHOWINFOACCOUNT, true, Env.getAD_Client_ID(Env.getCtx())) + && MRole.getDefault().isShowAcct() && MRole.getDefault().isAllow_Info_Account()) { ToolBarButton btnViewItem = new ToolBarButton("InfoAccount"); btnViewItem.setSclass("link"); @@ -90,7 +69,8 @@ public class DPViews extends DashboardPanel implements EventListener { btnViewItem.addEventListener(Events.ON_CLICK, this); vbox.appendChild(btnViewItem); } - if (MRole.getDefault().isAllow_Info_Schedule()) + if (MSysConfig.getBooleanValue(MSysConfig.DPVIEWS_SHOWINFOSCHEDULE, true, Env.getAD_Client_ID(Env.getCtx())) + && MRole.getDefault().isAllow_Info_Schedule()) { ToolBarButton btnViewItem = new ToolBarButton("InfoSchedule"); btnViewItem.setSclass("link"); @@ -99,133 +79,67 @@ public class DPViews extends DashboardPanel implements EventListener { btnViewItem.addEventListener(Events.ON_CLICK, this); vbox.appendChild(btnViewItem); } - vbox.appendChild(new Separator("horizontal")); - if (MInfoWindow.get(I_C_Order.Table_Name, null) != null) + + List list = new Query(Env.getCtx(), MInfoWindow.Table_Name, "IsValid='Y' AND IsShowInDashboard='Y'", null) + .setOnlyActiveRecords(true) + .setOrderBy(MInfoWindow.COLUMNNAME_SeqNo) + .list(); + + MInfoWindow[] infos = list.toArray(new MInfoWindow[list.size()]); + + for (int i = 0; i < infos.length; i++) { - ToolBarButton btnViewItem = new ToolBarButton("InfoOrder"); - btnViewItem.setSclass("link"); - btnViewItem.setLabel(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "InfoOrder"))); - btnViewItem.setImage(ThemeManager.getThemeResource("images/Info16.png")); - btnViewItem.addEventListener(Events.ON_CLICK, this); - vbox.appendChild(btnViewItem); + MInfoWindow info = infos[i]; + if (MInfoWindow.get(MTable.getTableName(Env.getCtx(), info.getAD_Table_ID()), null) != null) + { + ToolBarButton btnViewItem = new ToolBarButton(info.getName()); + btnViewItem.setSclass("link"); + btnViewItem.setLabel(info.get_Translation("Name")); + btnViewItem.setImage(ThemeManager.getThemeResource("images/" + (Util.isEmpty(info.getImageURL()) ? "Info16.png" : info.getImageURL()))); + btnViewItem.addEventListener(Events.ON_CLICK, this); + vbox.appendChild(btnViewItem); + } } - if (MInfoWindow.get(I_C_Invoice.Table_Name, null) != null) - { - ToolBarButton btnViewItem = new ToolBarButton("InfoInvoice"); - btnViewItem.setSclass("link"); - btnViewItem.setLabel(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "InfoInvoice"))); - btnViewItem.setImage(ThemeManager.getThemeResource("images/Info16.png")); - btnViewItem.addEventListener(Events.ON_CLICK, this); - vbox.appendChild(btnViewItem); - } - if (MInfoWindow.get(I_M_InOut.Table_Name, null) != null) - { - ToolBarButton btnViewItem = new ToolBarButton("InfoInOut"); - btnViewItem.setSclass("link"); - btnViewItem.setLabel(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "InfoInOut"))); - btnViewItem.setImage(ThemeManager.getThemeResource("images/Info16.png")); - btnViewItem.addEventListener(Events.ON_CLICK, this); - vbox.appendChild(btnViewItem); - } - if (MInfoWindow.get(I_C_Payment.Table_Name, null) != null) - { - ToolBarButton btnViewItem = new ToolBarButton("InfoPayment"); - btnViewItem.setSclass("link"); - btnViewItem.setLabel(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "InfoPayment"))); - btnViewItem.setImage(ThemeManager.getThemeResource("images/Info16.png")); - btnViewItem.addEventListener(Events.ON_CLICK, this); - vbox.appendChild(btnViewItem); - } -// if (MRole.getDefault().isAllow_Info_CashJournal()) -// { -// ToolBarButton btnViewItem = new ToolBarButton("InfoCashLine"); -// btnViewItem.setLabel(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "InfoCashLine"))); -// btnViewItem.setImage("/images/Info16.png"); -// btnViewItem.addEventListener(Events.ON_CLICK, this); -// vbox.appendChild(btnViewItem); -// } - if (MInfoWindow.get(I_S_ResourceAssignment.Table_Name, null) != null) - { - ToolBarButton btnViewItem = new ToolBarButton("InfoAssignment"); - btnViewItem.setSclass("link"); - btnViewItem.setLabel(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "InfoAssignment"))); - btnViewItem.setImage(ThemeManager.getThemeResource("images/Info16.png")); - btnViewItem.addEventListener(Events.ON_CLICK, this); - vbox.appendChild(btnViewItem); - } - if (MInfoWindow.get(I_A_Asset.Table_Name, null) != null) - { - ToolBarButton btnViewItem = new ToolBarButton("InfoAsset"); - btnViewItem.setSclass("link"); - btnViewItem.setLabel(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "InfoAsset"))); - btnViewItem.setImage(ThemeManager.getThemeResource("images/Info16.png")); - btnViewItem.addEventListener(Events.ON_CLICK, this); - vbox.appendChild(btnViewItem); - } - + return vbox; } - - public void onEvent(Event event) - { - Component comp = event.getTarget(); - String eventName = event.getName(); - - if(eventName.equals(Events.ON_CLICK)) - { - if(comp instanceof ToolBarButton) - { - ToolBarButton btn = (ToolBarButton) comp; - String actionCommand = btn.getName(); - int WindowNo = 0; - - if (actionCommand.equals("InfoProduct")) - { - InfoPanel.showProduct(WindowNo); - } - else if (actionCommand.equals("InfoBPartner")) - { - InfoPanel.showBPartner(WindowNo); - } - else if (actionCommand.equals("InfoAsset")) - { - InfoPanel.showAsset(WindowNo); - } - else if (actionCommand.equals("InfoAccount")) - { - new org.adempiere.webui.acct.WAcctViewer(); - } - else if (actionCommand.equals("InfoSchedule")) - { - InfoSchedule is = new InfoSchedule(null, false); - is.setAttribute(Window.MODE_KEY, Mode.EMBEDDED); - AEnv.showWindow(is); - } - else if (actionCommand.equals("InfoOrder")) - { - InfoPanel.showOrder(WindowNo, ""); - } - else if (actionCommand.equals("InfoInvoice")) - { - InfoPanel.showInvoice(WindowNo, ""); - } - else if (actionCommand.equals("InfoInOut")) - { - InfoPanel.showInOut(WindowNo, ""); - } - else if (actionCommand.equals("InfoPayment")) - { - InfoPanel.showPayment(WindowNo, ""); - } -// else if (actionCommand.equals("InfoCashLine")) -// { -// InfoPanel.showCashLine(WindowNo, ""); -// } - else if (actionCommand.equals("InfoAssignment")) - { - InfoPanel.showAssignment(WindowNo, ""); - } - } - } + + public void onEvent(Event event) + { + Component comp = event.getTarget(); + String eventName = event.getName(); + + if(eventName.equals(Events.ON_CLICK)) + { + if(comp instanceof ToolBarButton) + { + ToolBarButton btn = (ToolBarButton) comp; + String actionCommand = btn.getName(); + + if (actionCommand.equals("InfoAccount")) + { + new org.adempiere.webui.acct.WAcctViewer(); + } + else if (actionCommand.equals("InfoSchedule")) + { + InfoSchedule is = new InfoSchedule(null, false); + is.setAttribute(Window.MODE_KEY, Mode.EMBEDDED); + AEnv.showWindow(is); + } + else + { + int infoWindowID = new Query(Env.getCtx(), MInfoWindow.Table_Name, "Name = ?", null) + .setParameters(actionCommand) + .setOnlyActiveRecords(true) + .firstIdOnly(); + + if (infoWindowID<=0) + return; + + String tableName = MTable.getTableName(Env.getCtx(), new MInfoWindow(Env.getCtx(), infoWindowID, null).getAD_Table_ID()); + InfoPanel.showPanel(tableName); + } + } + } } } diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java index d567fc8972..cd6abe674b 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java @@ -51,15 +51,6 @@ import org.adempiere.webui.part.WindowContainer; import org.adempiere.webui.session.SessionManager; import org.compiere.minigrid.ColumnInfo; import org.compiere.minigrid.IDColumn; -import org.compiere.model.I_A_Asset; -import org.compiere.model.I_C_BPartner; -import org.compiere.model.I_C_CashLine; -import org.compiere.model.I_C_Invoice; -import org.compiere.model.I_C_Order; -import org.compiere.model.I_C_Payment; -import org.compiere.model.I_M_InOut; -import org.compiere.model.I_M_Product; -import org.compiere.model.I_S_ResourceAssignment; import org.compiere.model.MInfoWindow; import org.compiere.model.MRole; import org.compiere.model.MTable; @@ -96,11 +87,11 @@ import org.zkoss.zul.ext.Sortable; */ public abstract class InfoPanel extends Window implements EventListener, WTableModelListener, Sortable, IHelpContext { - /** - * generated serial version ID + * */ - private static final long serialVersionUID = 325050327514511004L; + private static final long serialVersionUID = 6189936771781956451L; + private final static int PAGE_SIZE = 100; protected Map editorMap = new HashMap(); @@ -113,118 +104,15 @@ public abstract class InfoPanel extends Window implements EventListener, } /** - * Show BPartner Info (non modal) - * @param WindowNo window no + * Show panel based on tablename (non modal) + * @param tableName */ - public static void showBPartner (int WindowNo) + public static void showPanel (String tableName) { - InfoPanel info = InfoManager.create(WindowNo, I_C_BPartner.Table_Name, - I_C_BPartner.COLUMNNAME_C_BPartner_ID, "", false, "", false); - AEnv.showWindow(info); - } // showBPartner - - /** - * Show Asset Info (non modal) - * @param frame Parent Frame - * @param WindowNo window no - */ - public static void showAsset (int WindowNo) - { - InfoPanel info = InfoManager.create(WindowNo, - I_A_Asset.Table_Name, I_A_Asset.COLUMNNAME_A_Asset_ID, "", false, "", false); - AEnv.showWindow(info); - } // showBPartner - - /** - * Show Product Info (non modal) - * @param frame Parent Frame - * @param WindowNo window no - */ - public static void showProduct (int WindowNo) - { - InfoPanel info = InfoManager.create(WindowNo, - I_M_Product.Table_Name, I_M_Product.COLUMNNAME_M_Product_ID, "", false, "", false); - AEnv.showWindow(info); - } // showProduct - - /** - * Show Order Info (non modal) - * @param frame Parent Frame - * @param WindowNo window no - * @param value query value - */ - public static void showOrder (int WindowNo, String value) - { - InfoPanel info = InfoManager.create(WindowNo, - I_C_Order.Table_Name, I_C_Order.COLUMNNAME_C_Order_ID, "", false, "", false); - AEnv.showWindow(info); - } // showOrder - - /** - * Show Invoice Info (non modal) - * @param frame Parent Frame - * @param WindowNo window no - * @param value query value - */ - public static void showInvoice (int WindowNo, String value) - { - InfoPanel info = InfoManager.create(WindowNo, - I_C_Invoice.Table_Name, I_C_Invoice.COLUMNNAME_C_Invoice_ID, "", false, "", false); - AEnv.showWindow(info); - } // showInvoice - - /** - * Show Shipment Info (non modal) - * @param frame Parent Frame - * @param WindowNo window no - * @param value query value - */ - public static void showInOut (int WindowNo, String value) - { - InfoPanel info = InfoManager.create(WindowNo, - I_M_InOut.Table_Name, I_M_InOut.COLUMNNAME_M_InOut_ID, "", false, "", false); - AEnv.showWindow(info); - } // showInOut - - /** - * Show Payment Info (non modal) - * @param frame Parent Frame - * @param WindowNo window no - * @param value query value - */ - public static void showPayment (int WindowNo, String value) - { - InfoPanel info = InfoManager.create(WindowNo, - I_C_Payment.Table_Name, I_C_Payment.COLUMNNAME_C_Payment_ID, "", false, "", false); - AEnv.showWindow(info); - } // showPayment - - /** - * Show Cash Line Info (non modal) - * @param frame Parent Frame - * @param WindowNo window no - * @param value query value - */ - public static void showCashLine (int WindowNo, String value) - { - InfoPanel info = InfoManager.create(WindowNo, - I_C_CashLine.Table_Name, I_C_CashLine.COLUMNNAME_C_CashLine_ID, "", false, "", false); - AEnv.showWindow(info); - } // showCashLine - - /** - * Show Assignment Info (non modal) - * @param frame Parent Frame - * @param WindowNo window no - * @param value query value - */ - public static void showAssignment (int WindowNo, String value) - { - InfoPanel info = InfoManager.create(WindowNo, - I_S_ResourceAssignment.Table_Name, I_S_ResourceAssignment.COLUMNNAME_S_ResourceAssignment_ID, "", false, "", false); + InfoPanel info = InfoManager.create(0, tableName, tableName + "_ID", "", false, "", false); info.setAttribute(Window.MODE_KEY, Window.MODE_EMBEDDED); AEnv.showWindow(info); - } // showAssignment + } // showPanel /** Window Width */ static final int INFO_WIDTH = 800;