package com.zt.plat.module.qms.business.config.controller.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 检验委托来源配置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ConfigEntrustSourceRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "7658")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "委托类型,委托登记-entrust_registration、检验委托-entrust_inspection", example = "2")
    @ExcelProperty("委托类型,委托登记-entrust_registration、检验委托-entrust_inspection")
    private String entrustType;

    @Schema(description = "委托来源名称,西南铜委托、商检委托、内部委托、抽查委托、内审委托、生产委托", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @ExcelProperty("委托来源名称,西南铜委托、商检委托、内部委托、抽查委托、内审委托、生产委托")
    private String name;

    @Schema(description = "委托来源Key", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("委托来源Key")
    private String key;

    @Schema(description = "数据集Key,T_DAT_COLT_FLD", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("数据集Key,T_DAT_COLT_FLD")
    private String dataCollectionKey;

    @Schema(description = "委托单模版Key")
    @ExcelProperty("委托单模版Key")
    private String configReportTemplateKey;

    @Schema(description = "委托单号规则")
    @ExcelProperty("委托单号规则")
    private String codeRule;

    @Schema(description = "委托单号引用字段")
    @ExcelProperty("委托单号引用字段")
    private String codeField;

    @Schema(description = "是否编制部门报告,1-是，0-否")
    @ExcelProperty("是否编制部门报告,1-是，0-否")
    private Integer isGenerateDocument;

    @Schema(description = "表单设计器模板key")
    @ExcelProperty("表单设计器模板key")
    private String dataTemplateKey;

    @Schema(description = "委托方式,manual-手动创建、interface-接口创建、both-两者都")
    private String entrustWay;

    @Schema(description = "委托提交方式,automatic-自动提交，manual-手动提交")
    private String entrustSubmitWay;

    @Schema(description = "扩展配置")
    @ExcelProperty("扩展配置")
    private String externalConfig;

    @Schema(description = "所属部门")
    @ExcelProperty("所属部门")
    private String systemDepartmentCode;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "备注")
    @ExcelProperty("备注")
    private String remark;

}