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 package org.kuali.kfs.module.ar.web.struts;
017
018 import java.io.File;
019 import java.sql.Date;
020 import java.util.ArrayList;
021 import java.util.List;
022
023 import javax.servlet.http.HttpServletRequest;
024
025 import org.kuali.kfs.sys.KFSConstants;
026 import org.kuali.rice.kns.web.struts.form.KualiForm;
027 import org.kuali.rice.kns.web.ui.ExtraButton;
028
029 /**
030 * This class is the action form for Customer Aging Reports.
031 */
032 public class CustomerInvoiceForm extends KualiForm {
033 private static final long serialVersionUID = 1L;
034
035 private static final org.apache.commons.logging.Log LOG = org.apache.commons.logging.LogFactory.getLog(CustomerInvoiceForm.class);
036
037 private String chartCode;
038 private String orgCode;
039 private String orgType;
040 private Date runDate;
041 private String message;
042 private String userId;
043
044 /**
045 * Gets the userId attribute.
046 * @return Returns the userId.
047 */
048 public String getUserId() {
049 return userId;
050 }
051
052
053
054
055 /**
056 * Sets the userId attribute value.
057 * @param userId The userId to set.
058 */
059 public void setUserId(String userId) {
060 this.userId = userId;
061 }
062
063
064
065
066 /**
067 * Gets the message attribute.
068 * @return Returns the message.
069 */
070 public String getMessage() {
071 return message;
072 }
073
074
075
076
077 /**
078 * Sets the message attribute value.
079 * @param message The message to set.
080 */
081 public void setMessage(String message) {
082 this.message = message;
083 }
084
085
086
087
088 @Override
089 public List<ExtraButton> getExtraButtons() {
090 List<ExtraButton> buttons = new ArrayList<ExtraButton>();
091
092 // Print button
093 ExtraButton printButton = new ExtraButton();
094 printButton.setExtraButtonProperty("methodToCall.print");
095 printButton.setExtraButtonSource("${" + KFSConstants.EXTERNALIZABLE_IMAGES_URL_KEY + "}buttonsmall_genprintfile.gif");
096 printButton.setExtraButtonAltText("Print");
097 buttons.add(printButton);
098
099 // Clear button
100 ExtraButton clearButton = new ExtraButton();
101 clearButton.setExtraButtonProperty("methodToCall.clear");
102 clearButton.setExtraButtonSource("${" + KFSConstants.RICE_EXTERNALIZABLE_IMAGES_URL_KEY + "}buttonsmall_clear.gif");
103 clearButton.setExtraButtonAltText("Clear");
104 buttons.add(clearButton);
105
106 // Cancel button
107 ExtraButton cancelButton = new ExtraButton();
108 cancelButton.setExtraButtonProperty("methodToCall.cancel");
109 cancelButton.setExtraButtonSource("${" + KFSConstants.RICE_EXTERNALIZABLE_IMAGES_URL_KEY + "}buttonsmall_cancel.gif");
110 cancelButton.setExtraButtonAltText("Cancel");
111 buttons.add(cancelButton);
112
113 return buttons;
114 }
115
116
117
118
119
120 /**
121 * Gets the runDate attribute.
122 * @return Returns the runDate.
123 */
124 public Date getRunDate() {
125 return runDate;
126 }
127
128
129
130 /**
131 * Sets the runDate attribute value.
132 * @param runDate The runDate to set.
133 */
134 public void setRunDate(Date runDate) {
135 this.runDate = runDate;
136 }
137
138
139 /**
140 * Gets the orgType attribute.
141 * @return Returns the orgType.
142 */
143 public String getOrgType() {
144 return orgType;
145 }
146
147
148
149 /**
150 * Sets the orgType attribute value.
151 * @param orgType The orgType to set.
152 */
153 public void setOrgType(String orgType) {
154 this.orgType = orgType;
155 }
156
157
158
159 @Override
160 public void populate(HttpServletRequest request) {
161 super.populate(request);
162 }
163
164
165
166 /**
167 * Gets the chartCode attribute.
168 * @return Returns the chartCode.
169 */
170 public String getChartCode() {
171 return chartCode;
172 }
173
174
175
176 /**
177 * Sets the chartCode attribute value.
178 * @param chartCode The chartCode to set.
179 */
180 public void setChartCode(String chartCode) {
181 this.chartCode = chartCode;
182 }
183
184
185
186 /**
187 * Gets the orgCode attribute.
188 * @return Returns the orgCode.
189 */
190 public String getOrgCode() {
191 return orgCode;
192 }
193
194
195
196 /**
197 * Sets the orgCode attribute value.
198 * @param orgCode The orgCode to set.
199 */
200 public void setOrgCode(String orgCode) {
201 this.orgCode = orgCode;
202 }
203
204
205
206
207 }