+ * SELECT * FROM MyModelExample WHERE ...
+ *
+ * @param ctx Context
+ * @param rs Result set
+ * @param trxName Transaction name
+ */
+ public MUserDefInfo(Properties ctx, ResultSet rs, String trxName) {
+ super(ctx, rs, trxName);
+ }
+
+ /**
+ * Get all MUserDefInfo entries related to info window
+ * @param ctx Context
+ * @param infowindow_ID Info window
+ * @return Array of MUserDefInfo for window
+ */
+ private static MUserDefInfo[] getAll (Properties ctx, int infowindow_ID )
+ {
+ if (m_fullList == null) {
+ m_fullList = new Query(ctx, MUserDefInfo.Table_Name, "IsActive='Y'", null).list();
+ }
+
+ if (m_fullList.size() == 0) {
+ return null;
+ }
+
+ List
+ * SELECT * FROM MyModelExample WHERE ...
+ *
+ * @param ctx Context
+ * @param rs Result set
+ * @param trxName Transaction Name
+ */
+ public MUserDefInfoColumn(Properties ctx, ResultSet rs, String trxName) {
+ super(ctx, rs, trxName);
+ }
+
+ /**
+ * Get matching MUserDefInfoColumn related to current Info Column and user definition for Info window
+ * @param ctx
+ * @param AD_InfoColumn_ID
+ * @param AD_InfoWindow_ID
+ * @return
+ */
+ public static MUserDefInfoColumn get (Properties ctx, int AD_InfoColumn_ID, int AD_InfoWindow_ID )
+ {
+
+ MUserDefInfo userdefInfo = MUserDefInfo.getBestMatch(ctx, AD_InfoWindow_ID);
+ if (userdefInfo == null)
+ return null;
+
+ MUserDefInfoColumn retValue = null;
+
+ StringBuilder sql = new StringBuilder("SELECT * "
+ + " FROM AD_UserDef_Info_Column c "
+ + " WHERE c.AD_InfoColumn_ID=? AND c.IsActive='Y' "
+ + " AND c.AD_UserDef_Info_ID=? ");
+
+ PreparedStatement pstmt = null;
+ ResultSet rs = null;
+ try
+ {
+ // create statement
+ pstmt = DB.prepareStatement(sql.toString(), null);
+ pstmt.setInt(1, AD_InfoColumn_ID);
+ pstmt.setInt(2, userdefInfo.getAD_UserDef_Info_ID());
+ // get data
+ rs = pstmt.executeQuery();
+ if (rs.next())
+ {
+ retValue = new MUserDefInfoColumn(ctx,rs,null);
+ }
+ }
+ catch (SQLException ex)
+ {
+ CLogger.get().log(Level.SEVERE, sql.toString(), ex);
+ return null;
+ }
+ finally
+ {
+ DB.close(rs, pstmt);
+ rs = null;
+ pstmt = null;
+ }
+
+ return retValue;
+ } //get
+}
diff --git a/org.adempiere.base/src/org/compiere/model/MUserDefInfoRelated.java b/org.adempiere.base/src/org/compiere/model/MUserDefInfoRelated.java
new file mode 100644
index 0000000000..18b3ab54b5
--- /dev/null
+++ b/org.adempiere.base/src/org/compiere/model/MUserDefInfoRelated.java
@@ -0,0 +1,105 @@
+/**********************************************************************
+* This file is part of iDempiere ERP Open Source *
+* http://www.idempiere.org *
+* *
+* Copyright (C) Contributors *
+* *
+* This program is free software; you can redistribute it and/or *
+* modify it under the terms of the GNU General Public License *
+* as published by the Free Software Foundation; either version 2 *
+* of the License, or (at your option) any later version. *
+* *
+* This program is distributed in the hope that it will be useful, *
+* but WITHOUT ANY WARRANTY; without even the implied warranty of *
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+* GNU General Public License for more details. *
+* *
+* You should have received a copy of the GNU General Public License *
+* along with this program; if not, write to the Free Software *
+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
+* MA 02110-1301, USA. *
+* *
+* Contributors: *
+* - Igor Pojzl, Cloudempiere *
+**********************************************************************/
+package org.compiere.model;
+
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Properties;
+import java.util.logging.Level;
+
+import org.compiere.util.CLogger;
+import org.compiere.util.DB;
+
+/**
+ * User overrides for Info Window Related Model
+ * @author Igor Pojzl, Cloudempiere
+ * @version $Id$
+ */
+public class MUserDefInfoRelated extends X_AD_UserDef_Info_Related {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = -2317004482077725245L;
+
+ public MUserDefInfoRelated(Properties ctx, int AD_UserDef_Info_Related_ID, String trxName) {
+ super(ctx, AD_UserDef_Info_Related_ID, trxName);
+ }
+ public MUserDefInfoRelated(Properties ctx, ResultSet rs, String trxName) {
+ super(ctx, rs, trxName);
+ }
+
+ /**
+ * Get matching MUserDefInfoRelated related to current Info Column and user definition for Info window
+ * @param ctx
+ * @param AD_InfoRelated_ID
+ * @param AD_InfoWindow_ID
+ * @return
+ */
+ public static MUserDefInfoRelated get (Properties ctx, int AD_InfoRelated_ID, int AD_InfoWindow_ID )
+ {
+
+ MUserDefInfo userdefInfo = MUserDefInfo.getBestMatch(ctx, AD_InfoWindow_ID);
+ if (userdefInfo == null)
+ return null;
+
+ MUserDefInfoRelated retValue = null;
+
+ StringBuilder sql = new StringBuilder("SELECT * "
+ + " FROM AD_UserDef_Info_Related c "
+ + " WHERE c.AD_InfoRelated_ID=? AND c.IsActive='Y' "
+ + " AND c.AD_UserDef_Info_ID=? ");
+
+ PreparedStatement pstmt = null;
+ ResultSet rs = null;
+ try
+ {
+ // create statement
+ pstmt = DB.prepareStatement(sql.toString(), null);
+ pstmt.setInt(1, AD_InfoRelated_ID);
+ pstmt.setInt(2, userdefInfo.getAD_UserDef_Info_ID());
+ // get data
+ rs = pstmt.executeQuery();
+ if (rs.next())
+ {
+ retValue = new MUserDefInfoRelated(ctx,rs,null);
+ }
+ }
+ catch (SQLException ex)
+ {
+ CLogger.get().log(Level.SEVERE, sql.toString(), ex);
+ return null;
+ }
+ finally
+ {
+ DB.close(rs, pstmt);
+ rs = null;
+ pstmt = null;
+ }
+
+ return retValue;
+ } //get
+}
diff --git a/org.adempiere.base/src/org/compiere/model/X_AD_InfoRelated.java b/org.adempiere.base/src/org/compiere/model/X_AD_InfoRelated.java
index f5c675b213..ae12dc8e5f 100644
--- a/org.adempiere.base/src/org/compiere/model/X_AD_InfoRelated.java
+++ b/org.adempiere.base/src/org/compiere/model/X_AD_InfoRelated.java
@@ -30,7 +30,7 @@ public class X_AD_InfoRelated extends PO implements I_AD_InfoRelated, I_Persiste
/**
*
*/
- private static final long serialVersionUID = 20200413L;
+ private static final long serialVersionUID = 20201015L;
/** Standard Constructor */
public X_AD_InfoRelated (Properties ctx, int AD_InfoRelated_ID, String trxName)
@@ -158,6 +158,23 @@ public class X_AD_InfoRelated extends PO implements I_AD_InfoRelated, I_Persiste
return (String)get_Value(COLUMNNAME_Description);
}
+ /** Set Display Logic.
+ @param DisplayLogic
+ If the Field is displayed, the result determines if the field is actually displayed
+ */
+ public void setDisplayLogic (String DisplayLogic)
+ {
+ set_Value (COLUMNNAME_DisplayLogic, DisplayLogic);
+ }
+
+ /** Get Display Logic.
+ @return If the Field is displayed, the result determines if the field is actually displayed
+ */
+ public String getDisplayLogic ()
+ {
+ return (String)get_Value(COLUMNNAME_DisplayLogic);
+ }
+
/** EntityType AD_Reference_ID=389 */
public static final int ENTITYTYPE_AD_Reference_ID=389;
/** Set Entity Type.
diff --git a/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Info.java b/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Info.java
new file mode 100644
index 0000000000..889ab84266
--- /dev/null
+++ b/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Info.java
@@ -0,0 +1,261 @@
+/******************************************************************************
+ * Product: iDempiere ERP & CRM Smart Business Solution *
+ * Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
+ * This program is free software, you can redistribute it and/or modify it *
+ * under the terms version 2 of the GNU General Public License as published *
+ * by the Free Software Foundation. This program is distributed in the hope *
+ * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
+ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
+ * See the GNU General Public License for more details. *
+ * You should have received a copy of the GNU General Public License along *
+ * with this program, if not, write to the Free Software Foundation, Inc., *
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
+ * For the text or an alternative of this public license, you may reach us *
+ * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
+ * or via info@compiere.org or http://www.compiere.org/license.html *
+ *****************************************************************************/
+/** Generated Model - DO NOT CHANGE */
+package org.compiere.model;
+
+import java.sql.ResultSet;
+import java.util.Properties;
+
+/** Generated Model for AD_UserDef_Info
+ * @author iDempiere (generated)
+ * @version Release 7.1 - $Id$ */
+public class X_AD_UserDef_Info extends PO implements I_AD_UserDef_Info, I_Persistent
+{
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 20201006L;
+
+ /** Standard Constructor */
+ public X_AD_UserDef_Info (Properties ctx, int AD_UserDef_Info_ID, String trxName)
+ {
+ super (ctx, AD_UserDef_Info_ID, trxName);
+ /** if (AD_UserDef_Info_ID == 0)
+ {
+ setAD_InfoWindow_ID (0);
+ setAD_UserDef_Info_ID (0);
+ } */
+ }
+
+ /** Load Constructor */
+ public X_AD_UserDef_Info (Properties ctx, ResultSet rs, String trxName)
+ {
+ super (ctx, rs, trxName);
+ }
+
+ /** AccessLevel
+ * @return 6 - System - Client
+ */
+ protected int get_AccessLevel()
+ {
+ return accessLevel.intValue();
+ }
+
+ /** Load Meta Data */
+ protected POInfo initPO (Properties ctx)
+ {
+ POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
+ return poi;
+ }
+
+ public String toString()
+ {
+ StringBuilder sb = new StringBuilder ("X_AD_UserDef_Info[")
+ .append(get_ID()).append(",Name=").append(getName()).append("]");
+ return sb.toString();
+ }
+
+ public org.compiere.model.I_AD_InfoWindow getAD_InfoWindow() throws RuntimeException
+ {
+ return (org.compiere.model.I_AD_InfoWindow)MTable.get(getCtx(), org.compiere.model.I_AD_InfoWindow.Table_Name)
+ .getPO(getAD_InfoWindow_ID(), get_TrxName()); }
+
+ /** Set Info Window.
+ @param AD_InfoWindow_ID
+ Info and search/select Window
+ */
+ public void setAD_InfoWindow_ID (int AD_InfoWindow_ID)
+ {
+ if (AD_InfoWindow_ID < 1)
+ set_ValueNoCheck (COLUMNNAME_AD_InfoWindow_ID, null);
+ else
+ set_ValueNoCheck (COLUMNNAME_AD_InfoWindow_ID, Integer.valueOf(AD_InfoWindow_ID));
+ }
+
+ /** Get Info Window.
+ @return Info and search/select Window
+ */
+ public int getAD_InfoWindow_ID ()
+ {
+ Integer ii = (Integer)get_Value(COLUMNNAME_AD_InfoWindow_ID);
+ if (ii == null)
+ return 0;
+ return ii.intValue();
+ }
+
+ /** AD_Language AD_Reference_ID=106 */
+ public static final int AD_LANGUAGE_AD_Reference_ID=106;
+ /** Set Language.
+ @param AD_Language
+ Language for this entity
+ */
+ public void setAD_Language (String AD_Language)
+ {
+
+ set_Value (COLUMNNAME_AD_Language, AD_Language);
+ }
+
+ /** Get Language.
+ @return Language for this entity
+ */
+ public String getAD_Language ()
+ {
+ return (String)get_Value(COLUMNNAME_AD_Language);
+ }
+
+ 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.
+ @param AD_Role_ID
+ Responsibility Role
+ */
+ public void setAD_Role_ID (int AD_Role_ID)
+ {
+ if (AD_Role_ID < 0)
+ set_Value (COLUMNNAME_AD_Role_ID, null);
+ else
+ set_Value (COLUMNNAME_AD_Role_ID, Integer.valueOf(AD_Role_ID));
+ }
+
+ /** Get Role.
+ @return Responsibility Role
+ */
+ public int getAD_Role_ID ()
+ {
+ Integer ii = (Integer)get_Value(COLUMNNAME_AD_Role_ID);
+ if (ii == null)
+ return 0;
+ return ii.intValue();
+ }
+
+ /** Set User defined Info Window.
+ @param AD_UserDef_Info_ID User defined Info Window */
+ public void setAD_UserDef_Info_ID (int AD_UserDef_Info_ID)
+ {
+ if (AD_UserDef_Info_ID < 1)
+ set_ValueNoCheck (COLUMNNAME_AD_UserDef_Info_ID, null);
+ else
+ set_ValueNoCheck (COLUMNNAME_AD_UserDef_Info_ID, Integer.valueOf(AD_UserDef_Info_ID));
+ }
+
+ /** Get User defined Info Window.
+ @return User defined Info Window */
+ public int getAD_UserDef_Info_ID ()
+ {
+ Integer ii = (Integer)get_Value(COLUMNNAME_AD_UserDef_Info_ID);
+ if (ii == null)
+ return 0;
+ return ii.intValue();
+ }
+
+ /** Set AD_UserDef_Info_UU.
+ @param AD_UserDef_Info_UU AD_UserDef_Info_UU */
+ public void setAD_UserDef_Info_UU (String AD_UserDef_Info_UU)
+ {
+ set_ValueNoCheck (COLUMNNAME_AD_UserDef_Info_UU, AD_UserDef_Info_UU);
+ }
+
+ /** Get AD_UserDef_Info_UU.
+ @return AD_UserDef_Info_UU */
+ public String getAD_UserDef_Info_UU ()
+ {
+ return (String)get_Value(COLUMNNAME_AD_UserDef_Info_UU);
+ }
+
+ public org.compiere.model.I_AD_User getAD_User() throws RuntimeException
+ {
+ return (org.compiere.model.I_AD_User)MTable.get(getCtx(), org.compiere.model.I_AD_User.Table_Name)
+ .getPO(getAD_User_ID(), get_TrxName()); }
+
+ /** Set User/Contact.
+ @param AD_User_ID
+ User within the system - Internal or Business Partner Contact
+ */
+ public void setAD_User_ID (int AD_User_ID)
+ {
+ if (AD_User_ID < 1)
+ set_Value (COLUMNNAME_AD_User_ID, null);
+ else
+ set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
+ }
+
+ /** Get User/Contact.
+ @return User within the system - Internal or Business Partner Contact
+ */
+ public int getAD_User_ID ()
+ {
+ Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID);
+ if (ii == null)
+ return 0;
+ return ii.intValue();
+ }
+
+ /** Set Description.
+ @param Description
+ Optional short description of the record
+ */
+ public void setDescription (String Description)
+ {
+ set_Value (COLUMNNAME_Description, Description);
+ }
+
+ /** Get Description.
+ @return Optional short description of the record
+ */
+ public String getDescription ()
+ {
+ return (String)get_Value(COLUMNNAME_Description);
+ }
+
+ /** Set Comment/Help.
+ @param Help
+ Comment or Hint
+ */
+ public void setHelp (String Help)
+ {
+ set_Value (COLUMNNAME_Help, Help);
+ }
+
+ /** Get Comment/Help.
+ @return Comment or Hint
+ */
+ public String getHelp ()
+ {
+ return (String)get_Value(COLUMNNAME_Help);
+ }
+
+ /** Set Name.
+ @param Name
+ Alphanumeric identifier of the entity
+ */
+ public void setName (String Name)
+ {
+ set_Value (COLUMNNAME_Name, Name);
+ }
+
+ /** Get Name.
+ @return Alphanumeric identifier of the entity
+ */
+ public String getName ()
+ {
+ return (String)get_Value(COLUMNNAME_Name);
+ }
+}
\ No newline at end of file
diff --git a/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Info_Column.java b/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Info_Column.java
new file mode 100644
index 0000000000..3053629f27
--- /dev/null
+++ b/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Info_Column.java
@@ -0,0 +1,602 @@
+/******************************************************************************
+ * Product: iDempiere ERP & CRM Smart Business Solution *
+ * Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
+ * This program is free software, you can redistribute it and/or modify it *
+ * under the terms version 2 of the GNU General Public License as published *
+ * by the Free Software Foundation. This program is distributed in the hope *
+ * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
+ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
+ * See the GNU General Public License for more details. *
+ * You should have received a copy of the GNU General Public License along *
+ * with this program, if not, write to the Free Software Foundation, Inc., *
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
+ * For the text or an alternative of this public license, you may reach us *
+ * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
+ * or via info@compiere.org or http://www.compiere.org/license.html *
+ *****************************************************************************/
+/** Generated Model - DO NOT CHANGE */
+package org.compiere.model;
+
+import java.sql.ResultSet;
+import java.util.Properties;
+
+/** Generated Model for AD_UserDef_Info_Column
+ * @author iDempiere (generated)
+ * @version Release 7.1 - $Id$ */
+public class X_AD_UserDef_Info_Column extends PO implements I_AD_UserDef_Info_Column, I_Persistent
+{
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 20201011L;
+
+ /** Standard Constructor */
+ public X_AD_UserDef_Info_Column (Properties ctx, int AD_UserDef_Info_Column_ID, String trxName)
+ {
+ super (ctx, AD_UserDef_Info_Column_ID, trxName);
+ /** if (AD_UserDef_Info_Column_ID == 0)
+ {
+ setAD_InfoColumn_ID (0);
+ setAD_UserDef_Info_Column_ID (0);
+ setAD_UserDef_Info_ID (0);
+// @AD_UserDef_Info_ID@
+ } */
+ }
+
+ /** Load Constructor */
+ public X_AD_UserDef_Info_Column (Properties ctx, ResultSet rs, String trxName)
+ {
+ super (ctx, rs, trxName);
+ }
+
+ /** AccessLevel
+ * @return 6 - System - Client
+ */
+ protected int get_AccessLevel()
+ {
+ return accessLevel.intValue();
+ }
+
+ /** Load Meta Data */
+ protected POInfo initPO (Properties ctx)
+ {
+ POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
+ return poi;
+ }
+
+ public String toString()
+ {
+ StringBuilder sb = new StringBuilder ("X_AD_UserDef_Info_Column[")
+ .append(get_ID()).append(",Name=").append(getName()).append("]");
+ return sb.toString();
+ }
+
+ public org.compiere.model.I_AD_Style getAD_FieldStyle() throws RuntimeException
+ {
+ return (org.compiere.model.I_AD_Style)MTable.get(getCtx(), org.compiere.model.I_AD_Style.Table_Name)
+ .getPO(getAD_FieldStyle_ID(), get_TrxName()); }
+
+ /** Set Field Style.
+ @param AD_FieldStyle_ID
+ Field CSS Style
+ */
+ public void setAD_FieldStyle_ID (int AD_FieldStyle_ID)
+ {
+ if (AD_FieldStyle_ID < 1)
+ set_Value (COLUMNNAME_AD_FieldStyle_ID, null);
+ else
+ set_Value (COLUMNNAME_AD_FieldStyle_ID, Integer.valueOf(AD_FieldStyle_ID));
+ }
+
+ /** Get Field Style.
+ @return Field CSS Style
+ */
+ public int getAD_FieldStyle_ID ()
+ {
+ Integer ii = (Integer)get_Value(COLUMNNAME_AD_FieldStyle_ID);
+ if (ii == null)
+ return 0;
+ return ii.intValue();
+ }
+
+ public org.compiere.model.I_AD_InfoColumn getAD_InfoColumn() throws RuntimeException
+ {
+ return (org.compiere.model.I_AD_InfoColumn)MTable.get(getCtx(), org.compiere.model.I_AD_InfoColumn.Table_Name)
+ .getPO(getAD_InfoColumn_ID(), get_TrxName()); }
+
+ /** Set Info Column.
+ @param AD_InfoColumn_ID
+ Info Window Column
+ */
+ public void setAD_InfoColumn_ID (int AD_InfoColumn_ID)
+ {
+ if (AD_InfoColumn_ID < 1)
+ set_ValueNoCheck (COLUMNNAME_AD_InfoColumn_ID, null);
+ else
+ set_ValueNoCheck (COLUMNNAME_AD_InfoColumn_ID, Integer.valueOf(AD_InfoColumn_ID));
+ }
+
+ /** Get Info Column.
+ @return Info Window Column
+ */
+ public int getAD_InfoColumn_ID ()
+ {
+ Integer ii = (Integer)get_Value(COLUMNNAME_AD_InfoColumn_ID);
+ if (ii == null)
+ return 0;
+ return ii.intValue();
+ }
+
+ public org.compiere.model.I_AD_Reference getAD_Reference() throws RuntimeException
+ {
+ return (org.compiere.model.I_AD_Reference)MTable.get(getCtx(), org.compiere.model.I_AD_Reference.Table_Name)
+ .getPO(getAD_Reference_ID(), get_TrxName()); }
+
+ /** Set Reference.
+ @param AD_Reference_ID
+ System Reference and Validation
+ */
+ public void setAD_Reference_ID (int AD_Reference_ID)
+ {
+ if (AD_Reference_ID < 1)
+ set_Value (COLUMNNAME_AD_Reference_ID, null);
+ else
+ set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID));
+ }
+
+ /** Get Reference.
+ @return System Reference and Validation
+ */
+ public int getAD_Reference_ID ()
+ {
+ Integer ii = (Integer)get_Value(COLUMNNAME_AD_Reference_ID);
+ if (ii == null)
+ return 0;
+ return ii.intValue();
+ }
+
+ public org.compiere.model.I_AD_Reference getAD_Reference_Value() throws RuntimeException
+ {
+ return (org.compiere.model.I_AD_Reference)MTable.get(getCtx(), org.compiere.model.I_AD_Reference.Table_Name)
+ .getPO(getAD_Reference_Value_ID(), get_TrxName()); }
+
+ /** Set Reference Key.
+ @param AD_Reference_Value_ID
+ Required to specify, if data type is Table or List
+ */
+ public void setAD_Reference_Value_ID (int AD_Reference_Value_ID)
+ {
+ if (AD_Reference_Value_ID < 1)
+ set_Value (COLUMNNAME_AD_Reference_Value_ID, null);
+ else
+ set_Value (COLUMNNAME_AD_Reference_Value_ID, Integer.valueOf(AD_Reference_Value_ID));
+ }
+
+ /** Get Reference Key.
+ @return Required to specify, if data type is Table or List
+ */
+ public int getAD_Reference_Value_ID ()
+ {
+ Integer ii = (Integer)get_Value(COLUMNNAME_AD_Reference_Value_ID);
+ if (ii == null)
+ return 0;
+ return ii.intValue();
+ }
+
+ /** Set User defined Info Column.
+ @param AD_UserDef_Info_Column_ID User defined Info Column */
+ public void setAD_UserDef_Info_Column_ID (int AD_UserDef_Info_Column_ID)
+ {
+ if (AD_UserDef_Info_Column_ID < 1)
+ set_ValueNoCheck (COLUMNNAME_AD_UserDef_Info_Column_ID, null);
+ else
+ set_ValueNoCheck (COLUMNNAME_AD_UserDef_Info_Column_ID, Integer.valueOf(AD_UserDef_Info_Column_ID));
+ }
+
+ /** Get User defined Info Column.
+ @return User defined Info Column */
+ public int getAD_UserDef_Info_Column_ID ()
+ {
+ Integer ii = (Integer)get_Value(COLUMNNAME_AD_UserDef_Info_Column_ID);
+ if (ii == null)
+ return 0;
+ return ii.intValue();
+ }
+
+ /** Set AD_UserDef_Info_Column_UU.
+ @param AD_UserDef_Info_Column_UU AD_UserDef_Info_Column_UU */
+ public void setAD_UserDef_Info_Column_UU (String AD_UserDef_Info_Column_UU)
+ {
+ set_ValueNoCheck (COLUMNNAME_AD_UserDef_Info_Column_UU, AD_UserDef_Info_Column_UU);
+ }
+
+ /** Get AD_UserDef_Info_Column_UU.
+ @return AD_UserDef_Info_Column_UU */
+ public String getAD_UserDef_Info_Column_UU ()
+ {
+ return (String)get_Value(COLUMNNAME_AD_UserDef_Info_Column_UU);
+ }
+
+ public org.compiere.model.I_AD_UserDef_Info getAD_UserDef_Info() throws RuntimeException
+ {
+ return (org.compiere.model.I_AD_UserDef_Info)MTable.get(getCtx(), org.compiere.model.I_AD_UserDef_Info.Table_Name)
+ .getPO(getAD_UserDef_Info_ID(), get_TrxName()); }
+
+ /** Set User defined Info Window.
+ @param AD_UserDef_Info_ID User defined Info Window */
+ public void setAD_UserDef_Info_ID (int AD_UserDef_Info_ID)
+ {
+ if (AD_UserDef_Info_ID < 1)
+ set_ValueNoCheck (COLUMNNAME_AD_UserDef_Info_ID, null);
+ else
+ set_ValueNoCheck (COLUMNNAME_AD_UserDef_Info_ID, Integer.valueOf(AD_UserDef_Info_ID));
+ }
+
+ /** Get User defined Info Window.
+ @return User defined Info Window */
+ public int getAD_UserDef_Info_ID ()
+ {
+ Integer ii = (Integer)get_Value(COLUMNNAME_AD_UserDef_Info_ID);
+ if (ii == null)
+ return 0;
+ return ii.intValue();
+ }
+
+ public org.compiere.model.I_AD_Val_Rule getAD_Val_Rule() throws RuntimeException
+ {
+ return (org.compiere.model.I_AD_Val_Rule)MTable.get(getCtx(), org.compiere.model.I_AD_Val_Rule.Table_Name)
+ .getPO(getAD_Val_Rule_ID(), get_TrxName()); }
+
+ /** Set Dynamic Validation.
+ @param AD_Val_Rule_ID
+ Dynamic Validation Rule
+ */
+ public void setAD_Val_Rule_ID (int AD_Val_Rule_ID)
+ {
+ if (AD_Val_Rule_ID < 1)
+ set_Value (COLUMNNAME_AD_Val_Rule_ID, null);
+ else
+ set_Value (COLUMNNAME_AD_Val_Rule_ID, Integer.valueOf(AD_Val_Rule_ID));
+ }
+
+ /** Get Dynamic Validation.
+ @return Dynamic Validation Rule
+ */
+ public int getAD_Val_Rule_ID ()
+ {
+ Integer ii = (Integer)get_Value(COLUMNNAME_AD_Val_Rule_ID);
+ if (ii == null)
+ return 0;
+ return ii.intValue();
+ }
+
+ /** Set Default Logic.
+ @param DefaultValue
+ Default value hierarchy, separated by ;
+ */
+ public void setDefaultValue (String DefaultValue)
+ {
+ set_Value (COLUMNNAME_DefaultValue, DefaultValue);
+ }
+
+ /** Get Default Logic.
+ @return Default value hierarchy, separated by ;
+ */
+ public String getDefaultValue ()
+ {
+ return (String)get_Value(COLUMNNAME_DefaultValue);
+ }
+
+ /** Set Description.
+ @param Description
+ Optional short description of the record
+ */
+ public void setDescription (String Description)
+ {
+ set_Value (COLUMNNAME_Description, Description);
+ }
+
+ /** Get Description.
+ @return Optional short description of the record
+ */
+ public String getDescription ()
+ {
+ return (String)get_Value(COLUMNNAME_Description);
+ }
+
+ /** Set Display Logic.
+ @param DisplayLogic
+ If the Field is displayed, the result determines if the field is actually displayed
+ */
+ public void setDisplayLogic (String DisplayLogic)
+ {
+ set_Value (COLUMNNAME_DisplayLogic, DisplayLogic);
+ }
+
+ /** Get Display Logic.
+ @return If the Field is displayed, the result determines if the field is actually displayed
+ */
+ public String getDisplayLogic ()
+ {
+ return (String)get_Value(COLUMNNAME_DisplayLogic);
+ }
+
+ /** Set Comment/Help.
+ @param Help
+ Comment or Hint
+ */
+ public void setHelp (String Help)
+ {
+ set_Value (COLUMNNAME_Help, Help);
+ }
+
+ /** Get Comment/Help.
+ @return Comment or Hint
+ */
+ public String getHelp ()
+ {
+ return (String)get_Value(COLUMNNAME_Help);
+ }
+
+ /** Set Input field validation.
+ @param InputFieldValidation
+ Input field validaton query
+ */
+ public void setInputFieldValidation (String InputFieldValidation)
+ {
+ set_Value (COLUMNNAME_InputFieldValidation, InputFieldValidation);
+ }
+
+ /** Get Input field validation.
+ @return Input field validaton query
+ */
+ public String getInputFieldValidation ()
+ {
+ return (String)get_Value(COLUMNNAME_InputFieldValidation);
+ }
+
+ /** IsAutocomplete AD_Reference_ID=319 */
+ public static final int ISAUTOCOMPLETE_AD_Reference_ID=319;
+ /** Yes = Y */
+ public static final String ISAUTOCOMPLETE_Yes = "Y";
+ /** No = N */
+ public static final String ISAUTOCOMPLETE_No = "N";
+ /** Set Autocomplete.
+ @param IsAutocomplete
+ Automatic completion for textfields
+ */
+ public void setIsAutocomplete (String IsAutocomplete)
+ {
+
+ set_Value (COLUMNNAME_IsAutocomplete, IsAutocomplete);
+ }
+
+ /** Get Autocomplete.
+ @return Automatic completion for textfields
+ */
+ public String getIsAutocomplete ()
+ {
+ return (String)get_Value(COLUMNNAME_IsAutocomplete);
+ }
+
+ /** IsDisplayed AD_Reference_ID=319 */
+ public static final int ISDISPLAYED_AD_Reference_ID=319;
+ /** Yes = Y */
+ public static final String ISDISPLAYED_Yes = "Y";
+ /** No = N */
+ public static final String ISDISPLAYED_No = "N";
+ /** Set Displayed.
+ @param IsDisplayed
+ Determines, if this field is displayed
+ */
+ public void setIsDisplayed (String IsDisplayed)
+ {
+
+ set_Value (COLUMNNAME_IsDisplayed, IsDisplayed);
+ }
+
+ /** Get Displayed.
+ @return Determines, if this field is displayed
+ */
+ public String getIsDisplayed ()
+ {
+ return (String)get_Value(COLUMNNAME_IsDisplayed);
+ }
+
+ /** IsMandatory AD_Reference_ID=319 */
+ public static final int ISMANDATORY_AD_Reference_ID=319;
+ /** Yes = Y */
+ public static final String ISMANDATORY_Yes = "Y";
+ /** No = N */
+ public static final String ISMANDATORY_No = "N";
+ /** Set Mandatory.
+ @param IsMandatory
+ Data entry is required in this column
+ */
+ public void setIsMandatory (String IsMandatory)
+ {
+
+ set_Value (COLUMNNAME_IsMandatory, IsMandatory);
+ }
+
+ /** Get Mandatory.
+ @return Data entry is required in this column
+ */
+ public String getIsMandatory ()
+ {
+ return (String)get_Value(COLUMNNAME_IsMandatory);
+ }
+
+ /** IsQueryCriteria AD_Reference_ID=319 */
+ public static final int ISQUERYCRITERIA_AD_Reference_ID=319;
+ /** Yes = Y */
+ public static final String ISQUERYCRITERIA_Yes = "Y";
+ /** No = N */
+ public static final String ISQUERYCRITERIA_No = "N";
+ /** Set Query Criteria.
+ @param IsQueryCriteria
+ The column is also used as a query criteria
+ */
+ public void setIsQueryCriteria (String IsQueryCriteria)
+ {
+
+ set_Value (COLUMNNAME_IsQueryCriteria, IsQueryCriteria);
+ }
+
+ /** Get Query Criteria.
+ @return The column is also used as a query criteria
+ */
+ public String getIsQueryCriteria ()
+ {
+ return (String)get_Value(COLUMNNAME_IsQueryCriteria);
+ }
+
+ /** IsReadOnly AD_Reference_ID=319 */
+ public static final int ISREADONLY_AD_Reference_ID=319;
+ /** Yes = Y */
+ public static final String ISREADONLY_Yes = "Y";
+ /** No = N */
+ public static final String ISREADONLY_No = "N";
+ /** Set Read Only.
+ @param IsReadOnly
+ Field is read only
+ */
+ public void setIsReadOnly (String IsReadOnly)
+ {
+
+ set_Value (COLUMNNAME_IsReadOnly, IsReadOnly);
+ }
+
+ /** Get Read Only.
+ @return Field is read only
+ */
+ public String getIsReadOnly ()
+ {
+ return (String)get_Value(COLUMNNAME_IsReadOnly);
+ }
+
+ /** Set Name.
+ @param Name
+ Alphanumeric identifier of the entity
+ */
+ public void setName (String Name)
+ {
+ set_Value (COLUMNNAME_Name, Name);
+ }
+
+ /** Get Name.
+ @return Alphanumeric identifier of the entity
+ */
+ public String getName ()
+ {
+ return (String)get_Value(COLUMNNAME_Name);
+ }
+
+ /** Set Placeholder.
+ @param Placeholder Placeholder */
+ public void setPlaceholder (String Placeholder)
+ {
+ set_Value (COLUMNNAME_Placeholder, Placeholder);
+ }
+
+ /** Get Placeholder.
+ @return Placeholder */
+ public String getPlaceholder ()
+ {
+ return (String)get_Value(COLUMNNAME_Placeholder);
+ }
+
+ /** Set Query Function.
+ @param QueryFunction
+ Database function for query
+ */
+ public void setQueryFunction (String QueryFunction)
+ {
+ set_Value (COLUMNNAME_QueryFunction, QueryFunction);
+ }
+
+ /** Get Query Function.
+ @return Database function for query
+ */
+ public String getQueryFunction ()
+ {
+ return (String)get_Value(COLUMNNAME_QueryFunction);
+ }
+
+ /** QueryOperator AD_Reference_ID=200061 */
+ public static final int QUERYOPERATOR_AD_Reference_ID=200061;
+ /** Like = Like */
+ public static final String QUERYOPERATOR_Like = "Like";
+ /** = = = */
+ public static final String QUERYOPERATOR_Eq = "=";
+ /** > = > */
+ public static final String QUERYOPERATOR_Gt = ">";
+ /** >= = >= */
+ public static final String QUERYOPERATOR_GtEq = ">=";
+ /** < = < */
+ public static final String QUERYOPERATOR_Le = "<";
+ /** <= = <= */
+ public static final String QUERYOPERATOR_LeEq = "<=";
+ /** != = != */
+ public static final String QUERYOPERATOR_NotEq = "!=";
+ /** Full Like = LIKE */
+ public static final String QUERYOPERATOR_FullLike = "LIKE";
+ /** Set Query Operator.
+ @param QueryOperator
+ Operator for database query
+ */
+ public void setQueryOperator (String QueryOperator)
+ {
+
+ set_Value (COLUMNNAME_QueryOperator, QueryOperator);
+ }
+
+ /** Get Query Operator.
+ @return Operator for database query
+ */
+ public String getQueryOperator ()
+ {
+ return (String)get_Value(COLUMNNAME_QueryOperator);
+ }
+
+ /** 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 Selection Column Sequence.
+ @param SeqNoSelection
+ Selection Column Sequence
+ */
+ public void setSeqNoSelection (int SeqNoSelection)
+ {
+ set_Value (COLUMNNAME_SeqNoSelection, Integer.valueOf(SeqNoSelection));
+ }
+
+ /** Get Selection Column Sequence.
+ @return Selection Column Sequence
+ */
+ public int getSeqNoSelection ()
+ {
+ Integer ii = (Integer)get_Value(COLUMNNAME_SeqNoSelection);
+ if (ii == null)
+ return 0;
+ return ii.intValue();
+ }
+}
\ No newline at end of file
diff --git a/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Info_Related.java b/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Info_Related.java
new file mode 100644
index 0000000000..f4ebdefc8d
--- /dev/null
+++ b/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Info_Related.java
@@ -0,0 +1,246 @@
+/******************************************************************************
+ * Product: iDempiere ERP & CRM Smart Business Solution *
+ * Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
+ * This program is free software, you can redistribute it and/or modify it *
+ * under the terms version 2 of the GNU General Public License as published *
+ * by the Free Software Foundation. This program is distributed in the hope *
+ * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
+ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
+ * See the GNU General Public License for more details. *
+ * You should have received a copy of the GNU General Public License along *
+ * with this program, if not, write to the Free Software Foundation, Inc., *
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
+ * For the text or an alternative of this public license, you may reach us *
+ * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
+ * or via info@compiere.org or http://www.compiere.org/license.html *
+ *****************************************************************************/
+/** Generated Model - DO NOT CHANGE */
+package org.compiere.model;
+
+import java.sql.ResultSet;
+import java.util.Properties;
+
+/** Generated Model for AD_UserDef_Info_Related
+ * @author iDempiere (generated)
+ * @version Release 7.1 - $Id$ */
+public class X_AD_UserDef_Info_Related extends PO implements I_AD_UserDef_Info_Related, I_Persistent
+{
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 20201015L;
+
+ /** Standard Constructor */
+ public X_AD_UserDef_Info_Related (Properties ctx, int AD_UserDef_Info_Related_ID, String trxName)
+ {
+ super (ctx, AD_UserDef_Info_Related_ID, trxName);
+ /** if (AD_UserDef_Info_Related_ID == 0)
+ {
+ setAD_InfoRelated_ID (0);
+ setAD_UserDef_Info_ID (0);
+// @AD_UserDef_Info_ID@
+ setAD_UserDef_Info_Related_ID (0);
+ } */
+ }
+
+ /** Load Constructor */
+ public X_AD_UserDef_Info_Related (Properties ctx, ResultSet rs, String trxName)
+ {
+ super (ctx, rs, trxName);
+ }
+
+ /** AccessLevel
+ * @return 6 - System - Client
+ */
+ protected int get_AccessLevel()
+ {
+ return accessLevel.intValue();
+ }
+
+ /** Load Meta Data */
+ protected POInfo initPO (Properties ctx)
+ {
+ POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
+ return poi;
+ }
+
+ public String toString()
+ {
+ StringBuilder sb = new StringBuilder ("X_AD_UserDef_Info_Related[")
+ .append(get_ID()).append(",Name=").append(getName()).append("]");
+ return sb.toString();
+ }
+
+ public org.compiere.model.I_AD_InfoRelated getAD_InfoRelated() throws RuntimeException
+ {
+ return (org.compiere.model.I_AD_InfoRelated)MTable.get(getCtx(), org.compiere.model.I_AD_InfoRelated.Table_Name)
+ .getPO(getAD_InfoRelated_ID(), get_TrxName()); }
+
+ /** Set InfoRelated.
+ @param AD_InfoRelated_ID InfoRelated */
+ public void setAD_InfoRelated_ID (int AD_InfoRelated_ID)
+ {
+ if (AD_InfoRelated_ID < 1)
+ set_ValueNoCheck (COLUMNNAME_AD_InfoRelated_ID, null);
+ else
+ set_ValueNoCheck (COLUMNNAME_AD_InfoRelated_ID, Integer.valueOf(AD_InfoRelated_ID));
+ }
+
+ /** Get InfoRelated.
+ @return InfoRelated */
+ public int getAD_InfoRelated_ID ()
+ {
+ Integer ii = (Integer)get_Value(COLUMNNAME_AD_InfoRelated_ID);
+ if (ii == null)
+ return 0;
+ return ii.intValue();
+ }
+
+ public org.compiere.model.I_AD_UserDef_Info getAD_UserDef_Info() throws RuntimeException
+ {
+ return (org.compiere.model.I_AD_UserDef_Info)MTable.get(getCtx(), org.compiere.model.I_AD_UserDef_Info.Table_Name)
+ .getPO(getAD_UserDef_Info_ID(), get_TrxName()); }
+
+ /** Set User defined Info Window.
+ @param AD_UserDef_Info_ID User defined Info Window */
+ public void setAD_UserDef_Info_ID (int AD_UserDef_Info_ID)
+ {
+ if (AD_UserDef_Info_ID < 1)
+ set_ValueNoCheck (COLUMNNAME_AD_UserDef_Info_ID, null);
+ else
+ set_ValueNoCheck (COLUMNNAME_AD_UserDef_Info_ID, Integer.valueOf(AD_UserDef_Info_ID));
+ }
+
+ /** Get User defined Info Window.
+ @return User defined Info Window */
+ public int getAD_UserDef_Info_ID ()
+ {
+ Integer ii = (Integer)get_Value(COLUMNNAME_AD_UserDef_Info_ID);
+ if (ii == null)
+ return 0;
+ return ii.intValue();
+ }
+
+ /** Set User defined Info Related.
+ @param AD_UserDef_Info_Related_ID User defined Info Related */
+ public void setAD_UserDef_Info_Related_ID (int AD_UserDef_Info_Related_ID)
+ {
+ if (AD_UserDef_Info_Related_ID < 1)
+ set_ValueNoCheck (COLUMNNAME_AD_UserDef_Info_Related_ID, null);
+ else
+ set_ValueNoCheck (COLUMNNAME_AD_UserDef_Info_Related_ID, Integer.valueOf(AD_UserDef_Info_Related_ID));
+ }
+
+ /** Get User defined Info Related.
+ @return User defined Info Related */
+ public int getAD_UserDef_Info_Related_ID ()
+ {
+ Integer ii = (Integer)get_Value(COLUMNNAME_AD_UserDef_Info_Related_ID);
+ if (ii == null)
+ return 0;
+ return ii.intValue();
+ }
+
+ /** Set AD_UserDef_Info_Related_UU.
+ @param AD_UserDef_Info_Related_UU AD_UserDef_Info_Related_UU */
+ public void setAD_UserDef_Info_Related_UU (String AD_UserDef_Info_Related_UU)
+ {
+ set_ValueNoCheck (COLUMNNAME_AD_UserDef_Info_Related_UU, AD_UserDef_Info_Related_UU);
+ }
+
+ /** Get AD_UserDef_Info_Related_UU.
+ @return AD_UserDef_Info_Related_UU */
+ public String getAD_UserDef_Info_Related_UU ()
+ {
+ return (String)get_Value(COLUMNNAME_AD_UserDef_Info_Related_UU);
+ }
+
+ /** Set Description.
+ @param Description
+ Optional short description of the record
+ */
+ public void setDescription (String Description)
+ {
+ set_Value (COLUMNNAME_Description, Description);
+ }
+
+ /** Get Description.
+ @return Optional short description of the record
+ */
+ public String getDescription ()
+ {
+ return (String)get_Value(COLUMNNAME_Description);
+ }
+
+ /** Set Display Logic.
+ @param DisplayLogic
+ If the Field is displayed, the result determines if the field is actually displayed
+ */
+ public void setDisplayLogic (String DisplayLogic)
+ {
+ set_Value (COLUMNNAME_DisplayLogic, DisplayLogic);
+ }
+
+ /** Get Display Logic.
+ @return If the Field is displayed, the result determines if the field is actually displayed
+ */
+ public String getDisplayLogic ()
+ {
+ return (String)get_Value(COLUMNNAME_DisplayLogic);
+ }
+
+ /** Set Comment/Help.
+ @param Help
+ Comment or Hint
+ */
+ public void setHelp (String Help)
+ {
+ set_Value (COLUMNNAME_Help, Help);
+ }
+
+ /** Get Comment/Help.
+ @return Comment or Hint
+ */
+ public String getHelp ()
+ {
+ return (String)get_Value(COLUMNNAME_Help);
+ }
+
+ /** Set Name.
+ @param Name
+ Alphanumeric identifier of the entity
+ */
+ public void setName (String Name)
+ {
+ set_Value (COLUMNNAME_Name, Name);
+ }
+
+ /** Get Name.
+ @return Alphanumeric identifier of the entity
+ */
+ public String getName ()
+ {
+ return (String)get_Value(COLUMNNAME_Name);
+ }
+
+ /** 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();
+ }
+}
\ No newline at end of file
diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WInfoWindowListItemRenderer.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WInfoWindowListItemRenderer.java
index 39cdfacc44..55883128ae 100644
--- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WInfoWindowListItemRenderer.java
+++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/WInfoWindowListItemRenderer.java
@@ -32,7 +32,7 @@ import org.adempiere.webui.theme.ThemeManager;
import org.compiere.minigrid.ColumnInfo;
import org.compiere.minigrid.IDColumn;
import org.compiere.model.GridField;
-import org.compiere.model.MInfoColumn;
+import org.compiere.model.InfoColumnVO;
import org.compiere.model.MStyle;
import org.compiere.util.Env;
import org.compiere.util.Evaluatee;
@@ -41,7 +41,7 @@ import org.zkoss.zul.Listcell;
public class WInfoWindowListItemRenderer extends WListItemRenderer
{
- private MInfoColumn[] gridDisplayedInfoColumns = null;
+ private InfoColumnVO[] gridDisplayedInfoColumns = null;
private ColumnInfo[] gridDisplayedColumnInfos = null;
private InfoWindow infoWindow = null;
@@ -56,7 +56,7 @@ public class WInfoWindowListItemRenderer extends WListItemRenderer
this.infoWindow = infoWindow;
}
- public void setGridDisplaydInfoColumns(MInfoColumn[] infoColumns, ColumnInfo[] columnInfos)
+ public void setGridDisplaydInfoColumns(InfoColumnVO[] infoColumns, ColumnInfo[] columnInfos)
{
this.gridDisplayedInfoColumns = infoColumns;
this.gridDisplayedColumnInfos = columnInfos;
@@ -75,7 +75,7 @@ public class WInfoWindowListItemRenderer extends WListItemRenderer
ListModelTable model = table.getModel();
Object obj = model.get(rowIndex);
- MInfoColumn infoColumn = gridDisplayedInfoColumns[columnIndex];
+ InfoColumnVO infoColumn = gridDisplayedInfoColumns[columnIndex];
if (infoColumn != null)
{
@@ -135,7 +135,7 @@ public class WInfoWindowListItemRenderer extends WListItemRenderer
String value = null;
int idx = 0;
- for (MInfoColumn ic : gridDisplayedInfoColumns)
+ for (InfoColumnVO ic : gridDisplayedInfoColumns)
{
if (ic != null && ic.getColumnName().equals(variableName))
{
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 34f0cd85f4..08d5832b02 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
@@ -25,6 +25,7 @@ import org.adempiere.webui.window.InfoSchedule;
import org.compiere.model.MInfoWindow;
import org.compiere.model.MRole;
import org.compiere.model.MSysConfig;
+import org.compiere.model.MUserDefInfo;
import org.compiere.model.Query;
import org.compiere.util.Env;
import org.compiere.util.Msg;
@@ -102,9 +103,16 @@ public class DPViews extends DashboardPanel implements EventListener" + nameMsg + "
\n"); descMsg = info.get_Translation("Description",false); + if(userDef != null && !Util.isEmpty(userDef.getDescription())) { + descMsg = userDef.getDescription(); + } if (descMsg != null && descMsg.length() != 0) translatedContent.append("" + descMsg + "
\n"); helpMsg = info.get_Translation("Help",false); + if(userDef != null && !Util.isEmpty(userDef.getHelp())) { + helpMsg = userDef.getHelp(); + } if (helpMsg != null && helpMsg.length() != 0) translatedContent.append("" + helpMsg + "
\n"); @@ -448,17 +461,29 @@ public class HelpController } } - if (info != null && info.getName() != null - && info.getName().length() != 0) - baseContent.append("" + info.getName() + "
\n"); + String name = info.getName(); + if(userDef != null && !Util.isEmpty(userDef.getName())) { + name = userDef.getName(); + } + if ( name != null + && name.length() != 0) + baseContent.append("" + name + "
\n"); - if (info.getDescription() != null - && info.getDescription().length() != 0) - baseContent.append("" + info.getDescription() + "
\n"); + String description = info.getDescription(); + if(userDef != null && !Util.isEmpty(userDef.getDescription())) { + description = userDef.getDescription(); + } + if (description != null + && description.length() != 0) + baseContent.append("" + description + "
\n"); - if (info.getHelp() != null - && info.getHelp().length() != 0) - baseContent.append("" + info.getHelp() + "
\n"); + String help = info.getHelp(); + if(userDef != null && !Util.isEmpty(userDef.getHelp())) { + help = userDef.getHelp(); + } + if (help != null + && help.length() != 0) + baseContent.append("" + help + "
\n"); if (baseContent.length() > 0) { 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 3fd221ad5d..54eeed0134 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 @@ -40,7 +40,6 @@ import java.util.logging.Level; import org.adempiere.exceptions.AdempiereException; import org.adempiere.model.IInfoColumn; import org.adempiere.model.MInfoProcess; -import org.adempiere.model.MInfoRelated; import org.adempiere.webui.AdempiereWebUI; import org.adempiere.webui.ClientInfo; import org.adempiere.webui.LayoutUtils; @@ -71,6 +70,8 @@ import org.adempiere.webui.util.ZKUpdateUtil; import org.compiere.minigrid.ColumnInfo; import org.compiere.minigrid.IDColumn; import org.compiere.model.GridField; +import org.compiere.model.InfoColumnVO; +import org.compiere.model.InfoRelatedVO; import org.compiere.model.MInfoColumn; import org.compiere.model.MInfoWindow; import org.compiere.model.MPInstance; @@ -135,7 +136,7 @@ public abstract class InfoPanel extends Window implements EventListener