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.bo;
017:
018: import java.math.BigDecimal;
019: import java.sql.Date;
020:
021: import org.kuali.kfs.bo.Options;
022: import org.kuali.module.chart.bo.AccountingPeriod;
023: import org.kuali.module.financial.bo.VoucherSourceAccountingLine;
024:
025: /**
026: * Labor Journal Voucher Detail Business Object.
027: */
028: public class LaborJournalVoucherDetail extends
029: VoucherSourceAccountingLine {
030: private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger
031: .getLogger(LaborJournalVoucherDetail.class);
032: private String positionNumber;
033: private Date payPeriodEndDate;
034: private BigDecimal transactionTotalHours;
035: private Integer payrollEndDateFiscalYear;
036: private String payrollEndDateFiscalPeriodCode;
037: private String emplid;
038: private Integer employeeRecord;
039: private String earnCode;
040: private String payGroup;
041: private String salaryAdministrationPlan;
042: private String grade;
043: private String runIdentifier;
044: private String laborLedgerOriginalChartOfAccountsCode;
045: private String laborLedgerOriginalAccountNumber;
046: private String laborLedgerOriginalSubAccountNumber;
047: private String laborLedgerOriginalFinancialObjectCode;
048: private String laborLedgerOriginalFinancialSubObjectCode;
049: private String hrmsCompany;
050: private String setid;
051: private String encumbranceUpdateCode;
052: private Options payrollEndDateOptions;
053: private AccountingPeriod payrollEndDateFiscalPeriod;
054: private Options options;
055:
056: /**
057: * Default constructor.
058: */
059: public LaborJournalVoucherDetail() {
060: super ();
061: }
062:
063: /**
064: * Gets the earnCode.
065: *
066: * @return Returns the earnCode.
067: */
068: public String getEarnCode() {
069: return earnCode;
070: }
071:
072: /**
073: * Gets the emplid.
074: *
075: * @return Returns the emplid.
076: */
077: public String getEmplid() {
078: return emplid;
079: }
080:
081: /**
082: * Gets the employeeRecord.
083: *
084: * @return Returns the employeeRecord.
085: */
086: public Integer getEmployeeRecord() {
087: return employeeRecord;
088: }
089:
090: /**
091: * Gets the grade.
092: *
093: * @return Returns the grade.
094: */
095: public String getGrade() {
096: return grade;
097: }
098:
099: /**
100: * Gets the hrmsCompany.
101: *
102: * @return Returns the hrmsCompany.
103: */
104: public String getHrmsCompany() {
105: return hrmsCompany;
106: }
107:
108: /**
109: * Gets the laborLedgerOriginalAccountNumber.
110: *
111: * @return Returns the laborLedgerOriginalAccountNumber.
112: */
113: public String getLaborLedgerOriginalAccountNumber() {
114: return laborLedgerOriginalAccountNumber;
115: }
116:
117: /**
118: * Gets the laborLedgerOriginalChartOfAccountsCode.
119: *
120: * @return Returns the laborLedgerOriginalChartOfAccountsCode.
121: */
122: public String getLaborLedgerOriginalChartOfAccountsCode() {
123: return laborLedgerOriginalChartOfAccountsCode;
124: }
125:
126: /**
127: * Gets the laborLedgerOriginalFinancialObjectCode.
128: *
129: * @return Returns the laborLedgerOriginalFinancialObjectCode.
130: */
131: public String getLaborLedgerOriginalFinancialObjectCode() {
132: return laborLedgerOriginalFinancialObjectCode;
133: }
134:
135: /**
136: * Gets the laborLedgerOriginalFinancialSubObjectCode.
137: *
138: * @return Returns the laborLedgerOriginalFinancialSubObjectCode.
139: */
140: public String getLaborLedgerOriginalFinancialSubObjectCode() {
141: return laborLedgerOriginalFinancialSubObjectCode;
142: }
143:
144: /**
145: * Gets the laborLedgerOriginalSubAccountNumber.
146: *
147: * @return Returns the laborLedgerOriginalSubAccountNumber.
148: */
149: public String getLaborLedgerOriginalSubAccountNumber() {
150: return laborLedgerOriginalSubAccountNumber;
151: }
152:
153: /**
154: * Gets the options.
155: *
156: * @return Returns the options.
157: */
158: public Options getOptions() {
159: return options;
160: }
161:
162: /**
163: * Gets the payGroup.
164: *
165: * @return Returns the payGroup.
166: */
167: public String getPayGroup() {
168: return payGroup;
169: }
170:
171: /**
172: * Gets the payPeriodEndDate.
173: *
174: * @return Returns the payPeriodEndDate.
175: */
176: public Date getPayPeriodEndDate() {
177: return payPeriodEndDate;
178: }
179:
180: /**
181: * Gets the payrollEndDateFiscalPeriod.
182: *
183: * @return Returns the payrollEndDateFiscalPeriod.
184: */
185: public AccountingPeriod getPayrollEndDateFiscalPeriod() {
186: return payrollEndDateFiscalPeriod;
187: }
188:
189: /**
190: * Gets the payrollEndDateOptions.
191: *
192: * @return Returns the payrollEndDateOptions.
193: */
194: public Options getPayrollEndDateOptions() {
195: return payrollEndDateOptions;
196: }
197:
198: /**
199: * Gets the positionNumber.
200: *
201: * @return Returns the positionNumber.
202: */
203: public String getPositionNumber() {
204: return positionNumber;
205: }
206:
207: /**
208: * Gets the runIdentifier.
209: *
210: * @return Returns the runIdentifier.
211: */
212: public String getRunIdentifier() {
213: return runIdentifier;
214: }
215:
216: /**
217: * Gets the salaryAdministrationPlan.
218: *
219: * @return Returns the salaryAdministrationPlan.
220: */
221: public String getSalaryAdministrationPlan() {
222: return salaryAdministrationPlan;
223: }
224:
225: /**
226: * Gets the setid.
227: *
228: * @return Returns the setid.
229: */
230: public String getSetid() {
231: return setid;
232: }
233:
234: /**
235: * Gets the transactionTotalHours.
236: *
237: * @return Returns the transactionTotalHours.
238: */
239: public BigDecimal getTransactionTotalHours() {
240: return transactionTotalHours;
241: }
242:
243: /**
244: * Sets the earnCode.
245: *
246: * @param earnCode The earnCode to set.
247: */
248: public void setEarnCode(String earnCode) {
249: this .earnCode = earnCode;
250: }
251:
252: /**
253: * Sets the emplid.
254: *
255: * @param emplid The emplid to set.
256: */
257: public void setEmplid(String emplid) {
258: this .emplid = emplid;
259: }
260:
261: /**
262: * Sets the employeeRecord.
263: *
264: * @param employeeRecord The employeeRecord to set.
265: */
266: public void setEmployeeRecord(Integer employeeRecord) {
267: this .employeeRecord = employeeRecord;
268: }
269:
270: /**
271: * Sets the grade.
272: *
273: * @param grade The grade to set.
274: */
275: public void setGrade(String grade) {
276: this .grade = grade;
277: }
278:
279: /**
280: * Sets the hrmsCompany.
281: *
282: * @param hrmsCompany The hrmsCompany to set.
283: */
284: public void setHrmsCompany(String hrmsCompany) {
285: this .hrmsCompany = hrmsCompany;
286: }
287:
288: /**
289: * Sets the laborLedgerOriginalAccountNumber.
290: *
291: * @param laborLedgerOriginalAccountNumber The laborLedgerOriginalAccountNumber to set.
292: */
293: public void setLaborLedgerOriginalAccountNumber(
294: String laborLedgerOriginalAccountNumber) {
295: this .laborLedgerOriginalAccountNumber = laborLedgerOriginalAccountNumber;
296: }
297:
298: /**
299: * Sets the laborLedgerOriginalChartOfAccountsCode.
300: *
301: * @param laborLedgerOriginalChartOfAccountsCode The laborLedgerOriginalChartOfAccountsCode to set.
302: */
303: public void setLaborLedgerOriginalChartOfAccountsCode(
304: String laborLedgerOriginalChartOfAccountsCode) {
305: this .laborLedgerOriginalChartOfAccountsCode = laborLedgerOriginalChartOfAccountsCode;
306: }
307:
308: /**
309: * Sets the laborLedgerOriginalFinancialObjectCode.
310: *
311: * @param laborLedgerOriginalFinancialObjectCode The laborLedgerOriginalFinancialObjectCode to set.
312: */
313: public void setLaborLedgerOriginalFinancialObjectCode(
314: String laborLedgerOriginalFinancialObjectCode) {
315: this .laborLedgerOriginalFinancialObjectCode = laborLedgerOriginalFinancialObjectCode;
316: }
317:
318: /**
319: * Sets the laborLedgerOriginalFinancialSubObjectCode.
320: *
321: * @param laborLedgerOriginalFinancialSubObjectCode The laborLedgerOriginalFinancialSubObjectCode to set.
322: */
323: public void setLaborLedgerOriginalFinancialSubObjectCode(
324: String laborLedgerOriginalFinancialSubObjectCode) {
325: this .laborLedgerOriginalFinancialSubObjectCode = laborLedgerOriginalFinancialSubObjectCode;
326: }
327:
328: /**
329: * Sets the laborLedgerOriginalSubAccountNumber.
330: *
331: * @param laborLedgerOriginalSubAccountNumber The laborLedgerOriginalSubAccountNumber to set.
332: */
333: public void setLaborLedgerOriginalSubAccountNumber(
334: String laborLedgerOriginalSubAccountNumber) {
335: this .laborLedgerOriginalSubAccountNumber = laborLedgerOriginalSubAccountNumber;
336: }
337:
338: /**
339: * Sets the options.
340: *
341: * @param options The options to set.
342: */
343: public void setOptions(Options options) {
344: this .options = options;
345: }
346:
347: /**
348: * Sets the payGroup.
349: *
350: * @param payGroup The payGroup to set.
351: */
352: public void setPayGroup(String payGroup) {
353: this .payGroup = payGroup;
354: }
355:
356: /**
357: * Sets the payPeriodEndDate.
358: *
359: * @param payPeriodEndDate The payPeriodEndDate to set.
360: */
361: public void setPayPeriodEndDate(Date payPeriodEndDate) {
362: this .payPeriodEndDate = payPeriodEndDate;
363: }
364:
365: /**
366: * Sets the payrollEndDateFiscalPeriod.
367: *
368: * @param payrollEndDateFiscalPeriod The payrollEndDateFiscalPeriod to set.
369: */
370: public void setPayrollEndDateFiscalPeriod(
371: AccountingPeriod payrollEndDateFiscalPeriod) {
372: this .payrollEndDateFiscalPeriod = payrollEndDateFiscalPeriod;
373: }
374:
375: /**
376: * Sets the payrollEndDateOptions.
377: *
378: * @param payrollEndDateOptions The payrollEndDateOptions to set.
379: */
380: public void setPayrollEndDateOptions(Options payrollEndDateOptions) {
381: this .payrollEndDateOptions = payrollEndDateOptions;
382: }
383:
384: /**
385: * Sets the positionNumber.
386: *
387: * @param positionNumber The positionNumber to set.
388: */
389: public void setPositionNumber(String positionNumber) {
390: this .positionNumber = positionNumber;
391: }
392:
393: /**
394: * Sets the runIdentifier.
395: *
396: * @param runIdentifier The runIdentifier to set.
397: */
398: public void setRunIdentifier(String runIdentifier) {
399: this .runIdentifier = runIdentifier;
400: }
401:
402: /**
403: * Sets the salaryAdministrationPlan.
404: *
405: * @param salaryAdministrationPlan The salaryAdministrationPlan to set.
406: */
407: public void setSalaryAdministrationPlan(
408: String salaryAdministrationPlan) {
409: this .salaryAdministrationPlan = salaryAdministrationPlan;
410: }
411:
412: /**
413: * Sets the setid.
414: *
415: * @param setid The setid to set.
416: */
417: public void setSetid(String setid) {
418: this .setid = setid;
419: }
420:
421: /**
422: * Sets the transactionTotalHours.
423: *
424: * @param transactionTotalHours The transactionTotalHours to set.
425: */
426: public void setTransactionTotalHours(
427: BigDecimal transactionTotalHours) {
428: this .transactionTotalHours = transactionTotalHours;
429: }
430:
431: /**
432: * Gets the payrollEndDateFiscalPeriodCode.
433: *
434: * @return Returns the payrollEndDateFiscalPeriodCode.
435: */
436: public String getPayrollEndDateFiscalPeriodCode() {
437: return payrollEndDateFiscalPeriodCode;
438: }
439:
440: /**
441: * Sets the payrollEndDateFiscalPeriodCode.
442: *
443: * @param payrollEndDateFiscalPeriodCode The payrollEndDateFiscalPeriodCode to set.
444: */
445: public void setPayrollEndDateFiscalPeriodCode(
446: String payrollEndDateFiscalPeriodCode) {
447: try {
448: Integer i = new Integer(payrollEndDateFiscalPeriodCode);
449: if (i < 10 && payrollEndDateFiscalPeriodCode.length() == 1) {
450: payrollEndDateFiscalPeriodCode = "0"
451: + payrollEndDateFiscalPeriodCode;
452: }
453: } catch (NumberFormatException e) {
454: }
455: this .payrollEndDateFiscalPeriodCode = payrollEndDateFiscalPeriodCode;
456: }
457:
458: /**
459: * Gets the payrollEndDateFiscalYear.
460: *
461: * @return Returns the payrollEndDateFiscalYear.
462: */
463: public Integer getPayrollEndDateFiscalYear() {
464: return payrollEndDateFiscalYear;
465: }
466:
467: /**
468: * Sets the payrollEndDateFiscalYear.
469: *
470: * @param payrollEndDateFiscalYear The payrollEndDateFiscalYear to set.
471: */
472: public void setPayrollEndDateFiscalYear(
473: Integer payrollEndDateFiscalYear) {
474: this .payrollEndDateFiscalYear = payrollEndDateFiscalYear;
475: }
476:
477: /**
478: * Gets the encumbranceUpdateCode
479: *
480: * @return Returns the encumbranceUpdateCode
481: * @see org.kuali.kfs.bo.AccountingLine#getEncumbranceUpdateCode()
482: */
483: public String getEncumbranceUpdateCode() {
484: return encumbranceUpdateCode;
485: }
486:
487: /**
488: * Sets the encumbranceUpdateCode.
489: *
490: * @param encumbranceUpdateCode The encumbranceUpdateCode to set.
491: * @see org.kuali.kfs.bo.AccountingLine#setEncumbranceUpdateCode(java.lang.String)
492: */
493: public void setEncumbranceUpdateCode(String encumbranceUpdateCode) {
494: this.encumbranceUpdateCode = encumbranceUpdateCode;
495: }
496: }
|