package com.zt.plat.module.erp.controller.admin.erp.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - ERP生产订单新增/修改 Request VO")
@Data
public class ErpProductiveOrderSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "24243")
    private Long id;

    @Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "公司编号不能为空")
    private String companyNumber;

    @Schema(description = "工厂编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "工厂编码不能为空")
    private String factoryNumber;

    @Schema(description = "工厂名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "工厂名称不能为空")
    private String factoryName;

    @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "订单编号不能为空")
    private String orderNumber;

    @Schema(description = "基本开始日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "基本开始日期不能为空")
    private LocalDateTime startDate;

    @Schema(description = "基本完成日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "基本完成日期不能为空")
    private LocalDateTime endDate;

    @Schema(description = "主产品物料编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "主产品物料编号不能为空")
    private String mainMaterialNumber;

    @Schema(description = "计量单位", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "计量单位不能为空")
    private String unit;

    @Schema(description = "物料描述", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "物料描述不能为空")
    private String materialDescription;

    @Schema(description = "工序列表", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "工序列表不能为空")
    private String processingList;

    @Schema(description = "工序编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "工序编号不能为空")
    private String processingNumber;

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

    @Schema(description = "对象编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "对象编号不能为空")
    private String objectNumber;

    @Schema(description = "工作中心编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "工作中心编码不能为空")
    private String workCenterNumber;

    @Schema(description = "工作中心描述")
    private String workCenterDescription;

    @Schema(description = "成本中心编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "成本中心编码不能为空")
    private String costcenterNumber;

    @Schema(description = "成本中心描述", example = "赵六")
    private String costcenterName;

}