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

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
//薪资项目调整-基本调整信息")
public class SalaryArchiveItemBaseDTO {

//    @SalaryForm(
//            label = "生效日期",
//            labelId = 85904,
//            items = {
//                    @SalaryFormItem(itemType = WeaFormItemType.DATEPICKER, required = true)
//            }
//    )
//    //生效日期")
    private String effectiveTime;

//    @SalaryForm(
//            label = "调整原因",
//            labelId = 85431,
//            items = {
//                    @SalaryFormItem(itemType = WeaFormItemType.SELECT, required = true, maxLength = "50", options = "getAdjustReasonOptions()")
//            }
//    )
//    //调整原因")
    private Long adjustReason;

//    private List<WeaFormOption> getAdjustReasonOptions () {
//        return Arrays.stream(SalaryArchiveItemAdjustReasonEnum.values()).map(m->new WeaFormOption(String.valueOf(m.getValue()), SalaryI18nUtil.getI18nLabel(TenantContext.getCurrentTenantKey(), UserContext.getCurrentEmployeeId(), m.getLabelId(), m.getDefaultLabel()))).collect(Collectors.toList());
//    }

//    @SalaryForm(
//            label = "备注",
//            labelId = 84961,
//            items = {
//                    @SalaryFormItem(itemType = WeaFormItemType.INPUT, maxLength = "20")
//            }
//    )
//    //备注")
    private String description;
}
