package com.kcim.dao.model.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("编辑报表项目入参")
public class ReportFormEditDTO {

    @ApiModelProperty(name = "parentId",value = "当前报表项目id")
    @NotNull(message = "报表项目id不能为空")
    private Long id;

    @ApiModelProperty(name = "parentId",value = "父级id，顶层传0")
//    @NotNull(message = "父级id不为空")
    private Long parentId;

    @ApiModelProperty(name = "reportName",value = "报表名称")
    @NotBlank(message = "报表名称不为空")
    private String reportName;

    @ApiModelProperty(name = "sort",value = "排序字段")
    @NotNull(message = "排序字段不为空")
    private Integer sort;

    @ApiModelProperty(name = "reportType",value = "报表类型")
    @NotNull(message = "报表类型不为空")
    private Integer reportType;

    @ApiModelProperty(name = "calcType",value = "计算类型")
    @NotNull(message = "计算类型不为空")
    private Integer calcType;

    @ApiModelProperty(name = "calcFormula",value = "计算公式")
    private String calcFormula;

    private Integer isLoss;

    private Integer costType;

    private Integer fraction;

    private String description;

    /**
     * 0 隐藏 1显示  默认显示
     */
    private Integer hide;

    /**
     * 数据类型：0未知 1数值 2百分比
     */
    private Integer dataType;

    /**
     * 数据类型名称
     */
    private String dataTypeName;

    /**
     * 小数位
     */
    private Integer decimalPlace;

    /**
     * 是否有千分号 0否 1是
     */
    private Integer permil;

    /**
     * 字体颜色
     */
    private String fontColor;
}
