package org.jeecg.modules.qualityControl.entity;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.projectManagement.entity.FdProjectFile;
import org.jeecg.modules.projectManagement.entity.FdProjectFileCompound;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Description: 质量保证（工艺与设备）
 * @author： jeecg-boot
 * @date：   2019-06-06
 * @version： V1.0
 */
@Data
@TableName("fd_qa_process_facility")
public class FdQaProcessFacility implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**主键*/
	@TableId(type = IdType.UUID)
	private java.lang.String id;
	/**项目档案主键*/
	@Excel(name = "项目档案主键", width = 15)
	private java.lang.String pkProjectFile;
	/**合同主键*/
	@Excel(name = "合同主键", width = 15)
	private java.lang.String pkContract;
	/**合同号*/
	@Excel(name = "合同号", width = 15)
	// @NotEmpty(message = "合同号不能为空")
	private java.lang.String contractCode;
	/**项目名称*/
	@Excel(name = "项目名称", width = 15)
	private java.lang.String projectName;
	/**申办方id*/
	@Excel(name = "申办方id", width = 15)
	private java.lang.String pkBidParty;
	/**申办方名称*/
	@Excel(name = "申办方名称", width = 15)
	private java.lang.String bidPartyName;
	/**客户缩写*/
	@Excel(name = "客户缩写", width = 15)
	private java.lang.String bidPartyNameAbbreviation;
	/**合同方主键*/
	@Excel(name = "合同方主键", width = 15)
	private java.lang.String pkContractParty;
	/**合同方名称*/
	@Excel(name = "合同方名称", width = 15)
	private java.lang.String contractPartyName;
	/**质量保证单号 */
	@Excel(name = "质量保证单号 ", width = 15)
	// @NotEmpty(message = "质量保证单号不可为空")
	private java.lang.String qualityAssuranceFormNumber;
	/**质量保证单日期*/
	@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")
	@NotNull(message = "质量保证单日期不可为空")
	private java.util.Date qualityAssuranceSheetDate;
	/**类型 */
	@Excel(name = "类型 ", width = 15)
	@NotEmpty(message = "类型不可为空")
	private java.lang.String qaType;
	//类型名称
	private String qaTypeName;
	/**QA提交日期*/
	@Excel(name = "QA提交日期", 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")
	@TableField(strategy = FieldStrategy.IGNORED)
	private java.util.Date qaSubmissionDate;
	/**QA完成日期*/
	@Excel(name = "QA完成日期", 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")
	@TableField(strategy = FieldStrategy.IGNORED)
	private java.util.Date qaCompletionDate;
	/**化合物Id*/
	@Excel(name = "化合物Id", width = 15)
	// @NotEmpty(message = "化合物不能为空")
	private java.lang.String pkCompound;
	/**备注*/
	@Excel(name = "备注", width = 15)
	private java.lang.String memo;
	/**版本号*/
	@Excel(name = "版本号", width = 15)
	private java.lang.String version;
	/**删除标识*/
	@Excel(name = "删除标识", width = 15)
	private java.lang.String delFlag;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
	private java.lang.String createBy;
	/**创建时间*/
	@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 java.util.Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
	private java.lang.String updateBy;
	/**更新时间*/
	@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 java.util.Date updateTime;

	//项目号（项目档案信息）
	private String projectFileNo;

	//质量管理状态（1未完成，2已完成）
	private Integer qualityStatus;

	//质量保证明细
	@TableField(exist = false)
	private List<FdQaProcessFacilityItems> fdQaProcessFacilityItemsList;

	//合同说明
	private String contractDescription;
	//质量保证负责人
	private String responsibleQA;
	//质量保证负责人名称
	private String responsibleQAName;
	//管理人
	private String management;
	//管理人
	private String managementName;
	//化合物名称
	private String compoundName;
	//合同签订日期
	// private java.util.Date contractSignDate;
	//默认化合物名称
	@TableField(exist = false)
	private String compound1;
	//默认化合物id
	@TableField(exist = false)
	private String compound1Id;

	//开始时间
	@TableField(exist =false)
	private String startTime;

	//结束时间
	@TableField(exist =false)
	private String endTime;

	//化合物集合
	@TableField(exist = false)
	private List<FdProjectFileCompound> fdProjectFileCompoundList;
}
