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

import com.cloudstore.eccom.pc.table.WeaTableType;
import com.engine.organization.annotation.OperatePopedom;
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;

/**
 * @Author weaver_cl
 * @Description:
 * @Date 2022/8/23
 * @Version V1.0
 **/

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@OrganizationTable(pageId = "516e81fb-65d4-4010-b916-9f6ab337b199",
        fields = "t.fid," +
                "t.fno," +
                "t.fname," +
                "t.fmemo,"+
                "t.fdelete",
        fromSql = "FROM jcl_org_item t ",
        orderby = "fno",
        sortway = "asc",
        primarykey = "fid",
        operates = {
                @OrganizationTableOperate(index = "0", text = "编辑"),
                @OrganizationTableOperate(index = "1", text = "删除"),
                @OrganizationTableOperate(index = "2", text = "恢复")
        },
        tableType = WeaTableType.CHECKBOX,
        operatePopedom = @OperatePopedom(transmethod = "com.engine.organization.util.ConfigTrans.formatResourceOperates", otherpara = "column:fdelete"
                )


)
public class ResourceBasicInfoVO {

    /**
     * 主键
     */
    @OrganizationTableColumn(column = "fid", display = false)
    private Integer fId;


    /**
     * 编号
     */
    @OrganizationTableColumn(text = "编号", width = "20%", column = "fno", orderkey = "fno")
    private String fNo;

    /**
     * 名称
     */
    @OrganizationTableColumn(text = "名称", width = "20%", column = "fname")
    private String fName;

    /**
     * 说明
     */
    @OrganizationTableColumn(text = "说明", width = "20%", column = "fmemo")
    private String fMemo;

    /**
     * 状态
     */
    @OrganizationTableColumn(text = "状态", width = "20%", column = "fdelete")
    private String fDelete;
}
