Skip to content

Commit

Permalink
#6548 Add new column ShowInactiveValues
Browse files Browse the repository at this point in the history
#6548 Lookup Process parameters shall allow inactive records
  • Loading branch information
cristinamghita committed Apr 29, 2020
1 parent 3c09859 commit 09901b8
Show file tree
Hide file tree
Showing 3 changed files with 299 additions and 39 deletions.
Expand Up @@ -32,10 +32,6 @@ public interface I_AD_Ref_Table
*/
public int getAD_Client_ID();

public org.compiere.model.I_AD_Client getAD_Client();

/** Column definition for AD_Client_ID */
public static final org.adempiere.model.ModelColumn<I_AD_Ref_Table, org.compiere.model.I_AD_Client> COLUMN_AD_Client_ID = new org.adempiere.model.ModelColumn<I_AD_Ref_Table, org.compiere.model.I_AD_Client>(I_AD_Ref_Table.class, "AD_Client_ID", org.compiere.model.I_AD_Client.class);
/** Column name AD_Client_ID */
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";

Expand Down Expand Up @@ -101,7 +97,7 @@ public interface I_AD_Ref_Table
* Set Sektion.
* Organisatorische Einheit des Mandanten
*
* <br>Type: TableDir
* <br>Type: Search
* <br>Mandatory: true
* <br>Virtual Column: false
*/
Expand All @@ -111,18 +107,12 @@ public interface I_AD_Ref_Table
* Get Sektion.
* Organisatorische Einheit des Mandanten
*
* <br>Type: TableDir
* <br>Type: Search
* <br>Mandatory: true
* <br>Virtual Column: false
*/
public int getAD_Org_ID();

public org.compiere.model.I_AD_Org getAD_Org();

public void setAD_Org(org.compiere.model.I_AD_Org AD_Org);

/** Column definition for AD_Org_ID */
public static final org.adempiere.model.ModelColumn<I_AD_Ref_Table, org.compiere.model.I_AD_Org> COLUMN_AD_Org_ID = new org.adempiere.model.ModelColumn<I_AD_Ref_Table, org.compiere.model.I_AD_Org>(I_AD_Ref_Table.class, "AD_Org_ID", org.compiere.model.I_AD_Org.class);
/** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";

Expand Down Expand Up @@ -175,12 +165,6 @@ public interface I_AD_Ref_Table
*/
public int getAD_Table_ID();

public org.compiere.model.I_AD_Table getAD_Table();

public void setAD_Table(org.compiere.model.I_AD_Table AD_Table);

/** Column definition for AD_Table_ID */
public static final org.adempiere.model.ModelColumn<I_AD_Ref_Table, org.compiere.model.I_AD_Table> COLUMN_AD_Table_ID = new org.adempiere.model.ModelColumn<I_AD_Ref_Table, org.compiere.model.I_AD_Table>(I_AD_Ref_Table.class, "AD_Table_ID", org.compiere.model.I_AD_Table.class);
/** Column name AD_Table_ID */
public static final String COLUMNNAME_AD_Table_ID = "AD_Table_ID";

Expand Down Expand Up @@ -238,8 +222,6 @@ public interface I_AD_Ref_Table
*/
public int getCreatedBy();

/** Column definition for CreatedBy */
public static final org.adempiere.model.ModelColumn<I_AD_Ref_Table, org.compiere.model.I_AD_User> COLUMN_CreatedBy = new org.adempiere.model.ModelColumn<I_AD_Ref_Table, org.compiere.model.I_AD_User>(I_AD_Ref_Table.class, "CreatedBy", org.compiere.model.I_AD_User.class);
/** Column name CreatedBy */
public static final String COLUMNNAME_CreatedBy = "CreatedBy";

Expand Down Expand Up @@ -345,6 +327,29 @@ public interface I_AD_Ref_Table
/** Column name OrderByClause */
public static final String COLUMNNAME_OrderByClause = "OrderByClause";

/**
* Set Inaktive Werte anzeigen.
*
* <br>Type: YesNo
* <br>Mandatory: true
* <br>Virtual Column: false
*/
public void setShowInactiveValues (boolean ShowInactiveValues);

/**
* Get Inaktive Werte anzeigen.
*
* <br>Type: YesNo
* <br>Mandatory: true
* <br>Virtual Column: false
*/
public boolean isShowInactiveValues();

/** Column definition for ShowInactiveValues */
public static final org.adempiere.model.ModelColumn<I_AD_Ref_Table, Object> COLUMN_ShowInactiveValues = new org.adempiere.model.ModelColumn<I_AD_Ref_Table, Object>(I_AD_Ref_Table.class, "ShowInactiveValues", null);
/** Column name ShowInactiveValues */
public static final String COLUMNNAME_ShowInactiveValues = "ShowInactiveValues";

/**
* Get Aktualisiert.
* Date this record was updated
Expand All @@ -370,8 +375,6 @@ public interface I_AD_Ref_Table
*/
public int getUpdatedBy();

/** Column definition for UpdatedBy */
public static final org.adempiere.model.ModelColumn<I_AD_Ref_Table, org.compiere.model.I_AD_User> COLUMN_UpdatedBy = new org.adempiere.model.ModelColumn<I_AD_Ref_Table, org.compiere.model.I_AD_User>(I_AD_Ref_Table.class, "UpdatedBy", org.compiere.model.I_AD_User.class);
/** Column name UpdatedBy */
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";

Expand Down
Expand Up @@ -14,7 +14,7 @@ public class X_AD_Ref_Table extends org.compiere.model.PO implements I_AD_Ref_Ta
/**
*
*/
private static final long serialVersionUID = -1951439871L;
private static final long serialVersionUID = -1360911191L;

/** Standard Constructor */
public X_AD_Ref_Table (Properties ctx, int AD_Ref_Table_ID, String trxName)
Expand All @@ -27,6 +27,7 @@ public X_AD_Ref_Table (Properties ctx, int AD_Ref_Table_ID, String trxName)
setAD_Table_ID (0);
setEntityType (null); // U
setIsValueDisplayed (false);
setShowInactiveValues (false); // N
} */
}

Expand All @@ -46,7 +47,7 @@ protected org.compiere.model.POInfo initPO (Properties ctx)
}

@Override
public org.compiere.model.I_AD_Column getAD_Disp() throws RuntimeException
public org.compiere.model.I_AD_Column getAD_Disp()
{
return get_ValueAsPO(COLUMNNAME_AD_Display, org.compiere.model.I_AD_Column.class);
}
Expand Down Expand Up @@ -80,7 +81,7 @@ public int getAD_Display ()
}

@Override
public org.compiere.model.I_AD_Column getAD_() throws RuntimeException
public org.compiere.model.I_AD_Column getAD_()
{
return get_ValueAsPO(COLUMNNAME_AD_Key, org.compiere.model.I_AD_Column.class);
}
Expand Down Expand Up @@ -114,7 +115,7 @@ public int getAD_Key ()
}

@Override
public org.compiere.model.I_AD_Reference getAD_Reference() throws RuntimeException
public org.compiere.model.I_AD_Reference getAD_Reference()
{
return get_ValueAsPO(COLUMNNAME_AD_Reference_ID, org.compiere.model.I_AD_Reference.class);
}
Expand Down Expand Up @@ -150,18 +151,6 @@ public int getAD_Reference_ID ()
return ii.intValue();
}

@Override
public org.compiere.model.I_AD_Table getAD_Table() throws RuntimeException
{
return get_ValueAsPO(COLUMNNAME_AD_Table_ID, org.compiere.model.I_AD_Table.class);
}

@Override
public void setAD_Table(org.compiere.model.I_AD_Table AD_Table)
{
set_ValueFromPO(COLUMNNAME_AD_Table_ID, org.compiere.model.I_AD_Table.class, AD_Table);
}

/** Set DB-Tabelle.
@param AD_Table_ID
Database Table information
Expand All @@ -188,7 +177,7 @@ public int getAD_Table_ID ()
}

@Override
public org.compiere.model.I_AD_Window getAD_Window() throws RuntimeException
public org.compiere.model.I_AD_Window getAD_Window()
{
return get_ValueAsPO(COLUMNNAME_AD_Window_ID, org.compiere.model.I_AD_Window.class);
}
Expand Down Expand Up @@ -294,6 +283,29 @@ public java.lang.String getOrderByClause ()
return (java.lang.String)get_Value(COLUMNNAME_OrderByClause);
}

/** Set Inaktive Werte anzeigen.
@param ShowInactiveValues Inaktive Werte anzeigen */
@Override
public void setShowInactiveValues (boolean ShowInactiveValues)
{
set_Value (COLUMNNAME_ShowInactiveValues, Boolean.valueOf(ShowInactiveValues));
}

/** Get Inaktive Werte anzeigen.
@return Inaktive Werte anzeigen */
@Override
public boolean isShowInactiveValues ()
{
Object oo = get_Value(COLUMNNAME_ShowInactiveValues);
if (oo != null)
{
if (oo instanceof Boolean)
return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}

/** Set Sql WHERE.
@param WhereClause
Fully qualified SQL WHERE clause
Expand Down

0 comments on commit 09901b8

Please sign in to comment.