IDEMPIERE-4084 - Improve toolbar customization - peer review

This commit is contained in:
Carlos Ruiz 2020-01-30 18:17:07 +01:00
parent 33d2a4d0f7
commit cb7f57d4f6
4 changed files with 14 additions and 14 deletions

View File

@ -3,15 +3,15 @@ SET DEFINE OFF
-- IDEMPIERE-4084 improve toolbar more configurable -- IDEMPIERE-4084 improve toolbar more configurable
-- Jan 24, 2020, 8:22:03 PM CET -- Jan 24, 2020, 8:22:03 PM CET
INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Help,PrintName,EntityType,AD_Element_UU) VALUES (203396,0,0,'Y',TO_DATE('2020-01-24 20:22:02','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-01-24 20:22:02','YYYY-MM-DD HH24:MI:SS'),100,'isShowMore','Group in show more',NULL,'Group in show more','D','ba2bc74f-3b73-48c0-b1fa-8182d5275c77') INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Help,PrintName,EntityType,AD_Element_UU) VALUES (203396,0,0,'Y',TO_DATE('2020-01-24 20:22:02','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-01-24 20:22:02','YYYY-MM-DD HH24:MI:SS'),100,'IsShowMore','Group in show more',NULL,'Group in show more','D','ba2bc74f-3b73-48c0-b1fa-8182d5275c77')
; ;
-- Jan 24, 2020, 8:22:34 PM CET -- Jan 24, 2020, 8:22:34 PM CET
INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214166,0,'Group in show more',200003,'isShowMore','N',1,'N','N','N','N','N',0,'N',20,0,0,'Y',TO_DATE('2020-01-24 20:22:34','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-01-24 20:22:34','YYYY-MM-DD HH24:MI:SS'),100,203396,'Y','N','D','N','N','N','Y','065f4119-dd27-42bf-997a-cfa9af541363','Y',0,'N','N','N') INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214166,0,'Group in show more',200003,'IsShowMore','N',1,'N','N','N','N','N',0,'N',20,0,0,'Y',TO_DATE('2020-01-24 20:22:34','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2020-01-24 20:22:34','YYYY-MM-DD HH24:MI:SS'),100,203396,'Y','N','D','N','N','N','Y','065f4119-dd27-42bf-997a-cfa9af541363','Y',0,'N','N','N')
; ;
-- Jan 24, 2020, 8:22:51 PM CET -- Jan 24, 2020, 8:22:51 PM CET
ALTER TABLE AD_ToolBarButton ADD isShowMore CHAR(1) DEFAULT 'N' CHECK (isShowMore IN ('Y','N')) ALTER TABLE AD_ToolBarButton ADD IsShowMore CHAR(1) DEFAULT 'N' CHECK (IsShowMore IN ('Y','N'))
; ;
-- Jan 24, 2020, 8:23:08 PM CET -- Jan 24, 2020, 8:23:08 PM CET

View File

@ -1,14 +1,14 @@
-- IDEMPIERE-4084 improve toolbar more configurable -- IDEMPIERE-4084 improve toolbar more configurable
-- Jan 24, 2020, 8:22:03 PM CET -- Jan 24, 2020, 8:22:03 PM CET
INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Help,PrintName,EntityType,AD_Element_UU) VALUES (203396,0,0,'Y',TO_TIMESTAMP('2020-01-24 20:22:02','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-01-24 20:22:02','YYYY-MM-DD HH24:MI:SS'),100,'isShowMore','Group in show more',NULL,'Group in show more','D','ba2bc74f-3b73-48c0-b1fa-8182d5275c77') INSERT INTO AD_Element (AD_Element_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,ColumnName,Name,Help,PrintName,EntityType,AD_Element_UU) VALUES (203396,0,0,'Y',TO_TIMESTAMP('2020-01-24 20:22:02','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-01-24 20:22:02','YYYY-MM-DD HH24:MI:SS'),100,'IsShowMore','Group in show more',NULL,'Group in show more','D','ba2bc74f-3b73-48c0-b1fa-8182d5275c77')
; ;
-- Jan 24, 2020, 8:22:34 PM CET -- Jan 24, 2020, 8:22:34 PM CET
INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214166,0,'Group in show more',200003,'isShowMore','N',1,'N','N','N','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2020-01-24 20:22:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-01-24 20:22:34','YYYY-MM-DD HH24:MI:SS'),100,203396,'Y','N','D','N','N','N','Y','065f4119-dd27-42bf-997a-cfa9af541363','Y',0,'N','N','N') INSERT INTO AD_Column (AD_Column_ID,Version,Name,AD_Table_ID,ColumnName,DefaultValue,FieldLength,IsKey,IsParent,IsMandatory,IsTranslated,IsIdentifier,SeqNo,IsEncrypted,AD_Reference_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,AD_Element_ID,IsUpdateable,IsSelectionColumn,EntityType,IsSyncDatabase,IsAlwaysUpdateable,IsAutocomplete,IsAllowLogging,AD_Column_UU,IsAllowCopy,SeqNoSelection,IsToolbarButton,IsSecure,IsHtml) VALUES (214166,0,'Group in show more',200003,'IsShowMore','N',1,'N','N','N','N','N',0,'N',20,0,0,'Y',TO_TIMESTAMP('2020-01-24 20:22:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2020-01-24 20:22:34','YYYY-MM-DD HH24:MI:SS'),100,203396,'Y','N','D','N','N','N','Y','065f4119-dd27-42bf-997a-cfa9af541363','Y',0,'N','N','N')
; ;
-- Jan 24, 2020, 8:22:51 PM CET -- Jan 24, 2020, 8:22:51 PM CET
ALTER TABLE AD_ToolBarButton ADD COLUMN isShowMore CHAR(1) DEFAULT 'N' CHECK (isShowMore IN ('Y','N')) ALTER TABLE AD_ToolBarButton ADD COLUMN IsShowMore CHAR(1) DEFAULT 'N' CHECK (IsShowMore IN ('Y','N'))
; ;
-- Jan 24, 2020, 8:23:08 PM CET -- Jan 24, 2020, 8:23:08 PM CET

View File

@ -250,11 +250,11 @@ public interface I_AD_ToolBarButton
*/ */
public boolean isCustomization(); public boolean isCustomization();
/** Column name isShowMore */ /** Column name IsShowMore */
public static final String COLUMNNAME_isShowMore = "isShowMore"; public static final String COLUMNNAME_IsShowMore = "IsShowMore";
/** Set Group in show more */ /** Set Group in show more */
public void setisShowMore (boolean isShowMore); public void setIsShowMore (boolean IsShowMore);
/** Get Group in show more */ /** Get Group in show more */
public boolean isShowMore(); public boolean isShowMore();

View File

@ -365,17 +365,17 @@ public class X_AD_ToolBarButton extends PO implements I_AD_ToolBarButton, I_Pers
} }
/** Set Group in show more. /** Set Group in show more.
@param isShowMore Group in show more */ @param IsShowMore Group in show more */
public void setisShowMore (boolean isShowMore) public void setIsShowMore (boolean IsShowMore)
{ {
set_Value (COLUMNNAME_isShowMore, Boolean.valueOf(isShowMore)); set_Value (COLUMNNAME_IsShowMore, Boolean.valueOf(IsShowMore));
} }
/** Get Group in show more. /** Get Group in show more.
@return Group in show more */ @return Group in show more */
public boolean isShowMore () public boolean isShowMore ()
{ {
Object oo = get_Value(COLUMNNAME_isShowMore); Object oo = get_Value(COLUMNNAME_IsShowMore);
if (oo != null) if (oo != null)
{ {
if (oo instanceof Boolean) if (oo instanceof Boolean)
@ -469,4 +469,4 @@ public class X_AD_ToolBarButton extends PO implements I_AD_ToolBarButton, I_Pers
return 0; return 0;
return ii.intValue(); return ii.intValue();
} }
} }