package org.jeecg.modules.financeManage.vo;

import java.util.List;
import org.jeecg.modules.financeManage.entity.FdHandoverfee;
import org.jeecg.modules.financeManage.entity.FdHandoverfeeB;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class FdHandoverfeePage {
	
	/**过手费主表主键*/
	private String id;
	/**类型（1临床过手费，2生物分析过手费）*/
  	@Excel(name = "类型（1临床过手费，2生物分析过手费）", width = 15)
	@NotEmpty(message = "类型不能为空")
	private String type;
	/**编码*/
  	@Excel(name = "编码", width = 15)
	// @NotEmpty(message = "过手费号码不能为空")
	private String code;
	/**合同名称（说明）*/
	// @NotEmpty(message = "合同说明不能为空")
  	@Excel(name = "合同名称（说明）", width = 15)
	private String name;
	/**状态（0保存，1审核，2弃审）*/
  	@Excel(name = "状态（0保存，1审核，2弃审）", width = 15)
	private String state;
	/**过手费日期*/
  	@Excel(name = "过手费日期", width = 20, format = "yyyy-MM-dd")
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	@NotNull(message = "过手费日期不能为空")
	private Date feedate;
	/**申办方名称*/
  	@Excel(name = "申办方名称", width = 15)
	private String applicantname;
	/**申办方id*/
  	@Excel(name = "申办方id", width = 15)
	private String pkApplicant;
	/**客户名称*/
  	@Excel(name = "客户名称", width = 15)
	private String clientname;
	/**客户id*/
  	@Excel(name = "客户id", width = 15)
	private String pkClient;
	/**合同方*/
  	@Excel(name = "合同方", width = 15)
	private String pkContractparty;
	/**合同方名称*/
  	@Excel(name = "合同方名称", width = 15)
	private String contractpartyname;
	/**化合物*/
  	@Excel(name = "化合物", width = 15)
	private String compound;
	/**备注*/
  	@Excel(name = "备注", width = 15)
	private String memo;
	/**合同号*/
	private String contractno;
	/**创建人*/
  	@Excel(name = "创建人", width = 15)
	private String createBy;
	/**创建人名称*/
  	@Excel(name = "创建人名称", width = 15)
	private String createName;
	/**创建时间*/
  	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	/**最后修改人*/
  	@Excel(name = "最后修改人", width = 15)
	private String updateBy;
	/**updateName*/
  	@Excel(name = "updateName", width = 15)
	private String updateName;
	/**最后修改时间*/
  	@Excel(name = "最后修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	/**删除状态*/
  	@Excel(name = "删除状态", width = 15)
	private Object delFalg;

	//合同id
	private String contractId;
	//项目号
	private String projectFileNo;
	//项目档案id
	private String pkProjectFile;

	private String def1;
	private String def2;
	private String def3;
	private String def4;
	private String def5;

	@NotEmpty(message = "过手费明细不能为空")
	@ExcelCollection(name="财务过手费子表")
	@Valid
	private List<FdHandoverfeeB> fdHandoverfeeBList;
	
}
