package cn.com.qmth.stmms.biz.subjectheader.model;

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

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import cn.com.qmth.stmms.biz.distributpaper.model.FormallyHistory;
import cn.com.qmth.stmms.biz.distributpaper.model.TryHistory;
import cn.com.qmth.stmms.biz.exam.model.SubjectiveBlock;
import cn.com.qmth.stmms.common.enums.LibraryStatus;
import cn.com.qmth.stmms.common.enums.LibraryType;

@Entity
@Table(name = "m_arbitration_library")
public class ArbitrationLibrary implements Serializable {

    private static final long serialVersionUID = 3640243043219601714L;

    @Id
    @GeneratedValue
    private Integer id;

    /**
     * 学习中心CODE
     */
    @Column(name = "campus_code")
    private String campusCode;

    /**
     * 考试ID
     */
    @Column(name = "exam_id")
    private Integer examId;

    /**
     * 科目CODE
     */
    @Column(name = "subject_code")
    private String subjectCode;

    /**
     * 科目块ID
     */
    @Column(name = "block_id")
    private Integer blockId;

    /**
     * 密号
     */
    @Column(name = "secret_no")
    private Integer secretNo;

    /**
     * 类型：0：样卷1：试评2：正评
     */
    @Column(name = "type")
    @Enumerated(EnumType.ORDINAL)
    private LibraryType type;

    /**
     * 发生时间
     */
    @Column(name = "occur_time")
    private Date occurTime;

    /**
     * 状态
     */
    @Enumerated(EnumType.ORDINAL)
    @Column(name = "status")
    private LibraryStatus status;

    @Transient
    private SubjectiveBlock subjectiveBlock;

    @Transient
    private List<TryHistory> tryHistoryList;

    @Transient
    private List<FormallyHistory> formallyHistoryList;

    private transient String pictureConfig;

    private transient List<String> pictureUrls;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSecretNo() {
        return secretNo;
    }

    public void setSecretNo(Integer secretNo) {
        this.secretNo = secretNo;
    }

    public Integer getBlockId() {
        return blockId;
    }

    public void setBlockId(Integer blockId) {
        this.blockId = blockId;
    }

    public SubjectiveBlock getSubjectiveBlock() {
        return subjectiveBlock;
    }

    public void setSubjectiveBlock(SubjectiveBlock subjectiveBlock) {
        this.subjectiveBlock = subjectiveBlock;
    }

    public LibraryType getType() {
        return type;
    }

    public void setType(LibraryType type) {
        this.type = type;
    }

    public LibraryStatus getStatus() {
        return status;
    }

    public void setStatus(LibraryStatus status) {
        this.status = status;
    }

    public Date getOccurTime() {
        return occurTime;
    }

    public void setOccurTime(Date occurTime) {
        this.occurTime = occurTime;
    }

    public List<TryHistory> getTryHistoryList() {
        return tryHistoryList;
    }

    public void setTryHistoryList(List<TryHistory> tryHistoryList) {
        this.tryHistoryList = tryHistoryList;
    }

    public List<FormallyHistory> getFormallyHistoryList() {
        return formallyHistoryList;
    }

    public void setFormallyHistoryList(List<FormallyHistory> formallyHistoryList) {
        this.formallyHistoryList = formallyHistoryList;
    }

    public String getCampusCode() {
        return campusCode;
    }

    public void setCampusCode(String campusCode) {
        this.campusCode = campusCode;
    }

    public Integer getExamId() {
        return examId;
    }

    public void setExamId(Integer examId) {
        this.examId = examId;
    }

    public String getSubjectCode() {
        return subjectCode;
    }

    public void setSubjectCode(String subjectCode) {
        this.subjectCode = subjectCode;
    }

    public String getPictureConfig() {
        return pictureConfig;
    }

    public void setPictureConfig(String pictureConfig) {
        this.pictureConfig = pictureConfig;
    }

    public List<String> getPictureUrls() {
        return pictureUrls;
    }

    public void setPictureUrls(List<String> pictureUrls) {
        this.pictureUrls = pictureUrls;
    }

}
