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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 检测方法配置新增/修改 Request VO")
@Data
public class ConfigAssayMethodSaveReqVO {

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

    @Schema(description = "方法库ID", example = "9346")
    private Long methodConfigId;

    @Schema(description = "方法类别ID,字典表【T_DIC_BSN】方法类别：methodCategory，容量法、等离子发射光谱法、原子吸收分光光度等", example = "9102")
    private Long dictionaryBusinessId;

    @Schema(description = "方法类别KEY,字典表【T_DIC_BSN】方法类别：methodCategory，容量法、等离子发射光谱法、原子吸收分光光度等")
    private String dictionaryBusinessKey;

    @Schema(description = "方法名称", example = "李四")
    private String name;

    @Schema(description = "方法名称及类别")
    private String methodNameCategory;

    @Schema(description = "方法编号")
    private String methodCode;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "数据集Key,T_DAT_COLT_FLD", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "数据集Key,T_DAT_COLT_FLD不能为空")
    private String dataCollectionKey;

    @Schema(description = "是否启用,1-启用，0-不启用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否启用,1-启用，0-不启用不能为空")
    private Integer isEnabled;

    @Schema(description = "是否配料,1-是，0-否")
    private Integer isIngredients;

    @Schema(description = "任务单模板key")
    private String configReportTemplateKey;

    @Schema(description = "任务单数据类型,横向：horizontal，纵向：‌vertical‌")
    private String reportDataType;

    @Schema(description = "任务单编号规则", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "任务单编号规则不能为空")
    private String codeRule;

    @Schema(description = "分配方式,【字典】【jy_assay_method_assign_way】随机分配，按顺序分配，自动分配", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "分配方式,【字典】【jy_assay_method_assign_way】随机分配，按顺序分配，自动分配不能为空")
    private String assignWay;

    @Schema(description = "展示平台,【字典】【jy_assay_method_assign_platform】pad、pc、pad&pc", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "展示平台,【字典】【jy_assay_method_assign_platform】pad、pc、pad&pc不能为空")
    private String assignPlatform;

    @Schema(description = "任务分配表单配置信息,是否添加质控样；是否过筛；是否预览打印；是否查询S值范围；是否需要流程审批；流程审批编码；退回样品审批流程编码：任务完成时的提交方式；指派单抬头key")
    private String assayTaskInfomation;

    @Schema(description = "分析部门ID", example = "31510")
    private Long assayDepartmentId;

    @Schema(description = "分析部门名称", example = "张三")
    private String assayDepartmentName;

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

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

    @Schema(description = "版本", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "版本不能为空")
    private Integer version;

}