150 lines
4.9 KiB
Java
150 lines
4.9 KiB
Java
|
|
package com.engine.salary.entity.salarysob.dto;
|
||
|
|
|
||
|
|
import com.engine.salary.component.WeaFormOption;
|
||
|
|
import com.engine.salary.enums.SalaryCycleTypeEnum;
|
||
|
|
import com.engine.salary.enums.SalarySobStatusEnum;
|
||
|
|
import com.engine.salary.enums.salarysob.IncomeCategoryEnum;
|
||
|
|
import com.engine.salary.util.SalaryI18nUtil;
|
||
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||
|
|
import com.google.common.collect.Lists;
|
||
|
|
import lombok.AllArgsConstructor;
|
||
|
|
import lombok.Data;
|
||
|
|
import lombok.NoArgsConstructor;
|
||
|
|
import lombok.experimental.Accessors;
|
||
|
|
|
||
|
|
import java.util.Collections;
|
||
|
|
import java.util.List;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 薪资账套基础信息表单
|
||
|
|
* <p>Copyright: Copyright (c) 2022</p>
|
||
|
|
* <p>Company: 泛微软件</p>
|
||
|
|
*
|
||
|
|
* @author qiantao
|
||
|
|
* @version 1.0
|
||
|
|
**/
|
||
|
|
@Data
|
||
|
|
@Accessors(chain = true)
|
||
|
|
@NoArgsConstructor
|
||
|
|
@AllArgsConstructor
|
||
|
|
public class SalarySobBasicFormDTO {
|
||
|
|
|
||
|
|
//主键id")
|
||
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
||
|
|
private Long id;
|
||
|
|
|
||
|
|
// @SalaryForm(
|
||
|
|
// label = "账套名称",
|
||
|
|
// labelId = 93876,
|
||
|
|
// items = {
|
||
|
|
// @SalaryFormItem(itemType = WeaFormItemType.INPUT, required = true, maxLength = "40")
|
||
|
|
// }
|
||
|
|
// )
|
||
|
|
// //薪资账套的名称")
|
||
|
|
private String name;
|
||
|
|
|
||
|
|
// @SalaryForm(
|
||
|
|
// label = "薪资类型",
|
||
|
|
// labelId = 98380,
|
||
|
|
// items = @SalaryFormItem(name = "taxableItems", itemType = WeaFormItemType.SELECT, required = true, optionsEnum = IncomeCategoryEnum.class)
|
||
|
|
// )
|
||
|
|
//薪资类型")
|
||
|
|
private IncomeCategoryEnum taxableItems;
|
||
|
|
|
||
|
|
// @SalaryForm(
|
||
|
|
// label = "薪资周期",
|
||
|
|
// labelId = 86155,
|
||
|
|
// items = {
|
||
|
|
// @SalaryFormItem(name = "salaryCycleType", itemType = WeaFormItemType.SELECT, required = true, optionsEnum = SalaryCycleTypeEnum.class),
|
||
|
|
// @SalaryFormItem(name = "salaryCycleFromDay", itemType = WeaFormItemType.SELECT, required = true, options = "listCycleFromDayOption()")
|
||
|
|
// }
|
||
|
|
// )
|
||
|
|
//薪资周期")
|
||
|
|
private SalaryCycleTypeEnum salaryCycleType;
|
||
|
|
|
||
|
|
//薪资周期的起始日期")
|
||
|
|
private Integer salaryCycleFromDay;
|
||
|
|
|
||
|
|
// @SalaryForm(
|
||
|
|
// label = "税款所属期",
|
||
|
|
// labelId = 86176,
|
||
|
|
// items = {
|
||
|
|
// @SalaryFormItem(itemType = WeaFormItemType.SELECT, required = true, optionsEnum = SalaryCycleTypeEnum.class)
|
||
|
|
// }
|
||
|
|
// )
|
||
|
|
//税款所属期")
|
||
|
|
private SalaryCycleTypeEnum taxCycleType;
|
||
|
|
|
||
|
|
// @SalaryForm(
|
||
|
|
// label = "考勤周期",
|
||
|
|
// labelId = 87616,
|
||
|
|
// items = {
|
||
|
|
// @SalaryFormItem(name = "attendCycleType", itemType = WeaFormItemType.SELECT, required = true, optionsEnum = SalaryCycleTypeEnum.class),
|
||
|
|
// @SalaryFormItem(name = "attendCycleFromDay", itemType = WeaFormItemType.SELECT, required = true, options = "listCycleFromDayOption()")
|
||
|
|
// }
|
||
|
|
// )
|
||
|
|
//考勤周期")
|
||
|
|
private SalaryCycleTypeEnum attendCycleType;
|
||
|
|
|
||
|
|
//考勤周期起始日期")
|
||
|
|
private Integer attendCycleFromDay;
|
||
|
|
|
||
|
|
// @SalaryForm(
|
||
|
|
// label = "福利台账月份",
|
||
|
|
// labelId = 91560,
|
||
|
|
// items = {
|
||
|
|
// @SalaryFormItem(itemType = WeaFormItemType.SELECT, required = true, optionsEnum = SalaryCycleTypeEnum.class)
|
||
|
|
// }
|
||
|
|
// )
|
||
|
|
//福利台账月份")
|
||
|
|
private SalaryCycleTypeEnum socialSecurityCycleType;
|
||
|
|
|
||
|
|
// @SalaryForm(
|
||
|
|
// label = "核算人员范围",
|
||
|
|
// labelId = 95789,
|
||
|
|
// items = {
|
||
|
|
// @SalaryFormItem(itemType = WeaFormItemType.CHECKBOX, required = true, options = "listEmployeeRangeOption()")
|
||
|
|
// }
|
||
|
|
// )
|
||
|
|
//核算人员范围")
|
||
|
|
private String employeeRange;
|
||
|
|
|
||
|
|
//目前薪资账套所处的步骤")
|
||
|
|
private SalarySobStatusEnum status;
|
||
|
|
|
||
|
|
// @SalaryForm(
|
||
|
|
// label = "备注",
|
||
|
|
// labelId = 84961,
|
||
|
|
// items = {
|
||
|
|
// @SalaryFormItem(itemType = WeaFormItemType.TEXTAREA)
|
||
|
|
// }
|
||
|
|
// )
|
||
|
|
//备注")
|
||
|
|
private String description;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 薪资账套详情-薪资周期/考勤周期
|
||
|
|
*
|
||
|
|
* @return
|
||
|
|
*/
|
||
|
|
public List<WeaFormOption> listCycleFromDayOption() {
|
||
|
|
List<WeaFormOption> resultList = Lists.newArrayListWithExpectedSize(31);
|
||
|
|
for (int i = 1; i <= 31; i++) {
|
||
|
|
resultList.add(new WeaFormOption(String.valueOf(i), SalaryI18nUtil.getI18nLabel(98382, "{0}号").replace("{0}", "" + i)));
|
||
|
|
}
|
||
|
|
return resultList;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 薪资账套详情-核算人员范围
|
||
|
|
*
|
||
|
|
* @return
|
||
|
|
*/
|
||
|
|
public List<WeaFormOption> listEmployeeRangeOption() {
|
||
|
|
WeaFormOption weaFormOption = new WeaFormOption("1", SalaryI18nUtil.getI18nLabel(98381, "【入职日期≤薪资周期止】且【离职日期≥薪资周期起】"));
|
||
|
|
weaFormOption.setDisabled(true);
|
||
|
|
return Collections.singletonList(weaFormOption);
|
||
|
|
}
|
||
|
|
}
|