package com.swfarm.biz.warehouse.dto;

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

import org.apache.commons.lang.StringUtils;

import com.swfarm.pub.utils.DateUtils;

public class SearchWarehouseTransferVouchersCriteria implements Serializable {

	private String warehouseTransferVoucherNo;

	private String articleNumber;

	private Date startDate;

	private Date endDate;

	private String generateUser;

	public String getWarehouseTransferVoucherNo() {
		return warehouseTransferVoucherNo;
	}

	public void setWarehouseTransferVoucherNo(String warehouseTransferVoucherNo) {
		this.warehouseTransferVoucherNo = warehouseTransferVoucherNo;
	}

	public String getArticleNumber() {
		return articleNumber;
	}

	public void setArticleNumber(String articleNumber) {
		this.articleNumber = articleNumber;
	}

	public Date getStartDate() {
		return startDate;
	}

	public String getStartDateString() {
		if (startDate != null) {
			return DateUtils.dateToString(startDate, "yyyy/MM/dd");
		} else {
			return StringUtils.EMPTY;
		}
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public String getEndDateString() {
		if (endDate != null) {
			return DateUtils.dateToString(endDate, "yyyy/MM/dd");
		} else {
			return StringUtils.EMPTY;
		}
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getGenerateUser() {
		return generateUser;
	}

	public void setGenerateUser(String generateUser) {
		this.generateUser = generateUser;
	}

}
