/***文档注释***********************************************
 * 作者            ：
 * 创建日期     ：2018-07-04
 * 描述            ：资材备件库-借出信息表
 * 注意事项     ：
 * 遗留BUG   ：
 * 修改日期     ：
 * 修改人员     ：
 * 修改内容     ：
***********************************************************/
package market.Lms.Equipment.vo;
import java.io.Serializable;
import java.util.Date;

import market.Lms.Equipment.mapper.YdmEquipmentLendlistMapper;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hnshituo.basic.vo.BaseVO;
import com.hnshituo.orm.annotation.Column;
import com.hnshituo.orm.annotation.Id;
import com.hnshituo.orm.annotation.Table;

@Table(name="YDM_EQUIPMENT_LENDLIST", namespace=YdmEquipmentLendlistMapper.class)
public class YdmEquipmentLendlist extends BaseVO implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 8134761070245817645L;
	/** 
	 * 借出单号
	 */ 
	@Id
	private String lend_bill_no;
	public String  getLend_bill_no() {
		return this.lend_bill_no;
	}
	public void setLend_bill_no(String lend_bill_no) {
		this.lend_bill_no = lend_bill_no;
	}

	/** 
	 * 出库单号
	 */ 
	@Column
	private String out_bill_no;
	public String  getOut_bill_no() {
		return this.out_bill_no;
	}
	public void setOut_bill_no(String out_bill_no) {
		this.out_bill_no = out_bill_no;
	}

	/** 
	 * 申报单号
	 */ 
	@Column
	private String apply_bill_no;
	public String  getApply_bill_no() {
		return this.apply_bill_no;
	}
	public void setApply_bill_no(String apply_bill_no) {
		this.apply_bill_no = apply_bill_no;
	}

	/** 
	 * 状态(0借出、1归还)
	 */ 
	@Column
	private String state;
	public String  getState() {
		return this.state;
	}
	public void setState(String state) {
		this.state = state;
	}

	/** 
	 * 借出日期
	 */ 
	@Column
	private String lend_date;
	public String  getLend_date() {
		return this.lend_date;
	}
	public void setLend_date(String lend_date) {
		this.lend_date = lend_date;
	}

	/** 
	 * 借出操作时间
	 */ 
	@Column
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date lend_time;
	public Date  getLend_time() {
		return this.lend_time;
	}
	public void setLend_time(Date lend_time) {
		this.lend_time = lend_time;
	}

	/** 
	 * 借出部门
	 */ 
	@Column
	private String lend_dept;
	public String  getLend_dept() {
		return this.lend_dept;
	}
	public void setLend_dept(String lend_dept) {
		this.lend_dept = lend_dept;
	}

	/** 
	 * 借出操作人
	 */ 
	@Column
	private String lend_man;
	public String  getLend_man() {
		return this.lend_man;
	}
	public void setLend_man(String lend_man) {
		this.lend_man = lend_man;
	}

	/** 
	 * 借出数量
	 */ 
	@Column
	private Double lend_quantity;
	public Double  getLend_quantity() {
		return this.lend_quantity;
	}
	public void setLend_quantity(Double lend_quantity) {
		this.lend_quantity = lend_quantity;
	}

	/** 
	 * 归还数量
	 */ 
	@Column
	private Double return_quantity;
	public Double  getReturn_quantity() {
		return this.return_quantity;
	}
	public void setReturn_quantity(Double return_quantity) {
		this.return_quantity = return_quantity;
	}

	/** 
	 * 计划归还日期
	 */ 
	@Column
	private String plan_return_date;
	public String  getPlan_return_date() {
		return this.plan_return_date;
	}
	public void setPlan_return_date(String plan_return_date) {
		this.plan_return_date = plan_return_date;
	}

	/** 
	 * 归还日期
	 */ 
	@Column
	private String return_date;
	public String  getReturn_date() {
		return this.return_date;
	}
	public void setReturn_date(String return_date) {
		this.return_date = return_date;
	}

	/** 
	 * 归还操作时间
	 */ 
	@Column
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date return_time;
	public Date  getReturn_time() {
		return this.return_time;
	}
	public void setReturn_time(Date return_time) {
		this.return_time = return_time;
	}

	/** 
	 * 归还部门
	 */ 
	@Column
	private String return_dept;
	public String  getReturn_dept() {
		return this.return_dept;
	}
	public void setReturn_dept(String return_dept) {
		this.return_dept = return_dept;
	}

	/** 
	 * 归还操作人
	 */ 
	@Column
	private String return_man;
	public String  getReturn_man() {
		return this.return_man;
	}
	public void setReturn_man(String return_man) {
		this.return_man = return_man;
	}

	/** 
	 * 库存编号
	 */ 
	@Column
	private String object_no;
	public String  getObject_no() {
		return this.object_no;
	}
	public void setObject_no(String object_no) {
		this.object_no = object_no;
	}

	/** 
	 * 产品编码
	 */ 
	@Column
	private String mat_code;
	public String  getMat_code() {
		return this.mat_code;
	}
	public void setMat_code(String mat_code) {
		this.mat_code = mat_code;
	}

	/** 
	 * 产品名称
	 */ 
	@Column
	private String mat_name;
	public String  getMat_name() {
		return this.mat_name;
	}
	public void setMat_name(String mat_name) {
		this.mat_name = mat_name;
	}

	/** 
	 * 产品分类编码
	 */ 
	@Column
	private String srot_code;
	public String  getSrot_code() {
		return this.srot_code;
	}
	public void setSrot_code(String srot_code) {
		this.srot_code = srot_code;
	}

	/** 
	 * 产品分类名称
	 */ 
	@Column
	private String srot_name;
	public String  getSrot_name() {
		return this.srot_name;
	}
	public void setSrot_name(String srot_name) {
		this.srot_name = srot_name;
	}

	/** 
	 * 规格
	 */ 
	@Column
	private String spec;
	public String  getSpec() {
		return this.spec;
	}
	public void setSpec(String spec) {
		this.spec = spec;
	}

	/** 
	 * 采购订单PK
	 */ 
	@Column
	private String purc_order_pk;
	public String  getPurc_order_pk() {
		return this.purc_order_pk;
	}
	public void setPurc_order_pk(String purc_order_pk) {
		this.purc_order_pk = purc_order_pk;
	}

	/** 
	 * 采购订单号
	 */ 
	@Column
	private String purc_order_no;
	public String  getPurc_order_no() {
		return this.purc_order_no;
	}
	public void setPurc_order_no(String purc_order_no) {
		this.purc_order_no = purc_order_no;
	}

	/** 
	 * 供应商代码
	 */ 
	@Column
	private String supplier_no;
	public String  getSupplier_no() {
		return this.supplier_no;
	}
	public void setSupplier_no(String supplier_no) {
		this.supplier_no = supplier_no;
	}

	/** 
	 * 供应商名称
	 */ 
	@Column
	private String supplier_name;
	public String  getSupplier_name() {
		return this.supplier_name;
	}
	public void setSupplier_name(String supplier_name) {
		this.supplier_name = supplier_name;
	}

	/** 
	 * 单位
	 */ 
	@Column
	private String unit;
	public String  getUnit() {
		return this.unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}

	/** 
	 * 单价
	 */ 
	@Column
	private Double price;
	public Double  getPrice() {
		return this.price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}

	/** 
	 * 仓库管理部门代码
	 */ 
	@Column
	private String dept_code;
	public String  getDept_code() {
		return this.dept_code;
	}
	public void setDept_code(String dept_code) {
		this.dept_code = dept_code;
	}

	/** 
	 * 所属仓库编码
	 */ 
	@Column
	private String storage_code;
	public String  getStorage_code() {
		return this.storage_code;
	}
	public void setStorage_code(String storage_code) {
		this.storage_code = storage_code;
	}

	/** 
	 * 创建者编号
	 */ 
	@Column
	private String create_man_no;
	public String  getCreate_man_no() {
		return this.create_man_no;
	}
	public void setCreate_man_no(String create_man_no) {
		this.create_man_no = create_man_no;
	}

	/** 
	 * 创建者姓名
	 */ 
	@Column
	private String create_man_name;
	public String  getCreate_man_name() {
		return this.create_man_name;
	}
	public void setCreate_man_name(String create_man_name) {
		this.create_man_name = create_man_name;
	}

	/** 
	 * 创建时间
	 */ 
	@Column
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date create_time;
	public Date  getCreate_time() {
		return this.create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	/** 
	 * 修改者编号
	 */ 
	@Column
	private String update_man_no;
	public String  getUpdate_man_no() {
		return this.update_man_no;
	}
	public void setUpdate_man_no(String update_man_no) {
		this.update_man_no = update_man_no;
	}

	/** 
	 * 修改者姓名
	 */ 
	@Column
	private String update_man_name;
	public String  getUpdate_man_name() {
		return this.update_man_name;
	}
	public void setUpdate_man_name(String update_man_name) {
		this.update_man_name = update_man_name;
	}

	/** 
	 * 修改时间
	 */ 
	@Column
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date update_time;
	public Date  getUpdate_time() {
		return this.update_time;
	}
	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}

	/**
	 * 库存区域
	 */
	private String area;
	public String getArea() {
		return area;
	}
	public void setArea(String area) {
		this.area = area;
	}
	
	/**
	 * 金额
	 */
	@SuppressWarnings("unused")
	private Double amount;
	public Double getAmount() {
		if(price!=null&&lend_quantity!=null)
			return price*lend_quantity;
		else
			return 0d;
	}

	/**
	 * 比较天数 (1:超过计划归还日期；2:等于；0:未到)
	 */
	private String conpareDate;
	public String getConpareDate() {
		return conpareDate;
	}
	public void setConpareDate(String conpareDate) {
		this.conpareDate = conpareDate;
	}
	

}
