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

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.alibaba.fastjson.annotation.JSONField;
import com.casic.missiles.annotation.DictCodeField;
import com.casic.missiles.constants.MeterDictCode;
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 SampleHandOutListResponse {

    @ApiModelProperty(value = "样品id", dataType = "Long")
    private Long sampleId;

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

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

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

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

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

    @ApiModelProperty(value = "委托方id", dataType = "Long")
    private Long customerId;

    @ApiModelProperty(value = "委托方代码", dataType = "String")
    @ExcelProperty(value = "委托方代码", order = 5)
    private String customerNo;

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

    @ApiModelProperty(value = "送检人", dataType = "String")
    @ExcelProperty(value = "送检人", order = 7)
    private String deliverer;

    @ApiModelProperty(value = "是否加急（1是0否null全部）", dataType = "Integer")
    @ExcelProperty(value = "是否加急", order = 8)
    private Integer isUrgent;

    @DictCodeField(message = "样品属性不合法", cacheName = MeterDictCode.SAMPLE_BELONG)
    @ApiModelProperty(value = "样品属性（字典code）", dataType = "String")
//    @ExcelProperty(value = "样品属性", order = 9)
    private String sampleBelong;

    @ApiModelProperty(value = "样品属性（字典value）", dataType = "String")
    @ExcelProperty(value = "样品属性", order = 9)
    private String sampleBelongName;

    @ApiModelProperty(value = "应检完时间", dataType = "String")
    @ExcelProperty(value = "应检完时间", order = 10)
    private String requireOverTime;

    @ApiModelProperty(value = "当前检定环节", dataType = "String")
    @ExcelProperty(value = "当前检定环节", order = 11)
    private String currentSegment;

    @ApiModelProperty(value = "已出具证书", dataType = "Integer")
    @ExcelProperty(value = "已出具证书", order = 12)
    private Integer alreadyCertifications = 0;

    @ApiModelProperty(value = "应出具证书", dataType = "Integer")
    @ExcelProperty(value = "应出具证书", order = 13)
    private Integer requireCertifications = 0;

    @ApiModelProperty(value = "分发性质", dataType = "String")
    @ExcelProperty(value = "分发性质", order = 14)
    private String handOutProperty;

    @ApiModelProperty(value = "委托书id", dataType = "String")
    private Long orderId;

    @ApiModelProperty(value = "送达时间", dataType = "String")
    @ExcelProperty(value = "送达时间", order = 7)
    private String realDeliverTime;

    @ApiModelProperty(value = "备注", dataType = "String")
    @ExcelProperty(value = "备注", order = 15)
    private String remark;

    @JSONField(serialize = false)
    private String sampleStatus;
}
