42 lines
1.3 KiB
Java
42 lines
1.3 KiB
Java
package com.engine.salary.transmethod;
|
|
|
|
import com.engine.salary.util.SalaryI18nUtil;
|
|
import weaver.hrm.User;
|
|
|
|
/**
|
|
* @Author weaver_cl
|
|
* @Description:
|
|
* @Date 2022/3/11
|
|
* @Version V1.0
|
|
**/
|
|
public class ICategoryTransMethod {
|
|
|
|
public static String getWelfareTypeName(String type, User user) {
|
|
switch (type) {
|
|
case "1":
|
|
return SalaryI18nUtil.getI18nLabel(user.getLanguage(),538967, "社保");
|
|
case "2":
|
|
return SalaryI18nUtil.getI18nLabel(user.getLanguage(),538969, "公积金");
|
|
case "3":
|
|
return SalaryI18nUtil.getI18nLabel(user.getLanguage(),542518, "企业年金及其它福利");
|
|
default:
|
|
return "";
|
|
}
|
|
}
|
|
|
|
|
|
public static String getPaymentcopeTypeName(String type, User user) {
|
|
switch (type) {
|
|
case "1":
|
|
return SalaryI18nUtil.getI18nLabel(user.getLanguage(),388108, "公司");
|
|
case "2":
|
|
return SalaryI18nUtil.getI18nLabel(user.getLanguage(),500201, "个人");
|
|
case "1,2":
|
|
case "2,1":
|
|
return SalaryI18nUtil.getI18nLabel(user.getLanguage(),388108, "公司") + "," + SalaryI18nUtil.getI18nLabel(user.getLanguage(),500201, "个人");
|
|
default:
|
|
return "";
|
|
}
|
|
}
|
|
}
|