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 com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
//数据采集-累计专项附加扣除记录
@SalaryTable(pageId = "a4f85287-3354-4275-adn9-7d06e54y6rj8", tableType = WeaTableType.CHECKBOX)
public class AddUpDeductionRecordDTO {

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

    //员工id
    private Long employeeId;

    @ExcelProperty(index = 0)
    @I18n
    private String username;

    //申报月份
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    @SalaryTableColumn(text = "申报月份", width = "10%", column = "declareMonth", transmethod = "com.engine.salary.transmethod.TransMethod.timeToMoth")
    @TableTitle(title = "申报月份", dataIndex = "declareMonth", key = "declareMonth")
    @ExcelProperty(index = 1)
    private Date declareMonth;

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

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


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

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

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

    /**
     * 累计子女教育
     */
    @ExcelProperty(index = 5)
    @SalaryTableColumn(text = "累计子女教育", width = "10%", column = "addUpChildEducation")
    @TableTitle(title = "累计子女教育", dataIndex = "addUpChildEducation", key = "addUpChildEducation")
    @Encrypt
    private String addUpChildEducation;

    /**
     * 累计继续教育
     */
    @ExcelProperty(index = 6)
    @SalaryTableColumn(text = "累计继续教育", width = "10%", column = "addUpContinuingEducation")
    @TableTitle(title = "累计继续教育", dataIndex = "addUpContinuingEducation", key = "addUpContinuingEducation")
    @Encrypt
    private String addUpContinuingEducation;

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

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

    /**
     * 累计赡养老人
     */
    @ExcelProperty(index = 9)
    @SalaryTableColumn(text = "累计赡养老人", width = "10%", column = "addUpSupportElderly")
    @TableTitle(title = "累计赡养老人", dataIndex = "addUpSupportElderly", key = "addUpSupportElderly")
    @Encrypt
    private String addUpSupportElderly;

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

    @ExcelProperty(index = 11)
    @SalaryTableColumn(text = "累计婴幼儿照护", width = "10%", column = "addUpInfantCare")
    @TableTitle(title = "累计婴幼儿照护", dataIndex = "addUpInfantCare", key = "addUpInfantCare")
    @Encrypt
    private String addUpInfantCare;

}
