diff --git a/org.adempiere.base/src/org/compiere/model/I_AD_UserDef_Field.java b/org.adempiere.base/src/org/compiere/model/I_AD_UserDef_Field.java index 25d58a2aaf..019141a21d 100644 --- a/org.adempiere.base/src/org/compiere/model/I_AD_UserDef_Field.java +++ b/org.adempiere.base/src/org/compiere/model/I_AD_UserDef_Field.java @@ -31,7 +31,7 @@ public interface I_AD_UserDef_Field public static final String Table_Name = "AD_UserDef_Field"; /** AD_Table_ID=464 */ - public static final int Table_ID = MTable.getTable_ID(Table_Name); + public static final int Table_ID = 464; KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); @@ -62,7 +62,7 @@ public interface I_AD_UserDef_Field */ public int getAD_Field_ID(); - public I_AD_Field getAD_Field() throws RuntimeException; + public org.compiere.model.I_AD_Field getAD_Field() throws RuntimeException; /** Column name AD_Org_ID */ public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; @@ -86,6 +86,15 @@ public interface I_AD_UserDef_Field /** Get User defined Field */ public int getAD_UserDef_Field_ID(); + /** Column name AD_UserDef_Field_UU */ + public static final String COLUMNNAME_AD_UserDef_Field_UU = "AD_UserDef_Field_UU"; + + /** Set AD_UserDef_Field_UU */ + public void setAD_UserDef_Field_UU (String AD_UserDef_Field_UU); + + /** Get AD_UserDef_Field_UU */ + public String getAD_UserDef_Field_UU(); + /** Column name AD_UserDef_Tab_ID */ public static final String COLUMNNAME_AD_UserDef_Tab_ID = "AD_UserDef_Tab_ID"; @@ -95,7 +104,7 @@ public interface I_AD_UserDef_Field /** Get User defined Tab */ public int getAD_UserDef_Tab_ID(); - public I_AD_UserDef_Tab getAD_UserDef_Tab() throws RuntimeException; + public org.compiere.model.I_AD_UserDef_Tab getAD_UserDef_Tab() throws RuntimeException; /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/org.adempiere.base/src/org/compiere/model/I_AD_UserDef_Tab.java b/org.adempiere.base/src/org/compiere/model/I_AD_UserDef_Tab.java index 723d43b8fe..b1a493072a 100644 --- a/org.adempiere.base/src/org/compiere/model/I_AD_UserDef_Tab.java +++ b/org.adempiere.base/src/org/compiere/model/I_AD_UserDef_Tab.java @@ -31,7 +31,7 @@ public interface I_AD_UserDef_Tab public static final String Table_Name = "AD_UserDef_Tab"; /** AD_Table_ID=466 */ - public static final int Table_ID = MTable.getTable_ID(Table_Name); + public static final int Table_ID = 466; KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); @@ -75,7 +75,7 @@ public interface I_AD_UserDef_Tab */ public int getAD_Tab_ID(); - public I_AD_Tab getAD_Tab() throws RuntimeException; + public org.compiere.model.I_AD_Tab getAD_Tab() throws RuntimeException; /** Column name AD_UserDef_Tab_ID */ public static final String COLUMNNAME_AD_UserDef_Tab_ID = "AD_UserDef_Tab_ID"; @@ -86,6 +86,15 @@ public interface I_AD_UserDef_Tab /** Get User defined Tab */ public int getAD_UserDef_Tab_ID(); + /** Column name AD_UserDef_Tab_UU */ + public static final String COLUMNNAME_AD_UserDef_Tab_UU = "AD_UserDef_Tab_UU"; + + /** Set AD_UserDef_Tab_UU */ + public void setAD_UserDef_Tab_UU (String AD_UserDef_Tab_UU); + + /** Get AD_UserDef_Tab_UU */ + public String getAD_UserDef_Tab_UU(); + /** Column name AD_UserDef_Win_ID */ public static final String COLUMNNAME_AD_UserDef_Win_ID = "AD_UserDef_Win_ID"; @@ -95,7 +104,7 @@ public interface I_AD_UserDef_Tab /** Get User defined Window */ public int getAD_UserDef_Win_ID(); - public I_AD_UserDef_Win getAD_UserDef_Win() throws RuntimeException; + public org.compiere.model.I_AD_UserDef_Win getAD_UserDef_Win() throws RuntimeException; /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; @@ -204,6 +213,19 @@ public interface I_AD_UserDef_Tab */ public String getName(); + /** Column name ReadOnlyLogic */ + public static final String COLUMNNAME_ReadOnlyLogic = "ReadOnlyLogic"; + + /** Set Read Only Logic. + * Logic to determine if field is read only (applies only when field is read-write) + */ + public void setReadOnlyLogic (String ReadOnlyLogic); + + /** Get Read Only Logic. + * Logic to determine if field is read only (applies only when field is read-write) + */ + public String getReadOnlyLogic(); + /** Column name Updated */ public static final String COLUMNNAME_Updated = "Updated"; diff --git a/org.adempiere.base/src/org/compiere/model/I_AD_UserDef_Win.java b/org.adempiere.base/src/org/compiere/model/I_AD_UserDef_Win.java index 51e2dcce52..db6a4e2edf 100644 --- a/org.adempiere.base/src/org/compiere/model/I_AD_UserDef_Win.java +++ b/org.adempiere.base/src/org/compiere/model/I_AD_UserDef_Win.java @@ -31,7 +31,7 @@ public interface I_AD_UserDef_Win public static final String Table_Name = "AD_UserDef_Win"; /** AD_Table_ID=467 */ - public static final int Table_ID = MTable.getTable_ID(Table_Name); + public static final int Table_ID = 467; KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name); @@ -88,7 +88,7 @@ public interface I_AD_UserDef_Win */ public int getAD_Role_ID(); - public I_AD_Role getAD_Role() throws RuntimeException; + public org.compiere.model.I_AD_Role getAD_Role() throws RuntimeException; /** Column name AD_UserDef_Win_ID */ public static final String COLUMNNAME_AD_UserDef_Win_ID = "AD_UserDef_Win_ID"; @@ -99,6 +99,15 @@ public interface I_AD_UserDef_Win /** Get User defined Window */ public int getAD_UserDef_Win_ID(); + /** Column name AD_UserDef_Win_UU */ + public static final String COLUMNNAME_AD_UserDef_Win_UU = "AD_UserDef_Win_UU"; + + /** Set AD_UserDef_Win_UU */ + public void setAD_UserDef_Win_UU (String AD_UserDef_Win_UU); + + /** Get AD_UserDef_Win_UU */ + public String getAD_UserDef_Win_UU(); + /** Column name AD_User_ID */ public static final String COLUMNNAME_AD_User_ID = "AD_User_ID"; @@ -112,7 +121,7 @@ public interface I_AD_UserDef_Win */ public int getAD_User_ID(); - public I_AD_User getAD_User() throws RuntimeException; + public org.compiere.model.I_AD_User getAD_User() throws RuntimeException; /** Column name AD_Window_ID */ public static final String COLUMNNAME_AD_Window_ID = "AD_Window_ID"; @@ -127,7 +136,7 @@ public interface I_AD_UserDef_Win */ public int getAD_Window_ID(); - public I_AD_Window getAD_Window() throws RuntimeException; + public org.compiere.model.I_AD_Window getAD_Window() throws RuntimeException; /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Field.java b/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Field.java index eb0f622721..6d84180dfb 100644 --- a/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Field.java +++ b/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Field.java @@ -30,7 +30,7 @@ public class X_AD_UserDef_Field extends PO implements I_AD_UserDef_Field, I_Pers /** * */ - private static final long serialVersionUID = 20100614L; + private static final long serialVersionUID = 20120404L; /** Standard Constructor */ public X_AD_UserDef_Field (Properties ctx, int AD_UserDef_Field_ID, String trxName) @@ -41,12 +41,14 @@ public class X_AD_UserDef_Field extends PO implements I_AD_UserDef_Field, I_Pers setAD_Field_ID (0); setAD_UserDef_Field_ID (0); setAD_UserDef_Tab_ID (0); - setDefaultValue (null); - setIsDisplayed (false); + setIsDisplayed (true); +// 'Y' setIsReadOnly (false); +// 'N' setIsSameLine (false); - setName (null); +// 'N' setSeqNo (0); +// 0 } */ } @@ -78,9 +80,9 @@ public class X_AD_UserDef_Field extends PO implements I_AD_UserDef_Field, I_Pers return sb.toString(); } - public I_AD_Field getAD_Field() throws RuntimeException + public org.compiere.model.I_AD_Field getAD_Field() throws RuntimeException { - return (I_AD_Field)MTable.get(getCtx(), I_AD_Field.Table_Name) + return (org.compiere.model.I_AD_Field)MTable.get(getCtx(), org.compiere.model.I_AD_Field.Table_Name) .getPO(getAD_Field_ID(), get_TrxName()); } /** Set Field. @@ -106,6 +108,14 @@ public class X_AD_UserDef_Field extends PO implements I_AD_UserDef_Field, I_Pers return ii.intValue(); } + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Field_ID())); + } + /** Set User defined Field. @param AD_UserDef_Field_ID User defined Field */ public void setAD_UserDef_Field_ID (int AD_UserDef_Field_ID) @@ -126,9 +136,23 @@ public class X_AD_UserDef_Field extends PO implements I_AD_UserDef_Field, I_Pers return ii.intValue(); } - public I_AD_UserDef_Tab getAD_UserDef_Tab() throws RuntimeException + /** Set AD_UserDef_Field_UU. + @param AD_UserDef_Field_UU AD_UserDef_Field_UU */ + public void setAD_UserDef_Field_UU (String AD_UserDef_Field_UU) + { + set_Value (COLUMNNAME_AD_UserDef_Field_UU, AD_UserDef_Field_UU); + } + + /** Get AD_UserDef_Field_UU. + @return AD_UserDef_Field_UU */ + public String getAD_UserDef_Field_UU () + { + return (String)get_Value(COLUMNNAME_AD_UserDef_Field_UU); + } + + public org.compiere.model.I_AD_UserDef_Tab getAD_UserDef_Tab() throws RuntimeException { - return (I_AD_UserDef_Tab)MTable.get(getCtx(), I_AD_UserDef_Tab.Table_Name) + return (org.compiere.model.I_AD_UserDef_Tab)MTable.get(getCtx(), org.compiere.model.I_AD_UserDef_Tab.Table_Name) .getPO(getAD_UserDef_Tab_ID(), get_TrxName()); } /** Set User defined Tab. @@ -352,14 +376,6 @@ public class X_AD_UserDef_Field extends PO implements I_AD_UserDef_Field, I_Pers return (String)get_Value(COLUMNNAME_Name); } - /** Get Record ID/ColumnName - @return ID/ColumnName pair - */ - public KeyNamePair getKeyNamePair() - { - return new KeyNamePair(get_ID(), getName()); - } - /** Set Sequence. @param SeqNo Method of ordering records; lowest number comes first diff --git a/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Tab.java b/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Tab.java index 2e44e3c5f4..ce1a236487 100644 --- a/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Tab.java +++ b/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Tab.java @@ -30,7 +30,7 @@ public class X_AD_UserDef_Tab extends PO implements I_AD_UserDef_Tab, I_Persiste /** * */ - private static final long serialVersionUID = 20100614L; + private static final long serialVersionUID = 20120404L; /** Standard Constructor */ public X_AD_UserDef_Tab (Properties ctx, int AD_UserDef_Tab_ID, String trxName) @@ -44,7 +44,6 @@ public class X_AD_UserDef_Tab extends PO implements I_AD_UserDef_Tab, I_Persiste setIsMultiRowOnly (false); setIsReadOnly (false); setIsSingleRow (false); - setName (null); } */ } @@ -76,9 +75,9 @@ public class X_AD_UserDef_Tab extends PO implements I_AD_UserDef_Tab, I_Persiste return sb.toString(); } - public I_AD_Tab getAD_Tab() throws RuntimeException + public org.compiere.model.I_AD_Tab getAD_Tab() throws RuntimeException { - return (I_AD_Tab)MTable.get(getCtx(), I_AD_Tab.Table_Name) + return (org.compiere.model.I_AD_Tab)MTable.get(getCtx(), org.compiere.model.I_AD_Tab.Table_Name) .getPO(getAD_Tab_ID(), get_TrxName()); } /** Set Tab. @@ -104,6 +103,14 @@ public class X_AD_UserDef_Tab extends PO implements I_AD_UserDef_Tab, I_Persiste return ii.intValue(); } + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Tab_ID())); + } + /** Set User defined Tab. @param AD_UserDef_Tab_ID User defined Tab */ public void setAD_UserDef_Tab_ID (int AD_UserDef_Tab_ID) @@ -124,9 +131,23 @@ public class X_AD_UserDef_Tab extends PO implements I_AD_UserDef_Tab, I_Persiste return ii.intValue(); } - public I_AD_UserDef_Win getAD_UserDef_Win() throws RuntimeException + /** Set AD_UserDef_Tab_UU. + @param AD_UserDef_Tab_UU AD_UserDef_Tab_UU */ + public void setAD_UserDef_Tab_UU (String AD_UserDef_Tab_UU) + { + set_Value (COLUMNNAME_AD_UserDef_Tab_UU, AD_UserDef_Tab_UU); + } + + /** Get AD_UserDef_Tab_UU. + @return AD_UserDef_Tab_UU */ + public String getAD_UserDef_Tab_UU () + { + return (String)get_Value(COLUMNNAME_AD_UserDef_Tab_UU); + } + + public org.compiere.model.I_AD_UserDef_Win getAD_UserDef_Win() throws RuntimeException { - return (I_AD_UserDef_Win)MTable.get(getCtx(), I_AD_UserDef_Win.Table_Name) + return (org.compiere.model.I_AD_UserDef_Win)MTable.get(getCtx(), org.compiere.model.I_AD_UserDef_Win.Table_Name) .getPO(getAD_UserDef_Win_ID(), get_TrxName()); } /** Set User defined Window. @@ -272,11 +293,20 @@ public class X_AD_UserDef_Tab extends PO implements I_AD_UserDef_Tab, I_Persiste return (String)get_Value(COLUMNNAME_Name); } - /** Get Record ID/ColumnName - @return ID/ColumnName pair - */ - public KeyNamePair getKeyNamePair() - { - return new KeyNamePair(get_ID(), getName()); - } + /** Set Read Only Logic. + @param ReadOnlyLogic + Logic to determine if field is read only (applies only when field is read-write) + */ + public void setReadOnlyLogic (String ReadOnlyLogic) + { + set_Value (COLUMNNAME_ReadOnlyLogic, ReadOnlyLogic); + } + + /** Get Read Only Logic. + @return Logic to determine if field is read only (applies only when field is read-write) + */ + public String getReadOnlyLogic () + { + return (String)get_Value(COLUMNNAME_ReadOnlyLogic); + } } \ No newline at end of file diff --git a/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Win.java b/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Win.java index 9b56d14214..b954c014db 100644 --- a/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Win.java +++ b/org.adempiere.base/src/org/compiere/model/X_AD_UserDef_Win.java @@ -30,7 +30,7 @@ public class X_AD_UserDef_Win extends PO implements I_AD_UserDef_Win, I_Persiste /** * */ - private static final long serialVersionUID = 20100614L; + private static final long serialVersionUID = 20120404L; /** Standard Constructor */ public X_AD_UserDef_Win (Properties ctx, int AD_UserDef_Win_ID, String trxName) @@ -38,13 +38,11 @@ public class X_AD_UserDef_Win extends PO implements I_AD_UserDef_Win, I_Persiste super (ctx, AD_UserDef_Win_ID, trxName); /** if (AD_UserDef_Win_ID == 0) { - setAD_Language (null); setAD_UserDef_Win_ID (0); setAD_Window_ID (0); setIsDefault (false); setIsReadOnly (false); setIsUserUpdateable (false); - setName (null); } */ } @@ -96,9 +94,9 @@ public class X_AD_UserDef_Win extends PO implements I_AD_UserDef_Win, I_Persiste return (String)get_Value(COLUMNNAME_AD_Language); } - public I_AD_Role getAD_Role() throws RuntimeException + public org.compiere.model.I_AD_Role getAD_Role() throws RuntimeException { - return (I_AD_Role)MTable.get(getCtx(), I_AD_Role.Table_Name) + 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. @@ -144,9 +142,23 @@ public class X_AD_UserDef_Win extends PO implements I_AD_UserDef_Win, I_Persiste return ii.intValue(); } - public I_AD_User getAD_User() throws RuntimeException + /** Set AD_UserDef_Win_UU. + @param AD_UserDef_Win_UU AD_UserDef_Win_UU */ + public void setAD_UserDef_Win_UU (String AD_UserDef_Win_UU) + { + set_Value (COLUMNNAME_AD_UserDef_Win_UU, AD_UserDef_Win_UU); + } + + /** Get AD_UserDef_Win_UU. + @return AD_UserDef_Win_UU */ + public String getAD_UserDef_Win_UU () + { + return (String)get_Value(COLUMNNAME_AD_UserDef_Win_UU); + } + + public org.compiere.model.I_AD_User getAD_User() throws RuntimeException { - return (I_AD_User)MTable.get(getCtx(), I_AD_User.Table_Name) + 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. @@ -172,9 +184,9 @@ public class X_AD_UserDef_Win extends PO implements I_AD_UserDef_Win, I_Persiste return ii.intValue(); } - public I_AD_Window getAD_Window() throws RuntimeException + public org.compiere.model.I_AD_Window getAD_Window() throws RuntimeException { - return (I_AD_Window)MTable.get(getCtx(), I_AD_Window.Table_Name) + return (org.compiere.model.I_AD_Window)MTable.get(getCtx(), org.compiere.model.I_AD_Window.Table_Name) .getPO(getAD_Window_ID(), get_TrxName()); } /** Set Window. @@ -200,6 +212,14 @@ public class X_AD_UserDef_Win extends PO implements I_AD_UserDef_Win, I_Persiste return ii.intValue(); } + /** Get Record ID/ColumnName + @return ID/ColumnName pair + */ + public KeyNamePair getKeyNamePair() + { + return new KeyNamePair(get_ID(), String.valueOf(getAD_Window_ID())); + } + /** Set Description. @param Description Optional short description of the record @@ -322,12 +342,4 @@ public class X_AD_UserDef_Win extends PO implements I_AD_UserDef_Win, I_Persiste { return (String)get_Value(COLUMNNAME_Name); } - - /** Get Record ID/ColumnName - @return ID/ColumnName pair - */ - public KeyNamePair getKeyNamePair() - { - return new KeyNamePair(get_ID(), getName()); - } } \ No newline at end of file