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 DimissionSetFormDTO {

//    @SalaryForm(
//            label = "已离职时段",
//            labelId = 93330,
//            items = {
//                    @SalaryFormItem(itemType = WeaFormItemType.SELECT, required = true, options = "getDimissionTimeIntervalOptions()")
//            }
//    )
//    //已离职时段")
    private String dimissionTimeInterval;

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