001package org.kuali.ole.select.form;
002
003import org.kuali.ole.select.bo.OLESearchCondition;
004import org.kuali.ole.select.bo.OLESearchParams;
005import org.kuali.ole.select.document.OLEEResourceRecordDocument;
006import org.kuali.rice.krad.web.form.UifFormBase;
007
008import java.util.ArrayList;
009import java.util.Date;
010import java.util.List;
011
012/**
013 * Created with IntelliJ IDEA.
014 * User: chenchulakshmig
015 * Date: 6/26/13
016 * Time: 1:19 PM
017 * To change this template use File | Settings | File Templates.
018 */
019public class OLEEResourceSearchForm extends UifFormBase {
020    public OLESearchParams oleSearchParams = new OLESearchParams();
021    public boolean statusDate;
022    public Date beginDate;
023    public Date endDate;
024    public List<String> status;
025    private List<OLEEResourceRecordDocument> eresourceDocumentList = new ArrayList<OLEEResourceRecordDocument>();
026
027    public OLEEResourceSearchForm() {
028        List<OLESearchCondition> searchConditions = new ArrayList<OLESearchCondition>();
029        searchConditions = getOleSearchParams().getSearchFieldsList();
030        searchConditions.add(new OLESearchCondition());
031        searchConditions.add(new OLESearchCondition());
032        searchConditions.add(new OLESearchCondition());
033    }
034
035    public Date getBeginDate() {
036        return beginDate;
037    }
038
039    public void setBeginDate(Date beginDate) {
040        this.beginDate = beginDate;
041    }
042
043    public Date getEndDate() {
044        return endDate;
045    }
046
047    public void setEndDate(Date endDate) {
048        this.endDate = endDate;
049    }
050
051    public List<String> getStatus() {
052        return status;
053    }
054
055    public void setStatus(List<String> status) {
056        this.status = status;
057    }
058
059    public boolean isStatusDate() {
060        return statusDate;
061    }
062
063    public void setStatusDate(boolean statusDate) {
064        this.statusDate = statusDate;
065    }
066
067    public OLESearchParams getOleSearchParams() {
068        return oleSearchParams;
069    }
070
071    public void setOleSearchParams(OLESearchParams oleSearchParams) {
072        this.oleSearchParams = oleSearchParams;
073    }
074
075    public List<OLEEResourceRecordDocument> getEresourceDocumentList() {
076        return eresourceDocumentList;
077    }
078
079    public void setEresourceDocumentList(List<OLEEResourceRecordDocument> eresourceDocumentList) {
080        this.eresourceDocumentList = eresourceDocumentList;
081    }
082}