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;

/**
 * @author:dxfeng
 * @createTime: 2022/07/01
 * @version: 1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@OrganizationTable(pageId = "2f2011f7-f915-11ec-8d51-00e04c680716",
        fields = "t.id," +
                "t.lastname," +
                "t.departmentid," +
                "t.subcompanyid1," +
                "t.mobile," +
                "t.telephone," +
                "t.managerid, " +
                "t.dsporder ",
        fromSql = "FROM hrmresource t ",
        orderby = " dsporder ",
        sortway = " asc",
        primarykey = "id",
        operates = {
                @OrganizationTableOperate(index = "0", text = "发消息"),
                @OrganizationTableOperate(index = "1", text = "发送邮件"),
                @OrganizationTableOperate(index = "1", text = "发送短信"),
                @OrganizationTableOperate(index = "1", text = "新建日程"),
                @OrganizationTableOperate(index = "1", text = "系统信息"),
        },
        tableType = WeaTableType.CHECKBOX
)
public class ScHrmResourceVO {
    /**
     * 主键
     */
    @OrganizationTableColumn(column = "id", display = false)
    private Long id;

    /**
     * 姓名
     */
    @OrganizationTableColumn(text = "姓名", width = "25%", column = "lastname")
    private String lastName;
    /**
     * 部门
     */
    @OrganizationTableColumn(text = "部门", width = "25%", column = "departmentid", transmethod = "com.engine.organization.transmethod.HrmResourceTransMethod.getScDepartmentName")
    private String departmentName;

    /**
     * 分部
     */
    @OrganizationTableColumn(text = "分部", width = "25%", column = "subcompanyid1", transmethod = "com.engine.organization.transmethod.HrmResourceTransMethod.getScCompanyName")
    private String companyName;

    /**
     * 移动电话
     */
    @OrganizationTableColumn(text = "移动电话", width = "25%", column = "mobile")
    private String mobile;
    /**
     * 办公室电话
     */
    @OrganizationTableColumn(text = "办公室电话", width = "25%", column = "telephone")
    private String telephone;
    /**
     * 直接上级
     */
    @OrganizationTableColumn(text = "直接上级", width = "25%", column = "managerid", transmethod = "com.engine.organization.transmethod.HrmResourceTransMethod.getScManagerName")
    private String managerName;

    @OrganizationTableColumn(text = "显示顺序", width = "25%", column = "dsporder", orderkey = "dsporder")
    private Integer showOrder;
}
