package com.casic.missiles.dto.business.certificate;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import com.baomidou.mybatisplus.annotation.TableField;
import com.casic.missiles.annotation.DictCodeField;
import com.casic.missiles.constants.MeterDictCode;
import com.casic.missiles.model.customer.CustomerSampleInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel
@ColumnWidth(30)
@HeadRowHeight(15)
@ContentRowHeight(20)
@ContentStyle(borderLeft = BorderStyleEnum.THIN, borderBottom = BorderStyleEnum.THIN, borderTop = BorderStyleEnum.THIN, borderRight = BorderStyleEnum.THIN)
@ExcelIgnoreUnannotated
public class CertificateReportResponse {


    @ApiModelProperty(value = "证书报告id", dataType = "Long")
    private Long id;

    @ApiModelProperty(value = "证书报告编号", dataType = "String")
    @ExcelProperty(value = "证书号", order = 0)
    private String certificateReportCode;


    @ApiModelProperty(value = "证书报告名称", dataType = "String")
    @ExcelProperty(value = "证书名称", order = 1)
    private String certificateReportName;

    @ApiModelProperty(value = "样品编号", dataType = "String")
    @ExcelProperty(value = "样品编号", order = 2)
    private String sampleNo;

    @ApiModelProperty(value = "样品名称", dataType = "String")
    @ExcelProperty(value = "样品名称", order = 3)
    private String sampleName;

    @ApiModelProperty(value = "型号", dataType = "String")
    @ExcelProperty(value = "型号", order = 4)
    private String sampleModel;

    @ApiModelProperty(value = "出厂编号", dataType = "String")
    @ExcelProperty(value = "出厂编号", order = 5)
    private String manufacturingNo;

    @ApiModelProperty(value = "委托书编号", dataType = "String")
    @ExcelProperty(value = "委托书编号", order = 6)
    private String orderCode;

    @ApiModelProperty(value = "委托方名称", dataType = "String")
    private String customerName;

    @ApiModelProperty(value = "检校专业", dataType = "String")
    @DictCodeField(message = "检校专业不合法", cacheName = MeterDictCode.CALIBRATION_MAJOR)
    private String calibrationMajor;

    @ApiModelProperty(value = "检定人员id", dataType = "String")
    private String measurePersonId;

    @ApiModelProperty(value = "检定人员名称", dataType = "String")
    @ExcelProperty(value = "检定人员", order = 8)
    private String measurePersonName;

    @ApiModelProperty(value = "审批状态", dataType = "String")
    @DictCodeField(message = "审批状态不合法", cacheName = MeterDictCode.APPROVAL_STATUS)
    private String approvalStatus;

    @ApiModelProperty(value = "创建时间", dataType = "String")
    @ExcelProperty(value = "创建时间", order = 10)
    private String createTime;


    @ApiModelProperty(value = "审批状态名称", dataType = "String")
    @ExcelProperty(value = "审批状态", order = 9)
    private String approvalStatusName;

    /**
     * 流程实例id
     */
    @ApiModelProperty(value = "流程实例id", dataType = "String")
    private String processId;

    /**
     * 任务id
     */
    @ApiModelProperty(value = "任务id（同意、驳回等操作使用）", dataType = "String")
    private String taskId;


    /**
     * 可选决策项
     */
    @ApiModelProperty(value = "可选决策项（1同意驳回拒绝 2同意驳回 3同意拒绝，用于待审批列表同意/驳回/拒绝按钮展示）", dataType = "Integer")
    private Integer decisionItem;

    @ApiModelProperty(value = "校验类别id", dataType = "String")
    private String measureCategory;

    @ApiModelProperty(value = "校验类别名称", dataType = "String")
    @ExcelProperty(value = "校验类别", order = 7)
    private String measureCategoryName;


}
