001/*
002 * Copyright 2013 The Kuali Foundation.
003 *
004 * Licensed under the Educational Community License, Version 1.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/ecl1.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 */
016package org.kuali.ole.select.businessobject;
017
018import org.kuali.ole.coa.businessobject.Account;
019import org.kuali.ole.coa.businessobject.SufficientFundsCode;
020import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
021import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
022
023import java.math.BigDecimal;
024import java.util.LinkedHashMap;
025
026
027public class OleSufficientFundCheck extends PersistableBusinessObjectBase implements MutableInactivatable {
028
029    private Integer sufficientFundCheckId;
030    private String chartOfAccountsCode;
031    private String accountNumber;
032    private String encumbExpenseMethod;
033    private String encumbExpenseConstraintType;
034    private BigDecimal encumbranceAmount;
035    private BigDecimal expenseAmount;
036    // private String encumbExpenseType;
037    /*
038     * private String expenseMethod; private String expenseConstraintType; private BigDecimal expenseAmount; private String
039     * expenseType;
040     */
041    private Account account;
042    private boolean active;
043    private OleSufficientFundsCheckType oleSufficientFundsCheckType;
044    private SufficientFundsCode sufficientFundsCode;
045    private String notificationOption;
046
047
048    public Integer getSufficientFundCheckId() {
049        return sufficientFundCheckId;
050    }
051
052
053    public void setSufficientFundCheckId(Integer sufficientFundCheckId) {
054        this.sufficientFundCheckId = sufficientFundCheckId;
055    }
056
057    public String getChartOfAccountsCode() {
058        return chartOfAccountsCode;
059    }
060
061    public void setChartOfAccountsCode(String chartOfAccountsCode) {
062        this.chartOfAccountsCode = chartOfAccountsCode;
063    }
064
065    public String getAccountNumber() {
066        return accountNumber;
067    }
068
069
070    public void setAccountNumber(String accountNumber) {
071        this.accountNumber = accountNumber;
072    }
073
074
075    /*
076     * public String getExpenseMethod() { return expenseMethod; } public void setExpenseMethod(String expenseMethod) {
077     * this.expenseMethod = expenseMethod; } public String getExpenseConstraintType() { return expenseConstraintType; } public void
078     * setExpenseConstraintType(String expenseConstraintType) { this.expenseConstraintType = expenseConstraintType; } public
079     * BigDecimal getExpenseAmount() { return expenseAmount; } public void setExpenseAmount(BigDecimal expenseAmount) {
080     * this.expenseAmount = expenseAmount; } public String getExpenseType() { return expenseType; } public void
081     * setExpenseType(String expenseType) { this.expenseType = expenseType; }
082     */
083
084    public String getEncumbExpenseMethod() {
085        return encumbExpenseMethod;
086    }
087
088
089    public void setEncumbExpenseMethod(String encumbExpenseMethod) {
090        this.encumbExpenseMethod = encumbExpenseMethod;
091    }
092
093
094    public String getEncumbExpenseConstraintType() {
095        return encumbExpenseConstraintType;
096    }
097
098
099    public void setEncumbExpenseConstraintType(String encumbExpenseConstraintType) {
100        this.encumbExpenseConstraintType = encumbExpenseConstraintType;
101    }
102
103
104    /*
105     * public String getEncumbExpenseType() { return encumbExpenseType; } public void setEncumbExpenseType(String encumbExpenseType)
106     * { this.encumbExpenseType = encumbExpenseType; }
107     */
108
109
110    public BigDecimal getEncumbranceAmount() {
111        return encumbranceAmount;
112    }
113
114
115    public void setEncumbranceAmount(BigDecimal encumbranceAmount) {
116        this.encumbranceAmount = encumbranceAmount;
117    }
118
119
120    public BigDecimal getExpenseAmount() {
121        return expenseAmount;
122    }
123
124
125    public void setExpenseAmount(BigDecimal expenseAmount) {
126        this.expenseAmount = expenseAmount;
127    }
128
129
130    @Override
131    public boolean isActive() {
132        return active;
133    }
134
135    @Override
136    public void setActive(boolean active) {
137        this.active = active;
138    }
139
140
141    public OleSufficientFundsCheckType getOleSufficientFundsCheckType() {
142        return oleSufficientFundsCheckType;
143    }
144
145    public void setOleSufficientFundsCheckType(OleSufficientFundsCheckType oleSufficientFundsCheckType) {
146        this.oleSufficientFundsCheckType = oleSufficientFundsCheckType;
147    }
148
149
150    public SufficientFundsCode getSufficientFundsCode() {
151        return sufficientFundsCode;
152    }
153
154    public void setSufficientFundsCode(SufficientFundsCode sufficientFundsCode) {
155        this.sufficientFundsCode = sufficientFundsCode;
156    }
157
158    public Account getAccount() {
159        return account;
160    }
161
162    public void setAccount(Account account) {
163        this.account = account;
164    }
165
166
167    public String getNotificationOption() {
168        return notificationOption;
169    }
170
171
172    public void setNotificationOption(String notificationOption) {
173        this.notificationOption = notificationOption;
174    }
175
176    protected LinkedHashMap toStringMapper() {
177        LinkedHashMap m = new LinkedHashMap();
178        m.put("sufficientFundCheckId", this.sufficientFundCheckId);
179        return m;
180    }
181
182}