1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.hr.time.overtime.weekly.rule;
17
18 import java.math.BigDecimal;
19 import java.sql.Date;
20
21 import org.kuali.hr.core.KPMEConstants;
22 import org.kuali.hr.time.earncode.EarnCode;
23 import org.kuali.hr.time.earngroup.EarnGroup;
24 import org.kuali.hr.time.rule.TkRule;
25
26 public class WeeklyOvertimeRule extends TkRule {
27 public static final String CACHE_NAME = KPMEConstants.APPLICATION_NAMESPACE_CODE + "/" + "WeeklyOvertimeRule";
28
29
30
31 private static final long serialVersionUID = 1L;
32 private String tkWeeklyOvertimeRuleId;
33 private String maxHoursEarnGroup;
34 private String convertFromEarnGroup;
35 private String convertToEarnCode;
36 private BigDecimal step;
37 private BigDecimal maxHours;
38 private String userPrincipalId;
39 private Boolean ovtEarnCode;
40
41 private Long tkWeeklyOvertimeRuleGroupId = 1L;
42
43 private EarnGroup maxHoursEarnGroupObj;
44 private EarnGroup convertFromEarnGroupObj;
45 private EarnCode convertToEarnCodeObj;
46
47
48 public String getTkWeeklyOvertimeRuleId() {
49 return tkWeeklyOvertimeRuleId;
50 }
51
52 public void setTkWeeklyOvertimeRuleId(String tkWeeklyOvertimeRuleId) {
53 this.tkWeeklyOvertimeRuleId = tkWeeklyOvertimeRuleId;
54 }
55
56 public String getMaxHoursEarnGroup() {
57 return maxHoursEarnGroup;
58 }
59
60 public void setMaxHoursEarnGroup(String maxHoursEarnGroup) {
61 this.maxHoursEarnGroup = maxHoursEarnGroup;
62 }
63
64 public String getConvertFromEarnGroup() {
65 return convertFromEarnGroup;
66 }
67
68 public void setConvertFromEarnGroup(String convertFromEarnGroup) {
69 this.convertFromEarnGroup = convertFromEarnGroup;
70 }
71
72
73
74 public String getConvertToEarnCode() {
75 return convertToEarnCode;
76 }
77
78 public void setConvertToEarnCode(String convertToEarnCode) {
79 this.convertToEarnCode = convertToEarnCode;
80 }
81
82 public Date getEffectiveDate() {
83 return effectiveDate;
84 }
85
86 public void setEffectiveDate(Date effectiveDate) {
87 this.effectiveDate = effectiveDate;
88 }
89
90 public BigDecimal getStep() {
91 return step;
92 }
93
94 public void setStep(BigDecimal step) {
95 this.step = step;
96 }
97
98 public BigDecimal getMaxHours() {
99 return maxHours;
100 }
101
102 public void setMaxHours(BigDecimal maxHours) {
103 this.maxHours = maxHours;
104 }
105
106 public String getUserPrincipalId() {
107 return userPrincipalId;
108 }
109
110 public void setUserPrincipalId(String userPrincipalId) {
111 this.userPrincipalId = userPrincipalId;
112 }
113
114
115 public Boolean getOvtEarnCode() {
116 return ovtEarnCode;
117 }
118
119 public void setOvtEarnCode(Boolean ovtEarnCode) {
120 this.ovtEarnCode = ovtEarnCode;
121 }
122
123 public EarnGroup getMaxHoursEarnGroupObj() {
124 return maxHoursEarnGroupObj;
125 }
126
127 public void setMaxHoursEarnGroupObj(EarnGroup maxHoursEarnGroupObj) {
128 this.maxHoursEarnGroupObj = maxHoursEarnGroupObj;
129 }
130
131 public EarnGroup getConvertFromEarnGroupObj() {
132 return convertFromEarnGroupObj;
133 }
134
135 public void setConvertFromEarnGroupObj(EarnGroup convertFromEarnGroupObj) {
136 this.convertFromEarnGroupObj = convertFromEarnGroupObj;
137 }
138
139 public EarnCode getConvertToEarnCodeObj() {
140 return convertToEarnCodeObj;
141 }
142
143 public void setConvertToEarnCodeObj(EarnCode convertToEarnCodeObj) {
144 this.convertToEarnCodeObj = convertToEarnCodeObj;
145 }
146
147 public Long getTkWeeklyOvertimeRuleGroupId() {
148 return tkWeeklyOvertimeRuleGroupId;
149 }
150
151 public void setTkWeeklyOvertimeRuleGroupId(Long tkWeeklyOvertimeRuleGroupId) {
152 this.tkWeeklyOvertimeRuleGroupId = tkWeeklyOvertimeRuleGroupId;
153 }
154
155 @Override
156 public String getUniqueKey() {
157 return convertFromEarnGroup + "_" + maxHoursEarnGroup;
158 }
159
160 @Override
161 public String getId() {
162 return getTkWeeklyOvertimeRuleId();
163 }
164
165 @Override
166 public void setId(String id) {
167 setTkWeeklyOvertimeRuleId(id);
168 }
169 }