[ 1757088 ] Grid Collapse and Tab Group, Implementation the GridCollapseDetail
http://sourceforge.net/tracker/index.php?func=detail&aid=1757088&group_id=176962&atid=87933
This commit is contained in:
parent
c13f4f81db
commit
c36ac6647a
|
|
@ -17,12 +17,13 @@
|
||||||
/** Generated Model - DO NOT CHANGE */
|
/** Generated Model - DO NOT CHANGE */
|
||||||
package org.compiere.model;
|
package org.compiere.model;
|
||||||
|
|
||||||
import java.util.*;
|
|
||||||
import java.sql.*;
|
|
||||||
import java.math.*;
|
|
||||||
import java.lang.reflect.Constructor;
|
import java.lang.reflect.Constructor;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.util.Properties;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import org.compiere.util.*;
|
import org.compiere.util.Env;
|
||||||
|
import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
/** Generated Model for AD_Field
|
/** Generated Model for AD_Field
|
||||||
* @author Adempiere (generated)
|
* @author Adempiere (generated)
|
||||||
|
|
@ -39,7 +40,9 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent
|
||||||
public X_AD_Field (Properties ctx, int AD_Field_ID, String trxName)
|
public X_AD_Field (Properties ctx, int AD_Field_ID, String trxName)
|
||||||
{
|
{
|
||||||
super (ctx, AD_Field_ID, trxName);
|
super (ctx, AD_Field_ID, trxName);
|
||||||
/** if (AD_Field_ID == 0) { setAD_Column_ID (0);
|
/** if (AD_Field_ID == 0)
|
||||||
|
{
|
||||||
|
setAD_Column_ID (0);
|
||||||
setAD_Field_ID (0);
|
setAD_Field_ID (0);
|
||||||
setAD_Tab_ID (0);
|
setAD_Tab_ID (0);
|
||||||
setEntityType (null);
|
setEntityType (null);
|
||||||
|
|
@ -54,7 +57,7 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent
|
||||||
setIsReadOnly (false);
|
setIsReadOnly (false);
|
||||||
setIsSameLine (false);
|
setIsSameLine (false);
|
||||||
setName (null);
|
setName (null);
|
||||||
} */
|
} */
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Load Constructor */
|
/** Load Constructor */
|
||||||
|
|
@ -85,7 +88,7 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public I_AD_Column getI_AD_Column() throws Exception
|
public I_AD_Column getAD_Column() throws Exception
|
||||||
{
|
{
|
||||||
Class<?> clazz = MTable.getClass(I_AD_Column.Table_Name);
|
Class<?> clazz = MTable.getClass(I_AD_Column.Table_Name);
|
||||||
I_AD_Column result = null;
|
I_AD_Column result = null;
|
||||||
|
|
@ -123,7 +126,7 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent
|
||||||
return ii.intValue();
|
return ii.intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
public I_AD_FieldGroup getI_AD_FieldGroup() throws Exception
|
public I_AD_FieldGroup getAD_FieldGroup() throws Exception
|
||||||
{
|
{
|
||||||
Class<?> clazz = MTable.getClass(I_AD_FieldGroup.Table_Name);
|
Class<?> clazz = MTable.getClass(I_AD_FieldGroup.Table_Name);
|
||||||
I_AD_FieldGroup result = null;
|
I_AD_FieldGroup result = null;
|
||||||
|
|
@ -145,7 +148,8 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent
|
||||||
*/
|
*/
|
||||||
public void setAD_FieldGroup_ID (int AD_FieldGroup_ID)
|
public void setAD_FieldGroup_ID (int AD_FieldGroup_ID)
|
||||||
{
|
{
|
||||||
if (AD_FieldGroup_ID <= 0) set_Value (COLUMNNAME_AD_FieldGroup_ID, null);
|
if (AD_FieldGroup_ID <= 0)
|
||||||
|
set_Value (COLUMNNAME_AD_FieldGroup_ID, null);
|
||||||
else
|
else
|
||||||
set_Value (COLUMNNAME_AD_FieldGroup_ID, Integer.valueOf(AD_FieldGroup_ID));
|
set_Value (COLUMNNAME_AD_FieldGroup_ID, Integer.valueOf(AD_FieldGroup_ID));
|
||||||
}
|
}
|
||||||
|
|
@ -183,15 +187,16 @@ public class X_AD_Field extends PO implements I_AD_Field, I_Persistent
|
||||||
return ii.intValue();
|
return ii.intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** AD_Reference_ID AD_Reference_ID=1 */
|
/** AD_Reference_ID AD_Reference_ID=1 */
|
||||||
public static final int AD_REFERENCE_ID_AD_Reference_ID=1;
|
public static final int AD_REFERENCE_ID_AD_Reference_ID=1;
|
||||||
/** Set Reference.
|
/** Set Reference.
|
||||||
@param AD_Reference_ID
|
@param AD_Reference_ID
|
||||||
System Reference and Validation
|
System Reference and Validation
|
||||||
*/
|
*/
|
||||||
public void setAD_Reference_ID (int AD_Reference_ID)
|
public void setAD_Reference_ID (int AD_Reference_ID)
|
||||||
{
|
{
|
||||||
if (AD_Reference_ID <= 0) set_Value (COLUMNNAME_AD_Reference_ID, null);
|
if (AD_Reference_ID <= 0)
|
||||||
|
set_Value (COLUMNNAME_AD_Reference_ID, null);
|
||||||
else
|
else
|
||||||
set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID));
|
set_Value (COLUMNNAME_AD_Reference_ID, Integer.valueOf(AD_Reference_ID));
|
||||||
}
|
}
|
||||||
|
|
@ -207,7 +212,7 @@ public static final int AD_REFERENCE_ID_AD_Reference_ID=1;
|
||||||
return ii.intValue();
|
return ii.intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
public I_AD_Tab getI_AD_Tab() throws Exception
|
public I_AD_Tab getAD_Tab() throws Exception
|
||||||
{
|
{
|
||||||
Class<?> clazz = MTable.getClass(I_AD_Tab.Table_Name);
|
Class<?> clazz = MTable.getClass(I_AD_Tab.Table_Name);
|
||||||
I_AD_Tab result = null;
|
I_AD_Tab result = null;
|
||||||
|
|
@ -251,6 +256,7 @@ public static final int AD_REFERENCE_ID_AD_Reference_ID=1;
|
||||||
*/
|
*/
|
||||||
public void setDescription (String Description)
|
public void setDescription (String Description)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (Description != null && Description.length() > 255)
|
if (Description != null && Description.length() > 255)
|
||||||
{
|
{
|
||||||
log.warning("Length > 255 - truncated");
|
log.warning("Length > 255 - truncated");
|
||||||
|
|
@ -293,6 +299,7 @@ public static final int AD_REFERENCE_ID_AD_Reference_ID=1;
|
||||||
*/
|
*/
|
||||||
public void setDisplayLogic (String DisplayLogic)
|
public void setDisplayLogic (String DisplayLogic)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (DisplayLogic != null && DisplayLogic.length() > 2000)
|
if (DisplayLogic != null && DisplayLogic.length() > 2000)
|
||||||
{
|
{
|
||||||
log.warning("Length > 2000 - truncated");
|
log.warning("Length > 2000 - truncated");
|
||||||
|
|
@ -309,14 +316,15 @@ public static final int AD_REFERENCE_ID_AD_Reference_ID=1;
|
||||||
return (String)get_Value(COLUMNNAME_DisplayLogic);
|
return (String)get_Value(COLUMNNAME_DisplayLogic);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** EntityType AD_Reference_ID=389 */
|
/** EntityType AD_Reference_ID=389 */
|
||||||
public static final int ENTITYTYPE_AD_Reference_ID=389;
|
public static final int ENTITYTYPE_AD_Reference_ID=389;
|
||||||
/** Set Entity Type.
|
/** Set Entity Type.
|
||||||
@param EntityType
|
@param EntityType
|
||||||
Dictionary Entity Type; Determines ownership and synchronization
|
Dictionary Entity Type; Determines ownership and synchronization
|
||||||
*/
|
*/
|
||||||
public void setEntityType (String EntityType)
|
public void setEntityType (String EntityType)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (EntityType.length() > 4)
|
if (EntityType.length() > 4)
|
||||||
{
|
{
|
||||||
log.warning("Length > 4 - truncated");
|
log.warning("Length > 4 - truncated");
|
||||||
|
|
@ -339,6 +347,7 @@ public static final int ENTITYTYPE_AD_Reference_ID=389;
|
||||||
*/
|
*/
|
||||||
public void setHelp (String Help)
|
public void setHelp (String Help)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (Help != null && Help.length() > 2000)
|
if (Help != null && Help.length() > 2000)
|
||||||
{
|
{
|
||||||
log.warning("Length > 2000 - truncated");
|
log.warning("Length > 2000 - truncated");
|
||||||
|
|
@ -475,17 +484,21 @@ public static final int ENTITYTYPE_AD_Reference_ID=389;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** IsMandatory AD_Reference_ID=319 */
|
/** IsMandatory AD_Reference_ID=319 */
|
||||||
public static final int ISMANDATORY_AD_Reference_ID=319;/** No = N */
|
public static final int ISMANDATORY_AD_Reference_ID=319;
|
||||||
public static final String ISMANDATORY_No = "N";/** Yes = Y */
|
/** Yes = Y */
|
||||||
public static final String ISMANDATORY_Yes = "Y";
|
public static final String ISMANDATORY_Yes = "Y";
|
||||||
|
/** No = N */
|
||||||
|
public static final String ISMANDATORY_No = "N";
|
||||||
/** Set Mandatory.
|
/** Set Mandatory.
|
||||||
@param IsMandatory
|
@param IsMandatory
|
||||||
Data entry is required in this column
|
Data entry is required in this column
|
||||||
*/
|
*/
|
||||||
public void setIsMandatory (String IsMandatory)
|
public void setIsMandatory (String IsMandatory)
|
||||||
{
|
{
|
||||||
if (IsMandatory == null || IsMandatory.equals("N") || IsMandatory.equals("Y")); else throw new IllegalArgumentException ("IsMandatory Invalid value - " + IsMandatory + " - Reference_ID=319 - N - Y"); if (IsMandatory != null && IsMandatory.length() > 1)
|
|
||||||
|
if (IsMandatory == null || IsMandatory.equals("Y") || IsMandatory.equals("N")); else throw new IllegalArgumentException ("IsMandatory Invalid value - " + IsMandatory + " - Reference_ID=319 - Y - N");
|
||||||
|
if (IsMandatory != null && IsMandatory.length() > 1)
|
||||||
{
|
{
|
||||||
log.warning("Length > 1 - truncated");
|
log.warning("Length > 1 - truncated");
|
||||||
IsMandatory = IsMandatory.substring(0, 0);
|
IsMandatory = IsMandatory.substring(0, 0);
|
||||||
|
|
@ -557,6 +570,7 @@ if (IsMandatory == null || IsMandatory.equals("N") || IsMandatory.equals("Y"));
|
||||||
{
|
{
|
||||||
if (Name == null)
|
if (Name == null)
|
||||||
throw new IllegalArgumentException ("Name is mandatory.");
|
throw new IllegalArgumentException ("Name is mandatory.");
|
||||||
|
|
||||||
if (Name.length() > 60)
|
if (Name.length() > 60)
|
||||||
{
|
{
|
||||||
log.warning("Length > 60 - truncated");
|
log.warning("Length > 60 - truncated");
|
||||||
|
|
@ -581,19 +595,25 @@ if (IsMandatory == null || IsMandatory.equals("N") || IsMandatory.equals("Y"));
|
||||||
return new KeyNamePair(get_ID(), getName());
|
return new KeyNamePair(get_ID(), getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** ObscureType AD_Reference_ID=291 */
|
/** ObscureType AD_Reference_ID=291 */
|
||||||
public static final int OBSCURETYPE_AD_Reference_ID=291;/** Obscure Digits but last 4 = 904 */
|
public static final int OBSCURETYPE_AD_Reference_ID=291;
|
||||||
public static final String OBSCURETYPE_ObscureDigitsButLast4 = "904";/** Obscure Digits but first/last 4 = 944 */
|
/** Obscure Digits but last 4 = 904 */
|
||||||
public static final String OBSCURETYPE_ObscureDigitsButFirstLast4 = "944";/** Obscure AlphaNumeric but last 4 = A04 */
|
public static final String OBSCURETYPE_ObscureDigitsButLast4 = "904";
|
||||||
public static final String OBSCURETYPE_ObscureAlphaNumericButLast4 = "A04";/** Obscure AlphaNumeric but first/last 4 = A44 */
|
/** Obscure Digits but first/last 4 = 944 */
|
||||||
public static final String OBSCURETYPE_ObscureAlphaNumericButFirstLast4 = "A44";
|
public static final String OBSCURETYPE_ObscureDigitsButFirstLast4 = "944";
|
||||||
|
/** Obscure AlphaNumeric but first/last 4 = A44 */
|
||||||
|
public static final String OBSCURETYPE_ObscureAlphaNumericButFirstLast4 = "A44";
|
||||||
|
/** Obscure AlphaNumeric but last 4 = A04 */
|
||||||
|
public static final String OBSCURETYPE_ObscureAlphaNumericButLast4 = "A04";
|
||||||
/** Set Obscure.
|
/** Set Obscure.
|
||||||
@param ObscureType
|
@param ObscureType
|
||||||
Type of obscuring the data (limiting the display)
|
Type of obscuring the data (limiting the display)
|
||||||
*/
|
*/
|
||||||
public void setObscureType (String ObscureType)
|
public void setObscureType (String ObscureType)
|
||||||
{
|
{
|
||||||
if (ObscureType == null || ObscureType.equals("904") || ObscureType.equals("944") || ObscureType.equals("A04") || ObscureType.equals("A44")); else throw new IllegalArgumentException ("ObscureType Invalid value - " + ObscureType + " - Reference_ID=291 - 904 - 944 - A04 - A44"); if (ObscureType != null && ObscureType.length() > 3)
|
|
||||||
|
if (ObscureType == null || ObscureType.equals("904") || ObscureType.equals("944") || ObscureType.equals("A44") || ObscureType.equals("A04")); else throw new IllegalArgumentException ("ObscureType Invalid value - " + ObscureType + " - Reference_ID=291 - 904 - 944 - A44 - A04");
|
||||||
|
if (ObscureType != null && ObscureType.length() > 3)
|
||||||
{
|
{
|
||||||
log.warning("Length > 3 - truncated");
|
log.warning("Length > 3 - truncated");
|
||||||
ObscureType = ObscureType.substring(0, 2);
|
ObscureType = ObscureType.substring(0, 2);
|
||||||
|
|
|
||||||
|
|
@ -17,12 +17,9 @@
|
||||||
/** Generated Model - DO NOT CHANGE */
|
/** Generated Model - DO NOT CHANGE */
|
||||||
package org.compiere.model;
|
package org.compiere.model;
|
||||||
|
|
||||||
import java.util.*;
|
import java.sql.ResultSet;
|
||||||
import java.sql.*;
|
import java.util.Properties;
|
||||||
import java.math.*;
|
import org.compiere.util.KeyNamePair;
|
||||||
import java.lang.reflect.Constructor;
|
|
||||||
import java.util.logging.Level;
|
|
||||||
import org.compiere.util.*;
|
|
||||||
|
|
||||||
/** Generated Model for AD_FieldGroup
|
/** Generated Model for AD_FieldGroup
|
||||||
* @author Adempiere (generated)
|
* @author Adempiere (generated)
|
||||||
|
|
@ -39,11 +36,13 @@ public class X_AD_FieldGroup extends PO implements I_AD_FieldGroup, I_Persistent
|
||||||
public X_AD_FieldGroup (Properties ctx, int AD_FieldGroup_ID, String trxName)
|
public X_AD_FieldGroup (Properties ctx, int AD_FieldGroup_ID, String trxName)
|
||||||
{
|
{
|
||||||
super (ctx, AD_FieldGroup_ID, trxName);
|
super (ctx, AD_FieldGroup_ID, trxName);
|
||||||
/** if (AD_FieldGroup_ID == 0) { setAD_FieldGroup_ID (0);
|
/** if (AD_FieldGroup_ID == 0)
|
||||||
|
{
|
||||||
|
setAD_FieldGroup_ID (0);
|
||||||
setEntityType (null);
|
setEntityType (null);
|
||||||
// U
|
// U
|
||||||
setName (null);
|
setName (null);
|
||||||
} */
|
} */
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Load Constructor */
|
/** Load Constructor */
|
||||||
|
|
@ -96,14 +95,15 @@ public class X_AD_FieldGroup extends PO implements I_AD_FieldGroup, I_Persistent
|
||||||
return ii.intValue();
|
return ii.intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** EntityType AD_Reference_ID=389 */
|
/** EntityType AD_Reference_ID=389 */
|
||||||
public static final int ENTITYTYPE_AD_Reference_ID=389;
|
public static final int ENTITYTYPE_AD_Reference_ID=389;
|
||||||
/** Set Entity Type.
|
/** Set Entity Type.
|
||||||
@param EntityType
|
@param EntityType
|
||||||
Dictionary Entity Type; Determines ownership and synchronization
|
Dictionary Entity Type; Determines ownership and synchronization
|
||||||
*/
|
*/
|
||||||
public void setEntityType (String EntityType)
|
public void setEntityType (String EntityType)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (EntityType.length() > 4)
|
if (EntityType.length() > 4)
|
||||||
{
|
{
|
||||||
log.warning("Length > 4 - truncated");
|
log.warning("Length > 4 - truncated");
|
||||||
|
|
@ -120,6 +120,38 @@ public static final int ENTITYTYPE_AD_Reference_ID=389;
|
||||||
return (String)get_Value(COLUMNNAME_EntityType);
|
return (String)get_Value(COLUMNNAME_EntityType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** FieldGroupType AD_Reference_ID=53000 */
|
||||||
|
public static final int FIELDGROUPTYPE_AD_Reference_ID=53000;
|
||||||
|
/** Tab = T */
|
||||||
|
public static final String FIELDGROUPTYPE_Tab = "T";
|
||||||
|
/** Label = L */
|
||||||
|
public static final String FIELDGROUPTYPE_Label = "L";
|
||||||
|
/** Collapse = C */
|
||||||
|
public static final String FIELDGROUPTYPE_Collapse = "C";
|
||||||
|
/** Set Field Group Type.
|
||||||
|
@param FieldGroupType
|
||||||
|
Field Group
|
||||||
|
*/
|
||||||
|
public void setFieldGroupType (String FieldGroupType)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (FieldGroupType == null || FieldGroupType.equals("T") || FieldGroupType.equals("L") || FieldGroupType.equals("C")); else throw new IllegalArgumentException ("FieldGroupType Invalid value - " + FieldGroupType + " - Reference_ID=53000 - T - L - C");
|
||||||
|
if (FieldGroupType != null && FieldGroupType.length() > 10)
|
||||||
|
{
|
||||||
|
log.warning("Length > 10 - truncated");
|
||||||
|
FieldGroupType = FieldGroupType.substring(0, 9);
|
||||||
|
}
|
||||||
|
set_Value (COLUMNNAME_FieldGroupType, FieldGroupType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Field Group Type.
|
||||||
|
@return Field Group
|
||||||
|
*/
|
||||||
|
public String getFieldGroupType ()
|
||||||
|
{
|
||||||
|
return (String)get_Value(COLUMNNAME_FieldGroupType);
|
||||||
|
}
|
||||||
|
|
||||||
/** Set Name.
|
/** Set Name.
|
||||||
@param Name
|
@param Name
|
||||||
Alphanumeric identifier of the entity
|
Alphanumeric identifier of the entity
|
||||||
|
|
@ -128,6 +160,7 @@ public static final int ENTITYTYPE_AD_Reference_ID=389;
|
||||||
{
|
{
|
||||||
if (Name == null)
|
if (Name == null)
|
||||||
throw new IllegalArgumentException ("Name is mandatory.");
|
throw new IllegalArgumentException ("Name is mandatory.");
|
||||||
|
|
||||||
if (Name.length() > 60)
|
if (Name.length() > 60)
|
||||||
{
|
{
|
||||||
log.warning("Length > 60 - truncated");
|
log.warning("Length > 60 - truncated");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue