01: /**
02: * $Id: AbsenceRecord.java,v 1.1 2005/06/20 10:25:21 nk137934 Exp $
03: * Copyright 2005 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.sapportlet.time;
14:
15: import com.sun.portal.sapportlet.stubs.time.*;
16: import java.io.Serializable;
17:
18: /**
19: * This class is representation of the Sales Order business
20: * object in the SAP system
21: *
22: * @author nk137934
23: */
24:
25: public class AbsenceRecord implements Serializable {
26:
27: private String absenceType = null;
28: private String absenceName = null;
29: private String absenceDays = null;
30: private String absenceHours = null;
31: private String endDate = null;
32: private String beginDate = null;
33:
34: public AbsenceRecord(BAPIP2001L data) {
35: setAbsenceType(data.getABSENCETYPE());
36: setAbsenceName(data.getNAMEOFABSENCETYPE());
37: setAbsenceDays("" + data.getABSENCEDAYS());
38: setAbsenceHours("" + data.getABSENCEHOURS());
39: setEndDate(data.getVALIDEND());
40: setBeginDate(data.getVALIDBEGIN());
41: }
42:
43: public String getAbsenceType() {
44: return absenceType;
45: }
46:
47: public void setAbsenceType(String absenceType) {
48: this .absenceType = absenceType;
49: }
50:
51: public String getAbsenceName() {
52: return absenceName;
53: }
54:
55: public void setAbsenceName(String absenceName) {
56: this .absenceName = absenceName;
57: }
58:
59: public String getAbsenceDays() {
60: return absenceDays;
61: }
62:
63: public void setAbsenceDays(String absenceDays) {
64: this .absenceDays = absenceDays;
65: }
66:
67: public String getAbsenceHours() {
68: return absenceHours;
69: }
70:
71: public void setAbsenceHours(String absenceHours) {
72: this .absenceHours = absenceHours;
73: }
74:
75: public String getEndDate() {
76: return endDate;
77: }
78:
79: public void setEndDate(String endDate) {
80: this .endDate = endDate;
81: }
82:
83: public String getBeginDate() {
84: return beginDate;
85: }
86:
87: public void setBeginDate(String beginDate) {
88: this.beginDate = beginDate;
89: }
90:
91: }
|