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 lfc
 * @version 1.0
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@SalaryTable(pageId = "a4f85287-e3f9-6612-adn9-7d06e54y6rj8", tableType = WeaTableType.CHECKBOX, operates = {
        @SalaryTableOperate(text = "查看明细")
})
public class SpecialAddDeductionListDTO {


    //主键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 = "childrenEducation")
    @TableTitle(title = "子女教育", dataIndex = "childrenEducation", key = "childrenEducation")
    @Encrypt
    private String childrenEducation;

    //继续教育
    @ExcelProperty(index = 8)
    @SalaryTableColumn(text = "继续教育", width = "10%", column = "continuingEducation")
    @TableTitle(title = "继续教育", dataIndex = "continuingEducation", key = "continuingEducation")
    @Encrypt
    private String continuingEducation;

    //住房贷款利息
    @ExcelProperty(index = 9)
    @SalaryTableColumn(text = "住房贷款利息", width = "10%", column = "housingLoanInterest")
    @TableTitle(title = "住房贷款利息", dataIndex = "housingLoanInterest", key = "housingLoanInterest")
    @Encrypt
    private String housingLoanInterest;

    //住房租金
    @ExcelProperty(index = 10)
    @SalaryTableColumn(text = "住房租金", width = "10%", column = "housingRent")
    @TableTitle(title = "住房租金", dataIndex = "housingRent", key = "housingRent")
    @Encrypt
    private String housingRent;

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

    //大病医疗
    @ExcelProperty(index = 12)
    @SalaryTableColumn(text = "大病医疗", width = "10%", column = "seriousIllnessTreatment")
    @TableTitle(title = "大病医疗", dataIndex = "seriousIllnessTreatment", key = "seriousIllnessTreatment")
    @Encrypt
    private String seriousIllnessTreatment;

    //婴幼儿照护
    @ExcelProperty(index = 13)
    @SalaryTableColumn(text = "婴幼儿照护", width = "10%", column = "infantCare")
    @TableTitle(title = "婴幼儿照护", dataIndex = "infantCare", key = "infantCare")
    @Encrypt
    private String infantCare;

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