package com.kcim.vo;


import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("报表项目视图对象")
public class ReportFormVO {

    private Long id;

    private Integer num;

    private String reportName;

    private Long parentId;

    private Integer calcType;

    private Integer reportType;

    private String calcFormula;

    private Integer sort;

    private String ratioBase;

    private Long hospId;

    private Integer isLoss;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer showAddRelation;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<ReportFormVO> children;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<RelationVO> reportRelations;


    private Integer costType;

    private Integer fraction;

    private String description;

    private Integer hide;

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

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

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

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

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

    /**
     * 报表与诊次床日关联的状态
     */
    private Integer reportNumberSetStatus=0;

    public ReportFormVO(Long id,Integer num, String reportName, Long parentId,List<ReportFormVO> children) {
        this.num = num;
        this.reportName = reportName;
        this.parentId = parentId;
        this.id = id;
        this.children = children;
    }
}
