package com.engine.organization.entity.hrmresource.vo;

import com.cloudstore.eccom.pc.table.WeaTableType;
import com.engine.organization.annotation.OrganizationTable;
import com.engine.organization.annotation.OrganizationTableColumn;
import com.engine.organization.annotation.OrganizationTableOperate;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@OrganizationTable(pageId = "8df45b09-0cda-4f57-a93a-ca9f96a4c111",
        fields = "t.id," +
                "t.name," +
                "t.basic_fields," +
                "t.personal_fields," +
                "t.work_fields," +
                "t.isused," +
                "t.creator," +
                "t.create_time," +
                "t.update_time",
        fromSql = "FROM jcl_org_custom_template t ",
        orderby = "id",
        sortway = "asc",
        primarykey = "id",
        operates = {
                @OrganizationTableOperate(index = "0", text = "编辑"),
                @OrganizationTableOperate(index = "1", text = "另存为"),
                @OrganizationTableOperate(index = "2", text = "删除")
        },
        tableType = WeaTableType.CHECKBOX
)
public class JclOrgCustomTemplateVO {

    @OrganizationTableColumn(column = "id", display = false)
    private Integer id;

    @OrganizationTableColumn(text = "模板名称", width = "30%", column = "name")
    private String name;

    @OrganizationTableColumn(column = "basic_fields", display = false)
    private String basicFields;

    @OrganizationTableColumn(column = "personal_fields", display = false)
    private String personalFields;

    @OrganizationTableColumn(column = "work_fields", display = false)
    private String workFields;

    @OrganizationTableColumn(column = "isused", display = false)
    private Integer isUsed;

    @OrganizationTableColumn(column = "creator", display = false)
    private Integer creator;

    @OrganizationTableColumn(text = "创建时间",column = "create_time", width = "30%")
    private Date createTime;

    @OrganizationTableColumn(text = "更新时间",column = "update_time", display = false)
    private Date updateTime;
}
