001 /** 002 * Copyright 2004-2013 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 private static final long serialVersionUID = 2414818440020234952L; 031 032 private String tkAssignAcctId; 033 private String finCoaCd; 034 private String accountNbr; 035 private String subAcctNbr; 036 private String finObjectCd; 037 private String finSubObjCd; 038 private String projectCd; 039 private String orgRefId; 040 private BigDecimal percent; 041 private String earnCode; 042 private String tkAssignmentId; 043 private Assignment assignmentObj; 044 045 private Account accountObj; 046 private SubAccount subAccountObj; 047 private ObjectCode objectCodeObj; 048 private SubObjectCode subObjectCodeObj; 049 private ProjectCode projectCodeObj; 050 private EarnCode earnCodeObj; 051 052 public Assignment getAssignmentObj() { 053 return assignmentObj; 054 } 055 056 public void setAssignmentObj(Assignment assignmentObj) { 057 this.assignmentObj = assignmentObj; 058 } 059 060 public String getFinCoaCd() { 061 return finCoaCd; 062 } 063 064 public void setFinCoaCd(String finCoaCd) { 065 this.finCoaCd = finCoaCd; 066 } 067 068 public String getAccountNbr() { 069 return accountNbr; 070 } 071 072 public void setAccountNbr(String accountNbr) { 073 this.accountNbr = accountNbr; 074 } 075 076 public String getSubAcctNbr() { 077 return subAcctNbr; 078 } 079 080 public void setSubAcctNbr(String subAcctNbr) { 081 this.subAcctNbr = subAcctNbr; 082 } 083 084 public String getFinObjectCd() { 085 return finObjectCd; 086 } 087 088 public void setFinObjectCd(String finObjectCd) { 089 this.finObjectCd = finObjectCd; 090 } 091 092 public String getFinSubObjCd() { 093 return finSubObjCd; 094 } 095 096 public void setFinSubObjCd(String finSubObjCd) { 097 this.finSubObjCd = finSubObjCd; 098 } 099 100 public String getProjectCd() { 101 return projectCd; 102 } 103 104 public void setProjectCd(String projectCd) { 105 this.projectCd = projectCd; 106 } 107 108 public String getOrgRefId() { 109 return orgRefId; 110 } 111 112 public void setOrgRefId(String orgRefId) { 113 this.orgRefId = orgRefId; 114 } 115 116 public BigDecimal getPercent() { 117 return percent; 118 } 119 120 public void setPercent(BigDecimal percent) { 121 this.percent = percent; 122 } 123 124 public String getTkAssignAcctId() { 125 return tkAssignAcctId; 126 } 127 128 public void setTkAssignAcctId(String tkAssignAcctId) { 129 this.tkAssignAcctId = tkAssignAcctId; 130 } 131 132 public String getTkAssignmentId() { 133 return tkAssignmentId; 134 } 135 136 public void setTkAssignmentId(String tkAssignmentId) { 137 this.tkAssignmentId = tkAssignmentId; 138 } 139 140 public String getEarnCode() { 141 return earnCode; 142 } 143 144 public void setEarnCode(String earnCode) { 145 this.earnCode = earnCode; 146 } 147 148 public Account getAccountObj() { 149 return accountObj; 150 } 151 152 public void setAccountObj(Account accountObj) { 153 this.accountObj = accountObj; 154 } 155 156 public SubAccount getSubAccountObj() { 157 return subAccountObj; 158 } 159 160 public void setSubAccountObj(SubAccount subAccountObj) { 161 this.subAccountObj = subAccountObj; 162 } 163 164 public ObjectCode getObjectCodeObj() { 165 return objectCodeObj; 166 } 167 168 public void setObjectCodeObj(ObjectCode objectCodeObj) { 169 this.objectCodeObj = objectCodeObj; 170 } 171 172 public SubObjectCode getSubObjectCodeObj() { 173 return subObjectCodeObj; 174 } 175 176 public void setSubObjectCodeObj(SubObjectCode subObjectCodeObj) { 177 this.subObjectCodeObj = subObjectCodeObj; 178 } 179 180 public ProjectCode getProjectCodeObj() { 181 return projectCodeObj; 182 } 183 184 public void setProjectCodeObj(ProjectCode projectCodeObj) { 185 this.projectCodeObj = projectCodeObj; 186 } 187 188 public EarnCode getEarnCodeObj() { 189 return earnCodeObj; 190 } 191 192 public void setEarnCodeObj(EarnCode earnCodeObj) { 193 this.earnCodeObj = earnCodeObj; 194 } 195 196 @Override 197 public String getUniqueKey() { 198 return earnCode +"_"+accountNbr+"_"+subAcctNbr; 199 } 200 201 @Override 202 public String getId() { 203 return tkAssignAcctId; 204 } 205 206 @Override 207 public void setId(String id) { 208 setTkAssignAcctId(id); 209 } 210 211 }