001 /** 002 * Copyright 2004-2012 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.hr.time.assignment; 017 018 import java.math.BigDecimal; 019 020 import org.kuali.hr.time.HrBusinessObject; 021 import org.kuali.hr.time.earncode.EarnCode; 022 import org.kuali.kfs.coa.businessobject.Account; 023 import org.kuali.kfs.coa.businessobject.ObjectCode; 024 import org.kuali.kfs.coa.businessobject.ProjectCode; 025 import org.kuali.kfs.coa.businessobject.SubAccount; 026 import org.kuali.kfs.coa.businessobject.SubObjectCode; 027 028 public class AssignmentAccount extends HrBusinessObject { 029 030 /** 031 * 032 */ 033 private static final long serialVersionUID = 1L; 034 private String tkAssignAcctId; 035 private String finCoaCd; 036 private String accountNbr; 037 private String subAcctNbr; 038 private String finObjectCd; 039 private String finSubObjCd; 040 private String projectCd; 041 private String orgRefId; 042 private BigDecimal percent; 043 private String earnCode; 044 private String tkAssignmentId; 045 private Assignment assignmentObj; 046 047 private Account accountObj; 048 private SubAccount subAccountObj; 049 private ObjectCode objectCodeObj; 050 private SubObjectCode subObjectCodeObj; 051 private ProjectCode projectCodeObj; 052 private EarnCode earnCodeObj; 053 054 public Assignment getAssignmentObj() { 055 return assignmentObj; 056 } 057 058 059 060 public void setAssignmentObj(Assignment assignmentObj) { 061 this.assignmentObj = assignmentObj; 062 } 063 064 065 public String getFinCoaCd() { 066 return finCoaCd; 067 } 068 069 070 071 public void setFinCoaCd(String finCoaCd) { 072 this.finCoaCd = finCoaCd; 073 } 074 075 076 077 public String getAccountNbr() { 078 return accountNbr; 079 } 080 081 082 083 public void setAccountNbr(String accountNbr) { 084 this.accountNbr = accountNbr; 085 } 086 087 088 089 public String getSubAcctNbr() { 090 return subAcctNbr; 091 } 092 093 094 095 public void setSubAcctNbr(String subAcctNbr) { 096 this.subAcctNbr = subAcctNbr; 097 } 098 099 100 101 public String getFinObjectCd() { 102 return finObjectCd; 103 } 104 105 106 107 public void setFinObjectCd(String finObjectCd) { 108 this.finObjectCd = finObjectCd; 109 } 110 111 112 113 public String getFinSubObjCd() { 114 return finSubObjCd; 115 } 116 117 118 119 public void setFinSubObjCd(String finSubObjCd) { 120 this.finSubObjCd = finSubObjCd; 121 } 122 123 124 125 public String getProjectCd() { 126 return projectCd; 127 } 128 129 130 131 public void setProjectCd(String projectCd) { 132 this.projectCd = projectCd; 133 } 134 135 136 137 public String getOrgRefId() { 138 return orgRefId; 139 } 140 141 142 143 public void setOrgRefId(String orgRefId) { 144 this.orgRefId = orgRefId; 145 } 146 147 148 149 public BigDecimal getPercent() { 150 return percent; 151 } 152 153 154 155 public void setPercent(BigDecimal percent) { 156 this.percent = percent; 157 } 158 159 160 161 public boolean isActive() { 162 return active; 163 } 164 165 166 167 public void setActive(boolean active) { 168 this.active = active; 169 } 170 171 172 173 public String getTkAssignAcctId() { 174 return tkAssignAcctId; 175 } 176 177 178 179 public void setTkAssignAcctId(String tkAssignAcctId) { 180 this.tkAssignAcctId = tkAssignAcctId; 181 } 182 183 184 185 public String getTkAssignmentId() { 186 return tkAssignmentId; 187 } 188 189 190 191 public void setTkAssignmentId(String tkAssignmentId) { 192 this.tkAssignmentId = tkAssignmentId; 193 } 194 195 196 197 public String getEarnCode() { 198 return earnCode; 199 } 200 201 202 203 public void setEarnCode(String earnCode) { 204 this.earnCode = earnCode; 205 } 206 207 208 209 public Account getAccountObj() { 210 return accountObj; 211 } 212 213 214 215 public void setAccountObj(Account accountObj) { 216 this.accountObj = accountObj; 217 } 218 219 220 221 public SubAccount getSubAccountObj() { 222 return subAccountObj; 223 } 224 225 226 227 public void setSubAccountObj(SubAccount subAccountObj) { 228 this.subAccountObj = subAccountObj; 229 } 230 231 232 233 public ObjectCode getObjectCodeObj() { 234 return objectCodeObj; 235 } 236 237 238 239 public void setObjectCodeObj(ObjectCode objectCodeObj) { 240 this.objectCodeObj = objectCodeObj; 241 } 242 243 244 245 public SubObjectCode getSubObjectCodeObj() { 246 return subObjectCodeObj; 247 } 248 249 250 251 public void setSubObjectCodeObj(SubObjectCode subObjectCodeObj) { 252 this.subObjectCodeObj = subObjectCodeObj; 253 } 254 255 256 257 public ProjectCode getProjectCodeObj() { 258 return projectCodeObj; 259 } 260 261 262 263 public void setProjectCodeObj(ProjectCode projectCodeObj) { 264 this.projectCodeObj = projectCodeObj; 265 } 266 267 268 269 public EarnCode getEarnCodeObj() { 270 return earnCodeObj; 271 } 272 273 274 275 public void setEarnCodeObj(EarnCode earnCodeObj) { 276 this.earnCodeObj = earnCodeObj; 277 } 278 279 280 281 @Override 282 public String getUniqueKey() { 283 return earnCode +"_"+accountNbr+"_"+subAcctNbr; 284 } 285 286 287 288 @Override 289 public String getId() { 290 return tkAssignAcctId; 291 } 292 293 294 295 @Override 296 public void setId(String id) { 297 setTkAssignAcctId(id); 298 } 299 300 }