ServiceProviderPaymentSearch.java

package com.tradecloud.dto.invoice;

import com.tradecloud.domain.base.utils.ObjectUtil;
import com.tradecloud.domain.common.Currency;
import com.tradecloud.domain.model.organisationalunit.OrganisationalUnit;
import com.tradecloud.domain.party.ServiceProvider;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

@Component
@Scope("view")
public class ServiceProviderPaymentSearch extends FinanceSearch implements Serializable {

    private static final long serialVersionUID = 1L;
    private String shipmentReference;
    private ServiceProvider serviceProvider;
    private ServiceProvider[] serviceProviders;
    private String invoiceReference;
    private String paymentState;
    private Date settlementDateFrom;
    private Date settlementDateTo;
    private Date documentDateFrom;
    private Date documentDateTo;
    private Currency invoiceCurrency;
    private Currency paymentCurrency;
    private boolean isExport;
    private boolean isImport;
    private long totalCount;
    private OrganisationalUnit organisationalUnit;

    @Override
    public String getTableName() {
        return "ServiceProviderInvoice";
    }

    public String getShipmentReference() {
        return shipmentReference;
    }

    public void setShipmentReference(String shipmentReference) {
        this.shipmentReference = shipmentReference;
    }

    public ServiceProvider getServiceProvider() {
        return serviceProvider;
    }

    public void setServiceProvider(ServiceProvider serviceProvider) {
        this.serviceProvider = serviceProvider;
    }

    public String getInvoiceReference() {
        return invoiceReference;
    }

    public void setInvoiceReference(String invoiceReference) {
        this.invoiceReference = invoiceReference;
    }

    public Date getSettlementDateFrom() {
        return settlementDateFrom;
    }

    public void setSettlementDateFrom(Date settlementDateFrom) {
        this.settlementDateFrom = settlementDateFrom;
    }

    public Date getSettlementDateTo() {
        return settlementDateTo;
    }

    public void setSettlementDateTo(Date settlementDateTo) {
        this.settlementDateTo = settlementDateTo;
    }

    public Date getDocumentDateFrom() {
        return documentDateFrom;
    }

    public void setDocumentDateFrom(Date documentDateFrom) {
        this.documentDateFrom = documentDateFrom;
    }

    public Date getDocumentDateTo() {
        return documentDateTo;
    }

    public void setDocumentDateTo(Date documentDateTo) {
        this.documentDateTo = documentDateTo;
    }

    public Currency getInvoiceCurrency() {
        return invoiceCurrency;
    }

    public void setInvoiceCurrency(Currency invoiceCurrency) {
        this.invoiceCurrency = invoiceCurrency;
    }

    public Currency getPaymentCurrency() {
        return paymentCurrency;
    }

    public void setPaymentCurrency(Currency paymentCurrency) {
        this.paymentCurrency = paymentCurrency;
    }

    public String getPaymentState() {
        return paymentState;
    }

    public void setPaymentState(String paymentState) {
        this.paymentState = paymentState;
    }

    public boolean isExport() {
        return isExport;
    }

    public void setExport(boolean isExport) {
        this.isExport = isExport;
    }

    public boolean isImport() {
        return isImport;
    }

    public void setImport(boolean isImport) {
        this.isImport = isImport;
    }

    public long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(long totalCount) {
        this.totalCount = totalCount;
    }

    public OrganisationalUnit getOrganisationalUnit() {
        return organisationalUnit;
    }

    public void setOrganisationalUnit(OrganisationalUnit organisationalUnit) {
        this.organisationalUnit = organisationalUnit;
    }

    @Override
    public boolean noSelectedOrgUnit() {
        return ObjectUtil.allNull(organisationalUnit);
    }

    public ServiceProvider[] getServiceProviders() {
        return serviceProviders;
    }

    public void setServiceProviders(ServiceProvider[] serviceProviders) {
        this.serviceProviders = serviceProviders;
    }

}