FR [2708929] SeqNo in HR_Concept table

https://sourceforge.net/tracker/?func=detail&aid=2708929&group_id=176962&atid=934929
This commit is contained in:
redchris 2009-03-24 10:16:23 +00:00
parent 1cf477e8b5
commit 1fb98f43b8
4 changed files with 359 additions and 19 deletions

View File

@ -1,17 +1,14 @@
/****************************************************************************** /******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution * * Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
* This program is free software; * This program is free software, you can redistribute it and/or modify it *
you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published * * 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 * * by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. * * See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along * * You should have received a copy of the GNU General Public License along *
* with this program; * with this program, if not, write to the Free Software Foundation, Inc., *
if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us * * 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 * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
@ -45,6 +42,14 @@ public interface I_HR_Concept
/** Load Meta Data */ /** Load Meta Data */
/** Column name AD_Client_ID */
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
/** Get Client.
* Client/Tenant for this installation.
*/
public int getAD_Client_ID();
/** Column name AD_Org_ID */ /** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
@ -58,6 +63,21 @@ public interface I_HR_Concept
*/ */
public int getAD_Org_ID(); public int getAD_Org_ID();
/** Column name AD_Reference_ID */
public static final String COLUMNNAME_AD_Reference_ID = "AD_Reference_ID";
/** Set Reference.
* System Reference and Validation
*/
public void setAD_Reference_ID (int AD_Reference_ID);
/** Get Reference.
* System Reference and Validation
*/
public int getAD_Reference_ID();
public I_AD_Reference getAD_Reference() throws RuntimeException;
/** Column name AccountSign */ /** Column name AccountSign */
public static final String COLUMNNAME_AccountSign = "AccountSign"; public static final String COLUMNNAME_AccountSign = "AccountSign";
@ -80,6 +100,22 @@ public interface I_HR_Concept
/** Get Column Type */ /** Get Column Type */
public String getColumnType(); public String getColumnType();
/** Column name Created */
public static final String COLUMNNAME_Created = "Created";
/** Get Created.
* Date this record was created
*/
public Timestamp getCreated();
/** Column name CreatedBy */
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
/** Get Created By.
* User who created this records
*/
public int getCreatedBy();
/** Column name Description */ /** Column name Description */
public static final String COLUMNNAME_Description = "Description"; public static final String COLUMNNAME_Description = "Description";
@ -146,6 +182,19 @@ public interface I_HR_Concept
public org.eevolution.model.I_HR_Payroll getHR_Payroll() throws RuntimeException; public org.eevolution.model.I_HR_Payroll getHR_Payroll() throws RuntimeException;
/** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive";
/** Set Active.
* The record is active in the system
*/
public void setIsActive (boolean IsActive);
/** Get Active.
* The record is active in the system
*/
public boolean isActive();
/** Column name IsDefault */ /** Column name IsDefault */
public static final String COLUMNNAME_IsDefault = "IsDefault"; public static final String COLUMNNAME_IsDefault = "IsDefault";
@ -250,6 +299,21 @@ public interface I_HR_Concept
*/ */
public String getName(); public String getName();
/** Column name SeqNo */
public static final String COLUMNNAME_SeqNo = "SeqNo";
/** Set Sequence.
* Method of ordering records;
lowest number comes first
*/
public void setSeqNo (int SeqNo);
/** Get Sequence.
* Method of ordering records;
lowest number comes first
*/
public int getSeqNo();
/** Column name Type */ /** Column name Type */
public static final String COLUMNNAME_Type = "Type"; public static final String COLUMNNAME_Type = "Type";
@ -263,6 +327,22 @@ public interface I_HR_Concept
*/ */
public String getType(); public String getType();
/** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated";
/** Get Updated.
* Date this record was updated
*/
public Timestamp getUpdated();
/** Column name UpdatedBy */
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
/** Get Updated By.
* User who updated this records
*/
public int getUpdatedBy();
/** Column name ValidFrom */ /** Column name ValidFrom */
public static final String COLUMNNAME_ValidFrom = "ValidFrom"; public static final String COLUMNNAME_ValidFrom = "ValidFrom";

View File

@ -1,14 +1,14 @@
/****************************************************************************** /******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution * * Product: Adempiere ERP & CRM Smart Business Solution *
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
* This program is free software; you can redistribute it and/or modify it * * 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 * * 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 * * 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 * * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. * * See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along * * 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., * * with this program, if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us * * 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 * * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
@ -34,7 +34,7 @@ public class X_HR_Concept extends PO implements I_HR_Concept, I_Persistent
/** /**
* *
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 20081221L;
/** Standard Constructor */ /** Standard Constructor */
public X_HR_Concept (Properties ctx, int HR_Concept_ID, String trxName) public X_HR_Concept (Properties ctx, int HR_Concept_ID, String trxName)
@ -77,6 +77,45 @@ public class X_HR_Concept extends PO implements I_HR_Concept, I_Persistent
return sb.toString(); return sb.toString();
} }
public I_AD_Reference getAD_Reference() throws RuntimeException
{
Class<?> clazz = MTable.getClass(I_AD_Reference.Table_Name);
I_AD_Reference result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (I_AD_Reference)constructor.newInstance(new Object[] {getCtx(), new Integer(getAD_Reference_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw new RuntimeException( e );
}
return result;
}
/** 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();
}
/** AccountSign AD_Reference_ID=118 */ /** AccountSign AD_Reference_ID=118 */
public static final int ACCOUNTSIGN_AD_Reference_ID=118; public static final int ACCOUNTSIGN_AD_Reference_ID=118;
/** Natural = N */ /** Natural = N */
@ -92,9 +131,6 @@ public class X_HR_Concept extends PO implements I_HR_Concept, I_Persistent
public void setAccountSign (String AccountSign) public void setAccountSign (String AccountSign)
{ {
if (AccountSign == null || AccountSign.equals("N") || AccountSign.equals("D") || AccountSign.equals("C"));
else throw new IllegalArgumentException ("AccountSign Invalid value - " + AccountSign + " - Reference_ID=118 - N - D - C");
set_Value (COLUMNNAME_AccountSign, AccountSign); set_Value (COLUMNNAME_AccountSign, AccountSign);
} }
@ -121,9 +157,6 @@ public class X_HR_Concept extends PO implements I_HR_Concept, I_Persistent
public void setColumnType (String ColumnType) public void setColumnType (String ColumnType)
{ {
if (ColumnType == null) throw new IllegalArgumentException ("ColumnType is mandatory"); if (ColumnType == null) throw new IllegalArgumentException ("ColumnType is mandatory");
if (ColumnType.equals("A") || ColumnType.equals("D") || ColumnType.equals("Q") || ColumnType.equals("T"));
else throw new IllegalArgumentException ("ColumnType Invalid value - " + ColumnType + " - Reference_ID=53243 - A - D - Q - T");
set_Value (COLUMNNAME_ColumnType, ColumnType); set_Value (COLUMNNAME_ColumnType, ColumnType);
} }
@ -501,6 +534,26 @@ public class X_HR_Concept extends PO implements I_HR_Concept, I_Persistent
return (String)get_Value(COLUMNNAME_Name); 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();
}
/** Type AD_Reference_ID=53245 */ /** Type AD_Reference_ID=53245 */
public static final int TYPE_AD_Reference_ID=53245; public static final int TYPE_AD_Reference_ID=53245;
/** Concept = C */ /** Concept = C */
@ -518,9 +571,6 @@ public class X_HR_Concept extends PO implements I_HR_Concept, I_Persistent
public void setType (String Type) public void setType (String Type)
{ {
if (Type == null) throw new IllegalArgumentException ("Type is mandatory"); if (Type == null) throw new IllegalArgumentException ("Type is mandatory");
if (Type.equals("C") || Type.equals("E") || Type.equals("I") || Type.equals("R"));
else throw new IllegalArgumentException ("Type Invalid value - " + Type + " - Reference_ID=53245 - C - E - I - R");
set_Value (COLUMNNAME_Type, Type); set_Value (COLUMNNAME_Type, Type);
} }

View File

@ -0,0 +1,105 @@
-- Mar 23, 2009 4:24:56 PM EET
-- HR - SeqNo in HR_Concept
INSERT INTO AD_Column (Help,Created,CreatedBy,Updated,Version,IsActive,AD_Reference_ID,IsMandatory,IsIdentifier,SeqNo,IsAutocomplete,ColumnName,AD_Column_ID,IsParent,AD_Table_ID,FieldLength,Description,IsKey,IsTranslated,AD_Client_ID,AD_Org_ID,AD_Element_ID,IsSelectionColumn,IsUpdateable,IsSyncDatabase,Name,EntityType,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,IsAllowLogging) VALUES ('The Sequence indicates the order of records',TO_DATE('2009-03-23 16:24:55','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2009-03-23 16:24:55','YYYY-MM-DD HH24:MI:SS'),0,'Y',11,'N','N',0,'N','SeqNo',57007,'N',53090,22,'Method of ordering records; lowest number comes first','N','N',0,0,566,'N','Y','N','Sequence','EE02',0,'N','N','Y')
;
-- Mar 23, 2009 4:24:56 PM EET
-- HR - SeqNo in HR_Concept
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=57007 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Mar 23, 2009 4:24:58 PM EET
-- HR - SeqNo in HR_Concept
INSERT INTO AD_Field (UpdatedBy,IsSameLine,IsHeading,CreatedBy,Updated,Description,DisplayLength,Help,IsFieldOnly,AD_Field_ID,AD_Tab_ID,AD_Column_ID,IsActive,Created,IsDisplayed,AD_Client_ID,AD_Org_ID,IsEncrypted,Name,IsReadOnly,IsCentrallyMaintained,EntityType) VALUES (0,'N','N',0,TO_DATE('2009-03-23 16:24:57','YYYY-MM-DD HH24:MI:SS'),'Method of ordering records; lowest number comes first',22,'The Sequence indicates the order of records','N',56826,53111,57007,'Y',TO_DATE('2009-03-23 16:24:57','YYYY-MM-DD HH24:MI:SS'),'N',0,0,'N','Sequence','N','Y','EE02')
;
-- Mar 23, 2009 4:24:58 PM EET
-- HR - SeqNo in HR_Concept
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56826 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Mar 23, 2009 4:25:01 PM EET
-- HR - SeqNo in HR_Concept
ALTER TABLE HR_Concept ADD SeqNo NUMBER(10) DEFAULT NULL
;
-- Mar 23, 2009 4:26:29 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=56826
;
-- Mar 23, 2009 4:26:29 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=54996
;
-- Mar 23, 2009 4:26:29 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=54997
;
-- Mar 23, 2009 4:26:29 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=54998
;
-- Mar 23, 2009 4:26:29 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=54999
;
-- Mar 23, 2009 4:26:29 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=55000
;
-- Mar 23, 2009 4:29:03 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=56826
;
-- Mar 23, 2009 4:29:03 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54992
;
-- Mar 23, 2009 4:29:03 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54993
;
-- Mar 23, 2009 4:29:03 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54994
;
-- Mar 23, 2009 4:29:03 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=56747
;
-- Mar 23, 2009 4:29:03 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=54995
;
-- Mar 23, 2009 4:29:13 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2009-03-23 16:29:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56826
;
-- Mar 23, 2009 4:29:21 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET DisplayLength=10,Updated=TO_DATE('2009-03-23 16:29:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56826
;
-- Mar 23, 2009 4:39:12 PM EET
-- HR - SeqNo in HR_Concept
INSERT INTO AD_Tab (AD_Table_ID,Created,CreatedBy,Updated,HasTree,AD_Window_ID,SeqNo,IsSingleRow,AD_Tab_ID,AD_Client_ID,AD_Org_ID,IsActive,IsReadOnly,IsInfoTab,IsTranslationTab,Name,IsSortTab,UpdatedBy,EntityType,ImportFields,Processing,AD_ColumnSortOrder_ID,TabLevel,IsInsertRecord,IsAdvancedTab) VALUES (53090,TO_DATE('2009-03-23 16:39:11','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2009-03-23 16:39:11','YYYY-MM-DD HH24:MI:SS'),'N',53036,30,'N',53200,0,0,'Y','N','N','N','Payroll Concept','Y',0,'EE02','N','N',57007,0,'Y','N')
;
-- Mar 23, 2009 4:39:12 PM EET
-- HR - SeqNo in HR_Concept
INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, Description,Help,CommitWarning,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Tab_ID, t.Description,t.Help,t.CommitWarning,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=53200 AND EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Tab_ID!=t.AD_Tab_ID)
;

View File

@ -0,0 +1,105 @@
-- Mar 23, 2009 4:24:56 PM EET
-- HR - SeqNo in HR_Concept
INSERT INTO AD_Column (Help,Created,CreatedBy,Updated,Version,IsActive,AD_Reference_ID,IsMandatory,IsIdentifier,SeqNo,IsAutocomplete,ColumnName,AD_Column_ID,IsParent,AD_Table_ID,FieldLength,Description,IsKey,IsTranslated,AD_Client_ID,AD_Org_ID,AD_Element_ID,IsSelectionColumn,IsUpdateable,IsSyncDatabase,Name,EntityType,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,IsAllowLogging) VALUES ('The Sequence indicates the order of records',TO_TIMESTAMP('2009-03-23 16:24:55','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2009-03-23 16:24:55','YYYY-MM-DD HH24:MI:SS'),0,'Y',11,'N','N',0,'N','SeqNo',57007,'N',53090,22,'Method of ordering records; lowest number comes first','N','N',0,0,566,'N','Y','N','Sequence','EE02',0,'N','N','Y')
;
-- Mar 23, 2009 4:24:56 PM EET
-- HR - SeqNo in HR_Concept
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=57007 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Mar 23, 2009 4:24:58 PM EET
-- HR - SeqNo in HR_Concept
INSERT INTO AD_Field (UpdatedBy,IsSameLine,IsHeading,CreatedBy,Updated,Description,DisplayLength,Help,IsFieldOnly,AD_Field_ID,AD_Tab_ID,AD_Column_ID,IsActive,Created,IsDisplayed,AD_Client_ID,AD_Org_ID,IsEncrypted,Name,IsReadOnly,IsCentrallyMaintained,EntityType) VALUES (0,'N','N',0,TO_TIMESTAMP('2009-03-23 16:24:57','YYYY-MM-DD HH24:MI:SS'),'Method of ordering records; lowest number comes first',22,'The Sequence indicates the order of records','N',56826,53111,57007,'Y',TO_TIMESTAMP('2009-03-23 16:24:57','YYYY-MM-DD HH24:MI:SS'),'N',0,0,'N','Sequence','N','Y','EE02')
;
-- Mar 23, 2009 4:24:58 PM EET
-- HR - SeqNo in HR_Concept
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56826 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Mar 23, 2009 4:25:01 PM EET
-- HR - SeqNo in HR_Concept
ALTER TABLE HR_Concept ADD COLUMN SeqNo NUMERIC(10) DEFAULT NULL
;
-- Mar 23, 2009 4:26:29 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=56826
;
-- Mar 23, 2009 4:26:29 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=54996
;
-- Mar 23, 2009 4:26:29 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=54997
;
-- Mar 23, 2009 4:26:29 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=54998
;
-- Mar 23, 2009 4:26:29 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=54999
;
-- Mar 23, 2009 4:26:29 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=55000
;
-- Mar 23, 2009 4:29:03 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=56826
;
-- Mar 23, 2009 4:29:03 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54992
;
-- Mar 23, 2009 4:29:03 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54993
;
-- Mar 23, 2009 4:29:03 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54994
;
-- Mar 23, 2009 4:29:03 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=56747
;
-- Mar 23, 2009 4:29:03 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=54995
;
-- Mar 23, 2009 4:29:13 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2009-03-23 16:29:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56826
;
-- Mar 23, 2009 4:29:21 PM EET
-- HR - SeqNo in HR_Concept
UPDATE AD_Field SET DisplayLength=10,Updated=TO_TIMESTAMP('2009-03-23 16:29:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56826
;
-- Mar 23, 2009 4:39:12 PM EET
-- HR - SeqNo in HR_Concept
INSERT INTO AD_Tab (AD_Table_ID,Created,CreatedBy,Updated,HasTree,AD_Window_ID,SeqNo,IsSingleRow,AD_Tab_ID,AD_Client_ID,AD_Org_ID,IsActive,IsReadOnly,IsInfoTab,IsTranslationTab,Name,IsSortTab,UpdatedBy,EntityType,ImportFields,Processing,AD_ColumnSortOrder_ID,TabLevel,IsInsertRecord,IsAdvancedTab) VALUES (53090,TO_TIMESTAMP('2009-03-23 16:39:11','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2009-03-23 16:39:11','YYYY-MM-DD HH24:MI:SS'),'N',53036,30,'N',53200,0,0,'Y','N','N','N','Payroll Concept','Y',0,'EE02','N','N',57007,0,'Y','N')
;
-- Mar 23, 2009 4:39:12 PM EET
-- HR - SeqNo in HR_Concept
INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, Description,Help,CommitWarning,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Tab_ID, t.Description,t.Help,t.CommitWarning,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=53200 AND EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Tab_ID!=t.AD_Tab_ID)
;