001/*
002 * Copyright 2006 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 */
016package org.kuali.ole.fp.document.web.struts;
017
018import org.kuali.ole.fp.businessobject.CapitalAccountingLine;
019import org.kuali.rice.core.api.util.type.KualiDecimal;
020
021/**
022 * This class is the struts base form for financial form documents that need
023 * capital accounting lines.
024 */
025public abstract class CapitalAccountingLinesFormBase extends CapitalAssetInformationFormBase {
026    //transient objects
027    protected transient CapitalAccountingLine capitalAccountingLine;
028    protected transient boolean editCreateOrModify;
029    protected transient KualiDecimal systemControlAmount;
030    protected transient KualiDecimal createdAssetsControlAmount;
031    protected transient boolean distributeEqualAmount;
032
033    /**
034     * Constructs a AdvanceDepositForm.java.
035     */
036    public CapitalAccountingLinesFormBase() {
037        super();
038        
039        this.setSystemControlAmount(KualiDecimal.ZERO);
040        capitalAccountingLine = new CapitalAccountingLine();
041        editCreateOrModify = true;
042        distributeEqualAmount = true;
043    }
044    
045    /**
046     * Gets the capitalAccountingLine attribute.
047     * 
048     * @return Returns the capitalAccountingLine
049     */
050    
051    public CapitalAccountingLine getCapitalAccountingLine() {
052        return capitalAccountingLine;
053    }
054
055    /** 
056     * Sets the capitalAccountingLine attribute.
057     * 
058     * @param capitalAccountingLine The capitalAccountingLine to set.
059     */
060    public void setCapitalAccountingLine(CapitalAccountingLine capitalAccountingLine) {
061        this.capitalAccountingLine = capitalAccountingLine;
062    }
063    
064    /**
065     * Gets the editCreateOrModify attribute.
066     * 
067     * @return Returns the editCreateOrModify
068     */
069    
070    public boolean isEditCreateOrModify() {
071        return editCreateOrModify;
072    }
073
074    /** 
075     * Sets the editCreateOrModify attribute.
076     * 
077     * @param editCreateOrModify The editCreateOrModify to set.
078     */
079    public void setEditCreateOrModify(boolean editCreateOrModify) {
080        this.editCreateOrModify = editCreateOrModify;
081    }
082
083    /**
084     * Gets the systemControlAmount attribute.
085     * 
086     * @return Returns the systemControlAmount
087     */
088    
089    public KualiDecimal getSystemControlAmount() {
090        return systemControlAmount;
091    }
092
093    /** 
094     * Sets the systemControlAmount attribute.
095     * 
096     * @param systemControlAmount The systemControlAmount to set.
097     */
098    public void setSystemControlAmount(KualiDecimal systemControlAmount) {
099        this.systemControlAmount = systemControlAmount;
100    }
101    
102    /**
103     * Gets the createdAssetsControlAmount attribute.
104     * 
105     * @return Returns the createdAssetsControlAmount
106     */
107    
108    public KualiDecimal getCreatedAssetsControlAmount() {
109        return createdAssetsControlAmount;
110    }
111
112    /** 
113     * Sets the createdAssetsControlAmount attribute.
114     * 
115     * @param createdAssetsControlAmount The createdAssetsControlAmount to set.
116     */
117    public void setCreatedAssetsControlAmount(KualiDecimal createdAssetsControlAmount) {
118        this.createdAssetsControlAmount = createdAssetsControlAmount;
119    }
120    
121    /**
122     * Gets the distributeEqualAmount attribute.
123     * 
124     * @return Returns the distributeEqualAmount
125     */
126    
127    public boolean isDistributeEqualAmount() {
128        return distributeEqualAmount;
129    }
130
131    /** 
132     * Sets the distributeEqualAmount attribute.
133     * 
134     * @param distributeEqualAmount The distributeEqualAmount to set.
135     */
136    public void setDistributeEqualAmount(boolean distributeEqualAmount) {
137        this.distributeEqualAmount = distributeEqualAmount;
138    }
139    
140}