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