/**
 * Copyright (c) 2018-2099, Chill Zhuang 庄骞 (bladejava@qq.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.xiaoniu.subsystem.business.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.util.Date;

/**
 * 预算管理表数据传输对象实体类
 *
 * @author sst
 * @since 2024-11-26
 */
@Data
public class BudgetSaveDTO {
	@Serial
	private static final long serialVersionUID = 1L;
	/**
	 * 专业（班次）ID
	 */
	@NotNull(message = "专业（班次）ID不能为空")
	private Long flightId;
	/**
	 * 专业（班次）名称
	 */
	@NotBlank(message = "专业（班次）名称不能为空")
	@Schema(description = "专业（班次）名称")
	private String flightName;
	/**
	 * 专业（班次）编码
	 */
	@NotBlank(message = "专业（班次）编码不能为空")
	@Schema(description = "专业（班次）编码")
	private String flightCode;
	/**
	 * 开训时间
	 */
	@NotNull(message = "开训时间不能为空")
	@Schema(description = "开训时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date trainingTime;
	/**
	 * 结束时间
	 */
	@NotNull(message = "结束时间不能为空")
	@Schema(description = "结束时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date endTime;
	/**
	 * 计划培训天数
	 */
	@NotBlank(message = "计划培训天数不能为空")
	@Schema(description = "计划培训天数")
	private String projectTrainingDays;
	/**
	 * 培训天数
	 */
	@NotBlank(message = "培训天数不能为空")
	@Schema(description = "培训天数")
	private String trainingDays;
	/**
	 * 组织培训单位ID
	 */
	@Schema(description = "组织培训单位ID")
	private Long tissueUnitId;
	/**
	 * 组织培训单位名称
	 */
	@Schema(description = "组织培训单位名称")
	private String tissueUnitName;

	/**
	 * 培训地址
	 */
	// @NotBlank(message = "培训地址不能为空")
	@Schema(description = "培训地址")
	private String tissueUnitAddress;

	/**
	 * 参加培训人数
	 */
	@NotBlank(message = "参加培训人数不能为空")
	@Schema(description = "参加培训人数")
	private String participantsNumber;
	/**
	 * 年度
	 */
	@NotBlank(message = "年度不能为空")
	@Schema(description = "年度（示例：yyyy")
	private String year;
	/**
	 * 经费来源
	 */
	@Schema(description = "经费来源")
	private String fundsSource;
	/**
	 * 开支标准
	 */
	@Schema(description = "开支标准")
	private String expenditureStandard;
	/**
	 * 预算金额
	 */
	@NotBlank(message = "预算金额不能为空")
	@Schema(description = "预算金额")
	private String budgetedAmount;
	/**
	 * 预付金额
	 */
	@NotBlank(message = "预付金额不能为空")
	@Schema(description = "预付金额")
	private String advanceAmount;
	/**
	 * 待付金额
	 */
	@Schema(description = "待付金额")
	private String amountPayable;
	/**
	 * 预算科目
	 */
	@Schema(description = "预算科目")
	private String budgetAccount;
	/**
	 * 审批意见
	 */
	@Schema(description = "审批意见")
	private String approvalOpinion;

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