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.util.Collection; 019 import java.util.List; 020 021 import org.kuali.kfs.module.ar.businessobject.CustomerInvoiceWriteoffLookupResult; 022 import org.kuali.rice.kns.util.TypedArrayList; 023 import org.kuali.rice.kns.web.struts.form.KualiForm; 024 025 public class CustomerInvoiceWriteoffLookupSummaryForm extends KualiForm { 026 027 private String lookupResultsSequenceNumber; 028 private Collection<CustomerInvoiceWriteoffLookupResult> customerInvoiceWriteoffLookupResults; 029 private boolean sentToBatch; 030 031 public CustomerInvoiceWriteoffLookupSummaryForm(){ 032 customerInvoiceWriteoffLookupResults = new TypedArrayList(CustomerInvoiceWriteoffLookupResult.class); 033 sentToBatch = false; 034 } 035 036 public String getLookupResultsSequenceNumber() { 037 return lookupResultsSequenceNumber; 038 } 039 040 public Collection<CustomerInvoiceWriteoffLookupResult> getCustomerInvoiceWriteoffLookupResults() { 041 return customerInvoiceWriteoffLookupResults; 042 } 043 044 public void setCustomerInvoiceWriteoffLookupResults(Collection<CustomerInvoiceWriteoffLookupResult> customerInvoiceWriteoffLookupResults) { 045 this.customerInvoiceWriteoffLookupResults = customerInvoiceWriteoffLookupResults; 046 } 047 048 public void setLookupResultsSequenceNumber(String lookupResultsSequenceNumber) { 049 this.lookupResultsSequenceNumber = lookupResultsSequenceNumber; 050 } 051 052 public CustomerInvoiceWriteoffLookupResult getCustomerInvoiceWriteoffLookupResult(int index){ 053 CustomerInvoiceWriteoffLookupResult customerInvoiceWriteoffLookupResult = ((List<CustomerInvoiceWriteoffLookupResult>)getCustomerInvoiceWriteoffLookupResults()).get(index); 054 return customerInvoiceWriteoffLookupResult; 055 } 056 057 public boolean isSentToBatch() { 058 return sentToBatch; 059 } 060 061 public void setSentToBatch(boolean sentToBatch) { 062 this.sentToBatch = sentToBatch; 063 } 064 065 }