1 /*
2 * Copyright 2006 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.kuali.ole.fp.document.web.struts;
17
18 import org.kuali.ole.fp.businessobject.CapitalAccountingLine;
19 import org.kuali.rice.core.api.util.type.KualiDecimal;
20
21 /**
22 * This class is the struts base form for financial form documents that need
23 * capital accounting lines.
24 */
25 public abstract class CapitalAccountingLinesFormBase extends CapitalAssetInformationFormBase {
26 //transient objects
27 protected transient CapitalAccountingLine capitalAccountingLine;
28 protected transient boolean editCreateOrModify;
29 protected transient KualiDecimal systemControlAmount;
30 protected transient KualiDecimal createdAssetsControlAmount;
31 protected transient boolean distributeEqualAmount;
32
33 /**
34 * Constructs a AdvanceDepositForm.java.
35 */
36 public CapitalAccountingLinesFormBase() {
37 super();
38
39 this.setSystemControlAmount(KualiDecimal.ZERO);
40 capitalAccountingLine = new CapitalAccountingLine();
41 editCreateOrModify = true;
42 distributeEqualAmount = true;
43 }
44
45 /**
46 * Gets the capitalAccountingLine attribute.
47 *
48 * @return Returns the capitalAccountingLine
49 */
50
51 public CapitalAccountingLine getCapitalAccountingLine() {
52 return capitalAccountingLine;
53 }
54
55 /**
56 * Sets the capitalAccountingLine attribute.
57 *
58 * @param capitalAccountingLine The capitalAccountingLine to set.
59 */
60 public void setCapitalAccountingLine(CapitalAccountingLine capitalAccountingLine) {
61 this.capitalAccountingLine = capitalAccountingLine;
62 }
63
64 /**
65 * Gets the editCreateOrModify attribute.
66 *
67 * @return Returns the editCreateOrModify
68 */
69
70 public boolean isEditCreateOrModify() {
71 return editCreateOrModify;
72 }
73
74 /**
75 * Sets the editCreateOrModify attribute.
76 *
77 * @param editCreateOrModify The editCreateOrModify to set.
78 */
79 public void setEditCreateOrModify(boolean editCreateOrModify) {
80 this.editCreateOrModify = editCreateOrModify;
81 }
82
83 /**
84 * Gets the systemControlAmount attribute.
85 *
86 * @return Returns the systemControlAmount
87 */
88
89 public KualiDecimal getSystemControlAmount() {
90 return systemControlAmount;
91 }
92
93 /**
94 * Sets the systemControlAmount attribute.
95 *
96 * @param systemControlAmount The systemControlAmount to set.
97 */
98 public void setSystemControlAmount(KualiDecimal systemControlAmount) {
99 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 }