001    /*
002     * Copyright 2011 The Kuali Foundation.
003     * 
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     * http://www.opensource.org/licenses/ecl2.php
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.kfs.module.ld;
017    
018    import org.kuali.kfs.sys.KFSConstants;
019    import org.kuali.kfs.sys.KFSPropertyConstants;
020    
021    /**
022     * Constants for labor business object property names.
023     */
024    public class LaborPropertyConstants {
025    
026        public enum AccountingPeriodProperties {
027            APRIL(KFSPropertyConstants.MONTH10_AMOUNT, KFSConstants.MONTH10), AUGUST(KFSPropertyConstants.MONTH2_AMOUNT, KFSConstants.MONTH2), DECEMBER(KFSPropertyConstants.MONTH6_AMOUNT, KFSConstants.MONTH6), FEBRUARY(KFSPropertyConstants.MONTH8_AMOUNT, KFSConstants.MONTH8), JANUARY(KFSPropertyConstants.MONTH7_AMOUNT, KFSConstants.MONTH7), JULY(KFSPropertyConstants.MONTH1_AMOUNT, KFSConstants.MONTH1), JUNE(KFSPropertyConstants.MONTH12_AMOUNT, KFSConstants.MONTH12), MARCH(KFSPropertyConstants.MONTH9_AMOUNT, KFSConstants.MONTH9), MAY(KFSPropertyConstants.MONTH11_AMOUNT, KFSConstants.MONTH11), NOVEMBER(KFSPropertyConstants.MONTH5_AMOUNT, KFSConstants.MONTH5), OCTOBER(KFSPropertyConstants.MONTH4_AMOUNT, KFSConstants.MONTH4), SEPTEMBER(KFSPropertyConstants.MONTH3_AMOUNT, KFSConstants.MONTH3), YEAR_END(KFSPropertyConstants.MONTH13_AMOUNT, KFSConstants.MONTH13);
028    
029            /**
030             * Spew out accounting period codes as a String array
031             * 
032             * @return String[]
033             */
034            public static String[] codeToArray() {
035                return new String[] { JULY.periodCode, AUGUST.periodCode, SEPTEMBER.periodCode, OCTOBER.periodCode, NOVEMBER.periodCode, DECEMBER.periodCode, JANUARY.periodCode, FEBRUARY.periodCode, MARCH.periodCode, APRIL.periodCode, MAY.periodCode, JUNE.periodCode, YEAR_END.periodCode };
036            }
037    
038            /**
039             * Spew out the property names in as a String array
040             * 
041             * @return String[]
042             */
043            public static String[] namesToArray() {
044                return new String[] { JULY.propertyName, AUGUST.propertyName, SEPTEMBER.propertyName, OCTOBER.propertyName, NOVEMBER.propertyName, DECEMBER.propertyName, JANUARY.propertyName, FEBRUARY.propertyName, MARCH.propertyName, APRIL.propertyName, MAY.propertyName, JUNE.propertyName, YEAR_END.propertyName };
045            }
046    
047            /**
048             * Spew out everything in an array
049             */
050            public static AccountingPeriodProperties[] toArray() {
051                return new AccountingPeriodProperties[] { JULY, AUGUST, SEPTEMBER, OCTOBER, NOVEMBER, DECEMBER, JANUARY, FEBRUARY, MARCH, APRIL, MAY, JUNE, YEAR_END };
052            }
053    
054            public String periodCode;
055    
056            public String propertyName;
057    
058            private AccountingPeriodProperties(String propertyName, String periodCode) {
059                this.propertyName = propertyName;
060                this.periodCode = periodCode;
061            }
062        }
063    
064        public static final String ANNUAL_ACTUAL_AMOUNT = "annualActualAmount";
065        public static final String EARN_CODE = "earnCode";
066        public static final String EFFECTIVE_DATE = "effectiveDate";
067        public static final String GRADE = "grade";
068        public static final String HRMS_COMPANY = "hrmsCompany";
069        public static final String JULY_1_BUDGET_AMOUNT = "july1BudgetAmount";
070        public static final String JULY_1_BUDGET_FTE_QUANTITY = "july1BudgetFteQuantity";
071        public static final String JULY_1_BUDGET_TIME_PERCENT = "july1BudgetTimePercent";
072        public static final String LABORLEDGER_ORIGINAL_ACCOUNT_NUMBER = "laborLedgerOriginalAccountNumber";
073        public static final String LABORLEDGER_ORIGINAL_CHART_OF_ACCOUNTS_CODE = "laborLedgerOriginalChartOfAccountsCode";
074        public static final String LABORLEDGER_ORIGINAL_FINANCIAL_OBJECT_CODE = "laborLedgerOriginalFinancialObjectCode";
075        public static final String LABORLEDGER_ORIGINAL_FINANCIAL_SUB_OBJECT_CODE = "laborLedgerOriginalFinancialSubObjectCode";
076        public static final String LABORLEDGER_ORIGINAL_SUB_ACCOUNT_NUMBER = "laborLedgerOriginalSubAccountNumber";
077        public static final String PAY_GROUP = "payGroup";
078        public static final String PAY_PERIOD_END_DATE = "payPeriodEndDate";
079        public static final String PAYROLL_END_DATE_FISCAL_PERIOD_CODE = "payrollEndDateFiscalPeriodCode";
080        public static final String PAYROLL_END_DATE_FISCAL_YEAR = "payrollEndDateFiscalYear";
081        public static final String RUN_IDENTIFIER = "runIdentifier";
082        public static final String SALARY_ADMINISTRATION_PLAN = "salaryAdministrationPlan";
083        public static final String SET_ID = "setid";
084        public static final String TRANSACTION_TOTAL_HOURS = "transactionTotalHours";
085        public static final String PAYROLL_TOTAL_HOURS = "payrollTotalHours";
086        public static final String POSITION_BENEFIT_TYPE_CODE = "positionBenefitTypeCode";
087        public static final String FINANCIAL_OBJECT_FRINGE_OR_SALARY_CODE = "financialObjectFringeOrSalaryCode";
088        public static final String POSITION_OBJECT_GROUP_CODE = "positionObjectGroupCode";
089        public static final String POSITION_OBJECT_GROUP = "positionObjectGroup";
090        public static final String OUTSTANDING_ENCUMBRANCE = "outstandingEncum";
091    }