diff --git a/base/src/org/compiere/model/I_AD_Rule.java b/base/src/org/compiere/model/I_AD_Rule.java index 2b0477f694..6687e3cbcb 100644 --- a/base/src/org/compiere/model/I_AD_Rule.java +++ b/base/src/org/compiere/model/I_AD_Rule.java @@ -41,19 +41,6 @@ public interface I_AD_Rule /** Load Meta Data */ - /** Column name AccessLevel */ - public static final String COLUMNNAME_AccessLevel = "AccessLevel"; - - /** Set Data Access Level. - * Access Level required - */ - public void setAccessLevel (String AccessLevel); - - /** Get Data Access Level. - * Access Level required - */ - public String getAccessLevel(); - /** Column name AD_Client_ID */ public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID"; @@ -84,6 +71,19 @@ public interface I_AD_Rule /** Get Rule */ public int getAD_Rule_ID(); + /** Column name AccessLevel */ + public static final String COLUMNNAME_AccessLevel = "AccessLevel"; + + /** Set Data Access Level. + * Access Level required + */ + public void setAccessLevel (String AccessLevel); + + /** Get Data Access Level. + * Access Level required + */ + public String getAccessLevel(); + /** Column name Created */ public static final String COLUMNNAME_Created = "Created"; diff --git a/base/src/org/compiere/model/X_AD_Rule.java b/base/src/org/compiere/model/X_AD_Rule.java index 2c1f0a7409..503fd2f25e 100644 --- a/base/src/org/compiere/model/X_AD_Rule.java +++ b/base/src/org/compiere/model/X_AD_Rule.java @@ -30,7 +30,7 @@ public class X_AD_Rule extends PO implements I_AD_Rule, I_Persistent /** * */ - private static final long serialVersionUID = 20090915L; + private static final long serialVersionUID = 20091106L; /** Standard Constructor */ public X_AD_Rule (Properties ctx, int AD_Rule_ID, String trxName) @@ -76,6 +76,26 @@ public class X_AD_Rule extends PO implements I_AD_Rule, I_Persistent return sb.toString(); } + /** Set Rule. + @param AD_Rule_ID Rule */ + public void setAD_Rule_ID (int AD_Rule_ID) + { + if (AD_Rule_ID < 1) + set_ValueNoCheck (COLUMNNAME_AD_Rule_ID, null); + else + set_ValueNoCheck (COLUMNNAME_AD_Rule_ID, Integer.valueOf(AD_Rule_ID)); + } + + /** Get Rule. + @return Rule */ + public int getAD_Rule_ID () + { + Integer ii = (Integer)get_Value(COLUMNNAME_AD_Rule_ID); + if (ii == null) + return 0; + return ii.intValue(); + } + /** AccessLevel AD_Reference_ID=5 */ public static final int ACCESSLEVEL_AD_Reference_ID=5; /** Organization = 1 */ @@ -108,26 +128,6 @@ public class X_AD_Rule extends PO implements I_AD_Rule, I_Persistent return (String)get_Value(COLUMNNAME_AccessLevel); } - /** Set Rule. - @param AD_Rule_ID Rule */ - public void setAD_Rule_ID (int AD_Rule_ID) - { - if (AD_Rule_ID < 1) - set_ValueNoCheck (COLUMNNAME_AD_Rule_ID, null); - else - set_ValueNoCheck (COLUMNNAME_AD_Rule_ID, Integer.valueOf(AD_Rule_ID)); - } - - /** Get Rule. - @return Rule */ - public int getAD_Rule_ID () - { - Integer ii = (Integer)get_Value(COLUMNNAME_AD_Rule_ID); - if (ii == null) - return 0; - return ii.intValue(); - } - /** Set Description. @param Description Optional short description of the record @@ -177,6 +177,8 @@ public class X_AD_Rule extends PO implements I_AD_Rule, I_Persistent public static final String EVENTTYPE_ModelValidatorDocumentEvent = "D"; /** Model Validator Login Event = L */ public static final String EVENTTYPE_ModelValidatorLoginEvent = "L"; + /** Human Resource & Payroll = H */ + public static final String EVENTTYPE_HumanResourcePayroll = "H"; /** Set Event Type. @param EventType Type of Event diff --git a/migration/354a-trunk/oracle/602_FR2893636_Add_EventType.sql b/migration/354a-trunk/oracle/602_FR2893636_Add_EventType.sql new file mode 100644 index 0000000000..7c6760a1d0 --- /dev/null +++ b/migration/354a-trunk/oracle/602_FR2893636_Add_EventType.sql @@ -0,0 +1,10 @@ +-- Nov 6, 2009 5:47:56 PM CST +-- Human Resource & Payroll EventType +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53551,53236,TO_DATE('2009-11-06 17:47:56','YYYY-MM-DD HH24:MI:SS'),0,'EE02','Y','Human Resource & Payroll',TO_DATE('2009-11-06 17:47:56','YYYY-MM-DD HH24:MI:SS'),0,'H') +; + +-- Nov 6, 2009 5:47:56 PM CST +-- Human Resource & Payroll EventType +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53551 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID) +; + diff --git a/migration/354a-trunk/postgresql/602_FR2893636_Add_EventType.sql b/migration/354a-trunk/postgresql/602_FR2893636_Add_EventType.sql new file mode 100644 index 0000000000..0a6932ca89 --- /dev/null +++ b/migration/354a-trunk/postgresql/602_FR2893636_Add_EventType.sql @@ -0,0 +1,10 @@ +-- Nov 6, 2009 5:47:56 PM CST +-- Human Resource & Payroll EventType +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53551,53236,TO_TIMESTAMP('2009-11-06 17:47:56','YYYY-MM-DD HH24:MI:SS'),0,'EE02','Y','Human Resource & Payroll',TO_TIMESTAMP('2009-11-06 17:47:56','YYYY-MM-DD HH24:MI:SS'),0,'H') +; + +-- Nov 6, 2009 5:47:56 PM CST +-- Human Resource & Payroll EventType +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53551 AND NOT EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID) +; +