package com.engine.salary.entity.salarysob.dto;

import com.cloudstore.eccom.pc.table.WeaTableType;
import com.engine.salary.annotation.SalaryTable;
import com.engine.salary.annotation.SalaryTableColumn;
import com.engine.salary.annotation.SalaryTableOperate;
import com.engine.salary.annotation.TableTitle;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 薪资账套校验规则列表
 * <p>Copyright: Copyright (c) 2022</p>
 * <p>Company: 泛微软件</p>
 *
 * @author qiantao
 * @version 1.0
 **/
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@SalaryTable(pageId = "a4f85287-e3f9-4d11-adn9-7d06e54y6rj8", tableType = WeaTableType.CHECKBOX, operates = {
        @SalaryTableOperate(index = "0", text = "编辑"),
        @SalaryTableOperate(index = "1", text = "删除"),
})
public class SalarySobCheckRuleListDTO {

    //主键id
    @SalaryTableColumn(column = "id", display = false)
    @TableTitle(title = "id", dataIndex = "id", key = "id")
    private Long id;

    //薪资账套id
    private Long salarySobId;

    @SalaryTableColumn(text = "名称", width = "10%", column = "name")
    @TableTitle(title = "名称", dataIndex = "name", key = "name")
    private String name;

    //公式id
    private Long formulaId;

    @SalaryTableColumn(text = "校验规则", width = "10%", column = "formulaContent")
    @TableTitle(title = "校验规则", dataIndex = "formulaContent", key = "formulaContent")
    private String formulaContent;

    @SalaryTableColumn(text = "备注", width = "10%", column = "description")
    @TableTitle(title = "备注", dataIndex = "description", key = "description")
    private String description;
}
