package org.jeecg.modules.projectManagement.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.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.validation.constraints.NotEmpty;

/**
 * @Description: 临床项目里程碑
 * @author： jeecg-boot
 * @date：   2019-06-03
 * @version： V1.0
 */
@Data
@TableName("fd_clinical_project_milestones")
public class FdClinicalProjectMilestones implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**主键*/
	@TableId(type = IdType.UUID)
	private java.lang.String id;
	/**合同主键*/
	@Excel(name = "合同主键", width = 15)
	@NotEmpty(message = "合同号不能为空")
	private java.lang.String pkContract;
	/**项目档案主键*/
	@Excel(name = "项目档案主键", width = 15)
	private java.lang.String pkProjectFile;
	/**合同号*/
	@Excel(name = "合同号", width = 15)
	// @NotEmpty(message = "合同号不能为空")
	private java.lang.String contractCode;
	/**临床方案号*/
	@Excel(name = "临床方案号", width = 15)
	private java.lang.String clinicalCode;
	/**方案说明*/
	@Excel(name = "方案说明", width = 15)
	private java.lang.String schemeDescription;
	/**项目名称*/
	@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)
	private java.lang.String compound;
	/**合同类型*/
	@Excel(name = "合同类型", width = 15)
	private java.lang.String contractType;
	/**合同签订日期*/
	@Excel(name = "合同签订日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
	private java.util.Date signDate;
	/**受试者例数 */
	@Excel(name = "受试者例数 ", width = 15)
	// @NotEmpty(message = "受试者例数")
	private java.lang.String subjectsNumber;
	/**周期*/
	@Excel(name = "周期", width = 15)
	// @NotEmpty(message = "周期")
	private java.lang.String cycle;
	/**清洗期*/
	@Excel(name = "清洗期", width = 15)
	// @NotEmpty(message = "清洗期")
	private java.lang.String cleanPeriod;
	/**版本号*/
	@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;
	/**里程碑类型:01-预实验，02-餐后，03-空腹，04-空腹/餐后，05-内部*/
	@Excel(name = "里程碑类型:01-预实验，02-餐后，03-空腹，04-空腹/餐后，05-内部", width = 15)
	private java.lang.String milestonesType;
	/**自定义1*/
	@Excel(name = "自定义1", width = 15)
	private java.lang.String def1;
	/**def2*/
	@Excel(name = "def2", width = 15)
	private java.lang.String def2;
	/**def3*/
	@Excel(name = "def3", width = 15)
	private java.lang.String def3;
	/**def4*/
	@Excel(name = "def4", width = 15)
	private java.lang.String def4;
	/**临床药理负责人（内部）*/
	@Excel(name = "临床药理负责人（内部）", width = 15)
	private java.lang.String pharmacologyPerson;
	//里程碑模板主键
	@Excel(name = "里程碑模板主键", width = 15)
	private java.lang.String pkMilestoneTemplate;

	//类型1普通里程碑模板2特殊里程碑模板
	@Excel(name = "类型1普通里程碑模板2特殊里程碑模板", width = 15)
	private java.lang.String specialType;

	//状态0未审核1已审核
	@Excel(name = "状态0未审核1已审核", width = 15)
	private java.lang.String status;

	//项目档案分配的人员id，用于权限处理
	private String personnelIds;

	//项目经理id
	private String projectManagerId;

	//项目总进度
	private String overallProgress;

	//根据合同比例计算的总进度
	private String contractOverallProgress;

	//项目档案号
	private String projectFileNo;

	//医院进度时间
	private String hospitalProgressDate;

	//医院进度
	private String hospitalProgress;

	//里程碑模板名称
	@TableField(exist = false)
	private java.lang.String milestoneTemplateName;


	//临床项目里程碑明细
	@TableField(exist = false)
	private List<FdClinicalProjectMilestonesItems> fdClinicalProjectMilestonesItemsList;

	//项目档案
	@TableField(exist = false)
	private List<FdProjectFile> fdProjectFileList;

	//合同
	@TableField(exist = false)
	private List<FdContract> fdContractList;

	//收款节点集合
	@TableField(exist = false)
	private List<FdContractClause> contractClauseList;

	//合同类型名称
	@TableField(exist = false)
	private String contractTypeName;

	//项目档案中分配人员权限ids
	@TableField(exist = false)
	private String personnelWithAuthorityIds;

	//报价id(根据合同id查询接口需要，收入确认功能)
	@TableField(exist = false)
	private String quotationId;

	//里程碑模板编码
	private String milestoneCode;

	//模板明细任务项名称
	@TableField(exist = false)
	private String itemDescriptionName;

	//明细的付款节点id
	@TableField(exist = false)
	private String itemPkContractClause;

	//明细的付款节点id
	@TableField(exist = false)
	private String clinicalIdPM;
}
