package org.jeecg.modules.qualityControl.entity;

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

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
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.jeecg.modules.projectManagement.entity.FdProjectFileValidation;
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-11
 * @version： V1.0
 */
@Data
@TableName("fd_qa_biological_analysis_verification")
public class FdQaBiologicalAnalysisVerification 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 contractDescription;
	/**项目名称*/
	@Excel(name = "项目名称", width = 15)
	private java.lang.String projectName;
	/**申办方id*/
	@Excel(name = "申办方id", width = 15)
	private java.lang.String pkBidParty;
	/**申办方名称*/
	@Excel(name = "申办方名称", width = 15)
	@NotEmpty(message = "申办方名称不能为空")
	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)
	private java.lang.String validationOfBiologicalAnalyticalMethods;
	/**化合物名称*/
	@Excel(name = "化合物名称", width = 15)
	private java.lang.String compoundName;
	//化合物id
	@NotEmpty(message = "化合物不可为空")
    private java.lang.String pkCompound;
	/**类型 */
	@Excel(name = "类型 ", width = 15)
	@NotEmpty(message = "类型不能为空")
	private java.lang.String analysisType;
	@TableField(exist = false)
	private java.lang.String analysisTypeName;
	/**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")
	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")
	private java.util.Date qaCompletionDate;
	/**responsible QA*/
	@Excel(name = "responsible QA", width = 15)
	@NotEmpty(message = "质量保证负责人不可为空")
	private java.lang.String responsibleQa;
	@TableField(exist = false)
	private java.lang.String responsibleQaName;
	/**Bioanalytical PI*/
	@Excel(name = "Bioanalytical PI", width = 15)
	private java.lang.String bioanalyticalPi;
	@TableField(exist = false)
	private java.lang.String bioanalyticalPiName;
	/**associate Bioanalytical PI*/
	@Excel(name = "associate Bioanalytical PI", width = 15)
	private java.lang.String associateBioanalyticalPi;
	@TableField(exist = false)
	private java.lang.String associateBioanalyticalPiName;
	/**基质*/
	@Excel(name = "基质", width = 15)
	private java.lang.String matrix;
	/**备注*/
	@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 java.util.Date contractSignDate;

	//验证类型
	private String verificationType;

	//临床负责人id
	private String clinicalPi;

	//临床负责人名称
	private String clinicalPiName;

	//临床助理id
	private String clinicalAssociateId;

	//临床助理名称
	private String clinicalAssociateName;

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

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

	//生物分析方法号集合
	@TableField(exist = false)
	private List<FdProjectFileValidation> fdProjectFileValidationList;

	//质量保证（生物分析验证）明细
	@TableField(exist = false)
	private List<FdQaBiologicalAnalysisVerificationItems> fdQaBiologicalAnalysisVerificationItemsList;

	//默认化合物
	@TableField(exist = false)
	private String compound1;

	//默认化合物id
	@TableField(exist = false)
	private String compound1Id;

	//质量保证生物分析验证表
	@TableField(exist = false)
	private List<FdQaValidation> fdQaValidationList;

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

	//基质名称
	@TableField(exist = false)
	private String matrixName;

	//方法验证号
	@TableField(exist =false)
	private String verifiCode;

	//QC状态
	@TableField(exist =false)
	private Integer qcStatus;

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

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

	//是否通知PI
	@TableField(exist =false)
	private String isNoticePi;
}
