package com.xhkjedu.sexam.model.paper;

import com.xhkjedu.model.BaseBean;
import com.xhkjedu.sexam.vo.paper.EPaperScantronParams;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

@Table(name = "e_paper")
@Data
public class EPaper extends BaseBean {
    @Id
    //考试试卷表
    private Integer epid;

    //考试id
    private Integer examid;

    //考试科目表id
    private Integer esid;

    //科目id
    private String subjectid;

    //试卷类型1题库
    private Integer ptype;

    //试题数量
    private Integer pnum;

    //试卷总分
    private Double pscore;

    //是否设置正确答案0未设置1已设置
    private Integer answered;

    //批阅设置：1按班设置2按题设置
    private Integer correcttype;

    //听力题文件地址(附件试卷）
    private String hearfile;

    //听力允许播放次数
    private Integer hearnum;

    //是否有附件0没有1有附件
    private Integer hasfile;

    //答题卡文件
    private String scantronfile;

    //答题卡张数
    private Integer scantronnum;

    private String scantronpdf;//答题卡pdf

    //答题卡注意事项
    private String scantronnote;

    //答题卡区域宽高[200,300]
    private String scantronwh;

    //答题卡单边距（像素）
    private Integer scantronspace;

    //答题卡几列
    private Integer scantroncol;

    //缺考标记坐标
    private String cantronmiss;

    //违规标记坐标3自定义考号
    private String cantronbad;

    //考号类型1条形码2准考证号（固定8位）3自定义考号
    private Integer codetype;

    //自定义考号列数
    private Integer codenum;

    //涂考号坐标
    private String cantroncode;

    //页码坐标
    private String cantronpage;

    //条形码坐标
    private String cantronbarcode;

    //二维码坐标
    private String cantronqrcode;

    //定位条坐标
    private String cantronloc;

    //创建人
    private Integer createid;

    //创建时间
    private Integer createtime;

    //修改人
    private Integer handleid;

    //修改时间
    private Integer handletime;

    @Transient
    private List<EPaperFile> pfiles;//附件

    @Transient
    private Integer pstate;//状态0保存1提交

    @Transient
    private List<EPaperQtype> qtypelist;//题库试卷内容

    @Transient
    private List<EPaperQtypeQuestion> questions;//试题

    @Transient
    private List<EPaperScantronParams> scanlist;//答题卡内容
}