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

import com.cloudstore.eccom.pc.table.WeaTableType;
import com.engine.salary.annotation.*;
import com.engine.salary.util.excel.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 数据采集-其他免税扣除列表
 * <p>Copyright: Copyright (c) 2022</p>
 * <p>Company: 泛微软件</p>
 *
 * @author qiantao
 * @version 1.0
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@SalaryTable(pageId = "a4f85287-e3f9-6612-adn9-7d06e54y6rj8", tableType = WeaTableType.CHECKBOX, operates = {
        @SalaryTableOperate(text = "查看明细")
})
public class OtherDeductionListDTO {


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

    //员工id
    private Long employeeId;

    //姓名
    @SalaryTableColumn(text = "姓名", width = "10%", column = "username")
    @TableTitle(title = "姓名", dataIndex = "username", key = "username")
    @ExcelProperty(index = 0)
    @I18n
    private String username;

    //个税扣缴义务人
    @SalaryTableColumn(text = "个税扣缴义务人", width = "10%", column = "taxAgentName")
    @TableTitle(title = "个税扣缴义务人", dataIndex = "taxAgentName", key = "taxAgentName")
    @ExcelProperty(index = 1)
    private String taxAgentName;

    /**
     * 个税扣缴义务人id
     */
    private Long taxAgentId;

    //部门
    @SalaryTableColumn(text = "部门", width = "10%", column = "departmentName")
    @TableTitle(title = "部门", dataIndex = "departmentName", key = "departmentName")
    @ExcelProperty(index = 2)
    @I18n
    private String departmentName;

    //手机号
    @SalaryTableColumn(text = "手机号", width = "10%", column = "mobile")
    @TableTitle(title = "手机号", dataIndex = "mobile", key = "mobile")
    @ExcelProperty(index = 3)
    private String mobile;

    //工号
    @SalaryTableColumn(text = "工号", width = "10%", column = "jobNum")
    @TableTitle(title = "工号", dataIndex = "jobNum", key = "jobNum")
    @ExcelProperty(index = 4)
    private String jobNum;

    //证件号码
    @SalaryTableColumn(text = "证件号码", width = "10%", column = "idNo")
    @TableTitle(title = "证件号码", dataIndex = "idNo", key = "idNo")
    @ExcelProperty(index = 5)
    private String idNo;

    //入职日期
    @ExcelProperty(index = 6)
    @SalaryTableColumn(text = "入职日期", width = "10%", column = "hiredate")
    @TableTitle(title = "入职日期", dataIndex = "hiredate", key = "hiredate")
    private String hiredate;

    //商业健康保险
    @ExcelProperty(index = 7)
    @SalaryTableColumn(text = "商业健康保险", width = "10%", column = "businessHealthyInsurance")
    @TableTitle(title = "商业健康保险", dataIndex = "businessHealthyInsurance", key = "businessHealthyInsurance")
    @Encrypt
    private String businessHealthyInsurance;

    //税延养老保险
    @ExcelProperty(index = 8)
    @SalaryTableColumn(text = "税延养老保险", width = "10%", column = "taxDelayEndowmentInsurance")
    @TableTitle(title = "税延养老保险", dataIndex = "taxDelayEndowmentInsurance", key = "taxDelayEndowmentInsurance")
    @Encrypt
    private String taxDelayEndowmentInsurance;

    //其他
    @ExcelProperty(index = 9)
    @SalaryTableColumn(text = "其他", width = "10%", column = "otherDeduction")
    @TableTitle(title = "其他", dataIndex = "otherDeduction", key = "otherDeduction")
    @Encrypt
    private String otherDeduction;

    //准予扣除的捐赠额
    @ExcelProperty(index = 10)
    @SalaryTableColumn(text = "准予扣除的捐赠额", width = "10%", column = "deductionAllowedDonation")
    @TableTitle(title = "准予扣除的捐赠额", dataIndex = "deductionAllowedDonation", key = "deductionAllowedDonation")
    @Encrypt
    private String deductionAllowedDonation;

    @ExcelProperty(index = 11)
    @SalaryTableColumn(text = "个人养老金", width = "10%", column = "privatePension")
    @TableTitle(title = "个人养老金", dataIndex = "privatePension", key = "privatePension")
    @Encrypt
    private String privatePension;

    @SalaryTableColumn(text = "操作", width = "20%", column = "operate")
    @TableTitle(title = "操作", dataIndex = "operate", key = "operate")
    private String operate;
}
