001: /*
002: * Copyright 2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.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/ecl1.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.module.labor;
017:
018: import org.kuali.kfs.KFSConstants;
019: import org.kuali.kfs.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(
028: KFSPropertyConstants.MONTH2_AMOUNT, KFSConstants.MONTH2), DECEMBER(
029: KFSPropertyConstants.MONTH6_AMOUNT, KFSConstants.MONTH6), FEBRUARY(
030: KFSPropertyConstants.MONTH8_AMOUNT, KFSConstants.MONTH8), JANUARY(
031: KFSPropertyConstants.MONTH7_AMOUNT, KFSConstants.MONTH7), JULY(
032: KFSPropertyConstants.MONTH1_AMOUNT, KFSConstants.MONTH1), JUNE(
033: KFSPropertyConstants.MONTH12_AMOUNT,
034: KFSConstants.MONTH12), MARCH(
035: KFSPropertyConstants.MONTH9_AMOUNT, KFSConstants.MONTH9), MAY(
036: KFSPropertyConstants.MONTH11_AMOUNT,
037: KFSConstants.MONTH11), NOVEMBER(
038: KFSPropertyConstants.MONTH5_AMOUNT, KFSConstants.MONTH5), OCTOBER(
039: KFSPropertyConstants.MONTH4_AMOUNT, KFSConstants.MONTH4), SEPTEMBER(
040: KFSPropertyConstants.MONTH3_AMOUNT, KFSConstants.MONTH3), YEAR_END(
041: KFSPropertyConstants.MONTH13_AMOUNT,
042: KFSConstants.MONTH13);
043:
044: /**
045: * Spew out accounting period codes as a String array
046: *
047: * @return String[]
048: */
049: public static String[] codeToArray() {
050: return new String[] { JULY.periodCode, AUGUST.periodCode,
051: SEPTEMBER.periodCode, OCTOBER.periodCode,
052: NOVEMBER.periodCode, DECEMBER.periodCode,
053: JANUARY.periodCode, FEBRUARY.periodCode,
054: MARCH.periodCode, APRIL.periodCode, MAY.periodCode,
055: JUNE.periodCode, YEAR_END.periodCode };
056: }
057:
058: /**
059: * Spew out the property names in as a String array
060: *
061: * @return String[]
062: */
063: public static String[] namesToArray() {
064: return new String[] { JULY.propertyName,
065: AUGUST.propertyName, SEPTEMBER.propertyName,
066: OCTOBER.propertyName, NOVEMBER.propertyName,
067: DECEMBER.propertyName, JANUARY.propertyName,
068: FEBRUARY.propertyName, MARCH.propertyName,
069: APRIL.propertyName, MAY.propertyName,
070: JUNE.propertyName, YEAR_END.propertyName };
071: }
072:
073: /**
074: * Spew out everything in an array
075: */
076: public static AccountingPeriodProperties[] toArray() {
077: return new AccountingPeriodProperties[] { JULY, AUGUST,
078: SEPTEMBER, OCTOBER, NOVEMBER, DECEMBER, JANUARY,
079: FEBRUARY, MARCH, APRIL, MAY, JUNE, YEAR_END };
080: }
081:
082: public String periodCode;
083:
084: public String propertyName;
085:
086: private AccountingPeriodProperties(String propertyName,
087: String periodCode) {
088: this .propertyName = propertyName;
089: this .periodCode = periodCode;
090: }
091: }
092:
093: public static final String ANNUAL_ACTUAL_AMOUNT = "annualActualAmount";
094: public static final String EARN_CODE = "earnCode";
095: public static final String EFFECTIVE_DATE = "effectiveDate";
096: public static final String FINANCIAL_OBJECT_FRINGE_OR_SALARY_CODE = "financialObjectFringeOrSalaryCode";
097: public static final String GRADE = "grade";
098: public static final String HRMS_COMPANY = "hrmsCompany";
099: public static final String JULY_1_BUDGET_AMOUNT = "july1BudgetAmount";
100: public static final String JULY_1_BUDGET_FTE_QUANTITY = "july1BudgetFteQuantity";
101: public static final String JULY_1_BUDGET_TIME_PERCENT = "july1BudgetTimePercent";
102: public static final String LABOR_OBJECT = "laborObject";
103: public static final String LABORLEDGER_ORIGINAL_ACCOUNT_NUMBER = "laborLedgerOriginalAccountNumber";
104: public static final String LABORLEDGER_ORIGINAL_CHART_OF_ACCOUNTS_CODE = "laborLedgerOriginalChartOfAccountsCode";
105: public static final String LABORLEDGER_ORIGINAL_FINANCIAL_OBJECT_CODE = "laborLedgerOriginalFinancialObjectCode";
106: public static final String LABORLEDGER_ORIGINAL_FINANCIAL_SUB_OBJECT_CODE = "laborLedgerOriginalFinancialSubObjectCode";
107: public static final String LABORLEDGER_ORIGINAL_SUB_ACCOUNT_NUMBER = "laborLedgerOriginalSubAccountNumber";
108: public static final String PAY_GROUP = "payGroup";
109: public static final String PAY_PERIOD_END_DATE = "payPeriodEndDate";
110: public static final String PAYROLL_END_DATE_FISCAL_PERIOD_CODE = "payrollEndDateFiscalPeriodCode";
111: public static final String PAYROLL_END_DATE_FISCAL_YEAR = "payrollEndDateFiscalYear";
112: public static final String RUN_IDENTIFIER = "runIdentifier";
113: public static final String SALARY_ADMINISTRATION_PLAN = "salaryAdministrationPlan";
114: public static final String SET_ID = "setid";
115: public static final String TRANSACTION_TOTAL_HOURS = "transactionTotalHours";
116: public static final String PAYROLL_TOTAL_HOURS = "payrollTotalHours";
117: }
|