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 /*
017 * Created on Aug 19, 2004
018 *
019 */
020 package org.kuali.kfs.pdp.businessobject;
021
022 import java.math.BigDecimal;
023 import java.util.LinkedHashMap;
024
025 import org.apache.commons.lang.builder.EqualsBuilder;
026 import org.apache.commons.lang.builder.HashCodeBuilder;
027 import org.apache.commons.lang.builder.ToStringBuilder;
028 import org.kuali.kfs.pdp.service.FormatService;
029 import org.kuali.kfs.pdp.service.PaymentGroupService;
030 import org.kuali.kfs.sys.KFSPropertyConstants;
031 import org.kuali.kfs.sys.businessobject.TimestampedBusinessObjectBase;
032 import org.kuali.kfs.sys.context.SpringContext;
033 import org.kuali.rice.kns.util.KualiDecimal;
034 import org.kuali.rice.kns.util.KualiInteger;
035
036 /**
037 *
038 */
039 public class ProcessSummary extends TimestampedBusinessObjectBase {
040 private KualiInteger id;
041 private KualiInteger customerId;
042 private String disbursementTypeCode;
043 private KualiInteger processId;
044 private KualiInteger sortGroupId;
045 private KualiInteger beginDisbursementNbr;
046 private KualiInteger endDisbursementNbr;
047 private KualiDecimal processTotalAmount;
048 private KualiInteger processTotalCount;
049
050 private DisbursementType disbursementType;
051 private PaymentProcess process;
052 private CustomerProfile customer;
053
054 public ProcessSummary() {
055 }
056
057 public KualiInteger getBeginDisbursementNbr() {
058 return beginDisbursementNbr;
059 }
060
061 public void setBeginDisbursementNbr(KualiInteger beginDisbursementNbr) {
062 this.beginDisbursementNbr = beginDisbursementNbr;
063 }
064
065 public CustomerProfile getCustomer() {
066 return customer;
067 }
068
069 public void setCustomer(CustomerProfile customer) {
070 this.customer = customer;
071 }
072
073 public DisbursementType getDisbursementType() {
074 return disbursementType;
075 }
076
077 public void setDisbursementType(DisbursementType disbursementType) {
078 this.disbursementType = disbursementType;
079 }
080
081 public KualiInteger getEndDisbursementNbr() {
082 return endDisbursementNbr;
083 }
084
085 public void setEndDisbursementNbr(KualiInteger endDisbursementNbr) {
086 this.endDisbursementNbr = endDisbursementNbr;
087 }
088
089 public KualiInteger getId() {
090 return id;
091 }
092
093 public void setId(KualiInteger id) {
094 this.id = id;
095 }
096
097 public PaymentProcess getProcess() {
098 return process;
099 }
100
101 public void setProcess(PaymentProcess process) {
102 this.process = process;
103 }
104
105 public KualiDecimal getProcessTotalAmount() {
106 return processTotalAmount;
107 }
108
109 public void setProcessTotalAmount(KualiDecimal processTotalAmount) {
110 this.processTotalAmount = processTotalAmount;
111 }
112
113 public KualiInteger getProcessTotalCount() {
114 return processTotalCount;
115 }
116
117 public void setProcessTotalCount(KualiInteger processTotalCount) {
118 this.processTotalCount = processTotalCount;
119 }
120
121 public KualiInteger getCustomerId() {
122 return customerId;
123 }
124
125 public void setCustomerId(KualiInteger customerId) {
126 this.customerId = customerId;
127 }
128
129 public String getDisbursementTypeCode() {
130 return disbursementTypeCode;
131 }
132
133 public void setDisbursementTypeCode(String disbursementTypeCode) {
134 this.disbursementTypeCode = disbursementTypeCode;
135 }
136
137 public KualiInteger getProcessId() {
138 return processId;
139 }
140
141 public void setProcessId(KualiInteger processId) {
142 this.processId = processId;
143 }
144
145 public String getSortGroupName(){
146 PaymentGroupService paymentGroupService = SpringContext.getBean(PaymentGroupService.class);
147 String sortGroupName = paymentGroupService.getSortGroupName(sortGroupId.intValue());
148 return sortGroupName;
149 }
150
151 public void setSortGroupName(){
152
153 }
154
155 /**
156 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
157 */
158 @Override
159 protected LinkedHashMap toStringMapper() {
160 LinkedHashMap m = new LinkedHashMap();
161
162 m.put(KFSPropertyConstants.ID, this.id);
163
164 return m;
165 }
166
167 public KualiInteger getSortGroupId() {
168 return sortGroupId;
169 }
170
171 public void setSortGroupId(KualiInteger sortGroupId) {
172 this.sortGroupId = sortGroupId;
173 }
174
175 }